Commits
Commits on
b07f07aeecbefcfa032bccd431e82dd62a52ac44Filtered to scripts/instrument-aom-oracle.shClear filter2026-08-30
fix(av1): palette-Y refuses by name instead of decoding to wrong pixelsAhmet Kaan Gümüş · 71d8f67
fix(av1): palette-Y refuses by name instead of decoding to wrong pixels r3's gate proved a real palette-Y block reconstructs to pixels that mismatch libaom despite every symbol read (colours, index-map wavefront, context, CDF table) checked line-for-line correct -- and left the gate SKIPping on that mismatch, which hid a real stream decoding to silently wrong pixels from the whole suite. decode.rs's palette_y_mode arm now returns a named refusal right after decoding the colours/map (palette_hits still fires, so the read path stays proven non-vacuous) instead of handing the wrong reconstruction to the caller; all the landed reconstruction code stays in place, unreachable until the pixel desync is found. The gate (a_real_aomenc_stream_with_palette_y_refuses_by_name, renamed from ..._decodes_pixel_exact) now hard-asserts that refusal fires with palette_hits > 0, instead of SKIPping on a mismatch. Also adds an EC_TRACE_PALETTE=1 rung to the aom-oracle instrumentation (decode_color_map_tokens's per-pixel range + av1_read_uniform's map[0]) for the next round's range-ladder bisect, per charter job 2. EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib: 235 passed, 0 failed, 17 ignored.
feat(av1): trace the oracle's intra key-frame mode info tooAhmet Kaan Gümüş · c8e7f7e
feat(av1): trace the oracle's intra key-frame mode info too The rect-strip desync could not be bisected because libaom's key-frame path had no traced symbol at all between the partition read and the first coefficient block -- EC_TRACE_MODE covered only decodemv.c's inter path. That gap is exactly where the defect hides. EC_TRACE_MODE now also wraps read_intra_frame_mode_info and prints the msac range either side, with the decoded mode, uv_mode, skip and tx size. Same wrapper-around-impl shape, same idempotence guard, still silent when unset -- verified emitting on a real stream and silent without the flag.
feat(av1): coefficient and mode-info range-ladder rungs for the oracleAhmet Kaan Gümüş · 3e41e62
feat(av1): coefficient and mode-info range-ladder rungs for the oracle Two lanes stalled on the same missing instrument: the oracle's aomdec traced only read_partition, so a desync inside a coefficient block or inside the mv-stack/DRL/mv reads had no ladder to walk. Partition granularity is far too coarse for either. EC_TRACE_COEFF=1 wraps av1_read_coeffs_txb and prints the msac range before and after every coefficient block, keyed by plane/row/col/tx_size. EC_TRACE_MODE=1 wraps read_inter_block_mode_info and prints the range either side of a block's mode info, with the resulting mode, both refs and mv0. Same wrapper-around-impl shape as the existing partition rung, same idempotence guard, and both are env-gated: an uninstrumented run emits nothing, verified. Building the instrument is the first subtask, not the excuse.
feat(av1): commit the oracle localization instrumentation (was lost with /tmp)Ahmet Kaan Gümüş · 6632737
feat(av1): commit the oracle localization instrumentation (was lost with /tmp)
scripts/instrument-aom-oracle.sh idempotently adds the two ladder rungs to the
oracle's aomdec, both env-gated so an uninstrumented run is unchanged:
EC_AV1_PREFILT_DUMP -> per-frame Y/U/V recon written after tile decode and
BEFORE loop filter/CDEF/LR (separates recon from filtering mismatches)
EC_TRACE=1 -> EC_PART/EC_PART_VAL with ctx, tell and msac RANGE per
partition symbol (the range ladder; compare ranges, never tell)
These existed only as hand edits in the reaped /tmp tree. Re-derived against
the pinned v3.13.3 source and verified byte-compatible with the pre-loss
instrument: EC_PART emits the identical rng values (frame 0 mi(0,0) bsize=9
rng=51744) and the dump is the same 4096+1024+1024 layout.
EVIDENCE: rect-flake-2.obu, oracle dump vs our EC_AV1_PREFILT_DUMP --
24/24 frames byte-identical.