Commit Graph
696 Commits
Author SHA1 Message Date
Defame1297andClaude Opus 5.5 c8853c7a44 docs(agents): stop and report on a release-tag script exit 2
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
2026-11-27 18:14:36 +00:00
Defame1297andClaude Opus 5.5 b3fd1f2f0c fix(scripts): validate every release tag and gate --apply on origin/main
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
2026-11-27 18:14:23 +00:00
Defame1297andClaude Opus 5.5 b3cdcc9bbb docs(adr): align ADR-0033, AGENTS.md and delivery.md on release tags
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
2026-11-27 17:56:27 +00:00
Defame1297andClaude Opus 5.5 f677698887 fix(scripts): release a recurring version once, at its first landing
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
2026-11-27 17:55:47 +00:00
Defame1297andClaude Opus 5.5 8b54a60fc8 docs(agents): add the release-tag rule and delivery onboarding doc
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
2026-11-27 17:41:12 +00:00
Defame1297andClaude Opus 5.5 227d8f09a0 chore(apm): switch tagPattern to {name}-v{version} and bump catalogue to 0.8.1
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
2026-11-27 17:41:02 +00:00
Defame1297andClaude Opus 5.5 32d81b32d2 docs(adr): record ADR-0033 plugin release tags as <plugin>-v<version>
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
2026-11-27 17:40:51 +00:00
Defame1297andClaude Opus 5.5 bc53b98d61 feat(scripts): add tag-plugin-releases.sh to cut per-plugin release tags
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
2026-11-27 17:40:39 +00:00
Defame1297 4722cfc14f Merge pull request 'chore(apm): update lock to Holocron main 92d39ae' (#233) from chore/apm-lock-update-92d39ae into main
Reviewed-on: #233
2026-11-27 16:39:36 +00:00
Defame1297andClaude Opus 5.5 7a3c287c56 chore(apm): update lock to Holocron main 92d39ae
Re-resolve the first-party dependencies to main after #232 so the
deployed skills carry the BOM escape fix and apm audit stops flagging
them.

Refs #208

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-27 16:23:45 +00:00
Defame1297 92d39ae1f9 Merge pull request 'fix(skills): write BOMs as escape sequences so apm audit stops flagging them' (#232) from fix/apm-hidden-chars-208 into main
Reviewed-on: #232
2026-11-27 16:18:46 +00:00
Defame1297andClaude Opus 5.5 7b13285666 test(adr0020): write the BOM fixture as an escape sequence
tests/test-adr0020-frontmatter.sh held a literal U+FEFF in its 'bom'
fixture, which apm audit flags as a hidden character. Write it as the
Python backslash-ufeff escape instead; the test still passes (36/36).

Refs #208

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-27 15:38:12 +00:00
Defame1297andClaude Opus 5.5 644c9d7f08 fix(skills): write BOMs as escape sequences so apm audit stops flagging them
The validate-adapter.bats fixtures and factory-audit's strip_bom held
literal U+FEFF characters, which apm audit reports as hidden characters
on every install. Replace each with the Python backslash-ufeff escape;
behaviour is unchanged (fixtures still emit EF BB BF, all 349 bats tests
pass).

Bump factory-audit to 1.0.7 (ADR-0022); provider-adapter-author's change
is under tests/, which the bump gate ignores.

Refs #208

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-27 14:48:15 +00:00
Defame1297 af2eea2bab Merge pull request 'chore(apm): update lock to Holocron main 6a48774' (#231) from chore/apm-lock-update into main
Reviewed-on: #231
2026-11-27 13:32:24 +00:00
Defame1297andClaude Opus 5.5 3941b109f7 chore(apm): update lock to Holocron main 6a48774
Re-resolve first-party dependencies with apm update; all Holocron
plugins now pin 6a48774 (delivery 0.3.0 -> 0.8.0).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-27 13:15:54 +00:00
Defame1297 6a48774e84 Merge pull request 'fix(hooks): scrub git env before apm pre-push hooks run' (#229) from fix/apm-audit-git-env into main
Reviewed-on: #229
2026-11-27 08:04:30 +00:00
Defame1297 2c6e82747c Merge branch 'main' into fix/apm-audit-git-env 2026-11-27 08:04:05 +00:00
Defame1297 5dc924e0f7 Merge pull request 'fix(scripts): discover agents when the checkout is a Claude worktree' (#228) from fix/worktree-agent-discovery into main
Reviewed-on: #228
2026-11-27 08:03:58 +00:00
Defame1297andClaude Opus 5.5 190d9fb322 fix(hooks): keep git -c overrides when scrubbing apm's git env
Why: the `git rev-parse --local-env-vars` loop in clean-git-env.sh also
unset GIT_CONFIG_PARAMETERS / GIT_CONFIG_COUNT, silently dropping `git -c`
overrides (extraHeader, credentials, safe.directory) that apm's remote
clones may need. Only the repo-locating vars caused #204.

Implementation Notes:
- clean-git-env.sh now unsets an explicit list only: GIT_DIR,
  GIT_WORK_TREE, GIT_INDEX_FILE, GIT_OBJECT_DIRECTORY, GIT_COMMON_DIR,
  GIT_PREFIX, GIT_IMPLICIT_WORK_TREE; gates.md updated to match.
- apm-pack-check-clean.sh points at the real gates.md paragraph.
- run-tests.sh's comment now says git exports GIT_DIR to hooks only from
  a linked worktree, matching LESSONS.md.
- test-apm-hooks-git-env.sh isolates from global/system git config.
- Reflow the "Two of these shell out to apm" paragraph in gates.md.

Refs #204

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-26 23:35:31 +00:00
Defame1297andClaude Opus 5.5 f2c483ca2c fix(hooks): scrub git env before apm pre-push hooks run
Why: git push from a linked worktree exports an absolute
GIT_DIR=<main>/.git/worktrees/<name> to its hooks. apm audit --ci's drift
replay (apm 0.28.0) runs git init / git checkout in a temp dir with an env
copied from os.environ, so the inherited GIT_DIR won: init wrote
core.bare=true into the shared .git/config and checkout moved the worktree's
HEAD to the lock-pinned commit. tests/run-tests.sh already scrubbed these
vars for itself; the apm hooks never pass through it.

Implementation Notes:
- scripts/lib/clean-git-env.sh unsets GIT_DIR, GIT_WORK_TREE,
  GIT_INDEX_FILE, GIT_OBJECT_DIRECTORY, GIT_COMMON_DIR, then everything
  git rev-parse --local-env-vars lists (a superset).
- scripts/apm-audit-ci.sh sources it; apm-pack-check-clean now runs via
  the new scripts/apm-pack-check-clean.sh wrapper, which sources it too.
- tests/test-apm-hooks-git-env.sh runs both hooks from a linked worktree
  of a throwaway repo against a stub apm that runs git init/checkout in a
  temp dir, asserting core.bare stays false, the worktree keeps its
  branch, and apm sees no GIT_DIR.
- LESSONS.md gets the incident entry and a correction to 2026-11-13: git
  exports GIT_DIR to hooks only from a linked worktree. gates.md documents
  the scrubbed env.

Fixes #204

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-26 23:21:41 +00:00
Defame1297andClaude Opus 5.5 bc7673d4f0 fix(scripts): discover agents when the checkout is a Claude worktree
check-apm-agents-valid.sh filtered find output with
`-not -path '*/.claude/worktrees/*'`, matched against absolute paths.
When the checkout itself lives at <repo>/.claude/worktrees/<name>/,
every path contains that segment, so every agent file was excluded
and the gate reported "N of N tracked agent files were not discovered".

The walk starts at $REPO_ROOT/plugins, so a nested worktree is
unreachable and the filter is dropped. The test suite gains a case that
runs the gate from a fixture under .claude/worktrees/, and now unsets
inherited GIT_* variables so its git fixtures never resolve to the
caller's repository.

Fixes #199

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-26 22:31:05 +00:00
Defame1297 bf86679d42 Merge pull request 'feat(delivery): read a failing dry-run-gated check as a human gate' (#226) from feat/delivery-gated-failure into main
Reviewed-on: #226
2026-11-26 18:58:00 +00:00
Defame1297andClaude Opus 5.5 0d53fc6981 chore(marketplace): record delivery 0.8.0
The guard hook is unchanged; the executables.allow key and the
regenerated marketplace.json follow the package version bump.

Refs: #225

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-26 18:40:49 +00:00
Defame1297andClaude Opus 5.5 244f4de1bd feat(delivery): read a failing dry-run-gated check as a human gate
A gated dry run fails on purpose while it awaits its label, and no bot
commit can satisfy a gate that needs a fresh human label per push, so
sending its failure to the implementer loops. delivery-ci-checks now
classifies a failure, error or warning on a dry-run-gated check as
gated-failure: passing, never waited on, with its job link and one-line
log cause. The Awaiting gate line becomes Human gate, carrying each
check's state. The 0.7.0 rule ignoring skipped statuses on a gated
check is unchanged.

qa never fails on a gated-failure and reads dry-run output only on
success; its human-gate line feeds the implement lead's Open questions.
Review check 7 records a gated-failure as a non-blocking finding for
the approver. The format's dry-run-gated definition is loosened to
allow a failing status before the label.

Refs: #225

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-26 18:40:47 +00:00
Defame1297 e3d4219323 Merge pull request 'docs(adr): amend ADR-0032 with the pre-merge Ansible dry run' (#222) from docs/adr-0032-ansible-dry-run into main
Reviewed-on: #222
2026-11-25 16:53:26 +00:00
Defame1297andClaude Opus 5.5 82491b073f docs(adr): amend ADR-0032 with the pre-merge Ansible dry run
The reopened Ansible --check --diff now runs in CI from the base
branch's copy (pull_request_target) with production credentials:
automatic on human-authored PRs, gated on bot PRs by an allowlisted
human's Dry run label, renewed per push. Secrets carries the full
rule; Enforcement layers keeps a short version pointing there.

The gated-run rejection in Considered Options narrows to ungated runs
on bot PRs, and human PRs running PR code against production before
approval becomes an accepted risk.

Refs: #219, #200

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-25 16:35:10 +00:00
Defame1297 1f24556833 Merge pull request 'feat(delivery): add the dry-run-gated role and allow several dry runs' (#221) from feat/delivery-dry-run-gated into main
Reviewed-on: #221
Reviewed-by: Defame1297 <[email protected]>
2026-11-25 11:50:37 +00:00
Defame1297andClaude Opus 5.5 42301cf38e fix(delivery): close the skipped-gate hole in dry-run-gated
A gated workflow whose job-level label condition is unmet posts
skipped, and a later label event on the same SHA posts a newer skipped
that would mask an earlier gated failure. delivery-ci-checks now
ignores skipped statuses for a dry-run-gated check and takes the latest
of the rest, reading none as awaiting-gate. The format exempts
dry-run-gated from the skipped-passes rule and requires the workflow
to run only on its named gate label; the gatherer confirms that filter
and takes a gated check's name from the forge or lists it as open.

The review's awaiting-gate finding links the PR's files view, the
implement lead and delivery-handoff name the gated dry run's label as
human-only, and qa's and the lead's restatements are trimmed.

Refs: #218

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-25 09:22:36 +00:00
Defame1297andClaude Opus 5.5 a96b6134a5 chore(marketplace): record delivery 0.7.0
The guard hook is unchanged; the executables.allow key and the
regenerated marketplace.json follow the package version bump.

Refs: #218

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-25 08:58:13 +00:00
Defame1297andClaude Opus 5.5 6cb27a576d feat(delivery): add the dry-run-gated role and allow several dry runs
A repo's CI checks may now list one or more dry-run checks and any
number of dry-run-gated ones: a dry run that posts its status only
after an allowlisted human adds a label. delivery-ci-checks classifies
a gated check with no status on the pinned SHA as awaiting-gate, which
passes the verdict, is never waited on, and is reported on its own
Awaiting gate line. qa never fails on it, the implement lead notes it
in the Handoff's Open questions, and the review records it as a
non-blocking finding for the approver. No agent sets the gate label.

Refs: #218

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-25 08:58:03 +00:00
Defame1297 d72afcd1bf Merge pull request 'feat(delivery): add the verify stage, flux-diagnose and k8s-diagnose' (#217) from feat/delivery-verify-stage into main
Reviewed-on: #217
2026-11-24 21:16:51 +00:00
Defame1297andClaude Opus 5.5 df684c5ee0 chore(marketplace): record delivery 0.6.0, gitops 0.2.0 and k8s 0.2.0
The guard hook is unchanged; the executables.allow key and the
regenerated marketplace.json follow the package version bumps.

Refs: #194

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-24 20:35:11 +00:00
Defame1297andClaude Opus 5.5 5081206c45 feat(delivery): add the verify stage: delivery-operator and delivery-verify
delivery-operator (opus; no Edit, Write, NotebookEdit or Agent) is the
verify-stage lead. After a human approves and merges, it reads the
delivery doc at the merge commit's first parent, proves its kubeconfig
cannot write (four auth can-i probes), loads the routed tool skills and
runs delivery-verify. It posts the operator report as its own comment,
then the final Handoff (Next command none on pass).

delivery-verify:
- stops first if the change was already reverted;
- waits for Flux through flux-diagnose's Applied check (15-minute cap)
  and reads post-merge CI per workflow through delivery-ci-checks
  (45-minute cap), accepting a later cumulative run as cover;
- checks the PR's post-merge assertions with Read-tier commands only;
- ties a failure to the change only when that is established, and
  otherwise stops. A tied failure opens a revert PR (Ready for Human,
  built in a temporary worktree); it never reverts on its own.
For Flux the guarantee is bounded: the merge commit applied and the
inventory HelmReleases are Ready. The assertions prove a values or chart
change took effect.

The delivery doc format gains a seventh parsed section, Post-merge
checks (glob -> push-event status names, or none when Flux pulls the
change), so delivery-repo-doc goes to 0.2.0. delivery-ci-checks takes a
caller check list and wait cap; delivery-handoff carries the verify
stops.

delivery 0.6.0.

Refs: #194

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-24 20:35:04 +00:00
Defame1297andClaude Opus 5.5 277d6f5826 feat(k8s): add k8s-diagnose for read-only workload triage
k8s-diagnose triages pods, probes, scheduling, storage and Service
endpoints under a view-only kubeconfig: one evidence command per
finding and a likely cause, never a fix applied. It stops with
"no cluster access" or the RBAC gap instead of looking for other
credentials, and accepts hand-offs from flux-diagnose.

k8s 0.2.0; the .gitkeep placeholder goes now that a skill exists.

Refs: #194

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-24 20:34:48 +00:00
Defame1297andClaude Opus 5.5 2a6eea3db1 feat(gitops): add flux-diagnose for read-only Flux reconcile checks
flux-diagnose reports source, Kustomization and HelmRelease state,
answers "has this commit been applied yet?" with bounded polling (a cap
counted in 60-second kubectl wait pauses, never flux reconcile), and
walks a failure down the source -> Kustomization -> HelmRelease chain,
handing workload problems to k8s-diagnose. Read tier only; it uses the
caller's kubeconfig and never looks for credentials.

gitops 0.2.0; the package description now covers live reconcile state.

Refs: #194

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-24 20:34:42 +00:00
Defame1297 67e2523252 Merge pull request 'feat(delivery): add the review stage and the review hand-back loop' (#216) from feat/delivery-review-stage into main
Reviewed-on: #216
2026-11-24 08:27:38 +00:00
Defame1297andClaude Opus 5.5 0258cff316 feat(delivery): add the review stage and the review hand-back loop
delivery-reviewer (opus; no Bash, Edit, Write or NotebookEdit) is the
review-stage lead. It judges the PR through the new delivery-review
skill and posts one COMMENT review per round. Gitea refuses
REQUEST_CHANGES from a PR's own poster, and the reviewer runs as the bot
that opened the PR. The review opens with `Delivery review: round <n> —
blocking|clear`, and each blocking finding is tagged with the role that
must fix it: [test-author] (with its dispute key), [implementer] or
[human].

Routing: a [human] finding, or a 3rd blocking round, stops with Ready
for Human. Other blocking rounds post the Handoff and put `WIP:` back,
handing the PR to delivery-implement-lead. A clear round hands on to
delivery-operator. A relaunch finishes a crashed routing, using whether
a later Handoff links the review.

delivery-review checks the change against the acceptance criteria and
re-judges every test-path change itself, because a dispute round moves
the CI freeze boundary. It also judges post-merge assertion reasons,
security and the dry run. It reads the delivery doc at the PR's base
ref, and a PR that changes the test-path rules is a [human] finding.

Hand-back: delivery-handoff lets the implement stage take a PR, with
the inbound Handoff required and the gate checked on the issue it
closes. The implement lead first sends [test-author] findings through
delivery-test-first's dispute flow, which now takes review findings,
then gives the implementer the rest. Dispute verdicts are one keyed
`- Dispute verdict:` line copied into every Handoff comment, so later
sessions never re-judge an item or re-dispute a settled test.

delivery-repo-doc, delivery-test-author, delivery-implementer and
delivery-qa are aligned with these contracts. Package bumped to 0.5.0,
with the marketplace allow key and manifest.

Refs: #193

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-23 22:44:18 +00:00
Defame1297 5221b9ecd5 Merge pull request 'feat(delivery): add the implement stage agents and skills' (#215) from feat/delivery-implement-stage into main
Reviewed-on: #215
2026-11-23 21:31:08 +00:00
Defame1297andClaude Opus 5.5 a2c065cdc7 chore(marketplace): record delivery 0.4.0 in the allow key and manifest
The guard hook is unchanged; the executables.allow key and the checked-in
marketplace.json follow the package version bump.

Refs: #192

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-23 19:52:05 +00:00
Defame1297andClaude Opus 5.5 f82076936a chore(delivery): bump delivery-repo-doc for its format consumer list
The format reference now names delivery-test-first among the skills
that parse docs/agents/delivery.md.

Refs: #192

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-23 19:44:00 +00:00
Defame1297andClaude Opus 5.5 3ef0a3c8a9 feat(delivery): add the implement stage agents and skills
Implement stage for the delivery team: delivery-implement-lead runs
test-author -> implementer -> qa in sequence on a draft WIP: PR and
removes WIP: when qa passes, starting review. delivery-test-first turns
acceptance criteria into acceptance checks committed under the
Delivery-Stage: test-author trailer; delivery-ci-checks reads a PR's or
commit's CI by the names in docs/agents/delivery.md.

Agents follow ADR-0016 (no tools: lists, disallowedTools fences on the
lead and qa) and pin Claude model aliases without model-policy; Copilot
limitations are documented in docs/runtimes.md. delivery 0.4.0.

Refs: #192
ADR: ADR-0016, ADR-0031, ADR-0032

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-23 19:35:12 +00:00
Defame1297 29b5bfea5a Merge pull request 'chore(lock): deploy delivery 0.3.0 and its PreToolUse guard hook' (#214) from chore/deploy-delivery-guard-hook into main
Reviewed-on: #214
2026-11-23 19:07:58 +00:00
Defame1297andClaude Opus 5.5 64b52ab37c fix(lock): regenerate hook config in apm's from-empty order
Why: apm-audit-ci replays the install into an empty tree, where packages
integrate in lockfile order and delivery's PreToolUse lands before
kyberforge's SessionStart. The session-start install merged into the
existing settings.json instead and appended PreToolUse after it. Same
hooks, different key order, so the byte-for-byte drift check failed.

Implementation Notes: deleted both files and reran apm install; the result
is byte-identical to the replay scratch and stable across reinstalls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-23 18:38:31 +00:00
Defame1297andClaude Opus 5.5 440569c327 chore(lock): deploy delivery 0.3.0 and its PreToolUse guard hook
Why: apm install resolved every first-party package to cbd6033, which brings
delivery from 0.1.0 to 0.3.0. That release ships the ADR-0032 guard as a
PreToolUse hook, so apm merged it into .claude/settings.json and
.claude/apm-hooks.json. These are apm's own output; leaving them uncommitted
is drift that fails the apm-audit-ci pre-push hook (ADR-0019).

Impact: every tool call in this repo now runs the delivery guard. It fails
closed via onFailure: block (Claude Code >= 2.1.295).

ADR: 0032
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-23 18:21:57 +00:00
Defame1297 cbd6033ee4 Merge pull request 'feat(delivery): add the delivery-handoff stage protocol skill' (#213) from feat/delivery-handoff into main
Reviewed-on: #213
Reviewed-by: Defame1297 <[email protected]>
2026-11-23 18:07:47 +00:00
Defame1297andClaude Opus 5.5 5a4e4c0674 fix(delivery): stop unknown agents and wrong item kinds at the inbound check
An agent with no gate-table row had no defined stop; it now stops first
in the inbound check with a plain comment. The item kind is checked
before the Handoff lookup, 'latest' means newest by creation time, and an
allowlist of '- none' counts as empty.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-23 17:39:10 +00:00
Defame1297andClaude Opus 5.5 d4226e152b fix(delivery): keep inbound-rule stops out of the handoff trail
Why: every Stop posted a Handoff comment whose Next command relaunched the
stopping agent, including stops raised by the inbound rule itself. A second
launch then passed the inbound check, and a wrong-agent stop buried the
correct pointer.

Implementation Notes:
- Stops before the inbound check passed (Steps 1-2) post a plain comment;
  later stops keep the relaunching Handoff comment.
- gates.md defines a Handoff comment strictly and owns the inbound stop
  wordings; the planner stops at the inbound check in v1.
- Heading names and where-to-post live once, in handoff-comment.md.
- Gotcha and delivery-repo-doc checklist item: the two Status labels must
  not share an exclusive scope.
- GLOSSARY gains Step mode and Run mode; ADR-0032 scopes the gate-label
  check to stages that have one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-23 17:21:51 +00:00
Defame1297andClaude Opus 5.5 fc09f77fb3 fix(delivery): let a stopped stage be relaunched
A Stop wrote Next command `none`, and the inbound rule stopped on a
latest `none`, so a stage that stopped once stopped on every relaunch.
A Stop's Next command now relaunches the stage that stopped, `none`
means only the final stage, and the inbound rule stops only when the
latest Handoff comment does not launch this stage's agent. Gate checks
still run on a relaunch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-23 17:05:42 +00:00
Defame1297andClaude Opus 5.5 9774a217d4 fix(delivery): apply review findings to delivery-handoff
Define the inbound Handoff comment as the latest one whose Next command
launches this stage, and stop when the latest has Next command none.
Name the six headings in Step 2, keep the required/optional rule in the
gates table and the posting location in handoff-comment.md only, narrow
the description to one capability clause, and declare the Gitea MCP
tools the skill uses. Let delivery-repo-doc's format consumers restate
the minimum they parse, and add the next stage's command to the
glossary's Handoff comment entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-23 16:57:04 +00:00
Defame1297andClaude Opus 5.5 2c0120cda6 feat(delivery): add the delivery-handoff stage protocol skill
Every delivery Stage lead needs the same entry and exit discipline: read
the repo's delivery doc, read the inbound Handoff comment, check the
stage's gate, and end with one fixed-shape Handoff comment that tells the
human the exact launch line for the next stage.

- delivery-handoff: entry checks, per-stage gate table (implement label,
  review non-WIP PR, verify merged PR with a non-stale, non-dismissed
  allowlisted approval), the Status/Ready for Human stop path, and the
  Handoff template with Claude Code and Copilot CLI Next commands
- ADR-0032 amended: stage leads check gate state only in step mode; the
  who-set-the-label check moves to the run-mode launcher (gitea-mcp has
  no timeline method and the human already launches each stage)
- delivery-repo-doc format.md aligned with the amendment (0.1.2)
- delivery package 0.2.0 -> 0.3.0, with the executables.allow key and
  marketplace entry kept in step

Refs #191

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-23 16:49:36 +00:00