Commits
Commits on
27b4e620f1751d85b79fd418451ff6a05328e7522026-09-29
lanes: av1chromarect-r2 -- the 79969-sample residual is a DIFFERENT defect, in decode_block's square 4:4:4 multi-unit chroma DC, not in the strip armAhmet Kaan Gümüş · 27b4e62
lanes: av1chromarect-r2 -- the 79969-sample residual is a DIFFERENT defect, in decode_block's square 4:4:4 multi-unit chroma DC, not in the strip arm No decode-path change. The residual r1 reported as an open fork is localised and it is not this lane's arm. MEASURED (aomdec EC_AV1_FINAL_DUMP vs set_final_dump_prefix, 512x512 8-bit 4:4:4, decode order), reproduced on 5324a685: f0 Y exact | U 7488 wrong from 229728 (x=352, y=448) | V 8128 wrong from 229728 f1 Y exact | U 22571 wrong from 65704 (x=168, y=128) | V 41782 wrong from 65704 f2 Y exact | U 0 | V 0 ALL FIVE STRIPS ARE PIXEL-CLEAN ON THEIR OWN FRAMES. EC_HALVSWEEP gives one CODED strip (f0 mi=(32,40) px=(160,128) 32x64) and four skipped ones; the coded one's footprint x=160..192, y=128..192 is clean, and the multi-unit walk read exactly four units (EC_IBCCU, plane 1 at (160,128) and (160,160), plane 2 at the same two) inside it. f2 is byte-exact on all three planes. So the residual is neither the new walk nor a second strip on the same plane block. Every dirty cell falls inside a SQUARE block from decode_block at 4:4:4 with side=64, cset=Chroma32 ctx=32 ctxh=32 cside=64 cheight=64 -- a 64x64 luma block whose 64x64 chroma plane block is a 2x2 grid of Chroma32 units, in a function this lane never touched. The f0 seed, with the oracle's own mode rung as the control (EC_TRACE_MODE=1 on the instrumented aomdec): ours IBM f=0 mi=(112,80) px=(320,448) side=64 skip=true mode=0 uv=0 ours IBM f=0 mi=(112,96) px=(384,448) side=64 skip=true mode=0 uv=0 ours IBM f=0 mi=(112,112) px=(448,448) side=64 skip=false mode=0 uv=0 ours IBM f=0 mi=(112,64) px=(256,448) side=64 skip=false mode=12 uv=12 oracle EC_IMODE_VAL mi_row=112 mi_col=80 mode=0 uv_mode=0 skip=1 tx=0 oracle EC_IMODE_VAL mi_row=112 mi_col=96 mode=0 uv_mode=0 skip=1 tx=0 oracle EC_IMODE_VAL mi_row=112 mi_col=112 mode=0 uv_mode=0 skip=0 tx=0 oracle EC_IMODE_VAL mi_row=112 mi_col=64 mode=12 uv_mode=12 skip=0 tx=0 Geometry, mode, uv_mode, skip and tx all agree, so this is a reconstruction difference on a block both decoders agree exists with the same flags. f0 U, y=448, x = 256 272 288 304 320 336 | 352 368 | 384 400 416 | 432..496: oracle 192 241 241 241 241 239 | 202 202 | 202 202 203 | 165 166 166 166 166 ours 192 241 241 241 241 239 | 241 239 | 202 202 202 | 202 175 175 171 171 Agreement ends at x=352 = 320+32, the chroma plane block's 2x2 boundary. The seed is skip=true mode=uv_mode=0, so its chroma is pure prediction; its right unit's edges read above=194, left=202, corner=118, yet it reconstructs flat 241 -- the SIBLING unit's value. The mechanism is therefore: the second chroma unit of a 4:4:4 64x64 square block's 2x2 walk does not get its own DC prediction. libaom resolves the DC per unit (av1_predict_intra_block is called per plane per transform unit, av1_build_dc_predictor_sb over the unit's own above row and left column); this path resolves it per block. RULED OUT BY MEASUREMENT: the new walk (four exact units); the extent and set (Chroma32 IS get_vartx_max_txsize's av1_get_adjusted_tx_size(TX_64X64) = TX_32X32, same conclusion r1 reached for the strip arm); CfL (cfl=false on all four bottom-row blocks, and zero cfl_ac_q3_at calls on the witness); the skip arm's coefficient-context record (record_mi_rect writes all three planes over the luma cells, so the zero stamp does land at 4:4:4, and forcing an extra per-unit zero record_mi_chroma into the skip arm changed NO number in any frame or plane); a bitstream or partition difference (the oracle's mode rung agrees). NOT DONE: the line inside the DC predictor. push_intra_unit -> push_intra -> inline_intra -> exec_intra takes the unit's own x, y, bw, bh, so the block-level reuse is either upstream of that call or inside exec_intra's DC arm, and separating those needs a paired per-unit-DC trace (ours + oracle) that I did not build. Handed back as a narrowed statement with the unit and the class named. The 4:2:0 and 4:4:4-lossless arms were not touched and no gate family was re-run, because no code changed on this branch.
Merge lane-av1chromarect: 4:4:4 intra-BC rect-strip chroma is sized and walked per unitAhmet Kaan Gümüş · 972e329
Merge lane-av1chromarect: 4:4:4 intra-BC rect-strip chroma is sized and walked per unit The premise that this needed a new chroma TxbSet was WRONG: libaom never forms a 64-point chroma transform (av1_get_adjusted_tx_size maps TX_32X64/TX_64X32 -> TX_32X32 for plane != 0), so a 4:4:4 32x64 chroma plane block is TWO TX_32X32 units and TX_32X32 is already TxbSet::Chroma32. The missing piece was the multi-unit WALK. Lands: ss-derived chroma extent and the eight MV origin pairs, a per-unit chroma walk with neighbour stamping and covering-leaf tx_type inheritance, an ss(0,0)-only hit counter, and the refusal gate replaced by a pixel-exactness gate with committed oracle floors. Measured on r512.obu: 640727 wrong samples -> 79969 (-87.5%), luma byte-exact on all three frames, frame 2 fully exact. Residual 79969 is named in the report, not hidden.
Merge lane-av1stagegaps: a staged suite can no longer run with its preflight unverifiedAhmet Kaan Gümüş · 5938e75
Merge lane-av1stagegaps: a staged suite can no longer run with its preflight unverified scripts/check-aom-oracle-rungs.sh exits 3 (NOTRUN) when the prerequisite is absent instead of 1; new scripts/av1-suite-preflight.sh gates both pieces (VERDICT=GREEN|WAIVED|BLOCKED, rung_check=not-run waivable only via a named SUITE_RUNG_WAIVER) and scripts/av1-stage-suite.sh aborts before systemd-run on a blocked verdict. Red-before: the old driver printed rungs_exit=1 ok_count=0 and ran === SUITE anyway; green-after: BLOCKED, no unit created. Prerequisite named for host host-d: it carries oracle binaries only, no libaom source at $AOM_ORACLE_SRC.
Merge lane-av1ignorereasons: every bare #[ignore] names its unblock (15 -> 0)Ahmet Kaan Gümüş · 892672a
Merge lane-av1ignorereasons: every bare #[ignore] names its unblock (15 -> 0) All 15 were in ec-opus/tests/conformance.rs; attribute lines only, no test body touched. Three gate-shaped bodies stay ignored with reasons recording that their blocker is the local media corpus (or a body with no asserts), not a defect. Also records that the reelm@64k dropout the library gate first failed on is fixed per lanes/opus-drop-r2.report.md.
stage(av1): a suite cannot start with its preflight unverifiedAhmet Kaan Gümüş · bede77e
stage(av1): a suite cannot start with its preflight unverified Three hosts, three preflight realities, one identical green suite: host C logged 'rungs_exit=1 ok_count=0' with no detail and ran anyway, host A ran no preflight at all. 'Green suite' meant checker-passed, checker-failed and no-checker-ran with equal confidence. - check-aom-oracle-rungs.sh: exit 3 (NOTRUN) for an absent PREREQUISITE -- no libaom source tree, base ref not in it, or a TMPDIR that does not exist. The measured cause on host-d is the absent source tree; the host carries build/ (binaries) and no src/. exit 1 keeps meaning FAIL. - av1-suite-preflight.sh (new): runs both preflight pieces, prints every detail line of each, and emits one verdict. rung_check=not-run is waivable only via a non-empty SUITE_RUNG_WAIVER; an ABSENT checker is never waivable, which is the host-A defect. 8-case self-test. - av1-stage-suite.sh (new): the gate under 'set -e' before systemd-run, so a blocked verdict creates no unit. Also refuses a non-git tree, an empty index (bare 'git init' makes every pin read uncommitted), and a missing lanes/*.expected.txt. Lanes/av1stagegaps.report.md carries the reproduction, red-before / green-after, the per-host audit of both running suites (test counts unchanged), and the sentence the merge report can quote.
lanes: av1chromarect report -- fix the sub8-leaf evidence command's own line rangeAhmet Kaan Gümüş · 6559c46Browse files
lanes: av1chromarect report -- re-verify every path:line against the committed treeAhmet Kaan Gümüş · d627cb1Browse files
lane-av1ignorereasons: reason on all 15 bare #[ignore] in ec-opus conformanceAhmet Kaan Gümüş · c5351dd
lane-av1ignorereasons: reason on all 15 bare #[ignore] in ec-opus conformance Every bare #[ignore] in crates/ lives in crates/ec-opus/tests/conformance.rs. Each now names its unblock instead of being indistinguishable from a lost gate. Nothing un-ignored: the three gate-shaped bodies are blocked on the local media corpus, not on a defect. - encoder_library_gate_vs_libopus: the reelm@64k dropout that first failed it is fixed (lanes/opus-drop-r2.report.md, 0 ours-only dropouts on 14 rows), but the sweep is a ~12 min ffmpeg libopus run over a local music corpus and SKIPs missing sources, so un-ignoring would leave a 6-of-7-row gate. - silk_library_gate_vs_libopus: hard-asserts a local source wav that is no longer present on this host. - celt_click_peak_offset: ran it, +120 samples at 32/64/128k, but zero asserts. Suite: 63 passed, 16 ignored (reasons now printed). cargo check --all-targets clean.
4:4:4 chroma plane block at the 128-root intra-BC strip: walk it in get_vartx_max_txsize units, and do not overwrite the per-unit contextsAhmet Kaan Gümüş · b88c866
4:4:4 chroma plane block at the 128-root intra-BC strip: walk it in
get_vartx_max_txsize units, and do not overwrite the per-unit contexts
Commit 1 landed the ss-derived extent and then REFUSED the witness with "a
rectangular inter chroma transform unit whose shape has no coefficient table set
here". That refusal named the shape this crate HANDED
`rect_inter_chroma_set`, not the shape libaom codes, and acting on it literally
-- a new `ChromaRect32x64` / `ChromaRect64x32` -- would have shipped a
coefficient table no bitstream can ever exercise.
libaom never forms a 64-point CHROMA transform:
* `get_vartx_max_txsize` (blockd.h:1447) returns
`av1_get_adjusted_tx_size(max_txsize_rect_lookup[bsize])` for `plane != 0`;
* `av1_get_adjusted_tx_size` maps `TX_32X64 -> TX_32X32` and
`TX_64X32 -> TX_32X32`;
* `max_txsize_rect_lookup[BLOCK_SIZES_ALL]` (common_data.h:126) has
`BLOCK_32X64 -> TX_32X64`;
* `decode_token_recon_block` (decodeframe.c:994-1004) steps the plane block
by that size's mi units, and `decode_reconstruct_tx`'s
`tx_size == plane_tx_size || plane` arm never recurses for chroma.
So a 4:4:4 32x64 chroma plane block is TWO stacked `TX_32X32` units, each with
its own eob, scan and coefficient context -- `rect_inter_chroma_set(32, 32)` is
already `TxbSet::Chroma32` (decode.rs:28919, arm lane-av1-444 added). What was
missing was the WALK, not a set, and no `rect_scan` / rect
`base_ctx_rect` / `br_ctx_rect` change is needed either: a `TX_32X32` unit is
square, so `read_inter_plane_rect` takes its `(cw, ch) == (32, 32)` branch and
reads `default_scan(TX32)`.
New `read_intrabc_rect_chroma_split`: the same
`(cw.min(32), ch.min(32))` / `nx * ny` tiling `read_inter_rect_chroma` already
does for the other rect paths, entered ONLY when the plane block needs more
than one unit, so 4:2:0 and every 4:4:4 shape below 64 keep the caller's own
one-unit read byte-for-byte. Per unit: its own `around_mi_rect` gather, origin,
prediction slice, `covering_leaf_tx_type` inheritance (`av1_get_tx_type`,
blockd.h:1287), the `get_txb_ctx` plus-10 offset, and `record_mi_chroma`
immediately.
New `record_split_luma_rect_mi_modes` / `record_rect_mi_luma_only`, extracted
from the existing pair: when the chroma plane block was walked as several
units, the whole-block coefficient stamp would overwrite the per-unit spans
with one state (the `override-slot-on-one-arm` class -- the same reason the
lossless arm sets `mu_chroma = true`). Gated on `!skip`: a skipped strip reads
no chroma unit at all, so the whole-block stamp is still its only one.
MEASURED, same oracle (aomdec `EC_AV1_FINAL_DUMP` vs `set_final_dump_prefix`,
512x512 8-bit 4:4:4, decode order), wrong samples per frame:
before after
f0 Y 166229 -> 0 | U 155383 -> 7488 | V 153498 -> 8128
f1 Y 0 -> 0 | U 74708 -> 22571 | V 73501 -> 41782
f2 Y 0 -> 0 | U 9216 -> 0 | V 8192 -> 0
640727 wrong samples -> 79969. Luma is byte-exact on all three frames and frame
2 is byte-exact on all three planes. The refusal string is gone from this
witness because nothing reaches it, not because it was deleted: the string is
still at decode.rs:28938 and in refusal_inventory.rs:55, and
`every_rect_transform_shape_the_census_lists_has_a_coefficient_table_and_scan`
still passes.
Gate `a_444_intrabc_owned_rect_strip_refuses_the_missing_rect_chroma_
coefficient_set` (commit 1) is replaced by
`a_444_intrabc_owned_rect_strip_sizes_its_chroma_plane_block_and_decodes`: a
per-(frame, plane) exact prefix against the oracle, plus
`IBC_OWNED_RECT_CHROMA_FOOTPRINT_444_HITS == 5` as the non-vacuity proof. The
prefixes are floors, not an exactness claim -- the frames 0/1 chroma tail is an
OPEN fork at a site this lane did not identify, measured and named in
lanes/av1chromarect.report.md.
Mutation proofs, each reverted:
M1 extent back to `/ 2` -> RED, counter 6 != 5
M3 `(nx, ny)` transposed -> RED, f0 Y diverges at 65728
M5 per-unit chroma row origin dropped -> RED, f0 U diverges at 65696
M4 prediction slice column term dropped -> GREEN (nx == 1 here, term dead)
Gates: 33/33 on the 4:4:4-lossless + intrabc_rect + 4:2:0-twin set. The wider
`rect intrabc ibc chroma 444 420 subsampl` family is 138 passed / 0 failed / 5
ignored on this tip against 137 / 0 / 5 on the base `edffad9e`, the set
difference being exactly this lane's new gate.Merge lane-av1pinspec: 41 of 43 unpinned count sites spec-pinned, ceiling 43 -> 2Ahmet Kaan Gümüş · b6966d6
Merge lane-av1pinspec: 41 of 43 unpinned count sites spec-pinned, ceiling 43 -> 2 Sweep unchanged in population (60 sites, floor 40 intact) and now reads 58 spec-pinned, 2 not. Per-group red-before (un-apply one group -> the real guard reds) and six value mutations, one per derivation shape, each printing the decoded count. Handed forward: the SVT gate site (stream named by env, not a committed pin, so a wire-header assert would ship unexercised) and one doc-comment false positive the line-based scanner cannot tell from code.
lanes: av1pinspec report -- 41 of 43 unpinned count sites pinned, ceiling 43 -> 2Ahmet Kaan Gümüş · 5184128
lanes: av1pinspec report -- 41 of 43 unpinned count sites pinned, ceiling 43 -> 2 The 43-row table with the per-site classification, the six derivations each asserted value comes from, the per-group red-before (the guard's own message for each of the eight stream.rs commits) and the six-gate value mutation that shows the new asserts bite -- and, in its 'decode showed' column, that the values came out of the encode recipe rather than the decode. Also records the two failures this lane hit and what caught them: a split that put the narrow-kernel assert inside a refusal arm where it would only run on arms the gate had already declined to compare, and the global pre-commit rustfmt hook re-wrapping two asserts.
gate_coverage: lower the count-vacuity unpinned ceiling 43 -> 2Ahmet Kaan Gümüş · fbed1b6
gate_coverage: lower the count-vacuity unpinned ceiling 43 -> 2
The number the nine stream.rs commits above bring it to, with the two that
survive the round named in the comment. Neither is a count to fix:
* an_svt_screen_palette_block_with_a_split_transform_decodes_exactly reads
its stream from the path EC_AV1_SVT1_STREAM names, and that crop is not
committed to fixtures/ -- so no encode recipe, no --limit, no -frames:v and
no frame count exists anywhere in the tree for it. The doc comment's
"12-frame stream" is prose about one capture, and the env var accepts any
file, so asserting 12 would pin a number nothing can check. Deriving one
from the stream's own OBU frame headers is left on the table deliberately:
the gate SKIPs on any box without that env var, so such an assert would
ship unexercised.
* the second is a '///' doc comment quoting the pre-r4 body of
pinned_lr_sgr_stream_call_unique_dump -- the sweep's line-based scan cannot
tell a doc comment from code. The gate it describes already spends FRAMES
and asserts pics.len() == FRAMES.
The floor (>= 40 sites) is untouched and the site population is unchanged at
60: the fixes assert the encode's count ABOVE the call rather than spending a
named constant in place of .len(), so each site moves from "not spec-pinned"
to "spec-pinned by a prior assert" instead of vanishing from the class. 41
sites become pinned and 43 - 41 = 2 remain.
Red-before for all 41 at once: with this ceiling and stream.rs reverted to
3b691e13, the guard reds with "43 unpinned count site(s), ceiling is 2". Since
each fix removes exactly one site from the unpinned population, removing any
one of the 41 asserts puts unpinned at 3 and reds this same assert.Merge lane-av1w3erefute: wave-3e refutation (3 PASS by mutation) + the unexercised-matcher class closedAhmet Kaan Gümüş · 44a0cfb
Merge lane-av1w3erefute: wave-3e refutation (3 PASS by mutation) + the unexercised-matcher class closed Nine dead matcher spellings deleted, the matcher tables single-sourced as pub consts, and a positive control (every_scanner_matcher_fires_on_a_known_site) that iterates those same consts so a matcher cannot be added without a control that must pass. Sweep unchanged at 60/17/43 -- the proof the deletions cost no coverage. C1's '30 fires / 2555904 samples' is recorded as author-reported and NOT reproduced; the verified claim is the weaker 38/38-green one.
test(av1): give every count-vacuity scanner matcher a positive controlAhmet Kaan Gümüş · 91a96ff
test(av1): give every count-vacuity scanner matcher a positive control
The wave-3e refutation of the pins5 guard turned up a class the sweep's own
floor could not see: an UNEXERCISED MATCHER IN A SOURCE SCANNER. The floor
(s.len() >= 40) and the unpinned ceiling (43) both catch a LOST shape.
Nothing caught a matcher that has never fired, so the scanner advertised
coverage it did not have.
Measured every matcher in count_vacuity against the real scan target:
ffmpeg_decode_sequence_444( -- NOT dead, my first read was wrong. It fires
on five stream.rs gates (7030, 7545, 7735, 8439, 11643) and produces no
count-vacuity SITE only because all five pass the spec const FRAMES rather
than a decode-derived .len(). KEPT, with that reason recorded at the const.
Nine spellings that fire on nothing anywhere in the crate -- DELETED, each
with grep evidence that the string occurs nowhere outside the matcher table,
so there is no hypothetical caller to name and no coverage is lost:
diagnostic (probe substring, 0 fns)
the_chroma_rect_gates, restore_gate,
cdef_gate, superres_gate,
grain_gate, sgate (encode helpers, 0 fn bodies)
NFRAMES, frames_expected (spec bindings, 0 fn bodies)
All tables are now single-sourced pub consts (CALLEES, PROBE_SUBSTRINGS,
ENC_HELPERS, FIXABLE_CANDS, AOMENC_LEAF, DISK_READ_LEAVES, PIN_WINDOW) and
every_scanner_matcher_fires_on_a_known_site iterates those same consts, so a
matcher cannot be added later without a control that has to pass. The brace
walk is extracted from sites() into fn_body_end so the control measures the
EXACT slice the scanner classifies with (control-and-measurement-drift).
Mutation: re-adding "sgate" to ENC_HELPERS reds the control --
the encode-helper matcher `sgate(` matches NO fn body in stream.rs -- it is
dead coverage (grep the crate: ...)
Restored, control ok.
The sweep is UNCHANGED, which is the proof the deletions cost nothing:
count-vacuity sweep: 60 site(s); 17 spec-pinned by a prior assert, 43 not
test result: ok. 3 passed; 0 failedstream: pin eight single-key-frame oracle counts, three of them by hoistingAhmet Kaan Gümüş · 222f4c5
stream: pin eight single-key-frame oracle counts, three of them by hoisting Five of these gates already carried 'assert_eq!(frames.len(), 1)' but BELOW the ffmpeg call, which is exactly why the sweep still read them as unpinned: by the time the assert ran, the oracle had already been handed frames.len(). Hoisted above the call they are what they were meant to be -- a check on the encode, taken before the budget is spent. The chroma-edge-filter gate's assert is hoisted past both the 8-bit and the 10-bit arm, so one assert covers both of its sites. count-vacuity sweep: 25 unpinned -> 17.
stream: pin four more oracle counts, one of them off the wire itselfAhmet Kaan Gümüş · 31ca760
stream: pin four more oracle counts, one of them off the wire itself a_real_aomenc_stream_with_cdf_update_disabled is the one site whose spec is NOT a literal: the arm overrides screen_intrabc_stream_at_depth's '--limit=1' with '--limit=3', and aomenc keeps the LAST occurrence of a repeated flag, so '3' would be a claim about flag precedence rather than a fact about a stream. The gate already parses this stream's own OBU frame headers with Av1Parser in the loop sitting above the call, so the assert compares frames.len() against that header count -- derived from the bitstream, not from a rule and not from our decode. The mutation run in the lane report prints both sides (3 vs 4), so the pin is shown to bite. Also pins the rect-strip-palette gate, whose 'no frame-count assert here' comment is deleted: frames.len() == 1 is a fact about the encode, taken before frames.len() is spent as ffmpeg's budget, so it was never the tautology that comment described -- and ten_bit_tool_gate, whose count is its own 'frames' PARAMETER, the same value handed to encode_10bit_gradients_seed: 1 for the key-frame callers, 24 for the --lag-in-frames=16 inter ones. count-vacuity sweep: 29 unpinned -> 25.
stream: hoist the narrow-kernel gate's FRAMES assert above its oracle callAhmet Kaan Gümüş · 6e9d8a0
stream: hoist the narrow-kernel gate's FRAMES assert above its oracle call
a_real_aomenc_rect_inter_block_predicts_chroma_with_the_narrow_kernel already
had the right assert -- frames.len() == FRAMES, with 'const FRAMES: usize = 6'
driving both '-vframes {FRAMES}' and '--limit={FRAMES}' -- but BELOW the call,
so the oracle had already been handed frames.len(). Hoisted, not duplicated.
The 'rect_narrow_kern_hits()' read stays where it was, above the call, so a
mismatch report still says whether the arm fired; a first attempt at this edit
moved the assert above that read and dropped the binding, which would have left
the failure message unable to name the arm's hit count.
count-vacuity sweep: 5 unpinned -> 4.stream: pin the band and chroma-rect sweep family to one frame eachAhmet Kaan Gümüş · a2f865b
stream: pin the band and chroma-rect sweep family to one frame each Four gates, eight sites: the 4:1/sub8 rect-chroma gate, the excluded-seed-46 chroma-rect gate, the seed-46 band stream gate, and the frame-edge-partition-bit gate. The first three encode through rectchroma_stream or its byte-identical inline twin -- 'duration=0.04:rate=25' rendered with '-t 0.04', one frame, no '--limit' -- and the fourth renders with '-t 1' AND '-vframes 1'. One assert per gate sits above the depth branch, so it covers both the 8-bit and the 10-bit site. count-vacuity sweep: 13 unpinned -> 5.
stream: pin the restoration sweep and edge32_gate, whose spec is a parameterAhmet Kaan Gümüş · ae84402
stream: pin the restoration sweep and edge32_gate, whose spec is a parameter a_real_aomenc_stream_with_restoration_reads_lr_symbols_correctly: every EC_FISTRIP_SRC branch and the gradients_source default render at rate 25 with a 1-frame duration=0.04, and aomenc runs with no '--limit', so each attempt's stream codes 1 frame. This gate had NO frame-count assert at all -- not even the tautological one -- so its zip over pics and reference would have truncated silently on a short decode. edge32_gate's count is PER ARM: the arm tuple's frame_count field is what the y4m is built from (duration = frame_count / 25.0) and aomenc runs with neither '--limit' nor '--lag-in-frames', so 1 for the intra arms and 5 for the inter/straddling ones. Asserting against that field is a spec rather than a literal and is already in scope at the call, which is why this is a pin and not a hand-forward. count-vacuity sweep: 15 unpinned -> 13.
stream: pin the ignored rect-tx recipe sweep and the 32-level AB gateAhmet Kaan Gümüş · f9d88f7
stream: pin the ignored rect-tx recipe sweep and the 32-level AB gate sweep_rectx_recipes asserts no verdict -- it counts mismatching frames and prints an 8x8 map -- but that COUNT is the number it reports, so a decode that showed fewer frames than the wire would silently under-report it. Pinned against '-vframes 1' like every other arm in that sweep, and the gate still runs only under --ignored. a_real_aomenc_stream_with_a_32_level_ab_partition renders 'gradients_source(..., duration=0.04:rate=25)' with '-frames:v 1' and runs aomenc with '--limit=1 --kf-max-dist=0', so all 16 seeds code 1 frame. count-vacuity sweep: 17 unpinned -> 15.
stream: pin the encode's frame count in the intrabc rect/census familyAhmet Kaan Gümüş · 8644bc7
stream: pin the encode's frame count in the intrabc rect/census family Seven sites across the coded-rect-intrabc gate (both the arms and skip_arms loops), the sb128 screen intrabc gate, the two intrabc censuses, the mixed vart-tx tree gate and the tx-mode-select gate. All encode through screen_intrabc_stream_at_depth, which renders '-t 0.2' at rate 25 with '-vf tile=2x2' (5 frames in, 1 tiled frame out) and runs aomenc with '--limit=1', so every arm codes exactly 1 frame. The two censuses are report-only about their COUNTS, but their Ok arms assert pixel-exactness, so the budget handed to ffmpeg there is pinned for the same reason as everywhere else. The skip_arms loop re-decodes the same bytes at each recon-thread count, so one assert covers both of that loop's sites. count-vacuity sweep: 36 unpinned -> 29.
stream: pin the encode's frame count above 7 oracle calls (palette, rect-tx tool, screen intrabc, 16x4 pair)Ahmet Kaan Gümüş · 6867062
stream: pin the encode's frame count above 7 oracle calls (palette, rect-tx tool, screen intrabc, 16x4 pair)
These seven count sites handed ffmpeg_decode_sequence{,_10bit} the length of
OUR OWN decode as the oracle's expected frame count. A decode that showed
fewer frames therefore asked ffmpeg for the same short count, and the helper's
byte-length assert fired naming ffmpeg for a number our decoder chose. The
count is now asserted against the ENCODE -- '-frames:v 1', '-vframes 1',
'--limit=1', or 'rate=25 x -t 0.60' = 15 for rect_tx_tool_gate -- and that
assert sits ABOVE the call, so a dropped frame reds naming the encode.
Three of the seven already carried the literal but BELOW the call, where the
oracle had already been handed frames.len(); those are hoisted, not
duplicated. rect_tx_tool_gate is the one multi-frame site and the count is
named, since 15 comes from an arithmetic fact about the fixture
(rate 25 x -t 0.60) rather than from a flag someone typed.
count-vacuity sweep: 43 unpinned -> 36. The call still spends frames.len();
the assert above makes that value a spec, which is the shape the 17
already-pinned sites use, so the site population stays 60 and the class stays
enumerable.4:4:4 witness pin + ss-derived chroma extent at the 128-root intra-BC stripAhmet Kaan Gümüş · 287d79c
4:4:4 witness pin + ss-derived chroma extent at the 128-root intra-BC strip Pins crates/ec-av1/fixtures/r512.obu (6948 B, blob bff992e9, taken from lane-chromahalvings-r3 -- the only one of the three chromahalvings refs that carries it) and replaces `decode_intrabc_owned_rect`'s hardcoded `(bw / 2, bh / 2)` chroma extent and its eight `px / 2, py / 2` chroma MV origin pairs with the ss-derived `>> ss_x` / `>> ss_y` forms. libaom: `av1_get_max_uv_txsize` (blockd.h:1372) is `max_txsize_rect_lookup[get_plane_block_size(bsize, ss_x, ss_y)]` through `av1_get_adjusted_tx_size`, and `get_plane_block_size` is `ss_size_lookup[bsize]` -- at ss (0,0) the chroma plane block IS the luma footprint. At 4:2:0 the two forms are the same arithmetic. RED-BEFORE, measured on the UNPATCHED line in this worktree, per-plane sample counts against the instrumented aomdec (`EC_AV1_FINAL_DUMP`): f0 Y 166229 wrong from 65728 | U 155383 from 32848 | V 153498 from 32848 f1 Y 0 (byte-exact) | U 74708 from 49282 | V 73501 from 49280 f2 Y 0 (byte-exact) | U 9216 from 114880 | V 8192 from 229760 Luma byte-exact on f1 and f2 while chroma is wrong is the signature that makes this a chroma-plane sizing defect and not a block-geometry one. New counter IBC_OWNED_RECT_CHROMA_FOOTPRINT_444_HITS: the 128-root intra-BC strips whose chroma plane block was sized at ss (0,0). At 4:2:0 the corrected and halving forms are identical, so >= 1 cannot be satisfied by a 4:2:0 stream; the arm is exclusive to this function. Gate `a_444_intrabc_owned_rect_strip_refuses_the_missing_rect_chroma_ coefficient_set` asserts -- deliberately -- that the witness is now REFUSED with the exact string "a rectangular inter chroma transform unit whose shape has no coefficient table set here". That is the state this commit lands in: the extent is libaom-correct, and a 4:4:4 32x64 luma block's chroma plane block is 32x64, which this crate has no `TxbSet` for. The gate exists so the day that arm lands the gate goes RED and the assertion has to become the pixel-exactness check. Reach proof for the site, on the whole witness with EC_HALVSWEEP=1: 5 strips (mi 32x64 skip=false at mi(32,40); 32x64 skip=true at mi(48,64); 16x64 skip=true at mi(64,108); 32x64 skip=true at mi(112,96) and mi(112,104)).
Merge lane-chromahalvings-r5: EC_HALVSWEEP rungs + the 4:4:4 intrabc rect blocker reportAhmet Kaan Gümüş · ecb98e2
Merge lane-chromahalvings-r5: EC_HALVSWEEP rungs + the 4:4:4 intrabc rect blocker report The 4:4:4 lossy witness, its chroma-only red-before and the exact refusal string are recorded so the next lane starts warm. The fix needs a chroma TxbSet (ChromaRect32x64/ChromaRect64x32) this crate lacks, so the halving is left in place deliberately: turning a decoding stream into a refusal is a behaviour change with its own decision.
chroma halvings r5: rebased on 3b691e13; item (3) already fixed by C1, item (2) confirmed still deferredAhmet Kaan Gümüş · 26946b2
chroma halvings r5: rebased on 3b691e13; item (3) already fixed by C1, item (2) confirmed still deferred Two of the three chartered items change status on the rebase, and both changes are retractions in this lane's favour. ITEM (3) suppress_internal_lf_edges -- ALREADY FIXED by Agent09-4's C1. On 3b691e13 the function now takes fctx and reads ((w_mi * MI) >> ss_x(fctx)).max(4), ((h_mi * MI) >> ss_y(fctx)).max(4) which is exactly the fix r1/r2 chartered. The r1/r2 claim that this site is "format-blind today, a structural constraint" was true of f33b9d41 and is FALSE of current main. Retracted. ITEM (2) cfl_ac_q3_at -- still format-blind, now with a measured reason rather than an assumption. Post-rebase the signature is still fn cfl_ac_q3_at(px, py, bw, bh, sample) -> Vec<i32> with `let (cw, ch) = (bw / 2, bh / 2);` at 19957 and no fctx, so the subsampling cannot be derived inside the function. The witness is real (188 rung hits on the 4:4:4 set); what is missing is only the threading through the CfL call tree plus a CfL-specific pixel gate. Deferred with that reason. ITEM (1) -- the ChromaRect32x64 / ChromaRect64x32 coefficient sets and the ss-derived extent -- NOT STARTED. Witness committed, red-before measured, the refusal string exact, and the remaining work is real engineering rather than a swap: a CDF set per shape, its rect_scan, and the rect forms of base_ctx_rect/br_ctx_rect, following lane-inter4's precedent for the rect inter sets. Shipping a partial version would put a silent wrongness into the tree, which is the outcome this lane has been removing. Unblock order is in the report. decode_intra_sub8_leaf (decode.rs:45340, body 45340..46168) RECORDED as a named gap: it takes has_chroma: bool and has NO chroma_444 branch and NO chroma_422 branch -- a single chroma path, so at 4:4:4 it computes the 4:2:0 geometry and 4:2:2 has no path at all. Callers: decode.rs:44470 and decode.rs:46356, both passing has_chroma. Not implemented: the 4:2:2 lift needs the shape, but this lane has no 4:2:2 witness (the decoder refuses 4:2:2 by name at the sequence header), so a fix here would be unmeasured. The stale-binary tell is written into the report: a green gate result alongside a target that does not compile is a stale binary, and `git checkout <branch> -- <file>` is what produces it. It bit this lane twice in one turn. Any --no-run error that coincides with green gates invalidates every gate result in that turn.
lanes: wave-3e report final -- chromahalvings deferred, ref hazard closedAhmet Kaan Gümüş · d9e6745
lanes: wave-3e report final -- chromahalvings deferred, ref hazard closed Adds what the wave's second pass measured: the intra-in-inter family (7/0 with the oracle forced on) covering the 305-line decode.rs delta, the libtest pattern-semantics note (four positional filters are a union of substrings, not four module selectors -- 42 and 43 are per-module sums, the combined run is smaller), and the promotion of the cmp-byte-identical diff-vs-branch technique as the standing form of the foreign-file check: --stat proves the file SET, cmp on the two diffs is what proves the hunks. lane-chromahalvings is deferred(next wave): 69e80133 says "none fixed here" and is five merges stale, so there is no region to resolve yet. The decode_intrabc_owned_rect bw/2, bh/2 line stays untouched for its witness. Main has repointed lane-av1txsizeaudit to c0727d64; it is now an ancestor of main and the ref hazard section 4 documented is closed.
lanes: wave-3e report -- pins5 and txsizeaudit merged, chromahalvings heldAhmet Kaan Gümüş · e03cd90
lanes: wave-3e report -- pins5 and txsizeaudit merged, chromahalvings held 7ec417ad merges lane-av1pins5 (e1f78b8e), 5f39325d merges lane-av1txsizeaudit-r5 (c0727d64). Both predicted clean by merge-tree and both clean in fact; cargo check 0 warnings after each; the four guard families read 18/0, 20/0, 2/0, 3/0 on the merged tree with sources touched first. Shape checks: each merge's diff against its first parent is byte-identical to the branch delta, and the per-file removal counts match the branch one-for-one. Recorded: the ref `lane-av1txsizeaudit` points at dc80b6fa, a divergent pre-rebase line 67 files and -13617 lines away, not at the merged c0727d64 -- merging it by name would have conflicted and landed an ancient decode.rs. The sha was merged instead. lane-chromahalvings is held: 69e80133 says "none fixed here" and is five merges stale. decode_intrabc_owned_rect's bw/2, bh/2 region was left untouched for its witness.
lanes/av1txsizeaudit r5: re-rebase onto ec4e9528, declare provenance of the foreign workAhmet Kaan Gümüş · 4e9b008
lanes/av1txsizeaudit r5: re-rebase onto ec4e9528, declare provenance of the foreign work
PROVENANCE, declared before wave 3e rather than at merge time. This branch
carries TWO lanes' work, not one.
lane-av1txsizeaudit (this lane): the tx-size audit, the C1 fix + source-scan
gate, the av1tilerows retraction.
lane-av1ibc128arm, commit 4bfe8d8e "av1: 4:4:4 intra-in-inter 128-root
mu-chunk chroma as a per-unit walk": 279 lines of decode.rs, 192 of
stream.rs, 5 of examples/decode_probe.rs, 196 of lanes/av1ibc128arm.report.md
-- and it has NEVER been merged to main.
Three checks against main:
git merge-base --is-ancestor 4bfe8d8e main -> NO
git grep -c 'a_real_aomenc_444_intra_in_inter_128_root_codes_chroma_per_mu_chunk'
main -- crates/ec-av1/src/stream.rs -> 0
git grep -n 'luma_span = cu_tx * 2' main -- crates/ec-av1/src/decode.rs
-> main:...:43185
That last line is the proof of non-merge rather than a re-implementation: main
still carries the collapsed 4:2:0 arm verbatim -- `let luma_span = cu_tx * 2;`
-- which is exactly the line 4bfe8d8e deletes, and the string appears 0 times
on this branch. `git log --all -S"luma_span = cu_tx * 2"` finds only the two
lanes that CREATED the class (2050a065 lane-av1-ibc128chunk, 29550383
lane-av1-422bigblock) and the commit that removed it. `git grep -ln
"intra_in_inter_128_root" main -- lanes/` returns nothing, and
`git cat-file -e main:lanes/av1ibc128arm.report.md` fails -- so no other lane's
report claims it. Branch lane-av1ibc128arm still exists at 4bfe8d8e, so this is
not an orphan.
THE TWO FOREIGN REPORT FILES, individually:
- lanes/av1ibc128arm.report.md (+196): deliberately KEPT, and it belongs to
lane-av1ibc128arm, not to this lane. It is the only provenance record for
the 279-line decode.rs change and the 4:4:4 gate. Not cherry-pick residue:
it arrived with 4bfe8d8e whole. MERGE OWNER: if lane-av1ibc128arm is also
merged, take code+report from whichever lands first and drop the duplicate;
if it is not merged separately, this branch must carry it, because there is
no other copy.
- lanes/av1tilerows.report.md (38 changed): MINE and deliberate. The retraction
of the `cu_tx = 32 << ss_x` rule at that report's own origin (lines 265-281,
the section 8 "Recommendation") -- the one committed instance of the refuted
rule in the repo. Zero code, zero gate. It must land whenever this branch
lands or the rule stays re-derivable.
CONTENTION HANDED OVER, NOT PRE-RESOLVED: decode_intrabc_owned_rect's `let
(cw, ch) = (bw / 2, bh / 2);` -- the open cell this report lists at 2.3 and
5.0, line 16832 on this base -- is being fixed by another lane now. This branch
does not touch that line; it appears here only as a finding. Resolve at merge
there, where the witness lives.
RE-REBASE, and a second patch-base trap in the same family as r4's:
r4 nearly dropped the unmerged fix commit by patching from "my base"; r5 nearly
swept in all of main's wave-3 changes by patching from "the old main" 9b2f6c9d,
which produced an 18041-line patch touching crates/ec-aac and binary fixtures.
THE RULE, both times: the patch's left-hand side must be the commit this
branch's base actually is (git merge-base HEAD main) -- never a remembered
ancestor, never a self-describing "my base". Verify with `git apply --stat`
BEFORE applying; the wrong base names files you have never touched and is
invisible in --3way's exit status.
Correct patch: git diff 08f8ffb3 99f25b1f, 1894 lines, 7 files. Applied onto
ec4e9528:
git diff ec4e9528 --shortstat -> 7 files, 1671 insertions(+), 103 deletions(-)
identical in shape to the pre-rebase measurement, with per-file removed-line
counts unchanged (decode.rs 97, av1tilerows 6, rest 0). Main's move touched
NOTHING under crates/ec-av1/, so decode.rs is 56316 lines with
suppress_internal_lf_edges at 9277 and C2 at 43315 -- report section 5.0's
line-shift table is valid verbatim on this base, no adjustment. Silent-restore
check against this move: 0/0/0.
Re-run after touch: cargo check --all-targets clean; the new source-scan gate
1/1; gate_coverage 13/13; refusal_inventory 20/20; the 13-gate identity set
13/13. 47 tests, 0 failures, 4:4:4 gate present and green.test(av1): generalise the count-vacuity guard, and hand the 43-site ledger forwardAhmet Kaan Gümüş · 9c0e824
test(av1): generalise the count-vacuity guard, and hand the 43-site ledger forward Rebased onto main 97b4ee04. The preflight lane had independently landed the r5 pin work, with a BETTER shape -- `crate_pin` string literals are resolvable name-by-name and so never create the runtime-name blind spot my r5 form did. All three conflicted hunks resolved to main's side; the duplicate pin commit became a no-op. Diff vs main is now 3 files, +1215/-8, additions only. The r7 anchor asserted ONE literal at the fixed gate and would have gone quiet as other sites are fixed. It now asserts the general rule -- no decode-derived count (`pictures.len()` / `decoded.len()` / `frames.len()`) may reappear at that gate under any binding name -- plus an unpinned CEILING of 43, so a NEW site is an immediate red and the ceiling drops only when a site is actually fixed. The report carries the full 43-row ledger (a=1, b=37, c=4, ?=1) with bucket, candidate, spec_in_scope and a per-row disposition; names the one genuinely unclassified gate with its reason rather than guessing; records the three detection bugs that each produced a plausible clean output (a line index handed to a byte-offset walk; `assert_eq!` split by rustfmt; a `}` inside a format string counted as a closing brace); and states the class note so the next reader does not chase a nonexistent silent-pass bug -- a wrong count cannot pass silently, the helper's length assert fires, and the defect is a MISATTRIBUTED RED that `frame_count_diagnosis` now explains. gate_coverage 18, refusal_inventory 19, count_vacuity 2, pin_inventory 3, 0 warnings.
lanes/av1pins r7: the bucket table, the one fix, and 38 handed backAhmet Kaan Gümüş · 572204b
lanes/av1pins r7: the bucket table, the one fix, and 38 handed back Classification by reading, printed per row with its reason: 37 bucket-b (live aomenc), 1 bucket-a (disk), 4 bucket-c (probe), 1 unclassified with the reason. Fixed stream.rs:3895 to pass the ENCODE's frame count instead of our decode's length. Handed back the other 38 with a per-gate recipe rather than editing them on a heuristic that has now been wrong three times in this lane. Records a third offset bug: the sweep passed a line index to a byte-offset walk, so 40 of 44 rows read 'unclassified' as though it were a result.
test(av1): classify the count-vacuity sites by reading, and fix the first oneAhmet Kaan Gümüş · 862cfda
test(av1): classify the count-vacuity sites by reading, and fix the first one Main's r7 item 1, done by READING rather than by regex, and printed per site so the classification is auditable: `ROW <line> | <gate> | <count expr> | bucket | candidate | spec_in_scope | <reason> | pixel_comparing`, on every run. Buckets, computed from each gate's own body (string-aware extent): b 38 live aomenc encode -> the count belongs to the ENCODER a 1 stream read from disk -> the count belongs to the pin c 4 census/probe -> report only, never fix ? 1 unclassified, with the reason printed rather than a guess A third offset bug, same family as the two r6 caught: the sweep handed its body-walk a LINE index where a BYTE offset was required, so every body-dependent classification read "unclassified" -- 40 of 44. It is the third time in this lane that a line/byte or slice-boundary confusion has silently produced a plausible-looking clean result. FIXED: stream.rs:3895, `a_real_aomenc_segmentation_stream_with_map_inheritance_ decodes_pixel_exact`. `ffmpeg_decode_sequence(..., pictures.len())` now passes `ENCODED_FRAMES` (40), the count its own `encode_aomenc_stream(...)` call encodes. Our decode's length was the thing UNDER TEST, so using it as the oracle's expected count was circular. Gate green, 2.05 s, now comparing 40 frames against ffmpeg's 40 rather than a self-fulfilling number. The sweep's "known site" anchor MOVED with the fix: it used to assert `pictures.len()` was still present, which went red the moment the fix landed. It now asserts the opposite -- no site may pass `pictures.len()` again -- plus that the dominant `frames.len()` shape is still found, so the sweep cannot go quiet by either route. NOT DONE, and this is the honest part: 38 of the 39 fixable sites. The sweep prints a `candidate` (the numeric frame count in the gate's own encode call) and it resolves for exactly ONE gate; the rest encode inside loops or through per-gate helpers whose frame-count argument must be read per gate. I am handing those back with the method rather than editing 38 call sites on a guess, for the same reason r6 refused the 44-row table on an untrustworthy column. gate_coverage 15, refusal_inventory 15, count_vacuity 2, pin_inventory 3, and the fixed gate all green. 0 warnings. Lane-scoped CARGO_TARGET_DIR with touch-first.
lanes/av1pins r6: the frame-count diagnosis, the two defect classes, and the 44 reportedAhmet Kaan Gümüş · 23576c3
lanes/av1pins r6: the frame-count diagnosis, the two defect classes, and the 44 reported The helper change is the deliverable: the failure now names the caller's count, ffmpeg's actual count, the byte arithmetic, and says the disagreement is OURS if the count came from our own decode. That converts most of the 44 from confusing to diagnosable without touching a caller. count_vacuity keeps its floor and gains the misattributed-red vs silent-pass distinction so r4's mistake is not repeated. 61 sites, 17 spec-pinned, 44 not, 30 gates -- after fixing two detection bugs of mine (a rustfmt-split assert_eq! missed by one-line containment, and a brace walk that did not skip string literals). The pixel_comparing column is approximate and under-reports; three sampled gates it marks false all compare planes. Reported rather than tabulated, because a 44-row table on an untrustworthy column sends a lane after the wrong gates. Canonical branch is lane-av1pins5; av1pinslive is a stale duplicate at 2e5509e9 and can be dropped. No pins at risk: all 18 are committed.
test(av1): make the frame-count failure name the real cause, and classify the defectAhmet Kaan Gümüş · e107603
test(av1): make the frame-count failure name the real cause, and classify the defect
Main's r6 item 1, and it is the change that matters: a caller passing our own
decode's length as the oracle's expected count used to get
expected N 4:2:0 frames, ffmpeg said: <empty>
with an EMPTY tail, because ffmpeg runs at `-v error` and succeeds. The message
named ffmpeg, said nothing about where N came from, and sent the next reader
hunting ffmpeg for a count ffmpeg never chose. All three helpers
(`ffmpeg_decode_sequence`, `_10bit`, `_444`) now share `frame_count_diagnosis`,
which reports the caller's count, ffmpeg's ACTUAL count, the byte arithmetic, and
states that `frames` is the caller's assertion rather than a measurement -- and
that if it came from our own decode_stream(), the disagreement is OURS.
Measured, same probe as r5:
FRAME COUNT MISMATCH (4:2:0 192x128): the caller passed `frames=0`, ffmpeg
produced 1 frame(s) (36864 bytes, 0 byte(s) not a whole frame, at 36864 B/frame).
`frames` is the EXPECTED count the CALLER asserted -- it is NOT measured from
ffmpeg... the fix is on OUR side, not ffmpeg's. ffmpeg itself exited cleanly.
This converts most of the 44 from confusing to diagnosable WITHOUT touching a
single caller, which is the whole point: 44 edits of unclear value was the risk.
`count_vacuity` keeps the floor and gains the note r6 item 3 asked for, naming
the TWO defect classes so the next reader does not repeat r4's mistake:
MISATTRIBUTED RED (what these sites are) vs SILENT PASS (a different defect with
a different fix, which these are NOT).
Sweep result, after fixing two detection bugs of mine: 61 sites, 17 spec-pinned,
44 not, across 30 distinct gates. The line/gate/count columns are exact (a
line-based scan with no body slicing). The `pixel_comparing` column is
APPROXIMATE and under-reports -- I sampled three gates it marks `false` and all
three plainly compare planes (4-5 plane-compare lines each). Its body slice is a
hand-rolled brace walk, and this crate's compare idioms vary enough that the
heuristic is not trustworthy. I am reporting that rather than shipping a 44-row
table derived from it: the classification needs a reader, not a regex.
Sites FIXED at the source: none beyond r4's. The 44 are reported with gate and
count expression, and fixing them means deriving each count from the fixture or
from the encoder's own frame count -- per-gate work across 30 gates, which is the
next lane, not this commit.
gate_coverage 15 passed, refusal_inventory 15, count_vacuity 2, pin_inventory 3,
pinned_golden3 green. 0 warnings. `#[ignore]` unchanged at 34.lanes/av1pins r5: the scanner, the 14 recovered pins, and a correction to r4Ahmet Kaan Gümüş · 32ee762
lanes/av1pins r5: the scanner, the 14 recovered pins, and a correction to r4
pin_inventory resolves five shapes; the fifth is the one this fix itself
introduced (crate_pin(&format!("{n}.ext"))), which made the gate correct and
simultaneously invisible to the check watching it -- caught by the reads.len()
floor. Capability tests use synthetic source so they cannot rot when the fix
lands; two scanner bugs (a format! brace escape, and find(')') stopping at
len()'s own paren and yielding zero sites) were found that way.
count_vacuity enumerates 61 locally-derived oracle counts, 13 spec-pinned, 48 not.
Reported, not fixed: unbounded across gates this lane does not own.
CORRECTION to r4: this shape is a MISATTRIBUTED RED, not a vacuous pass. Measured
by calling ffmpeg_decode_sequence(..., 0) under catch_unwind -- it panics at
stream.rs:5110 blaming ffmpeg. r4's fix stands; its justification did not.test(av1): a pin scanner that sees every shape, and a count-vacuity sweepAhmet Kaan Gümüş · 6049140
test(av1): a pin scanner that sees every shape, and a count-vacuity sweep
The r3 inventory matched two single-name call shapes and reported "the
machine-local-pin population is zero". `pinned_warp_stream_decodes_pixel_exact`
read 14 pins through a directory `concat!` literal plus a runtime
`format!("{fixtures}/{n}.obu")`, matched neither, and was invisible to it.
`pin_inventory` resolves FIVE shapes: crate_pin("X"), pin_dir().join("X"),
a whole-file concat! literal, a directory literal + runtime name, and (e) the
shape THIS FIX INTRODUCED -- `crate_pin(&format!("{n}.ext"))`.
Shape (e) is the one worth reading. Rewriting the directory literal as a
committed-path lookup made the gate CORRECT and simultaneously INVISIBLE:
`crate_pin("` no longer appears, shape (a) found nothing, and the enumerator
reported a CLEAN tree while 14 pins were read. A false pass is worse than the
original gap -- the original at least showed up in a filesystem audit. It was
caught by the `reads.len() >= 20` floor in the invariant test, which is why that
floor is there. This is the general lesson: fixing a shape can blind the check
that was watching it, so the check needs a floor AND a capability test that does
not depend on the live tree.
Capability tests use SYNTHETIC source, not the live file -- asserting against
the live tree would rot the moment the fix lands, which is exactly how a scanner
loses its edge and reports a clean tree again. Two of the three bugs in this
scanner were found that way: a `format!` brace-escape that emitted `{n` instead
of `{n}`, and a `find(')')` that stopped at `len()`'s own paren and silently
yielded ZERO sites.
`count_vacuity` enumerates every site that passes a locally-derived count as the
oracle's expected frame count: 61 found, 13 spec-pinned by a prior assert, 48 not.
CORRECTION to r4, which reported this shape as a "vacuous pass" and told Main
so. MEASURED by calling `ffmpeg_decode_sequence(&stream, 192, 128, 0)` on a real
pinned stream under `catch_unwind`: it PANICS at `stream.rs:5110` with
"expected 0 4:2:0 frames, ffmpeg said: ". The helper asserts
`out.stdout.len() == frame_bytes * frames` unconditionally, so a wrong count
cannot pass silently -- it REDS, with a message blaming FFMPEG for a count OUR
decoder chose. The consequence is a MISATTRIBUTED RED, not a silent pass. r4's
FIX is still right (the count now comes from the fixture, so the red names the
real cause); the justification was wrong, and a sweep repeating it would send the
next reader after a bug that does not exist.
The 48 unpinned sites are REPORTED, not fixed: that is an unbounded change across
gates this lane does not own. The pin-class gates are all clean -- 0 unpinned
count sites in lr_sgr, check_pinned_warp_stream, golden3, sbpart and film-grain.
`pinned_warp_stream_decodes_pixel_exact` is live and green: 14 pins read from
`crates/ec-av1/fixtures/`, 1 passed 0 failed 0 ignored, 1.47 s.
`#[ignore]` 36 -> 35. gate_coverage 15 passed, refusal_inventory 15 passed.
Tests and test helpers only; the frames=0 probe was deleted before this commit.test(av1): commit the 14 warp/ii/rect pins — recovered originals, not re-encodesAhmet Kaan Gümüş · 58978d8
test(av1): commit the 14 warp/ii/rect pins — recovered originals, not re-encodes
Same defect as r3's four, one level deeper, found by a scanner that could not
see it. `pinned_warp_stream_decodes_pixel_exact` read its pins through a
DIRECTORY `concat!(env!("CARGO_MANIFEST_DIR"), "/../../fixtures")` literal plus a
runtime `format!("{fixtures}/{n}.obu")` over a name list. A scanner built on
single-name call shapes (`crate_pin("X")`, `pin_dir().join("X")`) matched neither,
so r3's "the machine-local-pin population is zero" was wrong: these 14 existed,
uncommitted, the whole time.
PROVENANCE: `recovered-original` for all 14. Fetched byte-for-byte from the runner
library (`~/gates/library/fixtures`), verified identical in three independent
locations (this worktree's staged copy, a local /tmp copy, and the runner library
itself) before committing — 14/14 identical, 0 mismatches. NOT regenerated: these
are the actual historical mismatch witnesses (a warp-mismatch, a warp-sample
clamp, interintra neighbour flakes, rect-strip flakes), and a re-encode would be a
different stream that must not be called the pin.
warp-mismatch.obu 621 B 24cca5beb41c1078f8109d8fa7e35f10cc1eefb67c6d1d1ea248a0b6842287bb
warp-flake-5.obu 602 B 1a99f9e5b257eed0ebae055441904d6c40962a26c0c2d63c3e051732569ff0a0
warp-flake-7.obu 723 B c2f8b93f5a59c56b1c4453ea789e0fc955557ed9b63c0e2cb8683fa483eff2b5
ii-flake-1.obu 579 B 700ded3e61e15bc3573d339d7fcc6ab94500adb796c30021094d354306662238
ii-flake-2.obu 581 B edc4ad3a6c00c6bc909c626fa24433ef31a88ed519ed57403f5373a160e590af
ii-flake-3.obu 670 B 994bfbdc952ecef18ae1560d5e7f121ba1000172e0bc2ad05e5b8cfaa17b15cb
ii-flake-5.obu 681 B f43fe77ea0e8ddd9c1524b642e09f935921cb0d00c4a60061a52d2260af38b9a
ii-flake-6.obu 632 B 84a1f60011dfdb77ede98ce95a25d247d270b0af1cff2c44aa1e6b311ca63dce
ii-flake-7.obu 654 B 61ba4d114aa55ebcf95ae691abbce3307146a2d969c0627ea3ceea02f3875574
ii-flake-8.obu 635 B f19d3d80ed564850cec02a26cfe7ab00e282afa7896821c535a117f5541bef5d
ii-flake-9.obu 690 B 0df4874737cc615258c0fdfb4bcb157c9a3663127cbf0a896af44d4deb83c653
rect-flake-1.obu 607 B a3869b5d2bd8a8bc5413e0d039d5e3375a48601cdeb2edb8d4b732402926d357
rect-flake-2.obu 601 B c780ddee1adf25cf63a6ba70ff449820f6f4474b23ef16615c1e843ad0c86adb
rect-flake-3.obu 572 B 3b23d204549b7bcfbd7166b1b3e2920580236c78de12e8f23f7fb64c1864f3e6
The gate now resolves them through `crate_pin` and its helper through
`require_pin`, so a missing pin is a hard failure naming the path and the
generator rather than a raw io panic. `.gitignore`'s
`!crates/*/fixtures/**` negation means a plain `git add` suffices — verified with
`git check-ignore -q` (returns 1, "not ignored") and by staging with no `-f`.
Committed on its own so the bytes are durable independently of the scanner and
gate-rewiring work that follows.lanes/av1merge-wave3d: section 8, the wave-3d suite stagingAhmet Kaan Gümüş · f383944
lanes/av1merge-wave3d: section 8, the wave-3d suite staging Staged on user@host-d by git archive + git add -A (1693 index entries, so the pin census sees tracked pins) + the root fixtures symlink (so the clip gates can run instead of failing loudly), launched with systemd-run carrying every EC_* and PATH explicitly. Hash-checked with the re-keyed comm, 496 = 496, plus a self-comparison control so an empty comm -3 cannot be mistaken for a broken one. The preflight and the pin-gate-audit self-test are already GREEN from that archive checkout: verify-fixture-library GREEN (299 rows) and the census line total=8 committed=21 uncommitted=0 ignored=0 assertless=0. The oracle rung checker cannot run on that host -- it has only ~/.cache/aom-oracle/build, no src/ -- which is provisioning, not a regression; the 14 ok / exit 0 figure stays a local measurement. Suite totals appended when the unit exits.
lanes/av1merge-wave3d: the wave reportAhmet Kaan Gümüş · 37dae75
lanes/av1merge-wave3d: the wave report Three parallel branches off f33b9d41 merged in order, zero conflicts: lane-av1clipprobe (b2c9f8a4), lane-ibc444c-r4 (10183674), lane-av1rungs17 (97b4ee04). lane-ibc444c and lane-ibc444c-r3 retired as stale duplicates. Both hazards Main named were checked rather than assumed: the r4 stream.rs delta is a single tail append with ZERO deletions, so a 3-way apply could not have resurrected removed lines; and every merge's file list is exactly the branch's own (3, 3, 4 files). The instrument script's diff is one hunk with zero deletions before and after the merge, which is what makes its clean auto-merge meaningful. Two integration fixes, both the same wave-3c-b step recurring: a generated artifact must be regenerated when the source it indexes moves (7a7b9665, then 149b2ad8). Main's tsv row-set check is empty after each; the unique path set is 159 before and after both. Red-before re-measured on the merged tree: reverting only the two arithmetic lines in decode_intrabc_rect reproduces luma sample 205264, the lane's figure. The clipprobe lane's three behavioural cases all measured: absent root + require env is RED naming both ways out, absent root alone is exactly one SKIP line then ok, present root under require envs still passes sample-exact on all three tile grids. The oracle rung checker is 14 ok / exit 0, superseding the 10-ok note.
rungs 16/17: script EC_PREDOUT8 (with mode=) and EC_PREDND onto current mainAhmet Kaan Gümüş · 079a7cd
rungs 16/17: script EC_PREDOUT8 (with mode=) and EC_PREDND onto current main
Reconstruction, not replay. lane-av1cmpaudit's commit 3d0001bc predates the HBD
repair block that has since landed on main, so re-applying it as a patch would
clobber that block; the rung bodies were re-applied to the CURRENT script instead.
The script diff is one insert-only hunk (@@ -1076,0 +1077,153 @@), zero deletions,
so the repair block provably survives.
What was actually absent from main is bigger than it looked: NOT just the script
half. `grep -c 'OUR_PRED x={x} y={y} plane=' crates/ec-av1/src/decode.rs` is 0 on
main, so the Rust twin field (RECON_PLANE / recon_plane() / PlaneGuard, `plane=` on
both OUR_PRED sites) is absent as well, and 3d0001bc is not an ancestor of main.
1. rung 16, EC_PREDOUT8 at BOTH 8-bit prediction sites in reconintra.c (the
non-directional early return and the directional / filter-intra tail), with
`mode=` on both. Install on a pristine file, and upgrade of the no-mode form the
oracle tree's git HEAD carries, so a rebuild reproduces the live tree.
2. rung 17, EC_PREDND, the 10/12-bit non-directional site. This is the one that
matters: rung 16 and the pre-existing EC_PREDOUT both sit after the is_hbd early
return, so without rung 17 a rebuilt oracle prints NOTHING on a high-bitdepth
stream -- the failure the rung exists to remove.
3. decode.rs gains `plane=` on both OUR_PRED sites so an EC_PREDOUT8/EC_PREDND vs
OUR_PRED diff can tell a luma/chroma disagreement from a same-plane one. Behind
the existing EC_PRED flag; RECON_PLANE is read only by that rung.
4. check-aom-oracle-rungs.sh now also restores reconintra.c to pristine before
deriving (it previously only restored decodeframe.c, so a rung living in
reconintra.c was never exercised at all), and asserts: rung 16 installed at both
sites, mode= on both, rung 17 installed once, mode= present, plus a round-trip of
the no-mode upgrade form. All ten pre-existing checks still print ok, exit 0.
Mutation-proved: deleting rung 17, dropping rung 16's directional site, and
dropping its mode= each red the corresponding assertion.
Evidence (one configure, two aomdec builds differing only in reconintra.c):
12-bit av112bit-key.obu -> 118 EC_PREDND lines with the rungs, 0 lines and empty
stderr without them. 8-bit ii-flake-1.obu -> 15 EC_PREDOUT8 lines, 15/15 with
mode=, 0 without. Decoded output byte-identical either way (md5 6b29cc50... /
482b5e04...). On ours, decode_probe prints 177 OUR_PRED lines, all 177 carrying
plane=, pairing field-for-field with the oracle's first three EC_PREDND lines.
cargo check -p ec-av1 --lib: clean, no warnings.scripts: the manifest again, after the ibc444c gate's two new pin sitesAhmet Kaan Gümüş · 9572640
scripts: the manifest again, after the ibc444c gate's two new pin sites
Same wave-3c-b step, second time in one wave: a branch that appends a test to
crates/ec-av1/src/stream.rs can add pin sites a `format!("fixtures/{file}")`
read cannot be seen by the generator's first pass, and the preflight's DRIFT
check then fails the tree.
297 -> 299 rows. This one is a pure tail append, so unlike the previous
regeneration there is NOT a single line-attribution shift: the whole diff is
the two new rows, which are real new coverage and are the ibc444c gate's own
two witnesses,
crates/ec-av1/fixtures/420_intrabc_rect4_witness.obu (stream.rs:48071)
crates/ec-av1/fixtures/444_intrabc_rect4_witness.obu (stream.rs:48069)
plus the host-state unnamed-literal count 191 -> 193, which the drift
comparison excludes by design.
$ EC_REQUIRE_FIXTURES=1 scripts/verify-fixture-library.sh
shape: 299 rows / resolve: 0 missing, 0 empty
pin gates: total=8 committed=21 uncommitted=0 ignored=0 assertless=0
invariant 4: census self-test passed; every pin-reading gate resolves
the clip gates resolve .../fixtures too (EC_FIXTURES first, else $ROOT/fixtures)
verify-fixture-library: GREEN (299 rows) exit 0
Unique path set 159 before and 159 after; Main's row-set check is empty;
regeneration is idempotent.scripts: the clipprobe manifest was stale on its own sourceAhmet Kaan Gümüş · 0d91363
scripts: the clipprobe manifest was stale on its own source
The lane shipped scripts/fixture-library.tsv at 295 rows, but this lane's own
generator, run over the source it committed, emits 297 -- so
`EC_REQUIRE_FIXTURES=1 scripts/verify-fixture-library.sh` is RED on DRIFT
immediately after the merge. Two kinds of staleness, both real:
* the whole crates/ec-av1/src/stream.rs column is off by ~2 lines
(committed stream.rs:8156, regenerated 8154) -- the artifact was generated
before the lane's last stream.rs edit shortened it;
* three rows are missing outright, the three `library_fixture::require(`
sites this lane added: stream.rs:6298, stream.rs:45101 and
library_fixture.rs:151.
The merge note said to take the lane's version on a conflict and re-run the
verifier; there was no conflict, and this is the same "regenerate on the merged
tree" step as the previous wave, so it lands as its own commit rather than
folded into the merge.
No coverage is lost. The unique PATH SET is 159 before and 159 after, and
Main's row-set check is empty:
$ diff <(grep -v '^#' scripts/fixture-library.tsv | cut -f1 | sort -u) \
<(regen | cut -f1 | sort -u)
(empty)
Regeneration is idempotent (regen(regen(tree)) == regen(tree)) and, measured
while I was here, invariant under the staging shape the lane worried about: a
symlinked fixture root and a real directory produce byte-identical output (297
rows each, diff empty), so the 295-vs-297 gap was staleness, not host shape.
$ EC_REQUIRE_FIXTURES=1 scripts/verify-fixture-library.sh
shape: 297 rows / resolve: 0 missing, 0 empty
invariant 1: positive control fired; no root-fixture pin path
invariant 2: every committed pin is tracked
invariant 3: negation present; no tracked pin shadowed
pin gates: total=8 committed=21 uncommitted=0 ignored=0 assertless=0
invariant 4: census self-test passed; every pin-reading gate resolves
the clip gates resolve .../fixtures too (EC_FIXTURES first, else $ROOT/fixtures)
verify-fixture-library: GREEN (297 rows) exit 04:4:4 intrabc rect chroma: size the plane block from ss_size_lookup, not a halvingAhmet Kaan Gümüş · e7a1a68
4:4:4 intrabc rect chroma: size the plane block from ss_size_lookup, not a halving
Rebuilt on f33b9d41 (wave3c-b). decode_intrabc_rect sized a rect intra-BC
block's chroma plane block with a hardcoded 4:2:0 halving. libaom decides that
shape twice and neither site halves: av1_get_max_uv_txsize (blockd.h) is
ss_size_lookup[bsize] -- bw >> ss_x by bh >> ss_y at (px >> ss_x, py >> ss_y)
-- and get_vartx_max_txsize (blockd.h:1447) reads that plane block as
max_txsize_rect_lookup[plane_bsize], with decode_token_recon_block
(decodeframe.c:972-1005) walking the units from it. At 4:4:4 an 8x16 luma
block's chroma plane block is 8x16 and libaom codes it as ONE TX_8X16; the
halving read that same footprint as ONE 4x8 rect unit. This also UNSCOPES
lane-whtshape's `if lossless` conditional, which named the lossy 4:4:4 cell as
another lane's open cell. Identical arithmetic at 4:2:0.
MEASURED by trace, not by reading. This commit adds EC_IBCTX to
read_coeffs_rect (w, h, skip_ctx, sign_ctx, entry/post STREAM BIT, call site
via #[track_caller], deliberately NO plane label), EC_IBCTX2 to read_coeffs,
and EC_IBCBLOCK to decode_intrabc_rect; pairs against the oracle's EC_ECDUMP_IN
by stream bit position. Caller and plane, previously unestablished:
oracle bit 6870 plane=0 mi=(92,104) tx=7 (TX_8X16) all_zero=0
ours bit 6885 8x16 skip_ctx=0 read_inter_plane_rect
oracle bit 6878 plane=1 mi=(92,104) tx=7 (TX_8X16) all_zero=1
ours bit 6893 4x8 skip_ctx=0 read_inter_plane_rect all_zero=0 <-- FORK
oracle bit 6879 plane=2 mi=(92,104) tx=7 (TX_8X16) all_zero=1
The txb_skip VALUE first disagrees one unit before the bit position does.
Reverting only the two arithmetic lines makes the gate's luma floor bite at
sample 205264 -- the exact ceiling lanes/av1444rect.report.md rounds 3-4
documented.
The gate doc states the CORRECTED finding, not the retracted one: the
coefficient ladder is NOT exact. Measured here with the 0-bit filter on BOTH
sides -- oracle 2395 all_zero reads (2359 with a real position), ours 3999
lines of which 1326 consumed bits, 71 interval matches. The chroma tail is a
second ENTROPY fork (~1069 reads missing), first at U/V (160, 80) = mi
(20, 40); the gate pins a measured per-plane exact prefix [307200, 51360,
51360] and says so. The doc also states that pairing must be by BIT INTERVAL,
not by index, and names the one-line oracle instrumentation that unblocks it
(aom_reader_tell after the aom_read_symbol at decodetxb.c:158).
Gate guard calls main's shared aomdec_available(NAME): ONE presence-check
shape in the crate, and with EC_AV1_REQUIRE_AOMDEC / EC_AV1_REQUIRE_AOMENC set a
missing aomdec FAILS instead of reporting green with the compare skipped.
A/B on a real tree -- `git diff main --stat` is exactly 2 files, +271/-20,
zero mu_chunk_order / read_intra_chroma_lossless churn, zero scripts/ touched;
both halves rebuilt in a lane-private target dir with touch before each run:
MAIN ONLY (f33b9d41) MAIN + THIS LANE
-- list 753 tests 754 tests (+1 = my gate)
444 ok. 36 passed; 0 failed ok. 37 passed; 0 failed
lossless ok. 25 passed; 0 failed ok. 25 passed; 0 failed
intrabc_rect ok. 6 passed; 0 failed ok. 7 passed; 0 failed
gate_coverage ok. 13 passed; 0 failed ok. 13 passed; 0 failed
refusal_inventory ok. 19 passed; 0 failed ok. 19 passed; 0 failed
Zero failures on either half; no test green on main is red here. Full batch:
a_444_intrabc_rect_chroma_plane_block ok 1 (4:2:0 twin byte-exact; luma
byte-exact 307200/307200; U and V byte-exact to sample 51360),
a_444_intrabc_rect4 ok 1, lossless_tx_tests ok 5, cargo check --all-targets 0
errors 0 warnings.
Straggler twins of the same halving are NAMED in the report, not merged:
decode.rs:16758 in decode_intrabc_owned_rect and decode.rs:19846 in
cfl_ac_q3_at. Neither is reached on this lane's witness, so fixing them would
be an unmeasured change to another path; lane-av1oraclepost's class sweep should
take them. The 3-way apply reported no conflict in either region.ec-av1: the clip gates stop skipping green on an absent fixture rootAhmet Kaan Gümüş · 1f91edd
ec-av1: the clip gates stop skipping green on an absent fixture root The 1080p multi-tile gate printed 'SKIP the 1080p tile round trip: no fixture' and libtest reported ok on any tree without the gitignored root fixtures/ -- which is every linked worktree. Eleven clip gates had that shape, and none of them had an env that made the absence RED, so EC_AV1_REQUIRE_FFMPEG=1 (a batch saying 'this gate must run') did not help. New crates/ec-av1/src/library_fixture.rs owns the real-library fixture root and the one presence probe. It resolves EC_FIXTURES FIRST, which is the root scripts/verify-fixture-library.sh validates: the preflight and the gates used to read two different directories, so pointing EC_FIXTURES at a library elsewhere printed 'resolve 0 missing' and GREEN while every clip gate skipped. It fails under EC_REQUIRE_FIXTURES / EC_AV1_REQUIRE_FFMPEG / EC_AV1_REQUIRE_AOMENC and otherwise prints exactly one SKIP line naming the resolved path and the three ways out. Every clip gate now routes through it, the per-clip 'missing' drops in the BD-rate and TPL probes included, and the preflight's last word is GREEN-WITH-FINDINGS rather than a bare GREEN over a reported mode-(i) finding. gen-fixture-library.sh learns the resolver's library-relative literal so RESOLVE keeps checking the clip rows instead of losing them the moment a gate stops spelling ../../fixtures.