Commits
Commits on
3bc9845c650ffe4270d12481353fbbacb53a7ddd2026-09-29
lane-av1loss444kf: a sub-8x8 RECT leaf's chroma unit gets the LEAF's reachAhmet Kaan Gümüş · cecc096
lane-av1loss444kf: a sub-8x8 RECT leaf's chroma unit gets the LEAF's reach The 4:4:4 lossless 256x256 key frame (109215 B, sha256 4563a01f17786000...) decoded with 21 U + 28 V samples wrong over x 196..207 / y 200..203, luma exact, entropy bit-locked over all 81933 symbol reads and its 12288 transform units at identical absolute (plane, x, y). The whole filter chain is inert on both sides of that frame (the oracle's pre-deblock, post-deblock, post-CDEF and final dumps are byte-identical to each other, and so are ours), and on a lossless frame the pixel delta IS the prediction delta -- so the residual, the dequant scale and the 4x4 WHT placement are exonerated by arithmetic, not by search. libaom asks has_bottom_left with the LEAF's bsize, the unit's (row_off, col_off) and tx_size, and answers TRUE inside the left column whenever `row_off + count < plane_bh_unit` -- the block's own next row, already reconstructed. A 4x8 leaf's first TX_4X4 unit therefore has four real bottom-left samples. sub8_leaf_chroma444 looked a standalone BLOCK_4X4 up at the unit's own position instead, got false, and PlaneBuf::edges replicated the last left sample across the edge's full reach: the unit predicted D203/CFL from a fabricated edge. A from-scratch transcription of libaom's z3 + edge filter + upsample reproduces all 16 oracle samples of each damaged unit with the real column and all 16 of ours with the replicated one, and the damage in the 2nd and 3rd blocks is that first wrong block's pixels read back as their left edge. Fix: Reach::of_tu over the leaf's own (bw, bh, col_off, row_off, tx) with the block reach the function already computes -- at both lossless 4:4:4 arms, the intra one and the intrabc one, which is what the 4:2:2 twin of this function was already fixed to do (lane-av1-422kf2). 49 -> 0 on the 109215 B carrier and on the independent 109909 B one. Witness: a_lossless_444_sub8_rect_leaf_chroma_reach_decodes_the_key_frame_pixel_exact -- live re-encode pinned by length and fnv1a64, 4:4:4 header asserted, key frame byte-exact against aomdec --limit=1, and the new sub8_chroma444_lossless_tu_reach_hits() counter (86 on this cell) proving the fixed path fired. Red-before with only the two reach expressions reverted: "differs from aomdec in 49 samples (first Some((1, 201, 200, 160, 159)))". 4:2:0 and 4:2:2 are structurally untouched (every call site sits behind `chroma_444`), and a square 4x4 leaf is provably unchanged (of_tu falls through to the block's own answer, which for a square leaf IS the old lookup). -- lossless 444: 48/0. -- 420: 2/0. -- intrabc: 21/0. -- 422: 6/0.
lanes: wave-3c-a merge report -- two branches in, fixlib held, census sweepAhmet Kaan Gümüş · 90e4e6e
lanes: wave-3c-a merge report -- two branches in, fixlib held, census sweep lm444loss-corr (879c11e2) and oraclehbd (8667050b) merged --no-ff, both predicted clean by merge-tree and both clean in fact. One integration fix followed: the new gate's bare `aomdec_path().is_file()` is what the wave-3b oracle-presence scan exists to reject, and it reds on the merged tree (6c1d78a6 routes it through aomdec_available). fixlib is NOT merged -- Main's hold stands. Its acceptance line is measured anyway: census total=8 committed=21 uncommitted=0 ignored=0 assertless=0 with the prose restored, census self-test PASS, preflight GREEN (303 rows) exit 0. lane-av1fixtureshape is verified subsumed by ancestry (c1cf1758 is the merge base) -- a check that read NOT-SUBSUMED earlier in the wave against the older tip, which is why it is re-run at merge time. Name sets: 748 -> 749, comm clean in both directions, no duplicate registrations, 29/0 on the gate_coverage|refusal_inventory|count_vacuity family.
wave-3c-a: route the lm444loss-corr gate's oracle arm through aomdec_availableAhmet Kaan Gümüş · d48c08a
wave-3c-a: route the lm444loss-corr gate's oracle arm through aomdec_available
The merged branch's new gate guarded its pixel compare with a bare
`aomdec_path().is_file()`. The oracle-presence scan merged in wave 3b
(7a865ee7) rejects exactly that shape outside the probe that owns it, and
reds on the merged tree:
gate_coverage::tests::no_tool_presence_check_outside_its_probe
1 bare tool presence check(s) outside a probe
stream.rs:7271: if aomdec_path().is_file() {
A bare is_file() skips the compare with NO env escape, so under
EC_AV1_REQUIRE_AOMENC=1 the gate would still report green with the oracle
compare never run -- the "unreadable gate is unproven, not clean" class.
`aomdec_available(NAME)` carries the env-escape assertion and the SKIP
line, so the hand-rolled else-arm is dropped rather than kept alongside.
cargo test -p ec-av1 --lib -- gate_coverage refusal_inventory count_vacuity
29 passed; 0 failedlanes: the shared oracle gets the depth-correct, byte-checked rungs (zero-window swap)Ahmet Kaan Gümüş · 4b63be1
lanes: the shared oracle gets the depth-correct, byte-checked rungs (zero-window swap) The private copy was never the problem: ~/.cache/aom-oracle shipped the same four broken rungs, so every lane that ever paired against them on a 10/12-bit stream got a 0-byte file -- which reads downstream as "the oracle has no data for this stage" and becomes a phantom stage diff. Swapped with no window, because ps showed a live lane (cargo-target-av1lm444corr, a_10bit_film_frames_with_frame_edge_mv_clamping...) exec'ing the shared aomenc at that moment: hardlink backup aomdec.prefix-20260929-054321 + source copy in revert/, source edit (a file no running process reads), ninja libaom.a only, the link command re-run with -o to a scratch path, the new binary verified fully OFF-PATH, then one mv (inode 177294570 -> 177592760). Revert: mv ~/.cache/aom-oracle/build/aomdec.prefix-20260929-054321 ~/.cache/aom-oracle/build/aomdec git -C ~/.cache/aom-oracle/src checkout -- av1/decoder/decodeframe.c Verified ON the shared binary after the flip: five rungs exit 0 on av112bit-key.obu (12-bit, 30720 B each; rung 12 61440 B) and palette_screen_witness_10bit.obu (10-bit, 73728 B each; rung 12 147456 B); 8/8 byte-identical to the decoder's as u8 rows; 8-bit no-op vs the backed-up OLD binary 10/10 IDENTICAL (32768 B and 6144 B). Loudness proven live in the shared tree by a mutant also linked off-path (12-bit: exit 134, expect=30720 wrote=30560; 8-bit: expect=6144 wrote=6080). check-aom-oracle-rungs.sh against the shared source: 10 ok, exit 0. Naming: no lane in today's waves (3a: av1cmpaudit/av1leftwit/av1lossy128x96/ av1pinslive/av1txsearch; 3b: av1rawhelper/av1oracleskip) paired against these four rungs -- cmpaudit records them as having no in-repo consumer, rawhelper names PREFILT only as dump_yuv's documented contract and gates on rung 12, oracleskip is the aomenc-SKIP class. No test anywhere sets those env vars, so no automated gate could rest on a 0-byte dump. Historical users were 8-bit lanes, where the old rungs were correct.
lanes: make a narrowing-rung regression loud, and check the derivationAhmet Kaan Gümüş · c755a39
lanes: make a narrowing-rung regression loud, and check the derivation The depth fix made the four u8-narrowing rungs correct; the harm that caused was their SILENCE -- a segfaulting rung leaves a 0-byte file, which downstream reads as "the oracle has no data for this stage" and becomes a phantom stage diff, or as evidence about the decoder. Two additions: 1. ec_dump_finish(): all four narrowing rungs now close through a byte-count check against the shape they claim (Y+U+V at one byte per sample, crop for PREFILT, mi-aligned for the other three) and abort() with one self-naming line on a mismatch. Non-vacuous: dropping PREFILT's last luma row makes aomdec exit 134 with EC_DUMP_ABORT rung=EC_AV1_PREFILT_DUMP bit_depth=12 hbd=1 expect=30720 wrote=30560; restoring it gives exit 0 / 30720 B. Rung 12 keeps its own fclose (charter: do not change rung 12) and the rewriter cannot reach it -- it keys on a rewritten ec_dump_narrow_row call in the block. Monochrome expects luma only; a failed fopen skips the block, so no config writes 0. 2. scripts/check-aom-oracle-rungs.sh: derives decodeframe.c from PRISTINE upstream (scratch copy, real tree never written) and asserts 0 legacy row loops, 12 narrow_row call sites, 4 finish call sites (one per rung), rung 12 still converting and not narrowed, and that a second run is a no-op. Exit 0 today; deleting the depth block from a copy of the script makes it print 7 FAILs and exit 1 in under a second, with no build. Emitted bytes unchanged: re-paired av112bit-key.obu (12-bit) and palette_screen_witness_10bit.obu (10-bit), all four rungs oracle vs decoder, all IDENTICAL.
av1lm444loss-corr: close the handoff loop; fix a self-contradiction in 8.1Ahmet Kaan Gümüş · 44dc399
av1lm444loss-corr: close the handoff loop; fix a self-contradiction in 8.1 8.1 concluded the fork was 'a genuine block-level walk divergence' while 10.3 says that framing was wrong in substance because the frame boundary had not been measured. A reader arriving at 8.1 first was being told something the report later takes back. Marked SUPERSEDED IN PART with a pointer to 10.3 and kept both, because retracting a caveat is not the same as getting the rest right. Records Agent02-2's FINAL: they adopted the (a)/(b) split, fixed and gated (b) (the intra tail passing a TX_32x32 unit size where decode_token_recon_block walks the chroma span of 64 >> ss), and handed (a) over with a three-file search space. They reproduced this lane's 109909 B fixture byte-for-byte. This lane claims no part of that cell.
av1lm444loss-corr: the 256x256 key frame is reconstruction-only, not a walk forkAhmet Kaan Gümüş · 4450532
av1lm444loss-corr: the 256x256 key frame is reconstruction-only, not a walk fork Per-frame EC_SYMR counts on the 109909 B stream put the key frame at 82697 reads with NO fork inside it; the first fork (125511) is in decode_idx=1. So the key frame's 49 chroma samples are reconstruction-only -- its entropy is bit-locked, which rules out the mu-chunk walk, plane threading and the coefficient sets as their cause. Two independent encodes agree, so it is one confirmed defect on the reconstruction side. Corrects my own handoff: I called 125511 'a genuine block-level walk divergence' without having measured the frame boundary. The cell has two symptoms -- (a) key-frame reconstruction-only, (b) frame-1 entropy fork -- and they are not linked by reconstruction. Also records that my first ladder script compared cdf0 directly, the one field whose convention differs across the two sides.
av1lm444loss-corr: hand the 256x256 cell to Agent02-2, retract the mi-label caveatAhmet Kaan Gümüş · 122df9e
av1lm444loss-corr: hand the 256x256 cell to Agent02-2, retract the mi-label caveat The second defect (4:4:4 lossless 256x256, key frame, 49 chroma samples, first U(200,201)) is handed to Agent02-2, whose tripwire is the same sample. Three measurements RETRACT this report's earlier 'the mi labels are transposed, so the fork is a labelling artefact' caveat: both sides print mi in the same field order, swapping ours (32,0) gives (0,32) not the oracle's (0,48), and the labels agree on 71.8% of the preceding reads -- so read 125511 is a genuine block-level walk divergence. Also records that the two sides use different ph vocabularies (ours emits ph=inter8 for the sub-8x8 leaf arm, the oracle has no such phase), so ph is not pairable either; and two lore items for the batch -- a luma first-fork as the signature of a chroma arithmetic error, and the two-row non-vacuity shape this gate uses.
av1lm444loss-corr: report -- the ss-aware replay step, and why the old branch is do-not-mergeAhmet Kaan Gümüş · 9dcbf14
av1lm444loss-corr: report -- the ss-aware replay step, and why the old branch is do-not-merge Records that lane-whtshape already merged the lossless arm my r2/r3 re-implemented, that lane-av1lm444loss is superseded rather than merged, and that the old report's own provenance line was stale. States the step rule from the codebase's own reference construction (decode.rs:43688), proves 4:2:0 identity arithmetically before measuring it, and gives the mutation proof for the one-line correction.
ec-av1: step the intrabc-rect lossless chroma replay by the unit's own mi footprintAhmet Kaan Gümüş · 30d94ca
ec-av1: step the intrabc-rect lossless chroma replay by the unit's own mi footprint
lane-whtshape (f541d062, merged afa13bcf) gave `decode_intrabc_rect` the
per-TX_4X4 lossless chroma walk and the tail replay that re-stamps each
unit's own coefficient context over the whole-block record. The replay
stepped the mi origin by `4 >> ss_y(fctx)` cells, which is 4:2:0-only
arithmetic.
A TX_4X4 chroma unit covers `4 << ss` LUMA pixels, so its origin in the
luma-mi grid advances by `(4 << ss) / MI`. That is the form
`decode_inter_block`'s reference `mu_chroma_units` construction already
writes (decode.rs:43688, `at.0 + cr * ((cu << ss_y(fctx)) / MI)` with
cu = 4 on a lossless frame); this site was the outlier.
ss (1,1) 4:2:0: `4 >> 1` = 2 mi, and `(4 << 1) / 4` = 2 mi -- the SAME
number, so 4:2:0 is unchanged BY CONSTRUCTION, not by
measurement alone.
ss (0,0) 4:4:4: `4 >> 0` = 4 mi = 16 luma px per 4x4 chroma unit, where
the unit covers `4 << 0` = 4 luma px = ONE mi. Every replayed
unit was stamped at 4x its own mi row/column, writing over
cells belonging to other blocks.
Measured on `ll444_intrabc_rect_l2.obu` (testsrc2 512x128 yuv444p,
aomenc --lossless=1 --cpu-used=2 --lag-in-frames=0 --kf-max-dist=100
--limit=6, 121844 bytes, sha256 f0de080edce35d34cdd628b71f63dc452
f946e8328352b69d3c1da090a54ec67), which reaches it: before, 10604 samples
wrong in the KEY frame, first at byte 33216 (Y(64,448)) -- the corrupted
chroma context desyncs the following luma, which is why the first
divergence is luma at all; frames 1-5 123987..171988 wrong. After: all
six frames byte-exact against the oracle aomdec in decode order, and the
EC_SYMR ladder is 540833 reads on both sides with zero fork.
Gate `a_lossless_444_intrabc_rect_replay_steps_by_the_units_own_mi_footprint`
asserts the 4:4:4 shape from the stream's OWN parsed sequence header (at
(1,1) the two steps are the same number, so a 4:2:0 stream cannot fail
this gate), that lane-whtshape's own INTRABC_RECT_LOSSLESS_CHROMA4_HITS
counter fired so the corrected expression was evaluated, luma-sized chroma
extents, and decode-order byte-exactness. Control arm: the 128x96
4:4:4 lossless pin must read that counter 0 -- whole square blocks have no
multi-unit chroma plane block to step.
Mutation proof, run: reverting only the step expression and nothing else
turns the gate RED at "decode-order frame 0 of 6 differs from the oracle
at byte 33216 (ours 101 vs 100), 10604 bytes differ"; restored from a
saved copy with cp, verified with diff -q, LIVE run ok.lanes: wave-3b merge report — rawhelper arity, oracleskip routing + r3 scan, three mergesAhmet Kaan Gümüş · 6a556d8Browse files
Merge lane-av1oracleskip r3 @ 7a865ee7 — the oracle-presence scan that closes the class structurallyAhmet Kaan Gümüş · b4cb053
Merge lane-av1oracleskip r3 @ 7a865ee7 — the oracle-presence scan that closes the class structurally # Conflicts: # crates/ec-av1/src/gate_coverage.rs
Merge lane-av1oracleskip @ 7bf95961 — one aomdec_available() for 18 guard sites, 7 redundant else skip-arms deletedAhmet Kaan Gümüş · f94e32d
Merge lane-av1oracleskip @ 7bf95961 — one aomdec_available() for 18 guard sites, 7 redundant else skip-arms deleted # Conflicts: # crates/ec-av1/src/stream.rs
gate_coverage: the oracle-presence scan — the class can no longer reopen silentlyAhmet Kaan Gümüş · 693b415
gate_coverage: the oracle-presence scan — the class can no longer reopen silently
r2 closed the bare `aomdec_path().is_file()` class on the current tree but left
the anti-regression procedural, and that is how the five r2 sites got there in
the first place: a guard written the old way compiles, passes review and
re-opens the hole. This adds the mechanical check, in the crate's existing
source-scan shape (include_str! over stream.rs/decode.rs/encode.rs, next to the
recipe re-derivation that already scans stream.rs).
The rule: a tool presence check (aomenc/aomdec/affine `_path().is_file()`,
plain or inverted) may appear only inside the probe that owns that path
(have_aomenc, aomdec_available, have_affine_aomenc), inside an assert!, or in
a comment. The scan derives each probe's line span from its fn opener to the
first column-0 brace and asserts it found all three, so a moved probe reds
instead of silently exempting the crate. Anything else fails naming file:line,
the line text, and the fix. Current state: 7 sites inspected, 7 allowed, 0
offenders.
Two floors, because a total alone hides a single broken matcher: a structural
total (MIN_SITES = 5 = three probes + two asserts, so prose churn is not
load-bearing) and a PER-PATTERN floor requiring each of the three path patterns
to match at least once. The per-pattern floor earned its place on its first
run by catching a real bug in the matcher one line above it —
`affine_aomenc_path().is_file()` CONTAINS `aomenc_path().is_file()`, so a
first-match scan credited the affine probe's line to the aomenc pattern; the
matcher now takes the longest match.
Mutations, both reverted (git diff on stream.rs empty, scan green):
- a bare `if aomdec_path().is_file()` injected into gate_444_lossy_live_exact
-> RED naming `stream.rs:7634`;
- one pattern replaced by a non-matching `aomdec_path().exists()` -> RED on the
per-pattern floor ("matched NOTHING … the gates it was meant to police would
pass unreviewed"). With only a total floor this one PASSES: the other two
patterns still add up to 6 sites.
`touch` on every scanned source before every run — these scans read
compile-time text.
Acceptance: gate_coverage + refusal_inventory 27 passed, 0 failed; the gates
the review named still pass with the oracle present (5 passed).lanes: oracle u8-narrowing rungs were reading a HALVED plane pointerAhmet Kaan Gümüş · 0f2d966
lanes: oracle u8-narrowing rungs were reading a HALVED plane pointer The four u8-narrowing aomdec rungs (PREFILT, POSTDEBLOCK, PREFILT_WIDE, POSTCDEF) SIGSEGV on every 10/12-bit stream: exit 139, 0-byte file, so a lane loses HBD debugging through them and cannot tell the crash from a decoder defect. Rung 12 (FINAL) works, and the difference is the whole bug. YV12_BUFFER_CONFIG stores plane pointers HALVED at high bit depth (aom_ports/mem.h: CONVERT_TO_BYTEPTR(x) = x >> 1; yv12config.c:161-180), so the real address is CONVERT_TO_SHORTPTR(p) (p << 1). The rungs did fwrite(y_buffer + r*y_stride, 1, w, f): pointer arithmetic on the halved value addresses an unrelated, unmapped address, and y_stride/uv_stride count SAMPLES so the row is wrong too. At 8 bit no halving happens, which is why the same line is correct there. Fix: one ec_dump_narrow_row helper (CONVERT_TO_SHORTPTR + low byte per sample, the C spelling of the decoder's `s as u8`) and every legacy row loop rewritten to call it. The 8-bit branch is the original expression verbatim. Rung 12 and every rung the decoder does not pair with are untouched. The new trailing block is a repair pass, so re-running instrument-aom-oracle.sh fixes an already-instrumented tree in place; verified byte-identical against a hand application, idempotent, and equal to a fresh derivation from pristine upstream. Measured: 12-bit av112bit-key.obu 139/0B -> 0/30720B; 10-bit palette_screen_witness_10bit and palette_screen_strip16_witness_10bit all four rungs byte-identical to the decoder's as u8 dumps (73728B); 2- and 6-frame 12-bit streams identical frame by frame; 8-bit output byte-identical to the shared oracle on 422_allskip_2f and golden4-pin.
Merge lane-av1rawhelper @ cf36ba5d — assert_rawvideo_matches takes a header-asserted bit_depth; all four call sites 5-argAhmet Kaan Gümüş · b628d0dBrowse files
lanes: merge-wave-3a report — four branches, one tail-append conflict, one cross-branch resolver fixAhmet Kaan Gümüş · 4abac36Browse files
gate_coverage: bind a hoisted `for (...,) in <name>` arm tableAhmet Kaan Gümüş · db9b45e
gate_coverage: bind a hoisted `for (...,) in <name>` arm table
Wave 3a integration. lane-av1txsearch landed
`print_tx_size_search_census`'s `unresolvable == 0` assertion, whose
stated purpose is to go red the moment a gate body builds the flag in a
shape the resolver cannot bind. lane-av1lossy128x96 then landed a gate
written exactly that way -- `for (label, search, want_mode, want_len,
want_fnv) in arms` with the arm table hoisted into `let arms` -- and the
assertion fired, as designed.
`bound_values` strategy (3) only understood an array spelled INLINE after
`in`. With a named collection it read past the `for` line to the next `[`
in the body, which is the gate's unrelated `&[..]` flag list, found no
digits, and returned an empty set. The gate's two arms were sitting
verbatim in the source the whole time.
New strategy (3b) follows the `for` line's collection name back to its
`let` binding and takes that column. Two details are load-bearing: the
word-boundary guard (`let arms_foo` must not answer for `let arms`), and
the `=` hop, because the binding's TYPE annotation is itself bracketed
(`[(&str, &str, TxMode, usize, u64); 2]`) -- scanning for the first `[`
after the name returns the type, not the table.
Red-before: with `merge(set)` replaced by `let _ = set;` the new case in
`the_resolver_binds_a_format_built_flag_in_both_directions` fails with
"the unmutated body should resolve to both values, got {}". Restored,
and the census reports the gate as `=0 and =1 (one arm each)` with
`unresolvable 0`.ec-av1: r2 — route the five guards that merged in after r1, close the classAhmet Kaan Gümüş · 1f8005c
ec-av1: r2 — route the five guards that merged in after r1, close the class
The merge review measured the CURRENT tree (9b2f6c9d), not r1's base: 21
`aomdec_path().is_file()` occurrences there, of which 18 were bare guard
sites. Six gates that merged after r1 branched were added with the same silent
shape and reported GREEN with the compare skipped under EC_AV1_REQUIRE_AOMENC=1.
The lesson is the stale base: a class sweep run against a base that is still
moving is a snapshot of the past, so the fix has to leave the decision in ONE
place rather than in thirteen.
All five remaining guards now call `aomdec_available`, including the inverted
`if !aomdec_path().is_file() { … return; }` in
a_444_lossless_sb64_intrabc_rect_chroma_walks_4x4_units. Seven redundant
`else { eprintln!("… pixel arm skipped") }` arms are deleted (six scripted,
one found by running the gates and seeing two SKIP lines for one skip), so a
skip prints exactly one line, from the probe. 18 bare guard sites -> 0; the
presence check survives in the probe, two hard asserts and two doc comments.
Red-before re-proven on the current tree (r2 reverted, r1 as rebased) with
EC_AV1_AOMDEC=/nonexistent/oracle/aomdec EC_AV1_REQUIRE_AOMENC=1:
before: ok. 3 passed — a_444_lossless_sb64_intrabc… "no oracle aomdec at
/nonexistent/oracle/aomdec, pixel arm skipped",
a_lossless_block_clips_its_transform_grid… SKIP, and the rect4-strip
gate printing one skip per pinned fixture
after: FAILED. 0 passed; 3 failed — each naming the gate, the missing path
and the env that should have caught it.
Oracle present: the six plus the two superres-mode gates that share
a_444_superres_arm pass (7 passed). Absent with the env unset: one SKIP per
gate, developer-only convenience, unchanged.
Acceptance: cargo test -p ec-av1 --lib -- gate_coverage refusal_inventory ->
26 passed, 0 failed (the enable-rect-tx staleness r1 reported is retired
upstream).
Report corrections in the same commit: the r1 header cited commit ee4f2d55,
which does not exist (git cat-file: fatal) — replaced with 644bdbb8, the real
rebased commit; and "thirteen gates" is thirteen CALL SITES across twelve
distinct gates (a_444_lossy_rect4_inter_stream_decodes_pixel_exact calls the
probe twice, for its 4:4:4 stream and its 4:2:0 control).lane-av1rawhelper: r2 second pass -- rebase onto 8dd07ed7, re-verify, stale-binary noteAhmet Kaan Gümüş · 2c94631Browse files
lane-av1rawhelper: report r2 -- arity strand, merged-tree compile proof, E0061 red-beforeAhmet Kaan Gümüş · d8498b6Browse files
lane-av1rawhelper r2: update the stranded call site added by 7b9f46faAhmet Kaan Gümüş · 2e1da96
lane-av1rawhelper r2: update the stranded call site added by 7b9f46fa Main's tree has two call sites of assert_rawvideo_matches; this branch's base predated 7b9f46fa, which added a_lossless_block_clips_its_transform_grid_at_the _frame_edge's arm at stream.rs:7165. git merge-tree reported the merge CLEAN and the merged tree failed to compile with E0061. Depth taken from the pin's own parsed sequence header (bit_depth=10, decode_probe), not from the gate's doc.
lane-av1rawhelper: derive assert_rawvideo_matches packing from the stream's bit depthAhmet Kaan Gümüş · e95fa15
lane-av1rawhelper: derive assert_rawvideo_matches packing from the stream's bit depth The helper packed our samples as u16 for every stream while aomdec --rawvideo writes 8 bits per sample for an 8-bit stream, so an 8-bit caller died on a raw-SIZE assert (ours 2x the oracle) without comparing a single sample, and the failure read like a data bug. Nothing in the signature said the helper was high-bit-depth only. - stream_bit_depth(): the depth comes from the stream's own sequence header - pack_rawvideo(): 1 byte/sample at 8-bit, 2 LE at 10/12-bit, u8 range asserted - assert_rawvideo_matches(): takes the caller's depth label and asserts it against the parsed header, failing by name before any packing - new gate: a real aomenc 8-bit stream compared sample-for-sample, plus a wrong-label arm that pins the loud failure so a reverted check is caught
Merge lane-av1lossy128x96 @ 9ecb36de — gate the 128x96 4:4:4 lossy tx-size-search cellAhmet Kaan Gümüş · 6f07b44
Merge lane-av1lossy128x96 @ 9ecb36de — gate the 128x96 4:4:4 lossy tx-size-search cell # Conflicts: # crates/ec-av1/src/stream.rs
Merge lane-av1pinslive @ 2e5509e9 — un-ignore five stale-ignore pins, commit four remaining untracked pin fixturesAhmet Kaan Gümüş · cc8c6eeBrowse files
Merge lane-av1leftwit @ d5ab6ef4 — +ss_y left-reference reachability, exact-counter census gate, four additive source correctionsAhmet Kaan Gümüş · 913d977Browse files
Merge lane-av1txsearch @ 4aebe74d — format!-flag detector, enable-rect-tx entry, unresolvable==0 assertAhmet Kaan Gümüş · aa976f1Browse files
ec-av1: the oracle SKIP class — 13 gates could skip their pixel compare SILENTLYAhmet Kaan Gümüş · 1f09dc0
ec-av1: the oracle SKIP class — 13 gates could skip their pixel compare SILENTLY
lane-av1gates444's three live 4:4:4 gates reported green having measured
nothing on a host without the oracle: encode_444_lossy_live returned an empty
Vec and gate_444_lossy_live_exact turned it into a second, silent early return,
so "no oracle" and "aomenc produced nothing" were the same value at the call
site. One exit now, Option instead of an empty-Vec sentinel, and the SKIP names
the env var that would make it a failure.
The sweep behind it found a worse instance of the same class that nobody had
named: THIRTEEN gates wrapped their oracle arm in a bare
`if aomdec_path().is_file()`, with NO env escape at all. With
EC_AV1_REQUIRE_AOMENC=1 set and aomdec absent they encoded, decoded, asserted
their geometry and their counters, skipped the compare and reported green —
four of the thirteen printed nothing at all. New probe `aomdec_available`, in
the have_ffmpeg shape (probe, assert LAST, env escape), now guards all
thirteen and prints its own SKIP; the nine ad-hoc `else` SKIP branches are
deleted so the notice and the assert cannot drift apart.
Proven in both directions with absence simulated through the crate's own path
overrides (EC_AV1_AOMENC / EC_AV1_AOMDEC -> /nonexistent/oracle/...):
- oracle present: the three gates pass (13/12/24 own-extent gathers) and the
eleven re-routed pinned gates still pass — nothing about what they measure
changed;
- aomdec absent + EC_AV1_REQUIRE_AOMENC=1: RED on the parent commit ("ok. 3
passed", compare never run, one gate silent), 3 FAILED here with a message
naming the gate, the path and the fix;
- absent + env unset: SKIP printed naming the path and the escape hatch, gate
still green — a developer-only convenience, stated as such in the text so no
batch can mistake it for evidence.
The ~445 `if !have_aomenc()` / `if !have_ffmpeg()` early-return SKIPs are
REPORTED, not changed: both probes already assert last with the env escape, so
those sites already fail under the REQUIRE vars. Full per-site table in
lanes/av1oracleSkip.report.md, which also records a PRE-EXISTING red on this
base that is not this lane's: gate_coverage's enable-rect-tx entries are stale
because a gate merged in 7f8817cb passes --enable-rect-tx=1.Merge lane-av1dumpyuv @ 60a7788a — dump_yuv / raw_to_y4m / lr-sgr harness derive or assert the sample depthAhmet Kaan Gümüş · 7bd9ad4
Merge lane-av1dumpyuv @ 60a7788a — dump_yuv / raw_to_y4m / lr-sgr harness derive or assert the sample depth The three non-test surfaces that consume raw decoded planes now carry the sample depth as data instead of assuming it: dump_yuv's example harness derives it, raw_to_y4m.py asserts it, and the lr-sgr pin harness takes it. A 10-bit N-frame stream is byte-identical in length to a 2N-frame 8-bit stream, so length alone cannot distinguish them; that limit is disclosed in the raw_to_y4m module docstring rather than left as a silent hole.
Merge lane-h264reallib @ 25c996b2 — real-media-library test sites reshaped to #[ignore] with fact-based reasons, plus four follow-upsAhmet Kaan Gümüş · 616d822
Merge lane-h264reallib @ 25c996b2 — real-media-library test sites reshaped to #[ignore] with fact-based reasons, plus four follow-ups
Real-library tests that silently SKIP when ffmpeg/ffprobe or a media file is
absent are reshaped to #[ignore] carrying the concrete reason each site needs
its dependency, so 'not run' stops reading as 'passed'.
Four follow-ups in the same tip:
* ec-probe: a silent skip replaced by a named SKIP that states what was
missing rather than returning quietly;
* ec-aac: two env::var("HOME").unwrap() -> unwrap_or_default() so a
HOME-less run degrades instead of panicking;
* ec-h264: one hardcoded absolute manifest path -> CARGO_MANIFEST_DIR-relative.
NOTE (do not amend): the branch's commit message cites line numbers that the
SAME commit's rustfmt pass renumbered. The citations were accurate when
written and are stale at this tip; they are left as-is deliberately.Merge lane-av1rect8x16 @ ee56661f — test-only refusal_inventory gate for decode_block_rect's `_` armAhmet Kaan Gümüş · c987fbf
Merge lane-av1rect8x16 @ ee56661f — test-only refusal_inventory gate for decode_block_rect's `_` arm
Lands one new entry in the inventory plus its enumeration/witness gate
`every_chroma_unit_decode_block_rect_can_present_has_a_coefficient_table`:
the nine textual `decode_block_rect(` matches in decode.rs are 1 declaration +
8 call sites, every call site passes `bw`/`bh` as integer literals and is a
32-level PARTITION_HORZ/VERT/HORZ_A/_B/VERT_A/_B arm of read_sb128_root's
`match part32`, so the caller shape set is exactly {32x16, 16x32} and their
chroma halves under 4:2:0/4:2:2/4:4:4 all have coefficient rows.
FIX IN THIS COMMIT: the inventory comment at refusal_inventory.rs:556 read
"All nine call sites", which contradicts the test's own
`assert_eq!(sites, 8)` and the lane report. Rewritten to state the accurate
arithmetic: nine textual matches = 1 declaration + 8 call sites.
Zero merge surface against wave 3: the branch is refusal_inventory.rs
(+246/-0) and lanes/av1rect8x16.report.md only. Merged --no-ff, no conflicts.Merge lane-av1recipehunt @ 1acf1818 — three TRACKED aomenc fixture pins, stream.rs/encode.rs/tile.rs recipe-hunt fixes, two gates un-ignored, one 128-superblock clip gate DELETED (coverage claim relocated to encode.rs:15689)Ahmet Kaan Gümüş · 083a88eBrowse files
lanes/av1pins r4: lr_sgr gets its asserts, plus two corrections to my own r3 claimsAhmet Kaan Gümüş · 1b5bc7e
lanes/av1pins r4: lr_sgr gets its asserts, plus two corrections to my own r3 claims The frame count was the substantive fix: the old body passed pics.len() as ffmpeg's EXPECTED count, so a zero-frame decode asked ffmpeg for zero frames and compared nothing. Red-before by mutating apply_sgrproj_stripe (+1 on its first output sample) lands on a PIXEL assert -- and on a CHROMA plane, which luma alone would have missed. Records two errors of mine. r3's 'the machine-local-pin population is zero' is false: pinned_warp_stream_decodes_pixel_exact reads 14 more uncommitted pins through a directory concat! literal my scanner could not match, and the invariant I handed the preflight lane is too weak to catch it. And my '4 ignored gates assert nothing' scan was wrong for that same gate, whose asserts live in a helper it delegates to.
test(av1): give pinned_lr_sgr the pixel asserts it lacked, and un-ignore itAhmet Kaan Gümüş · 0777cd0
test(av1): give pinned_lr_sgr the pixel asserts it lacked, and un-ignore it
r3 left this gate `#[ignore]`d on a FACT, not a judgement: its body `eprintln!`d
per-frame mismatch flags and returned, so it could not go red on a decode
regression. That is now fixed and the ignore is gone.
THE SUBSTANTIVE FIX is the frame count, not the asserts. The old body passed
OUR OWN decode's length as ffmpeg's expected count:
let reference = ffmpeg_decode_sequence(&stream, 192, 128, pics.len());
so a decoder that emitted ZERO frames asked ffmpeg for zero frames, the zip
compared no pairs, and the gate passed having proved nothing -- the exact
vacuous-pass shape `cmpaudit` swept elsewhere in this crate. The count now comes
from the FIXTURE (`FRAMES = 1`, measured), so a lost frame reds on the count.
Also added, matching the three sibling pins: a dimensions assert per frame, an
explicit `reference.len() == FRAMES` before the zip, and per-plane per-frame
pixel asserts. The diagnostic print is KEPT and now runs BEFORE the asserts, so a
failure still names the shape of the divergence.
On "does it compare only frame 0": it does not, and the loop is unchanged in
that respect -- it always visited every frame. This pin simply holds ONE frame,
which is why the pre-r4 run printed `frame 0` and nothing else.
RED-BEFORE, on a PIXEL assertion, by mutating the decoder arithmetic the pin
exercises -- `restoration.rs::apply_sgrproj_stripe`, +1 on its first output
sample:
frame 0: y_mismatch=false u_mismatch=true v_mismatch=true
panicked at stream.rs:30374: assertion `left == right` failed:
pinned_lr_sgr_stream_call_unique_dump frame 0 U vs ffmpeg (pinned lr-sgr)
test result: FAILED. 0 passed; 1 failed
Worth stating: the mutation landed in a CHROMA plane, so the gate caught it on
the U assert while luma stayed clean. A luma-only compare would have missed it.
Reverted (restoration.rs is clean) and the gate returns green.
The count assert is proven separately: `FRAMES = 2` reds at stream.rs:30328
with "decoded 1 frame(s), the pinned stream holds 2 -- a short decode would
otherwise ask ffmpeg for the same short count and compare nothing", not on a
pixel.
Plain run (no `--ignored`): 1 passed; 0 failed; 0 ignored; 0 measured; 0.10s,
printing "1 frame(s) byte-exact vs ffmpeg from .../crates/ec-av1/fixtures/
lr-sgr-r7.obu". The ignore was never justified by cost -- it was 0.10 s under
`--ignored` too.
`#[ignore]` in stream.rs 37 -> 36. gate_coverage 10 passed, refusal_inventory
15 passed. Tests only, no decoder change (the sgrproj mutation was reverted
before this commit; `git status` on restoration.rs is empty).lanes/av1pins r3: the four remaining untracked pins, and the class closedAhmet Kaan Gümüş · 9ca92c7
lanes/av1pins r3: the four remaining untracked pins, and the class closed All four pins recovered byte-for-byte from the runner libraries -- the original mismatch witnesses, not re-encodes (golden7's recovered pin reproduces the delta=2 its own doc records, which a re-encode could not). Three gates go live on the r2 bar; the film-grain gate was already live but PANICKED on a clean checkout via a concat! literal plus .unwrap(), the worst shape in the class. One gate stays ignored on a fact, not a judgement: pinned_lr_sgr asserts nothing, so it cannot fail on a decode regression. New shared require_pin(): a missing pin is a hard failure naming the path and the generator -- never a raw io panic, never a silent skip.
test(av1): commit the four remaining untracked pins; three gates go live, one earns a factual ignoreAhmet Kaan Gümüş · 6ff049e
test(av1): commit the four remaining untracked pins; three gates go live, one earns a factual ignore
Same defect r2 closed, three gates deeper. Four pins lived only in the gitignored
root `fixtures/` and reached the runners through a `fixtures -> ~/gates/library/
fixtures` symlink, so a clean checkout had no bytes at all. `.gitignore` on main
now negates `crates/*/fixtures/**`, so all four commit with a plain `git add`
(verified: `git check-ignore -q` returns 1, "not ignored", for each).
golden4-pin.obu 137 B sha256 1754023e44e46edaebc2c05065bf1c65db1a41354577cbf71c0e8ebe737ae14a
golden6-mismatch.obu 452 B sha256 c56909b98542192b03f3a945e153475aa57a58a1586bf166513297296cb225b3
golden7-forwarding-mismatch.obu 152 B sha256 81b3bf657a85e95085287b30d97dee93ba5aea0ed1db1e1f4fcd19a06afc17be
lr-sgr-r7.obu 192 B sha256 6b95b20e3377430ffae0b2ce86fad9502e0dedf13cd6c38ab7f5af4a8b21f33d
RECOVERED, NOT RE-ENCODED. I first reproduced golden4/golden7 from the
cdf-forwarding recipe and captured golden6 from a throwaway harness built on the
crate's own `panned_test_card`, then found the original bytes still on the runner
libraries and fetched those instead -- they are the actual historical mismatch
witnesses, which a re-encode is not. The originals also self-validate: golden7's
committed doc records `non_last_ref_hits` delta=2 for this stream, and the
recovered pin reproduces exactly 0->2. (The throwaway capture harness was deleted;
`grep -c zz_throwaway` = 0.)
THREE GATES GO LIVE, on the same bar r2 applied:
pinned_golden4 1 passed 0.11s, prints "non_last_ref_hits before=0 after=1"
pinned_golden7 1 passed 0.10s, prints "non_last_ref_hits before=0 after=2"
a_real_aomenc_stream_with_film_grain_decodes_pixel_exact 1 passed 0.10s
None touches a process-global, and the counter each reads is printed, never
asserted. `#[ignore]` in stream.rs 41 -> 37.
THE FILM-GRAIN GATE WAS THE WORST AND WAS ALREADY LIVE. It read its pin through a
`concat!(env!("CARGO_MANIFEST_DIR"), "/../../fixtures/...")` literal and
`.unwrap()` -- the gitignored root, with no graceful skip -- so a clean checkout
with no runner library would PANIC, not skip. That shape can never be satisfied
by a committed pin at all, which is why it is now `crate_pin` + `require_pin`.
`require_pin` is new and shared: a missing pin is a hard failure naming the path
and the generator and pointing at EC_AV1_GATE_DUMP_PIN. Never a raw io panic,
never a silent skip -- the two shapes this class has taken.
ONE GATE STAYS IGNORED, ON FACTS. `pinned_lr_sgr_stream_call_unique_dump` asserts
NOTHING: it `eprintln!`s per-frame mismatch counts and returns, so it cannot go
red on a decode regression and un-ignoring it would add a test that reports pass
unconditionally. Its pin is now committed too, so the old "reads a pinned fixture
under the gitignored fixtures dir" reason was false and is replaced with the two
reasons that are still true (asserts nothing; needs EC_LR_CALL_DUMP=1 for a
window). What would close it: give it the pixel asserts its siblings have, then
un-ignore. Measured plain run under --ignored for the record: 1 passed 0.10s,
"frame 0: y_mismatch=false u_mismatch=false v_mismatch=false".
Meta-gates after the change: gate_coverage 10 passed, refusal_inventory 15 passed.
r2's two gates re-verified green. Tests only, no decoder change.lanes/av1pins r2: the two pins were still #[ignore]d, so a plain run executed nothingAhmet Kaan Gümüş · 7e04950
lanes/av1pins r2: the two pins were still #[ignore]d, so a plain run executed nothing
r1's before/after table was measured under --ignored and did not say so, which made
it read as a fix when it was only a fix under a flag. A clean checkout cannot see a
committed pin, so the lane that fixed the pin hole left the ignore hole standing in
the same commit -- and the replacement reason string ('bisect aid, not a suite
gate') was a judgement, not a fact.
r2 removes both ignores (2e9086c0): no process-global, no counter, no lock, no
aomenc, 0.10-0.15 s each, ffmpeg already guarded. Plain-run evidence in the report,
plus the confirmation that neither appears in -- --ignored any more and the count
drops 41 -> 39. Records a meta-gate failure I caused and disproved (my own
concurrent run on the shared target dir), and hands back three sibling gates with
the same defect.test(av1): un-ignore the two pins that are now committed -- the ignore reason is staleAhmet Kaan Gümüş · 04ca450
test(av1): un-ignore the two pins that are now committed -- the ignore reason is stale
`pinned_golden3_stream_decodes_pixel_exact` and `pinned_sbpart_stream_decodes_pixel_exact`
were `#[ignore]`d, so on a plain suite run they contributed nothing -- the same
hole in a different costume from the rc=0-skip one lane-av1pins just closed.
The ignore is stale, and it has been stale twice over. It was introduced at
c9fede5d (2026-08-28, lane-av1golden3) with the reason
`reads a pinned fixture path outside the repo; run manually`, and the doc comment
gave the real cause: "the file only exists on this machine's scratchpad". That was
true then. It stopped being true at 78c805bd, which committed both pins under
`crates/ec-av1/fixtures/` -- a path that travels in the runner tarball, so the
bytes are on every runner. lane-av1pins then replaced the reason with
"bisect aid, not a suite gate", which is ALSO wrong: with the bytes committed
these are ordinary decode-exactness gates, not bisect aids.
No condition that makes this crate ignore a gate applies. Measured on a5867794:
* no process-global: neither body calls `force_sb128` or `knob_write`;
* no counter, no `lock_gate_counters()`;
* no aomenc: they decode committed bytes and compare to ffmpeg, so they are
also not real-aomenc gates and stay out of the `gate_coverage` census;
* cost 0.10-0.15 s each (measured), not a minutes-per-item recipe;
* ffmpeg presence is already guarded by `have_ffmpeg()`, so
`EC_AV1_REQUIRE_FFMPEG=1` makes a missing ffmpeg a hard failure rather than
a silent skip.
Precedent: gate_coverage.rs records the 10-bit LR gate "was `#[ignore]`d on
that branch and passes un-ignored on main, which carries the fix".
Plain-run evidence (no `--ignored`), `--release --test-threads=1`:
pinned_golden3 ... 1 passed; 0.15s; prints "4 frame(s) byte-exact vs ffmpeg
from .../crates/ec-av1/fixtures/golden3-pin.obu"
pinned_sbpart ... 1 passed; 0.10s; EC_SBPART_DIAG=1 walks all 24576 luma
samples ("DIAG frame 0: 0 luma mismatches ... of 192x128")
Both also execute under a plain substring filter (`-- pinned_`) with no
`--exact` and no `--ignored`, and neither appears in `-- --ignored` any more.
`#[ignore]` count in stream.rs 41 -> 39.
`a_real_aomenc_lossless_444_key_frame_decodes_sample_exact` needed no change: it
carries no `#[ignore]` and passes plainly (1 passed, 0.21s).
Meta-gates re-checked after the change, since un-ignoring changes the census
input: `gate_coverage` 10 passed, `refusal_inventory` 15 passed, both green on
6 consecutive runs.
Tests only, no decoder change. Follow-on NOT done here and reported instead:
three sibling pin gates carry the same stale reason and read pins that are still
untracked -- `pinned_golden4_stream_decodes_pixel_exact` (golden4-pin.obu),
`pinned_golden7_stream_decodes_pixel_exact` (golden7-forwarding-mismatch.obu) and
`pinned_lr_sgr_stream_call_unique_dump` (lr-sgr-r7.obu, which `.expect()`s the
read rather than skipping, so it would PANIC in a clean checkout if ever
un-ignored as-is).report: state the two general rules the gate-1 deletion turned upAhmet Kaan Gümüş · e100a8a
report: state the two general rules the gate-1 deletion turned up (1) A gate whose precondition is unreachable is dead weight ONLY when BOTH of its halves are covered elsewhere. The bar for deletion is not "the assert cannot fire" but "the assert cannot fire AND everything else the test did is provably done elsewhere" -- #[ignore] is nearly free and still tells the next lane what was tried, while a deleted unique assertion is not recoverable from prose. Check every other assertion in a doomed test before cutting it, not just the broken one. (2) Grep the name you removed, after you remove it. Cutting the gate left a live 'cargo test ... --nocapture' run-line in a sibling's doc comment pointing at a test that no longer exists; the symbol search missed it because I had only written doc mentions of that name myself. Same doc-drift class as every other rename trap here: a removal is not done until the prose points at what now exists.
r2: rebase onto merged main, delete the unreachable drl gate, re-verify the pinsAhmet Kaan Gümüş · fac47ce
r2: rebase onto merged main, delete the unreachable drl gate, re-verify the pins Gate 1 is DELETED rather than kept-with-a-better-ignore, on evidence rather than preference: its precondition is unreachable (r1), and its pixel half -- the decode-vs-encoder-reconstruction compare on a 1280x768 force_sb128 sequence -- is already made four times over by the sibling sb128 gates at the same geometry. Deletion therefore loses no coverage on either half, which is the condition under which deleting a gate is right; had the pixel compare been unique, keeping it with a fact-stating ignore string would have been the honest call. The coverage claim moves to the test that now carries it, every_drl_index_the_new_mv_pricer_offers_is_one_the_writer_can_signal (encode.rs:15689), which is strictly stronger than the clip gate: it enumerates the pricer's whole offer set against the writer's rule, and 0..=4 bounds the DOMAIN rather than sampling it, since best_new_mv_syntax breaks at entries.len() <= idx for idx > 0 and so no stack size can offer index 3 or 4. A second pointer added at encode.rs:18618, where a cargo test run-line still named the deleted gate. note_drl_clamp and DRL_CLAMP_HITS are KEPT as the tripwire for the owning fix -- the invariant test goes red the moment the pricer is widened, and tile::drl_clamp_hits() then shows the clamp on real content. The #[cfg(test)] take_drl_clamp_hits had no reader left and is removed. One rebase conflict, in the two 1:4 gates' comment slot: lane-av1pins had independently re-run those gates on the seven-lane tree and recorded the same two facts (pixel blocker gone, recipe never fires). Both records are kept side by side in the resolved comment -- theirs is the merge-main evidence the mandelbrot claim was dead, ours is the mechanism and the fix. Three pins re-verified on merged main (aa0ac8c2, +58 commits) in a PLAIN pass, 0 ignored, private CARGO_TARGET_DIR, sources touched first: all green, every pin byte-identical to r1 (8384/35179/34727 B, same fnv1a64), each printing its counter and its control arm on one line.
tests: close the rest of the real-media-library class (4 sites)Ahmet Kaan Gümüş · b1bc5d6
tests: close the rest of the real-media-library class (4 sites)
Follow-ups to the shape sweep, all approved. Each was red on a runner for a
reason that had nothing to do with a decoder.
ec-probe/tests/library.rs:490 -- REMOVE the minimum-count assert rather than
ignore the test. The file's own header is the spec, and it says so at lines
5-6: "Files that have since moved are skipped and reported, never failed --
the manifest is a snapshot of a moving library." An empty `chosen` IS the
moved-files case, so the assert contradicted the contract the file declares:
the contract is the spec, not the assert. Replaced with a named SKIP and a
return, which is what "skipped and reported" asks for.
before: red-on-runner whenever every manifest path had moved
after: 1 passed; 0 failed; 0 ignored
ec-aac/tests/sbr_real_library.rs:4797 and ec-aac/tests/obs_real_content.rs:151
-- bare env::var("HOME").unwrap() -> unwrap_or_default(), the shape the five
sibling HOME reads in sbr_real_library.rs already use (:2710, :3426, :4109,
:4182, :4575). A HOME-less host is a fleet runner, so this was a panic there;
the batch has now hit that class from three directions.
before: FAILED. 0 passed; 1 failed
called `Result::unwrap()` on an `Err` value: NotPresent
after: 1 passed; 0 failed; 0 ignored (both, under `env -u HOME`)
ec-matroska/tests/matroska.rs:966 -- the manifest was read from a hardcoded
absolute path into the primary checkout, unlike every sibling. That defeats
worktree isolation even while the test is ignored: a run in a worktree or a
gate tree read the MAIN checkout's manifest, so it measured a different
tree's library than the one it was compiled from. Now `fixtures()`, i.e.
CARGO_MANIFEST_DIR-relative.
The two HOME fixes were proved by running them under `env -u HOME` -- the
runner shape -- before and after; the before-state panic is quoted above.
Class disposition after this commit: 6 fixed, 0 remaining red-on-runner,
14 already correct, the rest already ignored or false positives.gate 1: delete the unreachable drl-clamp clip gate; the invariant test is the coverage claimAhmet Kaan Gümüş · a7e1d4c
gate 1: delete the unreachable drl-clamp clip gate; the invariant test is the coverage claim The gate asserted drl_clamp_hits() > 0 on a real 1280x768 sb128 clip, but DRL_CLAMP_HITS is provably unreachable while every_drl_index_the_new_mv_pricer_offers_is_one_the_writer_can_signal holds, so no recipe could ever satisfy it (153 attempts, 0; widening the pricer's offer set to 0..5 fires the counter immediately and reverting silences it again). Deletion loses no coverage on either half. The clamp half is this invariant test, and it is strictly stronger than a clip gate: it enumerates the pricer's whole offer set against the writer's rule, and 0..=4 bounds the DOMAIN rather than sampling it (best_new_mv_syntax breaks at entries.len() <= idx for idx > 0, so indices 3/4 are unreachable at any stack size). The pixel half -- the deleted gate's decode-vs-encoder-reconstruction compare on a 1280x768 sb128 sequence -- is already made four times over by the sibling sb128 gates at the same geometry with the same force_sb128(true). The coverage claim now lives on that invariant test's doc comment, which names the deleted gate and both substitutes. note_drl_clamp and DRL_CLAMP_HITS are KEPT as the tripwire for the owning fix, and the now-unused take_drl_clamp_hits is dropped in favour of the non-destructive tile::drl_clamp_hits() the enc_probe hunt reads.
gates: close the two blind 1:4 / delta_q recipes, prove the drl one unreachableAhmet Kaan Gümüş · 4359ea0
gates: close the two blind 1:4 / delta_q recipes, prove the drl one unreachable
Three `#[ignore]`d ec-av1 gates were blind because their recipe never provoked
the feature. Two are now closed with a pinned, red-proved fixture; the third
cannot be closed by any recipe and that is proved rather than assumed.
a_real_aomenc_stream_..._horz_vert_partition_and_delta_q_decodes_pixel_exact
r1 swept 40 attempts with frame_count = 1 -- a single key frame, so the stream
carried no `delta_q_present` at all (0 groups AND 0 drift on every arm, a
different failure from "the drift never reached a rect64 block"). Replaced
with testsrc2 512x384 x 4 frames at --cpu-used=0: 48 delta_q groups read, 17
rect64 dequant calls with CURRENT_Q_IDX != base_q_idx, sb_rect_hits firing
(inter_rect 64x32=2 32x64=2), 4 frames pixel-exact vs ffmpeg. `--cpu-used=0`
is load-bearing (1 and 3 drift zero times); `--cq-level` is not. Pinned as
fixtures/rect64_dq_drift.obu (8384 B, sha256 094e51bb...). The gate asserts
the pin against a live re-encode, and a control arm re-runs the same command
line with `--deltaq-mode=0` requiring 0 drift -- which is also the red-proof:
reverting that flag turns the gate red on its own precondition with the pixel
compare still green.
a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact (+ _10bit)
The 22-line comment above the `#[ignore]` blamed a pre-existing inter-frame
pixel defect. That is stale -- the pixel blocker cleared (both arms compare
exact). The real cause is that `--min-partition-size=32` with the intra mode
tools off never puts a 1:4 partition on aomenc's RD menu: measured, the
32-level 1:4 counter is 0 in all 48 attempts at min-partition-size=16 and
fires in 40 of 48 at 8 with `--enable-smooth-intra/paeth-intra/directional-
intra/angle-delta=1`. Replaced both arms with mandelbrot 256x192 x 6 frames
at --cpu-used=2 --cq-level=63: 32x8=8 8x32=11 (8-bit) and 32x8=12 8x32=7
(10-bit), 6 frames pixel-exact each. Pinned as
fixtures/intra14_256x192_{8,10}bit.obu. Same pin + control-arm shape; the
`--enable-1to4-partitions=0` control is the red-proof.
a_128_superblock_clip_whose_drl_index_the_write_time_stack_cannot_carry_...
UNPRODUCIBLE, and not for want of a recipe. DRL_CLAMP_HITS needs the search to
pick a `ref_mv_idx` the write-time stack cannot signal, and in every mode the
search's offer set is inside the signalable range: NEWMV's pricer enumerates
0..3 and the writer's ceiling from start=0 is start+2 = 2; NEARMV's loop is
1..=2 against a start=1 walk whose entries guard coincides; every compound
InterInfo hardcodes ref_mv_idx: 0. The tree already asserts this over stack
sizes 0..=4 in every_drl_index_the_new_mv_pricer_offers_is_one_the_writer_can_
signal. Measured 153 clip x size x frames x q combinations: zero clamps, while
a trace shows the search does pick index 2 (163x on mandelbrot 640x384x8) --
which is exactly what the writer signals. Mutation proof: widening the
pricer to 0..5 fires the counter on the first clips tried (9/2/2/1) and the
same clips read 0 again on revert. The gate keeps its `#[ignore]`; its doc
comment now carries the finding and the owning fix so the sweep is not
repeated.
Instruments kept (both are what a recipe sweep reads from outside the test
binary): tile::drl_clamp_hits(), a non-destructive read of DRL_CLAMP_HITS, and
stream::rect64_qidx_drift_counters(), the (delta_q groups, rect64 drift) pair
whose two halves separate "no delta_q in the stream" from "delta_q that never
landed in a rect64 block". An earlier DRL-index histogram was removed rather
than shipped: it records the SIGNALLED index, downstream of the clamp, so it
structurally cannot show the 3+ bucket and answers none of the hunt's questions.lane-av1rect8x16: run the footprint walk before the exact-table pinAhmet Kaan Gümüş · 4bb956e
lane-av1rect8x16: run the footprint walk before the exact-table pin The exact-table pin masked the walk: deleting decode.rs:14791's `(16, 8) =>` arm failed with the vague "decode_block_rect's chroma table changed" instead of naming the strip that lost its row. The walk now runs first, so a deleted row fails naming the strip and its subsampling. Red-before, each reverted with decode.rs byte-identical, and each run after touching decode.rs (this crate's census tests read compile-time sources, so a stale binary would otherwise report the previous state): - delete `(16, 8) =>` (14791) -> RED: a 32x16 strip at subsampling (1,1) has a 16x8 chroma transform with no coefficient table -- LIVE - delete `(16, 16) =>` (14801) -> RED: a 32x16 strip at subsampling (1,0) has a 16x16 chroma transform with no coefficient table -- LIVE - the PARTITION_VERT call site's `16,` -> `8,` (34536) -> RED: the caller shape set changed -- an 8x16/16x8 caller makes this refusal LIVE - a call site's `32,` -> `at32.0 * 2,` (34490) -> RED: non-literal strip size - restored -> GREEN; all 16 refusal_inventory tests pass Also states in the report that the 840-encode sweep is corroboration, not the proof: it shows the refusal does not fire where the shape is coded, but cannot show the shape is unreachable in a stream nobody encoded. The proof is the static caller-shape-set derivation, and these assertions are what make the tree enforce it. Test code only. decode.rs untouched.
tests: make the real-library sweeps LOCAL-ONLY, and report the classAhmet Kaan Gümüş · fcb9ffb
tests: make the real-library sweeps LOCAL-ONLY, and report the class
real_library_streams_match_ffmpeg reds every fleet run with "only 0 real
files swept end to end; the sweep is the point". It is not a decoder defect:
the precondition is a PERSONAL media library, reachable only through the
gitignored fixtures/real-library-manifest.tsv that
scripts/scan-real-library.sh generates by scanning the user's own media
directories.
Both of its runner behaviours are wrong, which is why this is #[ignore] and
not an env-gated SKIP:
- manifest absent -> the existing "SKIP: missing" return prints GREEN,
which is the silent-skip class this batch is removing;
- manifest present, paths unresolvable (a host that ran the scan against
an empty library) -> zero swept, `decoded >= 3` fails, red for a reason
unrelated to the decoder.
An env gate whose variable is absent on the runner prints that same green --
the defect, not the fix. An ignore is visible in --list, cannot go green
silently, and leaves the assertion intact.
ec-aac's real_library_tracks_match_ffmpeg gets the identical one-liner: same
manifest, same "skip if missing then assert checked >= 3" shape, same two
failure modes.
Local verdict on the workstation, where the library is: 15 files decoded
bit-exact, 0 refused by name, 0 failures, 1918 s, across matroska and
mov/mp4 at 576px-3840px, with one file taking the container-demux fallback.
The decoder is fine. The 1918 s is now in the ignore reason so the next
person does not read a 30-minute wall time as a wedge.
lanes/h264reallib.report.md carries the full class sweep: 51 sites examined,
2 fixed here, 3 that need a decision (ec-probe library.rs:490, whose own
header comment the assert contradicts, and two bare HOME unwraps that want
unwrap_or_default), and the false positives that must not be touched.dump_yuv/raw_to_y4m/lr-sgr harness: derive or assert the sample depthAhmet Kaan Gümüş · 46861fe
dump_yuv/raw_to_y4m/lr-sgr harness: derive or assert the sample depth The depth-packing class the prior audit fixed in the test helpers was still live on three non-test surfaces. `examples/dump_yuv.rs` packed every sample as u16 LE unconditionally and its docstring named yuv420p10le as the companion, so an 8-bit stream got a silent 2x-size file whose cmp against aomdec --rawvideo failed on length and read like a decoder bug. The depth now comes from the stream's own parsed sequence header; --depth is an ASSERTED argument that names both depths and the consequence and writes nothing. `scripts/raw_to_y4m.py` framed at w*h*3//2 with no depth anywhere, so a 10-bit stream was cut at half frame length and its trailing partial frame dropped silently. DEPTH is now required and checked against the stdin length. `scripts/lr-sgr-pin-harness.c` read /tmp/lr_full.bin at 1 byte per sample with the depth recorded nowhere; the file length is now the assertion, and a 2x high-bit-depth capture is refused by name. Sweep rows, including the seven sites examined and NOT fixed with reasons, in lanes/av1dumpyuv.report.md.
lane-av1rect8x16: prove decode_block_rect's (4,8) chroma arm is unreachableAhmet Kaan Gümüş · 406d673
lane-av1rect8x16: prove decode_block_rect's (4,8) chroma arm is unreachable
The refusal "a rectangular chroma transform whose size has no coefficient
table" (decode.rs:14804) had no PROVEN row -- it was the audit round's
single unproven refusal. The sibling sweep that surfaced the gap
(every_rect_strip_shape_the_split_path_codes_has_a_luma_and_chroma_table)
audits decode_rect_split's tables, not this function's, and so only ever
asserted the superblock-level 64x32/32x64 footprints. The 8x16 luma strip's
4x8 chroma was left unasked.
Answered: UNREACHABLE, and structurally so. All 8 call sites of
decode_block_rect are 32-level match part32 arms of read_sb128_root and pass
bw/bh as the integer literals 32, 16 or 16, 32, so the function's chroma
footprint set over every subsampling an AV1 color_config can carry is
{(16,8), (8,16), (16,16), (8,32), (32,16), (16,32)} -- all six have a row. A
16-level 2:1 luma strip is read by decode_leaf_rect, which carries the (4,8) /
(8,4) rows itself (decode.rs:15409-15420).
Measured, not assumed: 840 real aomenc 4:2:0 key-frame encodes, 826 of whose
parsed leaf lists provably code a 16-level 2:1 luma strip (via
horz_vert_intra_hits(), which fires only at the three decode_leaf_rect strip
sites), all 840 decoded to completion with the refusal firing 0 times.
every_chroma_unit_decode_block_rect_can_present_has_a_coefficient_table reads
the caller shape set out of decode.rs's own argument lists, pins the table's
six rows, walks the domain, and asserts the (4,8)/(8,4) residual as code.
Red under three mutations (an 8x16 caller, a new (4,8) row, a non-literal
strip size). Inventory: 32 -> 33 proven.
decode.rs, decode_rect_split and read_block_tx_size untouched; no existing
test weakened.