Commits
Commits on
a7e1d4c2a137ca49bdbbcbd82bed574d0477ef4b2026-09-29
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.lanes: merge-wave-2 clean-checkout census (39 gates across 13 branches, all run from git archive)Ahmet Kaan Gümüş · f3a70c9
lanes: merge-wave-2 clean-checkout census (39 gates across 13 branches, all run from git archive) Read-only verification of the wave-2 branches before their merge: every gate each branch adds was re-run from a clean 'git archive' extraction of that branch tip, which is the only shape that exposes a pin that exists in a worktree but was never committed. 37 of 39 run in a plain pass; the two lane-av1pins pin gates were ignored at the time and were un-ignored separately (lane-av1pinslive). No untracked fixture, no absolute-path dependency, no env escape hid a gate.
Merge lane-av1superpin @ 9646f74d — superres den=9 + mode-2 pins, shared helper, report correctionsAhmet Kaan Gümüş · c1b1e89
Merge lane-av1superpin @ 9646f74d — superres den=9 + mode-2 pins, shared helper, report corrections
- crates/ec-av1/fixtures/:
444_lossy_rect4_odd_130x122.obu (8945 B), 444_lossy_rect4_wide_256x128.obu
(15239 B), 444_lossy_superres_256x128_d9.obu (17437 B),
444_lossy_superres_256x128_d12.obu (14808 B),
444_lossy_superres_mode2_256x128.obu (16620 B) and the shared
a_444_superres_arm helper.
- crates/ec-av1/src/stream.rs: a_444_lossy_superres_stream_decodes_pixel_exact,
a_444_lossy_superres_mode1_den9_stream_decodes_pixel_exact,
a_444_lossy_superres_mode2_random_denom_stream_decodes_pixel_exact,
a_444_lossy_rect4_strip_stream_decodes_pixel_exact_at_odd_and_wide_geometries
and the flag-ignoring control arm.
- crates/ec-av1/src/decode.rs, lanes/av1444edge.report.md,
lanes/av1superpin.report.md, lanes/av1formatsweep.report.md.
- crates/ec-av1/src/gate_coverage.rs: the wave-wide retirement reconciliation
(below).
- lanes/merge-wave-2.report.md: the wave's merge table, every conflict
resolution, and the two post-merge fix tasks.
SPLICE from lane-park-av1444edge @ a02a2511 (that branch is NOT merged): the
§6.2 `130x122` row of lanes/av1formatsweep.report.md carries av1444edge's
CORRECTION — the cell is EXACT 4/4 (8945 B, sha c87ac65b…), the same H1
1:4-inter-strip chroma class, closed by lane-av1444rect's f92776ba (an ancestor
of main) and gated by
a_444_lossy_rect4_strip_stream_decodes_pixel_exact_at_odd_and_wide_geometries.
The original measurement text is KEPT inside the row ("was DIVERGENT from f3,
11521 samples, first (f3, s2208) = Y(128,16); now EXACT 4/4"), not deleted.
Nothing else from a02a2511 is taken: its r4 gates are content-equivalent
duplicates of superpin's a_444_superres_arm, and its two other fixtures are
byte-identical blobs under different names.
Conflicts resolved:
* decode.rs (2 hunks, both @ours): one comment-only hunk where MAIN's text is
more informative (it states what the counter is NOT evidence for), and one
where theirs has no counterpart — INTRABC_RECT4_OWN_CHROMA444_HITS is a
main-only addition from an earlier lane that superpin's older base predates.
* stream.rs: add/add at the end of `mod tests` producing INTERLEAVED hunks
that split ours' last gate mid-statement, so marker surgery does not apply.
Resolved by construction: this branch's stream.rs delta against its merge
base is 933 added lines at a single hunk, so merged = HEAD verbatim + that
block. That block re-adds a_444_lossy_rect4_inter_stream_decodes_pixel_exact,
byte-IDENTICAL (5905 B, extracted and compared) to the copy main already has
from lane-av1444rect e10a3b25, which superpin also carries; the appended
copy is DELETED here. All six of this branch's gates are present exactly once
afterwards.
* lanes/av1formatsweep.report.md (add/add): superpin's version with the spliced
130x122 row, as above.
gate_coverage.rs — the union of the wave's retirements, so
never_exercised_{8,10}bit_matches_the_gate_recipes is green on derived
evidence rather than on an edit:
enable-dist-wtd-comp (8b) a_distance_weighted_compound_stream_decodes_pixel_exact
enable-dual-filter (8b) a_real_aomenc_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact
enable-dual-filter (10b) a_real_aomenc_10bit_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact
enable-flip-idtx (8b) a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_…
enable-rect-tx (8b and 10b) a_real_aomenc_{8,10}bit_stream_with_a_rect_transform_decodes_pixel_exact
Both lists are now empty; the census derives EMPTY (0 of 26 tools) at both
depths across 255 real-aomenc gate bodies. TOOL_UNIVERSE keeps all 26 tools,
enable-rect-tx included. The test was NOT weakened: it was red with
"the 8-bit list still names [\"enable-rect-tx\"] …" and
"the 10-bit list still names [\"enable-dual-filter\", \"enable-rect-tx\"] …"
immediately before this edit, and the retirement evidence is preserved as
comments above each emptied list.
Duplicate fixtures: measured after this merge, crates/ec-av1/fixtures/ holds
63 files with 63 DISTINCT sha256 prefixes — zero duplicates, so no blob is
carried twice under two names and no file was deleted for that reason.Merge lane-whtshape @ f541d062 — the lossless WHT shape-total fixAhmet Kaan Gümüş · ec131f6
Merge lane-whtshape @ f541d062 — the lossless WHT shape-total fix - crates/ec-av1/src/transform.rs: a non-4x4 unit is RECONSTRUCTED as a 4x4 raster instead of being asserted away — of libaom's highbd_inv_txfm_add_*_c only the 4x4 one carries a `lossless` branch, the rest fall through to the IDCT, and this call site was passing a rect lossless shape that no such function can accept. - crates/ec-av1/src/decode.rs: decode_intrabc_rect no longer codes a rect intra-BC block's chroma plane as ONE rect transform unit. - crates/ec-av1/fixtures/ll444_sb64_1to4_lossless.obu (51107 B). - crates/ec-av1/src/stream.rs: a_444_lossless_sb64_intrabc_rect_chroma_walks_4x4_units. - lanes/whtshape.report.md (the RELEASE premise refuted, the call site fixed, the residual fork named). Conflict resolved in stream.rs: add/add at the end of `mod tests`. Both lanes append at the same anchor and git produced TWO interleaved hunks that split ours' last gate mid-statement, so the marker surgery does not apply. Resolved by construction instead: this lane's stream.rs delta against the common base is a single 199-line block appended at the tail, so the merged file is HEAD's stream.rs verbatim (tail brace kept) + that block + the module's closing brace. `cargo check -p ec-av1 --all-targets` is clean and the per-parent `fn a_*` set difference shows zero lost and zero replaced.
Merge lane-av1lm444loss @ 9249442f — the lossless frame-edge TX-grid clip fix + gateAhmet Kaan Gümüş · cb2465d
Merge lane-av1lm444loss @ 9249442f — the lossless frame-edge TX-grid clip fix + gate
- crates/ec-av1/src/decode.rs: libaom clips the transform-unit grid at the
frame edge (max_block_high/max_block_wide fold mb_to_bottom_edge /
mb_to_right_edge in before the shift), so decode_token_recon_block now
bounds the square AND the rect mu walks by the part of the block inside the
frame, with the LOSSLESS_EDGE_CLIPPED / LOSSLESS_EDGE_CLIP_UNITS counters as
the non-vacuity evidence. Identical arithmetic for a block that fits.
- crates/ec-av1/src/stream.rs: the H1 gate.
- lanes/av1lm444loss.report.md (appendix r2 diagnoses the remaining lead (b)
blocking defect).
No conflict: decode.rs auto-merged — the region is disjoint from
lane-av1chrtx's per-unit leaf tx_type work (~7.8k/~28.2k) and from
lane-av1distwtd's compound counter.
Tip note: the branch head 5519aaf8 is one commit past this tip
("ec-av1: ss-aware chroma geometry + lossless TX_4X4 raster in
decode_intrabc_rect") and is NOT merged here; the dispatched tip is 9249442f.
That delta is the follow-on lead (b) work the report's appendix names as
still open.Merge lane-av1dualfilter10 @ c2b969c8 — the 10-bit dual-filter witnessAhmet Kaan Gümüş · 4c293da
Merge lane-av1dualfilter10 @ c2b969c8 — the 10-bit dual-filter witness Sits on top of lane-av1distwtd (c2b969c8 contains 1aaf7e0b), so only its own delta lands here: - crates/ec-av1/src/stream.rs: a_real_aomenc_10bit_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact, the 10-bit arm of the dual-filter witness. It is the evidence that retires the `enable-dual-filter` entry from NEVER_EXERCISED_10BIT — that entry was deliberately KEPT open by lane-av1distwtd r3 (8-bit exercised, 10-bit not), and this gate is the 10-bit arm distwtd's own note said would retire it. With it, both never-exercised lists are reconciled in the same wave: enable-dist-wtd-comp, enable-dual-filter (8- and 10-bit) and enable-flip-idtx (8-bit) are all retired; `enable-rect-tx` remains the one open entry and is reconciled in the lane-av1toolgates / merge step that follows. - lanes/av1dualfilter10.report.md. No conflict: stream.rs auto-merged (the gate appends at a different anchor than the tile/superres sweep gates).
Merge lane-av1distwtd @ 1aaf7e0b — dist-wtd-comp witness gate + census detector fix + two retirementsAhmet Kaan Gümüş · deb9682
Merge lane-av1distwtd @ 1aaf7e0b — dist-wtd-comp witness gate + census detector fix + two retirements - crates/ec-av1/src/decode.rs: DIST_WTD_COMP_HITS counter on the `compound_idx == 0` arm in decode_inter_block / decode_inter_block8, with dist_wtd_comp_hits() / reset_dist_wtd_comp_hits(). - crates/ec-av1/src/stream.rs: a_distance_weighted_compound_stream_decodes_pixel_exact — spells --enable-dist-wtd-comp=1 AND asserts the PARSED sequence header's enable_jnt_comp, with the =0 arm asserting false from the same recipe. - crates/ec-av1/src/gate_coverage.rs: gate_bodies() now resolves CALLS as well as spellings (encoder_fns/calls_fn/fn_units/legacy_gate_tokens) and covers_both_depths() recognises the pair-of-pixel-formats marker; the new test the_detector_sees_the_gates_the_spelling_filter_missed pins the fix as strictly ADDITIVE against the old spelling-only filter. Retirements: enable-dist-wtd-comp, enable-dual-filter (8-bit) and enable-flip-idtx (8-bit) leave NEVER_EXERCISED_8BIT; enable-dual-filter STAYS in the 10-bit list with a corrected reason. - lanes/av1distwtd.report.md. Conflict resolved in stream.rs: add/add at the end of `mod tests` (both lanes append there). Kept BOTH sides; the shared trailing ` }` / `}` was hoisted out of the hunk, so ours' last test needed its closing ` }` re-inserted between the two blocks — verified by `cargo check -p ec-av1 --all-targets`. FOREIGN EDITS PRESERVED, NOT COMMITTED: while this merge was in flight two untracked/unstaged changes belonging to other lanes appeared in the primary checkout. Neither is part of this lane. 1. A 465-line addition to crates/ec-av1/src/gate_coverage.rs (the lane-av1txsearch `bound_values` / `spelling_values` / `resolved_on_state` detector work, which duplicates four functions this merge had just added). Byte copy: $HOME/.cache/merge-wave-2-keep/gate_coverage.rs.lane-av1txsearch-leak — its owner lands it in /home/user/.cache/wt/av1txsearch. 2. lanes/av1mergecheck.report.md (a sibling read-only review pass's verdict). Byte copy: $HOME/.cache/merge-wave-2-keep/av1mergecheck.report.md.foreign — left untracked in the worktree for its owner to commit.
Merge lane-av1pins @ 44a05b40 — three recovered pins committed under the crate + gate rewiringAhmet Kaan Gümüş · 3ad7999
Merge lane-av1pins @ 44a05b40 — three recovered pins committed under the crate + gate rewiring
- crates/ec-av1/fixtures/golden3-pin.obu (159 B),
ll444-lossless-key.obu (7845 B) and sbpart-pin.obu (238 B): pins recovered
from a scratchpad tmpfs reaps, now travelling with the repo.
- crates/ec-av1/src/stream.rs: new helper `crate_pin(name)` resolves
`crates/ec-av1/fixtures/<name>` first and falls back to `pin_dir()`;
pinned_golden3_stream_decodes_pixel_exact and
pinned_sbpart_stream_decodes_pixel_exact read through it and assert a frame
count match against ffmpeg before zipping; the two 1:4 gates' stale blocker
comment is corrected (the pixel blocker is gone, the RECIPE never fires).
- lanes/av1pins.report.md.
Conflict resolved in stream.rs: the two lanes made COMPETING edits to the same
arm of a_real_aomenc_lossless_444_key_frame_decodes_sample_exact.
ours (lane-av1skipfix): read the pin from the gitignored root `fixtures/`
via `pin_dir()`, with an opt-in EC_REQUIRE_FIXTURES / EC_AV1_REQUIRE_AOMENC
hard fail.
theirs (lane-av1pins): read the pin that this same merge COMMITS, via
`crate_pin()`, but with a bare SKIP.
Resolution = theirs' provenance and committed-pin path, plus ours' no-silent-
green intent made unconditional: the committed pin is read through
`CARGO_MANIFEST_DIR` and a missing file PANICS with the regeneration recipe,
which is strictly stronger than the opt-in env fail (there is no environment
left to escape). Not `@both` -- the two sides are the same statement.Merge lane-av1superhbd @ a2da03e4 — 4:4:4 superres at 10 and 12 bits, measured exactAhmet Kaan Gümüş · 5a80321
Merge lane-av1superhbd @ a2da03e4 — 4:4:4 superres at 10 and 12 bits, measured exact - crates/ec-av1/fixtures/: 444_lossy_superres_256x128_d12_10bit.obu (15803 B), _d12_12bit.obu (11023 B), _d9_12bit.obu (13015 B), 444_lossy_superres_mode2_256x128_10bit.obu (17776 B) and _12bit.obu (14656 B). - crates/ec-av1/src/stream.rs: the 4:4:4 superres 10/12-bit gates. - lanes/av1superhbd.report.md (parsed-header table, exact verdicts, the formatsweep correction to propose).
Merge lane-av1tilemeasure @ df1370dd — tile-rows / superres / odd-size cells the format sweep left openAhmet Kaan Gümüş · 2affdfd
Merge lane-av1tilemeasure @ df1370dd — tile-rows / superres / odd-size cells the format sweep left open crates/ec-av1/src/stream.rs: the tile/depth sweep gates. lanes/av1tilemeasure.report.md.
Merge lane-av1toolgates @ 4c4bd3e2 — gate enable-rect-tx at both depths on the PARSED partition shapeAhmet Kaan Gümüş · b1042e5
Merge lane-av1toolgates @ 4c4bd3e2 — gate enable-rect-tx at both depths on the PARSED partition shape crates/ec-av1/src/stream.rs: two new enable-rect-tx witness gates (8-bit and 10-bit depth arms) that assert the decoded partition shape rather than the flag, which is what closes the enable-rect-tx coverage hole.
Merge lane-av1mutproof @ ffd8d138 — report-only: mutation proof of the 4:4:4 10-bit and 12-bit format-sweep gatesAhmet Kaan Gümüş · 49056b3
Merge lane-av1mutproof @ ffd8d138 — report-only: mutation proof of the 4:4:4 10-bit and 12-bit format-sweep gates Lanes lanes/av1mutproof.report.md only; no source, fixture or gate change.
Merge lane-av1gates444 @ 555c83f3 — three new measured-EXACT 4:4:4 lossy gates (66x66 / 130x122 / 256x128)Ahmet Kaan Gümüş · 4cf36e1
Merge lane-av1gates444 @ 555c83f3 — three new measured-EXACT 4:4:4 lossy gates (66x66 / 130x122 / 256x128)
- crates/ec-av1/src/stream.rs: a_444_lossy_odd_66x66_stream_decodes_pixel_exact,
a_444_lossy_odd_130x122_stream_decodes_pixel_exact and
a_444_lossy_256x128_stream_decodes_pixel_exact, live-aomenc gates whose
recipe is byte-identical to the format sweep's; red-before measured on two
mutations and the third cell measured NOT to be a superres cell.
- lanes/av1gates444.report.md.
Known defect carried by this lane, to be fixed after the wave (NOT here):
the three gates share a `if !have_aomenc() { eprintln!("SKIP …"); return
Vec::new(); }` arm, so on a host without the oracle all three return green
having measured nothing. They need the EC_AV1_REQUIRE_AOMENC hard-fail shape.Merge lane-av1skipfix @ 960be978 — skip-on-decode-error gates converted to attempt loops + EC_REQUIRE_FIXTURESAhmet Kaan Gümüş · 605faee
Merge lane-av1skipfix @ 960be978 — skip-on-decode-error gates converted to attempt loops + EC_REQUIRE_FIXTURES - crates/ec-av1/src/refusal_inventory.rs: GATES_THAT_SKIP_ON_A_DECODE_ERROR emptied — the four arms it named now loop. - crates/ec-av1/src/stream.rs: a_real_aomenc_lossless_444_key_frame (a_real_aomenc_lossless_444_key_frame_decodes_sample_exact) stops reporting green on a missing pin; the 444 pin arm honours the repo-wide EC_REQUIRE_FIXTURES. - crates/ec-flac/tests/xiph_vectors.rs, crates/ec-h264/tests/conformance.rs, crates/ec-opus/tests/conformance.rs: a missing corpus FAILS under EC_REQUIRE_FIXTURES. - scripts/link-fixtures.sh: give a worktree the gitignored root fixtures/. - lanes/av1skipfix.report.md (incl. the per-crate assert-site rows), lanes/COMMON-20260901.md. The four-crate fixture asserts (ec-h264 / ec-flac / ec-opus / ec-av1) are covered by this lane's own report — see lanes/av1skipfix.report.md, per-crate assert-site rows; no separate coverage task is opened for them. Tip note: the branch head b696d485 is three commits past this tip (commit the 444 lossless key-frame pin, rewire its gate onto CARGO_MANIFEST_DIR, extend the report) and is NOT merged here; the dispatched tip is 960be978.
Merge lane-av1chrtx @ ea97eb0c — per-unit leaf tx_type in rect inter chroma + the per-unit coefficient censusAhmet Kaan Gümüş · 4c92898
Merge lane-av1chrtx @ ea97eb0c — per-unit leaf tx_type in rect inter chroma + the per-unit coefficient census
Lands the reviewed census stack on top of the chrtx work:
- decode.rs: read_inter_rect_chroma resolves each rect inter chroma unit's
tx_type from its OWN luma leaf instead of a single shared value; read_coeffs_rect
gains a plane parameter so the EC_COEFF_STEP trace tags the real plane.
- stream.rs: the per-unit coefficient census rung EC_CENSUS_UNIT and its gate
a_pixel_exact_444_stream_walks_the_same_coefficient_units_the_oracle_does.
- fixtures/444_rect_strip_leaf_tx_type.obu (26839 B).
- lanes/av1chrtx.report.md, lanes/av1readcensus.report.md.
Tip note: the branch head 6cc9ea6f is one commit past this tip
("lanes/av1readcensus: name the actual branch/worktree and fix the gate
name") and is NOT merged here; the dispatched, reviewed tip is ea97eb0c.ec-av1: settle the 4:4:4 coefficient-read count asymmetry by measurementAhmet Kaan Gümüş · cf7d7f8
ec-av1: settle the 4:4:4 coefficient-read count asymmetry by measurement The av1444rect round-4 report left 636 square chroma reads against the oracle's 1086 (and 2052 vs 1309 luma) as "most likely a counting-shape difference", established neither way. This measures it. A new per-unit census rung (EC_CENSUS_UNIT) counts one unit per read_coeffs/read_coeffs_rect call -- the object the round-4 count measured -- carrying plane, w/h, tx_type, eob, all_zero and the msac state before and after the unit. Paired against the oracle's existing EC_COEFF / EC_COEFF_VAL bracket per av1_read_coeffs_txb call BY post_rng, never by plane label or walk position. On every pixel-exact 4:4:4 arm the counts are identical, unit for unit: ll444_minp8_inter 11292/11292 (3764 per plane both sides, 975/1793/1859 coded), 444_lossy_rect4_inter_witness 1373/1373, 444_quad_leaf_tx_type 192/192. Bucket (i) is the whole census; there is no asymmetry to explain. The round-4 numbers came from 444_intrabc_rect4_witness, which DIVERGES (390380 of 921600 samples wrong) -- there the surplus is the divergence itself, so the count could never have separated the two hypotheses. Verdict: counting shape, and not even that on a pixel-exact arm. Gate: a_pixel_exact_444_stream_walks_the_same_coefficient_units_the_oracle_does pins the walk's object shape on two exact arms -- the all-TX_4X4 lossless stream and a mixed-shape rect4 stream, which is what makes a var-tx fold visible. Mutation-proven: dropping 8x8 units turns it red by name. The census is armed per frame from the sequence subsampling, so the 4:2:0 control asserts exactly (0, 0, 0).
ec-av1: gate enable-rect-tx at both depths on the PARSED partition shapeAhmet Kaan Gümüş · 0f3e8bf
ec-av1: gate enable-rect-tx at both depths on the PARSED partition shape
`enable-rect-tx` sat on NEVER_EXERCISED_8BIT and NEVER_EXERCISED_10BIT with
the reason "never spelled; rect transforms reach the decoder only through
partition shape". One gate per depth now spells `--enable-rect-tx=1` and
pixel-compares every frame against ffmpeg, but the flag is CONTEXT, not the
witness: enable_rect_tx has no sequence-header bit (aom reads it only in
tx_search.c), so it never reaches a decoder and cannot be what a decoder
path is proven by.
The witness is the parsed shape. rect_partition_hits() counts
PARTITION_HORZ/PARTITION_VERT symbols actually read; rect_coeff_tu_hits()
counts rectangular TUs that coded coefficients through read_coeffs_rect.
Both asserted > 0 over the arms that decoded AND compared, and the two are
not redundant: the cq20/tx-size-search=1 arm reaches a rect transform
through var-tx on a SQUARE block (many rect TUs, zero rect partitions),
while the rect partition only appears on the tx-size-search=0 arm.
RED-BEFORE, both counters, each on its own message: neutering
hit!(RECT_PARTITION_HITS) (5 sites) and hit!(RECT_COEFF_TU_HITS) (1 site)
each fails both gates. The flag-revert is NOT claimed: --enable-rect-tx=0
does not zero either counter (39 rect TUs against 210 on cq20, because
--enable-rect-partitions=1 already forces non-square transform sizes), and
with all partition shapes off the flag yields no rect transform at either
setting. =0 does redden the gate, but through the oracle -- its
tx-size-search=0 arm is a stream ffmpeg cannot decode past frame 6 of 15 --
so the frame-count assert fires first and proves nothing about the tool.
The recipe is spelled in each test body, not in the shared helper:
gate_coverage's gate_bodies() splits on "\n #[" and keeps a segment only
if that segment contains `--passes=1`, so a helper-owned recipe is invisible
to the per-depth derivation. With the recipe in the helper the two gates
collapsed into one helper segment that classified as 10-bit, and the 8-bit
hole stayed open.
gate_coverage.rs is deliberately untouched: the two now-stale entry lines
(8-bit at :213-216, 10-bit at :265) belong to the lane fixing the
shared-helper detector, and never_exercised_{8,10}bit_matches_the_gate_recipes
fails with exactly the "delete those entries" message that sequences it.docs(av1superhbd): the parsed-header table, the exact verdicts, and the formatsweep correction to proposeAhmet Kaan Gümüş · 5af8d8d
docs(av1superhbd): the parsed-header table, the exact verdicts, and the formatsweep correction to propose Includes the 12-bit flag-combination attempt table (seven combinations, all parsed allow_screen_content_tools=true on testsrc2-class content, refused by name; mandelbrot parses false and decodes) so the next lane does not re-derive the source choice, and the exact replacement text for the two av1formatsweep.report.md lines this cell closes -- quoted, not applied.
stream: add the 10-bit dual-filter arm the 10-bit census hole namedAhmet Kaan Gümüş · e83a66d
stream: add the 10-bit dual-filter arm the 10-bit census hole named a_real_aomenc_10bit_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact runs the 8-bit dual-filter witness's recipe at ten_bit = true, so a real 10-bit stream carries per-direction interp filters instead of the tool going unproven at that depth. inter_sb_none_gate now returns the encoded stream so the arm can assert the PARSED sequence header: bit_depth == 10 and enable_dual_filter, both read through Av1Parser. The arrival assert (dual_filter_diff_hits delta) comes first on purpose -- setting the flag to =0 reds there, on the tool failing to arrive, not on a shape assert. Reverted after proving it; both arms green.
ec-av1: measure the tile-rows / superres / odd-size cells the sweep left openAhmet Kaan Gümüş · 36b576f
ec-av1: measure the tile-rows / superres / odd-size cells the sweep left open
The formatsweep report's round-4 caveat ("t420_12_row may be measuring the same
stream as t420_12_col") and its "not measured" list are closed here with
measurements, every one of them taken against the instrumented aomdec through
the length-asserting compare and asserted on the PARSED stream, never on the
aomenc flag.
t420_12_row: it was not the same stream. At 256x128 profile-0 4:2:0 uses 64px
superblocks, so --tile-rows=1 really splits it -- the arm parses tile_info 1x2,
and untiled / 2 tile columns / 2 tile rows are three distinct streams
(1675 / 1747 / 1785 bytes) that all decode byte-exact 6/6. The missing untiled
control is now encoded and gated. Trap 2 itself is reproduced at --sb-size=128,
where the flag leaves the stream byte-identical.
New gates, each with a red-before proof:
- 12-bit 4:2:0 with two tile rows and with a 2x2 tile grid (the 12-bit
multi-tile hole gate_coverage.rs left open; the grid was "both bit depths" =
8 and 10). Dropping --tile-rows=1 turns it red on the parsed tile_info.
- 4:4:4 superres at 8/10/12 bits. --superres-mode=1 alone signals nothing:
re-encoding the sweep's recipe gives use_superres on 0 of 6 frames, so the
published superres cells never ran the upscaler. With denominators every
frame header carries use_superres and all three depths are byte-exact.
Dropping the denominators turns it red.
- 4:4:4 partial and odd coded dimensions, 10 arms. The sweep's "odd dims"
(66x66, 130x122, 194x130) are even in both axes -- they are not multiples of
8, and this gate's own assert said so on its first run. Genuinely odd 4:4:4
sizes are producible only at 12 bits (aomenc rounds 67x67 -> 66 and
131x131 -> 130 at 8/10 bits); 67x67 and 65x67 stay odd and decode exact.
- the H3 control: 4:4:4 lossless 8-bit at 256x128 WITHOUT tiles, beside its
two-tile-column sibling. Both are byte-exact 6/6, so H3 does not reproduce on
this tree. The sweep's 4:4:4 130x122 DIVERGENT is corrected too: the identical
stream (sha c87ac65b) is byte-exact under a length-asserting compare.
Measured, not fixed (each is a charter): 4:4:4 lossless at 256x256 diverges from
the key frame at 8, 10 and 12 bits, chroma only, +-1, and the tile-row stream
forks at the SAME first sample as the untiled control at 10 and 12 bits -- so H4's
tile-rows attribution is refuted and the class belongs with the 4:4:4 lossless
chroma work already in flight.
One measurement trap of our own, recorded in the report: with the shared
CARGO_TARGET_DIR while sibling lanes build ec-av1, a probe or test binary links
another lane's in-flight rlib. It turned four EXACT cells into DIVERGENT ones
and served a test binary without the new gates in it ("0 passed, 717 filtered
out" three times). Every number here was re-taken in a lane-private
CARGO_TARGET_DIR.lane-whtshape: report -- the RELEASE premise refuted, the call site fixed, the residual fork namedAhmet Kaan Gümüş · fd0fee7Browse files
test(av1): lane-av1superhbd -- 4:4:4 superres at 10 and 12 bits, measured exactAhmet Kaan Gümüş · a6c679e
test(av1): lane-av1superhbd -- 4:4:4 superres at 10 and 12 bits, measured exact The chroma-format sweep's not-measured list kept "4:4:4 superres at high bit depth" open because every superres fixture the crate carried parses bit_depth=8 or is 4:2:0. Five new arms close it, each from its stream's OWN parsed sequence and frame headers: 10-bit d12 coded 171x128 upscaled to 256x128, denom 12 on all frames 10-bit mode=2 denoms 11/14/15/9, coded 186/146/137/228 12-bit d12 coded 171x128, denom 12 (mandelbrot source) 12-bit d9 coded 228x128, denom 9 (28-column edge margin) 12-bit mode=2 denoms 11/14/15/9 Every arm is byte-exact against the instrumented aomdec on all four decode-order frames, and asserts bit_depth from the parsed sequence header (the depth claim is otherwise unprovable: mistyped --bit-depth still yields a decodable scaled 4:4:4 stream, just at a different cell), per-frame parsed denominator, re-derived FrameWidth == (UpscaledWidth*8 + denom/2)/denom, the coded and upscaled sizes, superres_hits/predict_scaled_hits as deltas, the upscaled plane extents, and a per-sample bound at the named depth. The two mode=2 arms additionally assert >= 3 distinct parsed denominators and at least one no flag ever named, so neither can silently stop being a scaled cell. The 12-bit source is mandelbrot, not testsrc2: libaom's own content detection sets allow_screen_content_tools=1 on testsrc2 at 12 bits, which the crate refuses by name (no 12-bit palette/intrabc witness), and --enable-palette=0/--enable-intrabc=0/--tune-content=film do not suppress it. Recorded in the gate so the next lane does not re-derive it. Oracle: libaom v3.13.3-7-g9bb526a.
lossless WHT: a non-4x4 unit is reconstructed as a 4x4 raster, not asserted awayAhmet Kaan Gümüş · c465d06
lossless WHT: a non-4x4 unit is reconstructed as a 4x4 raster, not asserted away
libaom cannot code a lossless transform unit that is not 4x4: read_tx_mode
(decodeframe.c:140) returns ONLY_4X4 for a coded_lossless frame before it
looks at the tx_mode symbol, read_tx_size (:1117) returns TX_4X4 before it
looks at a tree, get_vartx_max_txsize (blockd.h:1447) returns TX_4X4 for
EVERY plane of a lossless block, and of idct.c's highbd_inv_txfm_add_*_c only
highbd_inv_txfm_add_4x4_c carries a lossless branch -- the rest fall through
to the IDCT, because there is no non-4x4 lossless inverse transform to
dispatch to. So a non-4x4 lossless unit is this decoder's own transform-unit
geometry being wrong, and neither refusing nor papering over it is what the
reference does: the honest total is the raster of 4x4 WHT units libaom's
lossless geometry would have produced for that footprint.
MEASURED, not assumed: the premise that a RELEASE build "silently runs a
wrong-shape transform" is REFUTED. On the two independent 4:4:4 lossless
witnesses the debug build stops at decode.rs:2787
`debug_assert_eq!((self.w, self.h), (4, 4))` with `left: (8, 4)`, and the
RELEASE build dies one frame later with an opaque
`range end index 8 out of range for slice of length 0` -- it panics, it does
not mis-transform. The defect is real either way: a debug-only assert was the
only thing naming the invariant, and release's failure message named neither
lossless nor the transform.
decode.rs
- TxParams::run: the debug-only shape assert (and the debug-only
`tx_type == DctDct` assert on an argument the WHT never reads) are
replaced by a counted call into the shape-total entry. Counted by
LOSSLESS_WHT_SPLIT_UNITS, which must read 0 on any stream whose lossless
unit geometry is right.
- decode_intrabc_rect: a LOSSLESS rect intra-BC block's chroma plane block
is now `bw >> ss_x` by `bh >> ss_y` (av1_get_max_uv_txsize is
ss_size_lookup[bsize], no halving of its own -- at 4:4:4 that is the
block's own footprint) walked as a (cw/4)*(ch/4) PLANE-MAJOR raster of
TX_4X4 units through the existing read_inter_chroma_lossless, with the
per-unit coefficient contexts replayed over the whole-block
record_split_luma_rect_mi (class override-slot-on-one-arm, the same one
decode_rect_split's ll_chroma_units replay exists for). Counted by the
exclusive INTRABC_RECT_LOSSLESS_CHROMA4_HITS. Scoped to `lossless` on
purpose: the 4:2:0 halving is right at 4:2:0, and zero pinned fixtures
decode a LOSSLESS intrabc rect block, so no green pin moves.
transform.rs
- dequant_and_inverse_wht: the shape-total lossless entry. 4x4 is the same
single call it always was, so the lossless fast path is bit-for-bit
unchanged; any other shape is the raster of 4x4 WHT units over a
row-major w-wide grid, zero-filled on a partial tile, empty-grid marker
preserved. No shape panics and no shape returns a buffer its caller
cannot index.
MEASURED: the pinned witness (fixtures/ll444_sb64_1to4_lossless.obu, 51107 B,
sha256 fdb64679.., testsrc2 256x256 yuv444p10le, aomenc --lossless=1
--profile=1 --i444 --enable-1to4-partitions=1 --min-partition-size=4
--max-partition-size=64 --sb-size=64 --enable-intrabc=1) went from a RELEASE
panic / DEBUG Golomb-tail refusal to 2 decoded frames, 24576 lossless WHT
units and 0 non-4x4 ones. 43 named lossless / 4:4:4 / intrabc-rect gates stay
green (21 `lossless`, 16 `444`, 5 `intrabc_rect`, 1
`rect16x4_chroma_reach`), in release.
The gate's pixel arm is a measured per-frame, per-plane exact PREFIX, not an
exactness claim: frame 0 is byte-exact to sample 32992 of 65536 on all three
planes and frame 1 to 55008 (Y) / 9378 (U,V). The residual forks are a
separate defect, named with their coordinates in lanes/whtshape.report.md r3.av1lm444loss: appendix r2 -- lead (b) blocking defect diagnosed in fullAhmet Kaan Gümüş · dd7df0c
av1lm444loss: appendix r2 -- lead (b) blocking defect diagnosed in full decode_intrabc_rect lines 13065/13070 hardcode a 4:2:0 chroma halving ((px/2, py/2), (bw/2, bh/2)) where the geometry is (px >> ss_x, py >> ss_y) and (bw >> ss_x, bh >> ss_y). At 4:4:4 a lossless 1:4 rect block's chroma shape arrives rect and trips TxParams::run's 4x4-only WHT assert. Evidence: backtrace, and a probe showing leaves=Some(8) all-TX_4X4 for bw=8 bh=16, so the rect shape is the chroma call, not a luma leaf. Written before the fix so the diagnosis survives independently.
lanes/av1pins: recovered pins, per-gate before/after, and the mandelbrot measurementAhmet Kaan Gümüş · 3fcf42f
lanes/av1pins: recovered pins, per-gate before/after, and the mandelbrot measurement The report's section 3 records a self-correction: the r2 blocker comment on the two 1:4 gates was the stale artefact, not their `#[ignore]` strings. Re-running the r2 recipe set in release on a21f3680 measures 40/40 streams pixel-exact at both bit depths with zero divergence lines in either full log, so the mandelbrot inter-frame defect is cleared; the recipe now fires zero 1:4 strips, which is what the ignore strings always said.
test(av1): commit the three lost pins, and correct the two 1:4 gates' stale blocker commentAhmet Kaan Gümüş · 1cd1686
test(av1): commit the three lost pins, and correct the two 1:4 gates' stale blocker comment
Three gates reported `rc=0 ... ok` having tested nothing, each at `finished in
0.00s`, because their bytes lived only in the gitignored root `fixtures/` and the
machine scratchpad was reaped. The bytes are now committed under
`crates/ec-av1/fixtures/`, which travels in the runner tarball, and the gates
resolve them through a new `crate_pin()` helper that falls back to `pin_dir()`.
golden3-pin.obu 159 B sha256 11c9d5331cffa6614c8265ad5fa685d5ce9155db8439949b48ec4a652ace95cf
sbpart-pin.obu 238 B sha256 62238fc077f45d89745d4d254b9c0465464003529da3b42d0a65631fbb7e16e9
ll444-lossless-key.obu 7845 B sha256 f496ef0a1171c2bc66d411cc60db05db547dcdb49cd834d4e0543de9db441374
Reproducing commands, provenance and the per-pin capture decisions are in
lanes/av1pins.report.md. Two of the three are FRESH captures, not replays: the
original golden3 capture (bec27414, 2026-08-28) predates 5ae053d3 "route all 20
gradients gate fixtures through seed-derived colours", so its source had ffmpeg's
random c4..c7 and cannot be re-encoded. The replacement is byte-reproducible --
its FNV-1a-64 `89c4089148d51c04` equals the `stream_hash` the live
cdf-forwarding gate prints for the same seed, which is what ties the recipe to
that gate. ll444 is the recipe its own SKIP line already recorded.
Each gate is proven to do real work, not to stop skipping:
* sbpart, EC_SBPART_DIAG=1: "DIAG frame 0: 0 luma mismatches ... of 192x128"
plus per-SB-column counts, i.e. all 24576 luma samples walked.
* golden3: prints "4 frame(s) byte-exact vs ffmpeg from <path>".
* ll444: passes its lossless + `rect_split_lossless_chroma444_hits() > before`
non-vacuity assertions, so the 4:4:4 chroma walk provably ran.
* mutation: flipping one byte in each pin turns all three RED (in the ffmpeg
decode step -- a bit-flipped arithmetic-coded stream will not decode, so the
proof is that the bytes are READ and PROCESSED, not that the pixel compare
itself is the thing that catches a bit flip).
* each compare now asserts equal frame counts before the zip, so a short side
cannot silently truncate the walk.
The 1:4 comment correction is separate and is the more important half: the r2
blocker comment recorded an unowned mandelbrot inter-frame defect as these gates'
blocker. Re-running the r2 recipe set in release on a21f3680 measures it CLEARED,
positively, at both bit depths -- 40/40 streams compared, zero "first diff" or
"samples differ" lines in either full log -- while the recipe now fires ZERO 1:4
strips (64x16=0 16x64=0 32x8=0 8x32=0 across all 42 counted attempts). So the
gates are blocked on the RECIPE, which is what their `#[ignore]` strings say and
what the stale comment contradicted. Both stay ignored; only the comment moves.
No decoder logic touched.gate_coverage: fix the two census defects that generated the false entriesAhmet Kaan Gümüş · 143cdf9
gate_coverage: fix the two census defects that generated the false entries r2 corrected the false CLAIMS. This fixes the LOGIC, so it stops generating them. gate_coverage.rs only: no gate, counter, fixture or decoder behaviour touched, and stream.rs is byte-identical to HEAD. 1. gate_bodies() now recognises a gate by what it CALLS, not only by what it spells. fn_units parses every fn in stream.rs as (name, body); encoder_fns takes the transitive closure of fns reaching one that names aomenc_path(); the filter is `legacy_gate_tokens || contains aomenc_path() || any calls_fn`. The call test is deliberately the weak half of an OR, so the fix is strictly ADDITIVE: it can add gates but can never stop recognising one the old filter did, and the new test asserts exactly that containment. calls_fn requires `(` after the name and rejects a name that is the tail of a longer identifier, so inter_sb_none_gate does not "call" sb_none_gate. 2. covers_both_depths gained the third spelling of the lane-defon/reelckf blind spot: a body naming BOTH fixture formats builds both depths, whatever the parameter is called. The quotes matter -- a bare `yuv420p` substring test also matches `yuv420p10le` and would fire on every 10-bit gate, retiring entries on no evidence. Before/after: 146 -> 230 gate bodies seen, 83 -> 107 classified 10-bit+. Retired `enable-dual-filter` and `enable-flip-idtx` from the 8-bit list, each citing the arrival assert that pays it (dual_filter_diff_hits() moved; compared_class1 > 0). NEVER_EXERCISED_8BIT is down to one live entry (enable-rect-tx, the tool with no header bit and no spelling anywhere). RED-BEFORE, three mutations, all reverted. Mutating the helper-based dual-filter spelling to =0 reds two tests: the 8-bit list correctly reports the entry back as a hole, and the new detector test reports "seen, but its =1 spelling is not visible" -- which separates recognition-broken from tool-no-longer-enabled. Mutating --enable-dist-wtd-comp=1 -> 0 in a gate the OLD filter already recognised reds at both depths, so the spelling path is intact. Reverting only the pair-of-formats clause reds the flip-idtx entry back plus the detector test. All 10 gate_coverage tests green after revert. `enable-dual-filter` at 10 BITS STAYS, and that is the finding, not an oversight: the only =1 witness calls inter_sb_none_gate with ten_bit=false, so it builds an 8-bit stream only. The 10-bit entry now says so and names the fix (pass `true` in that gate, assert the differing-direction counter still moves). Reported rather than papered over. Also recorded, as a separate row in the report and in-file: the enable-tx-size-search claim is STILL unsettled, because 9 gates build the flag into a format! variable neither flags_in nor settings_in can see. 113 name it (88 =0, 15 =1, 9 unknown) -- a floor, not a measurement. The report gives the method: resolve the local binding the way gate_bodies now resolves calls, then re-count. New test the_detector_sees_the_gates_the_spelling_filter_missed pins all of it, so the next blind spot of this shape fails loudly instead of quietly overstating coverage again.
gitignore: let per-crate fixture pins be added without -fAhmet Kaan Gümüş · 1dab95e
gitignore: let per-crate fixture pins be added without -f A bare `fixtures` rule ignores the name at EVERY depth, so the 48 committed `crates/ec-av1/fixtures/*.obu` pins are tracked only because someone used `git add -f` -- and a new pin then fails a plain `git add` with a hint that reads like noise (measured 2026-09-29 while landing a regenerated pin). Negate the crate-level pins; the root `fixtures/` directory stays untracked (1.7 GB of media, mirrored to the runner hosts instead).
av1lm444loss: lane report -- H1 fixed (TX grid frame-edge clip), lead (b) blockedAhmet Kaan Gümüş · 65ae1e4
av1lm444loss: lane report -- H1 fixed (TX grid frame-edge clip), lead (b) blocked Evidence for the frame-edge clip fix and its mutation proof, plus the one-line diagnosis of the separate hardcoded-4:2:0 chroma halving in decode_intrabc_rect that stops lead (b) before it reaches its entropy fork.
ec-av1: clip a lossless block's TX grid at the frame edgeAhmet Kaan Gümüş · 589db23
ec-av1: clip a lossless block's TX grid at the frame edge A lossless block's transform-unit grid was built as `side / MI` square, unbounded by the frame. libaom bounds it: `max_block_high` / `max_block_wide` (av1_common_int.h:1565, :1579) fold `mb_to_bottom_edge` / `mb_to_right_edge` into `block_size_high/wide` before `>> MI_SIZE_LOG2`, and `decode_token_recon_block` then caps every mu chunk with `unit_height = ROUND_POWER_OF_TWO(AOMMIN(mu_blocks_high + row, max_blocks_high), ss_y)` -- so the units of an overhanging block that fall outside the frame are never read. The var-tx branch of `read_block_tx_size` twenty lines below already applied exactly this clip (`max_w_mi`/`max_h_mi`); the lossless branch, and the same branch of `read_block_tx_size_rect`, did not. Mechanism, measured on the pinned 128x96 4:4:4 lossless stream (96 is not a multiple of the 128 superblock, so each of its five inter frames carries one unsplit 128 root overhanging the bottom by 32 px). The frame is 24 mi tall, so `max_blocks_high >> 2` is 24 transform rows where the block's own `side / MI` is 32. The unclipped walk therefore read 8 rows x 32 columns = 256 transform units per inter frame that libaom never codes: 2560 all_zero reads per frame against the oracle's 2304. The `EC_SYMR` ladder put the first fork at read 71322, exactly on that row-24 boundary -- `EC_COEFF_STEP tag=all_zero` shows the oracle moving to `plane=1 bc=0 br=16` (chroma, txb_skip ctx 10) where we were still reading `plane=0` luma ctx 1. Both sides read the same `decodetxb.c:158` txb_skip CDF, so this was never the coefficient reader Agent04-2's census excluded: the walk was still in the wrong PLANE. After the fix the ladder is 235940 reads on both sides with zero fork, and all six frames match the oracle `aomdec --rawvideo` in decode order exactly (the unclipped tree was wrong from frame 1: 5596 samples at the first differing byte 16544, growing to 33561 by frame 5). The clip is a no-op on any block that fits, which is what keeps every other lossless and 4:2:0 pin byte-identical; the gate's control arm pins that direction (both counters must read 0 on a stream whose blocks all fit). Gate: `a_lossless_block_clips_its_transform_grid_at_the_frame_edge`. Non-vacuous -- `lossless_edge_clipped()` fires 5 times (once per 128 root) and reads 0 on a frame that fits, `lossless_edge_clip_units()` reads exactly 1280 = 5 x 256, and every sample of every frame is asserted against the oracle. Mutation proof, run: reverting the clip to the unclipped grid turns it RED at the counter assertion (0/5 roots), and the same reverted build is 5596..33561 samples off the oracle.
gate_coverage: correct four false claims and two stale countsAhmet Kaan Gümüş · c784567
gate_coverage: correct four false claims and two stale counts An audit of every CLAIM in gate_coverage.rs against the code. No counter, gate, or decoder behaviour changed -- the only non-comment lines in the diff are three entry reason strings (272, 293, 376). TWO ENTRIES THAT ARE NOT COVERAGE HOLES AT ALL. `enable-dual-filter` (8-bit :270, 10-bit :374) said "never spelled by any gate, so defaulted = unknown; no stream is proven to carry per-direction interp filters". False on both halves. It IS spelled, as `=0`, by two gates. And a stream IS proven to carry it: `a_real_aomenc_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact` spells `--enable-dual-filter=1` and hard-asserts `dual_filter_diff_hits()` moved, which is exactly the arrival assert this file's own rule demands. Measured on aom 3.13.3 with our own parser: flag left off the command line parses `dual_filter=true` (6855 B), the same recipe with `=0` parses `dual_filter=false` and encodes different bytes (6874 B). "Defaulted means unknown" is the right rule; it was applied to a premise that does not hold. `enable-flip-idtx` (8-bit :291) said "never spelled". Two gates spell it, one of them the very gate the 10-bit list names. Ran it: 12 pixel-exact decodes, 6 of them 8-bit, 219 rect coefficient TUs of which 10 carry a 1D tx class, and `compared_class1 > 0` hard-asserted. The 1D types demonstrably reach a real 8-bit stream this decoder reconstructs exactly. Both survive only as census artefacts, and the causes are structural: `gate_bodies()` (:421) keeps a `#[test]` segment only if it spells `--passes=1`/`ten_bit_tool_gate(`/`encode_10bit_gradients`, so a gate whose recipe lives in a shared helper is invisible -- 165 of 311 segments are filtered out and 6 of those spell `--enable-X=1`. And `covers_both_depths` (:599) cannot see a `ten_bit`-parameterised recipe, so is_ten_bit files the flip-idtx gate 10-bit-only and hides its 8-bit arm. Neither defect is fixed here: the entries stay so this file's own test stays green, and the loud flag for the coverage matrix is in lanes/av1distwtd.report.md. VERIFIED TRUE, left alone: enable-rect-tx at both depths (and now PROVEN rather than asserted -- aom has no header bit for it, `enable_rect_tx` is read only in tx_search.c, so the decoder's gate is is_rect_tx_allowed from partition shape); the cfl-intra, intrabc, restoration, 1to4, global-motion and superres gate-naming comments, each checked against that gate's own asserts; the cfl-intra gate's skipped-CfL name being the one overstatement, its asserts cover directional 1:4 pairs and defer skipped-CfL to a different gate; every DEFAULT_ON_TOOLS default, confirmed against `default_extra_cfg` with CONFIG_REALTIME_ONLY 0; and the palette/intrabc content-dependence (encoder.c:2079). STALE COUNTS, corrected with the measured figure: "all 49 gates" naming tx-size-search (now 113 name it: 88 `=0`, 15 `=1`, 9 via a format! the census cannot see, so the claim no longer holds either way); "13 gates" for tiling (19 spell a nonzero log2, 9 assert in-body, 10 via a helper); "all three" superres gates (6); "Only 4 of the 45" 10-bit gates (83 of 146). Rot-prone counts are now stated without a number where a number would rot. The module doc's "a flag left off the line takes aomenc's default (on)" is reworded to the point it was papering over: the default is 1, but a 1 proves the encoder was ALLOWED the tool, never that a block used it -- palette and intrabc are content-gated and speed_features.c re-masks per --cpu-used. Evidence table, the claims-a-gate spot check, and the two structural defects: lanes/av1distwtd.report.md.
lanes: av1skipfix report — per-crate assert-site rows, link-fixtures root causeAhmet Kaan Gümüş · b1ef0d6Browse files
ec-opus: a missing RFC 6716 vector FAILS under EC_REQUIRE_FIXTURESAhmet Kaan Gümüş · 168b491
ec-opus: a missing RFC 6716 vector FAILS under EC_REQUIRE_FIXTURES
`rfc6716_test_vectors` continued past every absent vector with a bare
eprintln, so on a worktree -- no gitignored root `fixtures/` -- the whole
RFC 6716 Section 6 conformance claim was decided by zero vectors, green.
The per-vector arm now names the exact missing path, `scripts/link-fixtures.sh`
and `scripts/fetch-vectors.sh`, and fails under EC_REQUIRE_FIXTURES=1. The
`if path.exists()` arms at the two robustness/perf sites are optional-input
blocks inside tests that do not assert on them, so they stay as they are.
Red: EC_REQUIRE_FIXTURES=1 with `fixtures/` unlinked fails
rfc6716_test_vectors ("RFC 6716 test vector testvector01 missing at
.../opus_testvectors/testvector01.bit -- this gate would prove nothing").
Green: 1 passed with `fixtures/` linked (179.2s).ec-flac: a missing xiph corpus FAILS under EC_REQUIRE_FIXTURESAhmet Kaan Gümüş · 62abc01
ec-flac: a missing xiph corpus FAILS under EC_REQUIRE_FIXTURES
`corpus()` returned `None` on an absent `fixtures/vectors/flac-xiph` tree
and all four gates skipped green, decoding nothing. The assert lives in
`corpus()` itself -- the one place that knows the path -- so all four gates
are covered by one hunk, and each of them still pixel-compares when the
corpus is there.
Red: EC_REQUIRE_FIXTURES=1 with `fixtures/` unlinked fails
subset_vectors_decode_bit_exact_against_ffmpeg ("the FLAC xiph subset
corpus is missing at .../subset -- these gates would prove nothing").
Green: 4 passed / 0 failed with `fixtures/` linked (32.0s).ec-h264: a missing conformance vector FAILS under EC_REQUIRE_FIXTURESAhmet Kaan Gümüş · a737185
ec-h264: a missing conformance vector FAILS under EC_REQUIRE_FIXTURES
Five gates took `if !base.is_dir() { eprintln!("SKIP ..."); return; }`
over the JVT vector directory, and a sixth skipped a missing
`fixtures/video/h264-open-gop.mp4`. On a worktree -- which has no
gitignored root `fixtures/` -- all six reported green having decoded
nothing, so a conformance run there measures nothing while looking
clean. That is the same "gate skips on its own failure" class the ec-av1
inventory pins, one crate over.
A shared `require_fixtures(path, what, generator)` now drives every arm:
default-off it skips and says what it skipped and which command fixes it;
`EC_REQUIRE_FIXTURES=1` turns it into a hard failure naming the exact
missing path, `scripts/link-fixtures.sh` (the root cause) and the
generator for that particular fixture. Tests only; no decoder change.
Red: EC_REQUIRE_FIXTURES=1 with `fixtures/` unlinked fails
jvt_cavlc_first_idr_bit_exact ("the JVT conformance vectors missing at
.../fixtures/vectors/h264-jvt -- this gate would prove nothing") and
h264_seek_matches_linear_open_gop ("the open-GOP fixture missing at
.../fixtures/video/h264-open-gop.mp4"). Green: all six pass with
`fixtures/` linked (1.58s / 5.59s / 0.73s / 20.85s / 9.94s / 0.75s).stream: the 444 pin arm also honours the repo-wide EC_REQUIRE_FIXTURESAhmet Kaan Gümüş · d4100f4
stream: the 444 pin arm also honours the repo-wide EC_REQUIRE_FIXTURES The require-env for a missing fixture is now one name across the repo, so a batch unit sets EC_REQUIRE_FIXTURES=1 once and an absent fixture fails in ec-av1, ec-h264, ec-flac and ec-opus alike. EC_AV1_REQUIRE_AOMENC still works here, since it already means 'this box must have the oracle'.
scripts: link-fixtures.sh — give a worktree the gitignored root fixtures/Ahmet Kaan Gümüş · 7e79eb2
scripts: link-fixtures.sh — give a worktree the gitignored root fixtures/ The root `fixtures/` directory is listed in `.gitignore` (line 2) and is not committed, so `git worktree add` hands every lane worktree a tree WITHOUT it. Every fixture-backed gate then reports green having checked nothing: the ec-h264 JVT conformance gates, the ec-flac xiph corpus, the ec-opus RFC 6716 vectors and the ec-av1 pins all take a missing-fixture skip. That is how a_real_aomenc_lossless_444_key_frame finished in 0.05s with nothing decoded, and it is why a worktree run of the conformance gates measures nothing at all. link-fixtures.sh resolves the primary checkout through `git rev-parse --git-common-dir` (which works from any linked worktree), symlinks its `fixtures/` into the current tree -- a symlink, never a copy -- no-ops with a clear message when the directory is already there, and REFUSES loudly (exit 2) when the primary checkout has no `fixtures/` at all, naming the generator scripts instead of leaving a silent hole. `--check` reports what it would do and exits non-zero, for a batch preflight. Documented in lanes/COMMON-20260901.md beside the batch env line, with EC_REQUIRE_FIXTURES=1 as the shared env that turns an absent fixture into a failure in every crate.
memguard-runner: unique scope name + probe under a distinct nameAhmet Kaan Gümüş · 38d0251
memguard-runner: unique scope name + probe under a distinct name
Three lanes hit 'Unit run-pNNN.scope was already loaded or has a fragment
file' in one batch, and the workaround (invoking the test binary directly)
lost the memory cap. Two causes, both measured: systemd-run derives
run-p<pid>.scope when no --unit is given (pid reuse collides), and a
transient scope stays LOADED after it exits, so probing and exec'ing under
the same --unit collides with the probe's own scope.
Fix: unique --unit per invocation, and the availability probe runs under
${unit}-probe so it cannot collide with the exec. The collision is detected
by PROBING, never by the wrapped command's exit status -- systemd-run --scope
returns the command's own status, so a retry on non-zero would run every
failing test twice. Stale fragments are cleared before the second probe; if
the cap still cannot be acquired the runner falls back to the uncapped exec
with a loud message.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.