Repository navigation
fix(release): weld plugin-review v2026.255.1648 — it carries the x-opencode-session fix - #593
Conversation
…encode-session fix ROOT CAUSE of the org-wide verdict outage, second half. The PR validator runs `charly review` from the PINNED charly RELEASE bundle (charly-linux-amd64 + charly-plugins-linux-amd64.tar.gz), NOT from plugin-review@main — so merging opencharly/plugin-review#8 changed nothing on the gate. That bundle still welds plugin-review v2026.254.1719, which never sends the `x-opencode-session` header the org's Go gateway now requires, so every review attempt returns HTTP 400 MissingSessionID and NO PR in any repo can obtain a verdict. EVIDENCE (the live gate, after #8 merged at 16:48:23Z): validator runs at 16:48:54Z and 16:49:11Z still log plugin-review: attempt 1/3 failed: LLM 400: {"type":"error","error":{"type":"MissingSessionID"...}} while plugin-review's main demonstrably carries the fix — because the gate never reads main. This commit delivers it: pin the welded plugin-review at v2026.255.1648, the tag-on-merge tag of #8's merge commit 80dbbdb4c1ae. The next charly release then bundles the fixed engine, and the org variable CHARLY_VERSION must be pointed at that release (nothing else on the gate changes; the workflow's hardcoded default is unreachable while the gate is down). PROVEN LOCALLY with the org key before landing (every candidate explanation tested): /zen/go/v1 plain -> 400 MissingSessionID /zen/go/v1 + x-opencode-session -> 200 + a real completion /zen/v1 (any header) -> 401 - that base does not serve the org's model User-Agent default/none/action -> 200/200/200 - the UA is IRRELEVANT stream:true + header -> 200 + real SSE chunks and through the engine's own request path ((*llmClient).chat): ACCEPTED with the header, the exact 400 without it. OPERATOR NOTE: this PR cannot obtain a validator verdict while the gate it repairs is dark, so it needs the app-based (or admin-assisted) operator merge — same situation as plugin-review#8.
validator INCONCLUSIVE — no review verdict was produced (not a BLOCK; no code finding)The gate could not obtain a review verdict on this run, so it produced no code finding. This is not a BLOCK and the PR is not being rejected — but the required check stays RED on purpose: unreviewed code must never merge.
Root cause. A NON-STREAMING request under a WHOLE-GENERATION deadline: plugin-review POSTs with no Durable remedy.
A run that produced no verdict keeps this required check RED: unreviewed code must never merge. Diagnostics (tail of the review log) |
…file diff delivery (#623) Bump the WELDED plugin-review pin from v2026.263.0549 -> v2026.263.1642 so the next charly release's plugin bundle carries the two engine changes merged into opencharly/plugin-review#14: 1. Per-file diff delivery (the spiral fix). get_pr_diff is replaced by get_pr_files (a compact changed-file INDEX) + get_pr_file {path} (one file's full patch, its own tool message). Measured: a monolithic multi-file diff drove deepseek-v4.1-flash to 507-741 KB of reasoning and finish_reason=length with content=0 (13-19 min, no verdict); the same files delivered one per message produced 580 B of reasoning and a verdict in 2 s. 2. A fail-closed context guard (AI_REVIEW_CONTEXT_TOKENS) so an over-cap PR fails hard with a class instead of overflowing, and mechanical anti-skim enforcement so a verdict is refused until every file in the index has been fetched via get_pr_file. Why this PR is the unlock. The org PR validator runs `charly review` from the pinned charly release bundle, not from plugin-review@main. The release welds the plugins from this very file, so merging plugin-review#14 alone changed nothing in the running gate: it still welds v2026.263.0549, whose monolithic-diff delivery is exactly what produces the verdict-less INCONCLUSIVE runs (spec#140, action-review#7). This one-line weld is what makes the merged fix reach the gate. Precedent: #622 (weld v2026.263.0549) and #593 (weld v2026.255.1648) were the same one-line weld for the previous validator outages. Why the weld PR itself can be reviewed by the old engine. Its diff is one line of scripts/host-command-plugins.txt, so the review context is small: the large-context PRs are the ones the current engine cannot finish, and this weld is what unblocks them. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated) Co-authored-by: Andreas Trawoeger <[email protected]>
Summary
Pin the welded
plugin-reviewat v2026.255.1648 so the next charly release's plugin bundle carries thex-opencode-sessionfix — the second half of the org-wide verdict outage's root fix.Why merging
plugin-review#8alone changed nothing. The PR validator runscharly reviewfrom the pinned charly release bundle (charly-linux-amd64+charly-plugins-linux-amd64.tar.gz), not fromplugin-review@main. The release welds the plugins from this very file (scripts/host-command-plugins.txt), whose entry was still[email protected]— an engine that never sends the session header the org's Go gateway now requires, so every review attempt returns HTTP 400 MissingSessionID.Evidence that the gate reads the bundle, not main (post-merge, live):
…while
plugin-review@maindemonstrably contains the fix. The gate cannot see it because it does not read main.How tested
Every candidate explanation was tested locally with the org's own key before landing:
And through the engine's own request path (
(*llmClient).chat):The pin itself resolves:
v2026.255.1648→80dbbdb4c1ae(theplugin-review#8merge commit) — verified via the tags API, not assumed.Rulebook compliance
scripts/host-command-plugins.txt→ the 9 welded plugins), not to a guessorigin/main, PR-only, no force-pushChange classification
analysed on a live system— the changed path (the welded engine's request) was exercised live with the org key in both directionsOperator note — this PR cannot self-validate
The gate it repairs is dark, so no validator verdict can be obtained for it. It therefore needs the app-based (or admin-assisted) operator merge, exactly like
plugin-review#8. Once a release exists with this pin, the remaining step is to point the org variableCHARLY_VERSIONat that release tag — nothing else on the gate changes.Assisted-by: pi ollama-cloud/deepseek-v4.1-flash (analysed on a live system)