6.2 KiB
6.2 KiB
name, description
| name | description |
|---|---|
| implement-slice | Orchestrates end-to-end delivery of a Gitea issue or vertical feature slice across delegated implementation and QA subagents, checkpoint commits, static review, and pull request packaging. Never edits implementation code or self-certifies QA. Not for decomposing epics into issues (use gitea-plan) or executing a single already-delegated worker task (use tdd and git-manager). |
Implement Slice
Use when
- Delivering an approved Gitea issue or bounded feature slice end to end via coordinated subagents.
- Coordinating multi-task checkpoints, pre-committed QA rubrics, and final review gates.
- Not for decomposing raw epics into milestones and issues: use
gitea-plan. - Not inside an already-delegated implementation worker task: follow the assigned worker contract (
tdd,git-manager) without re-invokingimplement-slice.
Steps
- Verify session mode and read slice context. Check active session mode per
profile/AGENTS.md: iflearningis active, pause so the user can decide whether to switch todelivery. Read target Gitea issue/milestone state (tea issues,tea milestones), canonical direction docs (ARCHITECTURE.md,ROADMAP.md, ADRs when present), andgit status --short. Clarify ambiguous intent with the user; hand off togitea-planif tracking issues must be created first. - Select orchestration topology (
complexity x risk). Combine planning size (Small,Medium,Largefromgitea-plan) with assurance risk (Lightweight,Standard,High-Assurancefromcode-reviewandverify-slice) per orchestration-tiers, letting high-risk surfaces override size upward. Keep pure-orchestrator and context-budget invariants at every tier: retain only the plan, task status, commit SHAs, QA dispositions, blockers, and decisions; never edit implementation files, repair Git via code edits, self-certify QA, or ingest full test logs unless resolving a failure. - Lock plan, workspace topology, and pre-committed QA rubrics. Decompose the slice into ordered tasks/chunks with explicit scope boundaries, expected
git-managercheckpoint boundaries, workspace assignment (sequential shared branch vs. isolated.worktrees/<task>for concurrent workers), whether a PR applies, and falsifiable QA rubrics written before any worker spawns. Hard gate: pause for human approval before implementation begins. - Assign workspaces and delegate implementation. Govern branch and worktree lifecycle through
git-managerper orchestration-tiers (orchestrator decides topology and assigns workspaces;git-managerexecutes branch/worktree operations; workers edit and commit checkpoints inside their assigned workspace). Dispatch worker subagent(s) with the Implementation Assignment in handoff-contracts. Never run concurrent implementation workers in the same working tree. - Audit worker reports and run rubric QA. Verify returned Implementation Reports via concise read-only Git checks (
git status --short,git log,git show --stat) to confirm clean trees, commit SHAs, and scope containment. When the tier or chunk boundary requires independent QA, spawn a read-only/isolated QA subagent runningverify-sliceagainst the pre-committed rubric (withholding author narrative forHigh-Assuranceblack-box runs). - Triage outcomes and route rework. Classify non-passing outcomes using handoff-contracts: send code defects or missing seam tests back to the existing worker subagent (
send_message) when its context remains live; repair or escalateBLOCKED (env/fixture); pause for human authorization onBLOCKED (out-of-bounds)(live-infra); and if a rubric proves defective, record an explicit justified amendment (pausing for human approval if acceptance criteria or scope change). Loop Steps 4-6 until all slice tasks pass. - Enforce final-
HEADevidence invariant and finish. Runcode-reviewacross<base>...HEAD(including strategic project alignment). Enforce the final-HEADinvariant in handoff-contracts: requiredcode-review(Ready) andverify-slice(zero unhandledFAIL) evidence must identify the same finalHEADand applicable base revision; any diff change invalidates affected evidence and triggers re-verification (completing any newRV-*checks on finalHEADvia valid handshake reuse). Hard gate: never package a ready PR or declare completion until final-HEADevidence is current. If a PR applies, hand off togitea-pr; otherwise present the final-HEADevidence summary, commit range, and open decisions to the user.
Your call
- Session mode: decide whether to switch from
learningtodeliverybefore autonomous delegation. - Plan and pre-committed rubrics: approve task decomposition, assurance tier, workspace topology, and QA rubrics before any implementation worker spawns.
- Rubric amendments,
live-infra, and trade-offs: approve any rubric change that relaxes criteria or alters scope, authorizelive-infrachecks, and adjudicate unresolved conflicts or review disagreements. - PR packaging and release: approve PR creation/updates and authorize merge (or accept local slice delivery when no PR applies).
Done when
- All slice checkpoints are committed on a clean target branch,
code-review(Ready) andverify-slice(zero unhandledFAIL) match the same finalHEADand base revision, and eithergitea-prhas packaged the PR or final evidence has been delivered directly when no PR applies.
Hands off to
gitea-plan: when goals or epics require milestone and issue decomposition before slice execution.git-manager: to create/integrate slice branches and worktrees, commit worker checkpoints, or stop on conflicts.tdd: inside implementation workers for seam-level red-green development.verify-slice: inside QA subagents for pre-committed chunk and final-HEADruntime verification.code-review: for final-slice 4-axis static and strategic alignment inspection.diagnose: when an unexpected failure requires evidence-first root-cause investigation.gitea-pr: when a PR applies and final-HEADreview plus verification packets are ready.