Repository navigation
fix(validator): classify INCONCLUSIVE from the engine's own terminal line (#133) - #161
Conversation
…line (#133) The gate's verdict-less notice was a CANNED template — a literal in this workflow, emitted unchanged on every run that produced no verdict — and the class behind it came from ONE substring match over the whole log: if grep -qiE 'inconclusive:|provider unanswered|Client[.]Timeout exceeded|context deadline exceeded' Every terminal line the engine emits begins with `inconclusive:`, so that match was TRUE for EVERY class the engine names. The classifier could not separate them; one flag selected one narrative for all of them. Measured on the two runs #133 quotes (the engine's own lines): instance OLD provider_unanswered NEW class #348 run 37187137862 TRUE (mislabeled) attempt-cap plugin-marketplace#15 TRUE (mislabeled) empty-completion review.go:212 stall line TRUE provider-unanswered review.go:195 too-large line TRUE (mislabeled) engine-terminal-other a kill / step abort TRUE provider-unanswered (fallback) The notice that came out was wrong against this repository's own committed contract (charly.yml): * it asserted "the ENGINE sent no generation bound (reasoning_effort / max_tokens)" — the contract declares AI_REVIEW_REASONING_EFFORT: high and AI_REVIEW_MAX_TOKENS: "262144"; * it named "a hardcoded 5-minute whole-request AI_REVIEW_ATTEMPT_TIMEOUT" as the amplifier — the measured runs report attempt_timeout=15m0s (the engine default), the contract declares "900", the review step forwards the org var (AI_REVIEW_ATTEMPT_TIMEOUT=1080 today), and this workflow's own header records the 5-minute cap as a REMOVED mechanism ("was the amplifier", R5); * its remedy was "leave AI_REVIEW_ATTEMPT_TIMEOUT UNSET" — the opposite of the declared contract; * it named opencharly/plugin-review#10 as the live owner of the cause — that issue MERGED 2026-09-20, and the org pin in force (charly v2026.271.0950, which welds plugin-review v2026.271.0909) already CONTAINS the merge (git merge-base --is-ancestor fd7156c v2026.271.0909 → yes); * it carried "measured: 1.75 MB / 786 s" as if it were this run's number. THE FIX. The class is derived from the terminal line's OWN text, over the markers the engine can actually emit (review.go classify()/verdictExit()/ budgetError()): `exceeded AI_REVIEW_ATTEMPT_TIMEOUT` → attempt-cap, `produced no answer` → empty-completion, `provider never answered or stopped streaming` → provider-unanswered, and any other engine marker → engine-terminal-other, which DEFERS to the engine's quoted line instead of inventing a cause. The bare `inconclusive:` match is GONE from the fallback, which now fires only when the engine named NO class at all (an abort, a kill, an HTTP refusal) — that substring was the folding defect itself. Each class carries its own root cause and durable remedy; the notice quotes the run's own bounded `inconclusive:` line and its own `request —` line in a "**Measured in this run**" block, so it states the class, the effort and the budget IN FORCE, never a template. The engine-terminal classes are tested BEFORE every workflow-side signature branch: the engine's own statement outranks a heuristic, and a log can carry both. R5 — three knobs the pinned engine has NO reader for are DELETED rather than forwarded as no-ops: AI_REVIEW_MAX_ATTEMPTS, AI_REVIEW_MAX_TURNS and AI_REVIEW_TOOL_RESULT_MAX_BYTES (0 hits in every .go file of opencharly/plugin-review; their readers went with the tool loop and the per-turn retry loop). Removed from the review step's env and from the review contract (charly.yml); forwarding them advertised a tunable that reaches nothing. R1/drift — the header no longer asserts a pinned VERSION or an org-var VALUE, both of which drift (it claimed the effort var was `high`; it is `medium` today), and points at `gh variable get` and the run's own `request —` line instead. The stale CalVer literal in ensure-charly is genericized. Coverage (R10): three new scenarios run the REAL review + gate run: bodies with each terminal line and assert the notice names ITS class and EXCLUDES the other classes' words — pre-fix all three reach the body as "provider unanswered", so each fails against the old workflow. The `provider-unanswered` fake was corrected from a fabricated "all 3 attempts timed out" line (which described a retry loop the engine deleted, R5) to the engine's REAL terminal wording. Seven structural guards that pinned the retired prose now pin the replacement claims, plus the precedence guard and an anti-folding guard (the fallback must not match `inconclusive:`); both were verified to FAIL on the regression each names. 21 scenarios / 356 assertions, all pass. Closes #133 *Agent: `review-inconclusive-class` · session `2e90ca1f-55b3-4792-b6a5-e37d6ed1a1a8`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)* Co-authored-by: atrawog <[email protected]>
Review — BLOCKHead SHA: Change class: self-modifying security surface — the org-wide merge gate ( Security screen: T4 finding (Block 1). No T1/T2/T3 issue: no embedded directives aimed at the reviewer, no scope mismatch (3 files ↔ body's 3 changes), no secrets/egress/supply-chain change, and the INCONCLUSIVE job still ends Blocks
Comments considered: none — the thread is empty, so there is nothing to disposition. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
T4 sign-off — the org-wide merge guardrail is preserved, and fail-closed 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, on the evidence in the PR body and re-measured here:
T4 is met, and it is signed off here on that evidence. Merge may proceed on the validator's PASS. Agent: |
Review — PASSHead SHA: Security screen: PASS — no T1/T2/T3 finding (3 files ↔ body's 3 changes; no secrets/egress/supply-chain change; Checklist: All applicable rules PASS or NA. Notable cross-checks: the 21-scenario / 356-assertion claim is internally consistent (5 VERDICT + 10 INCONCLUSIVE + 5 AUTO-CLOSE + 1 EVIDENCE = 21; the diff adds exactly the 3 named scenarios); the B14(d) zero-reader grep is pasted with a positive control, so Comments considered:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
The org-wide validator's
## validator INCONCLUSIVEnotice reported a class the reviewengine never named, and explained it with a narrative that contradicts this repository's
own committed contract.
opencharly/.github#133reported the template mislabel; the RCAbelow found the mechanism is worse than a stale string — the classifier could not
separate the classes at all.
Three changes, one commit:
set
review.gocan emit —exceeded AI_REVIEW_ATTEMPT_TIMEOUT→attempt-cap,produced no answer→empty-completion,provider never answered or stopped streaming→provider-unanswered, any other engine marker →engine-terminal-other(which defers to the engine's quoted line rather than inventing a cause). The notice
quotes the run's own
inconclusive:line and its ownrequest —line in a**Measured in this run**block.flag on
grep -qiE 'inconclusive:|provider unanswered|Client[.]Timeout exceeded|context deadline exceeded'. Every terminal line the engine emits begins withinconclusive:,so that match was TRUE for every class — one flag, one canned narrative, for all of
them. The fallback now fires only when the engine named no class at all.
AI_REVIEW_MAX_ATTEMPTS,AI_REVIEW_MAX_TURNS,AI_REVIEW_TOOL_RESULT_MAX_BYTEShave zero readers in every.gofile ofopencharly/plugin-review(their readers went with the tool loop and theper-turn retry loop). Removed from the review step's
envand from the review contract(
charly.yml).The defect, measured
The engine's terminal lines, and the two runs the issue thread quotes:
The emitted notice was also wrong against this repo's own contract (
charly.yml):reasoning_effort/max_tokens)”— the contract declares
AI_REVIEW_REASONING_EFFORT: highandAI_REVIEW_MAX_TOKENS: "262144";AI_REVIEW_ATTEMPT_TIMEOUT” — themeasured runs report
attempt_timeout=15m0s(the engine default), the contract declares"900", the review step forwards the org var (AI_REVIEW_ATTEMPT_TIMEOUT=1080today),and this workflow's own header records the 5-minute cap as a removed mechanism
(“was the amplifier”, R5);
AI_REVIEW_ATTEMPT_TIMEOUTUNSET” — the opposite of thedeclared contract;
opencharly/plugin-review#10as the live owner of the cause — that issueMERGED 2026-09-20, and the org pin in force (
charlyv2026.271.0950, which weldsplugin-reviewv2026.271.0909) already contains the merge;How tested
All commands run on head
80d8ff3, from the worktree root ofopencharly/.github.1. The in-repo harness (the CI-wired one:
.github/workflows/validator-harness.ymlruns it on every
pull_request). It executes the REALrun:bodies of the decision chainagainst fakes for
charlyandgh, so this is behaviour, not prose:The three terminal-line classes are the misattribution guard. Each new scenario drives the
real review + gate bodies with one engine terminal line and asserts the posted notice names
its own class, quotes the run's own lines, and excludes the other classes' words.
Pre-fix all three reach the body as “provider unanswered”, so all three fail against the old
workflow. The
provider-unansweredfake was also corrected from a fabricated “all 3attempts timed out” line — which described a per-turn retry loop the engine has deleted
(R5) and a wording it never emits — to the engine's real terminal line.
2. The two new guards are not vacuous — each was verified to fail on the exact
regression it names. (Session-local probe: it imports the harness's own parser and evaluates
the guard expression as committed, then the same expression against a mutated copy of the
committed
run:body. Nothing is stubbed, and the harness itself is unmodified.)The anti-folding guard is the one that matters: re-adding
inconclusive:to the fallbackre-opens #133 exactly, and no functional scenario would catch it (each pins a single
class).
3. The pre-fix / post-fix discriminator. Session-local probe (not a committed file): it
runs the committed OLD classifier text against the committed NEW one, over the real
engine lines quoted in
#133and inreview.go.4. The repo's own gates (the non-runtime standards), all on this head:
5. The three deleted knobs have NO reader in the engine (B14(d)) — executed, not asserted. The
ref grepped is the plugin-review commit the umbrella actually pins (
git ls-tree HEAD plugin-review),which is also this PR's base. The last command is a positive control, so the empty result above it
is a real no-match and not a broken pattern or a bad ref:
The only hits anywhere in the tree are dated CHANGELOG records, and they are the record of the
removal itself:
CHANGELOG/2026.264.1425.md:29names exactly what went with the tool loop — "Thetool-calling loop (turn budget,
AI_REVIEW_MAX_TURNS, tool dispatch,sdkTools, thechatTurnseam) and
tools.go's 7 review tools" — andCHANGELOG/2026.255.1218.md:81records theAI_REVIEW_MAX_ATTEMPTSattempt loop being reduced to a single terminal attempt. The knobs' readerswent with those deletions; what survives is history, which is why they are dropped from the live
envand from the contract rather than forwarded as no-ops.6. Syntax:
yaml.safe_loadonpr-validator.ymlOK;ast.parseon the harness OK.Live-or-skip: no live service is faked. The harness’s
charly/ghare declared fakes ofthe workflow's collaborators (the boundary it tests is the workflow's own shell logic); the
two engine lines and both misclassified runs it reproduces are quoted verbatim from the live
#133thread and fromreview.go, and the pin-weld claim in the RCA is checked withgit merge-base --is-ancestor.Rulebook compliance
the classifier could not separate the classes, because its fallback matched
inconclusive:,which is true for all of them. Fixed there, not at the template.
engine’s own classes, and the deleted knobs had no reader to duplicate.
grepband-aid: the class isread from the run, and the remedy for each class names its own knob.
three dead knobs, and the fabricated provider-unanswered fake line are deleted, not kept
below as history. The zero-reader proof for the three knobs is pasted in How tested §5;
their only surviving mentions in the whole engine tree are dated
CHANGELOG/*.mdrecords of thereleases that shipped and then removed them, and a release record is not legacy code.
feat/branch, no force-push, no direct push tomain, no hook bypass; the base isorigin/mainof this repo at the time of branching.pasted above, on the final tree.
80d8ff3; the guardsensitivity probes re-derive their result from the committed
run:body.opencharly/.githubAGENTS.md — “the gate, the ruleset, and the template areself-modifying-security surfaces: a change here gets heightened review and must strengthen
or preserve the gate”. This change does not touch the verdict path: PASS still requires
a review that exited 0; a non-zero review exit may still only yield BLOCK or INCONCLUSIVE; the
INCONCLUSIVE job still ends in
exit 3, so the required check stays RED in every class. Whatchanges is that the notice now reports the class the engine actually named — a real,
independently-produced verdict is more likely, and a mislabelled one less.
Change classification
(
pr-validator.yml, T4) and the org review contract (charly.yml). T4 applies.validator-gate-harness.py(356/356 assertions, 21scenarios, exit 0), the five
scripts/*_test.shoffline gates,governance-reconcile.sh(self-test + live), the two guard-sensitivity probes and the pre/post discriminator, all on
80d8ff3. The full org gate for THIS PR is the freshcharly/pr-validatorrun on thishead, which has not happened yet.
analysed on a live system— every changed path in the diff executes(the harness drives the real review + gate bodies with each engine line, and the discriminator
reproduces both live misclassifications); the changed runtime path has not run on a runner.
Operator direction (T4)
This file is the org-wide merge guardrail, and its own T4 rule requires a maintainer sign-off
recorded on the PR. 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. The direction that authorises the change is the operator's own:
and the operator’s direction to the session that authored this change, verbatim:
T4: 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 on this PR, this change
is not landable however green the gate is.
Closes #133
Agent:
review-inconclusive-class· session2e90ca1f-55b3-4792-b6a5-e37d6ed1a1a8Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)