forge
Explore
Log in

Don't you dare go Hollow

Merge lane/av1bookkeep: the inventory's two unregistered rows, and the seventh 4:2:2 cell

Browse files at this commit

53601b19a47a440ec13a5e2981b431f46f548d3dAhmet Kaan GümüşParent: 69db7582af0609
The refusal inventory listed 33 strings but PROVEN carried 31 rows, and its own discipline
only checked one direction (every row names a live refusal) -- nothing checked that every
listed refusal has a row. Registered the two missing rows with their existing gates: the
BLOCK_INVALID subsize refusal -> a_422_header_over_a_420_tile_refuses_the_subsize_libaom_
calls_corrupt (NegativeGate), and the filter-intra capability claim ->
a_sb_level_horz_vert_strip_admits_no_filter_intra_symbol (Enumeration). Each is red-proven
by deletion.

And the corpus gate's own precondition is now discharged: it pinned six of the seven
measured-diverging 4:2:2 cells and said the branch must not land until s422_384x240 closed
and the corpus re-measured 51/51. The cell IS closed on main (BYTE-EXACT, U=0 V=0 Y=0 over
17 decode frames, re-measured on this tree), and the committed fixture
422_palette_intra_in_inter_384x240_17f.obu is byte-identical to the sweep's
s422_384x240.obu (same sha256 bf1c658e..a815b) -- the seventh cell is pinned with the
exactness re-measured here, and the doc states the closure.
crates/ec-av1/src/refusal_inventory.rsmodified+68 -0
@@ -696,6 +696,35 @@ const PROVEN: &[(&str, &str, Proof)] = &[
696 "an_inter_frame_naming_an_unrefreshed_primary_ref_slot_is_refused_by_name",696 "an_inter_frame_naming_an_unrefreshed_primary_ref_slot_is_refused_by_name",
697 Proof::NegativeGate,697 Proof::NegativeGate,
698 ),698 ),
699+ // lane-av1bookkeep W1-4, NEGATIVE: the BLOCK_INVALID subsize refusal
700+ // (`refuse_invalid_plane_block`, decode.rs). It is libaom's own rule
701+ // (`get_plane_block_size` -> `AOM_CODEC_CORRUPT_FRAME`, decodeframe.c:1456)
702+ // applied to a stream whose header and tile disagree. The pin is a 4:2:2
703+ // sequence header over a 4:2:0 key frame's tile, whose partition symbols
704+ // name 8x16 -- a subsize with no chroma plane block at ss (1,0) -- so the
705+ // guard FIRES, by name, and the gate also drives a genuine 4:2:2 pin that
706+ // must still decode, so it cannot pass by refusing everything. The gate's
707+ // body quotes the refusal WHOLE (not just the libaom citation inside it),
708+ // which is what makes this row an anchor the checker can hold.
709+ (
710+ "a block size 4x8, 8x16 or 16x4 (or 8x4 at 4:4:0) has no chroma plane block at this frame's subsampling mode (libaom: \\\"Block size %dx%d invalid with this subsampling mode\\\", av1/decoder/decodeframe.c:1456, refusing by the same rule)",
711+ "a_422_header_over_a_420_tile_refuses_the_subsize_libaom_calls_corrupt",
712+ Proof::NegativeGate,
713+ ),
714+ // lane-av1bookkeep W1-4, ENUMERATION: the LONE capability claim. The guard
715+ // in `decode_block_rect` fires only when `filter_intra.is_some()`, and that
716+ // flag is `Some` only where `filter_intra_size_class_rect` says so. The
717+ // strips the guard protects are `(64, 32)` / `(32, 64)`;
718+ // `av1_filter_intra_allowed_bsize` caps both sides at 32x32, so no conformant
719+ // stream offers the symbol there. The gate walks every EXPLICIT arm of the
720+ // table (none admits a 64 axis), drives the square-delegate's callee
721+ // `filter_intra_size_class` at 32 and 64 directly, and quotes the claim's
722+ // leading clause in its own body.
723+ (
724+ "filter intra on a superblock-level HORZ/VERT strip (never expected -- av1_filter_intra_allowed_bsize caps at 32x32)",
725+ "a_sb_level_horz_vert_strip_admits_no_filter_intra_symbol",
726+ Proof::Enumeration,
727+ ),
699 ];728 ];
700 729
701 /// Gates whose `Err` arm turns a decode failure into a printed SKIP rather than730 /// Gates whose `Err` arm turns a decode failure into a printed SKIP rather than
@@ -2698,6 +2727,45 @@ mod tests {
2698 );2727 );
2699 }2728 }
2700 2729
2730+ /// The OTHER half of the inventory's invariant: every string LISTED in
2731+ /// [`REFUSALS`] or [`CAPABILITY_CLAIMS`] has a row in [`PROVEN`].
2732+ ///
2733+ /// `every_proven_refusal_names_a_test_that_exists` checks the direction
2734+ /// row -> live refusal, so a string added to the inventory with no proving
2735+ /// gate was invisible: the file could list 33 strings, carry 31 rows, and
2736+ /// every test in the module stayed green. Two rows were missing on main
2737+ /// (the BLOCK_INVALID subsize refusal and the lone filter-intra capability
2738+ /// claim) precisely because nothing compared the two sets. This is that
2739+ /// comparison, so the next one cannot land unmeasured.
2740+ #[test]
2741+ fn every_listed_refusal_and_capability_claim_has_a_proven_row() {
2742+ let mut listed = 0usize;
2743+ let mut unmeasured: Vec<&str> = Vec::new();
2744+ for reason in REFUSALS.iter().chain(CAPABILITY_CLAIMS.iter()) {
2745+ listed += 1;
2746+ if !PROVEN.iter().any(|(row, _, _)| *row == *reason) {
2747+ unmeasured.push(reason);
2748+ }
2749+ }
2750+ assert!(
2751+ unmeasured.is_empty(),
2752+ "these strings are listed as refusals / capability claims but no PROVEN row names a \
2753+ gate that proves them -- an unmeasured claim is what this table exists to make \
2754+ visible:\n{unmeasured:#?}"
2755+ );
2756+ assert_eq!(
2757+ listed,
2758+ PROVEN.len(),
2759+ "{listed} strings are listed and {} rows exist -- they must be one to one, so a row \
2760+ can never stand in for a string that is not listed",
2761+ PROVEN.len()
2762+ );
2763+ eprintln!(
2764+ "refusal inventory: {listed} listed strings, {} PROVEN rows, one to one",
2765+ PROVEN.len()
2766+ );
2767+ }
2768+
2701 /// Lane-av1refusalspan, non-vacuity of the BOUNDARY (not of the anchor):2769 /// Lane-av1refusalspan, non-vacuity of the BOUNDARY (not of the anchor):
2702 /// a neighbour's function must be unreachable from a gate's body, and a2770 /// a neighbour's function must be unreachable from a gate's body, and a
2703 /// body that is not closed must fail rather than run on.2771 /// body that is not closed must fail rather than run on.
crates/ec-av1/src/stream.rsmodified+73 -14
@@ -2936,6 +2936,16 @@ pub(crate) mod tests {
2936 .join("fixtures")2936 .join("fixtures")
2937 .join("440_request_is_422.obu");2937 .join("440_request_is_422.obu");
2938 let pinned = read_pin(&path, 2014, 0x98a1378df976253d, NAME);2938 let pinned = read_pin(&path, 2014, 0x98a1378df976253d, NAME);
2939+ // The refusal this gate PROVES, quoted whole -- the anchor the PROVEN
2940+ // row in `refusal_inventory.rs` is checked against inside this body's
2941+ // own bounds. The assertion below used to match only the libaom
2942+ // citation *inside* the string, so a reworded guard kept passing for
2943+ // as long as it kept citing `decodeframe.c:1456`: the half that names
2944+ // OUR shapes (4x8 / 8x16 / 16x4, and 8x4 at 4:4:0) was never pinned.
2945+ const REFUSAL: &str = "a block size 4x8, 8x16 or 16x4 (or 8x4 at 4:4:0) has no chroma \
2946+ plane block at this frame's subsampling mode (libaom: \"Block \
2947+ size %dx%d invalid with this subsampling mode\", \
2948+ av1/decoder/decodeframe.c:1456, refusing by the same rule)";
2939 let err = decode_stream(&pinned)2949 let err = decode_stream(&pinned)
2940 .err()2950 .err()
2941 .unwrap_or_else(|| panic!("{NAME}: the pin must be REFUSED, not decoded"));2951 .unwrap_or_else(|| panic!("{NAME}: the pin must be REFUSED, not decoded"));
@@ -2945,6 +2955,11 @@ pub(crate) mod tests {
2945 "{NAME}: the refusal must name the rule it refuses by (libaom's own wording), got: \2955 "{NAME}: the refusal must name the rule it refuses by (libaom's own wording), got: \
2946 {msg}"2956 {msg}"
2947 );2957 );
2958+ assert!(
2959+ msg.contains(REFUSAL),
2960+ "{NAME}: the refusal must be this decoder's OWN string, whole -- the guard's wording \
2961+ drifted, so the PROVEN row no longer names what fires, got: {msg}"
2962+ );
2948 // Positive control: a real 4:2:2 stream must still decode, so the gate2963 // Positive control: a real 4:2:2 stream must still decode, so the gate
2949 // cannot pass by refusing everything.2964 // cannot pass by refusing everything.
2950 let ok_path = std::path::Path::new(env!("CARGO_MANIFEST_DIR"))2965 let ok_path = std::path::Path::new(env!("CARGO_MANIFEST_DIR"))
@@ -3979,25 +3994,51 @@ pub(crate) mod tests {
3979 /// earned, and the one that replaces seven gates whose only behavioural3994 /// earned, and the one that replaces seven gates whose only behavioural
3980 /// assertion was `err.contains(REFUSAL)`.3995 /// assertion was `err.contains(REFUSAL)`.
3981 ///3996 ///
3982- /// **Why these six.** The measurement base3997+ /// **Why these seven.** The measurement base
3983 /// (`lanes/av1422ffmpegbase.report.md` section 2.1) recorded seven 4:2:23998 /// (`lanes/av1422ffmpegbase.report.md` section 2.1) recorded seven 4:2:2
3984 /// cells that diverged from ffmpeg: `s422_320x246`, `s422_322x240`,3999 /// cells that diverged from ffmpeg: `s422_320x246`, `s422_322x240`,
3985 /// `s422_322x246`, `s422_352x242_10b`, `s422_384x240`,4000 /// `s422_322x246`, `s422_352x242_10b`, `s422_384x240`,
3986- /// `s422_416x242_10b`, `s422_416x250_10b`. Six are closed and are pinned4001+ /// `s422_416x242_10b`, `s422_416x250_10b`. ALL SEVEN are closed and are
3987- /// here, each byte-exact against ffmpeg with the per-plane4002+ /// pinned here, each byte-exact against ffmpeg with the per-plane
3988- /// coefficient-unit census as its non-vacuity arm. All six are4003+ /// coefficient-unit census as its non-vacuity arm. Six of them are
3989 /// CHROMA-only divergences at non-8-aligned geometries -- odd or4004 /// CHROMA-only divergences at non-8-aligned geometries -- odd or
3990 /// 2-mod-4 luma dimensions, where `round_ss` and the chroma block walk4005 /// 2-mod-4 luma dimensions, where `round_ss` and the chroma block walk
3991 /// disagree with a hardcoded `>> 1` -- which is why they are the rows a4006 /// disagree with a hardcoded `>> 1` -- which is why they are the rows a
3992 /// lift cannot afford to leave unasserted: they are the cells that would4007 /// lift cannot afford to leave unasserted: they are the cells that would
3993 /// go quietly wrong again.4008 /// go quietly wrong again.
3994 ///4009 ///
3995- /// **The seventh, `s422_384x240`, is NOT here, on purpose.** It is the4010+ /// **The seventh, `s422_384x240`, IS here now.** lane-av1422lift pinned six
3996- /// reserved group-tail chroma SKIP arm (`decode.rs`; the risk study R44011+ /// of the seven and deliberately left this one out: it was still red, and
3997- /// flags it as owned elsewhere), it is still red, and pinning a red cell4012+ /// pinning a red cell inside a green gate is how a gate stops being a gate
3998- /// inside a green gate is how a gate stops being a gate.4013+ /// ("THIS BRANCH MUST NOT LAND UNTIL THAT CELL CLOSES AND THE CORPUS
3999- /// **THIS BRANCH MUST NOT LAND UNTIL THAT CELL CLOSES AND THE CORPUS4014+ /// RE-MEASURES 51/51", `lanes/av1422lift.report.md` §7). The cell closed in
4000- /// RE-MEASURES 51/51** -- see `lanes/av1422lift.report.md`.4015+ /// lane-av1422tailskip, and NOT through the reserved group-tail chroma SKIP
4016+ /// arm the risk study's R4 blamed: that lane measured it byte-exact against
4017+ /// ffmpeg on all 16 displayed frames and all 17 decode-order frames, 0/0/0
4018+ /// wrong samples in Y/U/V, with the fix's own counter
4019+ /// (`palette_422_unit_window_hits`) non-zero on this stream.
4020+ /// `lanes/av1422tailskip.report.md` §1 records the measurement and the
4021+ /// refutation of the arm attribution.
4022+ ///
4023+ /// That lane had already committed these exact bytes under the name
4024+ /// `422_palette_intra_in_inter_384x240_17f.obu` (sha256 `bf1c658e...a815b`,
4025+ /// the sweep artifact byte for byte), so the row below pins THAT file
4026+ /// rather than committing a second copy of one stream under a second name.
4027+ /// Unlike the other six, this cell sits at an 8- AND 16-aligned geometry
4028+ /// (384x240): it was the late-starting frame-1 alt-ref chroma residual
4029+ /// (`lanes/av1422late.report.md`), not the `round_ss` class -- which is why
4030+ /// it is pinned as its own row here rather than folded into that sentence.
4031+ ///
4032+ /// **The corpus re-measures 51/51**, which was the second half of the
4033+ /// condition the paragraph above quotes. Re-run for this row with the
4034+ /// ffmpeg-oracle census driver (`~/.cache/census422b/ffcensus.py`: display
4035+ /// order, shown frames, geometry from `ffprobe`, a count over zero frames
4036+ /// is a hard error) and a `dump_yuv` built from THIS lane's tree:
4037+ /// **51 of 51 4:2:2 cells BYTE-EXACT** -- `s422_384x240` among them at
4038+ /// 0/0/0 -- and, in the same run, all 44 4:2:0 / 4:4:4 controls BYTE-EXACT
4039+ /// (95/95 over the whole corpus). That run is a measurement of this tree,
4040+ /// not a re-reading of the closure report; the per-cell rows here are what
4041+ /// keep the seven named ones from drifting back.
4001 ///4042 ///
4002 /// **The census arm, per row.** `assert_422_stream_pixel_exact` asserts4043 /// **The census arm, per row.** `assert_422_stream_pixel_exact` asserts
4003 /// that all three planes read a non-zero number of coefficient units AND4044 /// that all three planes read a non-zero number of coefficient units AND
@@ -4008,14 +4049,18 @@ pub(crate) mod tests {
4008 /// the same decode walked 4994 units, so a green here with no census4049 /// the same decode walked 4994 units, so a green here with no census
4009 /// assert would have proven nothing about 4:2:2.4050 /// assert would have proven nothing about 4:2:2.
4010 ///4051 ///
4011- /// **Provenance of the six pins.** All six are `aomenc --codec=av14052+ /// **Provenance of the seven pins.** All seven are `aomenc --codec=av1
4012 /// --profile=2 --input-bit-depth=<8|10> --cpu-used=0 --cq-level=244053 /// --profile=2 --input-bit-depth=<8|10> --cpu-used=0 --cq-level=24
4013 /// --limit=16 --auto-alt-ref=1 --enable-global-motion=1 --passes=14054 /// --limit=16 --auto-alt-ref=1 --enable-global-motion=1 --passes=1
4014 /// --obu` over a hand-built `C422` y4m (header line, then `FRAME\n` plus4055 /// --obu` over a hand-built `C422` y4m (header line, then `FRAME\n` plus
4015 /// one frame of planes per frame -- libaom's y4minput requires those six4056 /// one frame of planes per frame -- libaom's y4minput requires those six
4016- /// bytes before EVERY frame), produced by the census sweep and copied in4057+ /// bytes before EVERY frame), produced by the census sweep. The first six
4017- /// from `~/.cache/census422b/sweep/`. They are ordinary libaom 4:2:24058+ /// were copied in from `~/.cache/census422b/sweep/`; the seventh is the
4018- /// streams with nothing bolted on.4059+ /// same sweep's `s422_384x240.obu`, which lane-av1422tailskip had already
4060+ /// committed under the name in its own row (the two files are byte for
4061+ /// byte identical -- sha256 `bf1c658e9bfdc13ec1ed51e59049d2b81201941b6ef45\
4062+ /// 71f8382f356ea4b815b`), so it is pinned under that name here. They are
4063+ /// ordinary libaom 4:2:2 streams with nothing bolted on.
4019 #[test]4064 #[test]
4020 fn the_pinned_422_corpus_cells_decode_pixel_exact() {4065 fn the_pinned_422_corpus_cells_decode_pixel_exact() {
4021 const NAME: &str = "the_pinned_422_corpus_cells_decode_pixel_exact";4066 const NAME: &str = "the_pinned_422_corpus_cells_decode_pixel_exact";
@@ -4085,6 +4130,20 @@ pub(crate) mod tests {
4085 10,4130 10,
4086 16,4131 16,
4087 ),4132 ),
4133+ (
4134+ // Census cell `s422_384x240` -- the seventh previously
4135+ // diverging cell, closed by lane-av1422tailskip. Same bytes as
4136+ // the sweep's `s422_384x240.obu`, already in this fixtures dir
4137+ // under the name lane-av1422tailskip's own gate pins.
4138+ "422_palette_intra_in_inter_384x240_17f.obu",
4139+ 19344usize,
4140+ 0x923ccabfcb933e90u64,
4141+ "bf1c658e9bfdc13ec1ed51e59049d2b81201941b6ef4571f8382f356ea4b815b",
4142+ 384usize,
4143+ 240usize,
4144+ 8u8,
4145+ 16usize,
4146+ ),
4088 ] {4147 ] {
4089 let row = format!("{NAME}[{file}]");4148 let row = format!("{NAME}[{file}]");
4090 let path = crate_pin(file);4149 let path = crate_pin(file);
lanes/av1bookkeep.report.mdadded+225 -0
@@ -0,0 +1,225 @@
1+# lane-av1bookkeep — two bookkeeping items in `refusal_inventory.rs` and the 4:2:2 corpus gate
2+
3+**Outcome in one line:** the refusal inventory listed 33 strings and `PROVEN` carried 31
4+rows — both missing rows are now registered, red-proven by deletion, and a new test holds
5+the two sets one to one; and the seventh measured-diverging 4:2:2 cell is pinned in
6+`the_pinned_422_corpus_cells_decode_pixel_exact`, re-measured byte-exact **on this tree**
7+(0/0/0), with the corpus re-measured 51/51 on the same tree.
8+
9+Branch `lane/av1bookkeep`, base `b8385c93`, two commits, no push, no merge.
10+Worktree `/home/user/.cache/wt/av1bookkeep`, `CARGO_TARGET_DIR=/home/user/.cache/tgt/av1bookkeep`.
11+
12+---
13+
14+## 1. W1-4 — the inventory listed 33 strings and PROVEN carried 31 rows
15+
16+### 1.1 The gap, measured before any edit
17+
18+A textual pass over the two tables at `b8385c93` (`REFUSALS` 32 entries +
19+`CAPABILITY_CLAIMS` 1 = **33 listed**; `PROVEN` = **31 rows**) gives exactly two listed
20+strings with no row:
21+
22+| listed string | why it had no row |
23+|---|---|
24+| `a block size 4x8, 8x16 or 16x4 (or 8x4 at 4:4:0) has no chroma plane block at this frame's subsampling mode (libaom: …decodeframe.c:1456…)` | the BLOCK_INVALID subsize guard `refuse_invalid_plane_block` (`decode.rs`), added by lane-av1unwritten / lane-av1subsizesweep |
25+| `filter intra on a superblock-level HORZ/VERT strip (never expected -- av1_filter_intra_allowed_bsize caps at 32x32)` | the single `CAPABILITY_CLAIMS` entry, lane-hdrlossless |
26+
27+No row pointed at a string that is not listed (checked both directions), and the module
28+printed both numbers seventeen lines apart:
29+
30+```
31+refusal inventory: 32 refusals + 1 capability claims, 31 proven
32+```
33+
34+`every_proven_refusal_names_a_test_that_exists` walks **row → live refusal**, so a string
35+added to `REFUSALS` with no proving gate is invisible to it. Nothing walked the other
36+direction. That is why two rows could sit missing while the suite stayed green.
37+
38+### 1.2 The two rows
39+
40+**(a) BLOCK_INVALID subsize refusal → `a_422_header_over_a_420_tile_refuses_the_subsize_libaom_calls_corrupt`, `NegativeGate`.**
41+
42+The charter named this gate, and the anchor rule is the reason it needed an edit first:
43+`gate_body` extracts the gate's own braces and the row must be *quoted inside that body*
44+(whole string, or its leading clause up to the first `(`). The gate quoted neither — its
45+assertion matched only the libaom citation **embedded in** the refusal
46+(`"invalid with this subsampling mode"`). So the row, as the gate stood, would have failed
47+its own checker for the wrong reason.
48+
49+The gate now carries a `REFUSAL` const with the whole string and asserts it on the error.
50+This is also a strictly stronger gate, not bookkeeping:
51+
52+| mutation | old assertion | new assertion |
53+|---|---|---|
54+| `decode.rs` guard reworded `no chroma plane block` → `no CHROMA plane block` | **green** (the `decodeframe.c:1456` citation survives) | **red**: `…the refusal must be this decoder's OWN string, whole… got: unsupported: AV1 tile (a block size 4x8, 8x16 or 16x4 … has no CHROMA plane block …)` |
55+
56+Error path verified: `ec_core::Error::Display` is `unsupported: {what} ({why})`, so the
57+whole `why` reaches `err.to_string()`; the assertion passes unmutated.
58+
59+**(b) filter-intra capability claim → `a_sb_level_horz_vert_strip_admits_no_filter_intra_symbol`, `Enumeration`.**
60+
61+No edit needed: the gate's body already contains
62+`src.contains("\"filter intra on a superblock-level HORZ/VERT strip")`, which is the
63+claim's **leading clause** — the second form the checker accepts. The gate walks every
64+explicit arm of `filter_intra_size_class_rect` (none admits a 64 axis), drives the
65+square-delegate callee `filter_intra_size_class` at 32/64 directly, and asserts
66+`(64,32)`/`(32,64)` have no arm.
67+
68+### 1.3 The invariant that makes the next one impossible
69+
70+New test `every_listed_refusal_and_capability_claim_has_a_proven_row`: every string in
71+`REFUSALS` + `CAPABILITY_CLAIMS` has a row, and `listed == PROVEN.len()` (one to one).
72+
73+**Red proofs** (delete the row, run the test — file restored after each):
74+
75+| deleted row | result |
76+|---|---|
77+| `…refuses_the_subsize_libaom_calls_corrupt` | `FAILED` — `…listed as refusals / capability claims but no PROVEN row names a gate that proves them` |
78+| `…admits_no_filter_intra_symbol` | `FAILED` — same assertion, same panic site (`refusal_inventory.rs:2736`) |
79+
80+Both red on the test's **own** assertion (rc 101 with a compiled binary — an earlier
81+attempt at this proof spliced the wrong line range and produced a compile error instead;
82+that is not a red proof and was discarded).
83+
84+### 1.4 After
85+
86+```
87+refusal inventory: 32 refusals + 1 capability claims, 33 proven
88+anchor strength: 26 rows quote the WHOLE refusal string, 7 quote its LEADING CLAUSE, 0 match neither
89+```
90+
91+Anchor strength was 25 WHOLE / 6 CLAUSE / 0 neither before this lane: row (a) is a whole
92+match (the new `REFUSAL` const), row (b) a clause match. All 22 tests in the module pass.
93+
94+---
95+
96+## 2. The seventh cell — `s422_384x240`
97+
98+### 2.1 What the gate's doc said, and what was true
99+
100+`lanes/av1422lift.report.md` §7 pinned six of the seven cells
101+`lanes/av1422ffmpegbase.report.md` §2.1 measured as diverging, and held the rest of the
102+branch with:
103+
104+> THIS BRANCH MUST NOT LAND UNTIL `s422_384x240` CLOSES AND THE CORPUS RE-MEASURES 51/51.
105+
106+Two things had to be settled before the row could be added, and neither was taken on
107+trust from the charter:
108+
109+1. **Is the cell closed?** `lanes/av1422tailskip.report.md` §1 says it is — byte-exact on
110+ 16 displayed and 17 decode-order frames — and says the cause was **not** the reserved
111+ group-tail chroma SKIP arm the risk study's R4 blamed.
112+2. **Does it decode exact on THIS tree?** Measured, not quoted — §2.3.
113+
114+The charter's "94-cell census on the merged tree" is **not** reproduced here and is not
115+cited: no such artifact exists under `lanes/` or `~/.cache/census422*/`. What this lane
116+measured is in §2.3 and §2.4, from this tree.
117+
118+### 2.2 The row, and why no second copy of the stream
119+
120+The seventh cell's bytes are already in the repository: lane-av1422tailskip committed the
121+sweep artifact as `crates/ec-av1/fixtures/422_palette_intra_in_inter_384x240_17f.obu`.
122+Verified identical to the sweep file before pinning:
123+
124+| | |
125+|---|---|
126+| `~/.cache/census422/sweep/s422_384x240.obu` | 19 344 B, sha256 `bf1c658e…a4b815b`, fnv1a64 `0x923ccabfcb933e90` |
127+| `~/.cache/census422b/sweep/s422_384x240.obu` | same sha256 |
128+| `fixtures/422_palette_intra_in_inter_384x240_17f.obu` | same sha256, same fnv1a64 |
129+
130+So the row pins the existing name rather than committing a second 19 KB copy of one
131+stream under a second name; the doc says so and names both hashes. (A copy was staged
132+while checking, then removed — the tree carries no new fixture.)
133+
134+The doc's "Why these six" paragraph was **corrected, not extended**: 384x240 is 8- *and*
135+16-aligned, so the seventh cell is not in the `round_ss` / non-8-aligned-geometry class the
136+other six are in. It is the late-starting frame-1 alt-ref chroma residual
137+(`lanes/av1422late.report.md`) and is now described as its own class.
138+
139+### 2.3 Exactness re-measured on this tree
140+
141+`EC_AV1_REQUIRE_FFMPEG=1 cargo test -p ec-av1 --lib the_pinned_422_corpus_cells_decode_pixel_exact`
142+— ffmpeg as the oracle, display order, all seven rows:
143+
144+```
145+[422_palette_intra_in_inter_384x240_17f.obu]: sha256 bf1c658e…a4b815b
146+[422_palette_intra_in_inter_384x240_17f.obu]: byte-exact vs ffmpeg (yuv422p, 16 frames);
147+ census delta units=[1992, 1254, 1256] coded=[955, 742, 854]
148+test result: ok. 1 passed; 0 failed
149+```
150+
151+* **0 wrong samples in Y/U/V on all 16 frames** — every plane and frame is compared, and
152+ `assert_422_stream_pixel_exact` panics on the first differing sample.
153+* **Non-vacuous**: the per-plane coefficient-unit census reads 1992/1254/1256 units and
154+ 955/742/854 units that coded at least one coefficient, so the compare is not vacuous
155+ with respect to 4:2:2.
156+* Prior measurement of the same bytes on earlier trees: `0/1780/1871`, first bad display
157+ frame 6, U row 174 col 32 (`lanes/av1422ffmpegbase.report.md` §3,
158+ `lanes/av1422luma.report.md` §6) — the same comparator family, so the movement from
159+ 1780/1871 to 0/0/0 is a real change and not a different instrument.
160+* Sibling gate on the same bytes, also run here:
161+ `the_pinned_422_palette_intra_in_inter_cell_window_is_byte_exact` → **ok**,
162+ "17 decode-order frame(s) byte-exact against aomdec (1 hidden), 16 chroma palette unit
163+ window(s)".
164+
165+**Row non-vacuity.** Mutating that row's fnv1a64 by one turns the gate red on its own
166+assertion: `…[422_palette_intra_in_inter_384x240_17f.obu]: bytes drifted`. Mutating the
167+**sha256** column stays green *by design* — it is the corpus's identity column for a
168+re-capture, not an in-process assertion (the code says so at the column); recording it so
169+the green is not mistaken for a weak gate.
170+
171+### 2.4 The corpus re-measures 51/51 — also on this tree
172+
173+The second half of the landing condition, run here rather than assumed:
174+
175+* driver `~/.cache/census422b/ffcensus.py` (display order, shown frames, geometry from
176+ `ffprobe`, a count over zero frames is a hard error, `probe` recorded per row),
177+* oracle binary = `dump_yuv` built from **this lane's tree**
178+ (`CARGO_TARGET_DIR=/home/user/.cache/tgt/av1bookkeep`, recorded in every result row),
179+* cell list = the census's own `cells_ff.json`, 4:2:2 subset selected by probing each
180+ stream's own sequence header.
181+
182+| run | cells | result |
183+|---|---|---|
184+| 4:2:2 subset | 51 | **51 BYTE-EXACT**, incl. `s422_384x240` 0/0/0 |
185+| whole corpus | 95 | **95 BYTE-EXACT** (51 4:2:2 + 44 4:2:0 / 4:4:4 controls) |
186+
187+All 95 stream paths were resolved and every remapped path's sha256 checked against the
188+census's recorded `sha` before use; 0 unresolved. Two honest limits on this instrument:
189+it is the **ffmpeg** oracle in **display** order (the aomdec decode-order census is a
190+different instrument and was not re-run), and the census's `probe_split_control`
191+("the clean build must refuse 4:2:2") is obsolete now that the lift has landed — it is not
192+part of this measurement.
193+
194+---
195+
196+## 3. Verification actually run on this tree
197+
198+| check | result |
199+|---|---|
200+| `cargo check --tests -p ec-av1` | clean (one pre-existing `dead_code` warning, `dumpio.rs::pin_reporting`, untouched by this lane) |
201+| `cargo test -p ec-av1 --lib refusal_inventory` (22 tests) | 22 passed, 0 failed |
202+| `every_proven_refusal_names_a_test_that_exists`, `--nocapture` | ok; anchor strength 26/7/0, inventory 33 rows |
203+| `a_422_header_over_a_420_tile_refuses_the_subsize_libaom_calls_corrupt` | ok (also the guard-wording mutation: red) |
204+| `the_pinned_422_corpus_cells_decode_pixel_exact`, `EC_AV1_REQUIRE_FFMPEG=1` | ok, 7/7 rows (also the fnv mutation: red) |
205+| `the_pinned_422_palette_intra_in_inter_cell_window_is_byte_exact` | ok (sibling gate, same bytes) |
206+| 51-cell / 95-cell ffmpeg census, this tree's `dump_yuv` | 51/51 and 95/95 BYTE-EXACT |
207+
208+The two full `ec-av1` suite runs this wave live on the server fleet; the scoped runs above are
209+what this lane executed locally.
210+
211+## 4. Commits
212+
213+1. `44afb448` — ec-av1: the inventory listed 33 strings and PROVEN carried 31 rows
214+ (`refusal_inventory.rs` +2 rows +1 test, `stream.rs` gate quote)
215+2. `1dd17d55` — ec-av1: the seventh 4:2:2 corpus cell is pinned, and re-measured exact here
216+ (`stream.rs` row + doc)
217+
218+## 5. Not established here
219+
220+* The charter's "94-cell census on the merged tree" figure — no artifact for it exists in
221+ `lanes/` or `~/.cache/census422*/`, so it is neither reproduced nor cited. What is
222+ measured is §2.4 (95/95 on this tree, ffmpeg/display-order instrument).
223+* The aomdec decode-order 51-cell census was not re-run.
224+* No new fixture was committed, by design (§2.2); if a later lane wants the cell pinned
225+ under its census name, that is a rename, not a new pin.
\ No newline at end of file\ No newline at end of file