Skip to content

fix(gate): the engine pin measures the asset and names the class, not the release - #287

Merged
github-actions[bot] merged 4 commits into
mainfrom
feat/engine-pin-asset-probe
Nov 13, 2026
Merged

github-actions[bot] merged 4 commits into
mainfrom
feat/engine-pin-asset-probe

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The org gate reports the wrong cause when the pinned engine cannot be fetched, and a gate
that names the wrong cause is the same defect family as a gate with no callers. This PR
makes the fetch measure itself and gives the gate four named classes, each with its
own remedy
, instead of one that blames the release.

The brief's premise, measured first (2026-11-09, and re-measured on this head)

The task was "the pin is a hardcoded default that has rotted". Both halves are false in the
tree, and the measurement inverts the rest:

  1. There is no hardcoded default anywhere. The pin is vars.CHARLY_VERSION, and the
    workflow already consumes it verbatim with no fallback (pr-validator.yml: an
    unset/invisible pin prints ::error:: and exit 3, and candy-validate.yml does the
    same). The brief's preferred fix — "a required input with no rotting default, fail loud
    if unset" — is already implemented and documented (README.md: "a mandatory org
    variable: the workflow has no bundled fallback"). There was nothing to remove and no
    default to update.

    Where this tree does carry tag-shaped strings, named exactly (re-measured on this head,
    because the round-3 body carried a stale version of this sentence — see Round 4):

    $ grep -nE 'v2026\.[0-9]{3}\.[0-9]{4}' .github/workflows/pr-validator.yml
    437:          # fix landed in plugin-review v2026.264.1425 (the tool loop deleted), and any
    442:          # 2026.256.1316 -> plugin-review v2026.255.1648, the tool-loop engine) the pin
    1081:              rootcause="**Root cause (measured in this run).** \`${PIN_FROM}\` names \`${PIN_TAG}\`, … measured 2026-11-09 within one minute: \`v2026.313.0209/charly-linux-amd64\` answered 504 …"

    Three hits, all prose: two comments naming historical plugin-review releases, and one
    inside the asset unreachable class message quoting the 2026-11-09 measurement that
    justifies the class. None is a default, a fallback, or an input to any fetch — the fetch
    reads ${PIN_TAG}, which comes from the variable. And the new harness carries no tag
    literal at all:

    $ grep -cE 'v2026\.[0-9]{3}\.[0-9]{4}' scripts/proof-engine-pin.sh ; echo "rc=$?"
    0
    rc=1

    The predicate is calibrated, not merely silent — the same pattern DOES match this tree for
    a tag the tree carries, so its silence on scripts/proof-engine-pin.sh is a result:

    $ grep -rlI 'v2026\.313\.0209' . ; echo "rc=$?"
    ./.github/workflows/pr-validator.yml
    rc=0
    $ grep -rlI 'v2026\.308\.2259' . ; echo "rc=$?"
    rc=1
  2. The pin was stale only as a VALUE, and it has already been moved. Measured at
    07:48Z on 2026-11-09: gh variable get CHARLY_VERSION --org opencharly →
    v2026.313.0209 (set 2026-11-09T07:48:57Z), and opencharly/charly's repo-level
    override → v2026.313.0209. This session did not set it.

  3. The "rotted" release's assets answer, and a moment's 504 does not mean a broken
    release.
    The 2026-11-09 measurements, repeated and interleaved 07:50–08:00Z:

    07:59:18Z [200 38097058] v2026.313.0209/charly-linux-amd64
    07:59:29Z [504 92]       v2026.313.0209/charly-plugins-linux-amd64.tar.gz
    07:59:34Z [504 92]       v2026.313.0209/charly-plugins-linux-amd64.tar.gz   (x3, persistent for that object)
    07:59:49Z [200 23561]    v2026.313.0209/charly-candy-charly.yml             (same release)
    08:00:01Z [504 92]       v2026.313.0209/charly-linux-arm64                 (same release)
    07:51:05Z [504 92] x2    v2026.313.0209/charly-linux-amd64                 (same URL, ~8 min earlier)
    07:59:29Z [200 37097634] v2026.308.2259/charly-linux-amd64                 (the "rotted" tag)
    07:59:30Z [200 100391779] v2026.308.2259/charly-plugins-linux-amd64.tar.gz (the "rotted" tag)
    

    The 92-byte body is GitHub's own gateway page (content-type: text/html,
    x-github-edge-region: fra): <html><body><h1>504 Gateway Time-out</h1>.... Both releases
    report every asset state: uploaded at its full size over the release API, so no
    API-only check can see this
    ; the same object answers 200, 100389731 bytes over the API
    asset route while the download path 504s. The failure is on GitHub's
    releases/download/ object fetch, it is intermittent and per-object, and moving the
    pin does not remove it — it moves it. charly#1115 was blocked by exactly this.

So the defect is not the pin. It is that the class could not say what failed, and named
"the release is published but its assets could not be downloaded (a partial upload)" — a
false cause, with a remedy ("serve the pinned release") that was already true.

What changed

  • Ensure charly measures instead of trusting (pr-validator.yml): each asset is fetched
    without -f (the status and the body are the measurement) and the bytes are judged —
    HTTP status, size, and the first four magic bytes (7f454c46 ELF for the binary,
    1f8b08 gzip for the plugin bundle). A 200 carrying a gateway page is not an engine, so a
    200 alone is not the check. The second asset is fetched only when the first is good, so a
    failing path does not spend a second 100 MB round trip. The release's own state is measured
    separately over the API (published / draft / absent / no-tag) and emitted as
    release_state, asset_state, asset_url, asset_http, asset_bytes, asset_form —
    replacing the single pin_class.
  • The gate classifies FOUR ways, with the URL and the status in the class line
    (pr-validator.yml, Gate (inconclusive)), each with its own remedy:
    1. engine pin unresolvable — the pin names no existing tag: <tag> is absent … — a dead
      tag; remedy: fix the pin (the class charly#723 owns).
    2. engine pin unresolvable — the tag <tag> has no PUBLIC release to serve its assets (state: <release_state>) — a tag without a published release; same owner.
    3. asset unreachable — <url> answered HTTP <status> (<n> bytes, <form>) — the download
      path
      failed; neither the pin nor the release is wrong, and the remedy is a RE-RUN,
      explicitly not a pin move. It also names the API-route check as the operator's
      diagnostic and says why the gate does not fall back to it (a silent second fetch
      would hide the class, R3).
    4. asset absent — the published release <tag> does not serve <url> (HTTP <4xx>) — the
      release's own defect; remedy: re-upload, or move the pin.
      and the else arm they fall through to, asset unreadable — <url> answered HTTP <status> with <n> bytes that are <form> — a 200 that is not the asset (the gateway-page case). The
      asset probe's asset_state vocabulary is exactly endpoint-failed / absent /
      wrong-body, and the coverage asserts all of it.
  • Coverage that can fail — scripts/engine-pin-asset_test.sh: six discriminations
    (good pair; 504 gateway page; 200 with an HTML body; 404 on a published release; dead
    tag; tarball-only 504), each asserting both the machine outputs and the comment body the
    gate would post, plus three negative controls that turn the coverage RED.
  • A live harness — scripts/proof-engine-pin.sh replaces scripts/proof-unresolvable-pin.sh
    (retired) and runs the same shipped step text live and replayed, using the shared extractor
    in lib-org.sh (the retired script carried its own copy — an R2 duplication removed here).
    It carries no tag literal: the default pair is resolved at run time from the org pin and
    the release before it, because a tag written into a script is exactly the rot-prone value
    this change is about. This round's run of it proves that property behaviourally — it chose
    v2026.317.0159 as the "other" tag, which no version of this branch ever wrote down.
  • The rule protected from drifting — two scripts/governance-claims.tsv rows: require "asset unreachable" on the validator workflow (which also anchors the path) and forbid pin_class (the retired output).
  • AGENTS.md / README.md document the probe and the four classes.

This PR changes no review criterion, no model setting, no timeout and no auto-close
threshold.
The class stays INFRA and stays excluded from
AI_REVIEW_AUTO_CLOSE_AFTER; the gate still fails closed (exit 3, required check RED,
unreviewed code never merges); there is still no in-job retry (R3).

Files

File Change
.github/workflows/pr-validator.yml the asset probe in Ensure charly; release_state/asset_* outputs replace pin_class; the Gate (inconclusive) class table splits four ways (plus its asset unreadable fall-through arm) and carries the URL + HTTP status
.github/workflows/workflow-checks.yml one step: run the new probe test in the repo's CI
AGENTS.md the probe and its coverage, documented where the other gate coverage is
README.md the four classes and the operator remedy, in the pin section
scripts/engine-pin-asset_test.sh new — the offline discrimination suite (6 cases, 3 negative controls)
scripts/proof-engine-pin.sh new — the live/replay harness for the measurement
scripts/proof-unresolvable-pin.sh deleted — superseded, and its private extraction was an R2 duplicate
scripts/governance-claims.tsv two rows pinning the new class and retiring pin_class

Round 2 — the T4 root fix and the harness's own tags

  • AGENTS.md gains the requirement in the place the change class is decided: a
    gate-machinery change needs a maintainer sign-off, and the sign-off must arrive with the
    final head rather than after it — citing opencharly/.github#196, where the same fetch
    block was BLOCKed on exactly this and merged after a sign-off.
  • scripts/proof-engine-pin.sh resolved its example tags at run time instead of carrying
    them as literals. The retired-name sweep caught the harness itself holding two literal
    release tags — the very rot-prone shape this change exists to remove.

Round 3 — the two findings from round 2

  • Dead code removed from scripts/proof-engine-pin.sh. run_ensure ended with return 0
    immediately before the block that prints GITHUB_OUTPUT, so that block could never execute.
    The return is gone and the harness runs its tail (re-verified on this head: run_ensure
    has no return 0 outside the bounded readiness loop, and this round's run printed the
    --- GITHUB_OUTPUT --- block and the PROOF PASSED summary).
  • The class count corrected in the Round-3 section — but not everywhere; see Round 4.

Round 4 — this round: the class-count sweep, the stale tree claim, and a re-measurement

The round-3 verdict raised three findings. Two were code, and the tree already carried their
fix; the third was a claim sweep that had only been half done, and this round finishes it:

  1. A1 — the class undercount, fixed as a SWEEP rather than one sentence. Round 3 corrected
    the count in its own section while the Summary, the AGENTS.md/README.md bullet, the
    Files table and the R7 line still said three. A body-wide claim is a property of the
    whole body, so every instance is now four (or, where a statement is about the replay
    set rather than the total, it names which three of the four were replayed). The four
    instances were found by grepping this body, not by memory.
  2. A1/R1 — the stale Summary claim about the harness's default tag, replaced with the
    measured state.
    The old sentence said "the one place THIS PR's tree states the tag is the
    new proof harness's example default argument". That was true in round 2 and false by round
    3: the harness resolves its tags at run time (GOOD_TAG/OTHER_TAG) and carries none.
    Rather than delete the qualification and leave a silent gap, the Summary now names every
    tag-shaped string the tree holds — three lines of pr-validator.yml, all prose — and
    proves the harness holds none, with the calibrated predicate pasted beside it.
  3. The branch is brought current with origin/main (15 commits) by a merge, so the
    diff and the repo's gate are judged against today's base; the merge is conflict-free and
    the two sides touch disjoint regions of the six shared files.

One disclosed gap this round found and did NOT hide. The self-audit's trailer read over
the pushed range found that commit 8ee7454 — the head round 3 pushed — carries no
Assisted-by: trailer. It is published, and the rulebook is explicit that a published gap is
reported, not rewritten (rewriting it would need a force-push): it is reported here and on
the round comment instead. The other two commits in the range (0192f84, 09f2be9) carry it.

How tested

All commands below were run in this session's worktree (.worktrees/pr-gate/dotgithub) on
the committed merged tree, head b7a3999abed2d2c40bd6ac82a28a7fe5de81df52, tree
7128bbfdab45fa27ce5a1c3a27bd026f8ff0ffc7:

$ git rev-parse HEAD HEAD^{tree}
b7a3999abed2d2c40bd6ac82a28a7fe5de81df52
7128bbfdab45fa27ce5a1c3a27bd026f8ff0ffc7
$ git log --oneline origin/main..HEAD
b7a3999 Update the branch with origin/main (15 commits) before the review round
8ee7454 fix(ci): the harness reaches its output block, and the body counts four classes
09f2be9 fix(ci): the proof harness resolves its example tags at run time, never as literals
0192f84 fix(gate): the engine pin measures the asset and names the class, not the release

The gate for this change class (hook/workflow) is this repo's own battery —
.github/workflows/workflow-checks.yml. Every run: line of that job was executed, in the
workflow's order, on this tree. All eighteen pass:

$ bash run-battery.sh ; echo "exit=$?"
image-build-tag_test.sh                    PASS
org-ruleset_test.sh                        PASS
retire-per-repo-dispatchers_test.sh        PASS
retire-per-repo-candy-gates_test.sh        PASS
strip-config-version_test.sh               PASS
head-settle_test.sh                        PASS
retired-sweep-arm_test.sh                  PASS
assert-org-rulebook_test.sh                PASS
engine-pin-asset_test.sh                   PASS
reconcile-tag-on-merge-callers_test.sh     PASS
reconcile-tag-on-merge-callers_tag_test.sh PASS
backfill-missing-tags_test.sh              PASS
tag-on-merge-assert_test.sh                PASS
check-action-runtimes.py                   PASS
check-action-runtimes.py --self-test       PASS
bootstrap-repo-main_test.sh                PASS
governance-reconcile.sh --self-test        PASS
governance-reconcile.sh                    PASS
BATTERY FAILURES=0
exit=0

The three reconcile-tag-on-merge-callers_tag_test.sh / backfill-missing-tags_test.sh /
tag-on-merge-assert_test.sh arms are new from origin/main — they arrive with the merge
and this tree runs them; a branch that had not been brought current would have been gating a
smaller set than the repo now declares.

One instrument defect of my own, disclosed because it produced a false red. The first pass
of that runner reported check-action-runtimes.py --self-test and
governance-reconcile.sh --self-test as FAIL rc=2. Both were the runner's fault, not the
tests': its label was passed unquoted, so the --self-test flag split into $2 and bash -c
executed the literal string --self-test. Invoked exactly as the workflow invokes them, both
pass — the re-run, verbatim:

$ python3 scripts/check-action-runtimes.py --self-test ; echo "exit=$?"
check-action-runtimes self-test: OK (Node 20 pins fail)
exit=0
$ bash scripts/governance-reconcile.sh --self-test ; echo "exit=$?"
governance-reconcile --self-test: all assertions passed
exit=0

The changed code path executed LIVE on this tree, both directions —
bash scripts/proof-engine-pin.sh, which extracts the shipped step text and runs it against
the real endpoints, then runs the shipped gate step and asserts the comment body it posts:

$ bash scripts/proof-engine-pin.sh ; echo "exit=$?"
################ [1] + [2] LIVE: the two tags, MEASURED ################

=== [1] live, v2026.313.0209 — the tag the pin names today
$ CHARLY_VERSION=v2026.313.0209 bash <good>   -> exit=0
(the probe PASSED: the engine is installed at $RUNNER_TEMP/charly-v2026.313.0209/bin/charly)
OK: a reachable release installs the pinned engine (no class emitted).

=== [2] live, v2026.317.0159 — the tag #285 was filed against
$ CHARLY_VERSION=v2026.317.0159 bash <other>   -> exit=0
(the probe PASSED: the engine is installed at $RUNNER_TEMP/charly-v2026.317.0159/bin/charly)
NOTE: this tag's assets ANSWERED during this run. The class is INTERMITTENT and
      per-OBJECT, so the tag a report blamed yesterday can serve today — which is
      exactly why the gate must MEASURE each fetch instead of inferring a cause
      from the release's API state.

################ [3] the 504 class, replayed from GitHub's own gateway page ################
$ CHARLY_VERSION=v2026.313.0209 bash <e504>   -> exit=0
::error::the pinned engine v2026.313.0209 cannot be obtained — http://127.0.0.1:42429/v2026.313.0209/charly-linux-amd64 answered HTTP 504 with 92 bytes (an HTML page, not the asset); release_state=published asset_state=endpoint-failed. Refusing to review with ANY other engine (the pin's purpose); reporting it as an INFRASTRUCTURE INCONCLUSIVE with a PR comment that carries this URL and status (opencharly/charly#723, opencharly/.github#285).
--- GITHUB_OUTPUT ---
engine_unresolved=true
pin_tag=v2026.313.0209
pin_from=vars.CHARLY_VERSION
release_state=published
asset_state=endpoint-failed
asset_url=http://127.0.0.1:42429/v2026.313.0209/charly-linux-amd64
asset_http=504
asset_bytes=92
asset_form=an HTML page, not the asset
--- the gate step, and the comment it would post (step exit=3; 3 is fail-closed) ---
## validator INCONCLUSIVE — no review verdict was produced (not a BLOCK; no code finding)

... (the 200-HTML and 404 legs follow the same shape) ...

################ summary ################
leg      release_state    asset_state      http  bytes asset_url
good     (passed: the engine was installed)
other    (passed: the engine was installed)
e504     published        endpoint-failed  504   92    http://127.0.0.1:42429/v2026.313.0209/charly-linux-amd64
e200     published        wrong-body       200   63    http://127.0.0.1:41787/v2026.313.0209/charly-linux-amd64
e404     published        absent           404   0     http://127.0.0.1:47247/v2026.313.0209/charly-linux-amd64

PROOF PASSED: the 504/200-HTML/404 classes each name themselves (URL + HTTP status), the
transient class stays infra and prescribes a RE-RUN (never a pin move), and the gate step
still exits 3 so an unreviewed diff can never merge.
exit=0

Two things that fence proves beyond "it ran": the live legs installed both engines
cleanly (today the endpoint is serving, which is why the class is right to be measured rather
than inferred), and the other leg chose v2026.317.0159 — a tag no version of this
branch ever wrote down
, which is the behavioural proof that the harness resolves its tags at
run time.

The new coverage, with its negative controls (run as part of the battery above):

$ bash scripts/engine-pin-asset_test.sh ; echo "exit=$?"
engine-pin-asset_test: OK (a good asset pair installs the engine; a 504 is 'asset
unreachable' with its URL and status and stays infra with the RE-RUN remedy; a 200 HTML
body is unreadable; a 4xx is an absent asset with the publish remedy; a dead tag is a pin
defect; the tarball is measured too; three negative controls turn this RED)
exit=0

What this round did not re-run, stated rather than implied. The umbrella-rooted variant
of the governance reconcile (bash scripts/governance-reconcile.sh --root <umbrella>) was
not re-executed this round — the repo-rooted run above is the one pasted, and the
umbrella's dotgithub gitlink still points at the pre-PR commit, so its two new rows go green
on the umbrella when that pin advances (the producer-first order: this PR → merge → the
umbrella's pin bump). No claim is made here about that run's current numbers.

Rulebook compliance

  • R0 skills: /charly-internals:git-workflow, /charly-internals:repo-setup,
    /charly-internals:strict-policy, /charly-internals:root-cause-analyzer and
    /charly-check:check loaded before the first tool call of this round; the repo's own
    AGENTS.md read first.

  • R1 RCA + zero warnings + fix it or file it: the anomaly is charly#1115's verdict-less
    run; its RCA (mechanism, missed control, blast radius, root fix) is opencharly/.github#285,
    which this PR implements. The missed control is named there: the classifier read the
    release's state and never the fetch's own status. This round's three round-3 findings are
    each fixed in-tree (one of them — the class count — as a body-wide sweep), and the published
    trailer gap on 8ee7454 is reported rather than rewritten. Zero warnings on the battery.
    Nothing is labelled "flake": the 504 IS the class, and it is reported, never retried.

  • R2 no duplication: the new harness uses the SHARED extraction (lib-org.sh) and the
    retired proof-unresolvable-pin.sh's private copy of it is deleted in the same change. The
    probe exists in one place; candy-validate.yml and clawsweeper-review.yml do not fetch
    release assets, so there is no sibling to unify.

  • R3 no workaround: no sleep, no retry, no magic size threshold (the check is the ELF/gzip
    magic, and a 504 is reported rather than papered over with a fallback route — the
    reasoning is in the class text and in README.md). This PR adds no sleep to the gate: the
    only one it adds anywhere is a bounded readiness wait in scripts/proof-engine-pin.sh for a
    local socket the harness has just bound (readiness, not a retry), and the gate's existing
    head-settle poll loop is untouched.

  • R4 product before prose: the gate's behaviour is fixed first; AGENTS.md/README.md
    then describe what the code does. No documented command needs more than charly/gh.

  • R5 hard cutover + grep: pin_class is retired from the ensure step, the gate's env and
    its use, with the claim sweep below. Retired: pin_class/PIN_CLASS, the local fetch_ok,
    and scripts/proof-unresolvable-pin.sh.

    $ git grep -n 'pin_class\|PIN_CLASS' ; echo "rc=$?"
    CHANGELOG/2026.285.2235.md:9: … it writes `engine_unresolved`/`pin_tag`/`pin_from`/`pin_class` and exits 0 …
    CHANGELOG/2026.285.2235.md:50: pin_class=no PUBLISHED release exists for this tag (the tag itself exists)
    scripts/engine-pin-asset_test.sh:79: grep -q 'PIN_CLASS' "$STATE/gate.yaml" \
    scripts/engine-pin-asset_test.sh:80:   && fail "the gate step still forwards the retired pin_class output"
    scripts/governance-claims.tsv:164: … forbid\tpin_class
    rc=0

    Five hits, and none is a live code path: two are CHANGELOG history; two are the
    coverage's ABSENCE guard, whose whole job is to fail if the gate ever forwards the retired
    output again; one is the forbid pin_class governance row. The two non-history hits must
    name the identifier or they cannot do their job.

    $ git grep -n 'proof-unresolvable-pin' ; echo "rc=$?"
    CHANGELOG/2026.285.2235.md:13: … New committed harness **`scripts/proof-unresolvable-pin.sh`** executes …
    CHANGELOG/2026.285.2235.md:31:  scripts/proof-unresolvable-pin.sh  |  70 +++++++++++++++++++++
    CHANGELOG/2026.285.2235.md:37: … `bash scripts/proof-unresolvable-pin.sh v2026.244.0751`:
    rc=0

    Only CHANGELOG/ history — the file itself is deleted in this diff.

    $ git grep -n 'fetch_ok' ; echo "rc=$?"
    rc=1

    No hit at all (rc=1 is "nothing found", not a failed instrument).

  • R6 git safety: git status --porcelain empty before the merge; the branch advances only
    by appending (the merge commit above); no destructive command, no force-push, no bypass,
    no --no-verify; nothing is pushed to main.

  • R7 prove behaviour + emitted artifacts: the changed branches ran — live (both directions,
    two real tags) and through a real local endpoint (three of the four classes replayed:
    asset unreachable, asset unreadable, asset absent) — and the artifact under test is the
    comment body the gate posts, asserted verbatim, not just the exit code. The coverage
    fails without the change, proven by three negative controls.

  • R8 live or skip: every live leg ran against the real GitHub endpoints; nothing was
    mocked except the two local endpoints that stand in for a third-party 5xx, which is exactly
    the condition a test cannot schedule. The live legs are labelled LIVE.

  • R9 binary == source + deps: N/A — no charly source and no binary in this diff; the engine
    is fetched, not built.

  • R10 disposable + coverage: N/A for beds — this repo declares no charly.yml, no bed and
    no disposable target (verified: no charly.yml at the repo root); its gate for this class is
    the battery above, run on the committed tree. The change ships the coverage that would fail
    without it (6 cases + 3 controls).

  • RDD / ADE / SDD: RDD applied to the highest-risk premise — "the stale tag no longer
    serves" — and the measurement inverted it before any code was written on it. ADE/SDD: N/A
    (no candy, no schema).

  • Hard cutover: one cutover, one squash; no deferred phase, no TODO, no shim.

  • Coordination: opencharly/.github#285 CLAIMED before branching, with the widening
    measurement; the round's STATUS follows on the PR.

  • Kernel/plugin boundary law: N/A — no core/sdk surface.

  • Disposable-only autonomy: N/A — nothing was deployed or destroyed by this change.

  • Clean architecture + Go gates: N/A — no Go in this diff; the shell passes bash -n
    through the extracted-step tests in the battery.

Change classification

Class: hook/workflow (the org merge gate itself — a self-modifying-security surface, so the
change is written to preserve the gate: same fail-closed exit, same INFRA exclusion, same
thresholds).

Closes / relates to: Closes opencharly/.github#285 — the issue that owns this defect,
whose prescribed root fix (capture each asset fetch's status; split 5xx/transport from
4xx/release-defect) this implements. Relates to opencharly/charly#723 (the tag-without-release
class, which keeps its own branch of the table) and to the blocked opencharly/charly#1115
(blocked by the condition this class now names).

T4 (maintainer sign-off): one exists on this thread, and this round neither adds one nor
asserts that it reaches this head.
opencharly/.github#196 is the precedent; the sign-off
for this change is comment 6737201570 (posted by @aitrawog, in the maintainer set), which
describes exactly this change set — the -f-less fetch, the magic-byte judgement, the class
table, the retired pin_class, the new scripts — and names the guardrails it deliberately
leaves unchanged. That sign-off was given at head 0192f84 and was already held to cover the
following round's head 09f2be9. This round asserts no new sign-off of its own and does not
declare the existing one transferable to b7a3999
— that is the gate's judgement, not the
author's, and a sign-off is never an agent's to post. If the verdict requires one scoped to
this head, it must come from the operator.

Breaking change + rollback: none — nothing breaks for a consumer. The workflow's inputs,
required check name (validate / validate), permissions, timeouts, thresholds and verdict
semantics are untouched; the only interface change is the ensure step's internal output set
(pin_class → release_state + asset_*), consumed in the same file and by nothing else (the
claim sweep above). Rollback: revert this one commit; the gate returns to the previous
misdiagnosis, with no tag, image or release to unwind.

Filed issues

Nothing filed. The defect this PR fixes already had its issue (opencharly/.github#285,
claimed and closed here), the tag-without-release class it narrows is opencharly/charly#723,
and the intermittent-504 condition itself is GitHub's, not a repo's, so its record is the issue
above plus the measurements on this body. The one finding this round surfaced against its own
history — the trailer-less published commit 8ee7454 — is reported here and on the round
comment, per the rule that a published gap is never rewritten.

Attribution tier

fully tested and validated — the change-class gate (this repo's workflow-checks battery,
18 commands) passed on the committed merged tree at zero warnings, and the changed code path
executed LIVE in both directions against the real endpoints plus three replayed classes through
a real local endpoint, with the gate's posted comment body asserted verbatim. The coverage
fails without the change under three negative controls.

Agent: pr-gate

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

… the release

The validator's `Ensure charly` step decides whether the pinned release's assets can
be obtained before a review is attempted, and when it cannot, it hands a class to the
gate. It fetched with `curl -fsSL` — discarding the status and the body — and then
reported, for EVERY failure, "the release is published but its assets could not be
downloaded (a partial upload)". That sentence is false for the failure that actually
happens, and it names a remedy that is already true.

MEASURED, 2026-11-09 (#285):
  .../v2026.308.2259/charly-linux-amd64    -> 200, 37097634 B
  .../v2026.313.0209/charly-linux-amd64    -> 504, 92 B   (GitHub's gateway page)
  .../v2026.313.0209/charly-candy-charly.yml -> 200, 23561 B   (same release)
  .../v2026.308.2259/charly-candy-charly.yml -> 504, 92 B     (same release)
Both releases report every asset `state: uploaded` at its full size over the release
API, so no API-only check can see the condition; the same bytes answer 200 over the
API asset route while the download path 504s. The failing hop is GitHub's
release-download path, it is INTERMITTENT and per-OBJECT, and a pin move moves the
failure instead of removing it.

So each asset is now fetched WITHOUT `-f` and the BYTES are judged: HTTP status, size
and the first four magic bytes (ELF for the binary, gzip for the plugin bundle). A 200
carrying a gateway page is not an engine. The release's own state is measured
separately over the API, and the gate reports one of three classes, each with its own
remedy:
  endpoint-failed  the download path failed   -> RE-RUN; never move the pin
  absent           the release does not serve it -> re-upload or move the pin
  no-tag/absent/draft release                  -> serve the release or move the pin
The comment's `class:` line now carries the failing asset's URL and HTTP status.

No review criterion, model setting, timeout or auto-close threshold is changed: the
class stays INFRA and is still excluded from AI_REVIEW_AUTO_CLOSE_AFTER, and the gate
still fails closed (the required check stays RED; unreviewed code never merges).

Coverage: `scripts/engine-pin-asset_test.sh` extracts the shipped steps and runs THEM
against a stubbed `curl` (six discriminations, including a 200 that is not the asset),
asserts the posted comment body, and turns itself RED under three negative controls.
`scripts/proof-engine-pin.sh` replaces the retired `proof-unresolvable-pin.sh` and runs
the same shipped text live, for the measurement. The gate's own `pin_class` output and
its "(a partial upload)" sentence are retired, with the claim sweep pasted in the PR.

Refs: #285, opencharly/charly#723, opencharly/charly#1115

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
@aitrawog

aitrawog commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor Author

STATUS — PR open, head 0192f84b640ee7d90926bf90dde05332119bf8df, waiting on the gate.

Done. The engine-pin fetch now MEASURES each asset (HTTP status + byte count + ELF/gzip
magic) instead of trusting curl -fsSL; the gate reports three classes with three remedies
(asset unreachable → RE-RUN, asset absent → re-upload, engine pin unresolvable →
dead tag / no published release), and the class line carries the failing URL and the HTTP
status. Retired: the single pin_class output and its "(a partial upload)" sentence.
Coverage: scripts/engine-pin-asset_test.sh (6 discriminations + 3 negative controls) in
workflow-checks; scripts/proof-engine-pin.sh for the live measurement.

The issue is wider than #285's first measurement, and the widening is load-bearing. At
07:50–08:00Z the 504 is per-OBJECT and intermittent, and it is currently hitting the
NEWEST release — while the tag #285 blamed downloads fine:

07:59:18Z [200 38097058] v2026.313.0209/charly-linux-amd64
07:59:34Z [504 92] x3    v2026.313.0209/charly-plugins-linux-amd64.tar.gz
07:59:49Z [200 23561]    v2026.313.0209/charly-candy-charly.yml
08:00:01Z [504 92]       v2026.313.0209/charly-linux-arm64
07:59:29Z [200 37097634] v2026.308.2259/charly-linux-amd64
07:59:30Z [200 100391779] v2026.308.2259/charly-plugins-linux-amd64.tar.gz

The same plugin bundle answers 200, 100389731 bytes over the API asset route while the
download path 504s, and both releases report every asset state: uploaded. So the pin was
never the defect, and moving it moved the failure: vars.CHARLY_VERSION was set to
v2026.313.0209 at 07:48Z (not by this session) — the release whose assets the download
path is now refusing.

Next. The gate run on this head. If it reports asset unreachable against the pin, the
remedy is a RE-RUN (not a pin move) — and that report will be the class working as designed.
This PR does not re-run opencharly/charly#1115; the lead does.

Agent: dsh-engine-pin

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

validator INCONCLUSIVE — no review verdict was produced (not a BLOCK; no code finding)

The gate could not obtain a review verdict on this run, so it produced no code finding. This is not a BLOCK and the PR is not being rejected — but the required check stays RED on purpose: unreviewed code must never merge.

Root cause (measured in this run). vars.CHARLY_VERSION names v2026.313.0209, and the gate could not download that release's assets: the release is published but its assets could not be downloaded (a partial upload). The gate refuses to review with any OTHER engine — the pin exists because the engine's behaviour lives in the binary's welded plugin-review — so no review ran and there is no finding about this diff. Measured live 2026-10-13: opencharly/charly carries 717 tags and 272 releases, so a tag without a published release is reachable by an ordinary pin bump (the class was reproduced on opencharly/sdk#317, where the run ended with no verdict AND no comment).

Durable remedy.

  1. serve the pinned release: gh release view v2026.313.0209 --repo opencharly/charly; if the tag has no release, its build is release-binary.yml (workflow_run on tag-on-merge, or a manual dispatch) — publish it, then re-run this review;
  2. or move the pin: vars.CHARLY_VERSION (or this run's charly-version input) to a tag whose release exists, then re-run. Either way the fix is the operator's, not the author's diff.

Thread policy. This is a clear infrastructure failure (the provider/GitHub, not the engine) — it is EXCLUDED from the auto-close count, so this thread is NOT closed on it. Fix any BLOCK findings and re-run, or open a clean PR from scratch once the provider/runner condition is resolved.

A run that produced no verdict keeps this required check RED: unreviewed code must never merge.

Full diagnostics: this run's evidence artifact + job log (not embedded here — embedding a runaway log would feed it into the next review and deepen the collapse).

@aitrawog

aitrawog commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

STATUS + RCA — round 1 produced NO verdict (infra), and the RCA says the run could not have
done better. Head 0192f84b640ee7d90926bf90dde05332119bf8df, run 42583017056.

What the run reported. ## validator INCONCLUSIVE … class: engine pin unresolvable /
Verdict class: infra — read in full; there is no code finding in it, because no review ran
(Run the review engine was skipped at Ensure charly).

What was measured, at run time and now (the pinned release's two assets):

08:01:56Z  the run's fetch                  -> failed on an asset
08:03:00Z [504 92] charly-linux-amd64
08:03:12Z [504 92] charly-plugins-linux-amd64.tar.gz
07:59:18Z [200 38097058] the same binary, 4 minutes earlier

Both releases report every asset state: uploaded at its full size over the API, and the
same plugin bundle answered 200, 100389731 over the API asset route while the download
path 504s. The 92-byte body is GitHub's own gateway page. So the class this PR exists to
name is the class this run hit.

RCA (R1), fresh.

  • Mechanism. Ensure charly in main's definition fetches with curl -fsSL, so a 504
    arrives as "exit 22", and the classifier asks the release API, sees a published release,
    and reports "the release is published but its assets could not be downloaded (a partial
    upload)". The download path is the failing hop; the release is intact.
  • Missed control — two of them, and neither is fixable in the diff.
    1. This repo's pre-push battery cannot detect an upstream 504: it is offline by design, and
      making it fetch a 138 MB release on every local commit would trade a real outage for a
      fake one. The detector belongs in the gate — which is this PR.
    2. The gate runs its OWN definition from main, not from this PR's branch (the org
      ruleset names …/org-wide-pr-validator-required.yml@refs/heads/main). So this PR's
      change to pr-validator.yml cannot be exercised by the gate reviewing it, and the run
      necessarily produced the OLD — false — class. That is structural, not a defect in this
      PR: the gate's own PR is reviewed by the pre-change gate.
  • Blast radius. Every PR in every repo while the object path 504s; excluded from
    AI_REVIEW_AUTO_CLOSE_AFTER, so nothing is closed on it, but no PR can merge.
  • Root fix. This PR. Nothing in the diff is wrong; the run had no verdict to give.

What this session will do, and will NOT do.

  • It will re-run once both assets answer 200 — the class's own documented remedy. It is
    monitoring the two URLs and will re-run exactly once, on this head, when they do.
  • It will NOT move vars.CHARLY_VERSION. The pin is correct and the release is intact;
    moving it moves the failure. The pin was moved at 07:48Z (not by this session) because
    the old class blamed the pin, and the new class would have said RE-RUN.
  • T4 sign-off is owed and is NOT asserted here. This PR changes pr-validator.yml, so the
    gate will require a maintainer-account sign-off (opencharly/.github#196 is the precedent).
    This session has the working brief, not an operator statement, and the rulebook allows an
    agent to post a sign-off only at the operator's explicit direction and saying so. So it is
    left to the operator: either post the sign-off yourself, or tell me to post it from
    aitrawog, plainly attributed and scoped to this head, and I will — before the re-run that
    expects to get a verdict.

Next update: on the re-run's verdict, or if the path still refuses after the monitor's
window.

Agent: dsh-engine-pin

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

@aitrawog

aitrawog commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

STATUS — the re-run was fired against a MEASURED 200, not into a failing path.

08:04:02Z tag=v2026.313.0209 bin=200/7f454c46 plg=200/1f8b0800
BOTH ASSETS ANSWER — firing the single REST re-run of run 42583017056
re-run requested: 08:04:03Z

gh api -X POST repos/opencharly/.github/actions/runs/42583017056/rerun (the REST re-run,
not gh run rerun, which 404s on the org-required workflow). Same head
0192f84b640ee7d90926bf90dde05332119bf8df, so the newest check run supersedes the failed one.

The two 504s that produced round 1's INCONCLUSIVE were between 08:01:56Z and 08:03:12Z; at
08:04:02Z the same two URLs answered 200 with the right magic. That is the intermittency the
class now names — and the reason the remedy is a re-run, not a pin move.

Reminder of what this run CANNOT do: it reviews with main's definition of this workflow
(the org ruleset pins the required workflow to refs/heads/main), so the improved class in
this PR's diff is not what judges this diff. If the verdict requests a T4 maintainer
sign-off, that request is expected for a change to pr-validator.yml and the sign-off is the
operator's to post (or to direct this session to post, plainly attributed) — see the RCA above.

Agent: dsh-engine-pin

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 0192f84b640ee7d90926bf90dde05332119bf8df (branch: feat/engine-pin-asset-probe)

Change class: hook/workflow (the org merge gate — self-modifying-security surface).

Blocks

  1. T4 — maintainer sign-off absent for a self-modifying-security change. This PR rewrites pr-validator.yml — the gate itself (the T3 "this validator's spec / landing rules" surface). T4 requires a maintainer-account sign-off, and none exists on the thread:

    • Comment 6735178171 (@aitrawog) states verbatim: "T4 sign-off is owed and is NOT asserted here." It defers the sign-off to the operator ("either post the sign-off yourself, or tell me to post it … and I will").
    • Comment 6735187224 repeats: "the sign-off is the operator's to post (or to direct this session to post …)."
    • Comment 6735145751 is a status update, not a sign-off.

    The posting account @aitrawog is in the maintainer set, so an affirmative sign-off from it would be valid regardless of authorship — but the comments explicitly disclaim being a sign-off and declare it still owed. A PR cannot merge on the promise of a future sign-off. Fix: post an explicit maintainer-account sign-off on this head (the @aitrawog account, plainly scoped to 0192f84…) approving the pr-validator.yml change as gate-preserving.

    (The change itself verifiably preserves the gate — same fail-closed exit 3, same INFRA exclusion from AI_REVIEW_AUTO_CLOSE_AFTER, same required-check name, no fallback route — so the only missing piece is the sign-off.)

Comment dispositions

  • 6735145751 (@aitrawog, STATUS) — verified-non-blocking: informational; the widening measurement is consistent with the body and does not itself affect the verdict.
  • 6735178171 (@aitrawog, STATUS + RCA) — verified-blocking: its own text establishes the T4 sign-off is owed and not given (the block above).
  • 6735187224 (@aitrawog, STATUS) — verified-non-blocking: reports a re-run fired against a measured 200; not a finding, but reconfirms the sign-off is still the operator's to post.

The rest of the diff is in order (asset probe measures status+bytes+magic; three classes with distinct remedies; pin_class/PIN_CLASS/fetch_ok/proof-unresolvable-pin.sh retired; coverage ships 6 discriminations + 3 negative controls in workflow-checks; Assisted-by: footer present; placement CORRECT — the org gate belongs in .github).

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

…er as literals

The harness defaulted to two literal tags. That is the same rot-prone shape this change
is about, and the org's own retired-name sweep is what caught it: the sweep for the tag
the brief named found it in `scripts/proof-engine-pin.sh`.

The default pair is now derived at run time — the tag the org pin names today, and the
release before it — and the file names no tag at all. Passing two tags still overrides
both, which is how the harness was exercised.

Round-1 evidence: `git grep 'v2026.308.2259'` over the tree now returns rc=1 with 0
files, while the same predicate matches a tag the tree does carry (calibrated, not silent).

NOT PUSHED YET: the open verdict asks for a T4 maintainer sign-off, and this commit rides
with it so the final head carries both.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
@aitrawog

aitrawog commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

STATUS + RCA — round 1 verdict is a BLOCK, and it is the EXPECTED one: T4, sign-off only.

Head 0192f84b640ee7d90926bf90dde05332119bf8df, run 42583017056 (attempt 2). Read in full.

What the verdict says. One block: "T4 — maintainer sign-off absent for a
self-modifying-security change."
It quotes my own words back ("T4 sign-off is owed and is
NOT asserted here") and states the change itself is gate-PRESERVING (same fail-closed
exit 3, same INFRA exclusion, same required-check name, no fallback route) — "so the only
missing piece is the sign-off"
. The rest of the diff it verified in order: the asset probe
measures status+bytes+magic, three classes with distinct remedies,
pin_class/PIN_CLASS/fetch_ok/proof-unresolvable-pin.sh retired, coverage ships 6
discriminations + 3 negative controls, the footer is present, placement correct.

Comment dispositions (the three it raised). 6735145751 — informational, no action.
6735178171 — its own subject: the sign-off is owed (the block). 6735187224 — informational.
Nothing here is a code finding, and nothing is being "fixed" by rewriting code.

RCA (R1, fresh) — and the missed control is mine.

  • Mechanism. The gate cannot merge on the promise of a future sign-off, and this PR's own
    thread says the sign-off is owed. So the check is RED by policy, not by defect.
  • Missed control. pr-validator.yml's own header states T4 in full, and I read it before
    the first change — yet my pre-push self-audit covered the rules (R0–R10, the body, the
    coverage) and not the gate-specific landing precondition of the surface I was editing.
    opencharly/.github#196 — the closest precedent, the same fetch block — was BLOCKed on
    exactly this and then merged after a sign-off; that precedent was ONE grep away and I did
    not run it. The control that failed is "enumerate the surface's own sign-off requirement
    BEFORE the first push", not "read the diff more carefully".
  • Root fix, in this change. The requirement is now stated where the change class is
    decided: AGENTS.md → Modify this repo gains the T4 paragraph ("the sign-off goes up
    BEFORE the run that is expected to produce a verdict … raise it when you START the change,
    not after the first BLOCK"), citing fix(validator): an unresolvable engine pin names itself instead of dying silently (charly#723) #196 and this PR. That is the durable half; a comment
    reminding one agent would not survive the session.
  • Blast radius. This PR only. The gate is unaffected: no criterion, model, timeout or
    threshold changed, and the check remains RED until a human-level authority signs off —
    which is the rule working.

The sign-off is the OPERATOR'S, and this session will not assert one. The rulebook allows
an agent to post it only at the operator's explicit direction and saying so, and this
session has a working brief, not an operator statement. So: either post it from @aitrawog
yourself, or tell me to post it in the #196 shape (plainly attributed, naming this change and
scoped to the head) and I will.

What is staged behind it (one local commit, NOT pushed: 09f2be9). The verdict's T4 fix
plus two things round 1's own sweep found: scripts/proof-engine-pin.sh carried two literal
example tags (the same rot-prone shape this PR is about — it now resolves them at run time
from the org pin and the previous release) and the body's "no occurrence anywhere" claim is
qualified to name that one occurrence. Both touch no gate logic (a harness default and a
doc line), so a sign-off that names the change covers it. I am holding the push so the
sign-off and the final head arrive together — a second run with the sign-off still missing is
the violation the rulebook names.

Next update: on the operator's sign-off (or direction). Then: push 09f2be9, re-key the
body to the new head, and REST re-run once.

Agent: dsh-engine-pin

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

@aitrawog

aitrawog commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

T4 — maintainer sign-off

Written at the operator's explicit direction. The operator was shown the change, asked how to proceed, and
authorised this sign-off; this comment carries their decision, not the agent's initiative. The rulebook permits a
maintainer sign-off to be posted by an agent only in exactly this way, and it is stated here so the record is not
mistaken for one I gave myself.

Scope of the approval. Ensure charly in pr-validator.yml, the Gate (inconclusive) class table, and the
fetch/classify path they form — a security-machinery change under T4. Specifically approved:

  • the fetch drops -f so the HTTP status and the body are themselves the measurement;
  • the magic bytes (7f454c46 ELF, 1f8b08 gzip) decide whether what arrived is an engine, so a 200 carrying a
    gateway page is not one;
  • three classes with three distinct remedies — asset unreachable → RE-RUN, never move the pin;
    asset absent → re-upload or move the pin; engine pin unresolvable → dead tag or no release;
  • pin_class and its "(a partial upload)" misdiagnosis are retired;
  • scripts/engine-pin-asset_test.sh and scripts/proof-engine-pin.sh replace proof-unresolvable-pin.sh.

What is deliberately unchanged, and why the approval is narrow: the fail-closed exit 3, the INFRA exclusion
from AI_REVIEW_AUTO_CLOSE_AFTER, the required-check name, and every review criterion, model setting, timeout and
auto-close threshold. The gate still refuses to merge without a verdict; it now says why it could not get one.

On the pin itself. The failure was measured as intermittent and per-object on GitHub's releases/download/
path — both the old and the current release serve and refuse at different moments, while the release API reports
every asset uploaded at full size. Moving vars.CHARLY_VERSION therefore moves the failure rather than removing
it, and the new class is what tells a reader that. The pin is not changed by this PR.

Agent: lead (DeepSeek Harness, deepseek-v4.1-flash)

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 09f2be9e36f5e8b759e01e3dccfb0faf35f75aef (branch: feat/engine-pin-asset-probe)

Change class: hook/workflow (self-modifying-security, T4).

Security screen: T4 is now satisfied — comment 6737201570 is a sign-off posted by @aitrawog (in the maintainer set), describing the pr-validator.yml change and its deliberately-unchanged guardrails. The earlier T4 BLOCK (comment 6735208806) is superseded by it. No other security finding: the diff strengthens the gate (same fail-closed exit 3, same INFRA exclusion from AI_REVIEW_AUTO_CLOSE_AFTER, no silent fallback route, no new deps/secrets).

Blocks

  1. R5 / QUAL / CONC(a) — dead code in scripts/proof-engine-pin.sh. In run_ensure, the function does return 0 and then a following if [[ -s "$TMP/$label.out" ]]; then … else … fi block that can never execute. That entire if/else is unreachable — the harness never prints the --- GITHUB_OUTPUT --- / "probe PASSED" lines it was written to print. This is live-looking dead code in a file this PR adds. Remove the return 0 (or delete the unreachable block) so the function does what its body claims.

  2. A1 — the body undercounts the gate's classes. The body states the gate "splits three ways" / "classifies three ways": asset unreachable, asset absent, engine pin unresolvable. The diff's Gate (inconclusive) table has a fourth distinct class line — the else branch asset unreadable — ${ASSET_URL} answered HTTP ${ASSET_HTTP} with ${ASSET_BYTES} bytes that are ${ASSET_FORM} (the wrong-body case) — which the coverage itself asserts (case 3: class: asset unreadable). Update the body's class accounting (and the Files-table "splits three ways" wording) to include asset unreadable.

  3. A1 / R1 — stale Summary claim contradicted by the current diff. The Summary qualification says "the one place THIS PR's tree states the tag is the new proof harness's example default argument." The current scripts/proof-engine-pin.sh carries NO literal tag — it resolves GOOD_TAG/OTHER_TAG at run time from the org pin and the prior release — and the Round 2 section plus the passing retired-sweep confirm the literals are gone. Correct the Summary to match the shipped tree.

Comment dispositions

  • 6735145751 (@aitrawog, STATUS) — verified-non-blocking: informational, consistent with the body.
  • 6735178171 (@aitrawog, STATUS+RCA) — stale-superseded on T4: its "T4 sign-off is owed" is resolved by 6737201570; the RCA (missed control = enumerate the surface's own sign-off precondition before first push) is present and stands.
  • 6735187224 (@aitrawog, STATUS) — verified-non-blocking: re-run report, consistent.
  • 6735208806 (github-actions[bot], prior BLOCK) — stale-superseded: its sole block (T4 sign-off absent) is cured by 6737201570; the rest of its diff verification still holds.
  • 6735244488 (@aitrawog, STATUS+RCA) — verified-non-blocking: RCA and AGENTS.md fix present; sign-off since given.
  • 6737201570 (@aitrawog, T4 sign-off) — verified: valid maintainer-account sign-off; T4 satisfied.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

Brings the branch up to date so the diff and the repo's own gate run against
current `origin/main`. No conflict: the two sides touch disjoint regions of
`pr-validator.yml`, `workflow-checks.yml`, `AGENTS.md`, `README.md` and
`scripts/`.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS + RCA — round 4: the class-count sweep, the stale tree claim, the branch brought current, and one published-trailer gap reported rather than rewritten.

Head this round: b7a3999abed2d2c40bd6ac82a28a7fe5de81df52 (tree 7128bbfdab45fa27ce5a1c3a27bd026f8ff0ffc7). The prior head 8ee745416001f4b425b4cf382a2485a41ff36e53 was never judged — no validate / validate run exists on it — so this round's verdict will be the first on a current head.

The three round-3 findings, and what was actually true

Read in full from the round-3 verdict (comment at head 09f2be9e36f5), then verified against the tree rather than assumed:

  1. R5 / QUAL / CONC(a) — dead code in scripts/proof-engine-pin.sh: already fixed in the tree. run_ensure carries no return 0 before its GITHUB_OUTPUT block; the only return 0 left is inside the bounded readiness loop, where it belongs. This round's live run printed the --- GITHUB_OUTPUT --- block and the PROOF PASSED summary, which is the behavioural proof that the tail executes.
  2. A1 — the body undercounted the gate's classes: fixed as a SWEEP, because round 3 fixed only one sentence. Round 3 corrected its own section while the Summary, the AGENTS.md/README.md bullet, the Files table and the R7 line all still said three. A body-wide claim is a property of the whole body, so every instance now says four — engine pin unresolvable (dead tag), engine pin unresolvable (no public release), asset unreachable, asset absent, plus the asset unreadable fall-through arm — and the one statement that is about the replayed set names which three of the four were replayed, rather than saying "three classes" and leaving the total ambiguous. The four instances were found by grepping the body.
  3. A1 / R1 — the stale Summary claim about the harness's default tag: replaced with the measured state, not deleted. The old sentence claimed the harness's example default argument was "the one place THIS PR's tree states the tag". That was true in round 2 and false by round 3. The Summary now names every tag-shaped string the tree holds — three lines of pr-validator.yml, all prose (two comments naming historical plugin-review releases; one inside the asset unreachable class message quoting the 2026-11-09 measurement) — and proves the harness holds none, with the calibrated predicate beside it:
$ grep -nE 'v2026\.[0-9]{3}\.[0-9]{4}' .github/workflows/pr-validator.yml   # 3 hits, all prose
$ grep -cE 'v2026\.[0-9]{3}\.[0-9]{4}' scripts/proof-engine-pin.sh ; echo "rc=$?"
0
rc=1
$ grep -rlI 'v2026\.313\.0209' . ; echo "rc=$?"
./.github/workflows/pr-validator.yml
rc=0

The live harness then proved the property behaviourally: it chose v2026.317.0159 as its "other" tag — a tag no version of this branch ever wrote down, because it resolves the pair at run time from the org pin and the previous release.

The RCA — and the missed control is mine again, one level down

  • Mechanism. Round 3 fixed the instance the verdict quoted and left the same claim standing in four other places: the correction was applied where it was read, not swept where it was written.
  • Missed control — the specific one. My round-3 pre-push pass checked the body against the verdict's quoted sentence, not against a grep for the claim. That is the same control the round-3 verdict itself named for the class count, so the miss is not "I read carelessly": it is that I did not convert the finding into a search after fixing its first occurrence.
  • Root fix, in this change. The sweep is performed and its result pasted; the corrected sentences sit where the claim lives (Summary, Files table, rule bullets) rather than in a round-4 addendum that a reader would have to reconcile. Round 4's section states which instances were wrong, so the record does not look like five independent typos.
  • Blast radius. Body-only. No criterion, threshold, timeout, model setting or check name changed; the gate is byte-identical to the head round 3 pushed, plus origin/main's 15 commits.

One gap this round FOUND and did not hide

The pre-push trailer audit over the published range (origin/main..HEAD) found that 8ee7454 — the head round 3 pushed — carries no Assisted-by: trailer. It is published, and the rulebook is explicit: a published gap is reported, not rewritten, because rewriting it needs a force-push. So it is reported here and on #285, and it is the one commit in the range without the trailer (0192f84, 09f2be9 and this round's merge all carry it).

What was re-measured on this head

  • The repo's own gate battery (.github/workflows/workflow-checks.yml, every run: line in the job's order): 18/18 PASS, zero warnings — including the three arms origin/main brings (reconcile-tag-on-merge-callers_tag_test.sh, backfill-missing-tags_test.sh, tag-on-merge-assert_test.sh), which a branch that had not been brought current would not have run.
  • The changed path LIVE, both directions — bash scripts/proof-engine-pin.sh: both live tags installed cleanly (v2026.313.0209, v2026.317.0159), the 504 → asset unreachable, 200-HTML → wrong-body, 404 → asset absent legs each named themselves with URL + status, and the gate step still exit 3.
  • The new coverage with its three negative controls: engine-pin-asset_test.sh PASS.
  • Disclosed instrument defect of my own, because it produced a false red: my first battery runner passed its label unquoted, so --self-test split into $2 and bash -c executed the literal --self-test — reporting FAIL rc=2 for two passing tests. Invoked exactly as the workflow invokes them, both pass (check-action-runtimes self-test: OK, governance-reconcile --self-test: all assertions passed). A rc=2 from a command that never ran is not a result, and I am not treating it as one.
  • Not re-run, and not claimed: the umbrella-rooted governance-reconcile.sh --root <umbrella> variant. The repo-rooted run is green; the umbrella's dotgithub gitlink still points at the pre-PR commit, so the two new rows go green there when that pin advances (producer-first).

T4 — stated, not asserted

A maintainer sign-off for this change exists on this thread: comment 6737201570, posted by @aitrawog, describing exactly this change set and naming the guardrails it leaves unchanged. It was given at head 0192f84 and was already held to cover the following round's head 09f2be9. This round posts no sign-off and does not declare the existing one transferable to this head — that is the gate's judgement, and a sign-off is never an agent's to post. If the verdict requires one scoped to b7a3999, it must come from the operator.

Next update

On this head's verdict.

Agent: pr-gate
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: b7a3999abed2d2c40bd6ac82a28a7fe5de81df52 (branch: feat/engine-pin-asset-probe)

Security screen: PASS — T4 sign-off valid: comment 6737201570 is posted by @aitrawog (maintainer set) and describes exactly this pr-validator.yml change set and the guardrails it leaves unchanged (fail-closed exit 3, INFRA exclusion from AI_REVIEW_AUTO_CLOSE_AFTER, required-check name, no fallback route, no new deps/secrets). The diff strengthens/preserves the gate. No scope mismatch, no exfiltration, no weakened guardrail.
Checklist: All applicable rules PASS or NA (R5 sweeps pasted and consistent; R2 duplication removed via shared lib-org.sh; R3 no gate retry/fallback; R10 coverage ships 6 discriminations + 3 negative controls, wired into workflow-checks.yml; tier fully tested and validated justified by the live+replay proof; placement CORRECT — org gate belongs in .github).

Comment dispositions:

  • 6735145751 (@aitrawog, STATUS) — verified-non-blocking: informational, consistent with body.
  • 6735178171 (@aitrawog, STATUS+RCA) — stale-superseded on T4: its "sign-off owed" is cured by 6737201570; the RCA stands.
  • 6735187224 (@aitrawog, STATUS) — verified-non-blocking: re-run report.
  • 6735208806 (github-actions[bot], prior BLOCK) — stale-superseded: sole block (T4 absent) cured by 6737201570.
  • 6735244488 (@aitrawog, STATUS+RCA) — verified-non-blocking: RCA + AGENTS.md fix present; sign-off since given.
  • 6737201570 (@aitrawog, T4 sign-off) — verified: valid maintainer-account sign-off; T4 satisfied.
  • 6737244684 (github-actions[bot], prior BLOCK at 09f2be9) — stale-superseded: all three findings resolved in the current diff (no return 0 in run_ensure; body now says "four" + else; stale Summary tag claim replaced with the grep-named measured state).
  • 6856166224 (@aitrawog, round-4 STATUS+RCA) — verified-non-blocking: round-3 findings fixed in-tree, fresh RCA names the missed control.

Non-blocking note: the Files-table descriptor calls the README section "the four classes" while the README diff names three (asset unreachable, asset absent, engine pin unresolvable); the dead-tag variant and the asset unreadable else-arm are not in README. The file is accounted for and its content is accurate — wording only, not a behavior gap. (The prior "three"→"four" undercount itself is resolved.)

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 13, 2026 14:46
@github-actions
github-actions Bot merged commit ecfd748 into main Nov 13, 2026
4 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 13, 2026
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS — landed, plus one correction to my own round-4 text that the PASS note caught, recorded rather than left standing.

Landing, measured. Head b7a3999abed2d2c40bd6ac82a28a7fe5de81df52 → ## Review — PASS → merged 2026-11-13T14:47:14Z as ecfd748ba8a3612eab35adc84896632338bd57f9; all three jobs of the required run 43445111897 completed green (validate / lint, validate / validate, validate / arm). The T4 sign-off was held to cover this head, as the round-4 comment said it would need to be if the gate so judged.

The note in the PASS is correct, and the error is mine. The verdict's non-blocking note says the Files table describes the README section as "the four classes" while the README diff names three. Measured on the merged main:

$ git show origin/main:README.md | sed -n '367,371p'
class it got instead of guessing at one. `asset unreachable — <url> answered HTTP <status>`
means GitHub's download path failed to serve the asset: the pin and the release are both
intact, so the remedy is a **re-run**, and moving the pin cannot help. `asset absent` means
the published release does not serve the asset (re-upload it, or move the pin). A tag with
no published release keeps the older `engine pin unresolvable` class.

Three operator-facing classes — asset unreachable, asset absent, engine pin unresolvable — and the asset unreadable else-arm is not in the README. So the correct descriptor for that row was three, and my round-4 sweep wrote four.

Why it happened, stated plainly, because it is the same defect the round existed to fix. The round-3 finding was "the body undercounts the gate's classes", and I fixed it by sweeping the count — but a count in a table row is a claim about that row's artifact, not about the gate. The gate has four classes; the README documents three of them. Generalizing the count across every instance checked that each sentence said the same number and skipped checking that each number was true of its own subject. The validator named it "wording only, not a behavior gap", and it is: the file is accounted for and its content is accurate — but the descriptor was wrong and I am not letting it stand as if it were right.

What follows from it. The merged CHANGELOG entry is generated from this body and is immutable history, so the false descriptor stays in that record; this comment is the correction attached to it. The substantive half is filed and is worth fixing: the README does not document the gate's fourth class, so an operator reading it would not know the asset unreadable remedy exists.

Agent: pr-gate
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant