Skip to content

fix(release): weld plugin-review v2026.255.1648 — it carries the x-opencode-session fix - #593

Merged
atrawog merged 1 commit into
mainfrom
fix/weld-fixed-plugin-review
Sep 12, 2026
Merged

atrawog merged 1 commit into
mainfrom
fix/weld-fixed-plugin-review

Conversation

@atrawog

@atrawog atrawog commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Pin the welded plugin-review at v2026.255.1648 so the next charly release's plugin bundle carries the x-opencode-session fix — the second half of the org-wide verdict outage's root fix.

Why merging plugin-review#8 alone changed nothing. 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. 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):

16:48:23Z  plugin-review#8 MERGED (80dbbdb4c1), tagged v2026.255.1648
16:48:54Z  validator run on plugin-adb#8  -> attempt 1/3 failed: LLM 400 ... MissingSessionID
16:49:11Z  validator run on sdk#252       -> attempt 1/3 failed: LLM 400 ... MissingSessionID

…while plugin-review@main demonstrably 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:

/zen/go/v1  plain                      -> 400 MissingSessionID
/zen/go/v1  + x-opencode-session       -> 200 + a real completion
/zen/v1     (with or without header)   -> 401 — that base does not serve the org's model
User-Agent: curl default / none / action-review -> 200 / 200 / 200   (the UA is IRRELEVANT)
stream:true + x-opencode-session       -> 200 + real SSE chunks
stream:true without it                 -> 400 MissingSessionID

And through the engine's own request path ((*llmClient).chat):

with the header:    live request ACCEPTED: session=… content="OK"        (ok)
without the header: LLM 400 ... MissingSessionID                          (FAIL)

The pin itself resolves: v2026.255.1648 → 80dbbdb4c1ae (the plugin-review#8 merge commit) — verified via the tags API, not assumed.

Rulebook compliance

  • R1: the divergence between the merged fix and the unchanged gate was root-caused to the release bundle path (scripts/host-command-plugins.txt → the 9 welded plugins), not to a guess
  • R3: this file is the SINGLE SOURCE for the welded plugin set — the pin is bumped here and nowhere else
  • R5: no parallel path; the pin is replaced, not shadowed
  • R6: fresh branch off origin/main, PR-only, no force-push
  • R7/R10: the pin resolves to the fix tag (verified) + the local end-to-end evidence pasted above
  • R9: no magic numbers (the tag is the fix's own tag-on-merge tag)
  • R2: one line, one purpose

Change classification

  • Change class: release pin (welded plugin version)
  • Verification gate: the pin→tag resolution (pasted) plus the local live matrix against the real gateway — the full bed gate does not apply to a one-line pin, and the org's own gate cannot run at all until this lands
  • Attribution tier: analysed on a live system — the changed path (the welded engine's request) was exercised live with the org key in both directions

Operator 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 variable CHARLY_VERSION at that release tag — nothing else on the gate changes.

Assisted-by: pi ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

…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.
@atrawog
atrawog merged commit e604195 into main Sep 12, 2026
2 checks passed
@atrawog
atrawog deleted the fix/weld-fixed-plugin-review branch September 12, 2026 16:52
charly-auto-merge Bot added a commit that referenced this pull request Sep 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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.

  • class: verdict-less review output
  • review exit code: 1
  • in-job retries: none — the gate REPORTS the class instead of papering over it (R4)

Root cause. A NON-STREAMING request under a WHOLE-GENERATION deadline: plugin-review POSTs with no stream:true (candy/plugin-review/llm.go:92), so response headers arrive only when the ENTIRE generation finishes, all under one http.Client{Timeout} (llm.go:80) whose built-in default is 5 minutes (review.go:28). The review runs in a 20-turn tool loop that APPENDS the tool results of every turn (the PR diff/files) to the context and retries the whole loop up to AI_REVIEW_MAX_ATTEMPTS times (3 in the pinned bundle; 1 once the fail-fast wiring activates): turn 1 completes, and turn 2 — carrying the enlarged context — fails in ONE OF TWO OBSERVED ways: it returns EMPTY content (turn 2: final content len=0, observed on 2 of the 3 attempts in run 34682776608) or it exceeds the 5-minute cap (observed on the third). Both are one defect class — an unbounded, non-streaming request whose context grew. The endpoint answered 405 in 0.18s in the same window — there is no throttled egress.

Durable remedy.

  1. this workflow now PASSES the cap through — AI_REVIEW_ATTEMPT_TIMEOUT (org-settable, 300s default) — raise it if a large context still exceeds it;
  2. plugin-review: stream the completion, set an explicit http.Transport, bound the tool-result payloads, and retry the FAILED TURN rather than the whole loop (owner: plugin-review).

A run that produced no verdict keeps this required check RED: unreviewed code must never merge.

Diagnostics (tail of the review log)
Downloading github.com/opencharly/plugin-review:main...
plugin-review: attempt 1/3 — provider=opencode model=deepseek-v4.1-flash base_url=https://opencode.ai/zen/go/v1
plugin-review: attempt 1 failed: LLM 400: {"type":"error","error":{"type":"MissingSessionID","message":"Error from provider (Console Go): Request is missing x-opencode-session and cannot be routed efficiently. Please see https://opencode.ai/docs/go/#where-can-i-use-it"}}
plugin-review: attempt 2/3 — provider=opencode model=deepseek-v4.1-flash base_url=https://opencode.ai/zen/go/v1
plugin-review: attempt 2 failed: LLM 400: {"type":"error","error":{"type":"MissingSessionID","message":"Error from provider (Console Go): Request is missing x-opencode-session and cannot be routed efficiently. Please see https://opencode.ai/docs/go/#where-can-i-use-it"}}
plugin-review: attempt 3/3 — provider=opencode model=deepseek-v4.1-flash base_url=https://opencode.ai/zen/go/v1
plugin-review: attempt 3 failed: LLM 400: {"type":"error","error":{"type":"MissingSessionID","message":"Error from provider (Console Go): Request is missing x-opencode-session and cannot be routed efficiently. Please see https://opencode.ai/docs/go/#where-can-i-use-it"}}
review: [step: review] all 3 attempts failed to produce a Verdict line

github-actions Bot pushed a commit that referenced this pull request Sep 20, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant