forge
Explore
Log in

Don't you dare go Hollow

lanes: av1pinspec report -- 41 of 43 unpinned count sites pinned, ceiling 43 -> 2

Browse files at this commit

51841286120325db1c604fbf8aac3c5e53a42dcfAhmet Kaan GümüşParent: fbed1b6
The 43-row table with the per-site classification, the six derivations each
asserted value comes from, the per-group red-before (the guard's own message
for each of the eight stream.rs commits) and the six-gate value mutation that
shows the new asserts bite -- and, in its 'decode showed' column, that the
values came out of the encode recipe rather than the decode.

Also records the two failures this lane hit and what caught them: a
 split that put the narrow-kernel assert inside a
refusal arm where it would only run on arms the gate had already declined to
compare, and the global pre-commit rustfmt hook re-wrapping two asserts.
lanes/av1pinspec.report.mdadded+346 -0
@@ -0,0 +1,346 @@
1+# lane-av1pinspec — give each of the 43 unpinned count sites a spec-derived pin
2+
3+Branch `lane-av1pinspec`, worktree `~/.cache/wt/av1pinspec`, base `3b691e13` (wave-3e
4+main, with `pins5` + `txsizeaudit-r5` already merged). **Ten commits, test/comment
5+changes only — no decoder logic, and `decode.rs` is not touched at all.**
6+
7+```
8+8a8a9717 gate_coverage: lower the count-vacuity unpinned ceiling 43 -> 2
9+2375641e stream: pin the encode's frame count above 7 oracle calls (palette, rect-tx tool, screen intrabc, 16x4 pair)
10+38cf6255 stream: pin the encode's frame count in the intrabc rect/census family
11+37bc27ef stream: pin the ignored rect-tx recipe sweep and the 32-level AB gate
12+95e950fa stream: pin the restoration sweep and edge32_gate, whose spec is a parameter
13+71a190aa stream: pin the band and chroma-rect sweep family to one frame each
14+d960f5d3 stream: hoist the narrow-kernel gate's FRAMES assert above its oracle call
15+b5a45b2d stream: pin four more oracle counts, one of them off the wire itself
16+c887fa7f stream: pin eight single-key-frame oracle counts, three of them by hoisting
17+```
18+
19+## 0. The fix shape, and what it changes about what a site counts
20+
21+Every fix adds **the ENCODE's own frame count** as an `assert_eq!` **above** the
22+`ffmpeg_decode_sequence*` call, so the value later spent as ffmpeg's frame budget is
23+already proven against the encode instead of read off our own decode.
24+
25+**It does not change what a site counts.** The call still spends `frames.len()`; the
26+assert above it makes that value a spec. This is deliberate, and it is the shape the
27+**17 already-pinned sites** already use — e.g. `stream.rs:5571` asserts
28+`decoded.len() == 4` and `:5576` then spends `decoded.len()` as ffmpeg's budget. The
29+sweep's population therefore stays at **60** and the change is visible as
30+`17 -> 58 spec-pinned` rather than as sites quietly disappearing.
31+
32+The alternative — spending a named constant in place of `.len()`, the r7 shape at
33+`stream.rs:3895` — is strictly stronger per site, but it deletes the site from the
34+sweep, and 43 deletions would put the population at 17 against a **floor of 40**
35+(`gate_coverage.rs:2390`). The floor is not lowered here, so the assert-above shape is
36+the one that keeps the class enumerable. That trade is the one judgement call in this
37+lane; everything else is mechanical.
38+
39+**Why the assert must sit above the call, in one line.** A wrong count reds either
40+way, but with the assert below, `ffmpeg_decode_sequence` has already been handed the
41+same short count, so its `out.stdout.len() == frame_bytes * frames` assert fires
42+first and the message blames ffmpeg for a number our decoder chose — the
43+misattributed-red class this whole sweep exists to name. Above the call, the failure
44+names the encode.
45+
46+## 1. The sweep line, before and after
47+
48+BEFORE, on `3b691e13`:
49+
50+```
51+$ cargo test -p ec-av1 --lib -- count_vacuity_tests::every_locally_derived_oracle_count_is_reported --nocapture
52+count-vacuity sweep: 60 site(s); 17 spec-pinned by a prior assert, 43 not
53+```
54+
55+AFTER:
56+
57+```
58+$ cargo test -p ec-av1 --lib -- count_vacuity_tests --nocapture
59+count-vacuity sweep: 60 site(s); 58 spec-pinned by a prior assert, 2 not
60+ROW 5631 | an_svt_screen_palette_block_with_a_split_transform_decodes_exactly | decoded.len() | bucket=a | candidate=- | spec_in_scope=- | stream read from disk: count belongs to the pin | pixel_comparing=true
61+ROW 30924 | a_real_aomenc_stream_with_restoration_reads_lr_symbols_correctly | pics.len() | bucket=b | candidate=- | spec_in_scope=- | live aomenc encode: count belongs to the encoder | pixel_comparing=true
62+test gate_coverage::count_vacuity_tests::every_locally_derived_oracle_count_is_reported ... ok
63+test gate_coverage::count_vacuity_tests::the_count_vacuity_sweep_finds_the_known_sites ... ok
64+test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 760 filtered out
65+```
66+
67+**`43 -> 2`. No site disappeared** — 60 before, 60 after — so the ceiling moves
68+**down** `43 -> 2` because 41 sites stopped being unpinned. The ceiling is not
69+raised. The floor (`>= 40` sites) and the `frames.len()` shape anchor are untouched.
70+
71+## 2. The 43-row table
72+
73+`b:` = line on `3b691e13`, `a:` = line on `lane-av1pinspec` (the sweep's own numbers
74+after the change). `value` is what the new assert compares against.
75+
76+| b: | a: | gate | expr | value | bucket | disposition |
77+|---|---|---|---|---|---|---|
78+| 5631 | 5631 | `an_svt_screen_palette_block_with_a_split_transform_decodes_exactly` | `decoded.len()` | — | **b** | hand forward, §3 |
79+| 10513 | 10522 | `a_real_aomenc_palette_stream_with_8x8_leaves_decodes_pixel_exact` | `frames.len()` | `1` | a | fixed |
80+| 10732 | 10758 | `rect_tx_tool_gate` | `decoded.len()` | `15` | a | fixed |
81+| 10734 | 10760 | `rect_tx_tool_gate` | `decoded.len()` | `15` | a | fixed (one assert covers both) |
82+| 11212 | 11248 | `a_real_aomenc_screen_key_frame_reads_use_intrabc_on_rect_strips` | `frames.len()` | `1` | a | fixed |
83+| 11383 | 11422 | `a_16x4_intrabc_pair_strip_decodes_pixel_exact` | `frames.len()` | `1` | a | fixed, assert hoisted |
84+| 11455 | 11500 | `a_lossless_16x4_chroma_pair_repairs_the_measured_site` | `frames.len()` | `1` | a | fixed |
85+| 11838 | 11888 | `a_coded_rect_intrabc_block_reconstructs_in_both_orientations` (arms) | `frames.len()` | `1` | a | fixed |
86+| 11981 | 12041 | same gate (skip_arms) | `frames.len()` | `1` | a | fixed |
87+| 12224 | 12292 | `an_sb128_screen_stream_with_intrabc_decodes_pixel_exact` | `frames.len()` | `1` | a | fixed |
88+| 12226 | 12294 | same gate, 8-bit arm | `frames.len()` | `1` | a | fixed (one assert covers both) |
89+| 12612 | 12689 | `a_sub8_leaf_census_over_intrabc_screen_streams_measures_the_sub8_refusal` | `frames.len()` | `1` | a | fixed |
90+| 12687 | 12773 | `an_intrabc_vartx_census_measures_the_mixed_leaf_refusal` | `frames.len()` | `1` | a | fixed |
91+| 12791 | 12883 | `a_real_aomenc_intrabc_mixed_vartx_tree_decodes_without_the_mixed_leaf_refusal` | `frames.len()` | `1` | a | fixed |
92+| 13093 | 13191 | `an_intrabc_block_under_tx_mode_select_decodes_pixel_exact` | `frames.len()` | `1` | a | fixed |
93+| 13154 | 13267 | `a_real_aomenc_stream_with_cdf_update_disabled_decodes_pixel_exact` | `frames.len()` | wire frame headers | a | fixed |
94+| 13360 | 13481 | `a_real_aomenc_rect_strip_palette_decodes_pixel_exact` | `frames.len()` | `1` | a | fixed |
95+| 13362 | 13483 | same gate, 8-bit arm | `frames.len()` | `1` | a | fixed (one assert covers both) |
96+| 15497 | 15629 | `ten_bit_tool_gate` (the sweep labels the gate `first_diff`) | `decoded.len()` | `frames` param | a | fixed |
97+| 27636 | 27773 | `a_real_aomenc_stream_with_a_coded_rect_strip_below_16x16_decodes_pixel_exact` | `frames.len()` | `1` | a | fixed, assert hoisted |
98+| 27764 | 27906 | `a_real_aomenc_stream_whose_square_block_reads_a_sub16_neighbours_mode_decodes_pixel_exact` | `frames.len()` | `1` | a | fixed, assert hoisted |
99+| 27933 | 28083 | `a_real_aomenc_stream_whose_chroma_edge_filter_reads_a_sub16_neighbours_uv_mode_decodes_pixel_exact` | `frames.len()` | `1` | a | fixed, assert hoisted |
100+| 27935 | 28085 | same gate, 8-bit arm | `frames.len()` | `1` | a | fixed (one assert covers both) |
101+| 28129 | 28280 | `a_real_aomenc_sb128_stream_whose_skipped_cfl_and_1to4_chroma_pairs_decode_pixel_exact` | `frames.len()` | `1` | a | fixed |
102+| 28131 | 28282 | same gate, 8-bit arm | `frames.len()` | `1` | a | fixed (one assert covers both) |
103+| 28456 | 28612 | `a_real_aomenc_stream_with_ab_partitions_below_16x16_decodes_pixel_exact` | `frames.len()` | `1` | a | fixed |
104+| 28458 | 28614 | same gate, 8-bit arm | `frames.len()` | `1` | a | fixed (one assert covers both) |
105+| 28609 | 28777 | `sweep_rectx_recipes` (`#[ignore]`) | `frames.len()` | `1` | a | fixed |
106+| 29212 | 29386 | `a_real_aomenc_stream_with_a_32_level_ab_partition_decodes_pixel_exact` | `frames.len()` | `1` | a | fixed |
107+| 30646 | 30826 | `a_real_aomenc_stream_with_restoration_reads_lr_symbols_correctly` | `pics.len()` | `1` | a | fixed |
108+| 30744 | 30924 | same gate — a `///` doc comment | `pics.len()` | — | **c** | not a count, §3 |
109+| 38225 | 38419 | `edge32_gate` | `decoded.len()` | `frame_count` (arm) | a | fixed |
110+| 38227 | 38421 | `edge32_gate`, 8-bit arm | `decoded.len()` | `frame_count` (arm) | a | fixed (one assert covers both) |
111+| 41953 | 42156 | `a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact` | `frames.len()` | `1` | a | fixed |
112+| 41955 | 42158 | same gate, 8-bit arm | `frames.len()` | `1` | a | fixed (one assert covers both) |
113+| 42190 | 42398 | `the_chroma_rect_gates_excluded_seed_46_decodes_pixel_exact` | `frames.len()` | `1` | a | fixed |
114+| 42192 | 42400 | same gate, 8-bit arm | `frames.len()` | `1` | a | fixed (one assert covers both) |
115+| 42359 | 42572 | `a_real_aomenc_band_stream_seed46_decodes_pixel_exact` | `frames.len()` | `1` | a | fixed |
116+| 42361 | 42574 | same gate, 8-bit arm | `frames.len()` | `1` | a | fixed (one assert covers both) |
117+| 42568 | 42787 | `a_real_aomenc_stream_whose_frame_edge_partition_bit_is_horz_decodes_pixel_exact` | `frames.len()` | `1` | a | fixed |
118+| 42570 | 42789 | same gate, 8-bit arm | `frames.len()` | `1` | a | fixed (one assert covers both) |
119+| 42794 | 43025 | `a_real_aomenc_rect_inter_block_predicts_chroma_with_the_narrow_kernel_pixel_exact` | `frames.len()` | `FRAMES` (=6) | a | fixed, assert hoisted |
120+| 42796 | 43027 | same gate, 8-bit arm | `frames.len()` | `FRAMES` (=6) | a | fixed (one assert covers both) |
121+
122+**41 fixed, 1 handed forward (b), 1 not a count at all (c).** 6+8+4+8+2+3+8+2 = 41
123+sites across the eight `stream.rs` commits.
124+
125+## 3. The two that are not fixed, and why
126+
127+**(b) `stream.rs:5631` — `an_svt_screen_palette_block_with_a_split_transform_decodes_exactly`.**
128+The stream is named by `EC_AV1_SVT1_STREAM` (`:5609`) and read from that path
129+(`:5617`). It is **not a committed pin** — the gate's own doc comment says the crop is
130+never committed to `fixtures/` — so no encode recipe, no `--limit`, no `-frames:v`
131+and no frame count exists anywhere in the tree for it. The "12-frame stream" in the
132+doc comment (`:5592`) is prose about one capture, and the env var accepts any file, so
133+asserting `12` would pin a number nothing can check. The one derivable alternative is
134+to count the stream's own OBU frame headers with `Av1Parser` (the shape used at
135+`:13267`; the parser is already imported at `:19`), which would make the count
136+wire-derived instead of decode-derived. Deliberately not done: the gate **SKIPs** on
137+any box without that env var (the battery reports it `ok` in 0 s here), so such an
138+assert would ship unexercised, and an OBU header count over-counts whenever the stream
139+carries `show_existing_frame`, which cannot be checked without the bytes. Handed
140+forward with the recipe.
141+
142+**(c) `stream.rs:30744` (now `:30924`) — a `///` DOC COMMENT, not a count.**
143+The matched line is
144+
145+```
146+/// let reference = ffmpeg_decode_sequence(&stream, 192, 128, pics.len());
147+```
148+
149+a quoted fragment of the pre-r4 body of `pinned_lr_sgr_stream_call_unique_dump`, in
150+the doc comment that explains why that gate now takes its count from `FRAMES`. The
151+sweep scans raw source lines and cannot tell a doc comment from code. The gate it
152+describes is already correct: it calls `ffmpeg_decode_sequence(&stream, W, H, FRAMES)`
153+with `const FRAMES: usize = 1;` and asserts `pics.len() == FRAMES`. Left in place and
154+reported; making the scanner comment-aware is a change to the guard, not a fix to a
155+count.
156+
157+## 4. Where each derived value comes from
158+
159+Six derivations, every one read out of the gate's own encode call:
160+
161+1. **`-frames:v 1` / `-vframes 1` on the y4m** — `a_16x4_intrabc_pair_strip`
162+ (`:11333`), `a_lossless_16x4_chroma_pair_repairs_the_measured_site` (`:11414`),
163+ `..._coded_rect_strip_below_16x16` (`:27566`),
164+ `..._square_block_reads_a_sub16_neighbours_mode` (`:27793`),
165+ `..._chroma_edge_filter_reads_a_sub16_neighbours_uv_mode` (`:27852`),
166+ `..._skipped_cfl_and_1to4_chroma_pairs` (`:28056`),
167+ `..._ab_partitions_below_16x16` (`:28367`),
168+ `..._a_32_level_ab_partition` (`:29119`),
169+ `..._frame_edge_partition_bit_is_horz` (`:42490`),
170+ `sweep_rectx_recipes` (`:28747`). Where the source carries no `:rate=`, `-vframes`
171+ is the binding bound.
172+2. **`--limit=1`** — the 8x8-leaf palette gate (`:10467`), the screen key-frame
173+ intrabc gate (`:11145`), both loops of the rect-intrabc gate (`:11797`, `:11945`),
174+ `an_sb128_screen_stream_with_intrabc` and everything below it through
175+ `screen_intrabc_stream_at_depth` (`:12101`), the rect-strip-palette gate
176+ (`:13313`), and the band/chroma-rect family whose helper renders
177+ `duration=0.04:rate=25` with `-t 0.04` and no limit (`:42082`, `:42094`, `:42263`,
178+ `:42277`).
179+3. **`--limit=1` over `-t 0.2` at `rate=25` with `-vf tile=2x2`** — 5 input frames,
180+ 1 tiled output frame: the two intrabc censuses, the mixed vart-x tree gate and the
181+ tx-mode-select gate.
182+4. **`rate=25 x -t 0.60`, no `--limit`** — `rect_tx_tool_gate`, 15 frames (`:10690`).
183+ The one multi-frame site; the count is named `const ENCODED_FRAMES: usize = 15;`
184+ because 15 is an arithmetic fact about the fixture, not a flag someone typed.
185+5. **A value already in scope at the call** — `const FRAMES: usize = 6`
186+ (`a_real_aomenc_rect_inter_block_predicts_chroma_with_the_narrow_kernel`, `:42670`,
187+ driving both `-vframes {FRAMES}` and `--limit={FRAMES}`); `ten_bit_tool_gate`'s own
188+ `frames` parameter (`:15446`, the same value handed to
189+ `encode_10bit_gradients_seed` at `:15469` — 1 for the key-frame callers, 24 for the
190+ `--lag-in-frames=16` inter ones); `edge32_gate`'s per-arm `frame_count` tuple field,
191+ which is what the y4m is built from (`duration = frame_count / 25.0`, `:38117`) and
192+ which aomenc runs uncapped, so 1 for the intra arms and 5 for the inter/straddling
193+ ones.
194+6. **The wire itself** — `a_real_aomenc_stream_with_cdf_update_disabled` asserts
195+ `frames.len() == headers`, where `headers` is this stream's own OBU frame-header
196+ count, parsed with `Av1Parser` in the loop already sitting above the call
197+ (`:13133-13147`). Derived from the bitstream rather than a literal, because the arm
198+ overrides the helper's `--limit=1` with `--limit=3` (`:13127`) and aomenc keeps the
199+ last occurrence of a repeated flag — so a literal `3` would be a claim about flag
200+ precedence, and `headers` is the fact.
201+
202+## 5. Red-before
203+
204+### 5a. Per group — the guard's own message, one run per commit
205+
206+Each group's edits un-applied, the real guard run, then the tree restored:
207+
208+| commit | group | sites | guard says |
209+|---|---|---|---|
210+| `2375641e` | A palette / rect-tx tool / screen intrabc / 16x4 | 6 | `8 unpinned count site(s), ceiling is 2` |
211+| `38cf6255` | B intrabc rect + census family | 8 | `10 unpinned count site(s), ceiling is 2` |
212+| `b5a45b2d` | C cdf-update / rect-strip-palette / ten_bit_tool_gate | 4 | `6 unpinned count site(s), ceiling is 2` |
213+| `c887fa7f` | D single-key-frame gates | 8 | `10 unpinned count site(s), ceiling is 2` |
214+| `37bc27ef` | E ignored sweep + 32-level AB | 2 | `4 unpinned count site(s), ceiling is 2` |
215+| `95e950fa` | F restoration sweep + edge32_gate | 3 | `5 unpinned count site(s), ceiling is 2` |
216+| `71a190aa` | G band + chroma-rect family | 8 | `10 unpinned count site(s), ceiling is 2` |
217+| `d960f5d3` | H narrow-kernel | 2 | `4 unpinned count site(s), ceiling is 2` |
218+
219+Every row is `2 + that group's sites` against a ceiling of `2`, and every row is
220+`test result: FAILED`. Since the ceiling equals the number of sites that survive the
221+whole lane, **removing any one of the 41 asserts puts unpinned at 3 and reds the same
222+assert** — the constant and the per-group revert together are the per-site proof.
223+
224+Whole-branch revert, same result:
225+
226+```
227+$ git checkout 3b691e13 -- crates/ec-av1/src/stream.rs # ceiling stays 2
228+$ cargo test -p ec-av1 --lib -- count_vacuity_tests
229+thread '...' panicked at crates/ec-av1/src/gate_coverage.rs:2441:9:
230+43 unpinned count site(s), ceiling is 2 -- a new one was added (lower the ceiling only when a site is actually fixed)
231+test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 760 filtered out
232+```
233+
234+### 5b. The new asserts themselves bite — value mutation
235+
236+One mutation per **derivation shape**, all six applied at once, on the real gates:
237+
238+```
239+$ cargo test -p ec-av1 --lib -- --test-threads=4 <the six gates>
240+---- a_real_aomenc_8bit_stream_with_a_rect_transform_decodes_pixel_exact stdout ----
241+assertion `left == right` failed: ...[cq20/tx1]: the encode codes 14 frames, the decode showed 15
242+ left: 15
243+ right: 14
244+---- a_real_aomenc_10bit_rect_and_ab_partitions_decode_pixel_exact stdout ----
245+assertion `left == right` failed: ... seed 42: the encode codes 24 frame(s), the decode showed 24
246+ left: 24
247+ right: 25
248+---- a_frame_edge_straddling_band_decodes_pixel_exact stdout ----
249+assertion `left == right` failed: ... 192x68 cq35 frames=5 10bit=false tile_cols=0: the encode codes 5 frame(s), the decode showed 5
250+ left: 5
251+ right: 6
252+---- a_16x4_intrabc_pair_strip_decodes_pixel_exact stdout ----
253+assertion `left == right` failed: a_16x4_intrabc_pair_strip_decodes_pixel_exact: expected one key frame
254+ left: 1
255+ right: 2
256+---- a_real_aomenc_stream_with_cdf_update_disabled_decodes_pixel_exact stdout ----
257+assertion `left == right` failed: ... the stream codes 3 frame(s), the decode showed 3
258+ left: 3
259+ right: 4
260+---- a_real_aomenc_rect_inter_block_predicts_chroma_with_the_narrow_kernel_pixel_exact stdout ----
261+assertion `left == right` failed: ... not every coded frame was decoded (192x128, depth=8, cq=20)
262+ left: 6
263+ right: 5
264+
265+test result: FAILED. 0 passed; 6 failed; 0 ignored; 0 measured; 756 filtered out
266+```
267+
268+The mutations were `ENCODED_FRAMES 15 -> 14`, `frames -> frames + 1`,
269+`frame_count -> frame_count + 1`, `1 -> 2`, `headers -> headers + 1`,
270+`FRAMES -> FRAMES - 1`. Every mutant fails, and **the "decode showed" column is the
271+proof the derived values are right, not just that the asserts exist**: this decoder
272+really produces 15 / 24 / 5 / 1 / 3 / 6 frames on those six fixtures, and the number
273+came out of the encode recipe, not out of the decode. Reverted, and all six green
274+again.
275+
276+## 6. Green
277+
278+Compile clean, no warnings:
279+
280+```
281+$ cargo check -p ec-av1 --all-targets
282+ Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.14s
283+```
284+
285+Every gate this lane touched, plus the whole `gate_coverage` module, plus all nine
286+`ten_bit_tool_gate` callers and all three `edge32_gate` callers — 57 tests,
287+`aomenc` present and required (`EC_AV1_REQUIRE_AOMENC=1`):
288+
289+```
290+$ cargo test -p ec-av1 --lib -- --test-threads=4 <39 gates> gate_coverage
291+test result: ok. 57 passed; 0 failed; 0 ignored; 0 measured; 705 filtered out; finished in 128.10s
292+```
293+
294+The `#[ignore]`d one is run explicitly:
295+
296+```
297+$ cargo test -p ec-av1 --lib -- --ignored sweep_rectx_recipes
298+test stream::tests::sweep_rectx_recipes ... ok
299+test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 761 filtered out; finished in 14.72s
300+```
301+
302+And the acceptance filter:
303+
304+```
305+$ cargo test -p ec-av1 --lib -- gate_coverage pin_inventory count_vacuity
306+test gate_coverage::pin_inventory_tests::the_pin_scanner_sees_every_shape ... ok
307+test gate_coverage::pin_inventory_tests::the_pin_scanner_sees_the_directory_literal_shape ... ok
308+test gate_coverage::count_vacuity_tests::every_locally_derived_oracle_count_is_reported ... ok
309+test gate_coverage::count_vacuity_tests::the_count_vacuity_sweep_finds_the_known_sites ... ok
310+test gate_coverage::pin_inventory_tests::every_pin_a_gate_reads_is_committed_under_the_crate ... ok
311+test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 755 filtered out
312+```
313+
314+## 7. Two things worth recording
315+
316+**A first attempt at the commit split corrupted one hunk, and the guard caught
317+nothing.** `git apply --cached --unidiff-zero` re-anchors a hunk by line number
318+alone, so the narrow-kernel assert landed inside a *refusal* arm — inside the
319+`if msg.contains("unsupported")` block, before its `continue` — where it would only
320+have run on arms the gate had already decided not to compare. The lane's own green
321+run would not have noticed, because the compared arms never reach that line. The
322+commits were rebuilt with exact-text, context-anchored replacement and an
323+`assert count == 1`, and the assembled branch was then checked **byte-identical** to
324+the tree the battery and the mutation run had been executed against. A commit-splitting
325+tool that can drop a gate assertion silently needs the same red-before discipline as
326+the code it is splitting.
327+
328+**The global `pre-commit` hook re-runs rustfmt on staged Rust** (`core.hooksPath` ->
329+`~/.omp/agent/hooks/git`), so two of the new asserts are committed wrapped across
330+lines even though they fit in 100 columns. Left as the hook produced them; the two
331+forms are the same assert with the same operands, and the wrapped form is what the
332+final verification run in §6 was executed against.
333+
334+## 8. Not done / deferred
335+
336+- `stream.rs:5631` (the SVT gate) — no derivable frame count; the exact recipe and
337+ the two reasons not to guess are in §3.
338+- The `///` doc-comment site the sweep cannot see — left as-is and reported, §3.
339+- The *value* mutation in §5b runs one gate per derivation shape (six), not all 41
340+ individually. The guard-level per-group revert in §5a is the per-site proof; §5b is
341+ what shows the asserts bite on the gates themselves.
342+- `an_svt_screen_palette_block_with_a_split_transform_decodes_exactly` and the
343+ census gates' `pixel_comparing` column are the guard's own approximation, not a
344+ re-measurement; the classification in §2 is from reading the gates, and each row
345+ records the value that reading produced.
346+- No full `cargo test -p ec-av1` run — project-wide validation is Main's.