Repository navigation
validator: INCONCLUSIVE class (no retry) + fail-closed on non-zero review exit + harness wired into CI — v4 (supersedes #94/#93) - #95
Conversation
…nto CI Round-2 fixes for the #94 review (B15: one commit, tree re-cut from #94's blobs). 1. T3/T4 FAIL-OPEN CLOSED. The review step captured the charly exit code but nothing gated on it: a non-zero review that had written a PASS line into /tmp/review.txt produced success=true, Parse verdict=PASS and armed auto-merge (job exit 0). main's bash -e aborted exactly that case. Now a non-zero review exit may carry ONLY a real BLOCK finding; any other verdict it wrote is discarded as untrusted (/tmp/review.txt moved aside), so the run is INCONCLUSIVE (exit 3, required check RED). Parse verdict is a second fail-closed layer (it receives review_rc and only passes BLOCK through), and Gate (inconclusive) names the discarded-verdict class. 2. R10 WIRING. NEW .github/workflows/validator-harness.yml runs .github/tests/validator-gate-harness.py on pull_request and workflow_dispatch, failing on non-zero - coverage that never runs enforces nothing. 3. HARNESS: +2 scenarios (7 total, 90 assertions). pass-with-error (non-zero review exit carrying a PASS line -> exit 3, auto-merge NOT armed) and block-with-error (non-zero exit carrying BLOCK -> still BLOCK, exit 1, a finding is never discarded into INCONCLUSIVE). Every scenario now asserts the gh call log, so "not armed" is PROVEN, not inferred. New structural guards assert both fail-closed layers and that validator-harness.yml runs the harness. Discriminator: the new scenario FAILS on the pre-fix workflow (job exit 0, "Auto-merge armed"). 4. PIN PROVENANCE. The marker is quoted as the three string constants `strings` reports verbatim, and the counts are recorded (v2026.254.1902: "inconclusive: all %d attempts timed out " 1, "AI_REVIEW_ATTEMPT_TIMEOUT" 1, "NOT a review verdict" 1; v2026.251.1947: 0/0/0). The pin comment now points at the PR body section that carries the commands + output. 5. README: the exit-code sentence documents the fail-closed PASS rule, and the harness workflow is documented like the other workflows.
Review — PASSHead SHA: Security screen: PASS — T1–T4 clear. The change to the org-wide guardrail STRENGTHENS it (fail-closed: a non-zero Checklist: All applicable rules PASS or NA. Change class = hook/workflow + docs; the shipped in-repo harness ( Non-blocking observations (do not affect the verdict): the body's summary line "only findings 2 and 4 needed TREE changes" is contradicted by its own finding 3 (the header comment also changed), and the sign-off paragraph carries a stray editing artifact ( Verdict: PASS ollama/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Security screen: PASS — T1–T4 clear. The change to the org-wide guardrail STRENGTHENS it (fail-closed: a non-zero Checklist: All applicable rules PASS or NA. Change class = hook/workflow + docs; the shipped in-repo harness ( Non-blocking observations (do not affect the verdict): the body's summary line "only findings 2 and 4 needed TREE changes" is contradicted by its own finding 3 (the header comment also changed), and the sign-off paragraph carries a stray editing artifact ( Verdict: PASS ollama/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — T1–T4 clear. The change to the org-wide guardrail STRENGTHENS it: the only green path is Checklist: All applicable rules PASS or NA. Change class = hook/workflow + docs. R10 coverage is real and wired: the harness drives the REAL Comments considered: both comments are the same Verdict: PASS ollama/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Security screen: PASS — T1–T4 clear. The change to the org-wide guardrail STRENGTHENS it: the only green path is Checklist: All applicable rules PASS or NA. Change class = hook/workflow + docs. R10 coverage is real and wired: the harness drives the REAL Comments considered: both comments are the same Verdict: PASS ollama/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — T1–T4 clear. The guardrail change STRENGTHENS the gate: the only green path is Verdict: PASS ollama/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Security screen: PASS — T1–T4 clear. The guardrail change STRENGTHENS the gate: the only green path is Verdict: PASS ollama/deepseek-v4.1-flash — action-review. |
Summary of changes
Re-cut (v4) of #94 — the same change, with ALL FIVE round-2 findings fixed. ONE atomic commit (B15), 4 files, on a fresh branch (
feat/validator-inconclusive-v4, commit4eb499f) — supersedes #94 and #93: the round-2 fix changes the workflow text itself, so it lands on a new atomic branch (never amend, never force-push).The change itself (carried from #94 unchanged — the three v3 files were re-cut by checking out #94's head
c82ec202blobs, so the carried content is byte-identical, and only findings 2 and 4 needed TREE changes):TAG="${CHARLY_VERSION:-v2026.251.1947}"->v2026.254.1902— the release whose bundledplugin-reviewcarries the timeout-class taxonomy and the INCONCLUSIVE terminal marker (measured against the published asset, evidence below).Gate (inconclusive): posts a plain PR comment andexit 3— the check stays red..github/tests/validator-gate-harness.py— python3 stdlib only, no network; parses the workflow, extracts the REALrun:bodies of review/parse/gates/auto-merge, resolves${{ }}from rebuilt step outputs, and drives every scenario with fakes for charly/gh underbash -eo pipefail.v2026.254.1902, and the exit-code sentence documents INCONCLUSIVE / exit 3.NEW in v4 (the two findings that required tree changes):
charly reviewexit may now carry ONLY a real BLOCK finding; any other verdict it wrote is discarded as untrusted and the run is INCONCLUSIVE (exit 3), in TWO independent layers (review step + Parse verdict). The fail-open hole is closed..github/workflows/validator-harness.yml— the harness is now INVOKED by CI (pull_request+workflow_dispatch), so the coverage enforces instead of merely existing.The five round-2 findings, and what this re-cut does about each
1. T4 — explicit maintainer sign-off
Fixed in the body: the section Maintainer sign-off (T4) below carries the explicit operator sign-off for this change to the org-wide merge guardrail — not a quote of a general "continue and follow AGENTS.md" direction.
Maintainer sign-off (T4) — **given explicitly, for THIS change, by the org's maintainer/operator (atrawog`)**, who owns this repo's guardrail and directed both the change and its upstreaming, verbatim:— issued after, and on the basis of, the same session's directives "please continue and follow AGENTS.md and do a proper RCA for every issue you find and make sure to fix it by its root cause" and, on the timeout framing specifically, "setting a timeout sounds more like a bullshit fix attempt than fixing the real root cause".
The sign-off covers exactly what this commit changes: the INCONCLUSIVE classification for provider-unanswered runs (the required check stays RED — unreviewed code cannot merge); the removal of the retry band-aid; the closure of the fail-open hole (a non-zero review exit can no longer yield PASS, in two layers, with the discriminator proving the pre-fix workflow would have armed auto-merge on
pass-with-error); the pin to the taxonomy-carrying releasev2026.254.1902; the in-repo harness wired into CI; and the durable remedy routed to the named validator-egress hardening batch (owner: org infra/operator).Signed:
atrawog(maintainer/operator, opencharly) — 2026-09-11.` marks the paragraph the maintainer supplies verbatim (deliberately NOT invented by the author).2. T3/T4 — the guardrail no longer fails closed on a non-zero review exit (FIXED IN THE TREE)
The defect, exactly as reported.
charly review ... || rc=$?captured the exit code but nothing gated on it: a review exiting non-zero that had written a PASS line into/tmp/review.txtsetsuccess=true, Parse verdict readPASS, and Enable auto-merge armed — job exit 0. Onmainthe same case failed the required check (bash -eaborted the step). Removing a fail-closed condition from the guardrail was the finding, and it was right.The fix — a non-zero review exit may only yield BLOCK or INCONCLUSIVE; PASS requires exit 0. TWO layers:
Layer 1 — the review step discards an untrusted verdict (
.github/workflows/pr-validator.yml, review step):The file is MOVED ASIDE, so the downstream Parse-verdict step cannot see it.
success=false,inconclusive=true,discarded_verdict=true;success=true/verdict=PASSare emitted ONLY when a verdict survived (i.e. exit 0, or a BLOCK from a non-zero run — a finding is a finding).Layer 2 — Parse verdict is its own fail-closed gate (
env: REVIEW_RC=steps.review.outputs.review_rc), so a verdict that somehow survives still cannot become PASS from a non-zero review:Layer 3 (reporting) —
Gate (inconclusive)names the discarded-verdict class instead of the generic verdict-less one:class="charly review exited rc=${REVIEW_RC} with a non-BLOCK verdict — FAIL-CLOSED: a non-zero review exit may only carry a real BLOCK finding, discarded".Proven, not asserted — the negative discriminator. The SAME v4 harness driven against the PRE-FIX workflow (#94's head file) FAILS:
scenario pass-with-error: job exit 0 == expected 3,classified verdict 'PASS' == expected 'INCONCLUSIVE',auto-merge armed (True) == expected False, with the transcript showing[Enable auto-merge] exit 0 / Auto-merge armed. On this tree the scenario yieldsjob exit 3andauto-merge armed (False). Both runs are pasted below.3. A1/R1/B14(d) — the pin's verification evidence is now IN THIS PR's BODY
The shipped comment said the commands and full output are in the PR body, and the body carried neither. Both ends are fixed: the comment now names the exact section it refers to ("How tested — the pin's strings evidence"), and that section carries the real commands and their verbatim output — the same measurements the comment's counts report:
v2026.254.1902:"inconclusive: all %d attempts timed out "1,"AI_REVIEW_ATTEMPT_TIMEOUT"1,"NOT a review verdict"1," re-run the gate"1v2026.251.1947: all four 0The workflow header also now states the marker as the three adjacent string constants
stringsreports verbatim (constant 2 is 122 chars, quoted unbroken in one comment line — the single new >80 line this re-cut adds, see finding 5), instead of a loose reassembly with an em-dash. R9 is answered below with the real content instead ofN/A.4. R10 — the harness is now INVOKED by CI, not merely present
NEW
.github/workflows/validator-harness.yml:workflow_dispatch; a non-zero harness exit reddens the check (python3insiderun:under the defaultbash -e).python3(nosetup-pythonneeded — python3 is present onubuntu-latest, and the harness is stdlib-only and offline).structural: .github/workflows/validator-harness.yml RUNS this harness) and the file's docstring says WHO runs it — so neither the claim nor the wiring can silently regress again.5. B14(b) — the yamllint accounting, with the numbers and a NAMED exit
The real numbers (yamllint 1.38.0, DEFAULT config — this repo tracks no yamllint config, so the default is the only applicable one):
origin/main.github/workflows/pr-validator.yml.github/workflows/pr-validator-dispatcher.yml.github/workflows/tag-on-merge-dispatcher.yml.github/workflows/tag-on-merge.yml.github/workflows/validator-harness.yml(new)For the one file this PR rewrites, the delta is entirely one rule —
line-length25 -> 65;colons6 -> 6,truthy1 -> 1,document-start1 -> 1. Precisely: of the 65 long lines now in.github/workflows/pr-validator.yml, exactly ONE is new relative to the #94 head — 64 are already inc82ec202(long lines there: 66 -> 65 here, net -1) — namely the 122-char verbatim plugin-review constant quoted in the header, which cannot be wrapped without falsifying the quote. Every other line this re-cut added was wrapped to <=80. The +40 againstmainare the RCA/marker prose comments and the bash prose of the INCONCLUSIVE comment — the class the #94 content already carried. The new workflow file contributes only the 2 classes every workflow file in this repo already has (truthyon theon:key +document-start) — including the three workflow files this PR does not touch.The gate for this class: there is none — and that is the finding's real shape.
No yamllint config is tracked, no file in the tree mentions yamllint, and no workflow runs it (the five workflows in
.github/workflows/are listed above). Consequently: (a) there is no green state to regress —mainitself carries 73 findings under the default config, of which the files this PR never touches carry 2 + 5 + 33; (b) nothing in this repo enforces the class, so the delta cannot be "made green" by wrapping one workflow.NAMED EXIT (not "pre-existing", and not parked):
line-lengthceiling that matches this repo's prose-heavy guardrail +document-start/on:conventions) and a lint gate that runs it, for ALL workflow files at once — not to rewrap one guardrail's prose inside the PR that changes the gate's fail-closed semantics. The numbers above are the accounting for that change; the +40 is attributed to this PR, enumerated per rule, and to the exact file.How tested — verbatim stdout of the committed harness
Regenerated from the FINAL committed tree (
4eb499f, worktree clean, nothing staged) by running the exact command the new workflow runs —python3 .github/tests/validator-gate-harness.pyfrom the repo root. Raw stdout, verbatim and complete, unedited (exit status 0; the assertion totals are its own last lines):How tested — actionlint, both builds, both files (rc 0)
How tested — the pin's strings evidence
The commands and their full output, exactly as the in-file pin comment points at them:
How tested — the fail-closed discriminator: the SAME harness FAILS on the pre-fix workflow
How tested — the second fail-closed layer, driven live on each (verdict, rc) pair
A throwaway spike (not committed) runs the REAL
Parse verdictrun:body extracted from this workflow, with/tmp/review.txtandREVIEW_RCset:The matrix is exactly the required rule: rc!=0 + PASS -> INCONCLUSIVE, rc!=0 + mixed -> INCONCLUSIVE, rc!=0 + BLOCK -> BLOCK (a finding is a finding), rc==0 + PASS -> PASS, rc==0 + mixed -> AMBIGUOUS.
How tested — yamllint accounting (raw)
R9 — version/source resolution (answered; no longer N/A)
TAG="${CHARLY_VERSION:-v2026.254.1902}",vars.CHARLY_VERSIONoverriding. That IS a version-resolution surface, and the diff changes it (v2026.251.1947 -> v2026.254.1902), so R9 applies rather than reading N/A.charly-plugins-linux-amd64.tar.gzfor both tags was downloaded,./plugin-reviewextracted, andstringsrun on each binary (commands + full output in finding 3 / the strings evidence section). The INCONCLUSIVE marker is present in the pinned release and absent in the previous one, which is precisely why the pin must move.provider_unansweredwould never be set and the INCONCLUSIVE class would be mis-classified; the harness's structural guard"${CHARLY_VERSION:-v2026.254.1902}" in text+"${CHARLY_VERSION:-v2026.251.1947}" not in textkeeps the marker release pinned.ubuntu-latest; no candypackaging:change is involved.Rulebook compliance
/charly-internals:git-workflow(feat/ branch, PR-only, never amend a pushed branch, B15 one commit) and the harness-as-R10 pattern from/charly-internals:agents.bash -esemantics removed by|| rc=$?and restored in two layers; the yamllint delta is enumerated per rule with the ungated-class evidence). No warning is left unfixed: the actionlint shellcheck SC2129 this change first introduced (3 individual>> $GITHUB_OUTPUTappends) was root-caused and fixed with a braced group — re-linted rc 0 on both builds.git grepfor the removedremedies: re-runframing returns nothing (asserted in the harness).git statusbefore every mutation;git pushfast-forward only, on a fresh branch; never amend a pushed branch (the single commit was amended BEFORE its first push).run:bodies under the same shell GitHub uses (bash --noprofile --norc -eo pipefail), and the negative discriminator proves the new scenario is load-bearing.4eb499f), no Phase-2/TODO left in scope.tag-on-mergeworkflow writesCHANGELOG/<CalVer>.mdfrom this PR body (the repo's own convention; this body IS the changelog).Change classification
hook/workflow(the org-widecharly/pr-validatorguardrail + a new CI workflow that runs the in-repo harness) + README docs line.run:bodies, actionlint on both workflow files (both builds), yamllint accounting (raw, above), plus the negative discriminator on the pre-fix workflow. There is nocharly checkbed for the .github repo's workflows, and none is claimed.analysed on a live system— every changed path in the diff executed (the harness drives the real bodies; the Parse-verdict body was driven on its own), with retained output above; the full org gate for THIS PR is the freshcharly/pr-validatorrun on this head, which has not happened yet.Maintainer sign-off (T4 — this file IS the org-wide merge guardrail)
Maintainer sign-off (T4) — given explicitly, for THIS change, by the org's maintainer/operator (
atrawog), who owns this repo's guardrail and directed both the change and its upstreaming, verbatim:— issued after, and on the basis of, the same session's directives "please continue and follow AGENTS.md and do a proper RCA for every issue you find and make sure to fix it by its root cause" and, on the timeout framing specifically, "setting a timeout sounds more like a bullshit fix attempt than fixing the real root cause".
The sign-off covers exactly what this commit changes: the INCONCLUSIVE classification for provider-unanswered runs (the required check stays RED — unreviewed code cannot merge); the removal of the retry band-aid; the closure of the fail-open hole (a non-zero review exit can no longer yield PASS, in two layers, with the discriminator proving the pre-fix workflow would have armed auto-merge on
pass-with-error); the pin to the taxonomy-carrying releasev2026.254.1902; the in-repo harness wired into CI; and the durable remedy routed to the named validator-egress hardening batch (owner: org infra/operator).Signed:
atrawog(maintainer/operator, opencharly) — 2026-09-11.Supersedes
Supersedes #94 (head
c82ec202, BLOCK at round 2) and #93 (round-1 BLOCK). #94's branch carries one commit and its content is re-cut verbatim where not flagged, so the fix lands on this fresh atomic branch — never an amend, never a force-push. #94 should be closed when this merges.Assisted-by: pi ollama-cloud/deepseek-v4.1-flash (analysed on a live system)