forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 51841286120325db1c604fbf8aac3c5e53a42dcf

2026-09-29

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.
stream: 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.
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.
Merge commit 'c0727d64'Ahmet Kaan Gümüş · a1b35a5Browse files
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.
Merge branch 'lane-av1pins5'Ahmet Kaan Gümüş · 46d3571Browse files
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.
Merge branch 'lane-av1rungs17'Ahmet Kaan Gümüş · 8f6b16fBrowse files
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.
Merge branch 'lane-ibc444c-r4'Ahmet Kaan Gümüş · bda1f98Browse files
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
Merge branch 'lane-av1clipprobe'Ahmet Kaan Gümüş · 9e077c2Browse files
4: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.
lanes: av1clipprobe reportAhmet Kaan Gümüş · a5188cbBrowse files
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.
lanes/av1merge-wave3c-b: the wave reportAhmet Kaan Gümüş · b207cf9
lanes/av1merge-wave3c-b: the wave report

Four merges (b94bc532 loss444kf, 2b7caad3 refusalspan, 75bf8f2f fixlib,
be6449ad probes) landed with zero conflicts; three branches retired with
ancestry/ancestor evidence. Per-branch verification, the name-set delta by comm
both directions, and the three integration fixes -- two of which turned out to
be fixes for reds that do not exist, and one that was real (the fixture manifest
stopped regenerating on the merged tree).

Also records the two claims that did not survive checking (--ignored --list is
51 -> 49, not 51 -> 50; one staging step would have certified a suite full of
silent SKIPs) and the server run, which is still executing: its unit name, staging
path and the command to read its totals are in section 6, and no total is
guessed anywhere.
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.
Merge branch 'lane-av1probes'Ahmet Kaan Gümüş · aca5eb3Browse files
Merge branch 'lane-av1fixlib'Ahmet Kaan Gümüş · ce93bbfBrowse files
Merge branch 'lane-av1loss444kf'Ahmet Kaan Gümüş · 3bc9845Browse files
lane-av1refusalspan: a closer seen before the body opens is not oursAhmet Kaan Gümüş · eec2f7d
lane-av1refusalspan: a closer seen before the body opens is not ours

`depth -= 1` underflowed (debug panic, wrap in release) if the scan met a
`}` between the `fn` keyword and the body's `{`. Ignore it instead.
lane-av1refusalspan: a spinning scanner arm must fail the suite, not hang itAhmet Kaan Gümüş · ba38593
lane-av1refusalspan: a spinning scanner arm must fail the suite, not hang it

Found by mutation M3: replacing the string-literal skip with a plain
`continue` turns the boundary finder into an infinite loop, and the
boundary test hung for 600s instead of failing. Every arm now has to
advance the cursor, asserted at the top of the loop, so a future arm that
forgets to moves the failure from a hung suite to a failed one.
lanes: withdraw the suite-red flag on the three recipe gates, and record the ruleAhmet Kaan Gümüş · ae401f7
lanes: withdraw the suite-red flag on the three recipe gates, and record the rule

I flagged to Main that the wave had un-ignored three a_real_aomenc_* recipe
gates whose contract is "this feature must fire", and that they would red the
suite. That was read off two reports and one older tree, not measured. On the
base commit they PASS:

  cargo test -p ec-av1 --lib --release -- --test-threads=1 a_real_aomenc_
  test result: ok. 185 passed; 0 failed; 0 ignored; 0 measured; 564 filtered out
  finished in 833.35s

Individually, plainly and un-ignored:

  a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_and_delta_q...
    ok in 1.51 s -- the rewritten gate re-encodes a pinned 512x384 stream and
    byte-compares it; 48 delta_q symbol groups, 17 rect64_qidx_drift_hits, and a
    --deltaq-mode=0 control at 0 groups / 0 drift.
  a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact
    6 frames pixel-exact, intra 1:4 strips 64x16=0 16x64=0 32x8=8 8x32=11
    (--enable-1to4-partitions=0 control: 0/0/0/0), 35179 B
  ..._10bit: 32x8=12 8x32=7 (control 0/0/0/0), 34727 B

So the wave REWROTE them from blind 40-stream sweeps into feature-armed gates whose
feature fires, and the un-ignore is correct. No re-ignore; the flag is withdrawn.

The report now carries the rule this lane exercised and broke once: an #[ignore]
reason must name the UNBLOCK CONDITION; a gate asserting "this must fire" has
exactly one unblock, so un-ignoring it is a claim about the decoder, not a
tidy-up. The counter-example is in the same file: this lane violated it by
reporting a disposition it had not measured.
lane-av1refusalspan: bound a proving gate's body by its own closing braceAhmet Kaan Gümüş · cc885c2
lane-av1refusalspan: bound a proving gate's body by its own closing brace

The refusal inventory's anchor check needed a gate's own text, and the
window rule it used ("the body ends at the next `fn` at the same
indentation, or at end of file") is not a function boundary on this tree:
a top-level `#[test] fn` in decode.rs has its next same-indent `fn` tens
of thousands of lines away, so the window reached end of file constantly
and one row's 27,427-line "body" was satisfied by the CHROMA sibling's
string seven lines down.

`gate_body` now ends the slice at the brace that closes the gate's body,
found by a scan that walks Rust rather than lines: string, raw-string,
byte-string, char and lifetime forms, line comments and nestable block
comments are skipped, so a brace inside one cannot move the boundary.
Every failure mode is a FAILURE -- no definition, a definition that is
never closed, an ambiguous name, or a body that still carries another
same-indent `fn` -- and none of them widens the window.

Re-measured over real bodies: 26 rows quote the whole refusal string, 7
quote its leading clause, 0 match neither. Nine rows the previous
measurement counted as anchored were not (their anchor was neighbour
text), so the nine gates now name the refusal they prove and pin its
guard site through `pins_refusal`.

New tests: the boundary's own non-vacuity (neighbour isolation, a brace in
a literal, the last function in a file, an unclosed body), and the same
boundary exercised over all three real sources.
lanes: classify the ignored ec-av1 probes, un-ignore the 1080p tile gateAhmet Kaan Gümüş · 408e7cf
lanes: classify the ignored ec-av1 probes, un-ignore the 1080p tile gate

lane-av1probes. The release triage dispositioned the 15 process-global gates
and skipped the probe/benchmark set; that set was a black box. This lands the
classification and the three fixes it found.

Measured (release, one cargo invocation per test name, EC_AV1_REQUIRE_FFMPEG=1
EC_AV1_REQUIRE_AOMENC=1 EC_REQUIRE_FIXTURES=1, TMPDIR off the tmpfs) on server
host-a and on the workstation for the real-library rows: 38 ignored
non-gate items at base 745c60e7 -- 32 REAL DIAGNOSTIC VALUE, 5 STAGING, 1
ROBUST-RED, 0 DEAD WEIGHT, 0 decoder defects. Nothing in the set is dead; what
was broken is the REASON TEXT, which is what this commit fixes.

1. UN-IGNORE a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders.
   It was ignored only for its wall ("1080p encode: minutes") and is the only
   1080p arm in the ignored set that ASSERTS. Plain release run on this tree:
   1080p 2x1/2x2/4x2 tiles, 84488/84208/84685 bytes, all sample-exact, ok in
   27.39 s. The check is a per-frame first-differing-luma-sample comparison
   against ffmpeg, not a length or non-empty smoke. Both skippable halves route
   through the crate's EXISTING probes (h264_clip_frames -> have_ffmpeg() +
   clip.exists(), and have_ffmpeg() for the ffmpeg arm); no new presence-check
   shape. Ignore count 51 -> 50.

2. REASON REWRITES, 11 items whose reason misdescribed them. The wall
   benchmarks now carry their measured wall and their host floor
   (tile_search_wall_1080p TIMED OUT at 2400 s on a 4-core server and takes
   1243 s on 12 cores); filter_stage_wall_film says it measures the BARS
   fixture without EC_AV1_WALL_CLIP; the four bare #[ignore] scratch probes
   name their env vars, including the three geometry vars of
   scratch_isolate_pinned_mismatch whose 64/64/1 default is wrong for every
   real pin; sweep_rectx_recipes stops carrying a lane label;
   tpl_intra_denominator_histogram stops claiming film fixtures it never
   opens; the two prune_k sweeps say they are local-run because their clip
   paths are hard-coded /home/user absolutes; probe_split says it panics on
   its own lossless synthetic rows.

3. stage_timing_breakdown_inter printed "motion search (NEWMV) 17.82ms (of
   which interpolation 148.63ms)" -- a sub-number larger than its parent. Both
   timers were always real; the print's attribution was wrong. Bucket 0 times
   only the NEWMV/GLOBAL sub-search (stage_since(0) fires after
   find_best_new_mv and the global-MV search), and bucket 1 is EVERY
   mc::predict call including a committed block's final prediction, which runs
   outside any bucket-0 region. Bucket 1 is now its own top-level row with the
   overlap quantified and explicitly not added to the total; the residual is
   labelled for what it contains. The accounting closes: 107.27 + 157.56 =
   264.83 ms against a 264.82 ms wall.

No decoder logic changed: every source edit is a #[ignore] reason, a doc
comment, or the one eprintln block above.
lane-av1loss444kf: a sub-8x8 RECT leaf's chroma unit gets the LEAF's reachAhmet Kaan Gümüş · cecc096
lane-av1loss444kf: a sub-8x8 RECT leaf's chroma unit gets the LEAF's reach

The 4:4:4 lossless 256x256 key frame (109215 B, sha256 4563a01f17786000...)
decoded with 21 U + 28 V samples wrong over x 196..207 / y 200..203, luma
exact, entropy bit-locked over all 81933 symbol reads and its 12288
transform units at identical absolute (plane, x, y). The whole filter chain
is inert on both sides of that frame (the oracle's pre-deblock, post-deblock,
post-CDEF and final dumps are byte-identical to each other, and so are ours),
and on a lossless frame the pixel delta IS the prediction delta -- so the
residual, the dequant scale and the 4x4 WHT placement are exonerated by
arithmetic, not by search.

libaom asks has_bottom_left with the LEAF's bsize, the unit's (row_off,
col_off) and tx_size, and answers TRUE inside the left column whenever
`row_off + count < plane_bh_unit` -- the block's own next row, already
reconstructed. A 4x8 leaf's first TX_4X4 unit therefore has four real
bottom-left samples. sub8_leaf_chroma444 looked a standalone BLOCK_4X4 up at
the unit's own position instead, got false, and PlaneBuf::edges replicated
the last left sample across the edge's full reach: the unit predicted
D203/CFL from a fabricated edge. A from-scratch transcription of libaom's
z3 + edge filter + upsample reproduces all 16 oracle samples of each damaged
unit with the real column and all 16 of ours with the replicated one, and the
damage in the 2nd and 3rd blocks is that first wrong block's pixels read back
as their left edge.

Fix: Reach::of_tu over the leaf's own (bw, bh, col_off, row_off, tx) with the
block reach the function already computes -- at both lossless 4:4:4 arms, the
intra one and the intrabc one, which is what the 4:2:2 twin of this function
was already fixed to do (lane-av1-422kf2). 49 -> 0 on the 109215 B carrier and
on the independent 109909 B one.

Witness: a_lossless_444_sub8_rect_leaf_chroma_reach_decodes_the_key_frame_pixel_exact
-- live re-encode pinned by length and fnv1a64, 4:4:4 header asserted,
key frame byte-exact against aomdec --limit=1, and the new
sub8_chroma444_lossless_tu_reach_hits() counter (86 on this cell) proving the
fixed path fired. Red-before with only the two reach expressions reverted:
"differs from aomdec in 49 samples (first Some((1, 201, 200, 160, 159)))".

4:2:0 and 4:2:2 are structurally untouched (every call site sits behind
`chroma_444`), and a square 4x4 leaf is provably unchanged (of_tu falls
through to the block's own answer, which for a square leaf IS the old
lookup). -- lossless 444: 48/0. -- 420: 2/0. -- intrabc: 21/0. -- 422: 6/0.
lanes: wave-3c-a merge report -- two branches in, fixlib held, census sweepAhmet Kaan Gümüş · 90e4e6e
lanes: wave-3c-a merge report -- two branches in, fixlib held, census sweep

lm444loss-corr (879c11e2) and oraclehbd (8667050b) merged --no-ff, both
predicted clean by merge-tree and both clean in fact. One integration fix
followed: the new gate's bare `aomdec_path().is_file()` is what the wave-3b
oracle-presence scan exists to reject, and it reds on the merged tree
(6c1d78a6 routes it through aomdec_available).

fixlib is NOT merged -- Main's hold stands. Its acceptance line is measured
anyway: census total=8 committed=21 uncommitted=0 ignored=0 assertless=0 with
the prose restored, census self-test PASS, preflight GREEN (303 rows) exit 0.
lane-av1fixtureshape is verified subsumed by ancestry (c1cf1758 is the merge
base) -- a check that read NOT-SUBSUMED earlier in the wave against the older
tip, which is why it is re-run at merge time.

Name sets: 748 -> 749, comm clean in both directions, no duplicate
registrations, 29/0 on the gate_coverage|refusal_inventory|count_vacuity family.