Repository navigation
validator: INCONCLUSIVE class for provider-unanswered runs (no retry) + in-repo harness - re-cut v3, both round-1 findings fixed (supersedes #93) - #94
Conversation
… named egress-hardening batch The `Gate (inconclusive)` comment offered "remedies: re-run the workflow (spaced re-runs of the same head have produced real verdicts)" - the banned rerun-and-see framing - and deferred the durable fix to unnamed "operator levers". Both the comment and the workflow header are corrected here. Root cause: the provider (ollama.com) throttles/blocks datacenter/shared-runner egress. The org already carries that precedent in this workflow (the releases/latest redirect is "abuse-limited on shared runner IPs (curl exit 22)"), and the measurements are one-sided: the same endpoint answered in 0.5s (small payload), 1.55s (95KB body) and under a 12-way burst from a RESIDENTIAL path (all HTTP 200), while the GitHub-hosted runner (runs-on: vars.REVIEW_RUNNER_LABEL || ubuntu-latest) received NO response headers at all. The durable remedy is now a NAMED batch - the validator-egress hardening batch (owner: org infra/operator): (i) register/point vars.REVIEW_RUNNER_LABEL at a runner whose egress can reach the provider; (ii) evaluate a datacenter-friendly endpoint for vars.AI_REVIEW_BASE_URL / vars.AI_REVIEW_PROVIDER / vars.AI_REVIEW_MODEL; (iii) record the provider's shared-IP policy in the workflow header. The sibling-wave-PR-passed-on-its-4th-run witness is kept ONLY as evidence that the review code path itself is sound - explicitly NOT as a remedy. No re-run instruction and no rerun-and-see framing remain anywhere. The committed harness guards the new text: it asserts the root cause is named, the batch + owner are named, and that no "remedies: re-run" line remains.
Review — BLOCKHead SHA: Change class: CI/workflow guardrail (the org-wide merge gate itself) + in-repo test harness + README — 3 files, 1 commit. Security screen (T3/T4): this PR edits the org-wide merge guardrail. The no-verdict class is preserved fail-closed (exit 3, check stays red), but one fail-closed condition is removed (item 2) and no explicit maintainer sign-off is recorded (item 1). Blocks
Verdict: BLOCK ollama/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: CI/workflow guardrail (the org-wide merge gate itself) + in-repo test harness + README — 3 files, 1 commit. Security screen (T3/T4): this PR edits the org-wide merge guardrail. The no-verdict class is preserved fail-closed (exit 3, check stays red), but one fail-closed condition is removed (item 2) and no explicit maintainer sign-off is recorded (item 1). Blocks
Verdict: BLOCK ollama/deepseek-v4.1-flash — action-review. |
|
Superseded by #95 (feat/validator-inconclusive-v4): all five round-2 findings fixed, including the FAIL-OPEN closure (two layers + a discriminator proving the pre-fix workflow would have armed auto-merge on pass-with-error), the pin strings evidence pasted with per-line constants, the harness wired into CI via .github/workflows/validator-harness.yml, and the yamllint real numbers + named exit. The T4 maintainer sign-off is recorded verbatim in the PR body. |
…nto CI (#95) 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. Co-authored-by: atrawog <[email protected]>
Summary
Re-cut (v3) of #93 — the same change, with BOTH round-1 findings fixed. ONE atomic commit (B15), 3 files. It supersedes #93: the round-1 fix touches the workflow text itself, so it lands on a fresh atomic branch (never amend / never force-push).
The change itself (carried over from #93 unchanged):
TAG="${CHARLY_VERSION:-v2026.251.1947}"->v2026.254.1902— the release whose bundledplugin-reviewcarries the timeout-class taxonomy and the INCONCLUSIVE terminal marker.bash -eabort the step, classifies the outcome, and reports it.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.The two round-1 findings, and what this re-cut does about them
Finding 1 — A1/A2/R10: the pasted harness output was a paraphrase
#93's body showed dotted summary lines the committed harness has no code path for. This body pastes the actual stdout of
python3 .github/tests/validator-gate-harness.pyexecuted on the final committed tree (c82ec20), verbatim and complete — under How tested (verbatim stdout) below. No summary, no dots, no merged final line.Finding 2a — R1/B14: the
Gate (inconclusive)comment body (the remedy paragraph)BEFORE — removed (the banned re-run-and-see framing):
AFTER — the actual root cause + the named owner/batch:
Two adjacent strings in the same step lose the framing too:
classvalue:provider unanswered — the LLM provider returned no response from the runner's egress->provider unanswered (throttled datacenter/shared-runner egress) — the LLM provider returned no response headers to this runner;::error::… — re-run the workflow or review manually->::error::… — durable remedy: the validator-egress hardening batch (owner: org infra/operator); see the PR comment.No re-run instruction and no rerun-and-see framing remain anywhere in the workflow text (the committed harness now asserts that:
remedies: re-runmust not appear).Finding 2a — the workflow header RCA passage
BEFORE:
AFTER:
Note the sibling-wave-PR witness is kept ONLY as evidence that the review code path is sound — the header now says so explicitly and states that it is NOT a remedy.
RCA — the actual root cause, and who owns the fix
Symptom. Validator runs dying with
context deadline exceeded (Client.Timeout exceeded while awaiting headers)— the provider endpoint holding the request with NO response headers until the HTTP client deadline fires.Root cause. The provider (ollama.com) throttles/blocks datacenter/shared-runner egress. Two independent lines of evidence, both already in the org's own artifacts:
releases/latestredirect is documented here as "abuse-limited on shared runner IPs (curl exit 22)" — the same shared-IP policy class, on the same egress.runs-on: vars.REVIEW_RUNNER_LABEL || ubuntu-latest; no self-hosted runner is registered) received no response headers at all.What is NOT the root cause, and NOT a remedy. The review code path is sound — witnessed live during the wave (distro-cachyos#81 got a real BLOCK verdict at 16:31:51Z; charly#589 got a real PASS at 18:50-19:02Z). One sibling wave PR failed three consecutive runs and passed on the fourth, same head, same code. That fact is kept only as evidence that the path itself is sound — explicitly NOT as a remedy: walking the same throttled egress path again cannot change the provider's shared-IP policy. Neither a longer
AI_REVIEW_ATTEMPT_TIMEOUTnor an in-job retry can cure it either (extra time cannot un-stall a throttled connection; a retry walks the same path into the same defect — the banned sleep/retry-on-flake, R4).Owner / batch — the validator-egress hardening batch (owner: org infra/operator), three members:
vars.REVIEW_RUNNER_LABELat a runner whose egress can reach the providervars.AI_REVIEW_BASE_URL/vars.AI_REVIEW_PROVIDER/vars.AI_REVIEW_MODELUntil (i) or (ii) lands, this gate stays RED on a provider-unanswered run — deliberately: an unreviewed PR must not merge, and the gate must not be weakened into a pass to make a red check go away.
How tested (verbatim stdout)
Fresh clone of
opencharly/.githubatorigin/main(e7b2d49), branchfeat/validator-inconclusive-v3, commitc82ec20— the harness is run on the FINAL committed tree:The assertion count is 53 (the round-1 tree's 46, plus 7 assertions that pin THIS finding: the root cause must be named, the batch + owner must be named, and
remedies: re-runmust be absent — 2 new comment-content needles in each of the two INCONCLUSIVE scenarios and 3 new structural guards).actionlintwas run with BOTH builds available here — 1.7.7 and 1.7.12; rc 0 on both, and rc 0 for the whole repo. The older build is the stricter one for this change: it is the one that flagged the SC2016 (Expressions don't expand in single quotes) on the backtick code-spans a first draft of the new comment lines used, which is why the shipped lines carry no backticks.yamllint(no repo config; not a gate here) reports only pre-existingline-length-class findings on long comment lines — main 33, #93 69, this tree 74; the 8 non-line-length findings (6colons, 1document-start, 1truthy) are IDENTICAL on main and unchanged by this PR.Rulebook compliance
/charly-internals:git-workflowand/charly-internals:root-cause-analyzer.stringscomparison).opencharly/AGENTS.md): this repo is consumed there as a submodule gitlink — no submodule internals are edited from the umbrella and no umbrella file is touched; the change lands PR-only, one commit.Change classification
actionlintrc 0 (workflow and whole repo) + yaml load (9 steps).analysed on a live system— the changed runtime path (the realGate (inconclusive)step body, plus the other three gate bodies) was executed live in-repo on the final tree with retained output; the workflow's own live effect is this PR's gate run.Maintainer sign-off (T4 — this file IS the org-wide merge guardrail)
The operator direction for this change, quoted verbatim:
This re-cut implements exactly that: the classification stays, no timeout and no retry, and the comment now states the real root cause and hands the durable fix to a named batch/owner instead of offering a re-run.
Supersedes
Supersedes #93 (
feat/validator-inconclusive-v2, head1f4fd4f1f9). #93's head tree was reproduced byte-for-byte on this branch (all three file blobs matched) before the finding-2(a) fix was applied; the fix changes the workflow text, so it lands as a fresh atomic branch + PR rather than an amend on a pushed branch (never force-push).Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)