forge
Explore
Log in

Don't you dare go Hollow

Merge lane-av1pins @ 44a05b40 — three recovered pins committed under the crate + gate rewiring

Browse files at this commit

3ad7999e154b44b1cb9232316aabdef8bd6214d5Ahmet Kaan GümüşParent: 5a803213fcf42f
- crates/ec-av1/fixtures/golden3-pin.obu (159 B),
  ll444-lossless-key.obu (7845 B) and sbpart-pin.obu (238 B): pins recovered
  from a scratchpad tmpfs reaps, now travelling with the repo.
- crates/ec-av1/src/stream.rs: new helper `crate_pin(name)` resolves
  `crates/ec-av1/fixtures/<name>` first and falls back to `pin_dir()`;
  pinned_golden3_stream_decodes_pixel_exact and
  pinned_sbpart_stream_decodes_pixel_exact read through it and assert a frame
  count match against ffmpeg before zipping; the two 1:4 gates' stale blocker
  comment is corrected (the pixel blocker is gone, the RECIPE never fires).
- lanes/av1pins.report.md.

Conflict resolved in stream.rs: the two lanes made COMPETING edits to the same
arm of a_real_aomenc_lossless_444_key_frame_decodes_sample_exact.
  ours (lane-av1skipfix): read the pin from the gitignored root `fixtures/`
    via `pin_dir()`, with an opt-in EC_REQUIRE_FIXTURES / EC_AV1_REQUIRE_AOMENC
    hard fail.
  theirs (lane-av1pins): read the pin that this same merge COMMITS, via
    `crate_pin()`, but with a bare SKIP.
Resolution = theirs' provenance and committed-pin path, plus ours' no-silent-
green intent made unconditional: the committed pin is read through
`CARGO_MANIFEST_DIR` and a missing file PANICS with the regeneration recipe,
which is strictly stronger than the opt-in env fail (there is no environment
left to escape). Not `@both` -- the two sides are the same statement.
crates/ec-av1/fixtures/golden3-pin.obuadded+0 -0

Binary file changed

crates/ec-av1/fixtures/ll444-lossless-key.obuadded+0 -0

Binary file changed

crates/ec-av1/fixtures/sbpart-pin.obuadded+0 -0

Binary file changed

crates/ec-av1/src/stream.rsmodified+159 -84
@@ -6492,41 +6492,36 @@ pub(crate) mod tests {
6492 eprintln!("SKIP {NAME}: no ffmpeg");6492 eprintln!("SKIP {NAME}: no ffmpeg");
6493 return;6493 return;
6494 }6494 }
6495- // lane-av1skipfix: this arm used to be a bare SKIP, so on any box6495+ // lane-av1pins: committed at crates/ec-av1/fixtures/ll444-lossless-key.obu
6496- // without the pin (the root `fixtures/` directory is GITIGNORED --6496+ // (7845 bytes; sha256
6497- // `.gitignore:2` -- so a fresh clone, and every linked worktree, can6497+ // f496ef0a1171c2bc66d411cc60db05db547dcdb49cd834d4e0543de9db441374),
6498- // never have it) the gate reported green having decoded nothing.6498+ // re-encoded 2026-09-29 from the recipe this very SKIP line records --
6499- // `EC_REQUIRE_FIXTURES=1` -- the repo-wide fixture env, same as the6499+ // `testsrc2 128x96` yuv444p 6 frames, aomenc --profile=1 --lossless=1
6500- // ec-h264/ec-flac/ec-opus conformance gates -- or this crate's own6500+ // --enable-palette=0 --enable-intrabc=0 --bit-depth=8 --cpu-used=0
6501- // `EC_AV1_REQUIRE_AOMENC=1` turns it into a hard failure naming the6501+ // --threads=1 --row-mt=0 --lag-in-frames=0 --kf-max-dist=100, --limit=1
6502- // missing pin, the exact regeneration recipe and the6502+ // so the key frame's OBUs are the whole stream (no OBU surgery needed).
6503- // `EC_AV1_PIN_DIR` override, so a batch run cannot report green off it.6503+ //
6504- let pin = pin_dir().join("ll444-lossless-key.obu");6504+ // lane-av1skipfix: reading the pin from the GITIGNORED root
6505- let stream = match std::fs::read(&pin) {6505+ // `fixtures/` (`pin_dir()`) is what made this gate report green having
6506- Ok(stream) => stream,6506+ // decoded nothing -- a fresh clone, and every linked worktree, can
6507- Err(e) => {6507+ // never have that directory. The pin is now COMMITTED under the crate
6508- assert!(6508+ // (the home the other pins use) and read through `CARGO_MANIFEST_DIR`,
6509- std::env::var_os("EC_REQUIRE_FIXTURES").is_none()6509+ // so a missing file is a REPO DEFECT and fails unconditionally: there
6510- && std::env::var_os("EC_AV1_REQUIRE_AOMENC").is_none(),6510+ // is no environment left to escape, which is strictly stronger than
6511- "{NAME}: the pinned 4:4:4 lossless key frame is missing at {} ({e}). \6511+ // the `EC_REQUIRE_FIXTURES` / `EC_AV1_REQUIRE_AOMENC` opt-in hard
6512- This gate would prove nothing. A worktree has no gitignored root \6512+ // fail this arm used to carry.
6513- `fixtures/`: run scripts/link-fixtures.sh. No script generates this \6513+ let pin = crate_pin("ll444-lossless-key.obu");
6514- pin -- regenerate it with `testsrc2 128x96` yuv444p 6 frames, aomenc \6514+ let stream = std::fs::read(&pin).unwrap_or_else(|e| {
6515- --profile=1 --lossless=1 --enable-palette=0 --enable-intrabc=0, cut to \6515+ panic!(
6516- the key frame's OBUs -- or point EC_AV1_PIN_DIR at a directory that has it.",6516+ "{NAME}: the pinned 4:4:4 lossless key frame is missing at {} ({e}). A \
6517- pin.display()6517+ COMMITTED pin that is absent is a repo defect and this gate would prove \
6518- );6518+ nothing. No script generates it -- regenerate it with `testsrc2 128x96` \
6519- eprintln!(6519+ yuv444p 6 frames, aomenc --profile=1 --lossless=1 --enable-palette=0 \
6520- "SKIP {NAME}: no pinned bytes at {} ({e}) -- this gate decoded nothing \6520+ --enable-intrabc=0 --bit-depth=8 --cpu-used=0 --threads=1 --row-mt=0 \
6521- and proves nothing; run scripts/link-fixtures.sh, or regenerate with \6521+ --lag-in-frames=0 --kf-max-dist=100 --limit=1, and commit the result.",
6522- `testsrc2 128x96` yuv444p 6 frames, aomenc --profile=1 --lossless=1 \6522+ pin.display()
6523- --enable-palette=0 --enable-intrabc=0, cut to the key frame's OBUs \6523+ )
6524- (or set EC_REQUIRE_FIXTURES=1 to make this a failure).",6524+ });
6525- pin.display()
6526- );
6527- return;
6528- }
6529- };
6530 // Blindness guard: the pinned fixture must really be a lossless frame.6525 // Blindness guard: the pinned fixture must really be a lossless frame.
6531 let mut parser = Av1Parser::new();6526 let mut parser = Av1Parser::new();
6532 let mut pos = 0usize;6527 let mut pos = 0usize;
@@ -8991,6 +8986,23 @@ pub(crate) mod tests {
8991 .unwrap_or_else(|_| std::path::PathBuf::from("fixtures"))8986 .unwrap_or_else(|_| std::path::PathBuf::from("fixtures"))
8992 }8987 }
8993 8988
8989+ /// A COMMITTED pin: `crates/ec-av1/fixtures/<name>`, which travels in the
8990+ /// tarball and is therefore present on every runner. `pin_dir()` resolves
8991+ /// to the gitignored root `fixtures/`, so a pin written there is lost when
8992+ /// the machine's scratchpad is reaped -- three gates sat at `rc=0` having
8993+ /// tested nothing for exactly that reason (lane-av1pins). Falls back to
8994+ /// `pin_dir()` so a locally re-captured stream still overrides.
8995+ fn crate_pin(name: &str) -> std::path::PathBuf {
8996+ let in_crate = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"))
8997+ .join("fixtures")
8998+ .join(name);
8999+ if in_crate.is_file() {
9000+ in_crate
9001+ } else {
9002+ pin_dir().join(name)
9003+ }
9004+ }
9005+
8994 fn have_aomenc() -> bool {9006 fn have_aomenc() -> bool {
8995 let present = aomenc_path().is_file();9007 let present = aomenc_path().is_file();
8996 assert!(9008 assert!(
@@ -23443,19 +23455,33 @@ pub(crate) mod tests {
23443 /// `EC_AV1_GATE_DUMP=$SP/golden3-pin.obu` off23455 /// `EC_AV1_GATE_DUMP=$SP/golden3-pin.obu` off
23444 /// [`a_real_aomenc_inter_sequence_with_cdf_forwarding_decodes_pixel_exact`]23456 /// [`a_real_aomenc_inter_sequence_with_cdf_forwarding_decodes_pixel_exact`]
23445 /// (seed 47, frame 1 U). Deterministic and static -- no aomenc/ffmpeg23457 /// (seed 47, frame 1 U). Deterministic and static -- no aomenc/ffmpeg
23446- /// re-encode involved, only re-decodes the fixed bytes on disk, so it is23458+ /// re-encode involved, only re-decodes fixed bytes on disk. Still
23447- /// `#[ignore]`d (the file only exists on this machine's scratchpad) but23459+ /// `#[ignore]`d: it is a BISECT aid, not a suite gate. What changed under
23448- /// gives a fast red/green loop for the actual fix.23460+ /// lane-av1pins is WHERE the bytes live -- they are now committed at
23449- #[test]23461+ /// `crates/ec-av1/fixtures/golden3-pin.obu` instead of a scratchpad that
23450- #[ignore = "reads a pinned fixture path outside the repo; run manually"]23462+ /// tmpfs reaps, so the gate does real work on any runner.
23463+ ///
23464+ /// The original capture (2026-08-28, `bec27414`) is NOT reproducible: it
23465+ /// predates `5ae053d3` "route all 20 gradients gate fixtures through
23466+ /// seed-derived colours", so `gradients_source` still left c4..c7 to
23467+ /// ffmpeg's `random` default then. This is a FRESH capture from the same
23468+ /// recipe family at seed 42, which IS byte-reproducible now: the command is
23469+ /// in `lanes/av1pins.report.md`, and the stream's FNV-1a-64
23470+ /// (`89c4089148d51c04`; 159 bytes; sha256
23471+ /// `11c9d5331cffa6614c8265ad5fa685d5ce9155db8439949b48ec4a652ace95cf`) is
23472+ /// the `stream_hash` the live
23473+ /// `a_real_aomenc_inter_sequence_with_cdf_forwarding_decodes_pixel_exact`
23474+ /// prints for that seed -- which is what proves the recipe is that gate's.
23475+ #[test]
23476+ #[ignore = "bisect aid, not a suite gate; run it with --ignored"]
23451 fn pinned_golden3_stream_decodes_pixel_exact() {23477 fn pinned_golden3_stream_decodes_pixel_exact() {
23452 let path = std::env::var("EC_AV1_GATE_DUMP_PIN")23478 let path = std::env::var("EC_AV1_GATE_DUMP_PIN")
23453 .map(std::path::PathBuf::from)23479 .map(std::path::PathBuf::from)
23454- .unwrap_or_else(|_| pin_dir().join("golden3-pin.obu"));23480+ .unwrap_or_else(|_| crate_pin("golden3-pin.obu"));
23455 let Ok(stream) = std::fs::read(&path) else {23481 let Ok(stream) = std::fs::read(&path) else {
23456 eprintln!(23482 eprintln!(
23457 "SKIP pinned_golden3_stream_decodes_pixel_exact: no pinned bytes at {} \23483 "SKIP pinned_golden3_stream_decodes_pixel_exact: no pinned bytes at {} \
23458- -- re-capture with EC_AV1_GATE_DUMP off the cdf-forwarding gate",23484+ -- the committed copy is crates/ec-av1/fixtures/golden3-pin.obu",
23459 path.display()23485 path.display()
23460 );23486 );
23461 return;23487 return;
@@ -23466,11 +23492,25 @@ pub(crate) mod tests {
23466 }23492 }
23467 let frames = decode_stream(&stream).expect("pinned stream must decode");23493 let frames = decode_stream(&stream).expect("pinned stream must decode");
23468 let ffmpeg_frames = ffmpeg_decode_sequence(&stream, 64, 64, 4);23494 let ffmpeg_frames = ffmpeg_decode_sequence(&stream, 64, 64, 4);
23495+ assert_eq!(
23496+ frames.len(),
23497+ ffmpeg_frames.len(),
23498+ "pinned stream decoded {} frames, ffmpeg {} -- a length mismatch would \
23499+ make the zip below compare a mis-paired set",
23500+ frames.len(),
23501+ ffmpeg_frames.len()
23502+ );
23469 for (i, (got, want)) in frames.iter().zip(&ffmpeg_frames).enumerate() {23503 for (i, (got, want)) in frames.iter().zip(&ffmpeg_frames).enumerate() {
23470 assert_eq!(got.y, want.y, "frame {i} luma vs ffmpeg (pinned)");23504 assert_eq!(got.y, want.y, "frame {i} luma vs ffmpeg (pinned)");
23471 assert_eq!(got.u, want.u, "frame {i} U vs ffmpeg (pinned)");23505 assert_eq!(got.u, want.u, "frame {i} U vs ffmpeg (pinned)");
23472 assert_eq!(got.v, want.v, "frame {i} V vs ffmpeg (pinned)");23506 assert_eq!(got.v, want.v, "frame {i} V vs ffmpeg (pinned)");
23473 }23507 }
23508+ eprintln!(
23509+ "pinned_golden3_stream_decodes_pixel_exact: {} frame(s) byte-exact vs ffmpeg \
23510+ from {}",
23511+ frames.len(),
23512+ path.display()
23513+ );
23474 }23514 }
23475 23515
23476 /// lane-av1golden4: reproduces the pinned mismatch bytes captured by23516 /// lane-av1golden4: reproduces the pinned mismatch bytes captured by
@@ -39177,16 +39217,27 @@ pub(crate) mod tests {
39177 /// aomenc/ffmpeg re-encode), same pattern as `pinned_golden3/4_stream_39217 /// aomenc/ffmpeg re-encode), same pattern as `pinned_golden3/4_stream_
39178 /// decodes_pixel_exact` -- fast red/green loop for the bisect, and lets39218 /// decodes_pixel_exact` -- fast red/green loop for the bisect, and lets
39179 /// `EC_AV1_TRACE=1` be set for one run without re-driving the encoder.39219 /// `EC_AV1_TRACE=1` be set for one run without re-driving the encoder.
39180- #[test]39220+ ///
39181- #[ignore = "reads a pinned fixture path outside the repo; run manually"]39221+ /// lane-av1pins: the bytes are now committed at
39222+ /// `crates/ec-av1/fixtures/sbpart-pin.obu` (238 bytes; sha256
39223+ /// `62238fc077f45d89745d4d254b9c0465464003529da3b42d0a65631fbb7e16e9`),
39224+ /// re-encoded 2026-09-29 from the source gate's own recipe
39225+ /// (`a_real_aomenc_stream_with_rect_screen_content_decodes_pixel_exact`:
39226+ /// smptebars 192x128, single frame, `--sb-size=64 --enable-palette=1
39227+ /// --min-partition-size=16 --max-partition-size=64`, cq=55). The command
39228+ /// is in `lanes/av1pins.report.md`. That gate's source list has no
39229+ /// 192x128 cell, so this pin is a 192x128 re-run of its recipe, not a
39230+ /// replay of the original mismatch bytes.
39231+ #[test]
39232+ #[ignore = "bisect aid, not a suite gate; run it with --ignored"]
39182 fn pinned_sbpart_stream_decodes_pixel_exact() {39233 fn pinned_sbpart_stream_decodes_pixel_exact() {
39183 let path = std::env::var("EC_AV1_GATE_DUMP_PIN")39234 let path = std::env::var("EC_AV1_GATE_DUMP_PIN")
39184 .map(std::path::PathBuf::from)39235 .map(std::path::PathBuf::from)
39185- .unwrap_or_else(|_| pin_dir().join("sbpart-pin.obu"));39236+ .unwrap_or_else(|_| crate_pin("sbpart-pin.obu"));
39186 let Ok(stream) = std::fs::read(&path) else {39237 let Ok(stream) = std::fs::read(&path) else {
39187 eprintln!(39238 eprintln!(
39188 "SKIP pinned_sbpart_stream_decodes_pixel_exact: no pinned bytes at {} \39239 "SKIP pinned_sbpart_stream_decodes_pixel_exact: no pinned bytes at {} \
39189- -- re-capture with EC_AV1_GATE_DUMP off the sbpart gate",39240+ -- the committed copy is crates/ec-av1/fixtures/sbpart-pin.obu",
39190 path.display()39241 path.display()
39191 );39242 );
39192 return;39243 return;
@@ -39197,6 +39248,14 @@ pub(crate) mod tests {
39197 }39248 }
39198 let frames = decode_stream(&stream).expect("pinned stream must decode");39249 let frames = decode_stream(&stream).expect("pinned stream must decode");
39199 let ffmpeg_frames = ffmpeg_decode_sequence(&stream, 192, 128, 1);39250 let ffmpeg_frames = ffmpeg_decode_sequence(&stream, 192, 128, 1);
39251+ assert_eq!(
39252+ frames.len(),
39253+ ffmpeg_frames.len(),
39254+ "pinned stream decoded {} frames, ffmpeg {} -- a length mismatch would \
39255+ make the zip below compare a mis-paired set",
39256+ frames.len(),
39257+ ffmpeg_frames.len()
39258+ );
39200 let (width, height) = (192usize, 128usize);39259 let (width, height) = (192usize, 128usize);
39201 for (i, (got, want)) in frames.iter().zip(&ffmpeg_frames).enumerate() {39260 for (i, (got, want)) in frames.iter().zip(&ffmpeg_frames).enumerate() {
39202 if std::env::var_os("EC_SBPART_DIAG").is_some() {39261 if std::env::var_os("EC_SBPART_DIAG").is_some() {
@@ -41791,25 +41850,33 @@ pub(crate) mod tests {
41791 #[test]41850 #[test]
41792 // r1 `#[ignore]`d this gate on "every stream with an intra 1:4 strip also41851 // r1 `#[ignore]`d this gate on "every stream with an intra 1:4 strip also
41793 // hits the inter rect-strip refusal". r2 merged main 18bf7dc (lane-r1441852 // hits the inter rect-strip refusal". r2 merged main 18bf7dc (lane-r14
41794- // a2e2e29 lifts exactly that refusal) and re-ran it: 3 of 40 attempts now41853+ // a2e2e29 lifts exactly that refusal) and re-ran it: 3 of 40 attempts
41795- // decode whole and reach the pixel compare (0 before), one of them firing41854+ // decode whole and reach the pixel compare (0 before), one firing
41796- // 64x16=4 16x64=3. But the compare fails on a defect this lane does not41855+ // 64x16=4 16x64=3 -- and the compare FAILED on an unowned inter-frame
41797- // own -- MEASURED (r2, $HOME/.cache/intra14-r2-*.log):41856+ // defect (mandelbrot 192x128, luma ~3.7-4.5k samples on frames 3/4
41798- // * seeds 46 and 54 fire ZERO 1:4 strips (`intra_rect4_strip_in_inter_hits`41857+ // drifting to ~24k, max |d| ~220 on frames 5-7).
41799- // delta 0/0/0/0) and mismatch ffmpeg the same way as the firing seed 52:41858+ //
41800- // decode-order frame 3/4 luma ~3.7-4.5k samples, max |d| 6..17, then41859+ // lane-av1pins RE-RAN this gate in RELEASE on a21f3680 (the seven-lane
41801- // frames 5-7 drift to ~24k samples, max |d| ~220 as the references41860+ // merged tree) and BOTH halves of that r2 record are now stale:
41802- // carry the error forward.41861+ // * THE PIXEL BLOCKER IS GONE. The gate's own tally reads
41803- // * with `--enable-1to4-partitions=0` aomenc emits a BYTE-IDENTICAL41862+ // `counted-exact=0 uncounted-exact=40 named-refusals=0 (attempts 40)`
41804- // stream at this recipe (same hits, same per-frame diff counts), so41863+ // at both bit depths, and there is NOT ONE mismatch line anywhere in
41805- // the 1:4 shape is not the discriminator either.41864+ // the full run log -- no frame 3/4 luma counts, no max |d|, no drift.
41806- // i.e. this mandelbrot 192x128 source has a pre-existing INTER-frame41865+ // 40/40 streams now compare pixel-exact. (The 10-bit arm is identical:
41807- // pixel defect on this tree (r1 already recorded it as "open, NOT mine"41866+ // same 40/40, same zero-mismatch log.)
41808- // with rect partitions off; it is now this gate's blocker). testsrc2 at41867+ // * THE RECIPE NO LONGER FIRES THE FEATURE. Every one of the 42
41809- // 192x128 decodes pixel-exact on the same recipe but fires no 1:4 strip41868+ // counted attempts reads `64x16=0 16x64=0 32x8=0 8x32=0`. The gate has
41810- // in 4 of 12 attempts that decode whole. So the gate stays `#[ignore]`d41869+ // regressed from r2's "fires sometimes, compare fails" to "never
41811- // rather than weakened: a source whose baseline is exact AND that fires41870+ // fires", so the assertion now trips on its non-vacuity precondition
41812- // an intra 1:4 strip has not been found yet.41871+ // (stream.rs:40653) rather than on any pixel.
41872+ // So the reason these gates stay `#[ignore]`d is the RECIPE, exactly as
41873+ // the `#[ignore]` string says -- NOT the mandelbrot defect, which the
41874+ // string never claimed and which is no longer reproducing. Kept ignored
41875+ // rather than un-ignored: a source whose baseline is exact AND that fires
41876+ // a 32-level intra 1:4 strip in an inter frame still does not exist.
41877+ // (Corrected 2026-09-29: the comment above previously recorded the r2
41878+ // state and would have had a reader re-filing these as blocked on the
41879+ // mandelbrot defect, which is wrong on this tree.)
41813 #[ignore = "gate recipe never fires the feature (40/40 streams pixel-exact); needs a recipe that produces a 32-level intra 1:4 strip in an inter frame -- class gate-blind-to-feature"]41880 #[ignore = "gate recipe never fires the feature (40/40 streams pixel-exact); needs a recipe that produces a 32-level intra 1:4 strip in an inter frame -- class gate-blind-to-feature"]
41814 fn a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact() {41881 fn a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact() {
41815 intra_rect4_in_inter_gate(8);41882 intra_rect4_in_inter_gate(8);
@@ -41819,25 +41886,33 @@ pub(crate) mod tests {
41819 #[test]41886 #[test]
41820 // r1 `#[ignore]`d this gate on "every stream with an intra 1:4 strip also41887 // r1 `#[ignore]`d this gate on "every stream with an intra 1:4 strip also
41821 // hits the inter rect-strip refusal". r2 merged main 18bf7dc (lane-r1441888 // hits the inter rect-strip refusal". r2 merged main 18bf7dc (lane-r14
41822- // a2e2e29 lifts exactly that refusal) and re-ran it: 3 of 40 attempts now41889+ // a2e2e29 lifts exactly that refusal) and re-ran it: 3 of 40 attempts
41823- // decode whole and reach the pixel compare (0 before), one of them firing41890+ // decode whole and reach the pixel compare (0 before), one firing
41824- // 64x16=4 16x64=3. But the compare fails on a defect this lane does not41891+ // 64x16=4 16x64=3 -- and the compare FAILED on an unowned inter-frame
41825- // own -- MEASURED (r2, $HOME/.cache/intra14-r2-*.log):41892+ // defect (mandelbrot 192x128, luma ~3.7-4.5k samples on frames 3/4
41826- // * seeds 46 and 54 fire ZERO 1:4 strips (`intra_rect4_strip_in_inter_hits`41893+ // drifting to ~24k, max |d| ~220 on frames 5-7).
41827- // delta 0/0/0/0) and mismatch ffmpeg the same way as the firing seed 52:41894+ //
41828- // decode-order frame 3/4 luma ~3.7-4.5k samples, max |d| 6..17, then41895+ // lane-av1pins RE-RAN this gate in RELEASE on a21f3680 (the seven-lane
41829- // frames 5-7 drift to ~24k samples, max |d| ~220 as the references41896+ // merged tree) and BOTH halves of that r2 record are now stale:
41830- // carry the error forward.41897+ // * THE PIXEL BLOCKER IS GONE. The gate's own tally reads
41831- // * with `--enable-1to4-partitions=0` aomenc emits a BYTE-IDENTICAL41898+ // `counted-exact=0 uncounted-exact=40 named-refusals=0 (attempts 40)`
41832- // stream at this recipe (same hits, same per-frame diff counts), so41899+ // at both bit depths, and there is NOT ONE mismatch line anywhere in
41833- // the 1:4 shape is not the discriminator either.41900+ // the full run log -- no frame 3/4 luma counts, no max |d|, no drift.
41834- // i.e. this mandelbrot 192x128 source has a pre-existing INTER-frame41901+ // 40/40 streams now compare pixel-exact. (The 10-bit arm is identical:
41835- // pixel defect on this tree (r1 already recorded it as "open, NOT mine"41902+ // same 40/40, same zero-mismatch log.)
41836- // with rect partitions off; it is now this gate's blocker). testsrc2 at41903+ // * THE RECIPE NO LONGER FIRES THE FEATURE. Every one of the 42
41837- // 192x128 decodes pixel-exact on the same recipe but fires no 1:4 strip41904+ // counted attempts reads `64x16=0 16x64=0 32x8=0 8x32=0`. The gate has
41838- // in 4 of 12 attempts that decode whole. So the gate stays `#[ignore]`d41905+ // regressed from r2's "fires sometimes, compare fails" to "never
41839- // rather than weakened: a source whose baseline is exact AND that fires41906+ // fires", so the assertion now trips on its non-vacuity precondition
41840- // an intra 1:4 strip has not been found yet.41907+ // (stream.rs:40653) rather than on any pixel.
41908+ // So the reason these gates stay `#[ignore]`d is the RECIPE, exactly as
41909+ // the `#[ignore]` string says -- NOT the mandelbrot defect, which the
41910+ // string never claimed and which is no longer reproducing. Kept ignored
41911+ // rather than un-ignored: a source whose baseline is exact AND that fires
41912+ // a 32-level intra 1:4 strip in an inter frame still does not exist.
41913+ // (Corrected 2026-09-29: the comment above previously recorded the r2
41914+ // state and would have had a reader re-filing these as blocked on the
41915+ // mandelbrot defect, which is wrong on this tree.)
41841 #[ignore = "gate recipe never fires the feature (40/40 streams pixel-exact); needs a recipe that produces a 32-level intra 1:4 strip in an inter frame -- class gate-blind-to-feature"]41916 #[ignore = "gate recipe never fires the feature (40/40 streams pixel-exact); needs a recipe that produces a 32-level intra 1:4 strip in an inter frame -- class gate-blind-to-feature"]
41842 fn a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact_10bit() {41917 fn a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact_10bit() {
41843 intra_rect4_in_inter_gate(10);41918 intra_rect4_in_inter_gate(10);
lanes/av1pins.report.mdadded+204 -0
@@ -0,0 +1,204 @@
1+# lane-av1pins — recover three lost pins, correct a stale blocker comment, measure the mandelbrot claim
2+
3+Branch `lane-av1pins`, worktree `~/.cache/wt/av1pins`, base `a21f3680` (the merged
4+seven-lane main). Comment, fixture and test changes only — **no decoder logic**.
5+Commits: `78c805bd` (pins + gate rewiring + comment correction), plus this report.
6+
7+The headline is that the third of those reversed my own prior conclusion: the
8+mandelbrot blocker is measurably **cleared**, and the comment that recorded it as
9+the live blocker was the stale artefact, not the `#[ignore]` string.
10+
11+---
12+
13+## 0. The root cause, which is structural and not per-pin
14+
15+`.gitignore:2` is a bare `fixtures`, which git matches at **any depth** — so it
16+covers `crates/ec-av1/fixtures/` too, not just the root. The 48 pins already
17+tracked there were force-added. Any *new* pin therefore has to be `git add -f`'d
18+or it is silently uncommittable, and any pin written to the root `fixtures/` is
19+uncommittable by construction.
20+
21+`pin_dir()` resolves to the root (`../../fixtures`, gitignored), which is where
22+all three dead pins were written. `lanes/av1skipfix.report.md` had already
23+recorded this and had listed exactly these three as "missing on this box". So the
24+diagnosis predates this lane; what was missing was the recovery.
25+
26+The fix is `crate_pin(name)` (`crates/ec-av1/src/stream.rs:8670`): prefer the
27+committed `crates/ec-av1/fixtures/<name>`, fall back to `pin_dir()` so a locally
28+re-captured stream still overrides. The committed copy is what runs by default.
29+
30+---
31+
32+## 1. Recovered pins
33+
34+| path | sha256 | size |
35+|---|---|---|
36+| `crates/ec-av1/fixtures/golden3-pin.obu` | `11c9d5331cffa6614c8265ad5fa685d5ce9155db8439949b48ec4a652ace95cf` | 159 B |
37+| `crates/ec-av1/fixtures/sbpart-pin.obu` | `62238fc077f45d89745d4d254b9c0465464003529da3b42d0a65631fbb7e16e9` | 238 B |
38+| `crates/ec-av1/fixtures/ll444-lossless-key.obu` | `f496ef0a1171c2bc66d411cc60db05db547dcdb49cd834d4e0543de9db441374` | 7845 B |
39+
40+All three from `aomenc` (`~/.cache/aom-oracle/build/aomenc`), all `--threads=1 --row-mt=0`.
41+
42+### golden3-pin.obu — FRESH capture, with a numeric tie to its source gate
43+
44+Source: `gradients_source(42, 64, 64, "duration=0.16:rate=25")` (c0..c3 from the
45+crate's `hash_color`, `seed=42` passed through) via ffmpeg `-pix_fmt yuv420p -f
46+yuv4mpegpipe`; then aomenc:
47+
48+ --codec=av1 --passes=1 --end-usage=q --cq-level=55 --cpu-used=0
49+ --lag-in-frames=0 --auto-alt-ref=0 --kf-max-dist=1000 --threads=1 --row-mt=0
50+ --enable-order-hint=0 --enable-warped-motion=0 --enable-obmc=0
51+ --enable-masked-comp=0 --enable-interintra-comp=0 --enable-dist-wtd-comp=0
52+ --enable-diff-wtd-comp=0 --enable-onesided-comp=0 --enable-interintra-wedge=0
53+ --enable-smooth-interintra=0 --enable-rect-partitions=0 --enable-ab-partitions=0
54+ --enable-1to4-partitions=0 --enable-filter-intra=0 --enable-smooth-intra=0
55+ --enable-paeth-intra=0 --enable-directional-intra=0 --enable-angle-delta=0
56+ --enable-tx-size-search=0 --enable-cdef=0 --enable-restoration=0
57+ --max-partition-size=32 --enable-palette=0 --enable-intrabc=0
58+ --enable-cfl-intra=0 --enable-ref-frame-mvs=0 --obu
59+
60+The tie to the source gate is a number, not a claim. The live
61+`a_real_aomenc_inter_sequence_with_cdf_forwarding_decodes_pixel_exact` prints
62+`cdfflake attempt seed=42: ... stream_hash=89c4089148d51c04 ...`. This re-encode's
63+FNV-1a-64 is **`89c4089148d51c04`** — identical, same 159 bytes.
64+
65+**Fresh capture, not a replay; the original is unrecoverable.** The original was
66+taken at `bec27414` (2026-08-28); `gradients_source` only became byte-reproducible
67+at `5ae053d3` (2026-08-30). `git merge-base --is-ancestor bec27414 5ae053d3` is
68+true, so at capture time the source left `c4..c7` to ffmpeg's `random` default —
69+those bytes cannot be regenerated by any re-encode. What is recovered is a
70+same-family stream the gate decodes and compares exact. The gate's doc comment
71+says so, so nobody later reads it as a replay.
72+
73+### sbpart-pin.obu — FRESH capture from the source gate's recipe
74+
75+`smptebars=size=192x128:rate=25`, `-t 0.04 -pix_fmt yuv420p -f yuv4mpegpipe`, then
76+
77+ aomenc --codec=av1 --passes=1 --end-usage=q --cq-level=55 --cpu-used=4
78+ --threads=1 --row-mt=0 --sb-size=64 --enable-palette=1
79+ --min-partition-size=16 --max-partition-size=64 --obu
80+
81+The source gate's size list is `[(64,128),(128,64),(128,128),(128,192),(192,192)]`
82+— it has **no 192x128 cell**, while `pinned_sbpart_stream_decodes_pixel_exact`
83+compares at 192x128. So this is a 192x128 re-run of that recipe, not a cell of it;
84+recorded in the gate's doc comment. cq 55 chosen from a 7-cq sweep (15, 25, 63
85+also pass).
86+
87+### ll444-lossless-key.obu — replay of the recipe the gate's own SKIP line records
88+
89+`testsrc2=s=128x96:r=25`, `-frames:v 6 -pix_fmt yuv444p -f yuv4mpegpipe`, then
90+
91+ aomenc --codec=av1 --profile=1 --lossless=1 --enable-palette=0
92+ --enable-intrabc=0 --bit-depth=8 --input-bit-depth=8 --passes=1
93+ --end-usage=q --cq-level=20 --cpu-used=0 --threads=1 --row-mt=0
94+ --lag-in-frames=0 --kf-max-dist=100 --limit=1 --obu
95+
96+The recorded remedy was "6 frames ... cut to the key frame's OBUs". `--limit=1`
97+gives the same result without OBU surgery: aomenc emits the key frame and stops,
98+and the gate asserts `ours.len() == 1` anyway. `testsrc2` is deterministic, so
99+this one is a genuine replay.
100+
101+---
102+
103+## 2. Before / after, per gate
104+
105+All runs `--release`, `--test-threads=1`, oracle present.
106+
107+| gate | before | after |
108+|---|---|---|
109+| `pinned_golden3_stream_decodes_pixel_exact` | `SKIP ... no pinned bytes`, **0.00s**, `rc=0` | `1 passed`, **0.15s**, prints `4 frame(s) byte-exact vs ffmpeg from .../crates/ec-av1/fixtures/golden3-pin.obu` |
110+| `pinned_sbpart_stream_decodes_pixel_exact` | `SKIP ... no pinned bytes`, **0.00s**, `rc=0` | `1 passed`, **0.15s**; `EC_SBPART_DIAG=1`: `DIAG frame 0: 0 luma mismatches, bbox ... of 192x128` + per-SB-column counts for cols 0..64, 64..128, 128..192 |
111+| `a_real_aomenc_lossless_444_key_frame_decodes_sample_exact` | `SKIP ... no pinned bytes`, **0.05s**, `rc=0` | `1 passed`, **0.11s** |
112+
113+**Real work, not a stop-skipping — three independent proofs.**
114+
115+1. *Self-evidencing output.* sbpart's `EC_SBPART_DIAG` walks all `192*128 =
116+ 24576` luma samples and reports per-superblock-column mismatch counts.
117+ golden3 prints its frame count and the path it read. A skip prints none of it.
118+2. *Non-vacuity assertions that had to hold.* ll444 passes `assert!(lossless)` on
119+ the parsed frame header **and** `assert!(rect_split_lossless_chroma444_hits() >
120+ before)` — the 4:4:4 chroma rect-split walk provably ran, or the gate would be
121+ red. That is what makes it a verdict rather than a decode.
122+3. *Mutation.* One byte flipped mid-pin turns all three RED: golden3
123+ `stream.rs:5106` (`left: 12288, right: 24576`), sbpart `stream.rs:5099`, ll444
124+ `stream.rs:6537`. **Stated precisely:** these die in the *ffmpeg decode* step,
125+ not the pixel compare — a bit-flipped arithmetic-coded stream does not decode.
126+ So the mutation proves the bytes are READ and PROCESSED (a skip returns `ok` at
127+ 0.00s and never reaches any of it); it does **not** prove the pixel compare is
128+ what catches a bit flip. Proof 1 covers the compare.
129+
130+**One assertion added per gate on the way.** Each of the three compared
131+`frames.iter().zip(&ffmpeg_frames)` with no length check — the exact `cmpaudit`
132+class, where a short side truncates the walk silently. Each now asserts
133+`frames.len() == ffmpeg_frames.len()` first, naming the mis-pairing in the message.
134+
135+The `#[ignore]` reasons changed from "reads a pinned fixture path outside the
136+repo; run manually" to "bisect aid, not a suite gate; run it with `--ignored`" —
137+still ignored, but the old text claimed a property (outside the repo) that is no
138+longer true.
139+
140+---
141+
142+## 3. The stale comment, and the measurement that reversed my own call
143+
144+Last turn I reported to Main that the two 1:4 gates' `#[ignore]` strings were wrong
145+and the 22-line comment above them was right. **That was backwards**, and the
146+re-run says so.
147+
148+The r2 comment recorded, as these gates' blocker, an unowned mandelbrot
149+inter-frame defect: "decode-order frame 3/4 luma ~3.7-4.5k samples, max |d| 6..17,
150+then frames 5-7 drift to ~24k samples, max |d| ~220", plus "seeds 46 and 54 fire
151+ZERO 1:4 strips ... and mismatch ffmpeg the same way as the firing seed 52".
152+
153+**Measured on `a21f3680`, release, the r2 recipe set re-run in full** — 40 attempts
154+per bit depth, from the gate's own parameters (mandelbrot 192x128, `start_scale =
155+5.0 - attempt*0.06`, `end_pts=8`, `hue=s=0`, `-t 0.32`,
156+`--enable-rect-partitions=1 --enable-1to4-partitions=1 --min-partition-size=32
157+--max-partition-size=64 --enable-tx-size-search=0 --enable-filter-intra=1
158+--enable-intra-edge-filter=1 --kf-min-dist=1000 --kf-max-dist=1000` plus the
159+standard disable set, `--cpu-used = 1 + attempt%4`, `--cq-level =
160+[63,55,45,35][(attempt/4)%4]`):
161+
162+| | 8-bit | 10-bit |
163+|---|---|---|
164+| attempts decoded + pixel-compared | **40** | **40** |
165+| gate's own tally | `counted-exact=0 uncounted-exact=40 named-refusals=0` | identical |
166+| `first diff at` / `samples differ` / `max \|d\|` lines in the full log | **0** | **0** |
167+| 1:4 strips in inter frames | `64x16=0 16x64=0 32x8=0 8x32=0` | identical |
168+
169+Both the frame range and the byte counts r2 named are simply absent: no frame 3/4
170+counts, no `max |d|`, no drift. **The mandelbrot inter-frame defect is cleared on
171+this tree** — 80 streams compared, 80 exact. A positive measurement, not the
172+absence-of-evidence I flagged last turn.
173+
174+And the recipe moved the other way: **zero** 1:4 strips fire now across all 42
175+counted attempts per arm, where r2 had one attempt firing `64x16=4 16x64=3`. The
176+gates went from "fires sometimes, compare fails" to "never fires", and now trip
177+their own non-vacuity precondition at `stream.rs:40653` rather than any pixel.
178+
179+**Therefore:** the `#[ignore]` strings are correct for this tree and the comment
180+was the stale artefact. Both gates stay ignored — a source that is baseline-exact
181+*and* fires a 32-level intra 1:4 strip in an inter frame still does not exist —
182+and the comment now records the cleared blocker and the zero-strip recipe
183+regression, dated, with the reason for the correction.
184+
185+What I did **not** claim: I did not identify which commit cleared the mandelbrot
186+defect. The 7-lane wave is the obvious suspect and the measurement is consistent
187+with it, but "the wave fixed it" is a correlation across a merge, not an
188+attribution. Closing that needs an ablation, which is a bisect, not a comment fix.
189+
190+---
191+
192+## 4. State
193+
194+Two commits on `lane-av1pins`, base `a21f3680`. `cargo check -p ec-av1
195+--all-targets` clean, no warnings. Not pushed, not merged; main untouched.
196+
197+Verified here: the three gates pass from the committed pins with real-work output
198+and mutation proof; the mandelbrot sweep measures 80/80 exact at both bit depths.
199+Not verified: a full `cargo test -p ec-av1` run (out of scope for a
200+fixture/comment lane; project-wide validation is Main's), and the 35
201+probes/benchmarks excluded from the earlier release triage.
202+
203+Procedure saved as managed skills `stale-ignore-reason-vs-stale-comment` and
204+`fixture-absent-silent-skip-class`.