Repository navigation
ci(review): opencode via OpenCode Go with the model in OPENCODE_MODEL and proof of review (ADR-0032) - #157
Conversation
… variable Records the decision to move the opencode reviewer from DeepSeek's direct API with a model fixed in ADR-0025 to OpenCode Go with the model in the repository variable OPENCODE_MODEL, to require proof that a review was posted before the check goes green, and to drop the job's pull-requests permission to read. DeepSeek re-pointed the deepseek-v4-pro id to V4.1 Flash on 2026-09-14, so the reviewer had been running on a model the ADR does not name; and today's Claude reviewer runs on #155 showed a green check with no report. ADR-0025's Status line points at ADR-0032; the rest of ADR-0025 stands. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
…t reviewed (ADR-0032) Implements ADR-0032. The model leaves the YAML and lives in the repository variable OPENCODE_MODEL (<provider>/<model>); a validation step fails closed when the variable is missing or malformed, when the provider is not opencode-go or deepseek, or when the provider's secret is absent, naming what is missing and the command that fixes it, and writes the model to the job summary. After the action succeeds, the job counts the comments opencode-agent[bot] posted since the run started and fails if there are none. OpenCode Go reads OPENCODE_API_KEY, not OPENCODE_GO_API_KEY, so the provider block of OPENCODE_CONFIG_CONTENT points it at the secret; the same config denies filesystem access outside the checkout (except /etc) instead of opencode's default "ask", which hangs on a runner. The job gets a 15-minute ceiling and per-PR concurrency that lets a push cancel the running review but never lets the verdict's own issue_comment cancel the run publishing it. pull-requests drops to read: the App token from OIDC posts the review. persist-credentials is on because the comment-triggered path reads the git credential header and aborts when it is missing; the includeIf copy checkout also leaves is removed so git does not send two Authorization headers. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): opencode via OpenCode Go with the model in OPENCODE_MODEL and proof of review (ADR-0032) (#157)Decision: 🟢 Approved Executive summaryThis adds a commit-pinned reviewer action, reduces workflow-token permissions, bounds execution time, validates its supported providers, and makes a successful check contingent on a bot review comment. ADR-0032 accurately records the new intermediary and operational trade-offs; no high-confidence violation of the project’s security or CI rules was found. No findings reached the reporting threshold. |
|
Confirmed: everything about the secret/OIDC exposure is pre-existing on main. This PR strictly improves it (write→read, timeout, concurrency, fs deny). The only genuinely new delta that could warrant a finding is the Final assessment:
Decision: 🟡 Minor changes, with one suggestion-level finding. Actually, per REVIEW-FORMAT, if nothing reaches threshold (≥80 for report), I report suggestions only where I choose. The ADR wording finding is ~84 but "suggestion" impact — the format maps 80-89 to Important. The validation agent argued suggestion, but the score band says 80-89 → Important. I'll place it as Important since it breaks a documented claim (ADR-0015's requirement for precise scope) — actually it's documentation accuracy, not a hard rule. I'll put it as a suggestion to be honest about impact, but give the score. Let me settle: it's an accuracy defect in a governance document, confidence 84 → Important band. I'll list as Important but clearly framed as docs wording. Let me write the report. PR Review: ci(review): opencode via OpenCode Go with the model in
|
ADR-0025 §Decision has five bullets and none is "provider/model": the provider and model are its opening sentence, and "green means reviewed" appears nowhere in it. Describe the superseded items by where they are — the opening sentence, the permissions bullet and the "sent to DeepSeek" clause of the No share bullet — in the Related line, the ADR-0025 Status line and the "everything else stands" bullet, which now notes that share: false applies to the provider OPENCODE_MODEL names. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
…er displaced GitHub keeps one pending run per concurrency group and replaces it when another run is queued (docs: "any existing pending job or workflow in the same concurrency group will be canceled and the new queued job or workflow will take its place"). With comment runs in the PR's group, a human /oc waiting behind a push review was cancelled by the next bot comment, including opencode's own verdict. Pushes keep sharing the PR's group and cancel the stale in-progress review; each comment run now gets its own group (the comment id), starts alone and is discarded by the job if unless it was a human /oc. Also tells the model that its final answer must begin with the report heading: the first OpenCode Go run on #157 published its deliberation ("Let me write the report") ahead of the verdict. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Re opencode review #1, ADR-0032 / ADR-0025 wording: agreed, the "three bullets" description was wrong by anchor. The follow-up commit describes the superseded items by where they sit in ADR-0025 §Decision — the opening sentence (provider and model), the permissions bullet, and the "sent to DeepSeek" clause of the Separately: this was the first OpenCode Go run in this repository, and the verdict was published with the model's deliberation ("Let me write the report") ahead of the report. The same commit tells the model its final answer must begin with the |
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): opencode via OpenCode Go with the model in OPENCODE_MODEL and proof of review (ADR-0032) (#157)Decision: 🟢 Approved Executive summaryThe follow-up correctly isolates comment-triggered runs by comment ID, so unrelated comments can no longer replace a pending human Previous issues
No findings reached the reporting threshold. Decision: 🟢 Approved |
PR Review: ci(review): opencode via OpenCode Go with the model in
|
| # | Issue | Status | Notes |
|---|---|---|---|
| 1 | ADR-0032/ADR-0025 wording: "three bullets" inaccurate by anchor; "sent to DeepSeek" clause not named among superseded items (opencode-agent) | ✅ Resolved | Commit 6bd5673 (docs(adr): ADR-0032 names what it supersedes in ADR-0025 by anchor) — ADR-0032 Related and ADR-0025 Status now cite exact anchors (opening sentence, permissions bullet, "sent to DeepSeek" clause of the No share bullet) |
| 2 | OPENCODE_GO_API_KEY passed unconditionally to the action regardless of which provider is active (opencode-agent, 💡 suggestion) |
❌ Open | Not addressed; accepted trade-off per ADR-0032 §Consequences/Negative |
| 3 | ADR-0030 still describes opencode as "DeepSeek V4 Pro inference" while ADR-0032 declares ADR-0030 unchanged (opencode-agent, 💡 suggestion) | ❌ Open | Not addressed in this PR |
No new findings reached the reporting threshold (≥ 80 confidence). Checked for: unpinned actions (both uses: are full-SHA-pinned — actions/checkout@3d3c42e5… and anomalyco/opencode/github@77fc88c8…), excessive token permissions (net improvement: pull-requests: write → read), missing authorization gates (author_association gate intact and unchanged on both pull_request and issue_comment paths), supply-chain risk (Anomaly Co. intermediary documented and accepted in ADR-0032 on published zero-retention terms), shell script logic (validation step, includeIf removal, and proof-of-review pagination all verified correct), Conventional Commits (all four commit messages compliant), and MANIFIESTO commitment conflicts (none — this ADR governs CI tooling, not the SSH protocol surface).
Limitations: Commit signature verification via gh api repos/gonzafg2/quantumssh/pulls/157/commits required elevated permissions not available to this runner; .commit.verification.verified could not be confirmed here. Branch protection enforces signed commits; that check operates outside the reviewer's observation.
Decision: 🟢 Approved
The second review round on #157 was cancelled by the 15-minute timeout while still working: the log shows subagent step 83 at minute 15 and no permission prompt, so it was slow, not hung. The first round with the same model (opencode-go/deepseek-v4.1-flash) took 9m38s; the same model through DeepSeek's direct API took under two minutes on #155 with the same prompt. 30 matches codex.yml. If a run reaches it, the model or the prompt is the problem. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): opencode via OpenCode Go with the model in OPENCODE_MODEL and proof of review (ADR-0032) (#157)Decision: 🟡 Minor changes Executive summaryThe revised concurrency configuration resolves the previously reported displacement of pending Previous issues
New findings🟡 Important (should be resolved).github/workflows/opencode.yml:292 — CI review-integrity defect (confidence: 88)
Decision: 🟡 Minor changes |
… provider's secret is passed With each comment-triggered run in its own concurrency group, two reviews of the same PR can run at once, and a comment posted by one could satisfy the proof step of the other. The action appends a "[github run](/owner/repo/actions/runs/<id>)" footer to every comment it posts, so the proof step now also requires that footer to name this run; the timestamp bound stays as a second filter. The validation step exports the provider it resolved, and the run step passes only that provider's secret to the action; the other is an empty string. Switching provider is still a change of OPENCODE_MODEL only. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Re Codex review #3:
Also noted in this round: the |
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): opencode via OpenCode Go with the model in OPENCODE_MODEL and proof of review (ADR-0032) (#157)Decision: 🟢 Approved Executive summaryThe final workflow scopes concurrency safely, passes only the selected provider credential, and ties proof of review to the current run’s URL as well as its start time. ADR-0032 accurately records the changed ADR-0025 clauses. No new finding reaches the reporting threshold. Previous issues
No findings reached the reporting threshold. Decision: 🟢 Approved |
PR Review: ci(review): opencode via OpenCode Go with the model in
|
| # | Issue | Status | Notes |
|---|---|---|---|
| 1 | ADR-0032/0025 supersession wording inaccurate ("three bullets"; stale "sent to DeepSeek") — opencode #1, Important | ✅ | 6bd5673: 0032:6 and 0025:3 now name the §Decision opening sentence, the permissions bullet and the No share "sent to DeepSeek" clause; 0032:86-90 scopes share: false to the provider the variable names. |
| 2 | Both provider secrets passed to the action regardless of the selected provider — opencode #1 suggestion; claude #2; codex #3 #3 | ✅ | d992811: opencode.yml:174-175 pass only steps.validate.outputs.provider's secret; the other is ''. |
| 3 | Proof step could count a concurrent run's comment — codex #3, Important 88 | ✅ | d992811: opencode.yml:293,300 require the comment body to contain this run's URL. Verified the action appends [github run](/<owner>/<repo>/actions/runs/<GITHUB_RUN_ID>) and that the single opencode-agent[bot] comment on this PR (run 35775287550) carries it. |
| 4 | Unfiltered issue_comment runs displacing a pending /oc — claude, Important |
✅ | 6482be7: opencode.yml:26 gives each comment its own group (…comment.id); pushes share the PR group, so cancel-in-progress: true is now safe. |
| 5 | ADR-0030 Context still says "DeepSeek V4 Pro inference" while ADR-0032 declares ADR-0030 unchanged — opencode #1 suggestion; claude #3; codex #3 #4 | ❌ | Not edited. Author declines as historical record (ADR-0015 covers facts wrong at acceptance; a later fact change is recorded by the superseding ADR). Defensible; recorded as open/won't-fix rather than resolved. |
New findings
🟡 Important (should be resolved)
docs/adr/0032-…md:15-21 and .github/workflows/opencode.yml:222-225 — documentation accuracy (confidence: 86)
Problem: Context point 1 claims ADR-0025's model was silently re-pointed: "
deepseek-v4-flashhas been served by DeepSeek V4.1 Flash since 2026-09-10, anddeepseek-v4-prosince 2026-09-14 (until a V4.1 Pro is released). The reviewer has therefore been running on a different, smaller model than the ADR records." The changelog the ADR itself links (0032:165) says the opposite for the pro id: on 2026-09-10 onlydeepseek-v4-flashanddeepseek-v4-flash-vision-expwere retired and "temporarily routed to V4.1 Flash", and "we have decided to continue providing API services for DeepSeek V4 Pro after September 14, 2026". ADR-0025 pinneddeepseek/deepseek-v4-pro(0025:12,0025:18), so it kept serving V4 Pro; the premise "The model named in ADR-0025 no longer exists behind its id" is unsupported. The same wrong sentence is in the workflow comment (opencode.yml:222-225), and the "re-pointed three model ids" count (0032:62-63) follows from it (only the two flash ids were re-pointed). This matters because the PR's explicit purpose is a record that is always true.
Fix: Rewrite Context point 1 to the changelog: the two flash ids were re-pointed on 2026-09-10; the V4 Pro retirement slated for 2026-09-14 was reversed, sodeepseek-v4-prostayed on V4 Pro. Correct the same sentence in.github/workflows/opencode.yml:222-225and the count at0032:62-63. The decision itself (model in a variable, proof of review) stands on the flash id instability alone.
Anchor: ADR-0032's own cited source (0032:165);docs/adr/README.md§"When to write an ADR" (the record must accurately ground the decision); CLAUDE.md §"RFC vs ADR vs plain PR".
No other finding reached the reporting threshold. By way of positives verified against the pinned action: the proof step is not satisfiable by a placeholder — the pinned anomalyco/opencode/github is a composite action whose CLI (opencode github run) posts exactly one comment bearing the final report plus the [github run] footer, and its error path calls setFailed, which the proof step's steps.opencode.outcome == 'success' guard excludes. The pull_request trigger does run (run 35775287550 is event=pull_request, conclusion=success). Both uses: are full-SHA pinned, no ${{ }} is interpolated in any run: script, and the permission set is a net reduction from main. The action's runtime fetch of the opencode CLI (releases/latest + curl | bash inside the composite action) is a real supply-chain observation (§5.5.2.a) but is pre-existing and unchanged by this PR, so it is not reported as a finding here.
…4.1 Flash ADR-0032's Context, the workflow's model comment and the message of the commit that added the ADR said DeepSeek serves deepseek-v4-pro with V4.1 Flash since 2026-09-14, so the reviewer had been running on a smaller model than ADR-0025 names. That was the 2026-09-10 announcement, not the outcome: DeepSeek's pricing page (note 2) says it "decided to continue providing API services for DeepSeek V4 Pro after September 14, 2026", and the model version behind the id is still DeepSeek-V4-Pro-0813. Only the two flash ids were re-pointed. The decision stands on the flash-id instability and the reversed announcement alone; the Context, the "three model ids" count and the timing comparison (V4.1 Flash through Go versus V4 Pro on the direct API, not the same model) are corrected accordingly. Raised by the opencode review of #157. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Re opencode review #2, ADR-0032 Context point 1: correct, and thank you for checking the source. DeepSeek's pricing page note 2 reverses the V4 Pro routing announced on 2026-09-10 ("we have decided to continue providing API services for DeepSeek V4 Pro after September 14, 2026"), and the model version behind |
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): opencode via OpenCode Go with the model in OPENCODE_MODEL and proof of review (ADR-0032) (#157)Decision: 🟢 Approved Executive summaryThe workflow now validates the selected provider fail-closed, confines credentials to that provider, bounds execution, preserves authorization gates, and requires a comment carrying the current run URL before succeeding. ADR-0032 accurately records the new provider path and corrected DeepSeek model-history rationale. No new high-signal finding reaches the reporting threshold. Previous issues
No findings reached the reporting threshold. LimitationsRepository variables, secrets, GitHub App scopes, and external provider retention terms are not inspectable in this environment. Decision: 🟢 Approved |
PR Review: ci(review): opencode via OpenCode Go with the model in
|
| # | Issue | Status | Notes |
|---|---|---|---|
| 1 | ADR-0032/0025 supersession wording inaccurate ("three bullets"; stale "sent to DeepSeek") | ✅ | 6bd5673: 0032:6 and 0025:3 name the §Decision opening sentence, the permissions bullet and the No share clause by anchor. |
| 2 | Both provider secrets passed regardless of the selected provider | ✅ | d992811, opencode.yml:174-175: only steps.validate.outputs.provider's secret is passed; the other is ''. |
| 3 | Proof step could count a concurrent run's comment | ✅ | d992811, opencode.yml:294,299-303: created_at >= SINCE and body must contain this run's /actions/runs/<id> URL. Verified the action's footer() emits exactly that link. |
| 4 | Unfiltered issue_comment runs could displace a pending /oc |
✅ | 6482be7, opencode.yml:26: each comment gets its own group; pushes keep the PR group. |
| 5 | ADR-0030 still describes opencode as "DeepSeek V4 Pro inference" | ❌ | Author declined as historical record. Defensible under ADR-0015; recorded open/won't-fix, below threshold. |
| 6 | ADR-0032 Context wrongly said deepseek-v4-pro was re-pointed to V4.1 Flash |
✅ | 6d29a45: only the two flash ids were re-pointed; the V4 Pro retirement was announced then reversed. |
New findings
🟡 Important (should be resolved)
.github/workflows/opencode.yml:70-87 and docs/adr/0032-…md:121-125 — unjustified secret persistence / incorrect premise (confidence: 82)
Problem: The change turns
persist-credentials: falseintotrueand adds a step that deletes checkout'sincludeIf.gitdircredential keys, on the stated premise that "the action'sconfigureGit… readshttp.https://github.com/.extraheaderwith a shell that aborts when the key is missing. The key must exist." The action's actual entrypoint at the pinned SHA (anomalyco/opencode/github@77fc88c8, composite →opencode github run→packages/opencode/src/cli/cmd/github.ts) does the opposite:configureGituses a non-throwing git call and guards withif (ret.exitCode === 0), with the comment "actions/checkout@v6 no longer stores credentials in .git/config, so this may not exist - use nothrow() to handle gracefully". Corroboration: onmainthe workflow ran withpersist-credentials: falseand the same action postedpull_requestreviews, so it cannot require the key.actions/[email protected]also does not write the token into.git/configdirectly — it writes$RUNNER_TEMP/git-credentials-<uuid>.configand references it only throughincludeIf(git-auth-helper.ts::configureToken). Consequences: (a)persist-credentials: trueis unnecessary and re-introduces the job'sGITHUB_TOKENinto the checkout — a regression frommain'sfalse; (b) removing theincludeIfkeys strips the only reference checkout's post-jobremoveToken()uses to find and delete that credentials file, so it stays on disk for the rest of the job. (Mechanism half from the same source:git config --local --getdoes not process includes by default, so the action was never reading anincludeIf-provided key.)
Fix: Keeppersist-credentials: falseand drop theincludeIf-removal step; the action sets its own App-tokenextraheaderand restores it infinally. If some behaviour genuinely requires the key, correct the comment in the workflow and ADR-0032 to match the pinned action, and leave checkout's credential cleanup intact.
Anchor: CLAUDE.md §CI/workflows review criteria (least privilege, supply-chain);docs/threat-model.md§5.5.2.a (third-party action in CI); ADR-0032's status as an accurate operational record (ADR-0015).
.github/workflows/opencode.yml:222-227 and docs/adr/0032-…md:15-23 — documentation accuracy (confidence: 82)
Problem: The corrected Context now says "Per DeepSeek's pricing page" for the
deepseek-v4-proschedule-and-reversal, and the workflow comment pins the reversal to "(pricing page, note 2)". The pricing page's note (2) is the peak/off-peak rate definition; note (1) only covers the flash retirement. The scheduling and the reversal quote ("we have decided to continue providing API services for DeepSeek V4 Pro after September 14, 2026") are on the changelog, which ADR-0032's own## Links(0032:165-167) already cites. The paragraph whose whole job is a record that is "always true" now sends the reader to a page that does not contain the claim.
Fix: Attribute the flash retirement to the pricing page (note 1) and the schedule/reversal to the changelog (api-docs.deepseek.com/updates/, 2026-09-10) in both the ADR and the workflow comment.
Anchor: ADR-0032's own cited source;docs/adr/README.md§"When to write an ADR" (a record that grounds the decision must be accurate); ADR-0015.
💡 Suggestions (nice to have)
docs/adr/0025:3/docs/adr/0032:3-4: ADR-0025 (Accepted) declares itself superseded by ADR-0032 while ADR-0032 staysProposed(per the PR body), and0032:4says it "becomes the acceptance date on merge" (README: "On merge, the ADR is Accepted"). Precedent exists (ADR-0008→ ProposedADR-0031), so this is a consistency note, not a defect: either flip the Status on merge as the README requires, or reconcile the README with the repo's practice.
Limitations
OPENCODE_MODEL,OPENCODE_GO_API_KEY,DEEPSEEK_API_KEYand theopencode-agentApp scopes are not observable here; the validation step's behaviour is assumed to run with them populated.- The pinned
github/action.ymlinstalls the opencode CLI fromreleases/latest(curl … | bash), so the exactconfigureGitin a given run is not pinned and could differ from the pinned-SHA source; thepersist-credentialsfinding rests on the pinned source plusmain's prior successfulpull_requestruns. - Commit signature verification (
commit.verification.verified) could not be confirmed from this runner;.github/REVIEW-FORMAT.md/CLAUDE.md require signed commits and that check lives outside the reviewer's observation.
Decision: 🟡 Minor changes
…the right note
persist-credentials went to true on the premise that the action's git
configuration aborts when the checkout's extraheader key is missing.
The code that runs is the opencode CLI the composite installs from
its latest release, and its configureGit checks the exit code of
`git config --get` and moves on ("actions/checkout@v6 no longer stores
credentials in .git/config"); main's runs with persist-credentials
false posted reviews. Back to false, and the includeIf-removal step
goes with it, which also leaves checkout's own credential cleanup
intact.
ADR-0032 now attributes the flash retirement to the pricing page
(note 1) and the V4 Pro schedule and reversal to the changelog entry
of 2026-09-10, where the quote lives, and records that the action SHA
pins the composite wrapper, not the CLI it installs. Both raised by
the opencode review of #157.
Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa
Signed-off-by: Gonzalo Fleming <[email protected]>
|
Re opencode review #3, both findings confirmed and fixed in the follow-up commit:
On the Status suggestion: |
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): opencode via OpenCode Go with the model in OPENCODE_MODEL and proof of review (ADR-0032) (#157)Decision: 🟢 Approved Executive summaryThe workflow validates the selected provider fail-closed, scopes the action to its selected credential, preserves authorization gates, bounds execution, and requires a comment attributable to the current run before succeeding. ADR-0032 records the new intermediary and the corrected model-history rationale. No new high-signal finding reaches the reporting threshold. Previous issues
No findings reached the reporting threshold. Decision: 🟢 Approved |
PR Review: ci(review): opencode via OpenCode Go with the model in
|
| # | Issue | Status | Notes |
|---|---|---|---|
| 1 | ADR-0032/0025 supersession wording inaccurate ("three bullets"; stale "sent to DeepSeek") | ✅ | 6bd5673: 0032:6 and 0025:3 name the §Decision opening sentence, the permissions bullet and the No share clause by anchor. |
| 2 | Both provider secrets passed regardless of the selected provider | ✅ | d992811: opencode.yml:162-163 passes the non-selected provider's secret as ''. |
| 3 | Proof step could count a concurrent run's comment | ✅ | d992811: opencode.yml:283,290 require the comment body to contain this run's /actions/runs/<id>. Verified against the pinned action: footer() returns …[github run](${runUrl}) unconditionally (github.ts, pinned SHA), so every comment is attributable. |
| 4 | Unfiltered issue_comment runs displacing a pending /oc |
✅ | 6482be7: opencode.yml:26 gives each comment its own group; pushes keep the PR group. |
| 5 | ADR-0030 Context still describes opencode as "DeepSeek V4 Pro inference" | ❌ | docs/adr/0030-…:16,236 unchanged. Author's ADR-0015 argument (later change of fact is recorded by the superseding ADR) is defensible; below threshold. |
| 6 | ADR-0032 wrongly claimed deepseek-v4-pro was re-pointed to V4.1 Flash |
✅ | 6d29a45: 0032:15-23 now records the reversed 2026-09-14 retirement announcement. |
| 7 | persist-credentials: true + includeIf-removal step, on a premise the action contradicts |
✅ | 22f2ca7: opencode.yml:75 is persist-credentials: false; the extra step is gone; the pinned CLI's configureGit checks exitCode === 0 and tolerates the absent key. |
| 8 | Wrong source attribution (pricing page vs changelog) | ✅ | 22f2ca7: 0032:16-23,167-170 and opencode.yml:210-216 cite the pricing page (note 1) for the flash retirement and the 2026-09-10 changelog for the schedule/reversal. |
New findings
None reached the reporting threshold (≥ 80). Two observations below it are recorded as suggestions.
💡 Suggestions (nice to have)
opencode.yml:31-46/docs/adr/0030-…:248-249— pre-existing untrusted-checkout residual on the/ocpath. Theissue_commentgate authorizes on the commenter'sauthor_associationand never vets the target PR's head repository, so a write-level collaborator typing/ocon a fork PR makes the pinned actioncheckoutForkBranch(git remote add fork … && fetch && checkout) while the provider secret andid-token: writeare present. This is unchanged frommain(whoseissue_commenttrigger, gate and action SHA are identical; this PR narrowspull-requests: write→read) and the action'sassertPermissions()runs before the checkout, so it is not a regression here — butcodex.yml:24-26,65-67refuses fork heads for exactly this reason, and ADR-0030 Alternative 5's "opencode's/ocis unaffected; it never checks out the PR head withactions/checkout" is accurate only ofactions/checkout, not of the action's own git checkout. A same-repo head gate (ascodex.ymluses) or dropping/ocwould close it. Anchor:docs/threat-model.md§5.5.2.a; ADR-0030 Alternative 5; CLAUDE.md CI criterion "missing authorization gates, supply-chain risk".docs/adr/0032-…:48-56/opencode.yml:112-131— the provider gate is coarser than the ADR's per-model trust rationale. The validation accepts any<model>under the two prefixes, and the ADR's own justification is a per-model training/retention table;gh variable set OPENCODE_MODEL opencode-go/qwen-…would move the downstream recipient to a different company without the ADR the same bullet says provider changes require. The ADR explicitly designates model changes as variable-only, so this is a design-tightness note, not a contradiction; either an allowlist of accepted families or one sentence in ADR-0032 naming the Go-family boundary would settle it. Anchor: CLAUDE.md §"RFC vs ADR vs plain PR";docs/adr/README.md§"When to write an ADR".
Verified at HEAD (not reported)
- Both
uses:full-SHA pinned (actions/checkout@3d3c42e5…,anomalyco/opencode/github@77fc88c8…); nopull_request_target, nocontents: write. - No
${{ }}inside anyrun:— every value enters viaenv:; the validation, concurrency and proof scripts contain only shell expansions. - Proof-of-review is not tautological: the pinned action posts exactly one comment in the success path and
setFaileds on error, whichsteps.opencode.outcome == 'success'excludes. - All 8 commits signature-verified —
gh api repos/…/pulls/157/commitsreportscommit.verification.verified = truefor each (the runner'sgit log %G?cannot observe this). - Permissions are a net reduction (
pull-requests: write→read) and sufficient for theissues/{n}/comments+pulls/{n}/commentsproof query. - ADR-0032 accuracy: the supersession list matches ADR-0025 §Decision, and the workflow's stated ceiling, provider derivation, credential scoping and read-only permissions all match the file.
Limitations
OPENCODE_MODEL, OPENCODE_GO_API_KEY/DEEPSEEK_API_KEY, the opencode-agent App scopes, and branch protection are not observable from this runner (branch-protection API returned 403). The DeepSeek/OpenCode Go external pages were not fetched; the citation corrections were checked for internal consistency against ADR-0032's own links and the previous iteration's finding.
Decision: 🟢 Approved
…ndary within Go The issue_comment gate authorised on the commenter's association and never looked at the PR head, so a collaborator's /oc on a fork PR made the action fetch and check out the fork while the provider secret and the OIDC token were in the job; pull_request events had the same gap. Pre-existing on main. As codex.yml does, the job now skips a pull_request whose head lives in a fork, and a step reads the PR from the API on both paths and fails closed on a fork head before the secret-bearing step runs. ADR-0032 records it; ADR-0030's remark that the /oc path never checks out the PR head held for actions/checkout only. ADR-0032 also states the boundary for model changes inside opencode-go: a model whose row in Go's table is not used for training and zero retention is a variable change; a model with training use or retention needs an ADR. Both raised as suggestions by the opencode review of #157. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Re opencode review #4, both suggestions taken in the follow-up commit:
|
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): opencode via OpenCode Go with the model in OPENCODE_MODEL and proof of review (ADR-0032) (#157)Decision: 🟢 Approved Executive summaryThe workflow now rejects fork heads before the secret-bearing reviewer action, binds proof of review to the current run, scopes the action to its selected provider credential, and uses SHA-pinned actions with read-only workflow permissions. ADR-0032 accurately records the operational decision and its residual runtime-CLI supply-chain risk. No new high-signal finding reaches the reporting threshold. Previous issues
No findings reached the reporting threshold. Decision: 🟢 Approved |
PR Review: ci(review): opencode via OpenCode Go with the model in
|
| # | Issue | Status | Notes |
|---|---|---|---|
| 1 | ADR-0032/0025 supersession wording inaccurate ("three bullets"; stale "sent to DeepSeek" clause unnamed) | ✅ | 6bd5673: 0032:6 and 0025:3 name the §Decision opening sentence, the permissions bullet and the No share clause by anchor. |
| 2 | Both provider secrets passed regardless of the selected provider | ✅ | d992811: opencode.yml:186-187 gates each secret on steps.validate.outputs.provider; the other is ''. |
| 3 | Proof step could count a concurrent run's comment | ✅ | d992811: opencode.yml:307,314 require the body to contain this run's /actions/runs/<id> in addition to the timestamp bound. |
| 4 | Unfiltered issue_comment runs displacing a pending /oc |
✅ | 6482be7: opencode.yml:26 gives each comment its own group; pushes share the PR group. |
| 5 | ADR-0032 Context wrongly claimed deepseek-v4-pro was re-pointed to V4.1 Flash |
✅ | 6d29a45: 0032:15-23 now records the reversed 2026-09-14 retirement announcement. |
| 6 | persist-credentials: true + includeIf-removal step on a premise the action contradicts |
✅ | 22f2ca7: opencode.yml:80 is persist-credentials: false; the extra step is gone. |
| 7 | Wrong source attribution (pricing page vs changelog) | ✅ | 22f2ca7: 0032:16-23,180-183 and opencode.yml:234-240 cite each page for what it says. |
| 8 | /oc fork-head untrusted checkout residual |
✅ | c234351: opencode.yml:39 adds the same-repo head test on pull_request; opencode.yml:88-99 re-reads the PR from the API and refuses a fork head before the secret-bearing step. |
| 9 | Model boundary within opencode-go unstated |
✅ | c234351: 0032:56-61 states the per-model table boundary. |
| 10 | ADR-0030 Context still says "DeepSeek V4 Pro inference" while ADR-0032 declares ADR-0030 unchanged | ❌ | 0030:16 unchanged; open/won't-fix. The author's ADR-0015 rationale (a later change of fact is recorded by the superseding ADR, not by rewriting a Context snapshot) is defensible; ADR-0030 is still Proposed, which weakens it slightly. Below threshold. |
| 11 | ADR-0032 remains Proposed while 0025:3 (Accepted) declares itself superseded, and docs/adr/README.md step 5 says merge accepts |
❌ | Pre-merge state; expected to close on merge. Precedent exists (ADR-0008 → ADR-0031). Below threshold. |
New findings
None reached the confidence threshold (≥ 80). One observation is recorded below it.
💡 Suggestions (nice to have)
docs/adr/0032-…md:78-80: the sentence "the workflow token is passed to the agent read-only, for the iteration check and the commit-verification lookup ADR-0030 also relies on" misattributes a commit-verification lookup to ADR-0030. ADR-0030's model never holdsGITHUB_TOKEN(0030:92-96) and its prompt declares signatures out of scope (codex.yml:175); only opencode's prompt asks the agent to read.commit.verification.verified. Reword to attribute the token to the iteration check only, or to the workflow rather than to ADR-0030. Documentation accuracy, no behavioural effect — confidence ~65, reported only as a suggestion.
Checked and found not to be problems
- Fork gate is correctly placed and effective on both paths.
opencode.yml:88-99runs beforeValidate(:111) andRun opencode(:175), so no provider secret is in scope; theissue_commentjobifcannot see the head repo, and the API read at:95is the gate. Onissue_commentGitHub loads the workflow from the default branch, so the gate takes effect on merge — the author recorded this. - Concurrency (
opencode.yml:25-27):pull_requestcarries.number,issue_commentcarries.comment.id; neither can be empty, and comment runs cannot cancel the publishing run. - Proof step is not satisfiable without this run posting: only the App posts as
opencode-agent[bot], carrying that run's owngithub.run_id; the jqcontainsis a literal substring test,--paginate --jq | awksums per-page lengths, andcreated_at >= SINCEis lexicographic-safe for second-precision…ZUTC. - Provider scoping (
opencode.yml:186-187,208-224): exactly one credential reaches the action; an absent secret is already fatal inValidate. - Both
uses:full-SHA pinned (actions/checkout@3d3c42e5…,anomalyco/opencode/github@77fc88c8…); no${{ }}interpolated in anyrun:; permissions are a net reduction frommainand each scope is required by a concrete step. - All 9 commits signature-verified via
gh api repos/gonzafg2/quantumssh/pulls/157/commits(commit.verification.verified = true); Conventional Commits and DCO sign-off hold. No Rust, dependency, or crypto surface touched.
Limitations
OPENCODE_MODEL,OPENCODE_GO_API_KEY/DEEPSEEK_API_KEY, theopencode-agentApp's installation scopes, and live branch-protection state are not observable from this runner; conclusions assume they are populated as ADR-0032 states.- The pinned composite installs the opencode CLI from
releases/latestat run time, so the exactconfigureGit/footer behaviour is not fixed by the SHA — a documented residual (ADR-0032 §Consequences/Negative, pre-existing under ADR-0025), not a defect introduced here. - External pages (DeepSeek changelog/pricing, OpenCode Go retention table) were not fetched; the citation corrections were checked for internal consistency against ADR-0032's own links.
Decision: 🟢 Approved — all prior Important issues are resolved at HEAD; the two open items are below the reporting threshold.
…prompt The permissions bullet said the commit-verification lookup is one "ADR-0030 also relies on". Codex under ADR-0030 holds no token and its prompt puts signatures out of scope; only opencode's prompt asks the agent to read commit.verification.verified. Reworded. Raised as a suggestion by the opencode review of #157. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Re opencode review #5, the ADR-0030 attribution: correct — Codex holds no token and its prompt puts signatures out of scope; the lookup is opencode's own. Reworded in the follow-up commit: the read-only token serves the REVIEW-FORMAT iteration check and the commit-verification lookup opencode's prompt asks for, with a parenthetical that Codex under ADR-0030 holds no token. Items 10 and 11 stay as recorded: ADR-0030's Context is a historical snapshot, and the Status flips of ADR-0030/0031 are in #156 with ADR-0032 to follow the same way. |
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): opencode via OpenCode Go with the model in OPENCODE_MODEL and proof of review (ADR-0032) (#157)Decision: 🟢 Approved Executive summaryThe workflow now gates fork heads before the secret-bearing action, scopes credentials to the chosen provider, bounds execution, and requires a bot comment attributable to the current run. ADR-0032 records the new provider path and its residual supply-chain risk; no new high-signal finding reaches the reporting threshold. Previous issues
No new findings reached the reporting threshold. LimitationsRepository variables, secrets, App installation scopes, and external provider retention terms are not observable in this environment. Decision: 🟢 Approved |
PR Review: ci(review): opencode via OpenCode Go with the model in
|
| # | Issue | Status | Notes |
|---|---|---|---|
| 1 | ADR-0032/0025 supersession wording inaccurate ("three bullets"; stale "sent to DeepSeek" clause) | ✅ | 6bd5673: 0032:6 and 0025:3 name the §Decision opening sentence, permissions bullet and No share clause by anchor. |
| 2 | Both provider secrets passed regardless of the selected provider | ✅ | d992811: opencode.yml:186-187 gates each secret on steps.validate.outputs.provider; the non-selected one is ''. |
| 3 | Proof step could count a concurrent run's comment | ✅ | d992811: opencode.yml:307,314 require the body to contain this run's /actions/runs/<id>, not just the timestamp bound. |
| 4 | Unfiltered issue_comment runs displacing a pending /oc |
✅ | 6482be7: opencode.yml:26 gives each comment its own group; pushes share the PR group. |
| 5 | ADR-0032 Context wrongly claimed deepseek-v4-pro was re-pointed to V4.1 Flash |
✅ | 6d29a45: 0032:15-23 records the reversed 2026-09-14 retirement announcement. |
| 6 | persist-credentials: true + includeIf-removal step on a premise the action contradicts |
✅ | 22f2ca7: opencode.yml:80 is persist-credentials: false; the extra step is gone. |
| 7 | Wrong source attribution (pricing page vs changelog) for the V4 Pro reversal | ✅ | 22f2ca7: 0032:16-23,180-183 and opencode.yml:234-240 cite each page for what it says. |
| 8 | /oc path could check out a fork head with secrets and OIDC available |
✅ | c234351: opencode.yml:39 same-repo head test; :88-99 re-reads the PR and refuses a fork head before any secret-bearing step. |
| 9 | Model boundary within opencode-go unstated despite per-model retention terms |
✅ | c234351: 0032:56-61 states the per-model table boundary. |
| 10 | 0032:78-80 misattributed a commit-verification lookup to ADR-0030 |
✅ | 2947de4: 0032:78-81 attributes the read-only token to the iteration check and the lookup opencode's own prompt asks for, noting Codex holds no token. |
| 11 | ADR-0030 Context still describes opencode as direct DeepSeek V4 Pro inference | ❌ | 0030:16 unchanged; author's ADR-0015 rationale (a later change of fact is recorded by the superseding ADR, not by rewriting a Context snapshot) is defensible. Below threshold. |
| 12 | ADR-0032 remains Proposed while 0025:3 (Accepted) declares itself superseded |
❌ | Pre-merge state; precedent (ADR-0008 → ADR-0031) and the author's plan to flip it in a follow-up. Below threshold. |
New findings
None reached the confidence threshold (≥ 80). Two candidate documentation findings were raised by the design lens and refuted on independent validation, so they are not reported:
0032:56-61"model boundary not enforced by the workflow". ADR-0032 states a governance rule ("a model with training use or non-zero retention … needs an ADR"), not an enforcement claim. The workflow enforces exactly the provider-level boundary the ADR attributes to it (opencode.yml:136-150); the per-model row lives in OpenCode Go's external table and is not derivable from the model string. Re-raising it would also restate issue Phase 1 / Hito 1: walking skeleton greenfield SSH server #9, fixed inc234351.0032:90-91"seven to ten minutes" vs the workflow's 15-minute cut. The measured first run (9m38s) sits inside the stated range; the workflow itself labels the 15-minute run anomalous ("no permission prompt in the log"). No CLAUDE.md rule or ADR requires a narrative duration estimate to track a measured tail, so the finding has no anchor.
Checked and found not to be problems
- Both
uses:full-SHA pinned (actions/checkout@3d3c42e5…,anomalyco/opencode/github@77fc88c8…); nopull_request_target, nocontents: write. - No
${{ }}interpolated inside anyrun:—REPO,PR,MODEL,SINCE,RUN_PATHand secrets all enter viaenv:; nothing attacker-controlled reaches a shell. - Authorization and fork gates hold on both paths; the
issue_commentarm requiresissue.pull_request != nulland the commenter'sauthor_association, and the runtime API check refuses a fork head before any secret is in scope. - Proof-of-review is sound. Verified against the pinned action source:
footer()emits[github run](/${owner}/${repo}/actions/runs/${runId}), byte-matchingRUN_PATH(opencode.yml:307); the CLI posts exactly one comment on the success path viaissues.createCommentandsetFaileds on error, whichsteps.opencode.outcome == 'success'excludes. The--paginate --jq | awksum and the UTC ISO-8601created_at >= SINCEcomparison are correct. - Secret scoping (
opencode.yml:186-187) sends exactly one credential to the action; theOPENCODE_CONFIG_CONTENT{env:OPENCODE_GO_API_KEY}injection is required becauseopencode-go's registry env name isOPENCODE_API_KEY(confirmed against the pinned CLI and live models.dev). - Permissions are a net reduction from
mainand each scope maps to a concrete read (fork gate, proof query, iteration check). - All 10 commits signature-verified —
gh api repos/gonzafg2/quantumssh/pulls/157/commitsreportscommit.verification.verified = truefor each (the runner'sgit log %G?cannot observe this). Conventional Commits and DCO sign-off hold; no Rust, dependency, or crypto surface is touched.
Limitations
OPENCODE_MODEL,OPENCODE_GO_API_KEY/DEEPSEEK_API_KEY, theopencode-agentApp's installation scopes, and live branch protection are not observable from this runner; conclusions assume they are populated as ADR-0032 states.- The pinned composite installs the opencode CLI from
releases/latestat run time, so the exact CLI behaviour is not fixed by the SHA — a documented residual (ADR-0032 §Consequences/Negative, pre-existing under ADR-0025), not a defect introduced here.
Decision: 🟢 Approved — all prior Important issues are resolved at HEAD; the two open items remain below the reporting threshold.
"Seven to ten minutes" was true after two rounds; over the eight rounds of #157 the opencode job took between 6m47s and 14m59s with opencode-go/deepseek-v4.1-flash. Record the measured range so the 30-minute ceiling reads against real numbers. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): opencode via OpenCode Go with the model in OPENCODE_MODEL and proof of review (ADR-0032) (#157)Decision: 🟢 Approved Executive summaryThe workflow now validates providers and credentials fail-closed, limits provider-secret exposure, rejects fork heads before the reviewer action, and requires a comment attributable to the current run. ADR-0032 documents the new provider path and residual runtime CLI supply-chain risk. No new high-signal finding reaches the reporting threshold. Previous issues
No new findings reached the reporting threshold. Decision: 🟢 Approved |
PR Review: ci(review): opencode via OpenCode Go with the model in
|
| # | Issue | Status | Notes |
|---|---|---|---|
| 1 | ADR-0032/0025 supersession wording inaccurate ("three bullets"; stale "sent to DeepSeek" clause unnamed) | ✅ | 6bd5673: 0032:6 and 0025:3 name the §Decision opening sentence, the permissions bullet and the No share clause by anchor. |
| 2 | Both provider secrets passed regardless of the selected provider | ✅ | d992811: opencode.yml:186-187 gates each secret on steps.validate.outputs.provider; the other is ''. |
| 3 | Proof step could count a concurrent run's comment | ✅ | d992811: opencode.yml:307,314 require the body to contain this run's /actions/runs/<id> as well as the timestamp bound. |
| 4 | Unfiltered issue_comment runs displacing a pending /oc |
✅ | 6482be7: opencode.yml:26 gives each comment its own group; pushes share the PR group. |
| 5 | ADR-0032 Context wrongly claimed deepseek-v4-pro was re-pointed to V4.1 Flash |
✅ | 6d29a45: 0032:15-26 records the scheduled-then-reversed retirement; the workflow comment matches. |
| 6 | persist-credentials: true + includeIf-removal step on a premise the action contradicts |
✅ | 22f2ca7: opencode.yml:80 is persist-credentials: false; the extra step is gone. |
| 7 | Wrong source attribution (pricing page vs changelog) for the V4 Pro reversal | ✅ | 22f2ca7: 0032:16-23,182-185 and opencode.yml:236-239 cite each page for what it says. |
| 8 | /oc path could check out a fork head with secrets and OIDC available |
✅ | c234351: opencode.yml:39 same-repo head test; :88-99 re-reads the PR and refuses a fork head before any secret-bearing step. |
| 9 | Model boundary within opencode-go unstated despite per-model retention terms |
✅ | c234351: 0032:56-61 states the per-model table boundary. |
| 10 | 0032:78-81 misattributed a commit-verification lookup to ADR-0030/Codex |
✅ | 2947de4: attributes the read-only token to the iteration check and opencode's own prompt, noting Codex holds no token. |
| 11 | ADR-0030 Context still describes opencode as "DeepSeek V4 Pro inference" (0030:16) while 0032:6 declares ADR-0030 unchanged |
❌ | Author declined as historical record under ADR-0015; defensible. Below threshold, listed not re-raised. |
| 12 | ADR-0032 remains Proposed while 0025:3 (Accepted) declares itself superseded |
❌ | Pre-merge state; the repo's practice flips Status in a follow-up. Below threshold. |
New findings
None reached the confidence threshold (≥ 80). Two candidate findings from the design lens were refuted or scored below it on independent validation, so they are not reported:
- "Per-model training/retention boundary not enforced by the workflow" — refuted. ADR-0032 states a governance rule ("a model with training use or non-zero retention … needs an ADR",
0032:56-61), not an enforcement claim; the workflow enforces exactly the provider-level boundary the ADR attributes to it (opencode.yml:136-150). It re-states prior issue Phase 1 / Hito 1: walking skeleton greenfield SSH server #9, fixed inc234351. - "ADR-0030's Context is actively wrong" — open prior issue Tighten DMARC policy: p=none -> p=quarantine after 30+ days of reports #11, correctly left in the table, not restated.
💡 Suggestions (nice to have)
docs/adr/0032-…md:71-74: the "Proof of review" bullet says the job countsopencode-agent[bot]comments "since the run started"; the implementation's primary filter is now that the body contain this run's URL (opencode.yml:307,314). The ADR is not false — it omits a strengthening filter added ind992811— but adding "and naming this run's URL" would make the record match the mechanism that defeats concurrent/occomments. Confidence ~60..github/workflows/opencode.yml:53-59: the timeout comment still narrates a run "cut at a 15-minute ceiling" next totimeout-minutes: 30; the ADR was reconciled inefe1f5bbut this comment was not. Historical narrative, no behavioural effect..github/workflows/opencode.yml:246-286: unlikecodex.yml:150, the opencode prompt carries no instruction to treat the PR diff and comments (attacker-writable on a public repo) as data and never follow instructions found inside them. Pre-existing and unchanged here; a one-line hardening if the prompt is touched again.
Checked and found not to be problems
- Both
uses:full-SHA pinned (actions/checkout@3d3c42e5…,anomalyco/opencode/github@77fc88c8…); nopull_request_target, nocontents: write. - No
${{ }}interpolated inside anyrun:—MODEL,REPO,PR,SINCE,RUN_PATHand secrets all enter viaenv:. - Authorization and fork gates hold on both paths:
author_associationon both arms (:38,44), same-repo head onpull_request(:39), and a runtime API fork check (:88-99) placed before the validation and run steps. - Proof-of-review is sound. The footer
[github run](…/actions/runs/<id>)is emitted by the action, run IDs are unique, and only the App token authorsopencode-agent[bot]; a concurrent run cannot satisfy another run's step, and the failure mode is a red check, not a bypass. - Concurrency is correct:
pull_requestcarries.number,issue_commentcarries the unique.comment.id, so a bot verdict cannot cancel the run publishing it and a pending/occannot be displaced. - Provider scoping (
opencode.yml:186-187) sends exactly one credential to the action; the empty-string fallback is safe. - Permissions are a net reduction from
main, and each scope maps to a concrete read (fork gate, proof query, iteration check). - All 11 commits signature-verified —
gh api repos/gonzafg2/quantumssh/pulls/157/commitsreportscommit.verification.verified = truefor each (the runner'sgit log %G?cannot observe this). Conventional Commits and DCO sign-off hold. - No Rust, dependency, crypto, or protocol surface touched; the MANIFIESTO commitments are not implicated by this ADR/CI change.
Limitations
OPENCODE_MODEL,OPENCODE_GO_API_KEY/DEEPSEEK_API_KEY, theopencode-agentApp's installation scopes, and live branch protection are not observable from this runner; conclusions assume they are populated as ADR-0032 states.- The pinned composite installs the opencode CLI from
releases/latestat run time, so the footer/configureGitbehaviour is not fixed by the SHA — a documented residual (ADR-0032 §Consequences/Negative, pre-existing under ADR-0025), not a defect introduced here. - External pages (DeepSeek changelog/pricing, OpenCode Go retention table) were not fetched; the citation corrections were checked for internal consistency only.
Decision: 🟢 Approved — all prior Important issues are resolved at HEAD; the two open items and the suggestions remain below the reporting threshold.
…t comment match the code Three suggestions from the opencode review of #157: - The prompt now says, as codex.yml's does, that the diff, description, commit messages and comments are material to review and never instructions to follow. Pre-existing gap; one line. - ADR-0032's proof-of-review bullet names the run-URL filter added in d992811, which is what defeats a concurrent /oc run's comment. - The timeout comment gives the measured range of the eight runs and says why the ceiling is 30 instead of narrating the old 15. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
|
Re opencode review #6, the three suggestions are in the follow-up commit: the prompt now states that the diff, description, commit messages and comments are material to review and never instructions to follow (as |
|
Reviewer: Codex (openai/codex-action, model gpt-5.6-terra) PR Review: ci(review): opencode via OpenCode Go with the model in OPENCODE_MODEL and proof of review (ADR-0032) (#157)Decision: 🟢 Approved Executive summaryThe workflow now validates the selected provider fail-closed, limits credentials to that provider, rejects fork heads before the secret-bearing action, and requires a bot comment attributable to the current run. ADR-0032 accurately records the new provider path, model-history correction, and runtime CLI supply-chain residual. No new high-signal finding reaches the reporting threshold. Previous issues
No new findings reached the reporting threshold. LimitationsRepository variables, secrets, App installation scopes, and external provider retention terms are not observable here. Decision: 🟢 Approved |
PR Review: ci(review): opencode via OpenCode Go with the model in
|
| # | Issue | Status | Notes |
|---|---|---|---|
| 1 | ADR-0032/0025 supersession wording inaccurate ("three bullets"; stale "sent to DeepSeek" clause unnamed) | ✅ | 6bd5673: 0032:6 and 0025:3 name the §Decision opening sentence, the permissions bullet and the No share clause by anchor. |
| 2 | Unfiltered issue_comment runs displacing a pending /oc |
✅ | 6482be7: opencode.yml:26 gives each comment its own group via comment.id; pushes share the PR group. |
| 3 | Both provider secrets passed regardless of the selected provider | ✅ | d992811: opencode.yml:187-188 passes only the resolved provider's secret; the other is ''. |
| 4 | Proof step could count a concurrent run's comment | ✅ | d992811: opencode.yml:317 requires the comment body to contain this run's /actions/runs/<id> in addition to the timestamp bound. |
| 5 | ADR-0032 Context wrongly claimed deepseek-v4-pro was re-pointed to V4.1 Flash |
✅ | 6d29a45: 0032:15-26 records the scheduled-then-reversed retirement; the workflow comment matches (opencode.yml:235-241). |
| 6 | persist-credentials: true + includeIf-removal step on a premise the action contradicts |
✅ | 22f2ca7: opencode.yml:81 is persist-credentials: false; the extra step is gone. |
| 7 | Wrong source attribution (pricing page vs changelog) for the V4 Pro reversal | ✅ | 22f2ca7: 0032:16-23,186-188 and opencode.yml:236-240 cite each page for what it says. |
| 8 | /oc path could check out a fork head with secrets and OIDC available |
✅ | c234351: opencode.yml:39 same-repo head test; :89-100 re-reads the PR and refuses a fork head before any secret-bearing step. |
| 9 | Model boundary within opencode-go unstated despite per-model retention terms |
✅ | c234351: 0032:56-61 states the per-model table boundary. |
| 10 | 0032:78-80 misattributed a commit-verification lookup to ADR-0030/Codex |
✅ | 2947de4: 0032:82-84 attributes the read-only token to the iteration check and opencode's own prompt, noting Codex holds no token. |
| 11 | Prompt lacked the data-not-instructions rule; ADR proof bullet and timeout comment did not match the code (opencode #6 suggestions) | ✅ | 63364cf: opencode.yml:277, 0032:71-77 and opencode.yml:53-60 now match the mechanism. |
| 12 | ADR-0030 Context still describes opencode as direct "DeepSeek V4 Pro inference" (0030:16) |
❌ | Author declined as historical record under ADR-0015 (a later change of fact is recorded by the superseding ADR). Defensible; below threshold. |
| 13 | ADR-0032 remains Proposed while 0025:3 (Accepted) declares itself superseded and docs/adr/README.md step 5 says merge accepts |
❌ | Pre-merge state; the repo's practice flips Status in a follow-up (ADR-0030/0031 precedent). Below threshold. |
New findings
None reached the confidence threshold (≥ 80). Two candidate findings from the design and CI lenses were refuted on independent validation and are not reported: (a) ADR-0032:6 saying the trigger bullet "stands" despite the new same-repo head restriction — ADR-0030 uses the identical split (trigger bullet + separate same-repo bullet), the restriction is explicit at 0032:98-105, and the author gate is untouched (validation scored it ~20); (b) an internal-rationale tension between 0032:112-117 and the Context's note that Anomaly's policy is broader than the per-model table — the ADR discloses the broader policy (0032:35-38, :134-135) and grounds acceptance additionally on the diff being public, so it is drafting looseness, not a decision defect.
Checked and found not to be problems
- Both
uses:full-SHA pinned (actions/checkout@3d3c42e5…,anomalyco/opencode/github@77fc88c8…); nopull_request_target, nocontents: write. - No
${{ }}interpolated inside anyrun:—MODEL,REPO,PR,SINCE,RUN_PATHand secrets all enter viaenv:; nothing attacker-controlled reaches a shell. - Authorization and fork gates hold on both paths:
author_associationon both arms (:38,44), same-repo head onpull_request(:39), and a runtime API fork check (:89-100) before validation and the run step. opencode is advisory (ADR-0031:59-61), so skipping fork heads shows no red check and blocks nothing required. - Proof-of-review is sound and fails closed. The action emits
[github run](/${owner}/${repo}/actions/runs/${runId})(byte-matchingRUN_PATH,:310) andsetFaileds on error, whichsteps.opencode.outcome == 'success'excludes; run IDs are unique, so a concurrent/occomment cannot satisfy another run's step. The--paginate --jq | awksum and the UTC ISO-8601created_at >= SINCEcomparison are correct. - Concurrency (
:25-27):pull_requestcarries.number,issue_commentcarries.comment.id; a comment run cannot cancel the run publishing its own verdict, and pushes still cancel stale pushes. - Provider scoping (
:187-188) sends exactly one credential; theOPENCODE_CONFIG_CONTENT{env:OPENCODE_GO_API_KEY}override is required because the registry env name isOPENCODE_API_KEY(pre-existing under ADR-0025). - Permissions are a net reduction from
mainand each scope maps to a concrete read (fork gate, proof query, iteration check). - All 12 commits signature-verified —
gh api repos/gonzafg2/quantumssh/pulls/157/commitsreportscommit.verification.verified = truefor each; every subject is Conventional Commits and every commit carriesSigned-off-by. - No Rust, dependency, crypto, protocol or licence surface touched; the MANIFIESTO hard commitments (ci(deps): Bump actions/checkout from 4 to 6 #1 unsafe, chore(security): publish project PGP key #2 PQ KEX, Generate and publish project PGP key for SECURITY.md #3 legacy, docs: add operations and verification guide #5 Apache-2.0) are not implicated by an ADR/CI change, and no dependency is added (commitment chore(security): mark quantumssh.org aliases as live #4).
Limitations
OPENCODE_MODEL,OPENCODE_GO_API_KEY/DEEPSEEK_API_KEY, theopencode-agentApp's installation scopes, and live branch-protection state are not observable from this runner; conclusions assume they are populated as ADR-0032 states.- The pinned composite installs the opencode CLI from
releases/latestat run time, so its footer/configureGitbehaviour is not fixed by the SHA — a documented residual (ADR-0032 §Consequences/Negative, pre-existing under ADR-0025), not a defect introduced here. - The external DeepSeek and OpenCode Go pages were not fetched; the citation corrections were checked for internal consistency against ADR-0032's own links and the prior rounds' findings.
Decision: 🟢 Approved — all prior Important issues are resolved at HEAD; the two open items remain below the reporting threshold.
The three ADRs merged with Status: Proposed, as the repository does (CLAUDE.md: the Phase-1 ADRs were flipped in the #86 sweep once their implementing changes merged). Their implementing changes are on main: ADR-0030's codex workflow landed in #151 and reviews every human PR, ADR-0031's required-checks rule is live and #155 merged under it, and ADR-0032's opencode workflow landed in #157 and reviewed that PR ten times. Status and Date are the only lines touched. Supersedes #156, which carried the first two flips and fell behind main. Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa Signed-off-by: Gonzalo Fleming <[email protected]>
Summary
The opencode reviewer reads its model from the repository variable
OPENCODE_MODEL(currentlyopencode-go/deepseek-v4.1-flash), validates provider and credential before running, records the model in the job summary, and fails the check unless a review comment was actually posted. ADR-0032 records the decision and amends the three ADR-0025 bullets it changes.Motivation
deepseek-v4-flash(now served by V4.1 Flash) and scheduleddeepseek-v4-pro— the id ADR-0025 fixed — for the same routing on 2026-09-14, then reversed that (pricing page, note 2; the reviewer kept running on V4 Pro). With the model in a variable and written to every run's summary, the record is always true and a re-pointed id is onegh variable setaway from fixed. (An earlier version of this description and of commit4fadca7said the Pro id had been re-pointed; corrected in a later commit after the opencode review checked the source.)claude-review: two green runs, no report. The last step now countsopencode-agent[bot]comments since the run started and fails on zero.codex.ymldoes, the job skips forkpull_requests and a vet step refuses a fork head on both paths before any secret is exposed (raised by the opencode review; pre-existing onmain).pull-requestsdrops toread(the App token from OIDC posts); opencode's permission config denies paths outside the checkout instead ofask, which hangs on a runner; 15-minute ceiling; per-PR concurrency where a push cancels the running review but a comment run never cancels the one publishing.The mechanics are the ones already running in another repository of the maintainer since 2026-09-21; this PR's own
opencoderun is the first execution here.Type of change
Checklist
Developer Certificate of Origin
(
git commit -s).cargo fmt --allandcargo clippy --workspace --all-targets -- -D warningslocally. (N/A: no Rust changed;actionlintwith shellcheck passes on the workflow.)docs/, orREADME.md) where appropriate.CHANGELOG.mdentry under## [Unreleased]if this change is user-visible. (N/A)cargo deny check. (N/A: same action, same SHA)Security considerations
Trust base: a new intermediary (Anomaly Co., OpenCode Go) sees PR diffs of a public repository before the downstream provider; accepted in ADR-0032 on the published zero-retention / no-training terms for the model in use, with the direct-API fallback kept. Every
${{ }}inrun:scripts enters throughenv:.persist-credentialsstaysfalseas onmain. ADR-0032 also records that the pinned action installs the opencode CLI from upstream's latest release at run time, so the pin fixes the composite wrapper, not the CLI (pre-existing under ADR-0025).Notes for reviewers
OPENCODE_MODEL,OPENCODE_GO_API_KEYandDEEPSEEK_API_KEYare already set on the repository; the validation step's messages give the exact command if any goes missing./occomment path is unchanged and has not been exercised in this repository.Proposedon merge and flips in a follow-up, as docs(adr): flip ADR-0030 and ADR-0031 to Accepted #156 does for ADR-0030/0031.Automated reviews
PRs authored by
dependabot[bot](and other bots) do not trigger opencode, Claude Code Review or codex.They are covered by CI (
commit-lint,build,cargo deny,openssh-interop;cargo auditruns weekly) and manual review when needed.https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa