Execute Ticket
Owns: one-ticket quality loop from semantic baseline through implementation, focused
simplification, review isolation gates, QA coordination, and verification handoff.
It does not choose from a folder, parse legacy Markdown, update the run ledger, move ticket
files, commit, push, open or edit PRs, merge, or clean worktrees.
Consume the normalized
Ticket Envelope supplied by the
caller. Verification semantics and the output record are owned by
verification-audit.
Inputs
Require:
- normalized envelope and ticket body;
- repository/worktree path and allowed file scope;
- source and current CandidateRef;
- acceptance criteria and explicit compatibility requirements;
- quality retry limit and any already-open ticket-scoped gates.
Reject stale CandidateRefs and unresolved implementation-start HITL gates. A human-only
verification gate may remain open, but it limits the final disposition.
Portable composition
Without delegation authority, invoke every stage inline in serial order; this is the
default and requires no AgentTool. Before selecting distinct workers, apply the
operating defaults; record the user-requested scope
and observed isolation.
Quality loop
- Inspect only the code, tests, specs, and current documentation needed to establish the
semantic baseline. For library, SDK, CLI, API, or cloud behavior, fetch current primary
documentation as required by the repository.
- Translate acceptance criteria into observable tests and invariants. When code behavior
changes, use the requested test-first flow: reproduce RED, implement GREEN, then
refactor without changing semantics.
- Implement only ticket scope. Preserve unrelated user changes and do not add
compatibility shims unless compatibility is explicit.
- Run targeted checks. Pass leaves manifests and content-addressed references instead of
pasted artifacts, enforce each leaf's declared normalized-byte intake and output caps,
and continue a
budget-exhausted partial result without dropping remaining scope.
Invoke focused cleanup through code-simplification only after GREEN; rerun affected
checks after any edit.
- Freeze the candidate diff and CandidateRef. Invoke read-only
code-review; describe it
as independent only when separate-context isolation was observed. Never edit during it.
- On blocker findings, mutate the candidate, invalidate prior review/QA/audit evidence,
and retry from the relevant stage. Stop at the configured retry limit.
- Invoke QA-plan construction through
qa-test-plan. Execute only feasible authorized
checks, and classify observations truthfully; simulated evidence never becomes live.
- Give the runner-provided normalized ticket ID, Ticket Envelope artifact reference, full
frozen CandidateRef, review result, QA plan/results, gates, provider records, and
requested operation to
verification-audit. It alone emits the canonical Verification
Record and claim ceiling.
Handoff
Return a structured result containing:
- ticket ID, Ticket Envelope artifact reference, and CandidateRef;
- changed paths and acceptance-criterion status;
- commands run and their observed outcomes;
- review findings and retry count;
- QA plan plus executed evidence references;
- each leaf's normalized execution mode, isolation, parallel flag, and authority reference;
- validated Verification Record or exact validation errors;
- unresolved human, credential, provider, or live-environment gates.
Do not claim done, PR-open, integrated, or production readiness. Those states belong
to the scheduler and the canonical verification reduction.
1---2name: execute-ticket3description: Implement one normalized ticket through a bounded quality loop and return a validated handoff without scheduler or Git finalization side effects.4---56# Execute Ticket78Owns: one-ticket quality loop from semantic baseline through implementation, focused9simplification, review isolation gates, QA coordination, and verification handoff.1011It does not choose from a folder, parse legacy Markdown, update the run ledger, move ticket12files, commit, push, open or edit PRs, merge, or clean worktrees.1314Consume the normalized15[Ticket Envelope](../ticket-autopilot/references/ticket-envelope-v1.md) supplied by the16caller. Verification semantics and the output record are owned by17[verification-audit](../verification-audit/references/verification-record.md).1819## Inputs2021Require:2223- normalized envelope and ticket body;24- repository/worktree path and allowed file scope;25- source and current CandidateRef;26- acceptance criteria and explicit compatibility requirements;27- quality retry limit and any already-open ticket-scoped gates.2829Reject stale CandidateRefs and unresolved implementation-start HITL gates. A human-only30verification gate may remain open, but it limits the final disposition.3132## Portable composition3334Without delegation authority, invoke every stage inline in serial order; this is the35default and requires no AgentTool. Before selecting distinct workers, apply the36[operating defaults](../ask-skills/OPERATING-DEFAULTS.md); record the user-requested scope37and observed isolation.3839## Quality loop40411. Inspect only the code, tests, specs, and current documentation needed to establish the42 semantic baseline. For library, SDK, CLI, API, or cloud behavior, fetch current primary43 documentation as required by the repository.442. Translate acceptance criteria into observable tests and invariants. When code behavior45 changes, use the requested test-first flow: reproduce RED, implement GREEN, then46 refactor without changing semantics.473. Implement only ticket scope. Preserve unrelated user changes and do not add48 compatibility shims unless compatibility is explicit.494. Run targeted checks. Pass leaves manifests and content-addressed references instead of50 pasted artifacts, enforce each leaf's declared normalized-byte intake and output caps,51 and continue a `budget-exhausted` partial result without dropping remaining scope.52 Invoke focused cleanup through `code-simplification` only after GREEN; rerun affected53 checks after any edit.545. Freeze the candidate diff and CandidateRef. Invoke read-only `code-review`; describe it55 as independent only when separate-context isolation was observed. Never edit during it.566. On blocker findings, mutate the candidate, invalidate prior review/QA/audit evidence,57 and retry from the relevant stage. Stop at the configured retry limit.587. Invoke QA-plan construction through `qa-test-plan`. Execute only feasible authorized59 checks, and classify observations truthfully; simulated evidence never becomes live.608. Give the runner-provided normalized ticket ID, Ticket Envelope artifact reference, full61 frozen CandidateRef, review result, QA plan/results, gates, provider records, and62 requested operation to `verification-audit`. It alone emits the canonical Verification63 Record and claim ceiling.6465## Handoff6667Return a structured result containing:6869- ticket ID, Ticket Envelope artifact reference, and CandidateRef;70- changed paths and acceptance-criterion status;71- commands run and their observed outcomes;72- review findings and retry count;73- QA plan plus executed evidence references;74- each leaf's normalized execution mode, isolation, parallel flag, and authority reference;75- validated Verification Record or exact validation errors;76- unresolved human, credential, provider, or live-environment gates.7778Do not claim `done`, `PR-open`, `integrated`, or production readiness. Those states belong79to the scheduler and the canonical verification reduction.