feat(opencode): add risk-adaptive shadow review pool - #839
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks 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 address Implement only PR #839 at exact current head RCA: exact-head OpenCode Review Shadow Quality run Feasibility: do not modify Use the existing tests as the authoritative contract; do not weaken/delete/skip them. Run the focused shadow suite first, then exact 100% owned production statement/branch coverage, public callable docstrings, Python compileall, Bash syntax for the wrapper, clean-tree/diff checks, and the branch's exact-head quality workflow. Commit ordinary descendant commits only. Keep the PR Draft and stacked; do not approve, merge, retarget, rebase, force-push, or synthesize review evidence. If any requirement cannot be satisfied within the stated production-independent boundary, leave the branch unchanged and report the exact infeasible condition. |
|
Exact-head RCA for First failing boundary: Source mutation is frozen in this invocation because this open PR’s existing writer owns the branch/path. The branch remains Draft; no approval, success, or merge authority is inferred. |
|
@opencode-agent review Review PR #839 at exact head Pay particular attention to fixed non-shell argv construction; child-only credential mapping and secret redaction; executable, worktree, evidence, symlink, permission, and empty-output boundaries; detector/verifier independence; exact-head/source receipt binding; infrastructure-versus-semantic separation; deterministic deduplication; fail-closed partial failures; and the hard guarantee that publication and GitHub mutation remain disabled. Do not infer a qualifying human approval, merge readiness, protected-main acceptance, or commercial parity. Anchor every actionable finding to this exact head. |
Purpose
Implement the production-independent part of Task 6 in the OpenCode review-quality plan: deterministic risk-adaptive detector routing, bounded OpenCode shadow execution, and independent source-contract verification without GitHub publication authority.
Exact stacked identity
feat/opencode-review-decision-envelope(PR feat(opencode): separate semantic and merge decisions #836);c3133887df775605bfca2aaaa8b94094aec609fc;feat/opencode-review-shadow-pool;94a54be6b3d424b59b5a32854099fff24f5794e6;6eb06cdd08c79a06f7b390069d4ffa49e2eb7dba;No predecessor check, review, approval, or comment authorizes this head. If a predecessor moves or integrates, this branch must be reconciled once and every exact-head evidence surface regenerated.
Implemented contract
This head adds:
NVIDIA_NIM_API_KEYtoNVIDIA_API_KEYmapping, minimal child environment, and persisted stdout/stderr secret redaction;shadow_findingsonly, withpublished_findings=[]and publication disabled;The implementation does not modify
.github/workflows/opencode-review-dispatch.yml,opencode.jsonc, reviewer identities, model credentials, branch protection, merge controls, or release controls.Test-first and exact-head evidence
The original exact-head run
31261292975correctly proved RED at the missing production boundary. During implementation, new security regressions first proved five failures covering secret echo and untrusted output paths, then passed after the root-cause repair.Current evidence:
31496243794, success, checked against94a54be6b3d424b59b5a32854099fff24f5794e6.An exploratory stack-wide coverage run is not presented as acceptance evidence: it exposed one collection-order-only branch in each existing predecessor module
opencode_review_adjudicate.pyandopencode_review_decision.py. This branch does not mutate those predecessor-owned modules. The exact owned production gate above is complete and the full behavioral suite passes.Security and authority boundary
COPILOT_GITHUB_TOKEN;Keep Draft and do not merge until all stacked predecessors integrate, this branch is reconciled onto the exact protected base, all exact-head quality/security/review evidence remains passing, no valid unresolved finding remains, and a qualifying independent non-author formal approval exists.