fix(opencode): recover RGR veto delegation #235

Merged
jwilger merged 1 commit from fix/issue-233-rgr-veto-recovery into main 2026-05-17 13:14:57 -07:00
Owner

Fixes #233.

Summary

  • adds rgr_recover_implementation_review_veto to record a reviewer-veto recovery context
  • allows one rgr-test-author delegation from that recovery state when no active RGR cycle exists
  • consumes the recovery allowance after the next delegation so the normal RGR task gate remains protective

Verification

  • node --test --test-name-pattern 'allows rgr-test-author after recording implementation-review veto recovery on a dirty worktree' tests/opencode-rgr-task-gate.test.mjs
  • node --test --test-name-pattern "consumes implementation-review veto recovery after one rgr-test-author delegation" "tests/opencode-rgr-task-gate.test.mjs"
  • node --test tests/opencode-rgr-task-gate.test.mjs
  • node --test "tests/*.mjs"
  • just fmt
  • just test
Fixes #233. ## Summary - adds `rgr_recover_implementation_review_veto` to record a reviewer-veto recovery context - allows one `rgr-test-author` delegation from that recovery state when no active RGR cycle exists - consumes the recovery allowance after the next delegation so the normal RGR task gate remains protective ## Verification - `node --test --test-name-pattern 'allows rgr-test-author after recording implementation-review veto recovery on a dirty worktree' tests/opencode-rgr-task-gate.test.mjs` - `node --test --test-name-pattern "consumes implementation-review veto recovery after one rgr-test-author delegation" "tests/opencode-rgr-task-gate.test.mjs"` - `node --test tests/opencode-rgr-task-gate.test.mjs` - `node --test "tests/*.mjs"` - `just fmt` - `just test`
fix(opencode): recover RGR veto delegation
All checks were successful
CI / Format check (pull_request) Successful in 7s
CI / Clippy (pull_request) Successful in 39s
CI / Dependency policy (pull_request) Successful in 10s
CI / Test (pull_request) Successful in 52s
CI / Build (pull_request) Successful in 34s
CI / Build PR artifacts (no token) (pull_request) Successful in 2s
CI / Request auto_review semantic review (pull_request) Successful in 1s
auto_review auto_review: no findings
308cb8887a
auto-review left a comment

The PR introduces a mechanism to handle implementation-review veto recovery, allowing a single rgr-test-author delegation when no active RGR cycle exists. The changes appear well-structured and include tests to verify the new functionality.

Walkthrough

  • auto-review-discipline.ts: Added new tools rgr_recover_implementation_review_veto and consumeImplementationReviewVetoRecovery to manage veto recovery.
  • shared.ts: Introduced a new map to track implementation-review veto recovery contexts and functions to record and consume these contexts.
  • opencode-rgr-task-gate.test.mjs: Added tests to verify that the veto recovery mechanism allows a single delegation and is consumed after use.
The PR introduces a mechanism to handle implementation-review veto recovery, allowing a single `rgr-test-author` delegation when no active RGR cycle exists. The changes appear well-structured and include tests to verify the new functionality. ## Walkthrough - **auto-review-discipline.ts**: Added new tools `rgr_recover_implementation_review_veto` and `consumeImplementationReviewVetoRecovery` to manage veto recovery. - **shared.ts**: Introduced a new map to track implementation-review veto recovery contexts and functions to record and consume these contexts. - **opencode-rgr-task-gate.test.mjs**: Added tests to verify that the veto recovery mechanism allows a single delegation and is consumed after use.
jwilger deleted branch fix/issue-233-rgr-veto-recovery 2026-05-17 13:14:57 -07:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Slipstream/auto_review!235
No description provided.