Skip to content

fix(release): weld plugin-review v2026.265.0505 — the measured-best sampling defaults - #626

Merged
aitrawog merged 2 commits into
mainfrom
fix/weld-plugin-review-2026.264.1425
Sep 22, 2026
Merged

aitrawog merged 2 commits into
mainfrom
fix/weld-plugin-review-2026.264.1425

Conversation

@aitrawog

@aitrawog aitrawog commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Bump the welded plugin-review pin from v2026.263.1956 → v2026.265.0505 so the next charly release's plugin bundle carries the fixed review-engine defaults (merged opencharly/plugin-review#18).

The branch also passed through v2026.264.1425 (the ONE-call engine rewrite); that intermediate value is wholly superseded and is not in the net diff. The net change from main is one line: v2026.263.1956 → v2026.265.0505.

The fix (#18): the engine sampled at temperature=0.2, a near-greedy choice that collapsed into degenerate repetition — once a high-probability token (Hmm.) won the argmax it self-reinforced and the model emitted it thousands of times (measured 2,533–38,472×) with no verdict. #18 ships the single measured-best default set for deepseek-v4.1-flash, identical across config.go, charly.yml var: and the org environment:

knob value
temperature 1.0
top_p 0.95
frequency_penalty 0.5
presence_penalty 1.0

The four-value set is the configuration that measured 0 collapses in 26 runs (versus 1 in 17 at the official sampling alone). The same PR adds TestOfficialSamplingDefaults, TestModelDefaultsMatchCharlyYML (locks charly.yml to the Go constants) and TestSamplingTrace (the debug trace now prints the resolved sampling).

Why this PR is the unlock. The org PR validator runs charly review from the pinned charly release (charly-linux-amd64 + charly-plugins-linux-amd64.tar.gz), not from plugin-review@main. Merging #18 alone changed nothing in the running gate — this one-line weld is what makes the fixed defaults reach it. Precedent: #622/#624 were the same one-line weld for the previous engine fixes.

How tested

Both tags exist on main and carry the intended content. v2026.265.0505 is the squash-merge of #18; v2026.264.1425 is its ancestor (superseded, not in the net diff):

$ git -C plugin-review merge-base --is-ancestor v2026.264.1425 v2026.265.0505 && echo YES
YES
$ git -C plugin-review branch -a --contains v2026.265.0505
  remotes/origin/main
$ git -C plugin-review show v2026.265.0505:candy/plugin-review/config.go | grep -n 'reviewTemperature\|reviewTopP\|defaultFrequencyPenalty\|defaultPresencePenalty'
124:	reviewTemperature       = 1.0
125:	reviewTopP              = 0.95
126:	defaultFrequencyPenalty = 0.5
127:	defaultPresencePenalty  = 1.0

Local gate — the repo's Go gate includes packaging_test.go, which asserts the packaging variant plugin sets cover exactly the entries in scripts/host-command-plugins.txt:

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

The net diff from main (the pinned change):

$ git diff origin/main...HEAD -- scripts/host-command-plugins.txt
[email protected]
[email protected]

Rulebook compliance

  • R0 skills: /charly-internals:git-workflow loaded.
  • R1 RCA: the collapse was root-caused in docs: bump submodule pointers for PR-template single-source consolidation #18 to temperature=0.2; this weld carries that fix.
  • R2 complete: the one-line weld lands now, not deferred.
  • R3 no duplication: the pin lives once in scripts/host-command-plugins.txt.
  • R4 no workaround: a pin bump to a published, tagged release — no shim.
  • R5: the old pin is replaced in place; no stale reference remains.
  • R6 git safety: fix/ branch; no force-push; no direct push to main.
  • R7 gate: the packaging test is run and pasted on the final tree.
  • R8/R9/R10: N/A — a one-line pin file change; the artifact is the release bundle built from this pin, and the plugin's own ADE plan/tests cover the engine (proven in #18).

Change classification

  • Change class: release pin (scripts/host-command-plugins.txt) — one line.
  • Verification gate: the packaging test (TestPackaging|TestRelease).
  • Attribution tier: analysed on a live system — both tags' existence and content were read from the plugin-review repo; the full release build is the post-merge step.

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

… engine

Bump the WELDED plugin-review pin from v2026.263.1956 -> v2026.264.1425 so the next
charly release's plugin bundle carries the rewritten review engine (merged #16):

- ONE path: assemble the COMPLETE PR context (body, EVERY changed file's full
  diff, commits, EVERY comment) into ONE message and make ONE model call — no
  tool loop. The loop fragmented the context and reasoning is not re-sent between
  turns, so the synthesis turn re-derived everything (measured: 371 KB of
  reasoning over three runaway turns, 8m25s, no verdict at cap on a 25-file PR).
  The ONE-message design produced a verdict from ONE call (measured live: 1m24s
  action-review#7, 2m55s spec#140, 3m6s this 43-file PR).
- The prompt is EMBEDDED (prompt.md); every model-behaviour knob is an
  AI_REVIEW_* env var.
- Removed: the plan executor, fixture mode, the verb:pr duplicate (plugin-gh's
  verb:gh is canonical), schema/params, and the retry experiments.
- Fail-closed verdict contract: Run exits 0 ONLY for a single verdict.

The org validator runs `charly review` from the pinned charly release, so merging
#16 alone changed nothing in the running gate — this weld is what makes it reach it.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
aitrawog pushed a commit to opencharly/.github that referenced this pull request Sep 21, 2026
The diff's comments said the embedding release is 'not yet welded' while the body
said the pinned release already runs the ONE-call engine. Reconciled: the
currently-pinned engine reads REVIEW_PROMPT_PATH and the plain 'charly review
--out' form is accepted by BOTH it and the new engine, so the invocation is
weld-independent; REVIEW_PROMPT_PATH is the one transitional env, removed when
opencharly/charly#626 (plugin-review v2026.264.1425) is welded.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@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.

Root cause. The ENGINE sent no generation bound (reasoning_effort / max_tokens), so a reasoning model generated megabytes of reasoning before answering (measured: 1.75 MB / 786 s on the real context). THIS WORKFLOW then converted that into a hard failure by handing the engine a hardcoded 5-minute whole-request AI_REVIEW_ATTEMPT_TIMEOUT (the engine streams, so a whole-generation deadline is the wrong bound) — the cap killed the generation mid-flight and the per-turn retry re-sent the SAME request. The primary cause is the unbounded generation (owner: the engine, opencharly/plugin-review#10); the hardcoded cap is the workflow-side amplifier this PR removes.

Durable remedy.

  1. bound the generation in the engine (refactor(review): use the shared sdk/llmkit client (one OpenAI path) plugin-review#10); pass AI_REVIEW_STREAM_IDLE_TIMEOUT (the correct bound for a streaming engine) and leave AI_REVIEW_ATTEMPT_TIMEOUT UNSET so no whole-generation cap cuts a progressing stream;
  2. if this persists, raise the idle bound or the tool-result cap (AI_REVIEW_TOOL_RESULT_MAX_BYTES) rather than capping total generation time.

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...
charly: fetching git metadata for 1 repo(s) (first run — may take a moment)...
charly: git metadata cached.
Downloading github.com/opencharly/plugin-review:v2026.251.1928...
Downloading github.com/opencharly/layer-gh:v2026.239.1624...
plugin-review: pass 1/1 — provider=ollama-cloud model=deepseek-v4.1-flash base_url=https://ollama.com/v1
plugin-review[debug]: loop start — turns_max=60 tool_result_max_bytes=65536 idle=3m0s attempt_timeout=15m0s reasoning_effort="high" max_tokens=262144 system_prompt_bytes=28342
plugin-review[debug]: turn 1 done in 1.139596018s — context_in=28597 bytes content=47 reasoning=0 bytes finish_reason="tool_calls" usage=prompt=7907 completion=48 total=7955 reasoning=0 tool_calls=2
plugin-review: turn 1: 2 tool call(s)
plugin-review[debug]:   tool "get_pr_meta" args=2 bytes -> result=254 bytes (post-cap=254) in 548.978721ms
plugin-review[debug]:   tool "get_pr_body" args=2 bytes -> result=4781 bytes (post-cap=4781) in 233.266265ms
plugin-review[debug]: turn 2 done in 2.177986865s — context_in=33705 bytes content=0 reasoning=48 bytes finish_reason="tool_calls" usage=prompt=9453 completion=64 total=9517 reasoning=0 tool_calls=3
plugin-review: turn 2: 3 tool call(s)
plugin-review[debug]:   tool "get_pr_files" args=2 bytes -> result=160 bytes (post-cap=160) in 305.472554ms
plugin-review[debug]:   tool "get_pr_commits" args=2 bytes -> result=182 bytes (post-cap=182) in 237.802102ms
plugin-review[debug]:   tool "get_pr_thread" args=2 bytes -> result=131 bytes (post-cap=131) in 199.31194ms
plugin-review[debug]: turn 3 done in 1.68067933s — context_in=34271 bytes content=0 reasoning=32 bytes finish_reason="tool_calls" usage=prompt=9699 completion=57 total=9756 reasoning=0 tool_calls=1
plugin-review: turn 3: 1 tool call(s)
plugin-review[debug]:   tool "get_pr_file" args=43 bytes -> result=306 bytes (post-cap=306) in 297.623491ms
plugin-review[debug]: turn 4 FAILED after 9m7.603494108s (context=34663 bytes): the model produced no answer and retrying it is pointless (LLM: empty completion (no content, no tool calls; finish_reason="length"; the model emitted only 290983 byte(s) of reasoning and no answer — the output token budget was exhausted before any answer; this is NOT retryable with the same max_tokens/reasoning_effort)); raise AI_REVIEW_MAX_TOKENS (currently 262144) so the reasoning budget leaves room for the answer, or lower AI_REVIEW_REASONING_EFFORT
plugin-review: pass 1 failed: the model produced no answer and retrying it is pointless (LLM: empty completion (no content, no tool calls; finish_reason="length"; the model emitted only 290983 byte(s) of reasoning and no answer — the output token budget was exhausted before any answer; this is NOT retryable with the same max_tokens/reasoning_effort)); raise AI_REVIEW_MAX_TOKENS (currently 262144) so the reasoning budget leaves room for the answer, or lower AI_REVIEW_REASONING_EFFORT
review: [step: review] inconclusive: the model produced no answer and this is not retryable (the model produced no answer and retrying it is pointless (LLM: empty completion (no content, no tool calls; finish_reason="length"; the model emitted only 290983 byte(s) of reasoning and no answer — the output token budget was exhausted before any answer; this is NOT retryable with the same max_tokens/reasoning_effort)); raise AI_REVIEW_MAX_TOKENS (currently 262144) so the reasoning budget leaves room for the answer, or lower AI_REVIEW_REASONING_EFFORT)

@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.

Root cause. The ENGINE sent no generation bound (reasoning_effort / max_tokens), so a reasoning model generated megabytes of reasoning before answering (measured: 1.75 MB / 786 s on the real context). THIS WORKFLOW then converted that into a hard failure by handing the engine a hardcoded 5-minute whole-request AI_REVIEW_ATTEMPT_TIMEOUT (the engine streams, so a whole-generation deadline is the wrong bound) — the cap killed the generation mid-flight and the per-turn retry re-sent the SAME request. The primary cause is the unbounded generation (owner: the engine, opencharly/plugin-review#10); the hardcoded cap is the workflow-side amplifier this PR removes.

Durable remedy.

  1. bound the generation in the engine (refactor(review): use the shared sdk/llmkit client (one OpenAI path) plugin-review#10); pass AI_REVIEW_STREAM_IDLE_TIMEOUT (the correct bound for a streaming engine) and leave AI_REVIEW_ATTEMPT_TIMEOUT UNSET so no whole-generation cap cuts a progressing stream;
  2. if this persists, raise the idle bound or the tool-result cap (AI_REVIEW_TOOL_RESULT_MAX_BYTES) rather than capping total generation time.

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...
charly: fetching git metadata for 1 repo(s) (first run — may take a moment)...
charly: git metadata cached.
Downloading github.com/opencharly/plugin-review:v2026.251.1928...
Downloading github.com/opencharly/layer-gh:v2026.239.1624...
plugin-review: pass 1/1 — provider=ollama-cloud model=deepseek-v4.1-flash base_url=https://ollama.com/v1
plugin-review[debug]: loop start — turns_max=60 tool_result_max_bytes=65536 idle=3m0s attempt_timeout=15m0s reasoning_effort="high" max_tokens=262144 system_prompt_bytes=28342
plugin-review[debug]: turn 1 done in 5.301202738s — context_in=28597 bytes content=47 reasoning=0 bytes finish_reason="tool_calls" usage=prompt=7907 completion=48 total=7955 reasoning=0 tool_calls=2
plugin-review: turn 1: 2 tool call(s)
plugin-review[debug]:   tool "get_pr_meta" args=2 bytes -> result=254 bytes (post-cap=254) in 757.539912ms
plugin-review[debug]:   tool "get_pr_body" args=2 bytes -> result=4781 bytes (post-cap=4781) in 330.360016ms
plugin-review[debug]: turn 2 done in 1.072295473s — context_in=33705 bytes content=0 reasoning=39 bytes finish_reason="tool_calls" usage=prompt=9453 completion=62 total=9515 reasoning=0 tool_calls=3
plugin-review: turn 2: 3 tool call(s)
plugin-review[debug]:   tool "get_pr_files" args=2 bytes -> result=160 bytes (post-cap=160) in 233.934586ms
plugin-review[debug]:   tool "get_pr_commits" args=2 bytes -> result=182 bytes (post-cap=182) in 257.507195ms
plugin-review[debug]:   tool "get_pr_thread" args=2 bytes -> result=332 bytes (post-cap=332) in 227.32406ms
plugin-review[debug]: turn 3 done in 1.511231939s — context_in=34463 bytes content=0 reasoning=36 bytes finish_reason="tool_calls" usage=prompt=9762 completion=90 total=9852 reasoning=0 tool_calls=2
plugin-review: turn 3: 2 tool call(s)
plugin-review[debug]:   tool "get_pr_file" args=43 bytes -> result=306 bytes (post-cap=306) in 273.253036ms
plugin-review[debug]:   tool "get_pr_comment" args=17 bytes -> result=5687 bytes (post-cap=5687) in 327.528626ms
plugin-review[debug]: turn 4 FAILED after 9m40.898202586s (context=40577 bytes): the model produced no answer and retrying it is pointless (LLM: empty completion (no content, no tool calls; finish_reason="length"; the model emitted only 272325 byte(s) of reasoning and no answer — the output token budget was exhausted before any answer; this is NOT retryable with the same max_tokens/reasoning_effort)); raise AI_REVIEW_MAX_TOKENS (currently 262144) so the reasoning budget leaves room for the answer, or lower AI_REVIEW_REASONING_EFFORT
plugin-review: pass 1 failed: the model produced no answer and retrying it is pointless (LLM: empty completion (no content, no tool calls; finish_reason="length"; the model emitted only 272325 byte(s) of reasoning and no answer — the output token budget was exhausted before any answer; this is NOT retryable with the same max_tokens/reasoning_effort)); raise AI_REVIEW_MAX_TOKENS (currently 262144) so the reasoning budget leaves room for the answer, or lower AI_REVIEW_REASONING_EFFORT
review: [step: review] inconclusive: the model produced no answer and this is not retryable (the model produced no answer and retrying it is pointless (LLM: empty completion (no content, no tool calls; finish_reason="length"; the model emitted only 272325 byte(s) of reasoning and no answer — the output token budget was exhausted before any answer; this is NOT retryable with the same max_tokens/reasoning_effort)); raise AI_REVIEW_MAX_TOKENS (currently 262144) so the reasoning budget leaves room for the answer, or lower AI_REVIEW_REASONING_EFFORT)

…ampling defaults

Bump the welded plugin-review pin v2026.264.1425 -> v2026.265.0505, which
carries opencharly/plugin-review#18: the single measured-best model-behaviour
default set (temperature 1.0, top_p 0.95, frequency_penalty 0.5,
presence_penalty 1.0) shipped identically across config.go, charly.yml and the
org environment. Previously the engine sampled at temperature=0.2 (near-greedy)
and collapsed into degenerate repetition (one token repeated 2,533-38,472x, no
verdict). The four-value set measured 0 collapses in 26 runs vs 1 in 17 at the
sampling alone.
@aitrawog aitrawog changed the title fix(release): weld plugin-review v2026.264.1425 — the ONE-call review engine fix(release): weld plugin-review v2026.265.0505 — the measured-best sampling defaults Sep 22, 2026
@aitrawog
aitrawog merged commit 27cea91 into main Sep 22, 2026
2 checks passed
@aitrawog
aitrawog deleted the fix/weld-plugin-review-2026.264.1425 branch September 22, 2026 05:12
charly-auto-merge Bot added a commit that referenced this pull request Sep 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — PASS

Head SHA: ddd59432a16cb1bfc902463eac2b1c242b530172 (base: main)

Change class: release pin — one line in scripts/host-command-plugins.txt ([email protected] → v2026.265.0505); no code/config/hook/schema change.

Security screen: PASS — no secrets, no egress, no obfuscation, no guardrail weakening. The pin moves within the same repo (plugin-review) to a newer tag, justified in-body; T4 does not apply (a plugin version manifest is not the pre-push/pre-commit gate, branch-protection config, this validator's spec, or the rulebook's landing/attribution/no-force-push rules). No embedded directive aimed at the reviewer (T2 clean).

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: body accounts for the sole changed file, names the gate (TestPackaging|TestRelease) with pasted ok … 2.426s output, and claims the conservative tier analysed on a live system (not inflated); footer is the exact *Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)* form.
  • B5–B10: no failure/warning in pasted output; no pre-existing/out-of-scope split; pin lives once; no shim; old pin replaced in place.
  • B11/B12: R6 stated; R8/R9/R10 answered N/A with a class reason — legitimate here, and per the self-gated-install rule the end-to-end green of this weld (the gate running the fixed engine) cannot exist before merge; the mechanism is statically correct (right file, right format, tag existence/content pasted and internally consistent with the body's four-value table).
  • B13/B16/B17/B18: no candy/schema/Go changes; placement CORRECT (existing pin manifest, no new code, no alias/import growth); no disposable target involved.
  • B15 flag (non-blocking): two commits (b69b947 welds the superseded v2026.264.1425, ddd59432 welds v2026.265.0505); the net diff is one atomic line and the body discloses the intermediate, so no partial/split pattern — the intended squash collapses them.

Comments considered: #5762657896 and #5762809531 (github-actions[bot], INCONCLUSIVE) — verified-non-blocking: both explicitly state "not a BLOCK; no code finding", and their own pasted logs (reasoning_effort="high" max_tokens=262144, failure = output budget exhausted) contradict their narrative that "the ENGINE sent no generation bound", so their root-cause text is stale/superseded; neither raises a finding against this diff. Their logs do corroborate the body's claim that the gate runs plugin-review from the pinned release.

Verdict: PASS


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

View action run

aitrawog added a commit to opencharly/.github that referenced this pull request Sep 22, 2026
… N BLOCKs (#104)

* feat(validator): invoke the review engine directly + auto-close after N BLOCKs

Two coupled changes to the org-wide pr-validator workflow.

1. DIRECT INVOCATION. Replace `charly review --plan "$REVIEW_PLAN_PATH"` with
   `charly review`. The engine that is welded into the pinned charly release
   assembles the complete PR context and makes ONE model call — the plan executor
   (and its `review-plan.yml` that wrapped a single review step) is gone. The old
   engine also accepts the plain form, so this is safe to land BEFORE the weld.
   REVIEW_PROMPT_PATH is still exported for a future engine that reads one; the
   current engine's rulebook is embedded in the plugin (no file read).

2. AUTO-CLOSE after N BLOCKs (AI_REVIEW_AUTO_CLOSE_AFTER, default 5; 0 disables).
   A PR that keeps collecting BLOCK verdicts — because the author re-pushes
   without fixing the raised findings — grows its own comment thread, which is
   exactly what drives the reviewer's context into a runaway. The step counts the
   PR's own "## Review — BLOCK" verdict comments (no external state), and at the
   threshold posts a notice telling the author to open a NEW PR with every finding
   already fixed, then closes the PR. It runs BEFORE the BLOCK gate so the close +
   notice land before the check fails.

R10 coverage (the gate's own harness, .github/tests/validator-gate-harness.py):
both branches are asserted by new scenarios — at-threshold (closes + posts the
notice) and below-threshold (does not). The harness runs the REAL `run:` bodies
against fakes for charly/gh; 238 assertions across 15 scenarios, ALL PASS.

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

* fix(validator): page-correct BLOCK count, truthful comments, plain-form proof

Round 2 — addresses all three findings from the validator BLOCK on the first head.

1. R10/B18 — the auto-close count was WRONG for multi-page threads, and the
   harness could not catch it. `gh api --paginate ... --jq '[.[]|…]|length'`
   applies the filter PER PAGE (that is what `--slurp` is for), so a thread with
   >30 comments yielded several numbers joined by newlines; the numeric guard
   rejected it and SILENTLY DISABLED auto-close on exactly the long threads the
   feature exists to bound. Verified live: a per_page=10 request printed
   `10\n10\n10…`. Fix: `gh api --paginate | jq -s '[.[][] | …] | length'`
   collects the pages into ONE array first (verified: 53 with and without forced
   pagination). The harness's fake gh now emits REAL JSON pages and a new
   `auto-close-multi-page` scenario (5 BLOCKs among 60 others at page size 30)
   asserts the PR is still closed — it FAILS against the old per-page form.

2. R5/B5 — the new header comment was false and contradicted the body: it claimed
   "the prompt is EMBEDDED in the plugin, so this workflow passes no plan/prompt
   path", while the diff still passes REVIEW_PROMPT_PATH. The CURRENTLY-pinned
   engine DOES read that env (verified: `strings` on the v2026.263.2131 plugin
   finds REVIEW_PROMPT_PATH, and a live run used it). Corrected both comments to
   say the pinned engine reads the file, the next (embedded-rulebook) engine
   ignores it, and the env is removed in the pin-bump that welds it.

3. A2/A3/R10 — the load-bearing "the old engine also accepts the plain form"
   claim is now PROVEN, not asserted. Ran the PINNED release plugin
   (v2026.263.2131) with the plain `charly review pr 7 --repo …` form (no
   --plan): it completed and produced `Verdict: BLOCK` (pasted in the body).

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

* fix(validator): state the pinned engine's state once, consistently

The diff's comments said the embedding release is 'not yet welded' while the body
said the pinned release already runs the ONE-call engine. Reconciled: the
currently-pinned engine reads REVIEW_PROMPT_PATH and the plain 'charly review
--out' form is accepted by BOTH it and the new engine, so the invocation is
weld-independent; REVIEW_PROMPT_PATH is the one transitional env, removed when
opencharly/charly#626 (plugin-review v2026.264.1425) is welded.

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

* fix(validator): forward the FULL review-knob surface (incl. sampling)

Audit found the workflow forwarded only 13 of the env knobs the review engines
read. Both the currently-pinned engine (plugin-review v2026.263.1956) and the new
ONE-call engine (v2026.264.1425) read MORE, and the union must be forwarded or an
operator cannot configure them from an org variable:

  new engine missing: AI_REVIEW_CONTEXT_MARGIN, _CONTEXT_TOKENS,
    _FREQUENCY_PENALTY, _PRESENCE_PENALTY, _PROMPT_EXTRA, _POST_COMMENT,
    _STOP, _TEMPERATURE, _TOP_P
  pinned engine missing: AI_REVIEW_CONTEXT_MARGIN, _CONTEXT_TOKENS,
    _SESSION_ID, _TEMPERATURE

CRITICAL: AI_REVIEW_TEMPERATURE and AI_REVIEW_TOP_P were NOT forwarded, so the
sampling values could not be set (or tuned) from an org variable at all. They are
now forwarded, and the engine's vendor-recommended defaults (temp=1.0,
top_p=0.95) plus the repetition-guard penalties are all org-tunable.

AI_REVIEW_OUT is deliberately NOT forwarded (the step passes --out explicitly).

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

* docs(validator): name the shipping engine, not the weld target; reconcile the comment count

- The review step name said 'one model call', which describes the welded
  embedded-prompt engine, not the engine actually shipping in the org pin. Name
  the shipping behaviour (assemble context, verdict).
- The header said 'ONE PR comment'; a policy auto-close step posts a second,
  distinct notice. Say 'ONE review comment' and note the separate notice.
- The weld PR (charly#626) is merged; reword the REVIEW_PROMPT_PATH note to the
  pin state rather than the prospective weld.

* fix(validator): render the ACTUAL BLOCK count in the auto-close notice; cover it

The headline bound $THRESHOLD while the body said $blocks, so a PR with 8 BLOCKs
read '## Auto-closed: 5 unanswered BLOCK verdicts' next to 'received **8**' — a
false statement emitted by the gate. Bind the headline to $blocks and add the
auto-close-over-threshold-count scenario (block_count=8), which FAILS on the old
args and passes on the fix. 259 assertions / 17 scenarios.

Also correct the ACTIVE-knob inventory to the real org pin (v2026.263.2131 welds
[email protected]) and mark the sampling/penalty knobs inert until the
pin moves.

* docs(validator): correct the ACTIVE/INERT knob inventory against measured strings

The header marked AI_REVIEW_TEMPERATURE INERT, but `strings` on the pinned
bundle (v2026.263.2131 -> [email protected]) finds it — it is ACTIVE.
Also drop the false pointer 'the evidence is in this PR's body' (the body must
carry that strings output, and now does).

---------

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