Skip to content

fix(release): weld plugin-review v2026.263.1642 — it carries the per-file diff delivery - #623

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/weld-plugin-review-2026.263.1642
Sep 20, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/weld-plugin-review-2026.263.1642

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

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 on the real PR: a monolithic multi-file diff drove deepseek-v4.1-flash to 507–741 KB of reasoning with finish_reason=length, 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 the provider, plus mechanical anti-skim enforcement — a verdict is refused until every file in the get_pr_files 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 (charly-linux-amd64 + charly-plugins-linux-amd64.tar.gz), 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 observed on spec#140 and action-review#7. This one-line weld is what makes the merged fix reach the gate.

The precedent is #622 (weld plugin-review v2026.263.0549) and #593 (weld plugin-review v2026.255.1648 — it carries the x-opencode-session fix) — each pinned the engine half of a previous org-wide validator outage and was exactly this one line.

Why the weld PR itself can be reviewed by the current engine. Its diff is one line of scripts/host-command-plugins.txt, so the review context is small and completes inside the wall clock. The large-context PRs are the ones the current engine cannot finish; this weld is what unblocks them.

How tested

The tag exists and carries the per-file fix — verified by reading the published source at the tag, not assumed:

$ gh api repos/opencharly/plugin-review/tags --jq '.[0:2][].name'
v2026.263.1642
v2026.263.0549

$ gh api repos/opencharly/plugin-review/git/refs/tags/v2026.263.1642 --jq '.object.sha'
331aa9c7076fff3c10a914883158a378b2c57e8b        # == the plugin-review#14 squash merge

$ curl -fsSL .../plugin-review/archive/refs/tags/v2026.263.1642.tar.gz | tar xz
$ grep -c 'get_pr_files\|get_pr_file' candy/plugin-review/review.go     # 12  (the per-file tools)
$ grep -c 'get_pr_files\|get_pr_file' candy/plugin-review/llm.go        # 3
$ grep -c 'get_pr_files\|get_pr_file' candy/plugin-review/ghclient.go   # 3
$ grep -n 'unreadFiles\|filesRead' candy/plugin-review/review.go        # anti-skim tracking present
$ grep -n 'AI_REVIEW_CONTEXT_TOKENS\|too large to review' candy/plugin-review/review.go   # context guard present

Local gate. The repo's Go CI gate (go test ./charly/...) includes packaging_test.go, which asserts the packaging variant plugin sets cover exactly the entries in scripts/host-command-plugins.txt — the one assertion a pin bump can violate:

$ cd charly && go test -run 'TestPackaging|TestRelease|Plugin' .
ok  	github.com/opencharly/charly/charly	78.074s
exit=0

The pin file change:

$ git diff --stat origin/main...HEAD
 scripts/host-command-plugins.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

v2026.263.1642 is a merged tag (the squash-merge of plugin-review#14), never a branch — the pin discipline holds.

Rulebook compliance

  • R0 — /charly-internals:git-workflow loaded before any git/PR action.
  • R1 — the need for the weld is a MEASURED divergence: the running bundle (v2026.263.0549) lacks the merged per-file fix, proven by the verdict-less INCONCLUSIVE runs on spec#140 and action-review#7 and by the 507–741 KB reasoning measurements.
  • R2 — the engine fix is the named merged PR opencharly/plugin-review#14; this PR only points the weld at its merged tag. Nothing is deferred.
  • R3 — one canonical pin source (scripts/host-command-plugins.txt), already documented as the single source for the welded set.
  • R4 — no workaround: the pin file is the documented weld surface; the release workflow builds each listed plugin at its tag.
  • R5 — the stale v2026.263.0549 pin is replaced in place (no dual pin); git grep '[email protected]' returns no live hit in the tree.
  • R6 — git status inspected before commit; fix/ branch off origin/main; no force-push; no direct push to main.
  • R7 — behavior proven: the packaging test that reads the changed file passes; the tag's content was read live from the published archive.
  • R8 — no emitted artifact changes in this repo; the release workflow regenerates the bundle from this pin on the next release.
  • R9 — no binary built here; the release workflow is the binary producer, and it consumes exactly this pin.
  • R10 — the change class is a release pin; the full fresh-rebuild R10 is the post-merge release build that welds and publishes the bundle. Locally the pin-consumer test (packaging_test.go) and the published-tag content are the proof; the release run after merge is the runtime gate.

Change classification

  • Change class: release-pin (welded plugin set), one line.
  • Verification gate: go test ./charly/... (packaging assertion) + published-tag content read; post-merge release build is the R10 fresh-rebuild.
  • Attribution tier: fully tested and validated — the pin-consumer gate passed on the final tree and the pinned tag's content was verified live.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

…file diff delivery

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)
@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — PASS

Head SHA: 8020d83903aa99821fe19b91143321dcd694697f (base 6d09a85effcfcbfeeea1044014bfbb986528b2ec)

Security screen: PASS — diff is a single pin line in scripts/host-command-plugins.txt; no secrets, no egress, no guardrail weakening, no scope mismatch (body accounts for the one changed file), no injected directives in body/commits. T4: the change is a version bump of the validator engine to a merged same-org tag whose stated intent (fail-closed context guard + anti-skim enforcement) strengthens the gate; mechanism is statically verifiable (pin line → release weld → packaging_test.go coverage assertion).
Checklist: All applicable rules PASS or NA. Change class = release-pin (config, one line); the post-merge release build is the R10 fresh-rebuild and is by definition unobservable pre-merge (self-gated install), so no bed run is blockable here. Body is complete (Summary/How tested with pasted output/Attribution tier/R0–R10 each answered) and ends with the required *Assisted-by: …* line; pasted git diff --stat (1 file, 1+/1−) matches the diff and PR meta exactly.
Tool-limited disposition: I cannot re-run the tag-content greps or the packaging test; the pasted outputs are internally consistent (tag names, sha, file names, counts, and the 1-file stat all reconcile with the diff), so they are accepted as coherent evidence, not on the author's word alone.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 20, 2026 18:28
@github-actions
github-actions Bot merged commit 364d82d into main Sep 20, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 20, 2026
@aitrawog
aitrawog deleted the fix/weld-plugin-review-2026.263.1642 branch September 25, 2026 19:06
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