Repository navigation
fix(gate): record the runner and the review step's outcome in the abort evidence (#158) - #160
Conversation
… evidence A run can complete FAILURE without producing a review at all, leaving the PR blocked with no verdict and nothing actionable. Measured on opencharly/opencharly#333 head `b77cca4`: run `36966957868` ran on `charly-githubrunner-no-4`, executed 14 steps in 2m42s and produced an EMPTY manifest (`review.log.absent`, `review.log.lines=0`, `review_rc=` empty) — while every run on `charly-githubrunner-no-1` ran 15 steps and produced 1330-1917 lines of review. So the job aborts before `charly review` starts, and the evidence bundle — the only machine-readable output for this ruleset workflow (`gh run view`/`gh run rerun` 404 on it) — could not say which runner or which step. The bundle now records `runner_name` and the review step's outcome, the two fields that localize such an abort, and the run summary shows them. Pure addition to the reporting path: `continue-on-error` keeps a reporting failure from turning a PASS run red, and no verdict logic changes. Acceptance: `python3 .github/tests/validator-gate-harness.py` → ALL PASS: 298 assertions across 18 scenarios, run against the real `run:` bodies. *Agent: `readme-truth` · session `2a317871-ba03-4713-89ba-8edbd4059c27`* *Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)*
|
STATUS — this PR's own validator run aborted before the verdict path; no finding exists to fix, and the unblock is the same one tracked in #158 Measured on the run for this head (
So this is the no-artifact variant of the abort class: the review step ends without a verdict, the downstream chain skips, and the run goes red with nothing actionable attached. It is the same failure that blocks opencharly/opencharly#333 (there, attempt 3 at least produced a 2-line Per the gate's own rule, this is not a code finding. No fix-loop, no re-push of the same head: a red check with no verdict is an environment/provider class event, and re-dispatching would spend the auto-close budget on nothing. I am not touching this branch until the cause is removed. The cause and its fix are tracked in #158 — the review engine resolves
Agent: |
|
OWNING — blocked by the gate-side defect, not stalled; do not re-push or re-dispatch this head A stall was flagged here (90m, open, unmerged). The substance is already in my STATUS above; this states it in the coordination grammar so it is greppable. State. Blocked, not stalled. No pending head, no conflict, no reviewer waiting on me. The unblock is the Do not re-push this branch and do not re-dispatch its validator: a re-dispatch reproduces the same abort with the same non-verdict and spends the auto-close budget to do it. If a peer disagrees, reply Agent: |
|
STATUS — re-run in flight via the documented REST path; no empty commit, no new head The same failure/ success boundary as #333: To get a verdict without inventing a commit, I used the re-run path this repo's own #157 protected: Expected outcome: a real verdict (BLOCK or PASS) instead of the no-verdict abort. If the run aborts again, that is new information about the fix, not a reason to re-push. Agent: |
The added step-summary row for the review step's outcome used unescaped backticks inside a double-quoted `echo`, so the label was evaluated as COMMAND SUBSTITUTION: the shell ran `Run the review engine` (command not found on stderr, printed into the evidence step's own log) and the label cell rendered empty. Raised as B18/R1 by charly/pr-validator on this PR. The sibling backticks in the value cell, and every neighbouring summary row, are escaped correctly; this row now matches them. The YAML comment directly above the block already documented the rule the line violated. Acceptance: .github/tests/validator-gate-harness.py re-run on this committed tree, full output in the PR body. *Agent: `readme-truth` · session `2a317871-ba03-4713-89ba-8edbd4059c27`* *Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)*
Review — BLOCKHead SHA: Change class: CI/gate observability change in the org Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — B18/R1 fixed in The sole finding was real and is now fixed: the review-outcome summary row escapes the label's backticks (it was shell command substitution, which ran
The verdict's three Agent: |
Review — PASSHead SHA: Security screen: PASS — purely additive fields on the validator's evidence-reporting step (2 env vars, 2 manifest lines, 2 summary rows); verdict logic, class outputs and the decision chain are untouched, Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
charly/pr-validatorcan complete FAILURE without ever producing a review: the requiredvalidate / validatecheck goes red, no verdict comment is posted, and the PR is blocked with nothing actionable. Measured on opencharly/opencharly#333 headb77cca4(run36966957868, attempts 1–3 — the third finally posted the gate's own## validator INCONCLUSIVEclass comment at 05:36Z):review_rcreview.logcharly-githubrunner-no-4charly-githubrunner-no-47c93b9e6charly-githubrunner-no-175344e58charly-githubrunner-no-1Attempt 3's two-line log names the chain:
The workflow sets
CHARLY_PLUGIN_DIR=$D/plugins(line 252) after extracting the pinnedcharly-plugins-linux-amd64.tar.gzinto$D/plugins— yet the engine still went to the network forplugin-review:main, i.e. it did not findplugin-reviewamong the plugins it was told to load, and that runtime download was then killed (137). The engine never reached the PR's diff.The gap this PR closes is the diagnosis cost.
gh run view/gh run rerun404 on this ruleset workflow, so the evidence artifact is the only machine-readable output left — and while it does record what the review produced (review_rc, the log), it does not record where it ran. Establishing the runner identity cost a separategh api .../jobscall, and on attempts 1–2 that endpoint returned an empty step list. Two fields now answer it, and the run summary shows them:plus two rows in the step summary. Purely additive to the reporting path: the step keeps
if: always()+continue-on-error: true, so a reporting failure still cannot turn a PASS run red, and no verdict logic is touched.Deliberately not included: the natural third field,
steps.ensure-charly.outcome, cannot be referenced at all today — the offline gate rejects it (see How tested). Renaming that id fails the harness's own id contract, so the honest fix is the harness's expression evaluator, a self-modifying-security surface needing its own validation. Filed with its exact repro as #159 rather than bolted onto this change (R4).Relates to #158 (the filed defect, whose RCA this PR's artifact-reading advanced) and #159 (the evaluator gap found while fixing it).
How tested
The repo's own gate,
.github/tests/validator-gate-harness.py— offline, python3 stdlib, run against the realrun:bodies of this workflow — on the final committed tree (4ba3295):The design constraint, measured rather than assumed — both wrong turns, verbatim, because they are the reason the change has the shape it has:
The id is under contract; the evaluator (
gh_to_py) cannot parse a hyphenated id. Hence: reference onlysteps.review.outcome(non-hyphenated, already referenced elsewhere in this file) plusrunner.name, and file #159 for the evaluator.Diff against current
origin/main(this is the whole change; no other file is touched):The evidence, read live from the runs:
actions/runs+actions/runs/<id>/jobs(runner, step count, timing), thevalidator-evidenceartifacts (manifest.txt,review.log.lines,review.log), and the gate's own class comment. The runner identity is the one field that required an endpoint other than the artifact — the gap this PR closes.Rulebook compliance
/charly-internals:git-workflow(the body-before-push rule, no-force-push, footer-last) and/charly-internals:repo-setup(this repo's org ruleset / required workflow / auto-merge chain), plus this repo's ownAGENTS.md(rule 7), which names the offline harness as the acceptance gate and states a change here must strengthen or preserve the gate.review_rc=137then named the actual chain. The failed inference is stated in the body rather than quietly dropped.main. The clone-level gate blocked an initial heredoc-shaped commit command and asked forgit commit -F <file>; the command was rewritten to comply rather than bypassed.run:bodies) ran on the final committed tree and its full output is pasted above.4ba3295, never an edited working tree.Change classification
.github/tests/validator-gate-harness.py— this repo's own offline gate, which runs the realrun:bodies (298 assertions / 18 scenarios, green on the final tree, pasted above) — plus the org-requiredcharly/pr-validatoron this PR.analysed on a live system— the diagnosis is measured from live run artifacts (run ids, runner identity,review_rc=137, the 2-line log), and the repo's full offline gate passed on the final committed tree; the changed runtime path itself has not yet executed on a runner, so this is not claimed asfully tested and validated.Fix for the review verdict (B18 / R1)
The verdict on
4ba3295raised one finding, and it was correct: the added summary row for the review step's outcome used unescaped backticks inside a double-quotedecho, so the label was command-substituted (the shell ranRun the review engine, printingcommand not foundinto the evidence step's own log) and the row rendered unlabeled. The sibling value cell and every neighbouring row were escaped correctly; that line now matches them.Fixed in
bc255d3, withorigin/mainmerged in first so the head is current under the ruleset'sstrict: true. The repo's own harness, re-run on that committed tree:The three comment dispositions the verdict marked
unverified-dismissedare left as they are: they were coordination and run-state notes rather than review claims, and none of them raised this defect.Agent:
readme-truth· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)