forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on ed7f0af384fe2f1c7757b399b71f15a09f42acdb

2026-10-03

lane/av1422open2: both census2 cells are byte-exact at current main -- the closing fix is 459e425dAhmet Kaan Gümüş · ed7f0af
lane/av1422open2: both census2 cells are byte-exact at current main -- the closing fix is 459e425d

s422_320x246 and s422_322x246 are both 0/0/0 wrong Y/U/V samples against ffmpeg
8.1.3 at main 2be65e1b, 16 displayed frames each, first divergence none. Nothing
to fix and no site to name.

Both fixtures are already committed (sha256 aebd3a10... and ee96617f...), byte
for byte the census sweep artifacts the old report measured, and both sit
inside the green gate the_pinned_422_corpus_cells_decode_pixel_exact, run here
green with a non-zero per-plane coefficient-unit census on each.

Bisected by building a probe per commit and running the committed cmpff
comparator on each tree: the parent 1bc6f543 reads 0/7810/5531 and 0/3437/2222
(reproducing lane-av1422luma's own published red), 459e425d reads 0/0/0 on both.
The census's shrink-only reading was a correct observation of a wrong tree; the
same writer had a second half rather than there being a second writer.

Comparator liveness: 30 flip arms (2 cells x 5 frames x 3 planes), all moving
their own plane by exactly +1 and no other, mapping pinned before flipping. A
4:2:0 control cell is exact in the same run. The probe bypass was applied in
scratch trees only and every one is restored and removed.
Merge lane/av1knobshold: rank the exclusive KNOBS holdersAhmet Kaan Gümüş · b1dc4fe
Merge lane/av1knobshold: rank the exclusive KNOBS holders

28 running tests take knob_write. Together they hold the lock for 1634s.
The ~50s test that looked like a server wedge ranks 8th. The top four hold 62%
of that time: the_future_tpl_window (418s), filter_stage_bytes (228s),
the_lookahead_holds_one_group (212s), tile_bytes (157s). The two *bytes*
tests are throughput probes; shortening them would delete the measurement.
No lock change, no ignore. Report only.
lane/av1knobshold: rank the 28 running speed::KNOBS holders by wall timeAhmet Kaan Gümüş · df3d3a7
lane/av1knobshold: rank the 28 running speed::KNOBS holders by wall time

Measurement only: speed.rs untouched, no test shortened, no #[ignore] added.

53 tests take knob_write for their whole body (28 run, 25 ignored). All 28
running holders measured one-per-invocation with --test-threads=1; none hit
the 420s per-test ceiling or the 1500s global cap.

Total 1634s of exclusive KNOBS time. Top four hold 62%: the_future_tpl_window
(418s), filter_stage_bytes (228s), the_lookahead_holds_one_group (212s),
tile_bytes (157s). The 50s holder named in av1intertxwedge.report.md measured
50.27s and ranks 8 of 28.

Also maps lock_gate_counters: separate Mutex, 11 of the running KNOBS holders
take both locks.
Merge lane/av1intertxwedge: the inter tx-type wedge is a KNOBS convoy, not a hangAhmet Kaan Gümüş · 56662b6
Merge lane/av1intertxwedge: the inter tx-type wedge is a KNOBS convoy, not a hang

encoder::tests::an_inter_clip_codes_both_inter_set_tx_types_both_decoders_read_exactly
finishes in 50.5s alone, twice, identical hits and byte count. The encode holds
speed::KNOBS exclusively for that whole 50s. On a loaded host the harness parks
in futex_do_wait behind that lock and the log names whichever test printed last.
Host 3 later printed the same test ok. A 12-thread encoder subset reproduced the
wave14 thread shape (main parked, one sibling running, no aomenc child) and the
running thread moved between real encode frames, so it is a convoy, not a livelock.
No lock inversion: every site takes KNOBS then GATE_COUNTER_LOCK. No production
change, no ignore. The wave16 --skip of this test was a disposition of a misread
wedge; the test itself is fine.
lane-av1intertxwedge: the inter tx-type wedge is a KNOBS convoy, not a hangAhmet Kaan Gümüş · f1a1335
lane-av1intertxwedge: the inter tx-type wedge is a KNOBS convoy, not a hang

The wave14 wedge on an_inter_clip_codes_both_inter_set_tx_types_both_decoders_read_exactly
is not a hang in that test. Alone at --test-threads=1 it finishes twice, 50.56 s and
50.47 s, identical hits and byte count, 99% CPU and no child process.

The wait is speed::KNOBS (RwLock<()>). The test holds it exclusive across a ~50 s
encode, and the rest of the suite queues behind it; the wave14 signature (main in
futex_do_wait, one sibling R) is that convoy, and the test is named only because it
was last-printed. Reproduced at --test-threads=12: two subset runs still going at
30 min, final stack 7 of 9 threads parked on KNOBS against one worker, and the
target test printed ok in both.

Ruled out: no ABBA (every knob_write/lock_gate_counters site takes KNOBS then the
gate lock), no spin-wait (par.rs is condvar-based), no infinite loop. Sampled the R
thread three times at 20 s and it was a different thread each time, advancing
through different encode stages.

No fix: the cause is not local to this test. No #[ignore] added. The one asymmetry
worth a decision -- this test flips the same process-global lever as its two
siblings at encoder.rs:5513 and :5637, which both carry #[ignore = "sets
process-global search levers: run it alone"], while this one does not -- is logged
in the report rather than actioned.

Evidence, stacks and repro commands in lanes/av1intertxwedge.report.md.
Merge lane/av1floorshift: the floor-shift chroma planes were already per-axisAhmet Kaan Gümüş · 853835e
Merge lane/av1floorshift: the floor-shift chroma planes were already per-axis

The two sites the earlier reports named as floor->> allocators had already been
ported. decode_key_frame_tile_with_cdfs and decode_inter_tile allocate
(width >> ss_x, height >> ss_y). width and height are multiples of 4 (block grid
times 32, or mi times 4) and ss is a 1-bit header field, so the shift equals
round_ss for every k and every ss in {0,1}. Structurally exact, not corpus luck.

The odd cell is where a floor would show: 420_odd65x65_key is 65x65, crop 33x33,
not a floored 32x32. Counted shortfall 0 and crop-disagreement 0 on that cell, on
422_key_64x64, and on a 4:4:4 witness, with the allocator actually invoked on all
three. A static gate exhausts mi 1..=512 and ss in {0,1} on both the coded and
true extents. 4:4:0 is uncodable (subsampling_y needs subsampling_x) and is spelled
out rather than swept. No production code changed. The other halving hits in the
file are not plane allocations, are already closed, or are test-only.
lane-av1floorshift: the floor->> chroma planes are already per-axisAhmet Kaan Gümüş · 35997f1
lane-av1floorshift: the floor->> chroma planes are already per-axis

The two frame chroma plane allocators (decode.rs:36380 key frame,
54161 inter) size U and V as (width >> ss_x) x (height >> ss_y) --
already the per-axis form. The open question was floor vs crop: `>>`
floors where libaom's own producer (round_ss) crops.

Structurally exact, for every input: width/height are
block_grid(..) * 32, and ss is a 1-bit header field, so 32k >> ss ==
round_ss(32k, ss) for every k and every ss <= 1. The same for the
true extent (mi_cols * 4). No fix warranted.

Adds three counters and two gates: an invocation counter for
non-vacuity (the shortfall is 0 on every real input, so the gate
would otherwise pass with the instrument removed), a decidability
counter that names the floor/crop disagreement when one occurs, and
a shortfall counter that reads the allocator's OWN (cw, ch) rather
than recomputing the shift beside it -- an earlier draft recomputed
it and could not bite.

Mutation: restoring `width / 2, height / 2` at both sites reds with
an out-of-bounds read in the tile walk (the defect's real
consequence). Isolating it, one sample short of tripping that bound,
reds the gate's own assertion at 48 samples.
Merge lane/av1muchroma: the skip-arm chroma grid was the one short squareAhmet Kaan Gümüş · 9ceb046
Merge lane/av1muchroma: the skip-arm chroma grid was the one short square

The report that named every chroma_side * chroma_side site as too short at 4:2:2 was
wrong for 11 of 12. lane-av1-422j redefined chroma_side in decode_inter_block as the
enclosing square, (side >> ss_x).max(side >> ss_y), so those sites allocate twice their
per-axis extent. Shrinking them to the plane block reds the pinned 4:2:2 gates, because
the block-tail replay strides by chroma_side. The 4:4:4 quadrant arms are structurally
unreachable at 4:2:2 (guarded ss_x==0 && ss_y==0). Two side>64 walks are live at 4:2:0
and 4:4:4 and unreached by the committed 4:2:2 corpus; no fix was written for them.

The one short site is decode_block's SKIP arm, which kept side >> ss_x and sized a 64x64
block's chroma as 32x32 against a 32x64 plane block. Now chroma_side * chroma_height.
Latent: the only consumer sums the slice and reads grid[0], and a skip block is zeros,
so the seven pinned 4:2:2 gates stayed green either way. The new gate reads the
allocation's real length and reds by exactly 64 samples when the square is restored.
lane-av1muchroma: size decode_block's skip-arm chroma grid per axisAhmet Kaan Gümüş · 66fb257
lane-av1muchroma: size decode_block's skip-arm chroma grid per axis

The `chroma_side * chroma_side` mu-chroma sites split in two once measured.

Under decode_inter_block `chroma_side` is `(side >> ss_x).max(side >> ss_y)`
-- the ENCLOSING square lane-av1-422j introduced -- so at 4:2:2 those eleven
sites allocate 2.0x their per-axis extent: oversized, never short. The
block-tail mu_chroma_units replay strides the assembled grid by chroma_side,
so the square IS the writer/reader contract there; shrinking sites 11/12 to
chroma_w * chroma_h reds two pinned gates. Left alone.

decode_block has its own binding, `side >> ss_x`, which at 4:2:2 is half the
plane block: site 1 sized a 64x64 block's chroma at 32x32 = 1024 where the
plane block is 32x64 = 2048. Latent, not live -- the only consumer reduces the
plane through neighbour_state, which sums the slice and reads grid[0], and a
skip block is all zeros -- but an allocation half the block it names traps
the next per-row consumer. Sized per axis.

Gate: s422_322x240.obu, the smallest 4:2:2 fixture that reaches the site, with
two paired counters. skip_arm_chroma_rect_shapes is the non-vacuity arm (it
fires only where per-axis and square differ); skip_arm_chroma_short_samples
reads the allocation's real length and must stay 0. Restoring the square reds
it by 64 samples. A first draft keyed the counter on `chroma_side !=
chroma_height` and did not bite -- that proxy was replaced by the
length measurement.

Reachability, from an env-gated probe over the pinned 4:2:2 corpus (10
fixtures) and the 51 4:4:4 gates: sites 4/7/10 are guarded ss_x == 0 && ss_y
== 0, so 4:4:4 only -- unreachable at 4:2:2 structurally. Sites 2/8 are the
side > 64 mu-chunk walks: live at 4:2:0 and 4:4:4, unreached at 4:2:2, and
sound where they sit, so no fix was invented for the unwitnessed case. Sites
3/5/6/9/11/12 are reached and already correct.

palette_uv_side and the floor-> chroma plane allocators are untouched and
named still-open in the report.
Merge lane/av1paletteuv: palette_uv_side is the 4:2:0 plane block, and nothing else reaches itAhmet Kaan Gümüş · 94cba4d
Merge lane/av1paletteuv: palette_uv_side is the 4:2:0 plane block, and nothing else reaches it

tile.rs:5004 computes (side/2).max(4). That is libaom's per-axis plane block only when
ss_x == ss_y == 1. At 4:2:2 the map should be (side/2, side); at 4:4:4 it should be
(side, side). The decoder already reads the map per-axis, which is why those formats
are byte-exact today. The writer site is the square one left.

Measured unreachable for any non-4:2:0 shape: both encoder files' non-test source
resolves subsampling to exactly {(1,1)}; the five encode_key_frame_inner call sites
all pass a 4:2:0 constructor; Picture::check refuses 4:2:2- and 4:4:4-shaped pictures
by call; the public colour door writes headers only. A real 4:2:0 screen encode fires
9 chroma palette blocks and round-trips U/V exactly.

The gate states the arithmetic (the square is not the 4:2:2 or 4:4:4 map) and is
red-proven by dropping the halving, raising the floor, pinning the map to 4, and by
opening a non-4:2:0 door. Dropping .max(4) stays green and the test says why: the
admitted domain already halves to 4, so the floor is unreachable. No production code
changed. The mu-chroma square sites and the floor-shift chroma allocators stay open.
lane-av1paletteuv: gate tile::palette_uv_side as the 4:2:0 plane blockAhmet Kaan Gümüş · 0ec5cf8
lane-av1paletteuv: gate tile::palette_uv_side as the 4:2:0 plane block

palette_uv_side(side) = (side / 2).max(4) is named in
lanes/av1subsizesweep.report.md as a "4:2:2/4:4:0 palette map mis-sized"
site. Measured, not fixed: the value IS libaom's plane-1 block at 4:2:0
(blockd.h:1512 -> plane_block = block >> ss, +2 when under 4), and no
reachable path can hand the writer a 4:2:2 or 4:4:4 frame. The decoder's
counterpart (decode.rs:20914-20933) is already per-axis, which is why
those shapes decode byte-exact today.

Census in encode::tests::
the_chroma_palette_map_side_is_the_420_plane_block_and_nothing_else_reaches_it

  arm 1  the value equals libaom's per-axis formula over all 57 sides in
         palette_bsize_ctx's square domain, and the premise is stated as
         arithmetic: the square is NOT the 4:2:2 or 4:4:4 map
  arm 2  the non-test encoder names exactly one chroma shape, (1,1);
         key_frame_headers_colour (the only public door for a caller-chosen
         ColorConfig) reaches no tile writer; encode_key_frame_inner has 5
         non-test call sites, all 4:2:0; Picture::check refuses a 4:2:2-
         and a 4:4:4-shaped picture, by call
  arm 3  a real screen-content encode fires 9 chroma palette blocks and
         round-trips U/V exactly, so arm 1 is not arithmetic over dead code

Five mutations measured biting: drop the halving, raise the floor, pin the
map to 4, flip Colour::color_config to subsampling (0,0), and add one
crate::tile:: line to key_frame_headers_colour. Dropping .max(4) is NOT a
mutation -- palette_bsize_ctx refuses bw*bh < 64, so side 8 already halves
to 4 and the floor is unreachable in the admitted domain; the test body
says so instead of leaving a green floor-mutation reading as coverage.

Runs: --lib palette 26 passed / 0 failed; --lib screen 19 passed / 0 failed
/ 4 ignored; 4:2:2 pin 16 chroma palette unit windows and 4:4:4 pin 4
windowed palette chroma units, both byte-exact vs aomdec. The full --lib
suite exceeded a 3000 s local timeout mid-run (server job by project rule).

Still open, named not edited: the mu-chroma chroma_side*chroma_side sites
and the floor->> chroma plane allocators. The forward unblock is also
named: if a non-4:2:0 encoder colour config ever appears, write_color_index_map
and palette_uv_bits both take a single `side`, so the map writer must go
per-axis (bw, bh) the way decode_color_index_map_wh already is before any
non-4:2:0 palette can be written at all.
Merge lane/av1p1pin: pin the 4:4:4 sb128 chroma-tile witnessAhmet Kaan Gümüş · 81fd9b0
Merge lane/av1p1pin: pin the 4:4:4 sb128 chroma-tile witness

lanes/av1witness2recheck rebuilt the hunt's P1 recipe and found it byte-exact on main,
but the bytes were not pinned -- the existing 4:4:4 sb128 fixture is a different stream.
Rebuilt from the report's exact ffmpeg and aomenc lines: 595 bytes, sha256
68773f2c6e01a2d211bf0213479accb4c2c360132c0e1bc3b326eab7861925b1, matching the hunt.
Recipe did not drift.

The gate compares all 3 frames and 3 planes against both aomdec rawvideo and ffmpeg
yuv444p, and asserts the guarded 128-root VERT path fired (edge-VERT 6, part128 VERT 6,
intra VERT 6; the HORZ counters stay 0, which is this stream's shape). Three mutations
red it: the counter ceiling, one aomdec sample, one ffmpeg sample. No decode-path change.
lane-av1p1pin: pin the 4:4:4 sb128 128-root rect witness, gate it byte-exactAhmet Kaan Gümüş · c4b999c
lane-av1p1pin: pin the 4:4:4 sb128 128-root rect witness, gate it byte-exact

Recipe P1 of lanes/av1witness2recheck.report.md was measured but never
pinned: its 595 bytes lived only under /tmp. Rebuilt from the report's
exact ffmpeg+aomenc lines -- sha256
68773f2c6e01a2d211bf0213479accb4c2c360132c0e1bc3b326eab7861925b1, so the
recipe did not drift.

Pinned as fixtures/444_sb128rect_chroma_tile_witness.obu (distinct from
444_sb128rect_lr_witness.obu) and gated by
a_444_sb128_rect_chroma_tile_witness_is_byte_exact: all 3 frames, all 3
planes byte-exact vs aomdec and ffmpeg yuv444p rawvideo, plus census
deltas proving the guarded 128-root VERT chroma tiling fired 6 times
(edge_vert, part128 vert, intra_vert) with HORZ still 0.

Non-vacuous, three mutations, three reds: counter expectation 6->7 reds;
a flipped U sample reds the aomdec arm; a flipped V sample placed after
the aomdec block reds the ffmpeg arm alone. No decode-path edit.
Merge lane/av1graincensus: census the picture the caller receives, after grainAhmet Kaan Gümüş · 927c533
Merge lane/av1graincensus: census the picture the caller receives, after grain

census_unwritten_final runs before apply_grain, over the clean planes. The grain
destination is allocated uninitialised and written by the band copy, so the picture
the caller receives on a grained frame was the one buffer no census had looked at.
lanes/unwritten-dep.report.md sections 6 and 8 declined to claim it. This measures it.

The census sits inside apply_grain, on both returns, so the property is the
function's rather than one of the four stream.rs call sites. uninit_plane poisons
the buffer only when the sentinel is live; every shipped build keeps the
with_capacity plus set_len corner-cut.

A poison count cannot see a sample that was READ and then overwritten -- the noise
kernels overwrite every sample they read -- so the initial-content gate (two fills,
0xDEAD vs 0xBEEF) now includes the grain fixture. Neutering the clean-row copy is
invisible to the poison census and reds that gate.

Proven: deleting the post-grain call reds with "scanned 0 samples ... class:
census-never-ran". Grain fixtures stay byte-exact vs ffmpeg.
av1graincensus: census the grained picture, and cover uninit_plane's unsafeAhmet Kaan Gümüş · 852b5e2
av1graincensus: census the grained picture, and cover uninit_plane's unsafe

census_unwritten_final runs in stream.rs before apply_grain, and
apply_grain is the one stage after it that allocates a NEW picture:
film_grain::uninit_plane, Vec::with_capacity + set_len, no fill.
lanes/unwritten-dep.report.md sections 6 and 8 both decline to claim
anything about that buffer, so the picture the caller actually receives
was unmeasured.

- decode.rs: census_unwritten_grained at apply_grain's return, with its
  own GRAINED_UNWRITTEN_SAMPLES / GRAINED_CENSUS_SCANNED pair. The
  scanned/found pairing is the same one the other two censuses use, so a
  build with the call deleted cannot pass. census_sentinels is now the
  shared counting body, returning None when the fill is off, so neither
  caller can publish a meaningless zero. plane_poison and
  plane_sentinel_on become pub(crate) so the fill and the count cannot
  disagree about the value or the predicate.
- film_grain.rs: uninit_plane fills with that poison when
  plane_sentinel_on(). Counting == poison over ambient garbage is not a
  census -- a hole survives with probability ~1/65536, not always. With
  the sentinel off, every shipped build, the allocation is still
  with_capacity + set_len, so the documented corner-cut is untouched.
  Both returns of apply_grain census, so the property is the function's
  rather than one branch's.
- stream.rs: the gate, a synthetic control counting 5 rather than the
  pre-grain arm's 7 (so reading the wrong counter reds), and per-fixture
  scanned > 0, which is reachable only by grain having run.

Measured 0 unwritten on s422_grain_160x128, grain_cdef_lr_128x128 and
reelb_arf_witness. Mutations: deleting the call reds via scanned > 0; one
sentinel sample forced into a grained picture reds with exactly 3, the
fixture's 3 grained frames.

Class sweep, same lane: with copy_clean_rows neutered the census stays
correctly 0 -- the noise overwrites every sample it reads -- so it cannot
see a READ of uninitialised memory. That gate had no grain fixture at
all, leaving uninit_plane's unsafe uncovered; s422_grain_160x128 is added
and proven to bite (allocdet goes red on the same mutation, 0xDEAD vs
0xBEEF).

Report: lanes/av1graincensus.report.md
Merge lane/av1sitecensus: two subsize guards claimed per site, not per levelAhmet Kaan Gümüş · f5333e1
Merge lane/av1sitecensus: two subsize guards claimed per site, not per level

The walk census claimed two guards by LEVEL, so deleting either left the test green.
The key-frame 8x8 SECOND resolution (decode.rs:37621) feeds decode_leaf_rect8 on a raw
part8 whose VERT shape is 4x8, BLOCK_INVALID at 4:2:2; the census's AtResolution(KF, 8)
row finds the OTHER 8x8 guard in the function. The inter decoder's own 128-root guard
(decode.rs:54495) sits above match part128, whose half128_inter arms descend into 128x64
and 64x128 rects, also BLOCK_INVALID at 4:2:2; no row claimed it because the inter
decoder never routes through read_sb128_root.

Each new row is anchored on a string unique in the decode body and searched FROM that
anchor, not from the function top -- the find()-returns-the-first-guard defect, closed
once already in this file. Deleting either guard reds the census and names the site.
No decode-path line changed.
lane/av1sitecensus: claim two subsize guards per SITE, not per levelAhmet Kaan Gümüş · 1698dbd
lane/av1sitecensus: claim two subsize guards per SITE, not per level

W1-6 from the refusal plan, closing av1subsizesweep "Not closed" #2.

The walk census claimed every guard by LEVEL, so two guards were deletable
without the test noticing:

  - decode.rs:37621, the SECOND key-frame 8x8 resolution. The
    decode_leaf_rect8 row is AtResolution(KF, 8), which finds the FIRST
    (8, 8) guard in the function, 37322.
  - decode.rs:54495, the inter decoder's OWN 128-root guard. The
    decode_block_128rect row names read_sb128_root, which the inter
    decoder never routes through, so nothing claimed it at all.

Both feed BLOCK_INVALID-at-4:2:2 rect walks (4x8 off a raw part8; 128x64 /
64x128 off the half128_inter! arms).

New section (g) of
every_chroma_walking_leaf_dispatch_is_guarded_or_closed_with_a_reason: one
row per site, anchored on a string unique in the decode body, searched from
the anchor rather than the function top, with the dispatch required to
follow the guard. Deleting either guard reds the row and names the site;
moving it below the dispatch reds the ordering assert.

Both mutations proven red and restored; the diff is the +128 of the new
section alone. No decode-path line touched. Closes #2 only -- the census is
still a derived site list, so #1 stands.
Merge lane/hash0ee1edf403: the campaign value is not an artefact shapeAhmet Kaan Gümüş · e4f7cf8
Merge lane/hash0ee1edf403: the campaign value is not an artefact shape

The one campaign measurement never explained -- reelb_rect64_intra16x4_witness's sentinel
hash 0ee1edf403 at 8d6998d7 -- was swept by a byte-exact truncation sweeper (SHA-256 state
walked one byte at a time, digest checked after every offset, 629821474 shapes per frame
order, both lex and numeric order) plus run-to-run nondeterminism, film-grain planes,
cross-fixture contamination over the whole corpus, hash-function variants, swapped columns,
and every dump rung. Zero matches.

The sweeper has teeth: it reproduces reelb_arf_witness's known truncation (97ef82c0ce) at
exactly frames 0..4 plus 13320192 bytes of frame 5, the shape the earlier lane reported by
hand. The negative is therefore a measurement, not a silence.

The finding: on 8d6998d7 the plain and sentinel runs produce BYTE-IDENTICAL frame files, so
every artefact shape collapses to the campaign's own plain value a26438168c. No shape sweep
can reach 0ee1edf403 -- the divergence lies outside the artefact space, and the decode is
proven invariant under every ambient content tested. The value stays an open instrument
question, not a decode defect, and the truncation class that produced its sibling is closed
by dumpio.
lane/hash0ee1edf403: the campaign value is not an artefact shape, and the sweep now runs at one-byte granularityAhmet Kaan Gümüş · 989776d
lane/hash0ee1edf403: the campaign value is not an artefact shape, and the sweep now runs at one-byte granularity

0ee1edf403 (reelb_rect64_intra16x4_witness.obu at 8d6998d7, sentinel run) is still
not reproduced, and the report argues why a further shape sweep cannot reach it:
the plain and sentinel runs produce BYTE-IDENTICAL frame files here, so every
shape built from this tree's bytes collapses to the campaign's own plain value
a26438168c.

What is new is the granularity. hash0ee1-trunc.c walks a SHA-256 state one byte
at a time and checks after every offset, so the truncation family is closed at
offset 1 rather than 4096: 629821474 shapes per frame order, both orders, zero
hits. The sweeper is validated on the control that IS a known truncation --
reelb_arf_witness's 97ef82c0ce is found at exactly frames 0..4 plus 13320192 bytes
of frame 5, the shape unwritten-dep reported by hand -- and its SHA-256 is pinned
against hashlib.

Also swept here, none of it reaching the target: run-to-run nondeterminism at
N=8 per fill under MALLOC_PERTURB_, MALLOC_MMAP_THRESHOLD_=0 heap recycling, four
thread counts and CPU oversubscription; the film-grain uninitialised plane, which
EC_AV1_PLANE_SENTINEL does not gate and which NO_GRAIN shows does not reach
output; cross-fixture directory contamination for all 126 other fixtures, whole
and truncated; mixed-fill directories; 3706 gap/run/substitution byte sets; 140
splices; 36 hash-function and listing forms; all 127 fixtures x 2 fills x both
orders (the target is not another fixture's hash); and all ten EC_AV1_*_DUMP
rungs.

Verdict stays OPEN with the candidate list narrowed to host-specific ambient
content reaching output on the campaign host, an unmeasured build, an unguessable
harness shape, or a transcription slip -- each with its falsifier. Read-only on
the decode path: no crate source is edited.
Merge lane/h26xpinloud: the h26x test pins fail loudly on an Ok-but-short writeAhmet Kaan Gümüş · 3dd5d25
Merge lane/h26xpinloud: the h26x test pins fail loudly on an Ok-but-short write

ec-h264 and ec-h265 wrote their test pins with fs::write(..).ok()? and handed the path
straight to ffmpeg as decoder input. The Err path was closed (the helper bails), but a
write that returns Ok while leaving a short file was not -- ffmpeg would then read a
truncated stream and the test would report a wrong or missing comparison, not a failure.
The same silent-truncation class the ec-av1 dump and pin lanes closed, one hop removed.

A per-crate helper (not a cross-crate dependency) stats the file after the write and fails
loudly with the site, the path, the bytes on disk, the bytes owed, and the OS error -- or,
for the write that returned Ok and left a short file, the explicit statement that there was
no OS error. The failure semantics each site already had are kept: the callers bail, and
the one site that panicked before keeps a panicking twin. The sweep found a fifth
same-shape site (ec-h265's write_au) and fixed it too, and made the rd-trace write fatal
where a length check is impossible (append mode, no knowable total).

Proven with a real Ok-but-short write: a /dev/null symlink makes fs::write return Ok with
on-disk length 0 for 1234 bytes owed, and each crate's test asserts the failure line names
the path and the shortfall, then a whole-file control reads back byte-identical.
Merge lane/av1witness2recheck: the two witness2 4:4:4 panics are closed on mainAhmet Kaan Gümüş · fcbe228
Merge lane/av1witness2recheck: the two witness2 4:4:4 panics are closed on main

A measurement lane: no code changed. It rebuilt the hunt's two exact recipes (sha256
68773f2c.. and 72bed279.., byte-identical to the hunt's, so the recipe did not drift) and
decoded both with a provenance-checked probe built from its own tree.

Both decode clean on current main -- 3 frames, 320x256, empty stderr, no refusal -- and
both are byte-identical to aomdec --rawvideo AND to ffmpeg -pix_fmt yuv444p rawvideo. At
fe3e8418, P1 panicked at decode.rs:17631 (the chroma-tiling assert) and P2 panicked at
decode.rs:3766 (index 16 of a 16-entry table in reconstruct). Both are closed: P1 by
349b3918 (lane-av1-444sb), P2 by b6d4b528 (lane-av1leaf8oob), and the byte-exactness of
BOTH traces to one shared commit fa70a68c (4:4:4 intrabc rect chroma: size the plane block
from ss_size_lookup, not a halving) -- exact at that commit, not exact one before.

No Wave-1 lane to charter. P1's bytes are not pinned in-tree (the existing 4:4:4 sb128
fixture is a different stream); the bytes and the recipe are preserved in the report.
lanes/av1witness2recheck: W1-7 -- both witness2 4:4:4 panics are closed on mainAhmet Kaan Gümüş · b407ed7
lanes/av1witness2recheck: W1-7 -- both witness2 4:4:4 panics are closed on main

Re-ran the hunt's two exact recipes at b8385c93. Both reproduce the
fe3e8418 bytes byte-for-byte (68773f2c... / 72bed279..., no recipe drift),
and both decode clean AND byte-exact against aomdec and ffmpeg on main.

Control: the same streams panic at fe3e8418 at the hunt's own lines
(decode.rs:17631 128-rect chroma assert, decode.rs:3766 OOB in
PlaneBuf::reconstruct), so the witnesses are still live; only main moved.

P1 closed by 349b3918 (lane-av1-444sb, the ss-aware 128-rect chroma unit
walk; the assert is now the per-axis invariant at decode.rs:24515).
P2 closed by b6d4b528 (lane-av1leaf8oob, decode_leaf8's intrabc closure
sized chroma with the 4:2:0 halving; its gate pins these exact bytes as
fixtures/444_leaf8_oob.obu and passes here).

Byte-exactness on both streams is a later, shared fix: fa70a68c, measured
directly as exact at fa70a68c and diverging at f33b9d41.

No Wave-1 lane to charter for either site. P1's bytes are not pinned
anywhere in-tree; noted in the report if a permanent 4:4:4 sb128 fixture
is wanted.

No code edited, no fixtures committed.
Merge lane/av1oracleguard: the 4:2:0 ffmpeg oracle helpers refuse a non-4:2:0 streamAhmet Kaan Gümüş · 269e1fd
Merge lane/av1oracleguard: the 4:2:0 ffmpeg oracle helpers refuse a non-4:2:0 stream

After the 4:2:2 lift, the three 4:2:0 oracle helpers (ffmpeg_decode_sequence and its 10- and
12-bit twins) would silently CONVERT a 4:2:2 or 4:4:4 stream to 4:2:0 (-pix_fmt yuv420p,
width*height/4 sizing), so a 4:2:2 gate built on them would compare the wrong planes and
pass green. assert_420_oracle_stream reads the stream's OWN color_config subsampling from
its sequence-header OBUs and refuses before the ffmpeg spawn, naming the real subsampling,
the chroma shape, and the sibling helper to use.

Proven both ways: a flipped oracle sample moves the comparator's count by exactly one (and
nothing else moves), so 4:2:0 still measures byte-identical; and a 4:2:2 pin is refused by
all three helpers, with the message naming the sibling -- red before, green after, and the
red failure text is the hazard itself. Verified no existing gate feeds a wrong-shape pin to
these helpers (the 4:2:2/4:4:0 pixel-exactness battery stays green).
Merge lane/av1bookkeep: the inventory's two unregistered rows, and the seventh 4:2:2 cellAhmet Kaan Gümüş · 53601b1
Merge lane/av1bookkeep: the inventory's two unregistered rows, and the seventh 4:2:2 cell

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.
ec-av1: the 4:2:0 ffmpeg oracle helpers refuse a non-4:2:0 streamAhmet Kaan Gümüş · 8b97983
ec-av1: the 4:2:0 ffmpeg oracle helpers refuse a non-4:2:0 stream

`ffmpeg_decode_sequence`, `_10bit` and `_12bit` ask ffmpeg for a 4:2:0
pix_fmt and slice chroma at `width * height / 4`. ffmpeg does not refuse a
mismatched stream, it CONVERTS it, so the helper's own byte-count assert
still passes and a gate built on it compares converted chroma against our
real 4:2:2 chroma and passes green. `lanes/av1subsizesweep.report.md` names
this as the dangerous form.

Each helper now reads the stream's OWN `color_config.subsampling_x/y` from
its sequence-header OBUs (the `stream_bit_depth` pattern) and refuses
anything but (1,1), naming the real subsampling, the chroma shape it means,
and the sibling to use. The guard is the first statement, before the spawn,
so a host without ffmpeg still proves it. The correct siblings
(`_422`, `_422_depth`, `_444`) already existed.

The `_10bit` sibling was not in the assignment's target list but is the same
hazard with the same arithmetic, so it got the same one-line guard. The diff
is 256 insertions and 0 deletions: every existing line is byte-identical, so
the 4:2:0 path is unchanged by construction.

Non-vacuity both ways: on the 4:2:0 pin `420_mixll_256x128_6f.obu` the
per-plane mismatch count is [0,0,0] and one flipped oracle U sample moves it
to [0,1,0]; and `422_key_64x64.obu`, `s422_352x242_10b.obu` and
`s422_12bit_160x128.obu` are refused with (1,0), 4:2:2 and the sibling name
in the message. Reducing the guard to a no-op turns both refusal tests red.

No pre-existing test fed a non-4:2:0 stream to these helpers: a fixture-keyed
scan of every test function returns only this lane's own refusal tests, and
the shape-filtered run (68 tests) and the `pixel_exact` family (257 tests)
are green with EC_AV1_REQUIRE_FFMPEG=1.
lanes/av1bookkeep: the lane report for the inventory rows and the seventh 4:2:2 cellAhmet Kaan Gümüş · 2af0609
lanes/av1bookkeep: the lane report for the inventory rows and the seventh 4:2:2 cell

Two commits of code, this file third. It records the measurements both commits rest
on, the red proofs (row deletion x2, guard-wording mutation, fnv mutation), and what
this lane did NOT establish: the charter's "94-cell census on the merged tree" has no
artifact in lanes/ or ~/.cache/census422*/, so it is neither reproduced nor cited --
what is measured is the 95/95 ffmpeg-oracle run on this tree, which is a different
instrument and is labelled as such.
ec-av1: the seventh 4:2:2 corpus cell is pinned, and re-measured exact hereAhmet Kaan Gümüş · d6ceb79
ec-av1: the seventh 4:2:2 corpus cell is pinned, and re-measured exact here

the_pinned_422_corpus_cells_decode_pixel_exact carried six of the seven cells
lanes/av1422ffmpegbase.report.md 2.1 measured as diverging, and its doc said why
the seventh was missing: "THIS BRANCH MUST NOT LAND UNTIL THAT CELL CLOSES AND
THE CORPUS RE-MEASURES 51/51". s422_384x240 has since closed -- lane-av1422tailskip
measured it byte-exact on all 16 displayed and all 17 decode-order frames and
refuted the group-tail chroma SKIP arm the risk study's R4 blamed -- so the first
half of that condition is met and the row belongs in the gate.

Re-measured on THIS tree, not taken from the closure report, with
EC_AV1_REQUIRE_FFMPEG=1 and the crate's own comparator (ffmpeg, display order,
yuv422p): byte-exact on all 16 frames, per-plane coefficient-unit census
delta units [1992, 1254, 1256] and coded [955, 742, 854], so the compare is not
vacuous with respect to 4:2:2. The sibling gate on the same bytes
(the_pinned_422_palette_intra_in_inter_cell_window_is_byte_exact) also runs green
here: 17 decode-order frames byte-exact against aomdec, 16 chroma palette unit
windows.

The row pins 422_palette_intra_in_inter_384x240_17f.obu rather than committing a
second copy of the sweep's s422_384x240.obu: lane-av1422tailskip had already
committed those exact bytes under that name and the two files are byte for byte
identical (sha256 bf1c658e...a4b815b, 19344 B, fnv1a64 0x923ccabfcb933e90). One
stream, one pin.

Row non-vacuity: mutating that row's fnv1a64 by one turns the gate red on
"[422_palette_intra_in_inter_384x240_17f.obu]: bytes drifted", so the row is
read and compared. (Mutating the sha256 column stays green by design -- it is
the corpus's identity column for a re-capture, not an in-process assertion.)

The doc's "Why these six" paragraph is corrected rather than extended: the
seventh is NOT a round_ss cell. 384x240 is 8- AND 16-aligned; it was the
late-starting frame-1 alt-ref chroma residual, so it is described as its own
class rather than folded into the non-8-aligned-geometry sentence.

The gate's own landing condition had a second half -- "AND THE CORPUS RE-MEASURES
51/51" -- so it was run here rather than assumed: the census's ffmpeg-oracle driver
(~/.cache/census422b/ffcensus.py, display order, shown frames, geometry from ffprobe,
a count over zero frames is a hard error) against a dump_yuv built from THIS lane's
tree. 51 of 51 4:2:2 cells BYTE-EXACT, s422_384x240 among them at 0/0/0, and the
same run put all 44 4:2:0 / 4:4:4 controls at BYTE-EXACT (95/95 over the corpus).
Every remapped stream path's sha256 was checked against the census's recorded sha
before use; 0 unresolved. Limits: ffmpeg oracle, display order (the aomdec
decode-order census was not re-run), and the census's probe_split_control is
obsolete now that the lift has landed.
ec-av1: the inventory listed 33 strings and PROVEN carried 31 rowsAhmet Kaan Gümüş · abb01bd
ec-av1: the inventory listed 33 strings and PROVEN carried 31 rows

Nothing compared the two sets. every_proven_refusal_names_a_test_that_exists
walks PROVEN -> "is this string still a live decode-path refusal, and does its
gate quote it", so a refusal ADDED to REFUSALS with no proving gate was
invisible: on main the BLOCK_INVALID subsize refusal and the lone filter-intra
capability claim were both listed and both unmeasured, and the module's own
printed counts (32 refusals + 1 capability claim, 31 proven) sat 17 lines apart
without anyone comparing them.

Both rows are registered:

- the BLOCK_INVALID subsize refusal (refuse_invalid_plane_block, libaom's
  get_plane_block_size rule at decodeframe.c:1456) ->
  a_422_header_over_a_420_tile_refuses_the_subsize_libaom_calls_corrupt,
  NegativeGate. That gate asserted only the libaom citation INSIDE the refusal
  ("invalid with this subsampling mode"), so a reworded guard stayed green as
  long as it kept citing decodeframe.c:1456; it now quotes the refusal WHOLE
  and asserts our own string on the error. Proven non-vacuous by mutating one
  word of the guard ("no chroma" -> "no CHROMA"): the gate reds at stream.rs on
  the new assertion, where the old one would have passed.
- the filter-intra capability claim ->
  a_sb_level_horz_vert_strip_admits_no_filter_intra_symbol, Enumeration. Its
  body already quotes the claim's leading clause, which is what that anchor
  check accepts.

Anchor strength moves from 25 WHOLE / 6 LEADING CLAUSE to 26 / 7 over 33 rows,
0 matching neither.

New test every_listed_refusal_and_capability_claim_has_a_proven_row holds the
other direction (listed string -> a row that proves it) and requires the two
sets to be one to one. Red proof: deleting either new row turns it red on its
own assertion, naming the unmeasured string.
h26xpinloud: the h26x test pins fail loudly on an Ok-but-short writeAhmet Kaan Gümüş · 3aa53dd
h26xpinloud: the h26x test pins fail loudly on an Ok-but-short write

ec-av1 already owns this class (dumpio::LoudDump: declare the expected byte
count, write, then stat the file's own length). These two crates had no
shared helper, so four sites called fs::write directly:

  ec-h264/tests/encode.rs:475  ffmpeg_decode    -> ffmpeg -i <stream>
  ec-h264/tests/encode.rs:1068 x264_encode_qp   -> ffmpeg -i <raw>
  ec-h265/tests/encode.rs:289  ffmpeg_decode    -> ffmpeg -i <stream>
  ec-h265/tests/encode.rs:341  x265_encode_qp   -> ffmpeg -i <raw>

Each was fs::write(&path, bytes).ok()?. That closes the Err path; the
Ok-but-short path stayed open, and it is the one that hands another tool a
silently truncated stream, which then reads as a wrong pixel or a shifted
PSNR number rather than a write failure. Measured: 1234 bytes written
through a path that looks like a stream file but whose filesystem accepts
every byte and stores none returns Ok, and the file on disk is 0 bytes.

Each site now goes through a per-crate pin_loud: write, then check the
on-disk length against the same bytes.len() the writer used, and fail with
the path, both counts, and the OS error. The helper returns the failure
LINE, not a panic, because these callers bail (or, at one h264 site, turn
None into a SKIP) today and that semantics is kept -- the shortfall is
printed in full and the existing bail stands. Only write_au panicked
before, so only it gets the panicking twin.

The helper is local per crate (no cross-crate dep, no new support crate):
ec-h265 keeps it in tests/common/mod.rs because its fifth site lives in a
different test binary, ec-h264 keeps it in tests/encode.rs where both of
its sites are.

Two non-vacuity tests per crate: a /dev/null symlink reproduces a genuine
Ok-but-short (0 of 1234), with a whole-file control read back byte for
byte; and a child under `ulimit -f 1` with SIGXFSZ ignored proves the Err
arm reports what actually LANDED (512 of 4096, EFBIG) rather than the
count the writer confirmed. Deleting the check turns the first RED.

Sweep of both crates: five sites fixed (the four named plus ec-h265's
write_au, File::create + write_all, whose path goes to ffmpeg the same
way), and one more -- ec-h264's append-mode $EC_H264_RD_TRACE writer,
which discarded its write result -- made fatal instead, because append
mode has no knowable total and so admits no length check. Everything else
in the two crates is ffmpeg's own output, a read-only path, a directory,
or an in-memory BitWriter.

Success path byte-identical: same bytes, same path, truncate-then-write.
Merge lane/ecimagewallclock: the animation budget tests are byte bounds, not clocksAhmet Kaan Gümüş · 69db758
Merge lane/ecimagewallclock: the animation budget tests are byte bounds, not clocks

The ec-image budget test's panic on a server was its own elapsed time (3.89 s against a 2 s
ceiling): the assertion measured the host's memcpy bandwidth, not the property it was
written for (that the budget guard refuses before unbounded work). Distribution on the
workstation: 0.747-0.893 s across 15 runs for byte-identical decoder work, a ~5x spread
across hosts.

The bound is now BYTES, measured by a per-thread counting global allocator in the test
binary, asserted against the decoder's own Limits::max_total_alloc (4 GiB) -- no fitted
constant. The deciding measurement: moving budget.spend one clone later reds the byte
bound at 5120024246 bytes against the 4294967296-byte budget, while the old clock measured
the same regression at a 1.006 s median and would have PASSED its own 2000 ms ceiling.

Honesty corrections from the refutation pass, folded in before merge: the byte bound is
an independent measurement, not the guard's own tally -- spend sums declared bytes at
chosen call sites while the tally sums actual layout.size() with realloc's full new size,
and the refusal's own formatting lands inside the measured window, so the two diverge by
construction and the red proofs are tests of their correspondence, not of an identity.
The SIGKILL mutation is labelled evidence about the mutation's severity, not a proof of
the bound, and the emulated concurrency figures are marked as inferred rather than
recorded. The tally deliberately measures allocation traffic, because the host difference
this class measures is memcpy bandwidth, which is a property of traffic.

Four wall-clock bounds swept the same way (webp and gif budget at 64 and 4096 frames, a
60000x60000 frame, and the LZW bomb); the refusal is still asserted; the discrimination
is red-proven; green is proven under emulated slowness (the server condition reproduced
locally at load average 46).
ec-image r2: the byte bound is an independent measurement, not the guard's own statementAhmet Kaan Gümüş · a4ec8d5
ec-image r2: the byte bound is an independent measurement, not the guard's own statement

Reframes the claim after the refutation pass found it unsound: AllocBudget::spend sums declared bytes at chosen call
sites while the counting allocator sums actual layout.size() (realloc full new size included) plus the refusal's own
formatting, so 'refused at the budget' does not by itself mean 'allocated no more than the budget' -- the lane's own
red proof is the counterexample (5120024246 bytes against 4294967296). The bound is described as an independent
measurement and the red proofs as tests of the correspondence. The SIGKILL mutation is labelled evidence about the
mutation's severity, not a proof of the bound. The emulated concurrency figures are marked inferred, not recorded.
Traffic (not net live bytes) is stated as the deliberate quantity.
ec-av1: the full suite found three real gaps the scoped runs never sawAhmet Kaan Gümüş · a668ef2
ec-av1: the full suite found three real gaps the scoped runs never saw

The server suite at the merged head (wave13) went 776/3/49 and BOTH hosts failed the same
three tests, so these are tree defects, not flakes:

- refusal_inventory: the BLOCK_INVALID subsize refusal added by lane-av1unwritten and
  lane-av1subsizesweep was never inventoried. The scanner collects the reason string from
  unsupported(...) joining line continuations, and it keeps escaped quotes, so the entry is
  written in the scanner's form.
- stack_budget: dumpio.rs landed without being registered in the by-value scan's FILES, so
  the sweep was blind to any by-value return landing in it. Registered.
- stream::tests::allocdet_child_decode: another child-helper test that asserted its
  ALLOCDET_FIXTURES unconditionally and reddened every full suite -- the same class as the
  1f4fcc84 hotfix, shipped one lane later. It now returns with a printed skip when invoked
  without the parent-set variable; the parent still fails when the child prints no census
  line, so the skip cannot hide a broken child. Swept: the four child helpers in the crate
  (dumpio x2, uwdep, allocdet) are all guarded now.

2026-10-02

ec-image: bound the animation budget tests by bytes, not by wall clockAhmet Kaan Gümüş · 46c7995
ec-image: bound the animation budget tests by bytes, not by wall clock

The WebP budget test asserted `elapsed < 2000 ms` and failed on a server
with 3.894534671s. That clock was never measuring the property the test
exists for. The decode is refused once the running total crosses
max_total_alloc; what the test protects is that the refusal happens
before decode_frames clones the whole canvas once per ANMF chunk. The
cost of a refused decode is a deterministic function of the budget and
the canvas size -- wall time is the host's memcpy bandwidth for a fixed
~4 GiB of traffic, which is exactly what differed between the hosts.

Measured, same input, 15 runs each: release 0.747/0.759/0.893 s (min/med/
max), debug 0.774/0.779/0.821 s, server 3.895 s. A 5x spread with
byte-identical decoder work. The existing 2000..3000 ms rerun escape
hatch does not help: 3.895 s falls outside the rerun window.

Replace it with a thread-local counting global allocator in the test
binary and bound the work in bytes against the decoder's own
max_total_alloc. The ceiling is not a fitted constant: it is the limit
the guard enforces, so "refused at the total budget" and "allocated no
more than the total budget" are the same statement.

Each budget test now decodes both a 64-frame and a 4096-frame file and
bounds both, so the cost cannot grow with the attacker's frame count --
a guard spent per input frame, or after the clone instead of before it,
is caught here, and no clock could tell those apart.

Red proof: moving budget.spend from before the clone to after it (one
canvas clone too many) reds on the byte bound at 5120024246 bytes. The
same mutation measures 1.006 s median through the old clock and would
have passed -- that is what decides it. Under load (16-40 spinners plus
direct-write memory hammers, load average 46) decode elapsed reaches
2.42-9.34 s, reproducing the server condition locally, while the new tests
stay green at 6.94-13.81 s per run.

Same class swept in the same file: the GIF budget test's 5 s ceiling, the
60000x60000 GIF frame's 100 ms ceiling, and the LZW bomb's 1 s ceiling
all become byte bounds (measured 4.096 GB, 421 B, and far under 1 MiB
respectively).

The tally is per-thread rather than a global atomic: cargo test runs
these in parallel, and a shared counter summed concurrent decodes
together (reported 6144529702 for a decode that allocates 4096023126).

cargo test -p ec-image scoped green: fuzz 18, differential 19,
real_library 2.

2026-10-01

Merge lane/av1pinloud: a short pin is loud, so the silent-truncation class leaves the pin path tooAhmet Kaan Gümüş · 04561ce
Merge lane/av1pinloud: a short pin is loud, so the silent-truncation class leaves the pin path too

The dump sites were made loud last; the TEST PINS were the residue that lane named and did
not fix. They wrote with `let _ = std::fs::write(path, bytes)`, so a partial write left a
truncated stream at exactly the path the next line's panic hands the reader ("stream pinned
at {}") -- the same silent-truncation class that produced two false defect rows from the
dump path.

Nine sites now go through `dumpio::pin` (a LoudDump wrapper: create, write, finish, so the
file's on-disk length is verified), plus the two EC_AV1_GATE_DUMP writes and the symtrace
flush, which gains the length check it never had. The one warn-and-continue site keeps that
shape on purpose -- its own assert three lines below is the real failure, and panicking on
the write would mask it -- but its warning now carries expected-vs-on-disk byte counts.
That changes what a failing gate PRINTS, and the report says so.

The site label is TEST_PIN, deliberately outside the env-var namespace: a real EC_AV1_PIN
env var exists (the scratch replay helper reads it), and reusing the name would misdirect a
grepp. Every pin site sits inside a branch already about to panic, so a pin failure cannot
turn a passing test into a panic; the success path is byte-identical and asserted by reading
the bytes back.

The class sweep is half-open and says so: the Err path at ec-h264/ec-h265's encode helpers
is closed, the Ok-but-short path is not, because `fs::write` returning Ok does not guarantee
the file's length.
ec-av1 r2: label the pin site TEST_PIN, correct the pin/pin_reporting doc split, amend the sweep rowsAhmet Kaan Gümüş · 2d08a6d
ec-av1 r2: label the pin site TEST_PIN, correct the pin/pin_reporting doc split, amend the sweep rows

- the pin site label moves out of the EC_AV1_* env-var namespace (no env var
  of that name exists; EC_AV1_PIN is the scratch replay helper's) so a triager
  grepping the failure line is not sent to the wrong thing
- pin_reporting re-implements the length check rather than wrapping LoudDump
  (whose failure channel is panic!); say so where a reader would assume
  otherwise
- the h264/h265 rows are half-open, not closed: fs::write returning Ok does
  not guarantee the on-disk length
ec-av1: route every test-pin write through dumpio::LoudDumpAhmet Kaan Gümüş · f3fd848
ec-av1: route every test-pin write through dumpio::LoudDump

The self-pin sites in stream.rs wrote with `let _ = std::fs::write(..)`
and then named the path in the panic that followed ("stream pinned at
{}"), so an ENOSPC/EFBIG left a TRUNCATED stream at exactly the path the
reader was told to replay -- the same silent-truncation class as the
dump path, one hop later. dumpio gains pin() (fatal) and pin_reporting()
(same failure line, returned not panicked); msac's symtrace dump folds its
hand-rolled check into the same writer.
Merge lane/av1uballoc: the plane allocation is zeroed, because a number said soAhmet Kaan Gümüş · 3330da8
Merge lane/av1uballoc: the plane allocation is zeroed, because a number said so

fresh_plane handed the decoder a padded plane over uninitialised memory, and its SAFETY
argument had been withdrawn by the same file's own measurement. Three closures were filed
and none taken, because the choice was between a perf cost and a new instrument. This lane
measured all three on the same streams and shipped the middle one: `vec![0u16; n]`
(calloc/alloc_zeroed) as the DEFAULT plane allocation. The unsafe `set_len` survives only
on the census arms (uninit, padzero, extzero), where uninitialised memory is the point.

Measured deltas against the uninitialised arm, interleaved medians in one binary:
4K 4:2:0 +0.84% (6937.7 -> 6995.7 ms), 4K 4:2:2 +0.81%, 1920x1080 -1.63%. The spread on
the 4K row is 10.2 ms, so the honest reading is "inside the noise band", not "free", and
the report says that rather than rounding to zero.

The stop condition did not fire: no fixture on this tree reaches an uninitialised read
(128 fixtures x 2 arms = 256 memcheck runs, zero uninitialised-value errors, identical
error-signature sets on all 128; 126 decode, 2 refuse). The refused fixture's contribution
is measured rather than assumed -- the plane is allocated, partially written and abandoned
mid-walk before the refusal, so its zero is a real zero -- and the report records the
standing point that a fixture contributing nothing is indistinguishable from one never
looked at.

The census now scans the padded tail as well as the true extent, as a strict complement,
with `plane_poison` refusing any value a legal sample could take.
ec-av1: pick the plane-allocation closure with a number, and ship the zeroed oneAhmet Kaan Gümüş · fd10b92
ec-av1: pick the plane-allocation closure with a number, and ship the zeroed one

fresh_plane handed the decoder an uninitialised buffer and the SAFETY comment
resting on "every sample is written before it is read". That premise was
withdrawn by lane/unwritten-dep's own measurement (224 caller-visible chroma
samples on 440_request_is_422) and the comment was left standing anyway, with
two closures filed and neither chosen: zero the allocation, or instrument the
reads. Choosing between a perf cost and a new instrument is not a measurement
lane's call, so this is that lane.

Measured, one stream at a time, one binary: EC_AV1_PLANE_ALLOC is an env arm
inside the crate rather than a build flag, because three separate builds cannot
make the comparison fair -- recycled-arena state, page-cache state and code
layout all differ between them. Medians of 11 interleaved runs, examples/
alloc_timing.rs (new) timing decode_stream_with and reading minflt around it:

  3840x2160 4:2:0 96f   uninit 6900.963 ms | fill +0.83% | zeroed +0.80%
  3840x2160 4:2:2 48f   uninit 4709.657 ms | fill +0.86% | zeroed +0.81%
  1920x1080 4:2:0 96f   uninit 1768.411 ms | fill -1.87% | zeroed -1.63%

The 4K deltas are ~6 sigma against a 7-10 ms run-to-run spread. alloc_zeroed is
NOT the free zero-page lunch its name suggests: zeroed and fill land within
0.03% of each other at every size, because glibc memsets a recycled arena block
just the same. Output hashes are identical across all three arms on every
stream. The 1080p sign flip is reproducible and unexplained; it is reported as
a number, not a story.

The read census, which is what the decision actually rests on. Three regions of
the allocation can hold a sample no block wrote, and the old census only
scanned one of them:

  1. the padded tail outside true_width x true_height -- unwritten by
     construction; 4,676,128 of 22,787,296 scanned tail samples over all 127
     fixtures, on 38 of them. The comment claimed "no decoder ever reads" it;
     that was self-certifying, so the tail is now counted like any other
     region.
  2. the true extent, where the withdrawn 224-sample case sat -- 0 unwritten of
     1,466,581,280 scanned. The witness is refused on main.
  3. pix_write's `prev` argument, which reads the destination sample before
     overwriting it on every store. Neither instrument can see it (the value
     never reaches a branch or a syscall, so a DEBUG build under memcheck on
     the uninit arm still reports 0 errors) and no hash moves -- but it is a
     read of initial content nonetheless.

Reads were measured two independent ways and both say zero, over the whole
corpus: valgrind memcheck on every fixture under both the uninit and the zeroed
arm (254 runs, 0 uninitialised-value errors, identical signature sets), and
differential poisoning -- 126/126 committed fixtures byte-identical under
0xDEAD, 0xBEEF and the zeroed closure, the 127th being the refused witness.
The memcheck instrument is shown live by mutation: a temporary env-gated read
of the plane's last slot makes the same binary report 12 errors from 4
contexts. Reverted.

So the shipped closure is PlaneAlloc::Zeroed (vec![0u16; n]). The unsafe is now
reachable only from the census arms, its SAFETY comment names the three regions
with their measured counts instead of a premise, and the refusal that closes
region 2 is stated as a refusal rather than a proof -- a hostile file picks its
own subsize values, and that check lives in the tile walk, not at the
allocation.

New gate stream::tests::the_frame_does_not_depend_on_the_plane_buffers_initial
_content: four child processes (two impossible poisons, sentinel-off+uninit,
sentinel-off+zeroed) over ten fixtures must agree on one FNV-1a hash each, with
a synthetic one-sample control first so the equalities cannot be vacuous and a
frames>0 assertion so two children that decoded nothing cannot agree. 4.6 s.

Not in this commit: a pooled plane buffer would make the closure ~free (take the
three buffers from a thread-local pool, zero each once at creation, return on
drop) but it changes PlaneBuf's ownership, which the wavefront workers hold.
Recorded in the report rather than done.

Full table, reader map, census and non-vacuity evidence: lanes/av1uballoc.report.md
Merge lane/av1dumploud: a short dump is now loud, at every dump siteAhmet Kaan Gümüş · 841ad80
Merge lane/av1dumploud: a short dump is now loud, at every dump site

Every dump site used to write with `let _ = f.write_all(...)`. A full filesystem, an
RLIMIT_FSIZE, or any ENOSPC therefore left a TRUNCATED dump and nothing said so -- and that
artefact is what produced two false defect rows earlier today (`reelb_arf_witness`'s sentinel
hash reproduces bit-for-bit as frames 0..4 plus a 13320192-byte frame 5) and an empty dump
that read as instability.

Eleven sites now declare their expected byte count and abort with the file, the bytes on
disk, the bytes owed and the OS error. Two sites say plainly that they cannot know a total
(the append-mode table dump has no end-of-run close; the ECDUMP handle is never dropped)
rather than guessing.

The proof is a real decode under a real RLIMIT_FSIZE, and it corrected the mechanism: the
kernel stores up to the cap and only then returns EFBIG, with write_all confirming none of
it, so an acknowledged-bytes count printed "wrote 0" over a 30720-byte file. The failure
line therefore reports the file's measured on-disk length and carries the acknowledged
count separately.

A sweep re-run with the loud writer in place is byte-identical to the earlier report
(a26438168c3c53a0 / 8d7a43bc5fcf840a, sizes [18524160], now asserted per frame). The
unexplained campaign value 0ee1edf403 stays open with the new evidence named.
ec-av1: every dump site fails loudly on a short writeAhmet Kaan Gümüş · 286530d
ec-av1: every dump site fails loudly on a short write

All 11 dump write sites in the crate wrote through `let _ = f.write_all(..)`.
A full filesystem, a quota or an RLIMIT_FSIZE therefore left a SHORT file on
disk and nothing said so -- the artefact behind two full days of chasing a
"decoder nondeterminism" that reproduced bit-for-bit as a truncated frame
(lanes/unwritten-dep.report.md: frames 0..4 complete plus 13320192 bytes of
frame 5), and behind an empty dump read as instability.

New `dumpio::LoudDump`: the caller declares the byte count from the geometry it
already has (per-axis extents, u16-vs-u8 sample width), `finish()` checks it
against the file's own length on disk, and any shortfall -- or a failure to
create the file at all -- aborts with

  ec-av1 dump FAILED [EC_AV1_FINAL_DUMP] <path>: wrote <on-disk> of <owed>
  bytes: <reason>

Two sites cannot know a total length (EC_AV1_DUMP_TABLES and the ECDUMP symbol
stream are append-mode, whole-run files); they say "of an unknown number of
bytes" rather than declaring a number they would have to invent.

The written count is the file's MEASURED length, not what write_all confirmed:
under RLIMIT_FSIZE the kernel stores up to the cap and only then returns EFBIG,
so a naive acknowledged count reported "wrote 0" over a 30 720-byte file.

Gates: a real decode under a real RLIMIT_FSIZE now FAILS with the line above
(child process, SIGXFSZ ignored, asserted against the fragment's real length),
plus /dev/full, uncreatable-path, under-declared-length and append-unknown arms.
The success path is byte-identical: the hg fixture sweep reproduces
a26438168c / 8d7a43bc5f, 3/3 each, 18524160 B per frame.

0ee1edf403 is still NOT reproduced (plain 3/3, sentinel 3/3, concurrent reuse,
7 RLIMIT caps, 204 prefix shapes: all plain value or no match). It stays open --
a SIGKILLed process emits no line at all, so that shape is not ruled out. What
is now closed is the silent-truncation class: every truncating cap aborts loudly
instead of leaving an artefact.
Merge lane/av1docrot: four comments that asserted mechanisms that are not thereAhmet Kaan Gümüş · 04f62da
Merge lane/av1docrot: four comments that asserted mechanisms that are not there

An independent sweep of measurement-stating comments found these; each fix states the true
claim and cites the evidence for it.

- census_unwritten's doc claimed "each frame's pre-deblock point" while the call sits at 2
  of the 4 apply_deblock entries (key path, non-pipelined inter path), and its "exact"
  claim was unbounded. Coverage is now named, the exactness is kept and narrowed to the
  per-axis extent it actually scans, and the uncovered paths are listed -- zero now means
  "no hole on the paths that reach this call".
- stage_dump_idx() is deleted rather than repointed: no callers, and the live per-var
  counter has its own doc.
- stream.rs no longer tells the reader to diff against EC_AV1_POSTFILT_DUMP, a rung the
  oracle script never defined; it names EC_AV1_POSTDEBLOCK_DUMP and its depth caveat.
- chroma_plane_block_codable's "what led here" keeps its historical measurement and now
  names the tree it was taken on, records that a later measurement did not reproduce it,
  and states the current behaviour (the witness is refused on main).
ec-av1: four comments claiming more than their own evidenceAhmet Kaan Gümüş · 61c5b15
ec-av1: four comments claiming more than their own evidence

Comment-only, plus one #[allow(dead_code)] function with no callers.

census_unwritten: the doc said "at each frame's pre-deblock point". It runs
at two of the four apply_deblock entries -- the key path and the
non-pipelined inter path. The encoder's filter search (replay_filters, over a
captured copy) and the pipelined inter branch (deblock already ran band by band
inside par) are not covered, and the doc now says so. The exactness claim is
kept and narrowed to the extent the scan actually reads, per axis.

stage_dump_idx(): deleted, no callers in the crate. Its doc duplicated the live
mechanism; the mc64 index paragraph now names dump_stage_idx, the per-var
counter the dumps really name their files from, and records that PREFILT_PICTURE_IDX
is bumped AFTER the dump sites, so load()-1 would have named the previous frame.

EC_AV1_DECODE_ORDER_DUMP: the doc pointed at EC_AV1_POSTFILT_DUMP, a rung that
does not exist in instrument-aom-oracle.sh. Now names EC_AV1_POSTDEBLOCK_DUMP
(rung 6) with its 1-byte depth caveat.

chroma_plane_block_codable "what led here": the hash measurement is kept and
annotated -- taken on 8d6998d7, not reproduced (five plain runs, one hash
a761118c8dd5c8d0, unwritten-dep.report.md s10/s13), and main now REFUSES the
witness, so those hashes are pre-refusal history. Facts (1) and (2) remain what
make the refusal correct.

Report: lanes/av1docrot.report.md
ec-av1: the census child test skips in a normal suite run instead of reddening itAhmet Kaan Gümüş · 0cd363d
ec-av1: the census child test skips in a normal suite run instead of reddening it

lane/unwritten-dep's child helper opens with an unconditional assert that
EC_AV1_PLANE_SENTINEL is set, and the test is in the crate's default test list, so every
full suite would fail on it. The parent already catches the case the assert wanted (it
panics when the child prints no census line), and the child's own non-census path below
the assert returns deliberately -- so the entry condition now returns when neither
UWDEP_CENSUS_SYNTHETIC nor UWDEP_CENSUS_FIXTURE is set, printing that it skipped rather
than passing silently. Swept the class: the five other tests that assert an env var at
entry are the EC_AV1_REQUIRE_* skip idiom, which is correct.
Merge lane/av1subsizesweep: close the residue, and the walk that dispatched around the guardAhmet Kaan Gümüş · 310e784
Merge lane/av1subsizesweep: close the residue, and the walk that dispatched around the guard

The residue named by the merged missing-refusal lane is closed at its resolution rather
than by a third guard: decode_rect4_16_intrabc's strip route derives a plane block of
(pw/2, ph/2) and own422 requires horz, so a VERT strip there would be BLOCK_INVALID at
ss(1,0); its single route is reached only through 16x16-level 1:4 arms, above the level
guard, and HORZ_4's (16,4) cell is legal, so the guard refuses exactly the invalid shape
and not the legal mirror.

What the sweep found instead is a real walk on main: the key-frame 16-level FRAME-EDGE arm
dispatched decode_leaf_rect straight from a gathered edge bit. A short column hands it
BLOCK_8X16, which libaom refuses ("Block size 8x16 invalid with this subsampling mode",
decodeframe.c:1456) -- our decoder walked it. Witness: 422_header_edge16_walk.obu (128 B,
sha256 e8ab2bb2...), decoded by main as 1 frame where aomdec reports a corrupt frame. The
fix names the LEVEL rather than a shape, so it reduces through partition_subsize_dims like
every sibling, and the legal 16x8 mirror keeps decoding.

Ships a walk-site census instead of a symbol-site census -- 19 walks, each with the luma
footprints its dispatch can hand it and the mechanism protecting it, with resolution rows
carrying the guard they depend on and unreachable rows gated by asserting the offending
set is empty. Two rows that a per-site deletion does not red are named as such rather than
papered over; the merged scan's resolution-count cross-check catches them.
lane-av1subsizesweep r2: a real witness, a derived read-spelling scan, a scoped censusAhmet Kaan Gümüş · bee9cbf
lane-av1subsizesweep r2: a real witness, a derived read-spelling scan, a scoped census

Main's r2 review was right on all counts. Fixed, plus the three items still
open from r1.

WITNESS. There is one, and the earlier "no witness exists" claim was wrong.
422_header_edge16_walk.obu (128 bytes) is a 4:2:2 sequence header over a 4:2:0
key frame's tile at 88x64. Width 88 is 8 mod 16, so the last 16x16 column block
is column-short and the frame-edge arm fires; height 64 is 16-aligned, so the
both-cut arm is not taken. aomdec says:

    Block size 8x16 invalid with this subsampling mode

and so do we. What makes this pin different from every other refusal gate here
is that the 8x16 is the ONLY offending subsize in the stream: over a
260-candidate sweep (4 card textures x 5 quantizers x 13 declared widths) it is
the one candidate whose decode with the guard DELETED SUCCEEDS -- the decoder
returned a full 88x64 picture where libaom refuses the frame. So the guard is
load-bearing, not a redundant second refusal, and the new gate reds when it is
deleted.

The witness had to be built from this crate's own encoder with a DECLARED width
(encode_key_frame_at_size, the gen_coverage_cells cell-2 construction): aomenc
rounds the coded size to even and never declares 88. That also corrects the
report: my earlier `partition_rect_allowed` explanation for the aomenc non-hit
was WRONG -- that gate governs the encoder's partition search, whereas this
arm's partition comes from a single gathered bit after a frame-edge geometry
test. Why aomenc never produces the shape is not known. Severity is a
false-accept, not a pixel divergence: libaom refuses the whole frame, so there
is no correct output to diverge from.

MATCHER GAP WIDENED, AND DERIVED. A partition-symbol READ is now defined as a
`dec.<name>(..)` call whose OWN ARGUMENT LIST names a `partition_w<N>[` CDF.
That needs no hand-list: `dec.symbol(..partition_w..)` qualifies, the frame-edge
gather's `dec.symbol_fixed(&gather(..partition_w..))` qualifies, and
`dec.debug_state()` does not. The old test's read test was the literal
`dec.symbol(`, which is not a substring of `dec.symbol_fixed(` -- that spelling
gap is what hid the hole. The `var == "b"` skip is gone too: edge reads are
sites now and must carry a guard for their own level before the first
chroma-walking dispatch after them. Stated limitation: the definition is
syntactic, so a read reaching a partition CDF through a helper that does not
name it would not be enumerated; there is no such call in this file.

CENSUS ROWS NOW CLAIM A REAL GUARD. r2 was right that AtResolution asserted only
that some shape was BLOCK_INVALID and never mentioned a guard, so rows 5-12 and
19's guard column were prose. A resolution row now CARRIES the guard it depends
on -- (function scope, level) -- and the check looks for
refuse_invalid_subsize((L,L)) inside that function and before the walk's first
call there. Per-guard deletion now reds the census on its own for ten of the
twelve guards. Two are claimed by LEVEL, not by site -- the key-frame 8x8 second
resolution and the inter decoder's own 128-root -- and are caught instead by the
merged scan's resolution-count cross-check; the report says so rather than
papering over it. Three inter rows were added, because the inter 32- and
64-level guards were previously claimed by nothing at all.

ORDERING CHECK NO LONGER VACUOUS. The per-route loop resolved each pair's guard
with find() over the whole decode body, which returns the FIRST 16x16 guard --
the key-frame one -- so the inter pair was satisfied by a guard three quarters
of the file away and deleting the inter guard left it green. Each pair now
scopes its guard search to its own enclosing function. Verified: deleting the
inter 16-level guard at 54809 reds naming decode_intra_rect_in_inter.

ALSO: the stale inter-edge citation (54720/54733 -> the reads, 54777/54790), a
one-line note that two edits leaked into the primary through relative paths and
were reverted before any commit, and the headline that the find came from
censusing WALK sites rather than SYMBOL sites -- that reframing is the only
reason the hole was visible.

cargo check --tests clean. 28 named 422/sub8/subsize/chroma_422 tests pass
(includes the new witness gate). 270 pixel_exact/byte_exact pass, which is the
over-refusal control at scale.
scripts: pin the 4:2:2 census probe to the merged-unwritten-dep buildAhmet Kaan Gümüş · 9448d3c
scripts: pin the 4:2:2 census probe to the merged-unwritten-dep build

Provenance-checked: the binary embeds no lane worktree path.