forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 973f04aef64e524dba8421c06fe058bd542e70a9Filtered to scripts/fixture-library.tsvClear filter

2026-09-30

rename the odd-height pin to match its state, and make three pin gates visible to the fixture censusAhmet Kaan Gümüş · 0cdc604
rename the odd-height pin to match its state, and make three pin gates visible to the fixture census

1. `420_oddheight_320x236_diverging.obu` -> `420_oddheight_320x236.obu` (git mv; the file's bytes are
   untouched, and its sha256/fnv pins are unchanged). It stopped diverging this batch, so the old name
   was a claim that had become false. The two comment sites that describe the historical divergence now
   say "then diverging" so the record is not silently rewritten.
2. Three gates built their pin path as `crate_pin(FILE)` with a `const FILE`, so the fixture census
   could not resolve the literal and reported all three as UNPROVEN (`FAIL [invariant 4]`):
   - the_counting_oracle_diff_attributes_planes_per_frame
   - the_pinned_420_oddheight_320x236_witness_decodes_byte_exact
   - a_420_lossless_alt_ref_1to4_strip_witness_is_byte_exact_in_decode_order
   Each now passes the literal through `crate_pin("...")`, which is the form the census can prove and the
   form every older pin gate in this file already used. `verify-fixture-library.sh` no longer reports
   invariant 4. The gates still assert size + fnv1a64 + byte-exactness; only the path expression moved.
3. `scripts/fixture-library.tsv` regenerated (line numbers shifted, plus the renamed path).

Still RED, and NOT from this commit: `verify-fixture-library.sh`'s invariant 2 (committed pins present
but not tracked by git) lists five scratch .obu files in the repo-root `fixtures/` directory -- which is
gitignored, and which is where `pin_dir()` resolves. It is RED identically on the pre-rename tree
(checked in a scratch worktree), so it is an environment/repo-shape issue for a separate batch, not a
regression here.
lane-av1444altref: FIX the 4:4:4 lossless alt-ref cell -- the 8x8 compound leaf warped LUMA only and left both CHROMA planes translational (0 wrong bytes now, was 317)Ahmet Kaan Gümüş · 97cb2e0
lane-av1444altref: FIX the 4:4:4 lossless alt-ref cell -- the 8x8 compound leaf warped LUMA only and left both CHROMA planes translational (0 wrong bytes now, was 317)

ROOT CAUSE, and it is not a rounding difference: decode_inter_block8's compound arm called
warp_affine_compound on the LUMA intermediates (49205 ref0, 49239 ref1) and left the chroma arms
(inter0_u/inter1_u/inter0_v/inter1_v) translational. libaom warps PER PLANE -- reconinter_template.inc:248
av1_init_warp_params + :262 build_one_inter_predictor -> reconinter.c:156 av1_warp_plane, both INSIDE
dec_build_inter_predictor's plane loop (decodeframe.c:701-768), i.e. run for every plane with that
plane's own subsampling/origin/extent -- with a per-plane bail at reconinter.c:61
'if (block_height < 8 || block_width < 8) return;'. So an 8x8 GLOBALMV (affine) compound leaf had its
chroma predicted by TRANSLATION from the block's top-left corner.

WHY THE SIGNATURE WAS +/-1 WITH A BOTTOM-RIGHT GRADIENT: a GLOBALMV block's MV is the affine's local
derivative at the block CENTRE, so a translation agrees with the warp at the centre and diverges
linearly with distance from it -- zero at the top-left, growing toward the bottom-right, 1-2 LSB on
this content. A wrong reference/weight would give a uniform offset and a rounding difference a +/-1
scatter with NO spatial gradient; the LUMA of the very same blocks was exact, which is the sharpest
refutation of the rounding class.

FIX: four chroma warp calls -- U ref0 (49333), U ref1 (49369), V ref0 (49432), V ref1 (49468) -- each
guarded by warp_plane_allowed(chroma_w, chroma_h) (mirrors reconinter.c:61) and passing the plane's
own origin/extent/subsampling.
SAME-CLASS SWEEP, and it found a latent defect: the 8x8 leaf's SINGLE-REF arm guarded its chroma warp
on WIDTH only (chroma_w >= 8), so a rect chroma block 8 wide and under 8 high (4:2:2 BLOCK_8X4) warped
where libaom bails on block_height < 8; now warp_plane_allowed(chroma_w, chroma_h) (50379). All four
inter arms now warp per plane.

RESULT: ll444_c 0 differing bytes (cmp -l vs aomdec --rawvideo empty), all 18 decode-order pictures 0 in
EC_AV1_PREFILT_WIDE_DUMP; parent 317 (0 Y / 147 U / 170 V), first diff decode picture 8.
PAIRING HOLE CLOSED: the oracle rung had no picture counter, so block identity was ambiguous -- the
oracle now carries aom_ec_pict_idx (decodeframe.c:89, bumped at :5493) and the rung (EC_CPRED,
decodeframe.c:691) prints picture + full block identity + every sample, moved to the end of the plane
loop to match the our-side rung (EC_CPRED, decode.rs:37184 in reconstruct_mc_rect); join is per PIXEL.
The 7 diff cells in decode picture 8 are all 8x8 blocks: mi(8,72), mi(20,28), mi(52,46) compound_idx=0
COMPOUND_WEDGE with GLOBALMV on BOTH refs, plus mi(20,30) the inter-intra leaf.
GATE: stream::tests::a_lossless_444_altref_leaf8_warp_chroma_is_byte_exact (stream.rs:8395) -- all 3
planes of all 16 displayed frames vs aomdec --rawvideo through the shared count_rawvideo_diffs
comparator (size mismatch is a failure, not a pass); arm 2 rotates ONE byte of the oracle's own output
(first U sample of frame 0) and requires the same comparator to report (0,1,0); reachability from
compound_warp_hits_8 delta > 0. Fixture committed byte for byte
(crates/ec-av1/fixtures/ll444_c_altref_leaf8_warp.obu, 512220 B, sha256
999a41d88a092840456d5e9de83590ab819a8a14686a694889e63c2258ff2bb8); scripts/fixture-library.tsv
regenerated.
MUTATION PROOF: with the fix reverted (4 chroma warp blocks deleted, the single-ref guard back to
chroma_w >= 8) the gate reds BY NAME -- left (0,147,170) right (0,0,0) at stream.rs:8437 -- and is green
again after restore. Verified by Main: cargo check clean; the new gate passes; lossless/444/422/warp/obmc
101 passed, 0 failed.

2026-09-29

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 0
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.
scripts: regenerate the fixture manifest for the merged treeAhmet Kaan Gümüş · 1e2fda6
scripts: regenerate the fixture manifest for the merged tree

Merging this wave shifted the `required-by` line numbers in
crates/ec-av1/src/stream.rs and crates/ec-av1/src/encode.rs, and added two
pin-reading sites, so the manifest lane-av1fixlib committed no longer
regenerates: `EC_REQUIRE_FIXTURES=1 scripts/verify-fixture-library.sh` failed
on DRIFT (31 changed rows, of which 2 are new rows, not line shifts):

  - ll444_intrabc_rect_l2.obu  (stream.rs:7248, sha f0de080e...)
  - ll444_128root_lossless.obu (stream.rs:7302, a third site; the committed
    manifest had 7010 and 7130 only)

Both fixtures are committed blobs (601adaa2 / b888abd1), so the rows are
missing from the manifest, not the pins missing from the tree.

    EC_REQUIRE_FIXTURES=1 scripts/verify-fixture-library.sh
      shape: 305 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
      verify-fixture-library: GREEN (305 rows)   exit 0

Regeneration is idempotent here (regen(regen(tree)) == regen(tree)) and the
only non-line-number delta is the two added rows plus the host-state literal
count 189 -> 191.
flip shape to fatal by default: both live violations are closedAhmet Kaan Gümüş · 59fe559
flip shape to fatal by default: both live violations are closed

Agent01-5's 2364d7a7 (merged) closed both crates/ec-av1 shape violations -- the
root pin reads crate_pin("lr-sgr-r7.obu"), and all fourteen warp pins are
committed under crates/ec-av1/fixtures/ and read through the pin helper, which
also un-ignores the gate. EC_REQUIRE_FIXTURES=1 scripts/verify-fixture-library.sh
is now GREEN (303 rows) with shape fatal by default: SHAPE=:-1. --strict and
EC_FIXTURE_SHAPE_STRICT=0 are the escape hatches.

Three defects this lane's own preflight had, each found by running it somewhere
other than its own tree, each the class the lane exists to prevent:
  - off-git the tracked column was recomputed as no-git for all 37 pin rows, so
    every host reported DRIFT with a good library;
  - invariant 1 could not see a comment -- a doc comment reproducing the
    forbidden literal to explain the fix read as a live violation for a round;
    it now strips comments before matching;
  - the census's single-name branch neither counted ignored nor noticed a
    crate_pin whose name is built at runtime, so such a gate vanished silently;
    it now counts ignored and emits a BADCALL row the preflight fails on.

Five modes re-measured after the flip: A 0, B 1, C 0, D 1, E 0 (was 1), and F --
a reintroduced concat! root-pin line -- 1 with no flag at all.
gen-fixture-library: an ellipsis placeholder is not a fixture pathAhmet Kaan Gümüş · d6a3cc0
gen-fixture-library: an ellipsis placeholder is not a fixture path

A merged-in literal "fixtures/..." in ec-av1/stream.rs became a manifest row
that resolves nowhere, so the preflight reported mode ii on its own tree. The
literal filter now drops any candidate containing '...'. Manifest 290 rows,
byte-identical on regeneration, verify GREEN.
preflight rework: path-free generated header, reproducible artifact, split exit statusAhmet Kaan Gümüş · e6d595d
preflight rework: path-free generated header, reproducible artifact, split exit status

Review findings, fixed:
1. The generated header carried the AUTHORING WORKTREE's absolute path. A
   generated artefact is exactly how a host path slips past the commit-message
   scan, so the header now says only 'FIXTURE ROOT: worktree-relative' and
   resolves through EC_FIXTURES at run time. No absolute path remains anywhere
   in scripts/fixture-library.tsv.
2. The tsv carried three '(named absent pin)' rows the generator never emits --
   the post-loop injection did, and it was already removed. Regenerated: zero
   such rows, and every one of the pins that row claimed (golden3, sbpart,
   ll444-lossless-key) is now present and tracked, as are the four recovered
   this session (golden4, golden6, golden7, lr-sgr-r7), which are committed
   here so the gate census reads committed=7 instead of committed=3.
   Regeneration is now byte-identical: cp tsv, regenerate, cmp -> IDENTICAL.
3. The host-dependent header is gone, so the drift check is no longer
   structurally red off the generating worktree; what legitimately differs is
   confined to the host-state columns (status, tracked, sha256) and the
   unresolved-literal count, all excluded from the row comparison.
4. ec-vorbis: the guard is NOT there and is not added. Its three fixture sites
   are the operator's own media library, which EC_REQUIRE_FIXTURES must not
   turn into a red fleet; the crate carries non-empty floors instead. The report
   now names the exact crate list instead of the wrong 'four crates'.
5. The 1054-line edit in ec-opus/../ec-h264/../ec-flac is GONE from this branch:
   the wave landed the same class fix in its own require_fixtures shape, and
   two conventions in one file is the defect this lane exists to prevent. Those
   three files are now main's version verbatim. What remains is the crates the
   wave did not touch: ec-aac (2 files), ec-flac/encode_matrix, ec-mp3,
   ec-vp9 (4), plus ec-vorbis floors.
6. lanes/av1fixlib.report.md now exists on this branch.

Exit status is split, deliberately: the LIBRARY verdict (mode i, mode ii,
drift) decides the exit under EC_REQUIRE_FIXTURES=1, and the four code-shape
invariants are reported with their own count and fail only under
EC_FIXTURE_SHAPE_STRICT=1. A shape violation is a defect in a file this
preflight does not own -- two live sites in crates/ec-av1 -- and a batch that
cannot start because another crate has two open lines helps nobody. Nothing is
hidden: the count is printed every run, and one env var away from fatal.
Default: GREEN 286 rows. Strict: RED (code-shape violations).
fixture-preflight: kill the fixture-absent silent-skip class, generate the fixture library manifestAhmet Kaan Gümüş · 60e2653
fixture-preflight: kill the fixture-absent silent-skip class, generate the fixture library manifest

A test that could not find its fixture printed SKIP and returned, so the suite
reported PASS having tested nothing. That cost a 3-hour suite red from a missing
repo-root fixtures/ dir and three hosts whose fixture libraries differed
silently. Two halves:

1. The sweep. One convention in every non-av1 test crate: probe first, assert
   LAST with an EC_REQUIRE_FIXTURES escape, return LAST -- never an early
   return, and never the probe folded into the same `if` as the escape (the
   `have_ffmpeg` short-circuit in crates/ec-av1/src/stream.rs). Converted
   ec-h264 (conformance + encode), ec-flac (xiph_vectors + encode_matrix),
   ec-opus conformance, ec-aac (oracle + sbr_real_library), ec-mp3
   encode_matrix, ec-vp9 (hbd_exact, inter_pixels_exact, subsampling_exact,
   scratch_interdump), plus non-empty floors on fixture loops that ended in a
   bare assert!(failed.is_empty()) over a possibly ZERO-iteration loop
   (jvt_full_sequence_bit_exact, corrupt_streams_never_panic,
   ns_per_macroblock_measurement, ec-aac synthetic_heaac_matrix, ec-mp3's 8-WAV
   corpus, ec-vorbis' three user-library sweeps).

   Host media directories are deliberately NOT gated: a personal corpus is not
   the committed library, and EC_REQUIRE_FIXTURES must not turn one operator's
   home into a red fleet. They route through a separate require_host_media
   helper. Tool-absence SKIPs (ffmpeg/x264/aomenc on PATH) stay a tool gate,
   out of scope.

2. The preflight. scripts/gen-fixture-library.sh GENERATES
   scripts/fixture-library.tsv (path, required-by file:line, provenance,
   status, sha256) and scripts/verify-fixture-library.sh checks SHAPE, RESOLVE
   (every path exists, every directory non-empty) and DRIFT (regenerating
   reproduces the committed file). It distinguishes the two failure modes: a
   missing fixture ROOT (mode i -- a linked worktree never has the gitignored
   fixtures/; fix the tree) from a missing path inside a present root (mode ii
   -- run the generator). It honours the same EC_REQUIRE_FIXTURES env: red when
   set, SKIP-shaped and exit 0 when not.

   The manifest states findings rather than hiding them: 52 committed pins
   whose only provenance is a gate comment, 3 known-absent pins kept as rows
   (ll444-lossless-key.obu, golden3-pin.obu, sbpart-pin.obu), and 4 committed
   pins no source literal references. Enumeration is grep-derived and therefore
   blind to runtime-assembled names (191 media literals resolve under no
   enumerated directory); those are covered as far as their parent directory,
   which must exist and be non-empty.

Proof (EC_NOMEMGUARD=1 only because the repo's memguard runner hit a stale
systemd scope):
  EC_REQUIRE_FIXTURES=1 ec-h264 conformance 23 passed / encode 12 passed
  EC_REQUIRE_FIXTURES=1 ec-flac xiph_vectors 4, encode_matrix 2 passed
  EC_REQUIRE_FIXTURES=1 ec-opus conformance 28 passed / 16 ignored
  EC_REQUIRE_FIXTURES=1 ec-aac oracle 14, ec-mp3 encode_matrix 5, ec-vorbis 8
  mv fixtures/video/h264-open-gop.mp4 -> RED: "EC_REQUIRE_FIXTURES=1 but
    fixture ... is absent -- regenerate with: scripts/gen-fixtures.sh"
  mv flac subset/ and opus testvector01.bit -> RED on both
  scripts/verify-fixture-library.sh: GREEN; with a fixture renamed and
    EC_REQUIRE_FIXTURES=1 -> RED mode ii listing the path; same rename with
    the env unset -> SKIP-shaped, exit 0; EC_FIXTURES=/nonexistent -> RED
    mode i.