feat(automation): add bounded source-fix command lane - #2173
seonghobae wants to merge 4 commits into
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@opencode-agent Review exact head |
|
Preservation/consolidation note: #2173, #2174, and #2175 are parallel source-fix control-plane implementations from the same protected-main merge base. Keep this PR Open/Draft; do not merge independently or close as duplicate until its unique compatibility/contract deltas are compared against canonical candidate #2174. In particular, preserve any non-duplicated |
Problem
@opencode-agentis intentionally review-only. Appendingfixorrepairtherefore produces review evidence but no repository mutation, which made repair intent easy to misclassify as source progress.Change
Add a separate organization-wide source-fix lane with the canonical
@cwl-source-fixcommand and compatibility recognition for@opencode-agent fix|repair.The lane binds each request to actor + source comment + repository + PR + exact base/head tuple, deduplicates with a durable Actions-artifact receipt, revalidates the live command before mutation, seals the editable set from the complete GitHub PR Files receipt, and only permits a normal non-force descendant push if the live head is still unchanged.
OpenCode runs only through the released contextual-orchestrator sidecar using
contextual-orchestrator/orchestrator/free. Shell, web, nested task, and external-directory access are denied. The requested outcome is treated as untrusted task text rather than permission to weaken tests, review gates, security policy, or ownership boundaries.Deliberate boundaries
ContextualWisdomLab/.githubself-modification;.github/orscripts/ci/edits in target repositories;@opencode-agent fix|repairremains a compatibility form and can still also trigger the review router.@cwl-source-fixis the source-mutation-only form.Verification
Local contract validation before publication:
tests/test_agent_source_fix_workflow_contract.py: 6 passed;This PR is intentionally Draft until hosted checks and an independent exact-head review validate the new write-capable control path.