Implement stage: lead, specialists, test-first and CI checks #192
Notifications
Due Date
No due date set.
Blocks
Depends on
#193 Review stage: delivery-reviewer and delivery-review
Mortis/Holocron
#187 Copilot CLI agent behaviour from docs
Mortis/Holocron
#190 delivery guard hook
Mortis/Holocron
#191 delivery-handoff skill
Mortis/Holocron
Reference: Mortis/Holocron#192
Reference in new issue
Block a user
Part of #166
Question
Author the implement stage. It may split into two sessions if it outgrows one.
Agents:
delivery-implement-lead(stage lead):WIP:) PR after the first pushWIP:when qa passes, which starts the review stageStatus/Ready for Humandelivery-test-author: writes acceptance checks. For code these are failing tests. Where no test applies they are post-merge assertions with a reason.delivery-implementer: works with tests read-only, hands disputed tests back, never uses--no-verify.delivery-qa: judges the draft PR's CI. Its judgement checklist lives in its body.Skills:
delivery-test-first: acceptance criteria → acceptance checks; the test framework comes from the tool skill named indelivery.md.delivery-ci-checks: find and read a PR's or a commit's CI runs by the check names indelivery.md.Requirements:
model.agentfor the lead.factory-audit.Inputs from Copilot CLI agent behaviour from docs (#187)
delivery-agent setsmodel-policy: requirednext tomodel. Without it,--model, a usersubagentsoverride or an Auto session silently replaces the pin, and an unavailable model silently falls back.agenton any agent that delegates. Unknown tool names are ignored silently, so a typo fails without an error.include-custom-instructions: trueon subagents that need the repo's AGENTS.md (and so thedelivery.mdpointer). Without it they don't receive it..claude/agentsfile overrides.github/agents(#4437, open), and a user-level agent with the same id replaces the repo one. Another reason for thedelivery-prefix.task,explore,code-review). Copilot never delegates to those.--agentselection is dropped right after interactive startup.Source: findings note.
Inputs from delivery-repo-doc and the ansible-homelab-mono delivery.md
These apply to
delivery-ci-checksanddelivery-qa. The format lives indelivery-repo-doc'sreferences/format.md(PR 210); cite it by that name, not by path.## CI checksitems: each is- `<exact status name>`: <role>.dry-run(exactly one),test-path,test,lint,build,other.skippedstatus as passing. Path-filtered PR workflows report as skipped. An example isansible-homelab-mono'sMolecule Role Tests / molecule (pull_request), which only runs forroles/pihole.## Test paths: either- globs file: `<path>`(e.g..gitea/test-paths) or one- `<glob>`per line.## Contents → skills:- `<glob>`: `<skill>`, …. Load the union of skills across all matching lines. If a listed skill isn't installed, it's a hard stop.Inputs from delivery-handoff skill
delivery-implement-leadloadsdelivery-handoff(PR 213): gate isStatus/Ready for Agenton the issue (state only, not who set it); inbound Handoff is optional.delivery-reviewer.Build decisions (owner, before build)
The ticket's "strict tools lists" requirement conflicts with ADR-0016: plugin-scope
.apm/agents/*.agent.mdcarries onlyname,description,modelanddisallowedTools, andfactory-auditenforces that. A strict list also can't name the Gitea MCP tools portably (Claude usesmcp__gitea__*, Copilotgitea/*, and Copilot silently ignores names it doesn't know).tools:. Agents that must not write files (delivery-implement-lead,delivery-qa) carrydisallowedTools: Edit, Write, NotebookEdit. The real boundary stays credentials + guard hook + CI test-path check (ADR-0032). The strict-list requirement is dropped.model-policy. On Copilot the pin may fall back silently; this is documented as a known limitation (Copilot untested in v1). The Copilot-onlyinclude-custom-instructionsis dropped for the same reason and documented as a limitation.delivery-implement-lead,delivery-test-authoranddelivery-implementeronsonnet;delivery-qaonopus, so the judge runs on a stronger model than the builder.Resolution
Built and merged in PR 215 (
delivery0.4.0).factory-auditpasses on every item, and all pre-commit and pre-push hooks pass.Agents
delivery-implement-lead(sonnet,disallowedTools: Edit, Write, NotebookEdit):delivery-handoffSteps 1–3;WIP:, or a branch with no PR → Stop;WIP:PR (bodyCloses #<issue>+ the test author's## Acceptance checksblock) → implementer → qa;passremovesWIP:and posts a Handoff that launchesdelivery-reviewer;fail, qapending/stop, anyescalate, a missing skill, or a spec/test conflict.delivery-test-author(sonnet) anddelivery-implementer(sonnet): hard constraints are written as rules that hold whatever the lead's prompt says. Test paths are read-only to the implementer, a disputed test goes back asfile::test: reason, never--no-verify, no history rewrite over the test author's commit.delivery-qa(opus, no file writes): its judgement checklist is in its body; it posts nothing and returnspass | fail | pending | stop.Skills
delivery-test-first: every criterion becomes a failing test or a post-merge assertion with a reason; a criterion that can't be checked stops the run.Delivery-Stage: test-authorcommit per run, empty when there are only assertions, so the CI freeze always starts.amended,upheldorescalate.- noneunder test paths stops the run.delivery-ci-checks: judges each check listed indelivery.mdby its exact name, on the PR's current head SHA.pass | fail | missing | pending;skippedcounts as a pass.stateis ignored, because it readspendingfor a commit with no runs andsuccessfor a skipped check.Decisions (owner, see the comment above)
tools:lists (ADR-0016).model-policy.plugins/delivery/docs/runtimes.md.Facts for later tickets
defame1297/ansible-homelab-mono.delivery.mdlists(pull_request)check names, but post-merge runs report(push). Posted to the verify-stage ticket.