- Update handoff and boundary references across active skills and draft-curation from git-commit and git-workspace to git-manager - Align diagnose and inspect-flake-update approval checkpoints with profile/AGENTS.md commit autonomy
3.9 KiB
3.9 KiB
Pull Request Lifecycle and Evidence Synthesis
Reference for gitea-pr. Defines PR states, evidence synthesis template, and feedback triage workflow.
1. Pull Request Lifecycle States
Draft (WIP) -> Review -> Changes Requested -> Ready for Merge -> Merged
| |
+-- [Rework/Fix] ----+
- Draft (WIP): PR opened early for visibility. In Gitea, prefixed with
WIP:or flagged--draft. CI may run; reviews are informal. - Review: Feature complete, working tree clean, static
code-reviewand runtimeverify-sliceevidence packets attached. Ready for formal audit. - Changes Requested: Reviewer identified defects, missing tests, or security concerns. Agent addresses feedback, commits fixes via
git-manager, and refreshes evidence. - Ready for Merge: All review threads resolved, static review confirms
Ready, runtime checks pass, and mergeability is green. - Merged: Merged into target base branch by the human owner. Associated issues are closed automatically by Gitea.
2. Standard PR Description Template
Every PR description synthesizes static provenance and runtime evidence into a transparent record:
Closes #<issue-index>
## Summary of Changes
<Concise overview of what was built, why, and what architectural decisions were made.>
## Scope & Non-Goals
- **In Scope**: <Itemized list of changes included in this PR>
- **Out of Scope**: <Explicitly deferred items or non-goals>
## Static Review Provenance (`code-review`)
- **Base Commit**: `<base-sha>` -> **Head Commit**: `<head-sha>`
- **Committed Diff Fingerprint**: `sha256:<hash>`
- **Axes Breakdown**:
- Spec & Scope: Pass
- Standards & Smells: Pass
- Seam & Test Integrity: Pass
- Defensive Invariants: Pass
- **Review Status**: `Ready`
## Runtime Verification Ledger (`verify-slice`)
| Check ID | Perspective | Scope | Description | Outcome |
| :--- | :--- | :--- | :--- | :--- |
| RV-01 | Behavioral / Seam | local | Unit & integration suite execution | PASS |
| RV-02 | State & Concurrency | local | Race condition & lock invariant check | PASS |
| RV-03 | Security / Host Boundary | local | Host socket validation boundary | PASS |
## Residual Risks & Operational Considerations
- **Environment Prerequisites**: <Any required environment variables, sockets, or permissions>
- **Reversibility**: <How to cleanly revert this slice if unexpected regressions occur>
3. Review Feedback Triage Workflow
When comments or change requests arrive on a PR:
- Extract review comments:
tea pulls review-comments <index> - Categorize comments:
- Defects & Invariants: Logic errors, broken tests, edge-case crashes (require code fix).
- Spec & Scope Clarifications: Questions about intent or architectural fit (require response or doc update).
- Nits / Polish: Minor style preferences that do not violate repo standards (human owner decides priority).
- Implement fixes on the feature branch:
- Use
tddor direct edits. - Commit fixes incrementally following
git-managerconventions (e.g.fix(gitea-pr): address review feedback).
- Use
- Re-verify after changes:
- Run
code-reviewto confirm the updated diff fingerprint is clean. - Run
verify-sliceto substantiate runtime assertions.
- Run
- Reply and resolve threads via
tea:- Reply to comment:
tea pulls reply <index> <comment-id> "Fixed in <sha>" - Resolve thread:
tea pulls resolve <comment-id>
- Reply to comment:
- Push updates to remote:
git push origin <branch>
4. Release Authority Guardrail
Automated skills and checks inform the human owner; they never make the merge decision independently:
- Neither passing unit tests nor a
Readycode review implies permission to executetea pulls merge. - The human owner reviews the consolidated ledger, assesses residual risks, and explicitly authorizes merge execution.