forge
Explore
Log in

Don't you dare go Hollow

run the golden7 behavioural half, and make the strict flip one character away

Browse files at this commit

db6f6f1c2ffd57d385af8abc4124c2cc7c020050Ahmet Kaan GümüşParent: d6a3cc0
The gate RUNS and PASSES: non_last_ref_hits before=0 after=2, exactly the delta
its own doc records, reproduced by the recovered pin -- the self-validation a
re-encode cannot pass. It is live in the merged tree (no #[ignore]).

Two things worth writing down for whoever repeats the run: the shared
$HOME/.cache/cargo-target held a stale ec_av1 binary built from ANOTHER worktree
of the same package, and its panic named a line that does not exist in this
source; a lane-scoped CARGO_TARGET_DIR is required. And the substring filter
does not match, so --exact with the full test path does.

verify-fixture-library.sh now takes --strict as well as
EC_FIXTURE_SHAPE_STRICT=1, so the default can be flipped to fatal the moment the
last shape violation lands, with no other edit.
lanes/av1fixlib.report.mdmodified+24 -6
@@ -116,13 +116,16 @@ All four are reported on every run; the count is always printed.
116116 three regenerated pins land today.
117117 4. **The pin-reading gate census** above, including the bare-directory verdict.
118118
119-**Exit status is split, deliberately.** The LIBRARY verdict (mode i, mode ii,
119+**Exit status is split, deliberately, and the flip is one character away.** The LIBRARY verdict (mode i, mode ii,
120120 drift) decides the exit under `EC_REQUIRE_FIXTURES=1`. The four code-shape
121121 invariants fail only under `EC_FIXTURE_SHAPE_STRICT=1`. A shape violation is a
122122 defect in a file this preflight does not own — two live sites in `crates/ec-av1`
123123 — and a batch that cannot start because another crate has two open lines helps
124124 nobody. Nothing is hidden: the count is printed every run, the sites are named
125-every run, and one env var makes them fatal.
125+every run, and `--strict` (or `EC_FIXTURE_SHAPE_STRICT=1`) makes them fatal.
126+Measured exit codes: default 0 / renamed+set 1 / renamed+unset 0 / no-root 1 /
127+`--strict` 1. The default flips to fatal the moment the two `crates/ec-av1`
128+violations below are fixed; nothing else needs to change.
126129
127130 ## 4. Proof
128131
@@ -200,10 +203,25 @@ That is the measured blind spot, not a sync failure.
200203 a host asserts the committed value instead of recomputing what it cannot know.
201204 - The recovered-pin self-validation has two halves. This script decides the hash
202205 half — every `recovered-original` row must hash to its recorded sha256, and a
203- re-encode fails it. The behavioural half is `pinned_golden7`'s
204- `non_last_ref_hits` 0→2, recorded in the gate's own doc, and it is **not
205- executed here**: `cargo test -p ec-av1 pinned_golden7` is the command, and
206- ec-av1 is owned elsewhere. That is the one claim in this report I did not run.
206+ re-encode fails it. **The behavioural half now runs too:**
207+
208+ ```
209+ CARGO_TARGET_DIR=$HOME/.cache/cargo-target-av1fixlib EC_NOMEMGUARD=1 \
210+ cargo test -p ec-av1 --lib -- \
211+ --exact stream::tests::pinned_golden7_stream_decodes_pixel_exact \
212+ --include-ignored --nocapture
213+ non_last_ref_hits before=0 after=2
214+ test stream::tests::pinned_golden7_stream_decodes_pixel_exact ... ok
215+ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 745 filtered out
216+ ```
217+
218+ The recovered pin reproduces exactly the 0→2 its doc records — the
219+ self-validation a re-encode cannot pass. Two notes for whoever repeats it: the
220+ test is LIVE in the merged tree (no `#[ignore]`), so `--include-ignored` is
221+ belt-and-braces, and a lane-scoped `CARGO_TARGET_DIR` is REQUIRED — the shared
222+ `$HOME/.cache/cargo-target` held a stale `ec_av1` binary from another worktree
223+ of the same package, and its panic pointed at a line that does not exist in
224+ this source.
207225 - `pinned_lr_sgr_stream_call_unique_dump` stays `#[ignore]`d for a true reason:
208226 it prints per-frame mismatch counts and asserts nothing.
209227
scripts/verify-fixture-library.shmodified+8 -1
@@ -52,8 +52,15 @@ ROOT=$(cd -- "$(dirname -- "$0")/.." && pwd)
5252 MANIFEST=$ROOT/scripts/fixture-library.tsv
5353 FIXTURES=${EC_FIXTURES:-$ROOT/fixtures}
5454 REQUIRE=${EC_REQUIRE_FIXTURES:-0}
55-# Code-shape invariants fail only when explicitly made fatal.
55+# Code-shape invariants fail only when explicitly made fatal: `scripts/
56+# verify-fixture-library.sh --strict` or EC_FIXTURE_SHAPE_STRICT=1. The default
57+# flips to fatal when the last live violation is fixed.
5658 SHAPE=${EC_FIXTURE_SHAPE_STRICT:-0}
59+# `--strict` on the command line is the same switch, so the default can be
60+# flipped with a one-character edit the moment the last shape violation lands.
61+case " $* " in
62+ *" --strict "*) SHAPE=1 ;;
63+esac
5764 LINK_SCRIPT=$ROOT/scripts/link-fixtures.sh
5865
5966 fail=0