Six skills in plugins/bin were hand-maintained copies of mattpocock/skills from the 1.0.x era (grill-me, grill-with-docs, tdd, prototype, improve-codebase-architecture, triage), most of them verbatim apart from link rewrites. They now come from upstream at v1.3.2 through the plugins/mattpocock wrapper, together with diagnosing-bugs. bin keeps its own diagnose, research, write-docs, caveman and zoom-out; diagnose stays alongside diagnosing-bugs until the two are compared and migrated. Moving them left four routing targets (tdd, triage, grill-with-docs, improve-codebase-architecture) resolving nowhere, which fails the corpus-wide backstop. The resolver now also learns the skills a plugin pulls from a third-party repo subpath (owner/repo/<path>/<skill>#ref), without a network or an apm_modules/ tree. A whole-repo dependency such as TOD names no skill and mints none. ADR-0029 records the decision and the rejected alternative of rewording the clauses. Impact: bin 1.1.9 -> 2.0.0 (skills removed, so bin-only consumers lose them and must add mattpocock); mattpocock 0.2.0; kyberforge 2.2.1 and factory-audit 1.0.6 for the resolver change; catalog 0.6.1. Upstream marks grill-me, grill-with-docs, triage and improve-codebase-architecture hand-invoked, so forge's Call of grill-with-docs is now blocked by the host and its inline fallback always runs. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2.7 KiB
A skill pulled from a third-party repo's subpath is a resolvable routing target
Status: accepted (2026-11-11). Extends ADR-0020's target resolution walk; builds on ADR-0026.
plugins/mattpocock redistributes Matt Pocock's skills as owner/repo/<path>/<skill>#v1.3.2
dependencies and ships no skills of its own. Moving tdd, triage, grill-with-docs and
improve-codebase-architecture out of plugins/bin into it left diagnose, write-docs and
forge routing to names that exist nowhere under plugins/*/.apm/skills. The corpus-wide backstop in
tests/test-adr0020-targets.sh ("no skill in the corpus routes to a target that does not resolve")
failed with exactly those four, and its message says not to relax it.
The resolver could not see them for two reasons that compound. Rule 1 of the walk reads skills that
are files under plugins/*/, and these are not. Rule 3 reads a package's declared dependencies
from apm_modules/, which a plugin package never has (ADR-0026: a plugin package is not an install
root). Reading the root manifest instead was already ruled out by the walk, and installing in CI would
make the verdict depend on the machine, which is the defect ADR-0020 exists to remove.
Decision. _collect_package() in lib-boundary-resolver.sh also adds the last path segment of
every string dependency in the package's apm.yml that has at least owner/repo/<subpath> after an
optional host prefix. It is applied wherever _collect_package() already runs, so every plugin in the
monorepo contributes the skills it pulls. No network, no apm_modules/, same verdict on a fresh
clone.
What it deliberately does not count: a whole-repo dependency such as code.onedev.io/onedev/tod
(three segments with the host, so it names no skill), SSH and host: forms, and dict entries, which
are packages and already resolve through the path: branch. The name is a convention, not a check:
it assumes apm deploys the skill under the subpath's last segment, which it does today (verified on
apm 0.28.0 for wayfinder), and a rename upstream is caught by the pin, not by this gate.
Rejected: rewording the four clauses out of route notation. Cheap, but it turns real routing checks into SUGGESTIONs for exactly the skills most likely to be renamed upstream.
Consequence worth knowing. Resolving a target is not the same as being able to call it. Upstream
marks grill-me, grill-with-docs, triage and improve-codebase-architecture hand-invoked, so a
Call step in another skill (forge Step 1) is blocked by the host. forge's existing "grill inline
if it does not resolve" fallback now always runs. The gate does not model this; ADR-0020's
hand-invoked exemption covers the routing rules, not callability.