fix(opencode): adopt deterministic Han Core guardrails #237

Merged
jwilger merged 6 commits from rgr/proof-work-verification-red into main 2026-05-17 19:28:40 -07:00
Owner

Summary

  • Add deterministic opencode guardrails distilled from Han Core ideas:
    • block production Rust edits on main
    • require proof-of-work after implementation subagents before GREEN
    • require concrete command + pass/fail evidence for rgr_mark_green
  • Centralize compaction context ownership in AutoReviewContextPlugin
  • Refine reviewer agents to report current-diff, evidence-backed findings with confidence >=80

Verification

  • node --test "tests/opencode-rgr-task-gate.test.mjs"
  • node --test --experimental-strip-types ".opencode/plugins/auto-review-context.test.ts"
  • just fmt

Note: opencode must be restarted for plugin/agent changes to take effect.

## Summary - Add deterministic opencode guardrails distilled from Han Core ideas: - block production Rust edits on `main` - require proof-of-work after implementation subagents before GREEN - require concrete command + pass/fail evidence for `rgr_mark_green` - Centralize compaction context ownership in `AutoReviewContextPlugin` - Refine reviewer agents to report current-diff, evidence-backed findings with confidence >=80 ## Verification - `node --test "tests/opencode-rgr-task-gate.test.mjs"` - `node --test --experimental-strip-types ".opencode/plugins/auto-review-context.test.ts"` - `just fmt` Note: opencode must be restarted for plugin/agent changes to take effect.
chore(opencode): filter reviewer findings by confidence
Some checks failed
CI / Format check (pull_request) Successful in 6s
CI / Dependency policy (pull_request) Has been cancelled
CI / Build (pull_request) Has been cancelled
CI / Request auto_review semantic review (pull_request) Has been cancelled
CI / Build PR artifacts (no token) (pull_request) Has been cancelled
CI / Clippy (pull_request) Has been cancelled
CI / Test (pull_request) Has been cancelled
3e6c5c96c1
Merge branch 'main' into rgr/proof-work-verification-red
All checks were successful
CI / Format check (pull_request) Successful in 6s
CI / Clippy (pull_request) Successful in 43s
CI / Dependency policy (pull_request) Successful in 11s
CI / Test (pull_request) Successful in 55s
CI / Build (pull_request) Successful in 32s
CI / Request auto_review semantic review (pull_request) Successful in 1s
CI / Build PR artifacts (no token) (pull_request) Successful in 2s
auto_review auto_review: no findings
f97f282a5e
auto-review left a comment

The PR introduces deterministic guardrails for the RGR process, centralizes context ownership, and refines reviewer agents to report findings with high confidence. The changes appear well-structured and include comprehensive tests, making them safe to merge.

Walkthrough

  • Agents and Reviewers: Updated to report findings with a confidence score, ensuring only high-confidence issues are flagged.
  • Plugins: Introduced new functions to enforce RGR cycle rules, such as blocking edits on the main branch and requiring proof-of-work verification.
  • Tests: Added tests to verify new RGR rules, ensuring that the system behaves as expected under various scenarios.
The PR introduces deterministic guardrails for the RGR process, centralizes context ownership, and refines reviewer agents to report findings with high confidence. The changes appear well-structured and include comprehensive tests, making them safe to merge. ## Walkthrough - **Agents and Reviewers**: Updated to report findings with a confidence score, ensuring only high-confidence issues are flagged. - **Plugins**: Introduced new functions to enforce RGR cycle rules, such as blocking edits on the main branch and requiring proof-of-work verification. - **Tests**: Added tests to verify new RGR rules, ensuring that the system behaves as expected under various scenarios.
jwilger deleted branch rgr/proof-work-verification-red 2026-05-17 19:28:40 -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!237
No description provided.