lanes/av1pins r3: the four remaining untracked pins, and the class closed
Browse files at this commit9ca92c7ff767ea904a633b9b3474965985407bd9Parent: 6ff049e1 changed file +113 -0
- lanes/av1pins.report.md +113 -0
lanes/av1pins.report.mdmodified+113 -0
| @@ -322,3 +322,116 @@ a fourth untracked pin. These are the same defect and the same fix; recovering t | |||
| 322 | is mechanical from the r1 recipes (golden4 and golden7 are siblings of golden3 off | 322 | is mechanical from the r1 recipes (golden4 and golden7 are siblings of golden3 off |
| 323 | the cdf-forwarding gate). Left out of this commit to keep it a reason-removal, and | 323 | the cdf-forwarding gate). Left out of this commit to keep it a reason-removal, and |
| 324 | handed back rather than folded in silently. | 324 | handed back rather than folded in silently. |
| 325 | + | ||
| 326 | +--- | ||
| 327 | + | ||
| 328 | +# r3 — the four remaining untracked pins, and the class closed | ||
| 329 | + | ||
| 330 | +Branch `lane-av1pinslive`, rebased onto current main `eccbd6c6`. Commit `f99a5ff9`. | ||
| 331 | +Tests only, no decoder change, no push. | ||
| 332 | + | ||
| 333 | +r2 fixed two gates and handed back three siblings. All four untracked pins are now | ||
| 334 | +committed, three gates are live, and one earns a factual ignore. | ||
| 335 | + | ||
| 336 | +## 1. The pins — RECOVERED, not re-encoded | ||
| 337 | + | ||
| 338 | +| path | sha256 | size | | ||
| 339 | +|---|---|---| | ||
| 340 | +| `crates/ec-av1/fixtures/golden4-pin.obu` | `1754023e44e46edaebc2c05065bf1c65db1a41354577cbf71c0e8ebe737ae14a` | 137 B | | ||
| 341 | +| `crates/ec-av1/fixtures/golden6-mismatch.obu` | `c56909b98542192b03f3a945e153475aa57a58a1586bf166513297296cb225b3` | 452 B | | ||
| 342 | +| `crates/ec-av1/fixtures/golden7-forwarding-mismatch.obu` | `81b3bf657a85e95085287b30d97dee93ba5aea0ed1db1e1f4fcd19a06afc17be` | 152 B | | ||
| 343 | +| `crates/ec-av1/fixtures/lr-sgr-r7.obu` | `6b95b20e3377430ffae0b2ce86fad9502e0dedf13cd6c38ab7f5af4a8b21f33d` | 192 B | | ||
| 344 | + | ||
| 345 | +**`.gitignore` verified as Main described.** `main:.gitignore:12` is | ||
| 346 | +`!crates/*/fixtures/**` — a negation, so `git check-ignore -v` printing that line | ||
| 347 | +means NOT ignored. Confirmed by exit code and by the decisive test: a plain | ||
| 348 | +`git add crates/ec-av1/fixtures/<pin>` staged all four with no `-f`. | ||
| 349 | + | ||
| 350 | +**Recovered, not re-encoded — and the order matters for provenance.** I first | ||
| 351 | +reproduced golden4 and golden7 from the cdf-forwarding recipe (seeds 43–48, all of | ||
| 352 | +which decode exact) and captured golden6 through a throwaway harness built on the | ||
| 353 | +crate's own `panned_test_card` (the real recipe needs that Rust helper, not a | ||
| 354 | +lavfi source). Then I found the **original bytes still on the runner libraries** | ||
| 355 | +and fetched those instead. They are the actual historical mismatch witnesses; a | ||
| 356 | +re-encode is a different stream that happens to exercise the same path, and | ||
| 357 | +labelling it as the pin would be a false provenance claim. | ||
| 358 | + | ||
| 359 | +The originals also **self-validate**, which is the check a re-encode cannot pass: | ||
| 360 | +`pinned_golden7`'s committed doc records `non_last_ref_hits` delta=2 for this | ||
| 361 | +stream, and the recovered pin reproduces exactly `0->2` in a plain run. | ||
| 362 | + | ||
| 363 | +The throwaway capture harness was deleted before the commit (`grep -c zz_throwaway` | ||
| 364 | += 0). | ||
| 365 | + | ||
| 366 | +## 2. Three gates go live — same bar as r2 | ||
| 367 | + | ||
| 368 | +| gate | on main `eccbd6c6` | on branch, PLAIN run | | ||
| 369 | +|---|---|---| | ||
| 370 | +| `pinned_golden4_stream_decodes_pixel_exact` | ignored, not executed | **1 passed, 0 failed, 0 ignored, 0.11s** — prints `non_last_ref_hits before=0 after=1` | | ||
| 371 | +| `pinned_golden7_stream_decodes_pixel_exact` | ignored, not executed | **1 passed, 0 failed, 0 ignored, 0.10s** — prints `non_last_ref_hits before=0 after=2` | | ||
| 372 | +| `a_real_aomenc_stream_with_film_grain_decodes_pixel_exact` | **live and PANICKING** | **1 passed, 0 failed, 0 ignored, 0.10s** | | ||
| 373 | + | ||
| 374 | +None touches a process-global, none calls aomenc, and the counter each reads | ||
| 375 | +(`non_last_ref_hits`) is **printed, never asserted** — so there is no | ||
| 376 | +counter-race exposure to justify an ignore. `#[ignore]` in `stream.rs`: **41 → 37**. | ||
| 377 | + | ||
| 378 | +**The film-grain gate was the worst shape in the class and was already LIVE.** It | ||
| 379 | +read its pin through `concat!(env!("CARGO_MANIFEST_DIR"), "/../../fixtures/...")` | ||
| 380 | +and `.unwrap()` — the gitignored root, with no graceful skip. A clean checkout | ||
| 381 | +with no runner library **panics**, it does not skip. That shape can never be | ||
| 382 | +satisfied by a committed pin at all, which is exactly why it is now `crate_pin`. | ||
| 383 | + | ||
| 384 | +## 3. `require_pin` — the new shared shape | ||
| 385 | + | ||
| 386 | +```rust | ||
| 387 | +fn require_pin(path: &std::path::Path, name: &str) -> Vec<u8> { | ||
| 388 | + std::fs::read(path).unwrap_or_else(|e| panic!( | ||
| 389 | + "no pinned bytes at {} ({e}) -- set EC_AV1_GATE_DUMP_PIN to a freshly \ | ||
| 390 | + captured stream, or restore the committed copy at \ | ||
| 391 | + crates/ec-av1/fixtures/{name}", | ||
| 392 | + path.display() | ||
| 393 | + )) | ||
| 394 | +} | ||
| 395 | +``` | ||
| 396 | + | ||
| 397 | +A missing pin is a **hard failure naming the path and the generator**, never a raw | ||
| 398 | +io panic and never a silent skip. Those are the two shapes this class has taken | ||
| 399 | +(`golden4` skipped; the film-grain gate panicked), and both are now impossible. | ||
| 400 | + | ||
| 401 | +## 4. One gate stays ignored, on facts | ||
| 402 | + | ||
| 403 | +`pinned_lr_sgr_stream_call_unique_dump` — reason replaced with the two reasons that | ||
| 404 | +are still true: | ||
| 405 | + | ||
| 406 | +> `diagnostic only -- asserts nothing, so it cannot fail on a decode regression; | ||
| 407 | +> run with --ignored and EC_LR_CALL_DUMP=1 for the Sgrproj window` | ||
| 408 | + | ||
| 409 | +The fact: the body `eprintln!`s per-frame mismatch counts and **returns**. There is | ||
| 410 | +no `assert!` anywhere in it, so it cannot go red on a decode regression; | ||
| 411 | +un-ignoring it would add a test that reports pass unconditionally. Its pin is now | ||
| 412 | +committed too, so the old reason ("reads a pinned fixture under the gitignored | ||
| 413 | +fixtures dir") was false and is gone. Measured plain run under `--ignored` for the | ||
| 414 | +record: **1 passed, 0.10s**, `frame 0: y_mismatch=false u_mismatch=false | ||
| 415 | +v_mismatch=false`. | ||
| 416 | + | ||
| 417 | +**What would close it:** give it the pixel asserts its three siblings have (the | ||
| 418 | +compare loop is already there, it only prints), then un-ignore. That is a real | ||
| 419 | +change with a real verdict, so it is not folded in here. | ||
| 420 | + | ||
| 421 | +## 5. State | ||
| 422 | + | ||
| 423 | +`lane-av1pinslive`, three commits on top of `eccbd6c6`: `c7ea69c1` (r2 un-ignore), | ||
| 424 | +`f99a5ff9` (r3 siblings), plus report commits. `cargo check -p ec-av1 --all-targets` | ||
| 425 | +clean, no warnings. Meta-gates after the change: `gate_coverage` **10 passed**, | ||
| 426 | +`refusal_inventory` **15 passed**. r2's two gates re-verified green | ||
| 427 | +(1 passed, 0.15s each). Not pushed; main untouched. | ||
| 428 | + | ||
| 429 | +Not verified: a full `cargo test -p ec-av1` run (project-wide validation is | ||
| 430 | +Main's), and the remaining ignored set — now 37 tests, of which these four were | ||
| 431 | +the machine-local-pin population. | ||
| 432 | + | ||
| 433 | +The class rule this lane earns, in the shape Main is adopting as a batch rule: an | ||
| 434 | +`#[ignore]` reason must state a **fact** (what the gate needs, what it costs), never | ||
| 435 | +a **judgement** ("bisect aid", "not a suite gate"). A judgement cannot be checked | ||
| 436 | +against reality, so it cannot go stale loudly — and that is exactly how the r1 | ||
| 437 | +reason survived into a tree where it was false. | ||