fix(opencode): require delegated RGR RED approval #283
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Slipstream/auto_review!283
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/rgr-approval-guardrails"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why:
rgr-test-reviewersessions also lacked recorded parent RED context, which explained why the reviewer could report that RED had not been recorded after the orchestrator had calledrgr_record_red.What:
rgr_approve_redto be called by an explicitly delegatedrgr-test-reviewersession.rgr-test-reviewertask prompts.rgr_approve_redwhen approving valid RED evidence.Validation:
rtk node --test --test-name-pattern "requires delegated reviewer approval and propagates parent RED context to rgr-test-reviewer" .opencode/plugin-tests/auto-review-discipline-rgr.test.tsrtk node --test .opencode/plugin-tests/auto-review-discipline-rgr.test.tsrtk node --test .opencode/plugin-tests/auto-review-config.test.ts --test-name-pattern "only rgr-test-reviewer is instructed to invoke RED approval"rtk just opencode-testNote:
The PR introduces a requirement for RED approval to be conducted through a delegated
rgr-test-reviewersession, enhancing the security and determinism of the approval process. The changes include updates to agent contracts, test cases, and plugin logic to enforce this new workflow. The modifications appear well-structured and safe to merge.Walkthrough
rgr_approve_redcall for RED approval, ensuring the process is explicit and role-specific.rgr-test-revieweris instructed to invoke RED approval, ensuring role-specific responsibilities.approveRedViaDelegatedReviewerfunction to centralize approval logic.isRgrTestReviewerTaskfunction to identify reviewer tasks.redApprovalReviewerSessionsmap to track delegated sessions for RED approval.LLM usage and cost
Estimated total USD: $0.046410 via https://api.openai.com and https://api.openai.com