Commits
Commits on
0ec5cf8fcbc6e6d13d3f2830f58aa4bb866eaece2026-09-29
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.docs(av1superpin): correct the published cells the superres no-op got wrongAhmet Kaan Gümüş · 8fbb8ab
docs(av1superpin): correct the published cells the superres no-op got wrong
lanes/av1formatsweep.report.md said 4:4:4 superres = D at 8-bit and named a
divergence for a stream that never scaled. Five lines corrected, plus two
that would otherwise contradict them:
line 83 matrix superres row, 4:4:4 -> Y at 8-bit
line 438 the sr444 row: bytes are the sweep's own 15239/sha 06621606, every
parsed header reads use_superres=false denom=8, so the stream is a
no-op and its divergence is the H1 rect4-strip class (now gated by
the strip-own-extent gate, second arm is those exact bytes)
line 442 the '--superres-mode=1' note: mode 1 needs --superres-denominator
(libaom otherwise picks 8 and emits a no-op), mode 2 ignores the
denominator flags and picks its own PER FRAME (11/14/15/9)
line 485 superres -> D becomes superres -> Y at 8-bit
line 492 4:4:4 superres at 10/12 bits: still open, left as written, checked
line 338 the 'not measured' list, which would otherwise contradict line 83
line 504 the handoff that still calls both cells unassigned
Oracle libaom v3.13.3-7-g9bb526a, established from the source tree
scripts/build-aom-oracle.sh builds -- --version is not an accepted flag there.av1: close the enable-dist-wtd-comp coverage hole with a real witness streamAhmet Kaan Gümüş · b93fec6
av1: close the enable-dist-wtd-comp coverage hole with a real witness stream The coverage census listed `enable-dist-wtd-comp` in NEVER_EXERCISED_8BIT with the reason "distance-weighted compound is unimplemented". That reason was WRONG. The combine is implemented: `compound::dist_wtd_comp_weight_assign` (lane-av1comp) and `mc::combine_compound`'s weighted path have been in the tree for a long time. What was missing was a stream CARRYING the tool, so the census read the entry as open and no gate ever proved the tool fires. STEP 0 (producibility, against aom 3.13.3): the flag maps onto the sequence header's `enable_jnt_comp` bit -- `av1_cx_iface.c:1062` -> `order_hint_info.enable_dist_wtd_comp`, written at `bitstream.c:2681` under `enable_order_hint` and AND-masked by it at `av1_cx_iface.c:1491`. The parsed header is asserted, never the flag spelling. Measured: the same recipe parses `jnt_comp=true` with `=1` and `jnt_comp=false` with `=0`, and the arms differ on the wire (6855 B vs 6911 B). A flag the encoder accepted but ignored would fail both asserts. The gate: `--enable-dist-wtd-comp=1` over rotating mandelbrot at `--min-partition-size=32 --cq-level=30` (both load-bearing -- at min=16 the encoder emits 8x8 inter leaves this decoder refuses BY NAME before the `compound_idx` read runs, and at cq 45/55 the stream has no compound block at all). Three hard asserts: the PARSED header carries `enable_jnt_comp`; the `compound_idx == 0` arm fired (`dist_wtd_comp_hits() > 0`); and every frame is pixel-compared against the oracle with lengths asserted first. decode.rs is additive only -- a `DIST_WTD_COMP_HITS` counter and two `hit!` calls inside the existing `idx == 0` arm. No blend arithmetic is touched, so the single-reference path is unaffected (neither bump site is reachable without a second reference) and 12-bit is unaffected (`combine_compound` already carries the `round_delta` post-round from lane-av112bit). Measured: 25 oracle frames, 21 distance-weighted blocks. Red-before, both directions. Mutating `dist_wtd_comp_weight_assign` to return the (8, 8) simple average reds the pixel compare at decode-order frame 7 (552 bytes differ); disabling the counter reds `dist_wtd_comp_hits > 0` with the pixels still green, which is what separates "the counter can fire" from "the pixel compare alone would catch it". Regression: 35/35 compound gates green (8/10/12-bit, including the 12-bit 8x8 leaf) and 15/15 4:4:4 gates green. 4:4:4 reaches the same arm independently (22 blocks at cq 20, 21 at cq 30, pixel-exact both) and 12-bit reaches it too (15 blocks), so the tool is not 4:2:0-only.
test(av1): lane-av1superpin -- the two remaining measured-exact 4:4:4 superres membersAhmet Kaan Gümüş · ae116f1
test(av1): lane-av1superpin -- the two remaining measured-exact 4:4:4 superres members den=9 (coded 228x128, the widest frame-edge margin this geometry allows) and superres-mode=2 (parsed denominators 11/14/15/9, one per frame). Both assert use_superres, the per-frame PARSED denominator, upscaled_width, the coded size, and re-derive FrameWidth from (UpscaledWidth*8 + denom/2)/denom. The mode-2 gate also asserts the flag-ignoring property directly: encoding the recipe with no denominator and with 9/12/16 all reproduce the pinned bytes, and three of the four parsed denominators are values no flag ever named -- so a future gate cannot pass by reading the flag instead of the header. Oracle: libaom v3.13.3-7-g9bb526a (scripts/build-aom-oracle.sh source tree; --version is not an accepted flag on that build).
lanes: av1chrtx report — rect chroma per-unit tx_type + rect coeff-trace plane tagAhmet Kaan Gümüş · 4106dd6Browse files
lanes: av1skipfix report — four gates converted, 444 pin require-env, fixture generator auditAhmet Kaan Gümüş · 2183936Browse files
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.docs(av1444edge) r3: the flag sweep the superres cell needed -- 7 of 29 combinations scale, and the verdict comes from the parsed headerAhmet Kaan Gümüş · c3f7cbf
docs(av1444edge) r3: the flag sweep the superres cell needed -- 7 of 29 combinations scale, and the verdict comes from the parsed header
Answers Main's question directly: real 4:4:4 superres IS producible on
this build, by two independent routes.
The no-op that was reported is real and is exactly the sweep's recipe:
`--superres-mode=1` with NO denominator yields sha256 06621606, which is
byte-identical to the no-flag control, and every frame header reads
use_superres=false denom=8. libaom picks the denominator itself
(get_superres_denom_for_qindex returns SCALE_NUMERATOR unless the frame is
a KF/ARF update and the horizontal-energy test passes; a smooth testsrc2
source returns 8).
What scales:
- mode=1 + --superres-denominator 9/12/16 -> parsed use_superres=true at
that denom, coded 228/171/128 upscaled to 256.
- mode=2 (random) -> scaled with NO denominator, and it IGNORES
--superres-denominator: all four values give the identical 186x128
denom=11 stream. So a gate asserting the flag value rather than the
parsed value would pass on mode 2 while printing fiction.
- mode=3 (qthresh) and mode=4 (auto) are no-ops at every denominator,
consistent with the committed census gate's own recorded finding.
- --resize-mode is a different feature and never a superres witness: it
downsizes the FRAME (frame=171x85 upscaled=171) whereas superres keeps
frame_width < upscaled_width. Worth separating, because "denominator"
appears in both flag families.
Our decoder on all four real scaled streams, decode order, equal counts
and equal per-frame lengths asserted first: den=9 (228x128), den=12
(171x128), den=16 (128x128) and mode=2 (186x128) are ALL byte-exact 4/4.
So the class is exact across denominators 9, 11, 12, 16 and coded widths
128, 171, 186, 228 -- not one geometry. The gate pins the den=12 member
with its parsed use_superres / denom / coded size asserted; den=9 (the
widest frame-edge margin) and mode=2's denom=11 are the obvious next pins
and are recorded as ungated rather than quietly dropped.
Names the sweep claims to correct without editing the sweep lane's file:
line 438 (the sr444 row: a no-op stream, and its divergence is the H1
class, not superres), line 83 (matrix superres row -> Y at 8-bit), line
485 ("superres -> D" -> Y), line 442 (the flag note that let the no-op
stand as a cell), line 492 (10/12-bit still open, still true).
Also flags an overlap for the merge owner rather than resolving it:
lane-av1gates444's a_444_lossy_256x128_stream_decodes_pixel_exact pins the
same 15239 bytes as my r1 gate's second arm, but the claims differ (mine
is the 1:4-strip route and the H1 fork, not the geometry). Both are
load-bearing; the fixture pin should be reused, not duplicated.lane-av1gates444: report -- three measured-EXACT 4:4:4 lossy cells pinned with live aomenc gates, recipe byte-identical to the sweep's, red-before measured on two mutations, and the third cell measured NOT to be a superres cellAhmet Kaan Gümüş · 064c559Browse files
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.
test(av1): lane-av1444edge r3 -- the FIRST 4:4:4 superres cell, with the header assert the phantom cell failedAhmet Kaan Gümüş · 2bc3af6
test(av1): lane-av1444edge r3 -- the FIRST 4:4:4 superres cell, with the header assert the phantom cell failed Closes the last hand-quoted thing this lane was handed. §6.6 of `lanes/av1formatsweep.report.md` left "4:4:4 superres at 10/12 bits" on the not-measured list and §6.2 mislabelled the 8-bit cell; r2 established the real 4:4:4 superres cell is exact but had no gate, and this is it. The cell: 256x128 upscaled, coded 171x128, `denom = 12`, 4:4:4 8-bit lossy cq-20. 14808 B, sha256 450caa3e31526a8973b9f64d5030a2f11b87bd60fac07aef121cb62af9bf85ff, reproducible byte-for-byte from the quoted recipe. Why the header assertions are the point. The sweep's cell passed `--superres-mode=1` with no denominator; libaom's energy heuristic chose 8, every frame header read `use_superres=false denom=8`, and a whole matrix cell was an unscaled stream wearing a superres label. So the gate parses the headers and asserts, per frame: `use_superres`, `superres_denom == 12`, `upscaled_width == 256`, and the CODED size 171x128 -- and then re-derives `FrameWidth == (UpscaledWidth*8 + denom/2)/denom` rather than only comparing literals, so a re-pinned fixture cannot satisfy the numbers while the scaled-size arithmetic moves under them. A stream that stops being scaled goes red on a header assertion instead of quietly becoming a differently-shaped exactness claim. The pixel arm also asserts the frame comes back at 256x128 and not 171, and that both chroma planes are full resolution, so a decoder that upscaled only luma fails on shape rather than passing the byte compare on quarter-size planes. Non-vacuity: `superres_hits` (measured 4) and `mc::predict_scaled_hits` (measured 2130) as DELTAS, so the upscaler and scaled inter prediction are both known to have run. Scope, stated honestly: this is the FIRST 4:4:4 superres cell in the crate, not a broadening of an existing family. All eight pre-existing superres gates are 4:2:0, checked rather than repeated -- the two pinned fixtures parse `ss (1,1)` from their own sequence headers (superres_kf_cdef_lr_64x64.obu 8-bit, superres_alltools_sb128_320x180.obu 10-bit) and the six live-aomenc gates all feed a `yuv420p` / `yuv420p10le` source. Green: 4/4 decode-order frames byte-exact vs aomdec, 4 upscales, 2130 scaled MC blocks, no SKIP. Red before, three mutations, all reverted: * tap alignment (`superres.rs`, the upscale filter's `base` shifted one column) -- the strong one: decode-order frame 0 differs at byte 5 (ours 76 vs oracle 74), 37726 bytes differ, with BOTH counters still non-zero, so the red is on the pixel compare and not on a counter assertion. * `set_superres` handed the CODED width where the upscaled width belongs -- red on `predict_scaled_hits == 0`, i.e. the gate catches a mis-sized superres state through the counter, before the compare is reached. * the upscale step derived from `out_width` for both ends (a 1:1 scale) -- red, but as an index-out-of-bounds panic inside `upscale_row` rather than a pixel mismatch. Recorded because it is the weaker kind of red: it proves the step feeds the sample index, not that the byte compare discriminates.
docs(av1444edge) r2: the mi(13,32) ref0 fork does NOT survive the H1 fix -- dropped, no separate lane; plus the per-arm commandsAhmet Kaan Gümüş · ac21620
docs(av1444edge) r2: the mi(13,32) ref0 fork does NOT survive the H1 fix -- dropped, no separate lane; plus the per-arm commands Re-measured on a clean two-arm pair one commit apart, 4e151813 provably absent from both by patch-id: semantic ladder diffs (mi, ref0, ref1, mv0) are 0/51/40 on base and 0/0/0 with f92776ba, and the ladder entry counts go from 279/226/40 against the oracle's 279/299/361 to 279/299/361. That confirms the report's own causality argument instead of merely asserting it: a wrong pixel cannot cause a mode fork, so one bsize/footprint error had to feed both, and if that is right one fix must remove both. A surviving fork would have refuted it and pointed at a second defect. The one residual ladder difference is a print asymmetry: 2 entries in frame 2 and 12 in frame 3 where the 'stack' field differs, every one a compound block whose OUR line omits the field entirely. Also corrects a guard I had wrong. 'git merge-base --is-ancestor f92776ba HEAD' returns False on an arm that HAS the fix, because a cherry-pick mints a new sha -- trusted as a presence check it would have reported the fixed arm as fix-absent. Patch-id equivalence is the right guard; is-ancestor stays valid as an EXCLUDE check.
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
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.docs(av1444edge): correct the identity table -- 25 gates ran and 1 skipped, not 26 greenAhmet Kaan Gümüş · d2d46d5
docs(av1444edge): correct the identity table -- 25 gates ran and 1 skipped, not 26 green The lossless+superres filter reported `13 passed; 0 failed` while one of the thirteen printed its SKIP line, so the run line alone reads as thirteen real gates. Split the counts by family so the skip is visible.
docs(av1444edge): the two cells, the discriminator run, the ablation that separates H1 from 4e151813, and the retraction inside this laneAhmet Kaan Gümüş · c3cf7c0Browse files
test(av1): lane-av1444edge -- the two 4:4:4 lossy cells the chroma-format sweep left unassignedAhmet Kaan Gümüş · 5aa9f3d
test(av1): lane-av1444edge -- the two 4:4:4 lossy cells the chroma-format sweep left unassigned
`lanes/av1formatsweep.report.md` §6.2 closed the "not measured" list and
handed over two cells verbatim: "4:4:4 superres 8-bit" (DIVERGENT from
frame 2, first wrong Y(192,0)) and "4:4:4 odd coded dims 130x122"
(DIVERGENT from frame 3, first wrong Y(128,16)), with the note that
"neither reduces to a known class on the evidence here, and neither has a
discriminator run". This is that run.
They are ONE class, and it is lane-av1444rect's H1 (f92776ba, cherry-
picked here): a 1:4 (HORZ_4 / VERT_4) inter strip's chroma coefficient
context gathered at the 4:2:0 PAIR extent at ss (0,0), where
`is_chroma_reference` (av1_common_int.h:1454) reduces both parity clauses
to `!subsampling_y` / `!subsampling_x`, so every block is its own chroma
reference and no pair exists. What the two new geometries add is reach:
the existing H1 gate is 128x96, so neither a partial-frame right edge nor
a 256x128 frame with CDEF and loop restoration both live was covered, and
the sweep's own odd-dimension gate is 4:2:0 only.
Localizing, because the discriminator is the part worth keeping:
* The pre-loop-filter RECONSTRUCTION already carries the identical first
wrong sample as the final output on both cells (130x122 frame 3 at
Y(128,16); 256x128 frame 2 at Y(192,0)), so no filter is involved and
the stage ladder is not where this lives. That rung did not exist on
the inter path -- fixed in the previous commit.
* Order the wrong superblocks by DECODE order and the first one in 256x128
frame 2 is SBcol2/SBrow0, first wrong pixel (128,48) = mi(12,32), whose
mode, ref0 and mv0 are IDENTICAL on both sides. The arithmetic fork
lands on the very next block, mi(13,32), where the oracle reads
ref0 = LAST (1) and we read GOLDEN (4). A pixel error cannot cause a
mode fork, so one bsize/footprint error has to feed both: it is upstream
of the pixels, not a consequence of them.
* `EC_MODE`'s print carries no bsize, so the mode ladder cannot see a
partition fork at all. What localizes is the per-superblock decode-order
pixel map of the pre-filter dump, plus the observation that the
divergence count is identical with and without 4e151813 (that commit
patches only `decode_rect4_16_strip`'s two `tu_reach` call sites, and
both sit inside its `if lossless_pair {` arm -- the lossy path is the
`} else if skip {` further down, so the class is lossless-only and these
two lossy cells are not it).
Fixtures (the sweep's recipes, byte-reproduced; the truncated sha256
prefixes it recorded, `c87ac65b...` and `06621606...`, both match):
444_lossy_rect4_odd_130x122.obu 8945 B sha256 c87ac65b77579afd2938669b0cbe3ec44c3abf775c0223cacb9d14b8c2eee27c
444_lossy_rect4_wide_256x128.obu 15239 B sha256 06621606c11ae805f784a1c9736db6301a925a4fa3154e2fc38db1df7ad9b826
Gate `a_444_lossy_rect4_strip_stream_decodes_pixel_exact_at_odd_and_wide_geometries`
asserts per arm: the pinned bytes (length + FNV-1a), a non-zero DELTA of
1:4 inter strips (these counters are process-wide with no reset, so an
absolute count would pass on residue from another stream), a non-zero
`rect4_inter_own_chroma444_hits()` so the corrected route demonstrably
ran, the 4:4:4 full-resolution chroma shape, and every decode-order frame
byte-exact through `decode_all_frames_vs_oracle`.
Measured green: 4/4 decode-order frames per arm, 12 and 24 own-extent
1:4 chroma gathers, 28 and 76 1:4 inter strips. Red before, by mutation on
this gate's own arms with the counter left firing (the ss_x-0 own-extent
arm pointed back at the 4:2:0 `(16, 8)` pair extent): decode-order frame
3 of 130x122 differs at byte 4260 (ours 0 vs oracle 38), 9203 bytes.
Identity: the whole 4:4:4 family (4 gates, both H1 gates among them), the
lossless 4:4:4 family, the superres family (8 gates) and the rect-strip
family (5 gates) all green on this decode.rs. One pre-existing SKIP, not
mine: `a_real_aomenc_lossless_444_key_frame_decodes_sample_exact` has no
pinned `fixtures/ll444-lossless-key.obu` in the tree and never has.
Matrix correction for the sweep, in the report: the "4:4:4 superres"
cell is not a superres cell. `--superres-mode=1` without
`--superres-denominator` leaves the denominator to the encoder's energy
heuristic, which chose 8 on that source, so all four frame headers carry
`use_superres=false` and nothing was ever scaled. With an explicit
denominator the cell is real (256x128, denom 12, coded 171x128) and
byte-exact 4/4 here.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.
ec-av1: lane-av1444rect -- a 1:4 inter strip's chroma context was gathered at the 4:2:0 pair extent at ss (0,0), forking the coder (H1)Ahmet Kaan Gümüş · 84fa44c
ec-av1: lane-av1444rect -- a 1:4 inter strip's chroma context was gathered at the 4:2:0 pair extent at ss (0,0), forking the coder (H1) At 4:4:4 `is_chroma_reference` (av1_common_int.h:1454) reduces both parity clauses to `!subsampling_y` / `!subsampling_x`, so EVERY block is its own chroma reference and no 1:4 pair exists. `decode_inter_block`'s `around_c` never gated on ss, so a HORZ_4 16x4 strip read its chroma coefficient context over the 4:2:0 pair extent (16x8 luma = left[mi_r] and left[mi_r+1]) instead of its own 4-px one. The U unit's `get_txb_ctx` then saw a left neighbour libaom does not have and forked the arithmetic coder. The 4:4:4 lossy + RECT cell -- the largest correctness gap the chroma-format sweep left (lanes/av1formatsweep.report.md H1) -- had NO exactness gate at all: the whole committed 4:4:4 base is lossless 8-bit. Witness: testsrc2 128x96 rate=25 yuv444p, aomenc --profile=1 --passes=1 --end-usage=q --cq-level=20 --cpu-used=2 --threads=1 --row-mt=0 --lag-in-frames=0 --kf-max-dist=100 --limit=2, 6441 B, sha256 77f727e7... Red before: frame 1, 8884/36864 samples wrong, first at Y(91,32); the first wrong symbol was read 26263, both sides at mi (8,16) -- ours a luma-shaped txb_skip row (re-indexed chroma ctx 1), the oracle decodetxb.c:158 on the U plane with txb_skip_ctx 7. Green after: 2/2 frames byte-exact vs aomdec. Gate `a_444_lossy_rect4_inter_stream_decodes_pixel_exact` pins the fixture (len + FNV), asserts the ss (0,0) full-resolution chroma shape, the byte-exact compare through the oracle aomdec, and non-vacuity on the corrected route via `rect4_inter_own_chroma444_hits` (9 gathers here, 0 on the 4:2:0 control, which also carries 16 HORZ_4 / 28 VERT_4 strips and is itself compared byte-for-byte so a widening past ss_x 0 goes red). Mutation proof: restoring the old arm with the counter left in place turns the gate red at byte 4187 (ours 35 vs 38), 8884 bytes differing. Identity: the crate's whole 444 family (9), rect_strip family (10), the 16-level rect-leaf gate, and all three new chroma-format-sweep gates (444 lossless 10-bit, 444 12-bit, odd coded dimensions) run green against this decode.rs. H2 (4:4:4 lossy tx-size-search chroma +/-1, 608/36864 from frame 2) is unchanged and still divergent -- it is reconstruction arithmetic, not entropy, and belongs to its own lane. H3's tile-column recipe (77847 B, 6 frames) is byte-exact here. (cherry picked from commit f92776bab2442319e32d4f56844af6956e2fc18b)
ec-av1: lane-av1444edge -- the inter-frame pre-filter rung did not exist, and its counter restartedAhmet Kaan Gümüş · 689d3e0
ec-av1: lane-av1444edge -- the inter-frame pre-filter rung did not exist, and its counter restarted Two defects in the same measurement rung, both of which report success while measuring nothing useful. `EC_AV1_PREFILT_WIDE_DUMP` is the only rung that writes the pre-loop-filter reconstruction cropped to each plane's mi-ALIGNED extent, i.e. the shape aomdec's own rung 7 writes (`y_width`/`y_height`), so it is the rung that separates "already wrong in reconstruction" from "introduced by a loop filter". 1. It was inlined in the KEY-frame tile path only (`decode_key_frame_tile_with_cdfs`). `decode_inter_frame_tile_with_cdfs` has no wide prefilter dump at all, so every divergence localized to an inter frame had no pre-filter rung on our side to compare against the oracle's, and the nearest usable rung (the padded `EC_AV1_PREFILT_DUMP`) has a different byte shape from every oracle rung. Measured cost on the 4:4:4 lossy cells this lane was handed: `EC_AV1_POSTDEBLOCK_DUMP` / `EC_AV1_POSTCDEF_DUMP` came out 61440 B against the oracle's 52224 B (our 160x128 padded surface vs its 136x128 aligned buffer) and the oracle's POSTDEBLOCK wrote 3 files for a 4-frame stream, so the stage ladder could not be read at all. With the rung on the inter path the same two cells' pre-filter dumps are 52224 B and 4 files, and the verdict is immediate: reconstruction already diverges at the same first sample as the final output, so no filter is involved. 2. Its counter was a FUNCTION-LOCAL `static IDX2`. Rust gives each monomorphisation of the enclosing function its own copy, so the index restarted and every frame after the first overwrote `.f0` -- a per-frame bisection silently compared the last decoded frame and reported it as frame 0. Measured directly: before this change the rung wrote exactly one file for a four-frame stream. The counter is now the shared per-var `dump_stage_idx` map the other stage dumps already use, and the block is a shared `dump_prefilter_wide` called from both tile paths, beside each path's existing padded `EC_AV1_PREFILT_DUMP` so the two agree on the point they sample. No decode-path behaviour changes: the only writes are inside the existing `if let Ok(path) = crate::envflags::var(...)` arms, which are off unless the env var is set. (cherry picked from commit b2148831481f741a05830ac7014876dfc67f8d07)
docs(av1444rect): record Agent00-2's ablation showing f92776ba and 4e151813 are independent, with their superblock-decode-order localization methodAhmet Kaan Gümüş · a5bc219Browse files
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.docs(av1444rect): adopt the sub-8/strip unit-walk prior from the sweep census, and record the txtype census as the next measurement for the chroma rootAhmet Kaan Gümüş · 5487c73Browse files
av1h5: report -- band refuted, chunk-major order found and fixed, residual namedAhmet Kaan Gümüş · 339d121Browse files
docs(av1444rect): round 3 -- the prefix-floor assert is gone, both named chroma candidates are eliminated by measurement, and the remaining defect is handed back as a 4x8 rect coefficient unitAhmet Kaan Gümüş · 234a9cdBrowse files
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.
ec-av1: lane-av1444rect r2 -- the same class, second instance, in the intra-BC 1:4 strip; plus an H3 retractionAhmet Kaan Gümüş · 2bcb6de
ec-av1: lane-av1444rect r2 -- the same class, second instance, in the intra-BC 1:4 strip; plus an H3 retraction RETRACTION. My previous report said the 4:4:4 lossless + tile-columns stream (77847 B, sha256 87b0d1a5...) was "byte-exact 6/6". It is not, and the claim is withdrawn. My throwaway compare script carried the H1 fixture's 128x96 geometry, so it zipped our first 36864 samples against the oracle's 98304-byte dump -- zip truncates to the shorter operand, making it a PREFIX compare, and the divergence at x >= 108 fell outside the window. Re-measured with the right geometry: 63-162 wrong chroma samples in every frame, first at U(110,26), luma exact. H3 is OPEN and belongs to Agent142-2; no H3 gate is pinned here. The crate's own decode_all_frames_vs_oracle asserts frame length before comparing, which is why the committed gates were never exposed to this. THE CLASS, SECOND INSTANCE. decode_rect4_16_intrabc applied the 4:2:0 pair geometry at every ss: (pw, ph) = (16,8)/(8,16), pair_mi = lmi - 1, cpx = pair_mi * MI / 2. At ss (0,0) is_chroma_reference makes an intra-BC 1:4 strip its own chroma reference, so libaom codes a 16x4 chroma block at the strip's own origin, not an 8x4 a quarter of the way off. It is LIVE, not latent: a testsrc2 640x480 --tune-content=screen --enable-intrabc=1 --enable-palette=1 --cq-level=60 stream (1016 B, sha256 7fe888ed..., 17 intrabc 16x4 strips at ss (0,0)) diverges 455240/921600 with the entropy fork at read 11750. --enable-intrabc=0 is byte-exact and the 4:2:0 twin is byte-exact. One own444 = ss_x == 0 && ss_y == 0 gate on (pw, ph), (cw, ch), pair_mi and (cpx, cpy); 4:2:0 and 4:2:2 keep every constant verbatim. Measured per plane: the luma first-wrong sample moves 164416 -> 205264 and the entropy fork 11750 -> 12465, but both chroma planes still first diverge at 20532 and 390380 of 921600 samples are still wrong. This is a PARTIAL improvement and is committed as one: no exactness is claimed, and the gate is a progress gate, not an exactness gate. It pins both fixtures, requires intrabc_rect4_own_chroma444_hits() > 0 (18 on the 4:4:4 witness, 0 on the 4:2:0 twin, armed outside the mutated expression so the mutation fails on the pixel arm), compares the 4:2:0 twin byte-for-byte through the length-asserting helper, and asserts the 4:4:4 LUMA plane is byte-exact to sample 205264 -- a floor that only grows, so the next lane's fix cannot turn it red. The untouched chroma divergence is named, never asserted exact. Mutation: own444 = false turns it red at 164416. Handed on: the remaining 4:4:4 intra-BC divergence is in CHROMA, first at U/V index 20532 (x=52, y=32), entropy fork read 12465 at mi (90,108), not yet localized to a line. Identity on this tip: the crate's 444 family (10), intrabc (20), rect_strip (10), 1to4 (11) and the 16-level rect-leaf gate, plus all three new chroma-format-sweep gates run in ~/.cache/wt/av1fmt against this decode.rs.
docs(av1formatsweep): round 4 -- close the not-measured list; the 4:4:4 lossless class is neither tile- nor depth-specificAhmet Kaan Gümüş · ce89686
docs(av1formatsweep): round 4 -- close the not-measured list; the 4:4:4 lossless class is neither tile- nor depth-specific