diff --git a/docs/adr/0017-plugin-content-mirror-bridges-apm-to-host-discovery.md b/docs/adr/0017-plugin-content-mirror-bridges-apm-to-host-discovery.md index 070eceb..176e969 100644 --- a/docs/adr/0017-plugin-content-mirror-bridges-apm-to-host-discovery.md +++ b/docs/adr/0017-plugin-content-mirror-bridges-apm-to-host-discovery.md @@ -10,6 +10,12 @@ accurate about how Claude Code's installer works; what changed is that nothing c they governed; the symlink amendment's underlying gap is not — see ADR-0024's consequences. This ADR's content is kept below as the historical record; it is no longer the current model. +*Amended 2026-12-02 (holocron#272): the apm 0.28.0 mechanism under Considered options holds on apm +0.39.3, checked in source. `build_plugin_manifest` still strips `("agents", "skills", "commands", +"instructions")`, and `synthesize_plugin_json_from_apm_yml` still emits only identity fields. One +addition: for the `codex` ecosystem only, 0.39.3 adds `skills` and `mcpServers` pointers after the +strip.* + --- This ADR is a follow-on correction to ADR-0015 (Microsoft APM replaces hand-authored diff --git a/docs/adr/0019-session-start-hook-keeps-the-apm-install-current.md b/docs/adr/0019-session-start-hook-keeps-the-apm-install-current.md index 3ee5b82..2a43a62 100644 --- a/docs/adr/0019-session-start-hook-keeps-the-apm-install-current.md +++ b/docs/adr/0019-session-start-hook-keeps-the-apm-install-current.md @@ -12,6 +12,11 @@ repo-pinned `uv run --frozen` apm, else `PATH` apm, else exit 0) instead of a ba The "0.28.0" claims below (the correction near line 80, the `apm outdated` prose at about line 143, and the sidecar reproduction at about line 217) are pending re-verification on 0.39.3 under #265.* +*Amended 2026-12-02 (holocron#272): those claims are re-checked on apm 0.39.3, and the results sit +beside each claim. The version-blind matching holds, but the key's name half is now the full +package identity (#271). The `apm outdated` prose holds. The sidecar reproduction was not re-run. +In this repo every apm command named below runs as `uv run --frozen apm ...` (ADR-0034).* + ## Context The pre-existing answer was `scripts/git-hooks/post-push`, which pulled the marketplace clone and @@ -92,6 +97,18 @@ question is only what catches a missed edit. > justified by this repo's own requirement that the key track `plugins/kyberforge/apm.yml`'s > `version:`, not by an apm-level failure mode. `docs/spec/gates.md` carries the same correction. +> **Amendment (2026-12-02, holocron#272) — the key is now the full package identity.** The +> version-blind matching in the correction above holds on apm 0.39.3: `is_package_approved`, +> `materialize_exec_map` and `_map_grants` keep the same roles in its source. The bare +> `kyberforge#` key described above no longer matches on 0.39. apm 0.39 matches a grant on +> the package identity `apm approve --list` prints, so the key is +> `git.rkdr.net/Mortis/Holocron/plugins/kyberforge#` (#271). A bare key leaves the hook +> parked: the first 0.39 install drops it from `.claude/settings.json`, and root `apm audit --ci` +> still passes (spike #269). `scripts/check-executables-allow-sync.sh` therefore derives each +> expected key from root `apm.yml`'s `git:` + `path:` entry for the plugin, fails a bare key, and +> fails any `gated_*` `exec_status` in `apm.lock.yaml`. The `#` half is still a repo-level +> record. `docs/spec/gates.md`, "check-executables-allow-sync", has the details. + A comment in the `executables:` block is not enough: this repo gates generated-content drift, marketplace mirror drift and vale style drift deterministically, and a silent-staleness failure is strictly worse than any of them. So `scripts/check-executables-allow-sync.sh` runs at pre-push, @@ -158,6 +175,10 @@ silently and no refresh ran. With six packages merging independently, one-behind case rather than an edge, which means the mechanism failed most often in exactly the situation it exists for. The match is now `outdated dependenc(y|ies) found`. +> **Amendment (2026-12-02, holocron#272) — holds on apm 0.39.3.** `apm outdated --help` still lists +> no `--json` or other machine-readable flag, and `apm_cli/commands/outdated.py` still picks +> `dependency` or `dependencies` by count. + The deeper lesson is the one `post-push` already taught and this repeated: every assertion about the hook mocked `apm`, so the suite was green while the hook could not detect the common case. Mocks verify the code against its author's belief about the interface, never the interface. The suite now @@ -228,6 +249,12 @@ protecting, that nothing repo-authored goes in that file, is unchanged. > is apm output like the settings entry it describes, so it is committed for the same reason and > changes only when the owning package is renamed or moved. `.claude/hooks/` stays ignored. +> **Amendment (2026-12-02, holocron#272) — not re-run on apm 0.39.3.** The sidecar is still +> committed, and with it root `apm audit --ci` passes all 15 checks on 0.39.3. The 0.28.0 failure +> without the sidecar was not reproduced. apm 0.38 and later refuse to replace managed files that +> lack deployment evidence, so the failure without it may now look different. That was not +> established. + **Native consumers are protected by a guard, not by the gate.** A host installing holocron through `claude plugin install` auto-discovers `hooks/hooks.json` and does not consult apm's trust gate at all. The script therefore exits silently when there is no `apm.lock.yaml` in the working directory, diff --git a/docs/adr/0021-plugin-descriptions-state-a-domain-boundary.md b/docs/adr/0021-plugin-descriptions-state-a-domain-boundary.md index 2de9c9a..6261339 100644 --- a/docs/adr/0021-plugin-descriptions-state-a-domain-boundary.md +++ b/docs/adr/0021-plugin-descriptions-state-a-domain-boundary.md @@ -118,6 +118,12 @@ result against the working tree, and `content-integrity` scans for hidden Unicod the finding: both gates compare bytes, neither reads the `description` key for sense, so propagation is still not verification. +*Amended 2026-12-02 (holocron#272): on apm 0.39.3, root `apm audit --ci` runs fifteen checks, not +ten. It adds `lockfile-targets-current`, `native-mcp-ownership`, `local-bundle-hooks`, +`hook-approval-pins` and `exec-status-current`. A plugin package runs two, with `content-integrity` +added to `lockfile-exists`. None of the new checks reads the `description` key for sense, so the +finding stands. The current list is in `docs/spec/gates.md`, "apm-audit-ci".* + **And the obligation is unbounded.** Under enumeration, adding one skill to `bin`, `git` or `gitea` means editing two copies of a prose string on top of the version bumps and regeneration any skill addition already owes under this repo's release policy diff --git a/docs/adr/0026-a-plugin-package-is-not-an-install-root.md b/docs/adr/0026-a-plugin-package-is-not-an-install-root.md index 3792c66..1903136 100644 --- a/docs/adr/0026-a-plugin-package-is-not-an-install-root.md +++ b/docs/adr/0026-a-plugin-package-is-not-an-install-root.md @@ -2,6 +2,15 @@ **Status:** Accepted (2026-09-20) +*Amended 2026-12-02 (holocron#272): re-verified on apm 0.39.3 in a scratch copy of +`plugins/mattpocock`. Without a package lock, the same line and `1 of 1 check(s) failed` appear, so +the waiver is unchanged. With one from `apm lock`, the rest of the root set arms (fourteen more +checks, not nine), and `drift` fails on 74 unintegrated files under `.agents/skills/`. Two details +below changed. A plugin package whose `lockfile-exists` passes now runs two checks, with +`content-integrity` added. Plain `apm audit` now prints `No recognized deployed primitives found -- +nothing to scan`. The malformed-entry case still separates `--ci` (exit 1, now a failing +`manifest-parse` row) from plain `apm audit` (exit 0), so the rejection of dropping `--ci` stands.* + `plugins/onedev` is the first plugin package in this repo to declare a real dependency. It pins `code.onedev.io/onedev/tod#v4.3.4` so that a consumer installing `onedev` from the holocron marketplace picks up OneDev's eight TOD skills transitively — a `marketplace.packages` entry takes a diff --git a/docs/adr/0029-routing-targets-resolve-through-subpath-dependencies.md b/docs/adr/0029-routing-targets-resolve-through-subpath-dependencies.md index d919703..fb96160 100644 --- a/docs/adr/0029-routing-targets-resolve-through-subpath-dependencies.md +++ b/docs/adr/0029-routing-targets-resolve-through-subpath-dependencies.md @@ -27,6 +27,9 @@ are packages and already resolve through the `path:` branch. The name is a conve 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. +*Amended 2026-12-02 (holocron#272): holds on apm 0.39.3. A `uv run --frozen apm install` deploys +`mattpocock/skills/skills/engineering/wayfinder#v1.3.2` to `.claude/skills/wayfinder/`.* + **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. diff --git a/docs/adr/0033-plugin-releases-are-tagged-plugin-v-version.md b/docs/adr/0033-plugin-releases-are-tagged-plugin-v-version.md index 4c4e426..52a7b30 100644 --- a/docs/adr/0033-plugin-releases-are-tagged-plugin-v-version.md +++ b/docs/adr/0033-plugin-releases-are-tagged-plugin-v-version.md @@ -6,6 +6,15 @@ check in Context and the apm behaviour in consequence 3) are pending re-verification on 0.39.3 under #265, once apm is pinned per repo (ADR-0034). The Decision is unchanged.* +*Amended 2026-12-02 (holocron#272): re-checked on apm 0.39.3.* +- *The tag pattern holds in source: `apm_cli/marketplace/tag_pattern.py` still lists + `{name}-v{version}`. The synthetic-repo `apm outdated` run was not repeated.* +- *Consequence 3's shorthand failure holds. A scratch install of + `git.rkdr.net/Mortis/Holocron/plugins/lint#` fails with `Repository + Mortis/Holocron/plugins/lint not found on git.rkdr.net`. The tag in that run did not exist, but + the failure comes at repository resolution, before any ref is read.* +- *The `rstrip(".git")` bug is fixed in 0.39.3, which uses `removesuffix(".git")`.* + ## Context Issue #223. Consumers that pin a holocron package need a git tag per package version. Two consumers diff --git a/docs/adr/0034-apm-is-pinned-per-repo-with-uv.md b/docs/adr/0034-apm-is-pinned-per-repo-with-uv.md index 589d7ca..4d24a70 100644 --- a/docs/adr/0034-apm-is-pinned-per-repo-with-uv.md +++ b/docs/adr/0034-apm-is-pinned-per-repo-with-uv.md @@ -92,6 +92,8 @@ different name. apm and the version check. 4. **Re-verification is pending.** ADR-0019 and ADR-0033 state facts verified against apm 0.28.0. They are re-checked on 0.39.3 under #265, and each carries a note saying so. + *Amended 2026-12-02 (holocron#272): done. ADRs 0017, 0019, 0021, 0026, 0029 and 0033 carry + dated notes with the 0.39.3 result for each claim.* Related: ADR-0019, ADR-0024, ADR-0033; #245, #265; Defame1297/ansible-homelab-mono#1078; Mortis/Kamino#499.