run the golden7 behavioural half, and make the strict flip one character away
Browse files at this commitdb6f6f1c2ffd57d385af8abc4124c2cc7c020050Parent: d6a3cc02 changed files +32 -7
lanes/av1fixlib.report.mdmodified+24 -6
| @@ -116,13 +116,16 @@ All four are reported on every run; the count is always printed. | |||
| 116 | three regenerated pins land today. | 116 | three regenerated pins land today. |
| 117 | 4. **The pin-reading gate census** above, including the bare-directory verdict. | 117 | 4. **The pin-reading gate census** above, including the bare-directory verdict. |
| 118 | 118 | ||
| 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, |
| 120 | drift) decides the exit under `EC_REQUIRE_FIXTURES=1`. The four code-shape | 120 | drift) decides the exit under `EC_REQUIRE_FIXTURES=1`. The four code-shape |
| 121 | invariants fail only under `EC_FIXTURE_SHAPE_STRICT=1`. A shape violation is a | 121 | invariants fail only under `EC_FIXTURE_SHAPE_STRICT=1`. A shape violation is a |
| 122 | defect in a file this preflight does not own — two live sites in `crates/ec-av1` | 122 | defect in a file this preflight does not own — two live sites in `crates/ec-av1` |
| 123 | — and a batch that cannot start because another crate has two open lines helps | 123 | — and a batch that cannot start because another crate has two open lines helps |
| 124 | nobody. Nothing is hidden: the count is printed every run, the sites are named | 124 | 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. | ||
| 126 | 129 | ||
| 127 | ## 4. Proof | 130 | ## 4. Proof |
| 128 | 131 | ||
| @@ -200,10 +203,25 @@ That is the measured blind spot, not a sync failure. | |||
| 200 | a host asserts the committed value instead of recomputing what it cannot know. | 203 | a host asserts the committed value instead of recomputing what it cannot know. |
| 201 | - The recovered-pin self-validation has two halves. This script decides the hash | 204 | - The recovered-pin self-validation has two halves. This script decides the hash |
| 202 | half — every `recovered-original` row must hash to its recorded sha256, and a | 205 | 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 | 206 | + re-encode fails it. **The behavioural half now runs too:** |
| 204 | - `non_last_ref_hits` 0→2, recorded in the gate's own doc, and it is **not | 207 | + |
| 205 | - executed here**: `cargo test -p ec-av1 pinned_golden7` is the command, and | 208 | + ``` |
| 206 | - ec-av1 is owned elsewhere. That is the one claim in this report I did not run. | 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. | ||
| 207 | - `pinned_lr_sgr_stream_call_unique_dump` stays `#[ignore]`d for a true reason: | 225 | - `pinned_lr_sgr_stream_call_unique_dump` stays `#[ignore]`d for a true reason: |
| 208 | it prints per-frame mismatch counts and asserts nothing. | 226 | it prints per-frame mismatch counts and asserts nothing. |
| 209 | 227 | ||
scripts/verify-fixture-library.shmodified+8 -1
| @@ -52,8 +52,15 @@ ROOT=$(cd -- "$(dirname -- "$0")/.." && pwd) | |||
| 52 | MANIFEST=$ROOT/scripts/fixture-library.tsv | 52 | MANIFEST=$ROOT/scripts/fixture-library.tsv |
| 53 | FIXTURES=${EC_FIXTURES:-$ROOT/fixtures} | 53 | FIXTURES=${EC_FIXTURES:-$ROOT/fixtures} |
| 54 | REQUIRE=${EC_REQUIRE_FIXTURES:-0} | 54 | 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. | ||
| 56 | SHAPE=${EC_FIXTURE_SHAPE_STRICT:-0} | 58 | 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 | ||
| 57 | LINK_SCRIPT=$ROOT/scripts/link-fixtures.sh | 64 | LINK_SCRIPT=$ROOT/scripts/link-fixtures.sh |
| 58 | 65 | ||
| 59 | fail=0 | 66 | fail=0 |