Expand README "For external consumers" with how to pin a plugin at
<plugin>-v<x.y.z> using apm's object form, why the shorthand form fails
on this host, and that Renovate updates are planned but untested
(ADR-0033 consequence 3). Point the ref: line in the bin, core, git and
kyberforge READMEs at that section.
Refs #235, #236
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Renovate's apm manager reads only the shorthand form, which apm cannot
install for a Gitea subpath, so the overridePackageName rule cannot work.
Record the object-form consumer pin and the planned, untested customManagers
route. The tag shape decision is unchanged.
Refs #235, #236
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Ask researchers to flag reference-doc needs, add the wayfinder "no"
branch, name the docs branch and give only applicable doc commands,
resolve the label ID before stripping Ready for Agent from the spec,
point the /to-spec rerun at step 8's block, and call /write-docs and
/research-docs user-run.
Refs: #255
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Why: write-docs belongs next to research-docs in plan, the plugin that owns
turning work into documented specs and tickets (ADR-0031 amendment, !251).
Implementation notes:
- write-docs moves from bin to plan as a pure rename; SKILL.md is
byte-for-byte unchanged (it already sits at ADR-0020's body-size budget).
- Versions: bin 4.0.0 -> 5.0.0, plan 0.4.0 -> 0.5.0 (the single plan bump
for spec #252). plan gains the documentation keyword.
- README plugin bullets move documentation from bin to plan; plan's outline
now says write-docs ships in plan.
- marketplace.json regenerated with apm pack.
BREAKING CHANGE: bin no longer ships write-docs; install plan for it.
Refs: #253
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Step 2 grills with grilling plus domain-modeling (no GLOSSARY.md or ADR
edits; candidates go to step 7) and exits early on the wayfinder track
with a copyable /wayfinder command. Step 5 uses codebase-design only on
module or interface changes and lists the docs needed downstream. Step 7
hands out /write-docs and /research-docs commands for the docs PR. Steps
8-10 show /to-spec and /to-tickets as code blocks, strip Ready for Agent
via gitea-labels-milestones, and group tickets under a Spec: milestone.
The outline moves these items into "What ships today".
Refs: #255
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Work too large for one agent session, or with decisions that cannot be settled yet, needs a
third track. /wayfinder is hand-invoked, so plan-track names it only as a command for the user
to run. Wayfinder is checked before spec-and-tickets because it ends the /plan flow early.
Refs: #254
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Add the Spec: milestone convention to the issue-tracker doc, update the
plan outline for three tracks (wayfinder), skill wiring and the agreed
not-yet-built items, and amend ADR-0031 for write-docs moving to plan.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Agent descriptions named the /plan prompt in slash form, which the
agent validator reads as an unresolved routing target. Regenerate
marketplace.json for plan 0.4.0. /plan now strips the ready label from
filed tickets without acceptance criteria, and the outline notes the
packages plan assumes are installed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Add the /plan orchestrator prompt for outline steps 0-10, four stub
agents (plan-gate, plan-researcher, plan-validator, plan-recorder) and
the plan-track skill. Steps 8-10 hand off to the hand-invoked /to-spec
and /to-tickets, which the user runs as their approval. /next now
offers /plan as a handoff. Bump plan to 0.4.0.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Why: codebase-design is the deep-module vocabulary that planning relies on
when it shapes a spec or ticket breakdown, so it belongs beside the other
planning skills. ADR-0031 still said the thinking tools live in mattpocock,
which this PR makes untrue.
Implementation notes:
- The codebase-design v1.3.2 pin moves from plugins/mattpocock to plugins/plan.
mattpocock's tdd and improve-codebase-architecture now reach it through plan.
- mattpocock's description says "architecture review" instead of "codebase
design"; marketplace.json is regenerated to match.
- ADR-0031 gets a dated amendment listing what moved to plan, why
setup-matt-pocock-skills is pinned in both packages, and why delivery
does not need to depend on plan.
BREAKING CHANGE: mattpocock no longer ships codebase-design; install plan
for it.
Refs: #246
ADR: 0031
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Why: plan owns turning a ticket or idea into a spec and tickets, but the skills
that do that work lived elsewhere: Matt Pocock's planning skills in the
mattpocock wrapper and research-docs in bin. Pulling them into plan is the
first step to growing the plugin from what already exists.
Implementation notes:
- The upstream pins for wayfinder, grilling, grill-me, grill-with-docs,
domain-modeling, research, prototype, triage, to-spec and to-tickets move
from plugins/mattpocock to plugins/plan, still at v1.3.2.
- setup-matt-pocock-skills is pinned in both packages: it writes the tracker
doc that plan's wayfinder, to-spec, to-tickets and triage read, and that
mattpocock's code-review and implement-spec read. apm dedupes the pin.
- research-docs and its evals move from bin to plan unchanged. It may be
split out again later.
- Cross-package routes (improve-codebase-architecture -> grilling,
implement-spec -> to-spec) still resolve under ADR-0029's corpus-wide walk.
- Versions: plan 0.2.0 -> 0.3.0, mattpocock 0.4.0 -> 0.5.0, bin 3.0.0 -> 4.0.0.
marketplace.json regenerated with apm pack.
Impact: a consumer that installs only mattpocock or only bin no longer gets
these skills and must add plan.
BREAKING CHANGE: mattpocock no longer ships the planning skills and bin no
longer ships research-docs; install plan for them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Why: a grilling round on the outline settled its general shape. The outline
now has two tracks (spec and tickets, or tickets only), three entry points
that all start at one gate, a validation split between a cheap gate before
grilling and a deep check after research, named loop-backs with a two-loop
park cap, a docs PR that records decisions before the spec, and a single
approval to file tickets and set Ready for Agent. Undecided points are
listed under "Open for later".
/ship moves into the plugin unchanged from the personal command, so the
/ship that /next hands off to ships with the package rather than living
only in one maintainer's ~/.claude. It is marked temporary: implementation
does not belong in plan long term.
Impact: the description in apm.yml, marketplace.json and architecture.md
no longer claims the plugin stops before implementation. plan goes to
0.2.0 because it ships a new prompt.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This repo installs what it ships (ADR-0018), so root apm.yml now consumes
the plan package added in #241. It could not be wired in that PR because
root dependencies resolve from remote main (ADR-0019). apm.lock.yaml
records plan 0.1.0 and its one deployed file, .claude/commands/next.md.
plan is the first package to ship a prompt, so .claude/commands/ is apm
install output for the first time. It joins .claude/skills/ and
.claude/agents/ in .gitignore for the same reason: committing a deployed
copy would add a mirror of plugins/<name>/.apm/ to drift against.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Why: add a home for turning a ticket or idea into a validated, researched
spec and agent-ready tickets, stopping before implementation (that is
delivery's job).
- New `plan` package at 0.1.0 (hybrid; claude, copilot, codex).
- docs/outline.md records the maintainer's intended flow (validate, grill
if needed, research repo + online, plan with options, agree, write
epic/feature spec, propose ticket breakdown) as intent only; nothing is
built yet beyond the prompt.
- Ships the existing personal `/next` command as
.apm/prompts/next.prompt.md with its body unchanged.
`disable-model-invocation` is dropped because apm prompt files do not
support it (verified by a throwaway apm install: clean, body identical).
- Root apm.yml does not consume it yet: its dependencies resolve from
remote main (ADR-0019), so wiring it in is a follow-up after merge, the
same two-step as ansible/k8s.
Impact: the catalog gains a package; marketplace version 0.8.1 -> 0.9.0
(minor).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Why: new_repo/make_fixture/make_repo created a mktemp dir and appended
it to the cleanup array, but every caller runs them as R="$(helper)".
The append happens in that command-substitution subshell and is lost,
so the EXIT trap removed nothing. Each run leaked one dir per call:
31, 54, 22 and 9 for the four suites, about 1,700 dirs on one day.
Implementation Notes:
- Each suite creates one RUN_TMP root up front with a single
`trap 'rm -rf "$RUN_TMP"' EXIT`; every fixture is `mktemp -d` under
it, so cleanup no longer depends on where the helper runs.
- The CLEANUP_DIRS / FIXTURES arrays are gone from these four suites.
- test-check-scope-walkup-sync.sh and test-check-apm-agents-valid.sh
already register fixtures in the caller and are unchanged.
Assisted-by: Claude Code
tag-plugin-releases.sh reads local tags only, so a tag that --apply created
but nobody pushed reports OK and exit 0. Tell agents to confirm with
git ls-remote before calling the release done.
Refs: #223
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Why: the untagged-run branch looked for an earlier run of a version only
from the start of the wanted range, while tag validation used the first
landing across all history. After a backfill, a revert to a pre-backfill
version was tagged on the revert commit, and the next dry run reported
that tag as a later landing: exit 2, blocking --apply for every plugin.
Implementation Notes:
- first_run() returns the first valid run of a version over the whole
first-parent history; tag validation, the tagged-elsewhere check, the
backfill start and the untagged-run check all use it.
- An untagged version whose first landing lies before the wanted range
reports RELEASED with a "before the tagged range; not tagged" note; no
tag is created and the exit code is unaffected.
- Preflight rejects a plugin name whose tag git check-ref-format refuses
(e.g. a..b, a*) before any history is read, so a glob character never
reaches a pathspec or ref pattern; tags are listed once and filtered by
exact prefix instead of a for-each-ref glob.
- git rev-list failure and an empty run list now exit 2 with a FAIL
message instead of being read as no history or crashing.
- The error footer addresses agents (stop and report, AGENTS.md) and the
maintainer (fix by hand, ADR-0033) separately.
Impact: ADR-0033 defines first landing precisely, documents the preflight,
and documents the maintainer escape from an INVALID run (hand-cut tag on
the next valid version; --apply stays all-or-nothing). New tests cover the
revert repro, a backfill range holding a pre-range version, the INVALID
escape, rev-list failure/empty history, a glob plugin name, and the footer.
Refs: #223
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Why: the maintainer decided the agent pushes release tags itself. A
pushed tag is an immutable release (an irreversible publish), so each
push still needs the maintainer's explicit yes in the conversation; the
approval, not who types the command, is the control.
Implementation Notes:
- ADR-0033 Decision: after --apply the agent shows the exact tags and
the printed push line, and on an explicit yes runs exactly that
`git push origin <tag>...` (never --tags, never other refs). The
maintainer-only and free Propose-tier variants are recorded as
rejected options.
- ADR-0033: --apply requires origin/main's first-parent history, and a
tag on a later landing of its version is an error.
- AGENTS.md, README.md and gates.md state the same rule; exit 2 still
means stop and report, never hand-fix, move or delete a tag.
Refs: #223
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Why: a commit of an already-merged feature branch is an ancestor of
origin/main, so the ancestor check let --apply walk that branch's
first-parent history and tag a feature commit (git-v1.3.9 on 025ad4a).
A valid annotated tag on a later run of a recurring version was also
accepted as the start point, hiding the versions between its first
landing and that run.
Implementation Notes:
- --apply now requires the ref on origin/main's first-parent list;
otherwise exit 2 and no tags.
- A tag must peel to the FIRST run of its version; one on a later run
is an ERROR row and never the start point.
- apm.yml pathspecs use :(literal), so a plugin name is never a glob.
- Repeated --plugin values are de-duplicated (bash 3.2-safe).
- The printed push hint says the push runs only on the maintainer's
explicit yes to that exact line.
Impact: tests cover all but the literal pathspec, which has no
observable effect on run grouping today and is defensive.
Refs: #223
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
An exit 2 from scripts/tag-plugin-releases.sh means a mis-cut tag or bad
input that only the maintainer may resolve; tags are immutable, so an
agent must never hand-fix, move or delete one.
Refs: #223
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
A mis-cut tag could serve as the start point and silently drop the runs
before it: x-v9.9.9 or a lightweight x-v1.0.1 on a later landing hid an
untagged 1.1.0 and --apply succeeded. Every reachable <p>-v<semver> tag is
now validated (annotated, peels to a landing of its own version); an
invalid one is an ERROR row naming it, blocks --apply, and is never the
start point.
Also from review:
- --apply needs origin/main and a ref on it; no local-main fallback.
- A version with literal quotes is invalid, not stripped.
- Plugin dirs are listed NUL-separated; a leading-dash name exits 2.
- With no tags, the backfill starts at the current version's first
landing, so a recurring version is released once, there (Case 2, 12d).
- expect_row ERE-escapes plugin and version.
ADR-0033 updated to match.
Refs: #223
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
ADR-0033 said the git-v1.3.8 one-off could be cut "with --ref", which without
--plugin tags every plugin at that commit, and said an agent may run --apply
only when asked, contradicting AGENTS.md. It also did not cover a reverted
version, which the script now reports as RELEASED.
- ADR-0033: a version is released once, at its first landing (revert case);
the one-off is the exact --ref <sha> --plugin git --apply command; agents run
--apply locally after a bump merges and the maintainer pushes; hand or Gitea
create_tag cuts are a maintainer path.
- AGENTS.md: agents cut release tags only with the script.
- delivery.md: Conventions bullets reduced to pointers, per the
delivery-repo-doc format (section 6, no restating).
Refs: #223
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
A reverted bump left a run whose tag peeled to an earlier landing, which the
script reported as ERROR. Because --apply is all-or-nothing, that ERROR stayed
in the wanted set forever and blocked every other plugin's tag.
A version is now released once, at its first landing. A run whose tag peels to
an earlier run of the same version, or whose untagged version already appears
earlier in the wanted set, reports RELEASED with a note and never blocks other
rows. A tag on no landing of its version remains ERROR.
Also: preflight every new tag name with git check-ref-format; report the tags
already created, with their push line, and exit 2 if git tag fails mid-run;
reject whitespace in apm.yml name and version. New tests cover the revert,
in-set repeats, delete and re-add, an off-history tag, an invalid version in the
wanted set, origin/main default resolution, and --apply with --plugin and --ref.
Refs: #223
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
AGENTS.md gains a session rule: a merged plugin version bump gets its
release tag via scripts/tag-plugin-releases.sh, and pushing the tag is
the maintainer's action (ADR-0032, ADR-0033). docs/agents/delivery.md
onboards the repo to the delivery team: checks, test paths, human
allowlist, and credential boundary.
Refs: #223
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
The marketplace build tagPattern now matches the per-plugin tags of
ADR-0033. Every entry has a local source:, so the compiled
marketplace.json is unchanged apart from the catalogue version bump.
The .gitignore comment for the root plugin.json now warns that apm pack
reads an existing copy back in preference to apm.yml, so releases must
be packed with --force.
Refs: #223
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Every plugin version on main gets an annotated <plugin>-v<version> tag,
cut by scripts/tag-plugin-releases.sh after merge. No hook can enforce
it: merges via Gitea run no local hook, and pre-commit skips a pushed
tag on an already-pushed commit, so tagging is a maintainer step.
ADR-0024 gains a forward note that its rejected option 2, ground 2, is
now addressed; gates.md explains why tagging is not a gate, and README
lists the maintainer's post-merge steps.
Refs: #223
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Consumers pinning a holocron package (Renovate's apm manager, apm
outdated) need a <plugin>-v<version> tag per plugin version; the
repo-level v* tags match no plugin. The script derives each wanted tag
from the ref's first-parent history of plugins/<p>/apm.yml, targeting the
commit where the version first landed on main.
It is a dry run by default (exit 1 when tags are missing); --apply
creates the missing tags locally and prints the push command. It never
pushes, fetches, moves, or deletes a tag.
Refs: #223
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi