- Add skills/verify/SKILL.md implementing the 3-phase GitHub runtime QA, promotion, human-gated merge closeout, and explicit Draft PR abort workflow within the 80-line skeleton limit. - Add skills/verify/references/qa-dispositions.md porting risk-proportional black-box QA perspectives, local vs. live-infra boundaries, falsifiable FAIL-if checks, 5-state dispositions, remote CI inspection, and the stale head_sha/needs_rework cr-review-meta gate. - Add skills/verify/references/closeout-and-abort.md defining the Verification Ledger template, Projects v2 promotion/closeout mutations via issue.projectItems, human rejection rollback, explicit Draft PR abort path, and zero todo.txt responsibility.
5.4 KiB
Verification Ledger, Promotion, Closeout, and Abort
Reference for verify Phase 2 (Promotion), Phase 3 (Human Merge Gate and
Closeout), human rejection rollback, and explicit Draft PR abort.
Zero
todo.txtresponsibility:verifynever reads, edits, or deletestodo.txtorimplement-statecheckpoint files.implementsolely owns checkpoint lifecycle and cleanup.
1. Verification Ledger Comment Template (Phase 2)
Post one Verification Ledger comment on the PR only after Phase 1 passes
(verified cr-review-meta head_sha + verdict=ready, zero FAIL, zero
unresolved BLOCKED (env/fixture) or INCONCLUSIVE, and green CI):
gh pr comment <pr-number> --body-file <verification-ledger.md>
Ledger Template
## Verification Ledger
- **Reviewed Head SHA**: `<head_sha>`
- **Static Provenance**: `code-review` (`verdict=ready`)
- **Rigor Tier**: `<Lightweight | Standard | High-Assurance>`
- **Remote CI (`gh pr checks`)**: `PASS`
- **Contract Drift**: `<none | summary from PR body>`
### Runtime QA Dispositions
| Check ID | Scope | Disposition | Evidence |
| :--- | :--- | :--- | :--- |
| `RV-01` | `local` | `PASS` | `<command / observable proof>` |
| `RV-02` | `live-infra` | `BLOCKED (out-of-bounds)` | `<preserved command & criteria>` |
### Notes / Operator Follow-ups
- `<None, or list any BLOCKED (out-of-bounds) checks awaiting operator window>`
2. Phase 2: Draft PR Promotion (Work in Progress -> Review)
- Confirm the Verification Ledger comment is posted on
<pr-number>. - Promote the Draft PR to ready-for-review:
gh pr ready <pr-number> - Move the linked issue card
Work in Progress -> Reviewusing theissue.projectItemssingle-query resolution andSINGLE_SELECTmutation in github-projects-v2.md (Section 4). Confirm the transition ownership matches planning-contract.md.
3. Phase 3: Human Merge Gate and Post-Merge Closeout
Present the verification packet to the human owner (static provenance, runtime
dispositions, CI status, any BLOCKED (out-of-bounds) operator items, and the
PR body's Contract Drift value per
pr-and-drift.md) and wait for
explicit merge authorization.
3a. On Human Approval (Merge + Review -> Completed)
- Merge the pull request using the repository's configured merge strategy (for
example, squash merge):
gh pr merge <pr-number> --squash --delete-branch - Move the linked issue card
Review -> Completeddirectly viaissue.projectItemsper github-projects-v2.md (Section 4):- Query
issue.projectItems(first: 20)filtered byproject.number == $project_number(fromAGENTS.md). - Resolve
project_id,item_id(PVTI_...),status_field_id(PVTSSF_...), and theCompletedoption_id. - Execute
updateProjectV2ItemFieldValuewithvalue: { singleSelectOptionId: $completed_option_id }.
- Query
- Partial-failure idempotency: If the PR merge succeeds but the Projects v2
mutation fails (network/API error), report the partial state clearly.
Re-running
verifyPhase 3 board closeout orprojectsreconciliation safely moves the stranded cardReview -> Completedwithout re-merging. - Contract Drift chaining: Read the fixed-format
Contract Drift:line from the PR body per pr-and-drift.md:- If
Contract Drift: none: closeout is complete; recommend next ready slice viaprojectsorimplementif applicable. - If
Contract Drift!=none: chainreconcile-docsfirst to update canonical docs (ARCHITECTURE.md,ROADMAP.md,docs/designs/*.md), followed byprojectsto align downstream issues and milestones.
- If
3b. On Human Rejection Rollback (Review -> Work in Progress)
If the human owner rejects the merge or requests rework:
- Convert the PR back to Draft:
gh pr ready --undo <pr-number> - Move the linked issue card
Review -> Work in Progressviaissue.projectItemsper github-projects-v2.md (Section 4). - Record the human owner's requested changes and route back to
implement(orcode-reviewif only review triage is needed).
4. Abandoned / Superseded Draft PR Abort Path
Explicit invocation only: Enter this path ONLY when the user explicitly asks to abort or close an abandoned/superseded Draft PR. Never trigger this path automatically from a failed Phase 1 check or Phase 3 rejection.
- Verify GitHub repository identity via
gh repo view --json urland confirm the target PR is an open Draft PR (gh pr view <pr-number> --json state,isDraft,url). - Confirm explicit user approval stating the PR to close and the linked issue
card that will revert to
Backlog. - Close the Draft PR with an explicit reason comment:
gh pr close <pr-number> --comment "Closing abandoned/superseded Draft PR: <reason>" - Move the linked issue card back to
Backlogviaissue.projectItemsper github-projects-v2.md (Section 4). - Do not touch
todo.txtorimplement-statefiles; if an orphaned branch checkpoint exists locally,implementowns its cleanup.