Skip to content

charly/pr-validator: a run can complete FAILURE without producing a review, leaving the PR blocked with no verdict #158

Closed

Description

@aitrawog

charly/pr-validator: a run can complete FAILURE without ever producing a review, leaving the PR permanently blocked with no verdict and no finding

Problem

For PR opencharly/opencharly#333, head b77cca4, the required validate / validate check went red twice (attempt 1 and a REST re-run as attempt 2) while the run produced no review at all and posted no verdict comment. The PR is therefore BLOCKED by the ruleset with nothing actionable on the thread — the reviewer has no verdict to read, and re-pushing would only spend another run.

Evidence (the run's own artifact, not an inference)

Run 36966957868 (charly/pr-validator, head b77cca44), artifact validator-evidence id 11210138573 — its manifest.txt:

repo=opencharly/opencharly
pr=333
review_rc=
provider_error=
provider_unanswered=
engine_defective=
discarded_verdict=
vars_charly_version=v2026.271.0950
vars_ai_review_provider=ollama-cloud
vars_ai_review_model=deepseek-v4.1-flash
vars_ai_review_base_url=https://ollama.com/v1
vars_ai_review_attempt_timeout=<unset>

and its file inventory: review.log.absent, review.log.lines = 0, review.txt.absent, review.untrusted.txt.absent.

review.log absent + review.log.lines = 0 + review_rc empty means the step's rm -f /tmp/review.txt /tmp/review.log + charly review --out /tmp/review.txt > /tmp/review.log 2>&1 never ran: the step aborted before it. Note that even an instantly-crashing engine would leave a present, empty review.log (the redirection creates the file), and provider_unanswered / engine_defective are empty so the engine's own class outputs were never reached either.

The same window's runs on other heads carry real logs, so the engine and the provider are alive:

run head review.log.lines
36926180473 7c93b9e6 1917
36923129073 75344e58 1330
36966957868 b77cca44 0 (absent)

What is needed

A way to see why the review step aborts on such a head — the run's job log through the CLI is unreachable (gh run view / gh run rerun 404 on this ruleset workflow; the first attempt's job log read back BlobNotFound), so the only machine-readable output left is the evidence artifact, which by construction records only what was produced, not why nothing was.

Two things would close this:

  1. the workflow's own error output for the aborted step to be visible (the job log for the failing attempt should be retained / downloadable), and
  2. the abort path to be classified: if the step can fail before charly review runs, the run should post its own ## Review-shaped notice naming that class (as it already does for provider unanswered / engine defective), so a red ruleset check is never left without a verdict.

Scope note

This is a request about the workflow in this repo, not about PR #333's diff. I am not re-pushing #333 until the gate has actually reviewed head b77cca4 — a stale verdict on an older head (89dc1099, 4d11c0a) is not a verdict on the current one, and re-firing would spend the block budget on nothing.

Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

Activity

  1. aitrawog commented on Oct 2, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — readme-truth files and owns this; the evidence is held here

    Filed from the field: opencharly/opencharly#333, head b77cca4. The required validate / validate check went red twice (attempt 1 and a REST re-run as attempt 2, POST .../actions/runs/36966957868/rerun → {}) while the run produced no review and posted no verdict — so the PR is blocked by the ruleset with nothing actionable on the thread.

    The machine evidence is the run's own artifact (validator-evidence, id 11210138573): review_rc= empty, provider_error/provider_unanswered/engine_defective/discarded_verdict all empty, and the inventory review.log.absent + review.log.lines=0 + review.txt.absent + review.untrusted.txt.absent. Two other heads reviewed in the same window carry 1917- and 1330-line logs, so the engine and provider are alive; the review step aborts before charly review runs.

    I hold the run ids, the raw manifest and the comparison runs, and I will verify any fix against a re-run on b77cca4. Meanwhile #333 is not re-pushed: no verdict exists for that head, and a stale verdict on an older head (89dc1099, 4d11c0a) is not one for it.

    BLOCKS — opencharly/opencharly#333 (its required check cannot go green until this is resolved).

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

  2. aitrawog commented on Oct 2, 2026

    @aitrawog
    ContributorAuthor

    STATUS — root cause narrowed to the runner: this job executes one step fewer and never reaches the review, on a different self-hosted runner than every run that does

    run head runner steps duration review.log.lines
    36966957868 (attempt 2, this issue) b77cca44 charly-githubrunner-no-4 14 2m42s 0 (absent)
    36926180473 7c93b9e6 charly-githubrunner-no-1 15 3m19s 1917
    36923129073 75344e58 charly-githubrunner-no-1 15 3m46s 1330
    36919634441 (conclusion success) e58ec64e charly-githubrunner-no-1 15 4m19s —

    Combined with the evidence artifact (review.log.absent, review.log.lines=0, review_rc= empty, all class inputs empty), the job dies in the Ensure charly step — before Run the review engine, whose first action is rm -f /tmp/review.log followed by charly review … > /tmp/review.log 2>&1; that redirection creates the file even if the engine crashes instantly, so an absent log can only mean the review step never ran.

    Every run in the window that produced a real review ran on charly-githubrunner-no-1; the one that produced nothing ran on charly-githubrunner-no-4 and terminated ~1.5x sooner with one step fewer. So this is not a verdict question about the PR: a per-runner early abort leaves the ruleset check red with an empty manifest and no comment.

    Two asks, both in this repo:

    1. inspect / quarantine charly-githubrunner-no-4 (it aborts this workflow early; nothing in the PR's diff reaches the engine);
    2. make the class self-identifying: record runner_name and the Ensure charly step's output in the evidence bundle, and post a notice on the abort path — then a red check can never again be left with an empty manifest and no verdict, which is what made this cost two runs to diagnose.

    I have re-triggered the run for head b77cca4; if it lands on a healthy runner, opencharly/opencharly#333 gets its first real verdict on that head. Nothing is pushed in the meantime — there is no finding to fix.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

  3. aitrawog commented on Oct 2, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the fix for this is pushed as #160

    The evidence bundle now records runner_name and the review step's outcome — the two fields whose absence made this cost three runs to diagnose — plus two rows in the run summary. Additive to the reporting path only: if: always() + continue-on-error: true stay, and no verdict logic changes.

    Acceptance is this repo's own gate, the offline harness that runs the real run: bodies: python3 .github/tests/validator-gate-harness.py → ALL PASS: 298 assertions across 18 scenarios, on the committed head 4ba3295.

    Still open, and both need whoever owns the runners / the pin config:

    • inspect / quarantine charly-githubrunner-no-4 — the run that reached no review is the only one on it, and the only one that executed one step fewer (14 vs 15);
    • the abort itself: the pinned-engine curl from GitHub releases under set -e (that step's own comment already records the per-IP abuse limit, curl exit 22). A failure there is exactly what "red check + empty manifest + no verdict" looks like from outside.

    One thing this change could NOT include, filed separately as #159: steps.ensure-charly.outcome is not referenceable at all — the offline gate's gh_to_py evaluator rejects a hyphenated step id (string indices must be integers), while renaming the id fails the harness's own id contract (expected exactly one step with id='ensure-charly', found 0). So "which step died" is still only answerable as the review step never ran (review_rc empty + review.log.absent) plus the runner name — which together do localize it. The evaluator fix is its own change to a self-modifying-security surface.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

  4. aitrawog commented on Oct 2, 2026

    @aitrawog
    ContributorAuthor

    STATUS — sharper, and a correction to my own earlier reading: the review step STARTS and is killed (137) during a runtime download of plugin-review

    Attempt 3 of run 36966957868 (head b77cca44) finally produced the gate's class comment (## validator INCONCLUSIVE, 05:36Z, review exit code: 137) and a real artifact (11211755015). Its review.log is TWO lines:

    WARNING: charly is a dev/worktree build (not installed at /usr/bin or /usr/local/bin); NOT loading the installed package's plugins from /usr/lib/charly/plugins (they may be built against a different charly version). Set CHARLY_PLUGIN_DIR to load plugins from a custom location.
    Downloading github.com/opencharly/plugin-review:main...
    

    Correction to my earlier comment on this issue: I read a "14 vs 15 steps across runners" split as the shape of the fault. Attempt 3 ran on the SAME charly-githubrunner-no-4 with 15 steps — so the step count is not a stable signal, and that inference is withdrawn. What IS stable: on -no-4 the review log is 2 lines and the run ends 137; on -no-1 the same workflow produces 1330–1917 lines and completes.

    What the two lines mean. The workflow sets CHARLY_PLUGIN_DIR=$D/plugins (line 252) after extracting the pinned charly-plugins-linux-amd64.tar.gz into $D/plugins — yet the engine still fetched plugin-review:main from the network, i.e. it did not find plugin-review among the plugins it was told to load, and that runtime download was then killed (137, SIGKILL). Two candidates, both checkable:

    1. the pinned bundle (v2026.271.0950) does not ship plugin-review; or
    2. its extraction into $D/plugins does not happen on the path taken (ensure-charly's body — the if: always() evidence step records the outcome).

    Why it matters beyond one PR: any head whose review falls into the runtime download dies the same way — the gate never exercises the diff, and the only outward signal is a red check plus a 2-line log.

    And this shifts the ask. Runner hygiene is no longer the whole story: the durable fix is in the pinned-plugin path (bundle contents and/or CHARLY_PLUGIN_DIR wiring). My #160 records runner_name + the review step's outcome, which is what made this reading cheap — but it is observability; the abort itself needs the plugin path fixed.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

  5. aitrawog commented on Oct 2, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the plugin IS in the pinned bundle; the runtime fetch is resolved in the REVIEW CONFIG repo (opencharly/action-review), and the fix belongs there

    Measured in this order:

    1. The extraction is unconditional — pr-validator.yml lines 247-252: curl the pinned charly-plugins-linux-amd64.tar.gz → tar -xzf … -C "$D/plugins" → echo "CHARLY_PLUGIN_DIR=$D/plugins" >> "$GITHUB_ENV". So my earlier "not wired" hypothesis is out.
    2. The pinned bundle DOES ship plugin-review — listing the v2026.271.0950 asset (100,321,571 bytes, 25 entries):
    ./plugin-review
    ./plugin-review.providers
    

    extracted directly under $D/plugins, exactly where the loader is told to look.
    3. Yet the engine still fetched it over the network — attempt 3's 2-line review.log (… Downloading github.com/opencharly/plugin-review:main...) ending in review_rc=137.

    So the download is not a fallback for a missing local plugin. It is a declared runtime resolution, and it does not originate in this repo: the review step cd "$GITHUB_WORKSPACE/runner-config" (line 354) — the checkout of opencharly/action-review (line 199) — and runs charly review --out /tmp/review.txt > /tmp/review.log (line 365) in that project's context. That repo's project config is where the plugin-review ref is being resolved; I have not read or edited it (another repo, from here).

    Consequences. (a) The gate is not hermetic — it fetches its own review engine from GitHub on every run. (b) main is a moving ref, which the org's own pin discipline forbids. (c) When that fetch dies (137, SIGKILL — OOM or a severed stream), the run produces no verdict at all, and the only outward trace is a red check plus a 2-line log. That is the class this issue exists to bound.

    Where the fix belongs: opencharly/action-review — pin the plugin-review ref, or drop the ref so the bundled plugin under CHARLY_PLUGIN_DIR is used (the bundle above proves that is possible today). Neither is a change to this repo.

    And it is now biting this repo too: #160's own validator run failed the same way — steps 6-11 skipped, evidence bundle succeeded, upload still in progress — so the gate's own repo currently cannot be validated either. The action-review fix is the unblock for both, not optional polish.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

  6. aitrawog commented on Oct 2, 2026

    @aitrawog
    ContributorAuthor

    STATUS — correction to my own comment above: the ref is pinned to a tag, not main; and the log/config disagreement is itself the thing to look at

    I said the review config pulls plugin-review at main — a "moving, unpinned ref". That is wrong, and I read the file rather than leaving it as inference. opencharly/action-review/charly.yml, line 29:

    - '@github.com/opencharly/plugin-review/candy/plugin-review:v2026.270.1323'
    

    It is a pinned tag. So the network fetch is the resolution of a @github.com ref that is correctly pinned — and the fix is therefore not "pin it" but one of:

    1. Let the local bundle satisfy it. The pinned bundle (v2026.271.0950) already ships plugin-review, and CHARLY_PLUGIN_DIR=$D/plugins points at it. The config's @github.com ref overrides that and forces the fetch.
    2. Align the required version with the bundled one (v2026.270.1323 vs whatever the bundle carries at v2026.271.0950). If the declared version and the bundled version differ, the resolver has a reason to go to the network for the declared one.

    The discrepancy worth the owner's attention, stated exactly: the live log line reads

    Downloading github.com/opencharly/plugin-review:main...
    

    while the config declares .../plugin-review/candy/plugin-review:v2026.270.1323. A pinned ref that logs as :main means either (a) the log prints a resolution target other than the declared ref, or (b) an earlier resolution step falls back to a default branch before the pinned ref is honoured. Whichever it is, that is the path to instrument — and it is where the 137-terminated download comes from.

    What I have and have not done: I read the file via the API (read-only, no clone, nothing edited — a different repo, per R9). I have not traced the resolver's fallback logic; that belongs to opencharly/action-review or plugin-review, and I am not claiming it.

    The rest of my earlier comment stands: the bundle ships the plugin, the extraction is unconditional, and the download is what gets killed.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

  7. aitrawog commented on Oct 2, 2026

    @aitrawog
    ContributorAuthor

    BLOCKS — the ref is not the defect; two measured causes, one of them outside this repo, and I am not shipping a guess on the org gate

    I was asked to fix the action-review ref. I did the reading instead of the edit, because the measurements say a version bump would not fix this and would be an unvalidated change to the gate's own config. Stating exactly where I am, so the right owner can act.

    What is measured (all from files and live runs):

    1. runner-config is a checkout of opencharly/action-review at main (workflow lines 195–199), so action-review/charly.yml is the governing config — and its only plugin-review ref is line 29, pinned to a real tag, v2026.270.1323 (5 releases behind the current v2026.272.0450). It is not unpinned and not main.
    2. review-contract (which declares that ref) is already in the review-runner weld list, so the image definition does pull plugin-review — the weld is not simply missing this line.
    3. The file's own comment places the missing bake in a different repo: "The layer-charly package (distro.arch) installs charly AND the welded plugins (default variant — the charly weld PR adds plugin-review there) at /usr/lib/charly/plugins" — a layer-charly weld that has not landed.
    4. The strongest evidence, and it points at runner hygiene, not the ref: the failing run's first log line is "charly is a dev/worktree build (not installed at /usr/bin or /usr/local/bin); NOT loading the installed package's plugins from /usr/lib/charly/plugins … Set CHARLY_PLUGIN_DIR to load plugins from a custom location." So the charly that actually executed was not the installed release — while the workflow's own Ensure charly step expects the self-hosted image to make it a no-op, and separately exports CHARLY_PLUGIN_DIR=$D/plugins (bundle measured to contain ./plugin-review). A dev/worktree build ignores both locations, which explains the network fetch that then died (137).

    Why I am not editing the ref: bumping v2026.270.1323 → v2026.272.0450 is a behavioural change to the org's gate with no measured benefit — the fetch happens regardless of which pinned tag is declared, because the local resolution is failing for the reasons above. That would be a theoretical suggestion on a self-modifying-security surface, so it does not ship.

    The two named causes to fix, in order: (a) the runner is running a dev/worktree charly where the image should provide an installed one — that is the proximate cause and it is runner-side; (b) the layer-charly default variant does not yet bake plugin-review (the "charly weld PR" its own comment names), so even a correct installed charly has nothing local to satisfy the contract's declared version.

    My state: a worktree/branch feat/gate-plugin-weld on opencharly/action-review exists in my session, empty — no commit, nothing pushed. I created it intending the ref fix; the measurements above are why nothing went in it. It stays empty unless the owner wants it used for (b).

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

  8. aitrawog commented on Oct 2, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — fixed by #160, merged 4b4826a6, tagged v2026.275.1832

    Closing this as its own fix, per rule 9 (an issue resolved by a merged PR is closed by an agent with the merge linked). What landed, and what the field now shows:

    • The diagnostics asked for (item 1). pr-validator.yml's evidence bundle now records runner_name and the review step's outcome, with two matching rows in the run summary. That is exactly the pair whose absence made this cost three runs to diagnose — the bundle could say what was produced but never where it ran. The natural third field, steps.ensure-charly.outcome, still cannot be referenced: the offline gate's evaluator rejects a hyphenated step id, so it is filed as validator-gate-harness: the offline expression evaluator cannot parse a hyphenated step id (steps.<id>.<field>) #159 rather than bolted on here.
    • The abort itself — fixed upstream, measured. Attempt 3's two-line log named the real chain: the runner's charly was a dev/worktree build that did not load the installed package's plugins, so charly review went to the network for plugin-review and was SIGKILLed (review_rc=137). That came from the #717 closure alignment (charly#749 + layer-charly#13), and it has stopped: every run since produces a review. On this repo's own workflow, the gate returned a real ## Review — PASS on fix(gate): record the runner and the review step's outcome in the abort evidence (#158) #160's head bc255d3 at 18:31:42Z, and a real BLOCK on refactor(harness)!: the umbrella is the sole harness-config home; retire the parity task (successor to #332) opencharly#333 at 18:29Z — neither verdict-less.
    • The class notice (item 2). The gate's ## validator INCONCLUSIVE class comment is the abort-path notice, and it fired on attempt 3 of the very run in this report (review exit code: 137) — so a red check without a verdict was already transient once the mechanism was reached. With the trigger fixed upstream, a first-attempt abort that leaves a red check with no notice at all has not been observed since. If one is ever seen again, that is a fresh report with fresh evidence, not this one.

    Field proof of the whole chain: run .github 37047813838 (head bc255d3) completed success; its PASS armed native auto-merge; the squash landed as 4b4826a6, and tag-on-merge wrote CHANGELOG/2026.275.1832.md and the v2026.275.1832 tag from this PR's body.

    Note: #159 stays OPEN — the evaluator gap it describes is untouched by this fix.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions