forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to scripts/check-aom-oracle-rungs.shClear filter

2026-09-30

lane-av1422ctattr: the 4:2:2 seed is INTRABC, not DC -- a category error corrected, and the rung that closes the blind spotAhmet Kaan Gümüş · 960e10e
lane-av1422ctattr: the 4:2:2 seed is INTRABC, not DC -- a category error corrected, and the rung that closes the blind spot

ATTRIBUTION (the deliverable): the seed's chroma U(116,160) belongs to BLOCK_8X4 leaves at mi(40,58), and
those leaves are INTRABC. av1_predict_intra_block is NEVER called for them, so no DC variant exists and
"which DC variant" was a category error. Path: av1/decoder/decodemv.c:936-939 read_intrabc_info, then
`if (is_intrabc_block(mbmi)) return;` -> decode_token_recon_block's inter arm -> predict_inter_block
(decodeframe.c:918, assert(is_intrabc_block) at :929) -> dec_build_inter_predictor (decodeframe.c:688) ->
av1_build_inter_predictor, which COPIES from the current frame at the DV.

Proof, printed rather than inferred: `EC_DP mi_row=40 mi_col=58 bsize=2 inter=1 chroma_ref=1 skip_txfm=1
bw=2 bh=1 planes=3 is_intrabc=1`, `EC_ISTEP mi_row=40 mi_col=58 name=intrabc val=1 rng=39264`,
`EC_DV mi_row=40 mi_col=58 dv_col=0 dv_row=-1024 rng=40116` -- and NO EC_PIB / EC_PREDOUT8 / EC_PRED line
at mi_row 40|41 mi_col 58 in frame 0, while the neighbouring group at mi(40,56) does print. Our own parse
is BIT-IDENTICAL to the oracle at the seed (same use_intrabc=1 rng=39264, same DV dv_row=-1024 rng=40116,
same rng on the skip symbols), so the divergence is purely RECONSTRUCTION.

RUNG 19, EC_PIB -- the blind spot this wave hit three times, now closed: av1_predict_intra_block has an
early `if (use_palette) { ...; return; }` plus two more early returns, so EC_PREDOUT8/EC_PREDND print only
on SOME of the paths that write a block; a region where no rung fires was un-attributable and the ladder
looked as if no block were there at all. EC_PIB prints the CALL IDENTITY before any early return
(mi_row, mi_col, plane, row_off, col_off, txw, txh, mode, use_palette, filter_intra, bsize, px, py, hbd),
in the same field order as EC_PREDOUT8/EC_PRED so the lines read as one, with `EC_PIBWIN` to isolate one
block. `use_palette=1` with no twin line IS a palette write.

Also added: EC_DP / EC_ISTEP(name=intrabc) / EC_DV rungs and their check-aom-oracle-rungs.sh assertions,
plus env-gated our-side traces in decode.rs for the same fields, so the next lane compares parse-for-parse
instead of by value.

2026-09-29

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.
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.
lanes: make a narrowing-rung regression loud, and check the derivationAhmet Kaan Gümüş · c755a39
lanes: make a narrowing-rung regression loud, and check the derivation

The depth fix made the four u8-narrowing rungs correct; the harm that caused
was their SILENCE -- a segfaulting rung leaves a 0-byte file, which downstream
reads as "the oracle has no data for this stage" and becomes a phantom stage
diff, or as evidence about the decoder. Two additions:

1. ec_dump_finish(): all four narrowing rungs now close through a byte-count
   check against the shape they claim (Y+U+V at one byte per sample, crop for
   PREFILT, mi-aligned for the other three) and abort() with one self-naming
   line on a mismatch. Non-vacuous: dropping PREFILT's last luma row makes
   aomdec exit 134 with
   EC_DUMP_ABORT rung=EC_AV1_PREFILT_DUMP bit_depth=12 hbd=1 expect=30720
   wrote=30560; restoring it gives exit 0 / 30720 B. Rung 12 keeps its own
   fclose (charter: do not change rung 12) and the rewriter cannot reach it --
   it keys on a rewritten ec_dump_narrow_row call in the block. Monochrome
   expects luma only; a failed fopen skips the block, so no config writes 0.

2. scripts/check-aom-oracle-rungs.sh: derives decodeframe.c from PRISTINE
   upstream (scratch copy, real tree never written) and asserts 0 legacy row
   loops, 12 narrow_row call sites, 4 finish call sites (one per rung), rung 12
   still converting and not narrowed, and that a second run is a no-op. Exit 0
   today; deleting the depth block from a copy of the script makes it print 7
   FAILs and exit 1 in under a second, with no build.

Emitted bytes unchanged: re-paired av112bit-key.obu (12-bit) and
palette_screen_witness_10bit.obu (10-bit), all four rungs oracle vs decoder,
all IDENTICAL.