feat(delivery): add the implement stage agents and skills #215

Merged
Defame1297 merged 3 commits from feat/delivery-implement-stage into main 2026-11-23 21:31:08 +00:00
Owner

Builds Implement stage: lead, specialists, test-first and CI checks on Map: Infra and agent-team packages. delivery 0.3.0 → 0.4.0.

What's added

Agents (plugins/delivery/.apm/agents/)

  • delivery-implement-lead (sonnet, no file writes): the stage lead. Runs delivery-handoff's entry checks, reuses an open PR already linked to the issue instead of opening a second, then runs test-author → implementer → qa in sequence. It opens a draft WIP: PR after the test author pushes and removes WIP: when qa passes, which starts review. It stops with Status/Ready for Human on a spec/test conflict, a disputed test escalated a second time, the third qa fail, CI pending/missing, or a missing tool skill.
  • delivery-test-author (sonnet): writes acceptance checks via delivery-test-first.
  • delivery-implementer (sonnet): test paths are read-only, a disputed test is handed back rather than edited, never --no-verify/SKIP=, never rewrites history over the test author's commit.
  • delivery-qa (opus, no file writes): judges the draft PR's CI through delivery-ci-checks against a judgement checklist in its body. Verdicts are pass, fail, pending or stop.

Skills

  • delivery-test-first: turns acceptance criteria into failing tests, or post-merge assertions with a reason, written only under the repo's test paths. Each run makes one commit with the trailer Delivery-Stage: test-author (empty when there are only assertions) so the CI test-path freeze always starts. Also covers the dispute round: the test is amended or upheld.
  • delivery-ci-checks: a per-check verdict for a PR's or commit's CI by the exact names in docs/agents/delivery.md. skipped counts as passing, an unreported check is missing, statuses must belong to the PR's current head commit, and waiting is capped at 20 reads (~15 min). It ignores Gitea's overall commit state, which reads pending for a commit with no runs and success when a check was skipped.

Docs: plugins/delivery/docs/runtimes.md lists the Copilot CLI limitations (Copilot is untested).

Decisions (owner, on #192)

  • No tools: lists, per ADR-0016. A tools list can't name the Gitea MCP tools in a form both Claude Code and Copilot accept. The lead and qa carry disallowedTools: Edit, Write, NotebookEdit instead.
  • Claude model aliases with no model-policy. On Copilot the pinned model may silently fall back; this is documented in runtimes.md.

Also in this PR

  • delivery-repo-doc 0.1.3: its format reference now lists delivery-test-first among the skills that read delivery.md.
  • The delivery#0.4.0 executables allow key in root apm.yml and the regenerated marketplace.json. The guard hook itself is unchanged.

Checks

  • factory-audit passes on both skills and all four agents.
  • Pre-commit and pre-push hooks all pass.

For review

The PR body the lead writes starts with Closes #<issue>, so Gitea closes the ticket when the PR merges, before the verify stage runs. Switch it to Refs #<issue> if the ticket should stay open until verify passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi

Builds [Implement stage: lead, specialists, test-first and CI checks](https://git.rkdr.net/Mortis/Holocron/issues/192) on [Map: Infra and agent-team packages](https://git.rkdr.net/Mortis/Holocron/issues/166). `delivery` 0.3.0 → 0.4.0. ## What's added **Agents** (`plugins/delivery/.apm/agents/`) - `delivery-implement-lead` (`sonnet`, no file writes): the stage lead. Runs `delivery-handoff`'s entry checks, reuses an open PR already linked to the issue instead of opening a second, then runs test-author → implementer → qa in sequence. It opens a draft `WIP:` PR after the test author pushes and removes `WIP:` when qa passes, which starts review. It stops with `Status/Ready for Human` on a spec/test conflict, a disputed test escalated a second time, the third qa `fail`, CI `pending`/`missing`, or a missing tool skill. - `delivery-test-author` (`sonnet`): writes acceptance checks via `delivery-test-first`. - `delivery-implementer` (`sonnet`): test paths are read-only, a disputed test is handed back rather than edited, never `--no-verify`/`SKIP=`, never rewrites history over the test author's commit. - `delivery-qa` (`opus`, no file writes): judges the draft PR's CI through `delivery-ci-checks` against a judgement checklist in its body. Verdicts are `pass`, `fail`, `pending` or `stop`. **Skills** - `delivery-test-first`: turns acceptance criteria into failing tests, or post-merge assertions with a reason, written only under the repo's test paths. Each run makes one commit with the trailer `Delivery-Stage: test-author` (empty when there are only assertions) so the CI test-path freeze always starts. Also covers the dispute round: the test is `amended` or `upheld`. - `delivery-ci-checks`: a per-check verdict for a PR's or commit's CI by the exact names in `docs/agents/delivery.md`. `skipped` counts as passing, an unreported check is `missing`, statuses must belong to the PR's current head commit, and waiting is capped at 20 reads (~15 min). It ignores Gitea's overall commit state, which reads `pending` for a commit with no runs and `success` when a check was skipped. **Docs:** `plugins/delivery/docs/runtimes.md` lists the Copilot CLI limitations (Copilot is untested). ## Decisions (owner, on #192) - **No `tools:` lists**, per ADR-0016. A tools list can't name the Gitea MCP tools in a form both Claude Code and Copilot accept. The lead and qa carry `disallowedTools: Edit, Write, NotebookEdit` instead. - **Claude model aliases with no `model-policy`.** On Copilot the pinned model may silently fall back; this is documented in `runtimes.md`. ## Also in this PR - `delivery-repo-doc` 0.1.3: its format reference now lists `delivery-test-first` among the skills that read `delivery.md`. - The `delivery#0.4.0` executables allow key in root `apm.yml` and the regenerated `marketplace.json`. The guard hook itself is unchanged. ## Checks - `factory-audit` passes on both skills and all four agents. - Pre-commit and pre-push hooks all pass. ## For review The PR body the lead writes starts with `Closes #<issue>`, so Gitea closes the ticket when the PR merges, before the verify stage runs. Switch it to `Refs #<issue>` if the ticket should stay open until verify passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Claude added 3 commits 2026-11-23 20:01:01 +00:00
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
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
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
Defame1297 merged commit 5221b9ecd5 into main 2026-11-23 21:31:08 +00:00
Defame1297 deleted branch feat/delivery-implement-stage 2026-11-23 21:31:08 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Holocron#215