| name | task-delivery-guardrails |
| description | Repository-level guardrails for task delivery quality, verification, and completion artifacts |
Task Delivery Guardrails
When to use
Use this skill when dispatching implementation, refactor, bugfix, reliability, or integration tasks to an execution agent.
This is a general delivery guardrail skill, not limited to a specific phase plan.
Responsibility boundary
Use this file as the single source of truth for:
- Non-negotiable constraints
- Verification gate selection (Minimal/Standard/Full)
- Required delivery artifacts
- Rollback validation policy
docs/develop/plans/*phase-prompts.md should only define phase-specific work items and phase-specific acceptance additions.
Do not duplicate full guardrail rules in phase prompt docs.
Non-negotiable constraints
- By default, do not modify
docs/guide/* unless the task explicitly requires guide updates.
- For behavior-changing tasks, explicitly document intended behavior changes and compatibility impact.
If behavior change is not part of task scope, keep external behavior unchanged:
- API status code semantics
- core error semantics
- task state machine semantics
- Use isolated execution (unless explicitly waived by reviewer):
- dedicated branch (recommended:
feat/*, fix/*, refactor/*, hardening/*)
- dedicated worktree
- Keep changes minimal and task-scoped. No “bonus” unrelated refactors.
Required verification gates
Use tiered verification based on task scope:
Default to Standard.
Escalate to Full when touching cross-module, runtime-critical, or release-boundary paths.
Downgrading to Minimal requires explicit reviewer approval.
Minimal (docs/script/small scoped changes)
- Targeted tests for changed area (or
go test ./... if unsure)
go vet ./... (or targeted go vet package set when full scan is too heavy)
Standard (default for code changes)
go test ./...
go vet ./...
Full (high-risk, cross-module, release-boundary)
go test ./...
go test -race ./internal/tasks ./internal/api ./internal/replication
go test -race <affected-packages> (append additional affected packages beyond the default set)
go vet ./...
make e2e-quick
If task touches sqlc, also require:
make sqlc-generate
make sqlc-verify
Required delivery artifacts
Execution agent must provide:
- Commit hashes (ordered)
git show --stat --name-only <hash-range> summary
- Code-change summary + test-change summary
- Config compatibility notes (if config changed)
- Rollback command (
git revert <commit>)
- Unresolved items
- Branch/worktree proof:
git branch --show-current
git worktree list
If task touches sqlc, also include:
make sqlc-generate result summary
make sqlc-verify result summary
Rollback validation
Rollback verification is mandatory for high-risk or release-boundary changes.
For low-risk scoped tasks, rollback command is still required, but full rollback verification may be waived by reviewer.
When rollback verification is required, validate with:
go test ./...
go test -race ./internal/tasks ./internal/api ./internal/replication
go test -race <affected-packages> (append additional affected packages beyond the default set)
go vet ./...
make e2e-quick
Review output contract
After each review, always provide two blocks:
Review Verdict (for reviewer/user)
Worker Prompt (copy-paste instructions for execution agent)
Review Verdict format
- Merge decision:
approved or changes_required
- Findings ordered by severity (
P0, P1, P2) with file references
- Risk/impact statement (behavioral, compatibility, operational)
- Optional nits/non-blocking suggestions
Worker Prompt format
Must include:
- Scope and constraints (
only this stage, no unrelated refactor)
- Mandatory fix list with target files and expected behavior
- Explicit forbidden changes (if needed)
- Verification commands (selected by gate tier)
- Delivery artifacts required by this skill
Template:
Apply repository skill: task-delivery-guardrails.
Work only on the requested scope; do not perform unrelated refactors.
Objective:
- <one-sentence goal>
Mandatory fixes:
1) <file>: <required change and expected behavior>
2) <file>: <required change and expected behavior>
Forbidden changes:
- <if any>
Verification gate:
- <Minimal|Standard|Full> (reason: <short reason>)
Run and report:
- <commands from selected gate>
Delivery artifacts:
1) commit hashes (ordered)
2) git show --stat --name-only <hash-range>
3) code-change summary + test-change summary
4) config compatibility notes (if config changed)
5) rollback command (git revert <commit>)
6) unresolved items
7) branch/worktree proof (`git branch --show-current`, `git worktree list`)
Dispatch template
Paste this at the top of any execution dispatch prompt:
Apply repository skill: task-delivery-guardrails.
Enforce all constraints, verification gates, and delivery artifacts defined in:
.agents/skills/task-delivery-guardrails/SKILL.md