fix(opencode): require RGR cycle before RED author delegation #228
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!228
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-226-rgr-cycle-guard"
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?
Closes #226.
Summary
rgr-test-authortask delegation without an active RGR cycle.subagent_type === "rgr-test-author"so other task delegations that merely mention the agent remain allowed.Verification
node --test tests/opencode-rgr-task-gate.test.mjsnode --test tests/*.mjsnix develop -c git push -u origin issue-226-rgr-cycle-guard(pre-push full-verification hook passed)The PR introduces a new guard in the opencode plugin to prevent
rgr-test-authortask delegation without an active RGR cycle, along with a regression test to verify this behavior. The changes appear safe to merge, as they include both the implementation and corresponding tests.Walkthrough
.opencode/plugins/auto-review-discipline.ts
isRgrTestAuthorTaskto check if the task is of typergr-test-author.tool.execute.beforehook to block task delegation if no RGR cycle is active.tests/opencode-rgr-task-gate.test.mjs
rgr-test-authortask delegation is blocked without an active RGR cycle.rgr-test-authorare allowed.