Repository navigation
fix(config): an empty AI_REVIEW_REASONING_EFFORT is the default, not "send no effort" - #37
Conversation
…"send no effort" The org validator forwards every unset org var as "" on the documented premise that empty means unset. AI_REVIEW_REASONING_EFFORT was the one knob read with envStrLookup, which honoured "" as "omit reasoning_effort", so the declared default `high` never reached the gate: every request carried reasoning_effort="", Ollama Cloud applied its own unbounded default thinking (61k-88k completion tokens vs 8k-41k at high), and the tail crossed the 15m attempt cap — INCONCLUSIVE. envStrLookup is deleted, and its ONE caller now reads the knob with envStr: an unset OR empty value is the declared default. That is the behaviour of every reader this surface uses EXCEPT two, where empty is meaningful ON PURPOSE and on OTHER knobs — envBool's "" (false, e.g. AI_REVIEW_POST_COMMENT, whose default is true) and AI_REVIEW_SESSION_ID (where "" disables affinity). The comment names both exceptions instead of claiming a rule the code does not have, which was the defect being fixed. Thinking is disabled only by the explicit word `none`. The manifest description and the config comment lose the false "empty disables" premise, and both terminal error messages now state the effective reasoning_effort and max_tokens — the two values an RCA needs and that the 15m run never reported. Closes #36 *Agent: `review-effort` · session `2e90ca1f-55b3-4792-b6a5-e37d6ed1a1a8`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)*
Review — BLOCKHead SHA: Change class: code/config — a change to the review engine itself ( Security screen: no finding — the diff adds no secrets, no egress, no new deps, and weakens no gate; it strengthens the engine's config contract. No comment tries to instruct me. Comment intake: 0 comments → no maintainer sign-off exists on the thread, and there are no prior findings to re-derive. Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
T13 sign-off — review-engine change: an empty Posted under a maintainer-set account with the operator's explicit authorization (the account is the gate; this comment records what is attested). Head What is signed off, re-measured here rather than taken from the body:
T13 is met, and it is signed off here on that evidence. Per the engine-change exception the merge itself remains the operator's to perform — no agent runs Agent: |
Review — PASSHead SHA: Change class: engine behaviour + config contract ( Security screen: PASS — no secrets/egress/deps; no gate weakened (the change strengthens the config contract: empty no longer silently drops Checklist: All applicable rules PASS or NA. Diff re-derived and internally consistent: Comments:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
AI_REVIEW_REASONING_EFFORTwas the ONE knob on this plugin's model-behaviour surface read withenvStrLookup, which honours an explicitly-set empty value. The org validator forwards everyunset org var as
"", so the declared defaulthigh(DefaultReasoningEffort) never reached thegate: every request carried
reasoning_effort="", and the field comment asserted that this"disables thinking". It does not — omitting the field leaves Ollama Cloud to apply its own
unbounded default thinking. Measured in the live runs quoted on #36: 61k–88k completion tokens and
a 15m attempt cap, versus 8k–41k at
high.Two changes, one commit:
envStrLookupis deleted, andReasoningEffortreads viaenvStr, so an unset or emptyvalue yields the declared default. The helper had exactly ONE caller in the module.
config.gofieldcomment and from the candy's
var:description. Both terminal error messages now also reportthe effective
reasoning_effortandmax_tokens: the two values an RCA needs, and the two the15m run never logged (
review.gosaid only "lowerAI_REVIEW_REASONING_EFFORT" without sayingwhat it was).
Plus the test the issue asks for:
AI_REVIEW_REASONING_EFFORT=""→DefaultReasoningEffort.A correction to this issue's own premise (R1 — the same defect class)
#36 frames empty-as-unset as "like every other knob". Writing the comment that way would have
re-introduced the exact defect being fixed — a comment asserting a rule the code does not have.
Two readers of this same surface deliberately give
""a meaning:""yieldsenvStr(this knob)AI_REVIEW_REASONING_EFFORT=""→highenvBoolfalseAI_REVIEW_POST_COMMENT=""→false, although its default istrueAI_REVIEW_SESSION_IDsessionID()reads it withos.LookupEnvdirectlyThe new comment names both exceptions instead of claiming a rule the code does not have.
There is no behaviour change for those two knobs, and no
AI_REVIEW_*env name is added orremoved — the only env name in the whole diff is
"AI_REVIEW_REASONING_EFFORT", which themanifest already declares, so
TestConfigSurfaceMatchesCharlyYML(the test that asserts the Goreader set equals the candy's declared surface) still passes unchanged.
What is deliberately NOT in this diff
schema/review.cue— untouched. Its own header states theAI_REVIEW_*configuration surfaceis declared in
charly.yml'senv_accept:list (its single source), and that the schema"generates NO
paramspackage" because the plugin declares no typedplugin_input. No env namechanged, so there is nothing for the schema to express.
config.gois hand-written, notgenerated: it carries no
// Code generatedheader, and the schema header confirms it has noGo consumer at all.
review-skillentity — untouched. Its only mention of reasoning is “AI_REVIEW_DEBUG=1emits the full request trace AND the model's reasoning, which is what an RCA needs.” That states
no empty-disables premise, so the engine-surface change has no counterpart there.
CHANGELOG/2026.263.0549.md:77— untouched, deliberately. It is a dated record of what thatrelease did (“an empty/zero value disables that knob”), and it is already stale on its own terms
(the same paragraph says the engine defaults to
reasoning_effort: low; the default ishightoday). Rewriting a past release's changelog would falsify the record, so the false premise is
deleted only where it describes current behaviour.
How tested
All commands run against head
a150ff1, fromcandy/plugin-review/in this PR's worktree.1. The plugin's own build, vet and tests, uncached (
-count=1, so nothing is served from thego test cache):
TestConfigInvalidEnvFallsBackis where the new assertion lives: it setsAI_REVIEW_REASONING_EFFORT=""and now requiresc.ReasoningEffort == DefaultReasoningEffort.The assertion is new in this commit, and it rejects exactly what the deleted helper returned —
envStrLookupreturnedvverbatim whenever the variable was set, so a set-but-empty variablecame back as
""instead of the default. That is the regression the test pins.2. The plugin's own non-review modes — the same code paths the candy's
plan:checks drive(
command.goparses exactly--self-testand--self-test-verdictas the only non-review modes).Run directly because
charlycannot load this project in this sandbox (item 3):3.
charly box validatecannot run in THIS sandbox, and that is a local-toolchain artifact —pasted in full rather than omitted, because the repo's AGENTS.md names it as a check. Both
available binaries fail, the failure is byte-identical at the base commit, and the org-pinned
CI charly ran green on this repo after the manifest change that causes it:
The root
charly.ymlis not in that list. Itsversion:stamp was dropped by the org-widecutover
7a09fc5 chore(schema): drop the retired config version: stamp (org-wide cutover)(2026-09-28 19:04 UTC), which is in this PR's base; the local dev build still requires the stamp
that the cutover retired. The org-pinned CI charly is
v2026.271.0950(gh variable list --org opencharly), and this repo'sciandcharly/pr-validatorboth ran success on 2026-10-01 —after that cutover. So this is a local binary-vs-pinned-binary artifact, not a blocker for this
change.
4.
gofmt— the first line of this repo'scijob is a gofmt gate:Live-or-skip: nothing lives here that could be faked. Every command above ran against the real
toolchain; the two engine failure strings the issue quotes are quoted from the live runs recorded
on #36, and the
box validatefailure is pasted as it occurred rather than skipped silently. Nolive provider call is made — this change is read-path config and error text, and the model call is
not exercised.
Rulebook compliance
knob was read by the ONE helper that contradicts the surface's own contract, so the declared
default could not reach the engine. Fixed at the reader, not at the wording. The same rule was
applied to my own fix: the issue's "like every other knob" premise is false, and is corrected
above with the two counterexamples rather than propagated.
envStrLookupis gone, so there is no secondempty-means-something reader for string knobs.
AI_REVIEW_REASONING_EFFORT=mediumis a mitigation, and this change makes the documentedcontract true without it.
"empty disables" premise are deleted in this same commit; nothing is kept below as history.
feat/branch offorigin/main, no force-push, no directpush to
main, no hook bypass.pasted above, on the final tree. The one check that cannot run here (
charly box validate) ispasted with its base-commit contradiction and its post-cutover green CI, rather than claimed.
a150ff1;the diff's name list is printed from the same range.
opencharly/plugin-reviewAGENTS.md — "EveryAI_REVIEW_*env the engine reads must bedeclared in the candy's
env_accept/var:surface — a test asserts the two lists are equal".No env name changed and
TestConfigSurfaceMatchesCharlyYMLpasses; the manifest'svar:description was corrected in the same commit as the code it describes.
Change classification
opencharly/plugin-review) — anengine change, so T13 applies (see below), not the ordinary path.
go build,go vet,go test -count=1 ./..., the two named config tests,gofmt -l, and the plugin's own--self-test/--self-test-verdictmodes, all ona150ff1.This repo ships no per-repo candy gate; the merge gate is the org-wide required check
validate / validate(charly/pr-validator), whose fresh run on this head is the next step.tag-on-mergewrites this body to
CHANGELOG/<CalVer>.mdat merge time.analysed on a live system— the changed config path ran live withretained output (the test and both self-test modes execute
FromEnvand the plugin's commandresolution), the full repo gate did not pass here because
charly box validatecannot run inthis sandbox (item 3), and the two changed
review.goerror strings only execute on a realterminal failure, which this run does not produce. Claiming a higher tier would overstate it.
Operator direction (T13)
The engine-change exception is quoted from the gate's own rulebook
(
opencharly/.github/.github/workflows/pr-validator.yml):No sign-off has been fabricated here, and no agent has posted one. The agent that authored this
change does not hold the operator's authority, whatever the posting account: sign-off authority is
the posting account, and only
atrawog/aitrawoghold it. The direction that authorises the workis the operator's own
opencharly/plugin-review#36, filed under the maintainer accountaitrawog:and the operator's direction to the session that authored this change, verbatim:
T13: the maintainer's explicit sign-off is requested on this PR and is REQUIRED before merge, and
the merge itself is operator-performed. Until that comment exists here, this change is not
landable however green the gate is.
Dependency chain, for whoever lands this.
plugin-review#36(this PR) → a charly release thatwelds it → a
charlyversion → the.githubvalidator'sAI_REVIEW_REASONING_EFFORTorg var.The
.githubleg — the mislabelled-INCONCLUSIVEwork on the thread where this empty-reasoning_effortdefect surfaced — has already landed as opencharly/.github#161 (
review-inconclusive-class). ThisPR is that leg's upstream.
Closes #36
Agent:
review-effort· session2e90ca1f-55b3-4792-b6a5-e37d6ed1a1a8Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)