This PR is stacked on #275 (the #271 cutover), so merge #275 first. Until then the diff also shows #275's commits. Only the 8 commits after c2ba7f0 belong here. This PR does not overlap #276 (#272), so the two can merge in either order once #275 is in.
What changed
Each claim was re-checked against the repo-pinned apm 0.39.3, using throwaway packages.
apm-install
Step 1 now chooses between a per-repo uv pin and a global install.
The new references/uv-pin.md covers the dev dependency group, the committed uv.lock and the uv run --project <root> --frozen apm invocation. It also covers the one-time online sync, how the hook runs (--no-sync --offline plus an environment check), upgrading the pin, and why uvx and uv tool are not used.
A worked example shows one pinned repo and one unpinned repo.
The pip floor for the global methods is raised to Python 3.11.
apm-workflow and the apm-orchestrate agent
In a pinned repo they run uv run --project <repo root> --frozen apm; otherwise they use PATH apm.
New gotcha: without --project, uv run falls back to the PATH apm without warning. This was reproduced: from outside the repo it ran 0.28.0.
The agent now checks that the version it gets equals the pin, or is at least 0.39.2 when nothing pins it.
prompt-author
0.39+ keeps Claude-native command keys such as disable-model-invocation on the Claude target.
Cursor and opencode drop them. Kiro strips every key, with a warning that names them.
The dropped-keys message appears only with --verbose.
instructions-author
compile --target claude writes a CLAUDE.md that imports AGENTS.md.
An unquoted applyTo now fails the install.
Compile warns when applyTo matches no files.
A rule leaves .claude/rules/ only once compile has actually written it into AGENTS.md.
The schema, target-mapping, verify, improve, create and sources references are updated to match.
Other docs
forge's sources and routing table are updated.
kyberforge docs/hooks.md and delivery docs/guard-hook.md now explain that a bare grant key parks the hook (exit 0, nothing deployed) and that the #version suffix is ignored.
The root apm.yml grant comment is confirmed for 0.39.3.
Research digests
A new apm-cli-0-39-3-experiments source records the re-runs.
instructions-gotchas.md, prompt-gotchas.md, approvals-and-executables.md and cli-reference.md gain 0.39.3 sections.
Closes #273. Part of spec #268 and milestone 18.
**This PR is stacked on #275 (the #271 cutover), so merge #275 first.** Until then the diff also shows #275's commits. Only the 8 commits after c2ba7f0 belong here. This PR does not overlap #276 (#272), so the two can merge in either order once #275 is in.
## What changed
Each claim was re-checked against the repo-pinned apm 0.39.3, using throwaway packages.
- **apm-install**
- Step 1 now chooses between a per-repo uv pin and a global install.
- The new `references/uv-pin.md` covers the dev dependency group, the committed `uv.lock` and the `uv run --project <root> --frozen apm` invocation. It also covers the one-time online sync, how the hook runs (`--no-sync --offline` plus an environment check), upgrading the pin, and why uvx and `uv tool` are not used.
- A worked example shows one pinned repo and one unpinned repo.
- The pip floor for the global methods is raised to Python 3.11.
- **apm-workflow and the apm-orchestrate agent**
- In a pinned repo they run `uv run --project <repo root> --frozen apm`; otherwise they use PATH `apm`.
- New gotcha: without `--project`, `uv run` falls back to the PATH apm without warning. This was reproduced: from outside the repo it ran 0.28.0.
- The agent now checks that the version it gets equals the pin, or is at least 0.39.2 when nothing pins it.
- **prompt-author**
- 0.39+ keeps Claude-native command keys such as `disable-model-invocation` on the Claude target.
- Cursor and opencode drop them. Kiro strips every key, with a warning that names them.
- The dropped-keys message appears only with `--verbose`.
- **instructions-author**
- `compile --target claude` writes a CLAUDE.md that imports AGENTS.md.
- An unquoted `applyTo` now fails the install.
- Compile warns when `applyTo` matches no files.
- A rule leaves `.claude/rules/` only once compile has actually written it into AGENTS.md.
- The schema, target-mapping, verify, improve, create and sources references are updated to match.
- **Other docs**
- forge's sources and routing table are updated.
- kyberforge `docs/hooks.md` and delivery `docs/guard-hook.md` now explain that a bare grant key parks the hook (exit 0, nothing deployed) and that the `#version` suffix is ignored.
- The root `apm.yml` grant comment is confirmed for 0.39.3.
- **Research digests**
- A new `apm-cli-0-39-3-experiments` source records the re-runs.
- `instructions-gotchas.md`, `prompt-gotchas.md`, `approvals-and-executables.md` and `cli-reference.md` gain 0.39.3 sections.
## Versions
- **Plugins:** kyberforge 2.3.0 → **2.3.1**; delivery 0.8.0 → **0.8.1** (docs-only, bumped because the acceptance criteria require it); catalog 0.9.1 → 0.9.2.
- **Skills:**
- instructions-author 0.1.1
- prompt-author 0.1.1
- apm-install 1.0.2
- apm-workflow 1.0.4
- forge 1.0.6
- **Allow keys:** the root allow keys stay in the full-identity form: `git.rkdr.net/Mortis/Holocron/plugins/kyberforge#2.3.1` and `…/delivery#0.8.1`.
- **Marketplace:** re-packed.
## Checks and review
- pre-commit passes, and all 11 pre-push hooks pass, including bats, provenance, the metadata.version bump check and `apm pack --check-clean`.
- One clean-context review round found nothing blocking. All 9 of its non-blocking points are applied.
## Still to do
- **Not re-run on 0.39.3**, still labelled as 0.28.0 results: user-scope deploy paths, prompt packing, and BOM/NBSP/bidi scanning.
- **After merge:** run `scripts/tag-plugin-releases.sh` to create `kyberforge-v2.3.1` and `delivery-v0.8.1`. Push them only on the maintainer's explicit yes.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Claude
added this to the Spec: Upgrade apm to 0.39.3 and pin it per repo with uv milestone 2026-12-02 13:14:32 +00:00
Claude
added 22 commits 2026-12-02 13:14:32 +00:00
apm 0.39.3 matches executable grants on the package identity
<host>/<owner>/<repo>/<path>. The bare kyberforge#<version> and
delivery#<version> keys that 0.28.0 matched no longer match, so the first
0.39 install parks both hooks and rewrites .claude/settings.json without
them, while root apm audit --ci stays green (spike #269, on #268).
Rename both keys to git.rkdr.net/Mortis/Holocron/plugins/<name>#<version>
with type-level grants, as `apm approve --list` names them on 0.39.3. Keep
the version suffix convention; apm strips it before matching. Do not use
`apm approve`, which would content-pin, strip the block's comments and
park the hook on every script edit.
check-executables-allow-sync now derives each expected key from root
apm.yml's git + path dependency entry for the plugin, fails a bare key with
a message saying why, and fails a shipping plugin with no such entry. Both
readers carry the change, and the test covers URL and path spellings.
Refs: #271
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Add a root pyproject.toml with no build system, uv package mode off,
Python 3.11 or later, and a dev dependency group pinning apm-cli==0.39.3,
as ADR-0034 decides. Commit the uv.lock that hashes apm-cli and its
transitive dependencies, and ignore uv's .venv/.
Refs: #271
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Add scripts/lib/apm.sh, the one place the repo spells its apm command:
`uv run --project <repo root> --frozen apm`. --project comes from the
helper's own location, so it names the repo root even when apm runs inside
plugins/<name>/. Sourcing it keeps the git-env scrub (#204), and
require_apm_version fails with a clear message, naming `uv sync --frozen`,
when the resolved apm is below 0.39.2, unreadable, or uv is missing. APM
overrides the command, as ADR-0034 provides.
apm-audit-ci.sh and apm-pack-check-clean.sh use it. The audit script's
matching logic is unchanged; only its verified-against note now records
0.39.3.
tests/test-apm-gate-invocation.sh is seam B: a fake uv and a stub apm
first on a PATH without the real ones. It proves the command shape,
--project from a plugin directory, the scrub, and the version floor.
test-apm-hooks-git-env.sh reaches its stub through a fake uv, and the
real-apm probe in test-apm-current-hook.sh now runs the pinned apm.
Refs: #271
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
need_apm now runs apm through scripts/lib/apm.sh, so the suite exercises
the repo-pinned 0.39.3 and never a PATH apm. In this repo a missing uv or
an apm below 0.39.2 fails rather than skips, so run-tests.sh --strict
cannot pass without running these tests. Outside the repo it still falls
back to PATH apm and skips without one.
Three assertions pinned 0.28.0 behaviour and are updated to 0.39.3's:
compile --target claude writes a CLAUDE.md that imports AGENTS.md, an
unquoted applyTo fails install closed and deploys nothing, and compile
warns when applyTo matches no file. The skill's own text still describes
the 0.28.0 behaviour; that is left for a skill update.
Refs: #271
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Written by `uv run --frozen apm update --yes` on apm 0.39.3: lockfile
version 4, apm_version 0.39.3, and every dependency resolved to main at
feef6d8, which records kyberforge 2.3.0 from #270. This is the one
sanctioned exception to discarding lock churn on a feature branch
(ADR-0034, ADR-0019).
With the full-identity approvals both hooks stay deployed (exec_status
deployed). .claude/settings.json and .claude/apm-hooks.json keep the
PreToolUse guard and SessionStart entries; their only change is
kyberforge 2.3.0's hook timeout, 380 to 400. No apm-owned file was edited
by hand.
Refs: #271
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
README: uv replaces the global apm as a prerequisite, setup starts with
`uv sync --frozen`, and the offline note names both one-time steps.
gates.md: the apm hooks run through scripts/lib/apm.sh with plain
--frozen (and why the gates, unlike the SessionStart hook, keep the
sync), and check-executables-allow-sync expects the full package
identity apm 0.39 matches on.
Refs: #271
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
require_apm_version merged stderr into the --version output and took the
first X.Y.Z. When `uv run --frozen` syncs first, uv prints
`Using CPython 3.14.6` on stderr, so the check parsed 3.14.6 and passed
whatever apm reported. It now reads stdout only, matches apm's
`version X.Y.Z` banner, and shows the captured stderr only on failure.
The fake uv in the seam B test now writes that line to stderr, so the
regression stays pinned. Resolve the repo root with CDPATH cleared.
Refs: #271
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
How apm 0.39 writes a port into a package identity is unverified, so a
key derived from a git: URL with a port could be wrong while looking
right. The gate now fails clearly on one, naming `apm approve --list` as
the way to read the real identity. The script and gates.md record that
only an https URL on a lowercase host was checked against apm.
The test drops its GNU-only `sed -i` for a python3 rewrite, and covers
ssh:// and https URLs with a port under both readers.
Refs: #271
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
The probe moves HOME to an empty dir, which also moved uv's cache and its
managed Pythons, leaving uv cold. Pin UV_CACHE_DIR and
UV_PYTHON_INSTALL_DIR to the real ones resolved beforehand, and set
UV_OFFLINE so the probe runs the synced pin and never fetches. Verified
under `unshare -rn`.
Refs: #271
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Match `CLI version X.Y.Z`, the banner apm prints, instead of any
`version X.Y.Z`, so other version-like text on stdout is not taken for
apm's version. Fail clearly when APM holds only whitespace, instead of
running an empty command.
The seam B test now pins both properties. The fake uv also writes a
banner-shaped `uv CLI version 0.0.1` to stderr, so a parser reading the
merged stream fails it (23 failures with the round-1 bug restored). A
stub that prints `version 0.40.0` before a 0.28.0 banner must still fail.
The git-env test's stub prints the real banner.
Refs: #271
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
A comment and the name-mismatch message still described the bare
<name>#<version> key. Both now say <identity>#<version>, and that the
directory name is what finds the identity, through the root dependency
entry's `path: plugins/<dir>`.
Refs: #271
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
apm records each dependency's executables decision as `exec_status:` in
the lock. A gated_* value means the trust gate parked that package's
hooks, bin or MCP servers. Root `apm audit --ci` still passes in that
state, so a wrong key would leave the SessionStart hook or the delivery
guard uninstalled with every gate green (spike #269, section 7.3).
check-executables-allow-sync now scans the lock's dependencies and fails
on any gated_* entry, naming its identity and status, with a Why/Fix
block that starts from `apm approve --list`. It runs even when no plugin
here ships executables. The test covers deployed, two gated_* values
under both readers, the no-plugin case, and that neither the next
dependency nor the deployments: section is misreported. gates.md and the
hook description note it.
Refs: #271
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
The helper now seeds APM_CMD empty, and a bare "${APM_CMD[@]}" on an
array that can be empty fails under `set -u` on bash 3.2. The bash-4
construct scan in tests/test-vale-wrap.sh caught it at pre-push. Use the
guarded expansion that run_apm already uses.
Refs: #271
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
The lock committed in e87bd67 was written by `apm update` over an
apm_modules/ that apm 0.28.0 had populated. The 22 pinned third-party
dependencies (fluxcd gitops skills and mattpocock skills) were reused
from that cache, so the lock lacked their carried_licenses and LICENSE
deployment records. A fresh install writes them, which left the
committed lock out of step with every new checkout and failed
apm-pack-check-clean there on a content-hash mismatch.
Regenerated with `uv run --frozen apm install` after moving apm_modules/
aside: +331/-1, only carried_licenses for those 22 dependencies, their 22
LICENSE deployment records, and generated_at. A second fresh install into
another empty apm_modules/ left the lock byte-identical. Still the
sanctioned lock rewrite (ADR-0034); no tracked .claude/ file changed.
Refs: #271
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Re-run the 0.28.0 instruction, prompt and executable-grant experiments on
the repo-pinned apm 0.39.3 in throwaway packages, and record what changed
in instructions-gotchas.md and prompt-gotchas.md. Register the run as the
apm-cli-0-39-3-experiments source so the skills refreshed under #273 can
cite it.
Refs: #273
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
The skill still described apm 0.28.0. On 0.39.3 an unquoted applyTo fails
install and deploys nothing, the Claude compile writes AGENTS.md behind a
CLAUDE.md that only imports it, dedup is per instruction, unscoped rules
retire from .claude/rules/ once AGENTS.md carries them, and install skips
a hand-authored rule rather than overwriting it.
Update the Gotchas, the compatibility line and the target-mapping, schema,
verify, improve and create references, the template comment, the tests
README and the bats header. Bump metadata.version to 0.1.1.
Refs: #273
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
apm 0.39 keeps Claude Code command keys such as disable-model-invocation
on the claude target and still drops them on cursor, opencode, windsurf
and grok-build. It withholds hooks, names dropped keys only under
--verbose, deploys a body-only prompt to Kiro, fails install on a
hand-edited deployed command, and writes nothing when a prompt carries a
critical hidden character.
Update the Gotchas, the frontmatter contract, the compatibility line, the
template and every reference. Re-cite forge's prompt-routing table on the
0.39.3 run. Bump prompt-author to 0.1.1 and forge to 1.0.6.
Refs: #273
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Add a dispatch on where apm comes from: a repo that pins apm with uv, a
repo that wants the pin, or a global install. The new uv-pin reference
covers the pyproject.toml dev group, the committed uv.lock, running as
uv run --frozen apm, the one-time online sync, upgrading the pin, and why
uvx and uv tool are not used. It closes with a worked example of one
pinned and one unpinned repo.
Raise the pip floor to Python 3.11, which apm requires since 0.36.0, add
the package-manager installs, and note the 0.39.2 minimum for v4 locks.
Bump metadata.version to 1.0.2.
Refs: #273
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
apm-workflow spelled every command as bare apm, which in a repo that pins
apm with uv runs whatever is on PATH, possibly an apm that refuses the
repo's lockfile. Add a step that checks for the pin and runs
uv run --frozen apm there, and the PATH apm otherwise. apm-orchestrate's
version check now probes the same apm.
Bring the references level with apm 0.39.3: the Copilot marketplace
output profile, get_effective_type() still ignoring the declared type,
plain apm audit's exit codes, the uv form of the CI example, and audit
--ci needing an apm at least as new as the lock's writer. Bump
metadata.version to 1.0.4.
Refs: #273
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
The kyberforge and delivery hook docs still described apm 0.28.0: a bare
kyberforge#<version> or delivery key matching, and "parked pending
approval" printed for a granted package. On 0.39.3 a bare key parks the
hook and deploys nothing with exit 0, the full
<host>/<owner>/<repo>/<path> identity is required, and the #<version>
suffix is still ignored when matching. Re-run the copilot and codex hook
placement on 0.39.3: with codex in targets, apm now creates .codex/
itself.
Refs: #273
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Patch bumps for the apm 0.39.3 refresh of their skills and docs. The
root executables.allow keys follow at full identity, the catalog moves to
0.9.2, and the marketplace is re-packed. Refresh the root apm.yml grant
comment's quote of the gate-disabled message to the 0.39.3 wording; the
rest of that comment was re-checked on 0.39.3 and holds.
Refs: #273
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
- apm-workflow and apm-orchestrate always pass --project to uv run,
because uv run outside the project silently runs the PATH apm. The
agent now checks that the reported version equals the pin, or is
0.39.2 or later where nothing pins it, not only that it exits 0.
- A pin is a quoted apm-cli or apm_cli requirement plus a uv.lock,
matching the SessionStart hook, in apm-install, uv-pin.md and
apm-workflow.
- uv-pin.md spells the hook's exact invocation and its environment
check, and says scripts always pass --project.
- instructions-author and its research note: a Claude rule leaves
.claude/rules/ only when compile actually wrote it into AGENTS.md;
install-then-compile dedups it.
- prompt-author: Kiro strips every key with a warning, not silently.
- Record the 0.39.3 executables findings in approvals-and-executables.md
and the output-profile and type-routing facts in cli-reference.md, and
cite those digests.
- forge's routing table notes that Kiro gets the body only.
Refs: #273
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #273. Part of spec #268 and milestone 18.
This PR is stacked on #275 (the #271 cutover), so merge #275 first. Until then the diff also shows #275's commits. Only the 8 commits after
c2ba7f0belong here. This PR does not overlap #276 (#272), so the two can merge in either order once #275 is in.What changed
Each claim was re-checked against the repo-pinned apm 0.39.3, using throwaway packages.
references/uv-pin.mdcovers the dev dependency group, the committeduv.lockand theuv run --project <root> --frozen apminvocation. It also covers the one-time online sync, how the hook runs (--no-sync --offlineplus an environment check), upgrading the pin, and why uvx anduv toolare not used.uv run --project <repo root> --frozen apm; otherwise they use PATHapm.--project,uv runfalls back to the PATH apm without warning. This was reproduced: from outside the repo it ran 0.28.0.disable-model-invocationon the Claude target.--verbose.compile --target claudewrites a CLAUDE.md that imports AGENTS.md.applyTonow fails the install.applyTomatches no files..claude/rules/only once compile has actually written it into AGENTS.md.docs/hooks.mdand deliverydocs/guard-hook.mdnow explain that a bare grant key parks the hook (exit 0, nothing deployed) and that the#versionsuffix is ignored.apm.ymlgrant comment is confirmed for 0.39.3.apm-cli-0-39-3-experimentssource records the re-runs.instructions-gotchas.md,prompt-gotchas.md,approvals-and-executables.mdandcli-reference.mdgain 0.39.3 sections.Versions
git.rkdr.net/Mortis/Holocron/plugins/kyberforge#2.3.1and…/delivery#0.8.1.Checks and review
apm pack --check-clean.Still to do
scripts/tag-plugin-releases.shto createkyberforge-v2.3.1anddelivery-v0.8.1. Push them only on the maintainer's explicit yes.🤖 Generated with Claude Code
https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
The helper now seeds APM_CMD empty, and a bare "${APM_CMD[@]}" on an array that can be empty fails under `set -u` on bash 3.2. The bash-4 construct scan in tests/test-vale-wrap.sh caught it at pre-push. Use the guarded expansion that run_apm already uses. Refs: #271 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi