forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 2affdfd54f806848482200857a8f4d6e1f7d5fe1

2026-09-29

Merge lane-av1tilemeasure @ df1370dd — tile-rows / superres / odd-size cells the format sweep left openAhmet Kaan Gümüş · 2affdfd
Merge lane-av1tilemeasure @ df1370dd — tile-rows / superres / odd-size cells the format sweep left open

crates/ec-av1/src/stream.rs: the tile/depth sweep gates.
lanes/av1tilemeasure.report.md.
Merge lane-av1toolgates @ 4c4bd3e2 — gate enable-rect-tx at both depths on the PARSED partition shapeAhmet Kaan Gümüş · b1042e5
Merge lane-av1toolgates @ 4c4bd3e2 — gate enable-rect-tx at both depths on the PARSED partition shape

crates/ec-av1/src/stream.rs: two new enable-rect-tx witness gates (8-bit and
10-bit depth arms) that assert the decoded partition shape rather than the flag,
which is what closes the enable-rect-tx coverage hole.
Merge lane-av1mutproof @ ffd8d138 — report-only: mutation proof of the 4:4:4 10-bit and 12-bit format-sweep gatesAhmet Kaan Gümüş · 49056b3
Merge lane-av1mutproof @ ffd8d138 — report-only: mutation proof of the 4:4:4 10-bit and 12-bit format-sweep gates

Lanes lanes/av1mutproof.report.md only; no source, fixture or gate change.
Merge lane-av1gates444 @ 555c83f3 — three new measured-EXACT 4:4:4 lossy gates (66x66 / 130x122 / 256x128)Ahmet Kaan Gümüş · 4cf36e1
Merge lane-av1gates444 @ 555c83f3 — three new measured-EXACT 4:4:4 lossy gates (66x66 / 130x122 / 256x128)

- crates/ec-av1/src/stream.rs: a_444_lossy_odd_66x66_stream_decodes_pixel_exact,
  a_444_lossy_odd_130x122_stream_decodes_pixel_exact and
  a_444_lossy_256x128_stream_decodes_pixel_exact, live-aomenc gates whose
  recipe is byte-identical to the format sweep's; red-before measured on two
  mutations and the third cell measured NOT to be a superres cell.
- lanes/av1gates444.report.md.

Known defect carried by this lane, to be fixed after the wave (NOT here):
the three gates share a `if !have_aomenc() { eprintln!("SKIP …"); return
Vec::new(); }` arm, so on a host without the oracle all three return green
having measured nothing. They need the EC_AV1_REQUIRE_AOMENC hard-fail shape.
Merge lane-av1skipfix @ 960be978 — skip-on-decode-error gates converted to attempt loops + EC_REQUIRE_FIXTURESAhmet Kaan Gümüş · 605faee
Merge lane-av1skipfix @ 960be978 — skip-on-decode-error gates converted to attempt loops + EC_REQUIRE_FIXTURES

- crates/ec-av1/src/refusal_inventory.rs: GATES_THAT_SKIP_ON_A_DECODE_ERROR
  emptied — the four arms it named now loop.
- crates/ec-av1/src/stream.rs: a_real_aomenc_lossless_444_key_frame
  (a_real_aomenc_lossless_444_key_frame_decodes_sample_exact) stops reporting
  green on a missing pin; the 444 pin arm honours the repo-wide
  EC_REQUIRE_FIXTURES.
- crates/ec-flac/tests/xiph_vectors.rs, crates/ec-h264/tests/conformance.rs,
  crates/ec-opus/tests/conformance.rs: a missing corpus FAILS under
  EC_REQUIRE_FIXTURES.
- scripts/link-fixtures.sh: give a worktree the gitignored root fixtures/.
- lanes/av1skipfix.report.md (incl. the per-crate assert-site rows),
  lanes/COMMON-20260901.md.

The four-crate fixture asserts (ec-h264 / ec-flac / ec-opus / ec-av1) are
covered by this lane's own report — see lanes/av1skipfix.report.md, per-crate
assert-site rows; no separate coverage task is opened for them.

Tip note: the branch head b696d485 is three commits past this tip
(commit the 444 lossless key-frame pin, rewire its gate onto
CARGO_MANIFEST_DIR, extend the report) and is NOT merged here; the dispatched
tip is 960be978.
Merge lane-av1chrtx @ ea97eb0c — per-unit leaf tx_type in rect inter chroma + the per-unit coefficient censusAhmet Kaan Gümüş · 4c92898
Merge lane-av1chrtx @ ea97eb0c — per-unit leaf tx_type in rect inter chroma + the per-unit coefficient census

Lands the reviewed census stack on top of the chrtx work:

- decode.rs: read_inter_rect_chroma resolves each rect inter chroma unit's
  tx_type from its OWN luma leaf instead of a single shared value; read_coeffs_rect
  gains a plane parameter so the EC_COEFF_STEP trace tags the real plane.
- stream.rs: the per-unit coefficient census rung EC_CENSUS_UNIT and its gate
  a_pixel_exact_444_stream_walks_the_same_coefficient_units_the_oracle_does.
- fixtures/444_rect_strip_leaf_tx_type.obu (26839 B).
- lanes/av1chrtx.report.md, lanes/av1readcensus.report.md.

Tip note: the branch head 6cc9ea6f is one commit past this tip
("lanes/av1readcensus: name the actual branch/worktree and fix the gate
name") and is NOT merged here; the dispatched, reviewed tip is ea97eb0c.
ec-av1: settle the 4:4:4 coefficient-read count asymmetry by measurementAhmet Kaan Gümüş · cf7d7f8
ec-av1: settle the 4:4:4 coefficient-read count asymmetry by measurement

The av1444rect round-4 report left 636 square chroma reads against the
oracle's 1086 (and 2052 vs 1309 luma) as "most likely a counting-shape
difference", established neither way. This measures it.

A new per-unit census rung (EC_CENSUS_UNIT) counts one unit per
read_coeffs/read_coeffs_rect call -- the object the round-4 count measured
-- carrying plane, w/h, tx_type, eob, all_zero and the msac state before
and after the unit. Paired against the oracle's existing EC_COEFF /
EC_COEFF_VAL bracket per av1_read_coeffs_txb call BY post_rng, never by
plane label or walk position.

On every pixel-exact 4:4:4 arm the counts are identical, unit for unit:
ll444_minp8_inter 11292/11292 (3764 per plane both sides, 975/1793/1859
coded), 444_lossy_rect4_inter_witness 1373/1373, 444_quad_leaf_tx_type
192/192. Bucket (i) is the whole census; there is no asymmetry to explain.

The round-4 numbers came from 444_intrabc_rect4_witness, which DIVERGES
(390380 of 921600 samples wrong) -- there the surplus is the divergence
itself, so the count could never have separated the two hypotheses.
Verdict: counting shape, and not even that on a pixel-exact arm.

Gate: a_pixel_exact_444_stream_walks_the_same_coefficient_units_the_oracle_does
pins the walk's object shape on two exact arms -- the all-TX_4X4 lossless
stream and a mixed-shape rect4 stream, which is what makes a var-tx fold
visible. Mutation-proven: dropping 8x8 units turns it red by name. The
census is armed per frame from the sequence subsampling, so the 4:2:0
control asserts exactly (0, 0, 0).
ec-av1: gate enable-rect-tx at both depths on the PARSED partition shapeAhmet Kaan Gümüş · 0f3e8bf
ec-av1: gate enable-rect-tx at both depths on the PARSED partition shape

`enable-rect-tx` sat on NEVER_EXERCISED_8BIT and NEVER_EXERCISED_10BIT with
the reason "never spelled; rect transforms reach the decoder only through
partition shape". One gate per depth now spells `--enable-rect-tx=1` and
pixel-compares every frame against ffmpeg, but the flag is CONTEXT, not the
witness: enable_rect_tx has no sequence-header bit (aom reads it only in
tx_search.c), so it never reaches a decoder and cannot be what a decoder
path is proven by.

The witness is the parsed shape. rect_partition_hits() counts
PARTITION_HORZ/PARTITION_VERT symbols actually read; rect_coeff_tu_hits()
counts rectangular TUs that coded coefficients through read_coeffs_rect.
Both asserted > 0 over the arms that decoded AND compared, and the two are
not redundant: the cq20/tx-size-search=1 arm reaches a rect transform
through var-tx on a SQUARE block (many rect TUs, zero rect partitions),
while the rect partition only appears on the tx-size-search=0 arm.

RED-BEFORE, both counters, each on its own message: neutering
hit!(RECT_PARTITION_HITS) (5 sites) and hit!(RECT_COEFF_TU_HITS) (1 site)
each fails both gates. The flag-revert is NOT claimed: --enable-rect-tx=0
does not zero either counter (39 rect TUs against 210 on cq20, because
--enable-rect-partitions=1 already forces non-square transform sizes), and
with all partition shapes off the flag yields no rect transform at either
setting. =0 does redden the gate, but through the oracle -- its
tx-size-search=0 arm is a stream ffmpeg cannot decode past frame 6 of 15 --
so the frame-count assert fires first and proves nothing about the tool.

The recipe is spelled in each test body, not in the shared helper:
gate_coverage's gate_bodies() splits on "\n    #[" and keeps a segment only
if that segment contains `--passes=1`, so a helper-owned recipe is invisible
to the per-depth derivation. With the recipe in the helper the two gates
collapsed into one helper segment that classified as 10-bit, and the 8-bit
hole stayed open.

gate_coverage.rs is deliberately untouched: the two now-stale entry lines
(8-bit at :213-216, 10-bit at :265) belong to the lane fixing the
shared-helper detector, and never_exercised_{8,10}bit_matches_the_gate_recipes
fails with exactly the "delete those entries" message that sequences it.
ec-av1: measure the tile-rows / superres / odd-size cells the sweep left openAhmet Kaan Gümüş · 36b576f
ec-av1: measure the tile-rows / superres / odd-size cells the sweep left open

The formatsweep report's round-4 caveat ("t420_12_row may be measuring the same
stream as t420_12_col") and its "not measured" list are closed here with
measurements, every one of them taken against the instrumented aomdec through
the length-asserting compare and asserted on the PARSED stream, never on the
aomenc flag.

t420_12_row: it was not the same stream. At 256x128 profile-0 4:2:0 uses 64px
superblocks, so --tile-rows=1 really splits it -- the arm parses tile_info 1x2,
and untiled / 2 tile columns / 2 tile rows are three distinct streams
(1675 / 1747 / 1785 bytes) that all decode byte-exact 6/6. The missing untiled
control is now encoded and gated. Trap 2 itself is reproduced at --sb-size=128,
where the flag leaves the stream byte-identical.

New gates, each with a red-before proof:
- 12-bit 4:2:0 with two tile rows and with a 2x2 tile grid (the 12-bit
  multi-tile hole gate_coverage.rs left open; the grid was "both bit depths" =
  8 and 10). Dropping --tile-rows=1 turns it red on the parsed tile_info.
- 4:4:4 superres at 8/10/12 bits. --superres-mode=1 alone signals nothing:
  re-encoding the sweep's recipe gives use_superres on 0 of 6 frames, so the
  published superres cells never ran the upscaler. With denominators every
  frame header carries use_superres and all three depths are byte-exact.
  Dropping the denominators turns it red.
- 4:4:4 partial and odd coded dimensions, 10 arms. The sweep's "odd dims"
  (66x66, 130x122, 194x130) are even in both axes -- they are not multiples of
  8, and this gate's own assert said so on its first run. Genuinely odd 4:4:4
  sizes are producible only at 12 bits (aomenc rounds 67x67 -> 66 and
  131x131 -> 130 at 8/10 bits); 67x67 and 65x67 stay odd and decode exact.
- the H3 control: 4:4:4 lossless 8-bit at 256x128 WITHOUT tiles, beside its
  two-tile-column sibling. Both are byte-exact 6/6, so H3 does not reproduce on
  this tree. The sweep's 4:4:4 130x122 DIVERGENT is corrected too: the identical
  stream (sha c87ac65b) is byte-exact under a length-asserting compare.

Measured, not fixed (each is a charter): 4:4:4 lossless at 256x256 diverges from
the key frame at 8, 10 and 12 bits, chroma only, +-1, and the tile-row stream
forks at the SAME first sample as the untiled control at 10 and 12 bits -- so H4's
tile-rows attribution is refuted and the class belongs with the 4:4:4 lossless
chroma work already in flight.

One measurement trap of our own, recorded in the report: with the shared
CARGO_TARGET_DIR while sibling lanes build ec-av1, a probe or test binary links
another lane's in-flight rlib. It turned four EXACT cells into DIVERGENT ones
and served a test binary without the new gates in it ("0 passed, 717 filtered
out" three times). Every number here was re-taken in a lane-private
CARGO_TARGET_DIR.
gitignore: let per-crate fixture pins be added without -fAhmet Kaan Gümüş · 1dab95e
gitignore: let per-crate fixture pins be added without -f

A bare `fixtures` rule ignores the name at EVERY depth, so the 48 committed
`crates/ec-av1/fixtures/*.obu` pins are tracked only because someone used
`git add -f` -- and a new pin then fails a plain `git add` with a hint that
reads like noise (measured 2026-09-29 while landing a regenerated pin).

Negate the crate-level pins; the root `fixtures/` directory stays untracked
(1.7 GB of media, mirrored to the runner hosts instead).
ec-opus: a missing RFC 6716 vector FAILS under EC_REQUIRE_FIXTURESAhmet Kaan Gümüş · 168b491
ec-opus: a missing RFC 6716 vector FAILS under EC_REQUIRE_FIXTURES

`rfc6716_test_vectors` continued past every absent vector with a bare
eprintln, so on a worktree -- no gitignored root `fixtures/` -- the whole
RFC 6716 Section 6 conformance claim was decided by zero vectors, green.

The per-vector arm now names the exact missing path, `scripts/link-fixtures.sh`
and `scripts/fetch-vectors.sh`, and fails under EC_REQUIRE_FIXTURES=1. The
`if path.exists()` arms at the two robustness/perf sites are optional-input
blocks inside tests that do not assert on them, so they stay as they are.

Red: EC_REQUIRE_FIXTURES=1 with `fixtures/` unlinked fails
rfc6716_test_vectors ("RFC 6716 test vector testvector01 missing at
.../opus_testvectors/testvector01.bit -- this gate would prove nothing").
Green: 1 passed with `fixtures/` linked (179.2s).
ec-flac: a missing xiph corpus FAILS under EC_REQUIRE_FIXTURESAhmet Kaan Gümüş · 62abc01
ec-flac: a missing xiph corpus FAILS under EC_REQUIRE_FIXTURES

`corpus()` returned `None` on an absent `fixtures/vectors/flac-xiph` tree
and all four gates skipped green, decoding nothing. The assert lives in
`corpus()` itself -- the one place that knows the path -- so all four gates
are covered by one hunk, and each of them still pixel-compares when the
corpus is there.

Red: EC_REQUIRE_FIXTURES=1 with `fixtures/` unlinked fails
subset_vectors_decode_bit_exact_against_ffmpeg ("the FLAC xiph subset
corpus is missing at .../subset -- these gates would prove nothing").
Green: 4 passed / 0 failed with `fixtures/` linked (32.0s).
ec-h264: a missing conformance vector FAILS under EC_REQUIRE_FIXTURESAhmet Kaan Gümüş · a737185
ec-h264: a missing conformance vector FAILS under EC_REQUIRE_FIXTURES

Five gates took `if !base.is_dir() { eprintln!("SKIP ..."); return; }`
over the JVT vector directory, and a sixth skipped a missing
`fixtures/video/h264-open-gop.mp4`. On a worktree -- which has no
gitignored root `fixtures/` -- all six reported green having decoded
nothing, so a conformance run there measures nothing while looking
clean. That is the same "gate skips on its own failure" class the ec-av1
inventory pins, one crate over.

A shared `require_fixtures(path, what, generator)` now drives every arm:
default-off it skips and says what it skipped and which command fixes it;
`EC_REQUIRE_FIXTURES=1` turns it into a hard failure naming the exact
missing path, `scripts/link-fixtures.sh` (the root cause) and the
generator for that particular fixture. Tests only; no decoder change.

Red: EC_REQUIRE_FIXTURES=1 with `fixtures/` unlinked fails
jvt_cavlc_first_idr_bit_exact ("the JVT conformance vectors missing at
.../fixtures/vectors/h264-jvt -- this gate would prove nothing") and
h264_seek_matches_linear_open_gop ("the open-GOP fixture missing at
.../fixtures/video/h264-open-gop.mp4"). Green: all six pass with
`fixtures/` linked (1.58s / 5.59s / 0.73s / 20.85s / 9.94s / 0.75s).
stream: the 444 pin arm also honours the repo-wide EC_REQUIRE_FIXTURESAhmet Kaan Gümüş · d4100f4
stream: the 444 pin arm also honours the repo-wide EC_REQUIRE_FIXTURES

The require-env for a missing fixture is now one name across the repo, so
a batch unit sets EC_REQUIRE_FIXTURES=1 once and an absent fixture fails in
ec-av1, ec-h264, ec-flac and ec-opus alike. EC_AV1_REQUIRE_AOMENC still
works here, since it already means 'this box must have the oracle'.
scripts: link-fixtures.sh — give a worktree the gitignored root fixtures/Ahmet Kaan Gümüş · 7e79eb2
scripts: link-fixtures.sh — give a worktree the gitignored root fixtures/

The root `fixtures/` directory is listed in `.gitignore` (line 2) and is
not committed, so `git worktree add` hands every lane worktree a tree
WITHOUT it. Every fixture-backed gate then reports green having checked
nothing: the ec-h264 JVT conformance gates, the ec-flac xiph corpus, the
ec-opus RFC 6716 vectors and the ec-av1 pins all take a missing-fixture
skip. That is how a_real_aomenc_lossless_444_key_frame finished in 0.05s
with nothing decoded, and it is why a worktree run of the conformance
gates measures nothing at all.

link-fixtures.sh resolves the primary checkout through
`git rev-parse --git-common-dir` (which works from any linked worktree),
symlinks its `fixtures/` into the current tree -- a symlink, never a copy --
no-ops with a clear message when the directory is already there, and
REFUSES loudly (exit 2) when the primary checkout has no `fixtures/` at
all, naming the generator scripts instead of leaving a silent hole.
`--check` reports what it would do and exits non-zero, for a batch
preflight.

Documented in lanes/COMMON-20260901.md beside the batch env line, with
EC_REQUIRE_FIXTURES=1 as the shared env that turns an absent fixture into
a failure in every crate.
memguard-runner: unique scope name + probe under a distinct nameAhmet Kaan Gümüş · 38d0251
memguard-runner: unique scope name + probe under a distinct name

Three lanes hit 'Unit run-pNNN.scope was already loaded or has a fragment
file' in one batch, and the workaround (invoking the test binary directly)
lost the memory cap. Two causes, both measured: systemd-run derives
run-p<pid>.scope when no --unit is given (pid reuse collides), and a
transient scope stays LOADED after it exits, so probing and exec'ing under
the same --unit collides with the probe's own scope.

Fix: unique --unit per invocation, and the availability probe runs under
${unit}-probe so it cannot collide with the exec. The collision is detected
by PROBING, never by the wrapped command's exit status -- systemd-run --scope
returns the command's own status, so a retry on non-zero would run every
failing test twice. Stale fragments are cleared before the second probe; if
the cap still cannot be acquired the runner falls back to the uncapped exec
with a loud message.
ec-av1: resolve each rect inter chroma unit's tx_type from its own luma leafAhmet Kaan Gümüş · 7a36733
ec-av1: resolve each rect inter chroma unit's tx_type from its own luma leaf

read_inter_rect_chroma -- the sibling of the two 4:4:4 four-unit arms --
still handed every chroma unit the BLOCK-level luma_tx_type (the
top-left leaf's type) after lane-av1444chr pointed those two arms at
covering_leaf_tx_type. av1_get_tx_type (blockd.h:1287-1297) instead
reads xd->tx_type_map at the chroma unit's own position scaled back to
luma, and read_coeffs' all_zero arm stamps DCT_DCT into that leaf's map
cell (decodetxb.c:199-203), so a unit over a luma leaf that coded
NOTHING inherits DctDct, not the block's type.

Measured on a new pinned witness (fixtures/444_rect_strip_leaf_tx_type.obu,
26839 bytes, sha256 06174a66e92aaeb751a8e86db59711fcb1f18d74bde2d77e1ef1be7983eb7c80,
testsrc2 256x256 yuv444p x3, aomenc --profile=1 --cq-level=30 --cpu-used=0
--sb-size=64 --min-partition-size=32 --max-partition-size=64
--enable-tx-size-search=1 --passes=1 --end-usage=q --threads=1 --row-mt=0
--lag-in-frames=0 --kf-max-dist=100 --limit=3 --obu): the 32x64 inter
strip at mi(32,48) has a 4:4:4 chroma plane of (32,64) = TWO TX_32X32
units over a five-leaf luma tree (Idtx 32x32 on top, then VDct/DctDct/
HDct/VDct 16x16). The lower unit inherits VDct where the block-level
value is Idtx, once per chroma plane.

Red-before: reverting only the resolve to the block-level type turns the
new gate red -- "decode-order frame 1 of 3 (3 shown, 0 hidden) differs
from the oracle at byte 105949 (ours 166 vs 167), 1998 bytes differ".
Restored: green. The DIFF counter (not the route counter) is the
non-vacuity bar: a route counter fires on any rect chroma read, and a
committed control (444_sb128rect_lr_witness.obu, 2 units resolved, 0
differing) is exactly the shape a no-op fix would look green on.

Witness hunt (200+ encodes over 4:4:4 sources, partition / tx-size-search
and cpu-used sweeps): multi (nx*ny > 1) is false BY CONSTRUCTION at
4:2:0 -- a side <= 64 block's chroma plane is at most 32x32, one unit --
so the arm needs 4:4:4 AND a rect block that keeps a 64-px axis, and
only cpu-used=0 with --min-partition-size=32 made aomenc pick the
32x64 strip. Two new gate counters CHROMA_RECT_LEAF_TX_HITS /
CHROMA_RECT_LEAF_TX_DIFF_HITS, separate from CHROMA_QUAD_LEAF_TX_HITS
because that pair gates a 4:2:0 control asserting exactly 0 and this
route IS reachable at 4:2:0.

Plus a unit test on covering_leaf_tx_type itself (mixed-leaf lookup,
interior cells, out-of-extent -> None, empty leaf list -> None),
mutation-proven red by turning the containment '<' into '<='.
stream: a_real_aomenc_lossless_444_key_frame stops reporting green on a missing pinAhmet Kaan Gümüş · 60459a5
stream: a_real_aomenc_lossless_444_key_frame stops reporting green on a missing pin

The gate's pinned fixture `fixtures/ll444-lossless-key.obu` does not exist:
not in git, not in the root `fixtures/` directory on this box, and no
script under scripts/ produces it -- the only recorded provenance is the
prose recipe in the gate's own skip message. Its `Err` arm was a bare
SKIP, so it finished in 0.05s (its siblings take seconds: it had decoded
nothing) and the suite reported green.

The root `fixtures/` directory is listed in `.gitignore:2`, so the pin
cannot be committed and cannot be regenerated by a fresh clone; every
`~/.cache/wt/*` worktree lacks it for the same reason. The arm is
therefore kept as a skip (deleting the gate or failing every box
outright is worse), but `EC_AV1_REQUIRE_AOMENC=1` now turns it into a
hard failure that names the missing path, the exact regeneration recipe
and the `EC_AV1_PIN_DIR` override, so a batch run cannot report green off
it. The skip line itself now says the gate decoded nothing and proves
nothing.

Tests only; no gate body below the arm is touched.
ec-av1: thread the real plane index into read_coeffs_rect's EC_COEFF_STEP tracesAhmet Kaan Gümüş · 0789576
ec-av1: thread the real plane index into read_coeffs_rect's EC_COEFF_STEP traces

read_coeffs_rect printed a hardcoded plane=0 on its two tagged trace lines
(tag=all_zero, tag=tx_type), so every chroma rect coefficient read was
logged as a luma one. Two independent lane reports mis-read a chroma
unit's txb_skip / tx_type symbol on those lines and followed the luma
arm; the log could not tell them apart.

Adds a plane parameter and passes the caller's own plane index at all
twenty call sites (read_inter_plane_rect / read_rect_chroma_unit /
leaf8_chroma422_unit / sub8_leaf_chroma444 carry plane or plane_idx;
the luma readers pass 0). read_chroma_coeffs_rect takes the same
parameter and passes it through, so the U/V call sites in
decode_block_rect, decode_leaf_rect, decode_block_rect4,
decode_rect4_16_strip and decode_block_rect64 stop collapsing U and V
into one tag.

Measurement (EC_TRACE_COEFF=1 on the 4:4:4 rect gate
a_444_lossy_rect4_inter_stream_decodes_pixel_exact): the all_zero lines
now split 312 plane=0 / 310 plane=1 / 310 plane=2 where every chroma
line previously read plane=0. No gate output changes; the traces are
env-gated and off by default.
refusal_inventory: empty GATES_THAT_SKIP_ON_A_DECODE_ERRORAhmet Kaan Gümüş · 542c8fe
refusal_inventory: empty GATES_THAT_SKIP_ON_A_DECODE_ERROR

The last four entries are deleted: all four gates in stream.rs now use
the attempt-loop pattern, so the pinned set is empty and the list stays
an exact pin (a converted gate is removed, the set may not grow). The
guard test's stale-entry arm is what enforces that, and it is red-before
proven: re-adding one SKIP arm to a converted gate fails the guard.
stream: convert the four skip-on-decode-error gates to attempt loopsAhmet Kaan Gümüş · 3104b2b
stream: convert the four skip-on-decode-error gates to attempt loops

Each of `a_real_aomenc_filter_intra_stream_decodes_pixel_exact`,
`a_real_aomenc_intra_stream_with_deblocking_decodes_pixel_exact`,
`a_real_aomenc_inter_sequence_with_deblocking_decodes_pixel_exact` and
`a_real_libaom_gradients_stream_with_cdef_decodes_pixel_exact` turned a
decode `Err` into a printed SKIP, so the suite stayed green while the
gate proved nothing -- the same vacuum as an unfired feature, reached
from the other side. Each now sweeps several recipes, counts a named
refusal per attempt instead of swallowing it, ALWAYS pixel-compares an
attempt that decoded, and hard-asserts the feature counter
(`filter_intra_hits` / `deblock_hits` / `cdef_idx_hits`) on a
pixel-compared attempt; exhausting every attempt is a failure.

MEASURED on a21f3680 (this box, 2026-09-29):
- filter intra, seed 42 cq 40 and seed 43 cq 40 read `use_filter_intra`
  3x each pixel-exact; seed 44 cq 45 and seed 45 cq 30 decode WITHOUT it
- intra deblock, cq 55/45/35/63 decode pixel-exact with 48/64/64/64 edges
- inter deblock, cq 55/45/35/63 decode 4 frames pixel-exact with
  208/224/160/208 edges
- CDEF: the old 64x64 single-frame recipe reads ZERO `cdef_idx` (one
  superblock, so libaom can never write cdef_bits > 0) at every crf and
  cpu-used, though `apply_cdef` does filter with a nonzero strength pair.
  The gate's premise ("proves apply_cdef itself") was therefore unfalsifiable
  on it. Multi-SB multi-frame recipes read 2-8 `cdef_idx` and are
  pixel-exact, so the recipe list is now 128x64/128x128 at 24 frames
  across (cpu-used, crf).

Red-before mutation, per gate: `--enable-filter-intra=0` in the filter
intra recipe, `--loopfilter-control=0` in each deblock recipe, and the
original 64x64/1-frame CDEF recipe each drive their own gate red with
"gate-blind-to-feature"; re-adding one `SKIP <name>: {e}` arm drives
`gates_that_swallow_a_decode_error_are_declared` red. No decoder change.
test(ec-av1): pin three measured-exact 4:4:4 lossy cells with live aomenc gatesAhmet Kaan Gümüş · fe8f015
test(ec-av1): pin three measured-exact 4:4:4 lossy cells with live aomenc gates

The chroma-format sweep measured odd444_66x66, odd444_130x122 and the
"superres" 256x128 stream EXACT 4/4 but committed no gate, so the
exactness was unpinned and its only red-before lived in a lane report.

Each gate re-encodes LIVE with the oracle aomenc from the sweep's recipe
(testsrc2 rate=25 yuv444p, --profile=1, cq-level=20, cpu-used=2,
--limit=4; the rate and the 4-frame limit are load-bearing -- limit=6
emits a different, larger stream), asserts the decoded geometry really is
66x66 / 130x122 / 256x128 with full-resolution chroma planes, asserts the
4:4:4-only own-extent 1:4 chroma route ran (13 / 12 / 24 gathers), and
then compares every decode-order frame against aomdec with the length
asserted first. A missing aomdec is a hard failure, not a skip: a gate
that measures exactness and then skips the compare reports green for a
decoder it never looked at.

The third cell is NOT a superres cell and is named for its geometry:
encoding 256x128 with and without --superres-mode=1 yields BYTE-IDENTICAL
OBU (15239 bytes), so the sweep's flag was a no-op on this aomenc build.

Measured red-before, mutation reverted, no decoder change kept:
- decode.rs around_c own-extent arm restored to the 4:2:0 (16,8)/(8,16)
  pair extent: 130x122 red on decode-order frame 3 at byte 2208, 11521
  bytes differ (the sweep's exact number); 256x128 red on frame 2 at byte
  192, 25296 bytes differ. 66x66 stays green -- it was exact before that
  fix too, so it is a coverage pin, not a witness for it.
- ec-av1-syntax compute_image_size's mi grid ceil floored: 66x66 red
  (restoration.rs:783, range end 4098 out of range for slice of length
  4096) and 130x122 red on frame 0 at byte 128, 22724 bytes differ;
  256x128 green, correctly -- it is a multiple of 8 in both axes.

Green on this tree: 4 decode-order frames byte-exact vs aomdec for each
cell, and the existing rect4 gate plus the mode-info source-scan guard
still pass.
av1mutproof: mutation-prove the 4:4:4 10-bit and 12-bit format-sweep gatesAhmet Kaan Gümüş · ea38b62
av1mutproof: mutation-prove the 4:4:4 10-bit and 12-bit format-sweep gates

Both gates' pixel compares now shown to bite the site their cell depends on:
decode.rs rect-split 4x4 chroma unit walk x-stride 4->8 (10-bit gate: frame 0
oracle diff 8613 bytes), mc.rs round_delta delta -10->-9, which shifts only the
12-bit round pair (12-bit gate: frame 0 oracle diff 2426 bytes). Report only;
no source change survives.

2026-09-28

refusal_inventory: normalise whitespace in the 128-root cfl anchor + mutation-prove itAhmet Kaan Gümüş · a460dca
refusal_inventory: normalise whitespace in the 128-root cfl anchor + mutation-prove it

The anchor was a 3-line literal carrying 12-space indentation while the
anchored call site (decode.rs read_intra_mode_rect at the 128 root) sits at
8 spaces, so the guard counted 0 matches and went RED. ATTRIBUTION (measured
by an independent review pass): the guard was ALREADY red at the wave's own
common base 4155c7c7 -- the dedent happened in an ancestor of that base, so
the wave inherited a pre-existing red rather than causing it. The invariant
it guards was intact: the call site still passes cfl=false.

Fix: whitespace-normalised match (squash_ws on both sides), keeping the
semantic anchor (both comment lines + the false, argument) and count() == 1.
Mutation-proved: cfl=true turns it RED, revert turns it green.

Class swept: no other source-scan anchor in the crate embeds indentation
(21 include_str! guards checked); the rule is recorded in
skill://reformat-breaks-source-scan-anchors.
ec-av1: drop the three consts the intra-BC rect4 gate stopped usingAhmet Kaan Gümüş · 72eb746
ec-av1: drop the three consts the intra-BC rect4 gate stopped using

lane-av1444rect r3 (25824613) dropped the intra-BC prefix-floor assert, which
was the last reader of W/H/PS in a_444_intrabc_rect4_reads_its_own_chroma_plane_block.
Left three dead_code warnings on a 0-warning tree. The gate's own assertions
(the route hit at 4:4:4, zero at 4:2:0, the byte-exact 4:2:0 twin) are untouched.
Merge branch 'lane-av1formatsweep'Ahmet Kaan Gümüş · fae5c1f
Merge branch 'lane-av1formatsweep'

# Conflicts:
#	crates/ec-av1/src/stream.rs
Merge branch 'lane-av1cmpaudit'Ahmet Kaan Gümüş · cfabb97Browse files
Merge branch 'lane-av1444chr'Ahmet Kaan Gümüş · 236bad3Browse files
Merge branch 'lane-av1h5'Ahmet Kaan Gümüş · f0bc1acBrowse files
Merge branch 'lane-av1444rect'Ahmet Kaan Gümüş · 0d240a7Browse files
Merge branch 'lane-av1tilerows'Ahmet Kaan Gümüş · 048a859Browse files
Merge branch 'lane-av1leftref'Ahmet Kaan Gümüş · 810f6bcBrowse files
audit: assert equal lengths before every ours-vs-oracle walk (68 sites)Ahmet Kaan Gümüş · b7b2e07
audit: assert equal lengths before every ours-vs-oracle walk (68 sites)

The prefix-truncation false PASS: an ours-vs-oracle compare that walks
`got.iter().zip(want)` without first asserting equal lengths reports EXACT
for any defect outside the compared prefix, because zip stops at the shorter
operand. A frame-count assert says nothing about a plane's byte length.

Audited 124 sites across ec-av1/ec-h264/ec-h265/ec-vp9/ec-alac/ec-flac/
ec-aac/ec-ac3 and tools/oracle: 68 UNSAFE, 38 SAFE, 18 N/A. 68 fixed by
inserting the length assert AFTER the existing diff assert, on the same
buffers, so a real divergence still fails for the same reason with the same
message and only the previously-silent short-plane case becomes loud. The
canonical shape already in the tree is decode_all_frames_vs_oracle.

encode.rs::first_difference returned None ("exact") for any length
mismatch; it now returns Some, copying first_plane_mismatch. encode.rs's
nine `encoded.frames` vs ffmpeg loops and two GOP zips gained the count
assert they never had. ec-h264's round_trip rejected only an over-long
frame, so a short one zipped to zero and four call sites printed
"bit-exact".

Truthfulness: a comment above stream.rs:29006 claimed the gate compared
every decode-order frame when it compares the shown ones; the pinned-
scratch loop truncated a three-way .min() silently; a message called a
shown-frame count "decode-order"; two frame-count asserts were tautological
and are now a comment; examples/dump_yuv.rs wears a decode-index filename
on a display index.

Red/green per crate in lanes/av1cmpaudit.report.md. Not pushed.
ec-av1: 4:4:4 inter chroma units inherit their own quadrant's luma tx_typeAhmet Kaan Gümüş · dc2a1dd
ec-av1: 4:4:4 inter chroma units inherit their own quadrant's luma tx_type

The 64x64 four-unit chroma arm (ss 0/0, chroma_side > chroma_tx) handed all
four TX_32X32 units the block-level luma_tx_type -- the TOP-LEFT luma leaf's
coded type. libaom's av1_get_tx_type (blockd.h:1287-1297) instead reads the map
cell at the chroma unit's own position scaled back to luma, and a luma leaf
that coded nothing is stamped DCT_DCT there (decodetxb.c:199-203), so every
unit sitting over a skipped luma quadrant was reconstructed with the wrong
transform.

leaf_tx_types was only collected under , so at 64 it was empty and
there was nothing to resolve from; it is now collected at every size, both
copies of the arm resolve per quadrant through the shared
covering_leaf_tx_type (extracted from the three inline copies that already
existed -- one convention, not four), and two counters record the route and
the cases where the resolved type DIFFERS from the block-level one.

Witness pinned as fixtures/444_quad_leaf_tx_type.obu (27933 B, sha256
a06c9f7a0862252f6ab7ebdcec340d0602e730e38089365f14747db37f8e78d5): decode-order
frames 1/2/3 went from 777/640/554 wrong V samples to byte-exact, and the
per-unit type census against aomdec's EC_DQCOEFF goes from 4 disagreements to
0 of 136. Reverting only the per-quadrant resolve turns the new gate red on
frame 1 with 777 bytes differing.

The new gate asserts the DIFFERS count (8 on the witness), not the route count
(96) -- a route counter fired on the one block of an earlier no-op port that
changed zero pixels. A 4:2:0 control asserts both counters stay at 0.
docs(av1444rect): §8 RETRACTED and rewritten -- Agent00-2's first ablation never ran its 4e151813 arm, and the corrected 2x2 puts BOTH of their cells in this lane's classAhmet Kaan Gümüş · a654932
docs(av1444rect): §8 RETRACTED and rewritten -- Agent00-2's first ablation never ran its 4e151813 arm, and the corrected 2x2 puts BOTH of their cells in this lane's class

I published their four-arm ablation and relayed its conclusion to Main as
"independent; my fix does not reach those cells". That arm never ran:
git checkout -- <files> restores from the INDEX, the index still held both
cherry-picks, and cargo did not even relink on byte-identical sources. The
conclusion was a phantom. Struck.

Corrected 2x2 (git reset --hard 4155c7c7, verified rebuild with mtime printed
per arm, 4/4 decode-order frames vs aomdec): base DIVERGENT on both cells;
base+rung+4e151813 byte-identical to base on both; base+rung+f92776ba EXACT 4/4
on both; base+rung+both EXACT 4/4 on both. So both cells are this class,
f92776ba alone fixes them, 4e151813 contributes nothing (its two tu_reach
sites sit inside decode_rect4_16_strip's lossless_pair arm; both cells are
4:4:4 lossy on the else-if-skip path), and f92776ba has no prerequisite on
4155c7c7 so merge order is free. Red-before on both cells with the counter in
place: the (16,8) mutation gives sr444 76404 samples first wrong Y(192,0) --
the sweep's exact number -- and odd444_130x122 9203 samples first wrong
Y(100,32) on frame 3.

Scope therefore ENLARGES: two more witnesses of the class at geometries the
128x96 gate does not cover (130x122 partial-frame right edge; 256x128 with
CDEF+LR live on the last two frames).

Second method note added: git checkout -- <files> is not a tree reset. It
restores from the index, so a staged cherry-pick survives it and the arm
measures the tree you thought you removed. A per-arm ablation needs
git reset --hard <base> and a rebuild whose mtime is printed.
docs+ec-av1: lane-av1444rect r5 -- the counters document that they prove reach, not that the fix bites; the retraction derives its length from plane extentsAhmet Kaan Gümüş · 4b6247d
docs+ec-av1: lane-av1444rect r5 -- the counters document that they prove reach, not that the fix bites; the retraction derives its length from plane extents

Main's two notes, both taken.

1. Both route counters now say in their own doc comments that a non-zero
   count proves REACH and nothing more, and point at
   skill://ec-av1-pipeline-gate-counters: a counter needs a DIFFERS-style
   assertion to carry a claim. The intra-BC one is also recorded as
   deliberately armed OUTSIDE the own444 expression, so the mutation still
   increments it and the red lands on the pixel/entropy arm -- what carries
   the claim is the measured fork move (read 11750 -> 12465, luma first wrong
   164416 -> 205264, 455240 -> 390380) and the mutation, not the count.

2. The retraction's re-measurement wrote assert len(ours) == 2 * len(ref).
   That factor is a coincidence of 4:4:4 against 4:2:0 at the same geometry --
   it is the bits-per-sample ratio (our dump_yuv emits u16, the oracle's 8-bit
   dump is u8) and has nothing to do with chroma, so it is wrong at 4:2:2, at
   any high bit depth, or on any fixture where the two sides disagree on bit
   depth. The report now says to derive the expected byte length from the
   plane extents and the two bit depths and assert the oracle dump against
   that, never against a copied constant.

Also recorded in the method notes: the 636-vs-1086 chroma and 2052-vs-1309
luma unit-count asymmetry from the round-4 census is explicitly NOT claimed
as a defect, since luma is pixel-exact to 205264 and the surplus is most
likely a counting-shape difference (our var-tx leaves vs libaom's unit walk).
av1h5: shared mu_chunk_order helper, control pin, gate helpersAhmet Kaan Gümüş · 0bb7c3c
av1h5: shared mu_chunk_order helper, control pin, gate helpers

Folds the four copies of the chunk-major sort into one mu_chunk_order()
helper that also reports whether it permuted the list, so
mu_chunk_order_hits counts real reorderings rather than executions.
Pins the --max-partition-size=64 control stream and factors the pinned-
fixture read and the aomdec rawvideo comparison into read_pin() and
assert_rawvideo_matches().
av1h5: gate asserts exact structure, not a floor on wrong outputAhmet Kaan Gümüş · 032da64
av1h5: gate asserts exact structure, not a floor on wrong output

Main rejected the first-diff >= 90272 clause: it asserts our output is
still wrong and fails the moment the residual defect is fixed. Replaced
with four assertions that all stay true when the stream becomes exact:

  mu_chunk_order_hits()  == 5    -- counts blocks where the sort
                                    PERMUTED the list; a no-op reads 0
  mu_chunk_walks()       == 20   -- 4 mu chunks x 5 inter frames,
                                    libaom's own per-chunk count
  mu_chunk_walk_units()  == 7680 -- 1536 chroma TX_4X4 units per inter
                                    frame, the oracle's exact count
  control arm vs aomdec  byte-exact

The four arm sites now share one mu_chunk_order() helper instead of four
copies of the sort, and the two new counters are bumped in the 128-root
chroma walk. Report: residual demoted to OPEN, type/extent excluded by
Agent04-2's census on the pinned bytes, handed to Agent24-2.
docs(av1444rect): round 4 -- the intraBC 4:4:4 chroma root is not a token-order defect; the unit census rules it out and bounds what is leftAhmet Kaan Gümüş · cc3c8e3
docs(av1444rect): round 4 -- the intraBC 4:4:4 chroma root is not a token-order defect; the unit census rules it out and bounds what is left

Main asked for the unit count before any value-level chase, after Agent10-2's H5
turned out to be a 16x token-order blowup. Counted on the 1016 B witness
(one frame, ours via per-reader traces, oracle via EC_COEFF_STEP tag=all_zero
which is not skipped on eob=0 and so counts the same thing): 2688 unit reads
against the oracle's 2395; luma 1213 square + 839 rect against 1309; chroma
636 against 1086. Same range, no blowup -- the defect is NOT ordering. Second
lane to reach that conclusion about a 4:4:4 chroma fork.

Both originally-named candidates remain eliminated by measurement, so the
root is still unbounded and is handed back rather than patched blind.
lanes/av1tilerows: class sweep — 32 Reach::of_tu sites inventoriedAhmet Kaan Gümüş · 6a71455
lanes/av1tilerows: class sweep — 32 Reach::of_tu sites inventoried

Enumerates every production call site of tu_reach, tu_reach_rect and
Reach::of_tu (32; excluding the two wrapper bodies and three in mod tests).
27 are ss-aware, 4 are 4:2:2-only behind a guard that names ss_x==1 &&
ss_y==0 (refused by name at stream.rs:1749, unreachable at 4:4:4), and
ONE is a remaining hardcoded 4:2:0-shaped chroma footprint:
decode.rs:41930, `let luma_span = cu_tx * 2;` in the intra-in-inter
128-superblock mu-chunk chroma arm.

Three correct conventions exist and no fourth: the canonical ss shift
(17401, 17488, 35359), hoisted per-axis luma-span locals (11610, 20401,
20660, 21021, 21618, 42370, 42497), and four 4:4:4-gated identity
literals (22235, 22288, 42249, 44605) whose guard is load-bearing and
which are flagged as the sites that would break first if a 4:2:0/4:2:2
sibling arm were added beside them.

41930 is proven 4:4:4-reachable by a temporary env-gated counter (32 hits
at ss=(0,0) side=128 on a 4:4:4 lossy --sb-size=128 stream), and no
committed 4:4:4 fixture fires it (0 hits on 444_sb128rect_lr_witness,
444_leaf8_oob and all three ll444 pins) — the arm has no 4:4:4 coverage.

It is deliberately NOT patched here, for reasons recorded in the report:
  - every recipe that fires it is masked by the pre-existing H1 entropy
    fork (byte-identical between base 4155c7c7 and this tip), and A/B-ing
    `cu_tx << ss_x` against `cu_tx * 2` gives byte-identical output;
  - every pixel-exact 4:4:4 recipe refuses to fire it (0 fires across
    six variants with --enable-rect-partitions=0 / --enable-1to4-partitions=0);
  - luma_span is not the whole defect: per blockd.h:1372,
    av1_get_max_uv_txsize(BLOCK_128X128, 0, 0) is TX_64X64, not the
    TX_32X32 the comment assumes, so cu_tx and the per-chunk chroma origin
    are 4:2:0-shaped too. Patching only luma_span would be a half fix in
    an arm with no gate able to catch the difference.

Shipping an unvalidated change into a zero-coverage path is the failure
mode this repo keeps fighting, so the site is documented and handed to the
H1 lane with the repair shape (cu_tx = 32 << ss_x, luma_span = cu_tx <<
ss_x) and the 4:2:0 identity argument (32 << 1 == 32 * 2 == 64) that makes
the eventual repair a provable no-op for the only covered format.

The temporary counter is removed: grep -c EC_TMP_SB128CHROMA is 0 at HEAD
and git status is clean against the lane commit.
av1h5: read a 128 root's tokens CHUNK-major, not block-rasterAhmet Kaan Gümüş · f93609f
av1h5: read a 128 root's tokens CHUNK-major, not block-raster

libaom's decode_token_recon_block (decodeframe.c:972) walks 64x64 mu
chunks with the PLANE loop INSIDE the chunk loop. The var-tx leaf list
is a BLOCK-wide raster, so a chunk's members are not contiguous: leaf
0..15 is chunk (0,0) row 0, but chunk (0,0) rows 1..15 are leaves
32..47, 64..79, ... The chunk test on the given order therefore closed
the chunk every SIXTEEN leaves and coded each chunk's chroma sixteen
times -- 64 chroma walks per 128 root where libaom codes 4, and 24576
chroma units per inter frame against the oracle's 1536.

Reorder the leaf walk chunk-major at side > 64 (a no-op below 64, where
a block IS one chunk) at all four sites carrying this test: the 128x128
inter arm, the 128x64/64x128 inter arm, and the two intra arms.

Measured on the pinned 128x96 yuv444p10le lossless 10-bit stream
(sha256 bbffb979..., 63429 B), against aomdec:
  chroma walks per frame   64 -> 4
  chroma units per frame   24576 -> 1536 (oracle: 1536, exact)
  first ctx divergence      unit 1539 -> unit 2573
  first differing pixel     byte 74769 -> byte 90272

Control arm (--max-partition-size=64, no 128 root) stays byte-exact.
New gate a_lossless_444_128_root_lossless_stream_reads_chunks_chunk_major
pins the route (mu_chunk_order_hits) and the first-difference position;
mutating the chunk key back to the block raster turns it red.
ec-av1: lane-av1444rect r3 -- drop the intra-BC prefix-floor assert; it encoded a defect as expected behaviourAhmet Kaan Gümüş · 1d86151
ec-av1: lane-av1444rect r3 -- drop the intra-BC prefix-floor assert; it encoded a defect as expected behaviour

Main's push-back, accepted. The gate asserted our luma plane is byte-exact
to sample 205264, i.e. that our output is wrong by exactly N past that point.
That is a defect encoded as expected behaviour, the shape this suite refuses
everywhere else, and it would outlive the memory of why. Removed.

What the gate asserts now are only true statements: intrabc_rect4_own_chroma444_hits()
is non-zero on the 4:4:4 witness (18) and zero on the 4:2:0 twin, and the
4:2:0 twin is byte-exact through decode_all_frames_vs_oracle (which asserts
frame length before comparing). The open chroma divergence is named in a
comment and in the test's output line -- 390380/921600 wrong, U and V both
first wrong at index 20532, entropy fork read 12465 at mi (90,108) -- and
never asserted.

Also removed the temporary per-unit coefficient traces used to localize it.