You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Central OpenCode repository_dispatch can fail closed without leaving any exact-head evidence on the target pull request when the exchanged OpenCode App token can write reviews but cannot write commit statuses.
Model pool: exhausted after the bounded 30-attempt ceiling; all outputs were provider failures or failed trusted control-receipt validation
Review outcome correctly failed closed with MODEL_OUTPUT_UNAVAILABLE and no formal review
Commit-status publication then used the OpenCode App token and failed with HTTP 403 Resource not accessible by integration
The model-unavailable code-scanning fallback used the central github.token against the cross-repository target and likewise received HTTP 403
Result: naruon#1206 has no opencode-review status/comment for this run; only the central log exposes the review-tool failure
Governance classification
High-sensitivity review-governance observability and token-capability defect. It is not a source vulnerability and must not turn provider unavailability into a false clean review.
Acceptance criteria
Do not select the OpenCode App token for commit-status publication unless its status capability is proven.
When cross-repository commit-status publication is unavailable or returns 403, expose a bounded exact-head review-tool failure on the target PR using an App-authorized PR comment/update path.
Keep formal APPROVE/REQUEST_CHANGES authorship restricted to the OpenCode App and keep model-unavailable outcomes fail closed.
Do not let a secondary status-publication 403 obscure the primary model/receipt outcome in logs.
Detect that central github.token cannot read another repository code-scanning alerts and emit a precise bounded reason instead of a generic lookup failure.
Add contract/unit tests for App-token 403, cross-repository github.token limitations, exact head/run receipt, and stale-head refusal.
Document the optional GitHub App permissions or organization credential needed for commit statuses and code-scanning reads.
Problem
Central OpenCode repository_dispatch can fail closed without leaving any exact-head evidence on the target pull request when the exchanged OpenCode App token can write reviews but cannot write commit statuses.
Current-head evidence:
Governance classification
High-sensitivity review-governance observability and token-capability defect. It is not a source vulnerability and must not turn provider unavailability into a false clean review.
Acceptance criteria
Related