ai-implement-workplan
ai-implement-workplan
Claim and execute one Workplan ticket. One invocation performs one implementation pass, one required-check pass, and one review. The invocation authorizes the unambiguous tracker writes and repository commit in this process.
Before using wp, load the ai-workplan skill. If it is unavailable, stop and tell the user to install it. Follow its pointers to the dispatch, ticket, review, and machine-output references. They define command flags, claim behavior, response envelopes, exact text storage, and typed errors. Use only wp --json for tracker reads and writes. Do not read the database or web UI, and do not retry database_busy.
Exit contract
After a successful claim, classify a controlled stop by what the run needs next:
| Condition | Status |
|---|---|
| Implementation, required-check, review, or commit failure | failed |
| Information only a human can supply | input_required |
| Human approval required to continue | approval_required |
For each controlled stop, preserve the worktree and run these commands in order, substituting the classified status: