fix(forge): scope the primitive route to apm hooks

- say apm hook/instruction/prompt so pre-commit hooks stay with pc-author
- restore the idea-without-a-home trigger
- cite checkpoints forge's apm routes actually hit
- diff version bumps against the remote default branch

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KkT7RSDwDbmrM9T34b6sTi
This commit is contained in:
2026-09-29 08:00:29 +00:00
parent fd86ee42f4
commit 06b01f8afc
4 changed files with 23 additions and 19 deletions

View File

@@ -25,9 +25,11 @@ Skip this step entirely if no ancestor `apm.yml` carries a `type:` field: the ar
standalone or scoped to a user agent directory, and there is no package to version.
Skip the bump, and report that you skipped it, if the branch already moved this package's `version`
for unreleased work: `git diff $(git merge-base HEAD main) -- <package>/apm.yml` shows a changed
`version:` line. One bump covers all unreleased work on a branch — `primitive-author` skips on the
same condition — so bumping again here double-counts it.
for unreleased work: `git diff $(git merge-base HEAD origin/main) -- <package>/apm.yml` shows a
changed `version:` line. Diff against the remote default branch, not a local `main` that may be
stale; if it is not `main`, resolve it with `git symbolic-ref refs/remotes/origin/HEAD`. One bump
covers all unreleased work on a branch — `agent-author` and `primitive-author` skip on the same
condition — so bumping again here double-counts it.
## Delegate the bump