Read and work existing revisions
Supporting reference for gh-rev.
Use this workflow when the goal is to understand review status, implement requested changes, or resolve findings. This is a primary gh-rev use case, not an afterthought to review creation.
Example: report review status
For “Are there reviews for this PR?” or “What remains unresolved?”:
Resolve the target with
gh-rev status, using--prfor published PR state or--branchfor local branch state. Unlikeopen,statusdoes not create a pending review snapshot.Read
context.mdand everyrev-*.mdbeneath the returnedtarget_path, not only the newest file.Query exact unresolved markers:
gh-rev status todo owner__repo --pr 1153 # or: gh-rev status todo owner__repo --branch feature/cacheSummarize review count, recommendations, and unresolved findings. Do not infer approval merely from an empty current TODO list; resolved findings and each revision’s recommendation remain part of the history.
Example: implement requested changes
For “Take the reviews, fix the requested changes, and document the result”:
- Read repository instructions, the issue or PR intent,
context.md, every revision, andstatus todo. Group duplicate or dependent findings before editing. - Work in a local checkout whose branch and SHA correspond to the selected target. If starting from an online-only PR, use the repository’s normal checkout/worktree flow to materialize it before editing.
- Inspect the cited code and verify each finding rather than accepting it mechanically. Implement the smallest coherent fix that satisfies the underlying concern and repository conventions.
- Run focused tests for every changed behavior, followed by the repository’s proportionate type, lint, build, or broader test checks.
- Re-read the resulting diff and the originating finding. Only after evidence shows it is handled, change its exact marker from
- [ ] rev:to- [x] rev:in the originalrev-N.mdand add an indented resolution note naming the fix and verification. - If the finding is invalid or intentionally declined, resolve it with a note containing the concrete evidence and decision. Resolution means the concern has been considered and closed, not necessarily that its proposed edit was accepted.
- Rerun
gh-rev status todoand report anything still unresolved.
Do not allocate a new revision just to document fixes to old findings. The originating revision is the durable task record. Allocate a new revision only when someone performs another independent review of the resulting code.
Boundaries
- Editing source files requires the user’s request to implement or change code; a request to inspect or explain reviews is read-only.
- Checking a finding does not publish to GitHub or imply GitHub approval.
- Preserve review history. Never delete a finding because it was fixed, disagreed with, superseded, or inconvenient.
- Use only unresolved and resolved states. Put nuance in the resolution note.
Unique Divine