Commits
Commits on
e6e5fdc604d47ef70dc15c8f895588a9e212866f2026-09-29
scripts: document the 1-byte-per-sample depth assumption on oracle dump rungs 1/6/7/15Ahmet Kaan Gümüş · e6e5fdc
scripts: document the 1-byte-per-sample depth assumption on oracle dump rungs 1/6/7/15 Comments only -- no emitted byte changes. Each of the four rungs that fwrite(..., 1, w, f) with no YV12_FLAG_HIGHBITDEPTH check now carries a DEPTH ASSUMPTION block naming the decoder-side dump it is byte-paired with (which narrows to u8 on purpose) and rung 12 EC_AV1_FINAL_DUMP as the depth-correct HBD alternative. The file header and the rung-12 summary point at those blocks so the trap is visible without opening a rung. Measured on the shared HBD oracle build with the committed av112bit-key.obu (160x128 4:2:0 12-bit, 30720 samples): rung 12 writes 61440 B (w*h*bps) while the four 1-byte rungs SIGSEGV inside fwrite (exit 139) and, where the write survives, would emit 30720 B -- exactly half, which reads like a truncated decode.
2026-09-25
ec-av1: ignore leaked GIT_DIR when the test runner locates the repoAhmet Kaan Gümüş · df78a6b
ec-av1: ignore leaked GIT_DIR when the test runner locates the repo git bisect run exports GIT_DIR. The runner's rev-parse then resolved the test package dir and exited 127.
2026-09-29
Merge lane-av1w3erefute: wave-3e refutation (3 PASS by mutation) + the unexercised-matcher class closedAhmet Kaan Gümüş · 44a0cfb
Merge lane-av1w3erefute: wave-3e refutation (3 PASS by mutation) + the unexercised-matcher class closed Nine dead matcher spellings deleted, the matcher tables single-sourced as pub consts, and a positive control (every_scanner_matcher_fires_on_a_known_site) that iterates those same consts so a matcher cannot be added without a control that must pass. Sweep unchanged at 60/17/43 -- the proof the deletions cost no coverage. C1's '30 fires / 2555904 samples' is recorded as author-reported and NOT reproduced; the verified claim is the weaker 38/38-green one.
test(av1): give every count-vacuity scanner matcher a positive controlAhmet Kaan Gümüş · 91a96ff
test(av1): give every count-vacuity scanner matcher a positive control
The wave-3e refutation of the pins5 guard turned up a class the sweep's own
floor could not see: an UNEXERCISED MATCHER IN A SOURCE SCANNER. The floor
(s.len() >= 40) and the unpinned ceiling (43) both catch a LOST shape.
Nothing caught a matcher that has never fired, so the scanner advertised
coverage it did not have.
Measured every matcher in count_vacuity against the real scan target:
ffmpeg_decode_sequence_444( -- NOT dead, my first read was wrong. It fires
on five stream.rs gates (7030, 7545, 7735, 8439, 11643) and produces no
count-vacuity SITE only because all five pass the spec const FRAMES rather
than a decode-derived .len(). KEPT, with that reason recorded at the const.
Nine spellings that fire on nothing anywhere in the crate -- DELETED, each
with grep evidence that the string occurs nowhere outside the matcher table,
so there is no hypothetical caller to name and no coverage is lost:
diagnostic (probe substring, 0 fns)
the_chroma_rect_gates, restore_gate,
cdef_gate, superres_gate,
grain_gate, sgate (encode helpers, 0 fn bodies)
NFRAMES, frames_expected (spec bindings, 0 fn bodies)
All tables are now single-sourced pub consts (CALLEES, PROBE_SUBSTRINGS,
ENC_HELPERS, FIXABLE_CANDS, AOMENC_LEAF, DISK_READ_LEAVES, PIN_WINDOW) and
every_scanner_matcher_fires_on_a_known_site iterates those same consts, so a
matcher cannot be added later without a control that has to pass. The brace
walk is extracted from sites() into fn_body_end so the control measures the
EXACT slice the scanner classifies with (control-and-measurement-drift).
Mutation: re-adding "sgate" to ENC_HELPERS reds the control --
the encode-helper matcher `sgate(` matches NO fn body in stream.rs -- it is
dead coverage (grep the crate: ...)
Restored, control ok.
The sweep is UNCHANGED, which is the proof the deletions cost nothing:
count-vacuity sweep: 60 site(s); 17 spec-pinned by a prior assert, 43 not
test result: ok. 3 passed; 0 failedMerge lane-chromahalvings-r5: EC_HALVSWEEP rungs + the 4:4:4 intrabc rect blocker reportAhmet Kaan Gümüş · ecb98e2
Merge lane-chromahalvings-r5: EC_HALVSWEEP rungs + the 4:4:4 intrabc rect blocker report The 4:4:4 lossy witness, its chroma-only red-before and the exact refusal string are recorded so the next lane starts warm. The fix needs a chroma TxbSet (ChromaRect32x64/ChromaRect64x32) this crate lacks, so the halving is left in place deliberately: turning a decoding stream into a refusal is a behaviour change with its own decision.
chroma halvings r5: rebased on 3b691e13; item (3) already fixed by C1, item (2) confirmed still deferredAhmet Kaan Gümüş · 26946b2
chroma halvings r5: rebased on 3b691e13; item (3) already fixed by C1, item (2) confirmed still deferred Two of the three chartered items change status on the rebase, and both changes are retractions in this lane's favour. ITEM (3) suppress_internal_lf_edges -- ALREADY FIXED by Agent09-4's C1. On 3b691e13 the function now takes fctx and reads ((w_mi * MI) >> ss_x(fctx)).max(4), ((h_mi * MI) >> ss_y(fctx)).max(4) which is exactly the fix r1/r2 chartered. The r1/r2 claim that this site is "format-blind today, a structural constraint" was true of f33b9d41 and is FALSE of current main. Retracted. ITEM (2) cfl_ac_q3_at -- still format-blind, now with a measured reason rather than an assumption. Post-rebase the signature is still fn cfl_ac_q3_at(px, py, bw, bh, sample) -> Vec<i32> with `let (cw, ch) = (bw / 2, bh / 2);` at 19957 and no fctx, so the subsampling cannot be derived inside the function. The witness is real (188 rung hits on the 4:4:4 set); what is missing is only the threading through the CfL call tree plus a CfL-specific pixel gate. Deferred with that reason. ITEM (1) -- the ChromaRect32x64 / ChromaRect64x32 coefficient sets and the ss-derived extent -- NOT STARTED. Witness committed, red-before measured, the refusal string exact, and the remaining work is real engineering rather than a swap: a CDF set per shape, its rect_scan, and the rect forms of base_ctx_rect/br_ctx_rect, following lane-inter4's precedent for the rect inter sets. Shipping a partial version would put a silent wrongness into the tree, which is the outcome this lane has been removing. Unblock order is in the report. decode_intra_sub8_leaf (decode.rs:45340, body 45340..46168) RECORDED as a named gap: it takes has_chroma: bool and has NO chroma_444 branch and NO chroma_422 branch -- a single chroma path, so at 4:4:4 it computes the 4:2:0 geometry and 4:2:2 has no path at all. Callers: decode.rs:44470 and decode.rs:46356, both passing has_chroma. Not implemented: the 4:2:2 lift needs the shape, but this lane has no 4:2:2 witness (the decoder refuses 4:2:2 by name at the sequence header), so a fix here would be unmeasured. The stale-binary tell is written into the report: a green gate result alongside a target that does not compile is a stale binary, and `git checkout <branch> -- <file>` is what produces it. It bit this lane twice in one turn. Any --no-run error that coincides with green gates invalidates every gate result in that turn.
lanes: wave-3e report final -- chromahalvings deferred, ref hazard closedAhmet Kaan Gümüş · d9e6745
lanes: wave-3e report final -- chromahalvings deferred, ref hazard closed Adds what the wave's second pass measured: the intra-in-inter family (7/0 with the oracle forced on) covering the 305-line decode.rs delta, the libtest pattern-semantics note (four positional filters are a union of substrings, not four module selectors -- 42 and 43 are per-module sums, the combined run is smaller), and the promotion of the cmp-byte-identical diff-vs-branch technique as the standing form of the foreign-file check: --stat proves the file SET, cmp on the two diffs is what proves the hunks. lane-chromahalvings is deferred(next wave): 69e80133 says "none fixed here" and is five merges stale, so there is no region to resolve yet. The decode_intrabc_owned_rect bw/2, bh/2 line stays untouched for its witness. Main has repointed lane-av1txsizeaudit to c0727d64; it is now an ancestor of main and the ref hazard section 4 documented is closed.
lanes: wave-3e report -- pins5 and txsizeaudit merged, chromahalvings heldAhmet Kaan Gümüş · e03cd90
lanes: wave-3e report -- pins5 and txsizeaudit merged, chromahalvings held 7ec417ad merges lane-av1pins5 (e1f78b8e), 5f39325d merges lane-av1txsizeaudit-r5 (c0727d64). Both predicted clean by merge-tree and both clean in fact; cargo check 0 warnings after each; the four guard families read 18/0, 20/0, 2/0, 3/0 on the merged tree with sources touched first. Shape checks: each merge's diff against its first parent is byte-identical to the branch delta, and the per-file removal counts match the branch one-for-one. Recorded: the ref `lane-av1txsizeaudit` points at dc80b6fa, a divergent pre-rebase line 67 files and -13617 lines away, not at the merged c0727d64 -- merging it by name would have conflicted and landed an ancient decode.rs. The sha was merged instead. lane-chromahalvings is held: 69e80133 says "none fixed here" and is five merges stale. decode_intrabc_owned_rect's bw/2, bh/2 region was left untouched for its witness.
lanes/av1txsizeaudit r5: re-rebase onto ec4e9528, declare provenance of the foreign workAhmet Kaan Gümüş · 4e9b008
lanes/av1txsizeaudit r5: re-rebase onto ec4e9528, declare provenance of the foreign work
PROVENANCE, declared before wave 3e rather than at merge time. This branch
carries TWO lanes' work, not one.
lane-av1txsizeaudit (this lane): the tx-size audit, the C1 fix + source-scan
gate, the av1tilerows retraction.
lane-av1ibc128arm, commit 4bfe8d8e "av1: 4:4:4 intra-in-inter 128-root
mu-chunk chroma as a per-unit walk": 279 lines of decode.rs, 192 of
stream.rs, 5 of examples/decode_probe.rs, 196 of lanes/av1ibc128arm.report.md
-- and it has NEVER been merged to main.
Three checks against main:
git merge-base --is-ancestor 4bfe8d8e main -> NO
git grep -c 'a_real_aomenc_444_intra_in_inter_128_root_codes_chroma_per_mu_chunk'
main -- crates/ec-av1/src/stream.rs -> 0
git grep -n 'luma_span = cu_tx * 2' main -- crates/ec-av1/src/decode.rs
-> main:...:43185
That last line is the proof of non-merge rather than a re-implementation: main
still carries the collapsed 4:2:0 arm verbatim -- `let luma_span = cu_tx * 2;`
-- which is exactly the line 4bfe8d8e deletes, and the string appears 0 times
on this branch. `git log --all -S"luma_span = cu_tx * 2"` finds only the two
lanes that CREATED the class (2050a065 lane-av1-ibc128chunk, 29550383
lane-av1-422bigblock) and the commit that removed it. `git grep -ln
"intra_in_inter_128_root" main -- lanes/` returns nothing, and
`git cat-file -e main:lanes/av1ibc128arm.report.md` fails -- so no other lane's
report claims it. Branch lane-av1ibc128arm still exists at 4bfe8d8e, so this is
not an orphan.
THE TWO FOREIGN REPORT FILES, individually:
- lanes/av1ibc128arm.report.md (+196): deliberately KEPT, and it belongs to
lane-av1ibc128arm, not to this lane. It is the only provenance record for
the 279-line decode.rs change and the 4:4:4 gate. Not cherry-pick residue:
it arrived with 4bfe8d8e whole. MERGE OWNER: if lane-av1ibc128arm is also
merged, take code+report from whichever lands first and drop the duplicate;
if it is not merged separately, this branch must carry it, because there is
no other copy.
- lanes/av1tilerows.report.md (38 changed): MINE and deliberate. The retraction
of the `cu_tx = 32 << ss_x` rule at that report's own origin (lines 265-281,
the section 8 "Recommendation") -- the one committed instance of the refuted
rule in the repo. Zero code, zero gate. It must land whenever this branch
lands or the rule stays re-derivable.
CONTENTION HANDED OVER, NOT PRE-RESOLVED: decode_intrabc_owned_rect's `let
(cw, ch) = (bw / 2, bh / 2);` -- the open cell this report lists at 2.3 and
5.0, line 16832 on this base -- is being fixed by another lane now. This branch
does not touch that line; it appears here only as a finding. Resolve at merge
there, where the witness lives.
RE-REBASE, and a second patch-base trap in the same family as r4's:
r4 nearly dropped the unmerged fix commit by patching from "my base"; r5 nearly
swept in all of main's wave-3 changes by patching from "the old main" 9b2f6c9d,
which produced an 18041-line patch touching crates/ec-aac and binary fixtures.
THE RULE, both times: the patch's left-hand side must be the commit this
branch's base actually is (git merge-base HEAD main) -- never a remembered
ancestor, never a self-describing "my base". Verify with `git apply --stat`
BEFORE applying; the wrong base names files you have never touched and is
invisible in --3way's exit status.
Correct patch: git diff 08f8ffb3 99f25b1f, 1894 lines, 7 files. Applied onto
ec4e9528:
git diff ec4e9528 --shortstat -> 7 files, 1671 insertions(+), 103 deletions(-)
identical in shape to the pre-rebase measurement, with per-file removed-line
counts unchanged (decode.rs 97, av1tilerows 6, rest 0). Main's move touched
NOTHING under crates/ec-av1/, so decode.rs is 56316 lines with
suppress_internal_lf_edges at 9277 and C2 at 43315 -- report section 5.0's
line-shift table is valid verbatim on this base, no adjustment. Silent-restore
check against this move: 0/0/0.
Re-run after touch: cargo check --all-targets clean; the new source-scan gate
1/1; gate_coverage 13/13; refusal_inventory 20/20; the 13-gate identity set
13/13. 47 tests, 0 failures, 4:4:4 gate present and green.test(av1): generalise the count-vacuity guard, and hand the 43-site ledger forwardAhmet Kaan Gümüş · 9c0e824
test(av1): generalise the count-vacuity guard, and hand the 43-site ledger forward Rebased onto main 97b4ee04. The preflight lane had independently landed the r5 pin work, with a BETTER shape -- `crate_pin` string literals are resolvable name-by-name and so never create the runtime-name blind spot my r5 form did. All three conflicted hunks resolved to main's side; the duplicate pin commit became a no-op. Diff vs main is now 3 files, +1215/-8, additions only. The r7 anchor asserted ONE literal at the fixed gate and would have gone quiet as other sites are fixed. It now asserts the general rule -- no decode-derived count (`pictures.len()` / `decoded.len()` / `frames.len()`) may reappear at that gate under any binding name -- plus an unpinned CEILING of 43, so a NEW site is an immediate red and the ceiling drops only when a site is actually fixed. The report carries the full 43-row ledger (a=1, b=37, c=4, ?=1) with bucket, candidate, spec_in_scope and a per-row disposition; names the one genuinely unclassified gate with its reason rather than guessing; records the three detection bugs that each produced a plausible clean output (a line index handed to a byte-offset walk; `assert_eq!` split by rustfmt; a `}` inside a format string counted as a closing brace); and states the class note so the next reader does not chase a nonexistent silent-pass bug -- a wrong count cannot pass silently, the helper's length assert fires, and the defect is a MISATTRIBUTED RED that `frame_count_diagnosis` now explains. gate_coverage 18, refusal_inventory 19, count_vacuity 2, pin_inventory 3, 0 warnings.
lanes/av1pins r7: the bucket table, the one fix, and 38 handed backAhmet Kaan Gümüş · 572204b
lanes/av1pins r7: the bucket table, the one fix, and 38 handed back Classification by reading, printed per row with its reason: 37 bucket-b (live aomenc), 1 bucket-a (disk), 4 bucket-c (probe), 1 unclassified with the reason. Fixed stream.rs:3895 to pass the ENCODE's frame count instead of our decode's length. Handed back the other 38 with a per-gate recipe rather than editing them on a heuristic that has now been wrong three times in this lane. Records a third offset bug: the sweep passed a line index to a byte-offset walk, so 40 of 44 rows read 'unclassified' as though it were a result.
test(av1): classify the count-vacuity sites by reading, and fix the first oneAhmet Kaan Gümüş · 862cfda
test(av1): classify the count-vacuity sites by reading, and fix the first one Main's r7 item 1, done by READING rather than by regex, and printed per site so the classification is auditable: `ROW <line> | <gate> | <count expr> | bucket | candidate | spec_in_scope | <reason> | pixel_comparing`, on every run. Buckets, computed from each gate's own body (string-aware extent): b 38 live aomenc encode -> the count belongs to the ENCODER a 1 stream read from disk -> the count belongs to the pin c 4 census/probe -> report only, never fix ? 1 unclassified, with the reason printed rather than a guess A third offset bug, same family as the two r6 caught: the sweep handed its body-walk a LINE index where a BYTE offset was required, so every body-dependent classification read "unclassified" -- 40 of 44. It is the third time in this lane that a line/byte or slice-boundary confusion has silently produced a plausible-looking clean result. FIXED: stream.rs:3895, `a_real_aomenc_segmentation_stream_with_map_inheritance_ decodes_pixel_exact`. `ffmpeg_decode_sequence(..., pictures.len())` now passes `ENCODED_FRAMES` (40), the count its own `encode_aomenc_stream(...)` call encodes. Our decode's length was the thing UNDER TEST, so using it as the oracle's expected count was circular. Gate green, 2.05 s, now comparing 40 frames against ffmpeg's 40 rather than a self-fulfilling number. The sweep's "known site" anchor MOVED with the fix: it used to assert `pictures.len()` was still present, which went red the moment the fix landed. It now asserts the opposite -- no site may pass `pictures.len()` again -- plus that the dominant `frames.len()` shape is still found, so the sweep cannot go quiet by either route. NOT DONE, and this is the honest part: 38 of the 39 fixable sites. The sweep prints a `candidate` (the numeric frame count in the gate's own encode call) and it resolves for exactly ONE gate; the rest encode inside loops or through per-gate helpers whose frame-count argument must be read per gate. I am handing those back with the method rather than editing 38 call sites on a guess, for the same reason r6 refused the 44-row table on an untrustworthy column. gate_coverage 15, refusal_inventory 15, count_vacuity 2, pin_inventory 3, and the fixed gate all green. 0 warnings. Lane-scoped CARGO_TARGET_DIR with touch-first.
lanes/av1pins r6: the frame-count diagnosis, the two defect classes, and the 44 reportedAhmet Kaan Gümüş · 23576c3
lanes/av1pins r6: the frame-count diagnosis, the two defect classes, and the 44 reported The helper change is the deliverable: the failure now names the caller's count, ffmpeg's actual count, the byte arithmetic, and says the disagreement is OURS if the count came from our own decode. That converts most of the 44 from confusing to diagnosable without touching a caller. count_vacuity keeps its floor and gains the misattributed-red vs silent-pass distinction so r4's mistake is not repeated. 61 sites, 17 spec-pinned, 44 not, 30 gates -- after fixing two detection bugs of mine (a rustfmt-split assert_eq! missed by one-line containment, and a brace walk that did not skip string literals). The pixel_comparing column is approximate and under-reports; three sampled gates it marks false all compare planes. Reported rather than tabulated, because a 44-row table on an untrustworthy column sends a lane after the wrong gates. Canonical branch is lane-av1pins5; av1pinslive is a stale duplicate at 2e5509e9 and can be dropped. No pins at risk: all 18 are committed.
test(av1): make the frame-count failure name the real cause, and classify the defectAhmet Kaan Gümüş · e107603
test(av1): make the frame-count failure name the real cause, and classify the defect
Main's r6 item 1, and it is the change that matters: a caller passing our own
decode's length as the oracle's expected count used to get
expected N 4:2:0 frames, ffmpeg said: <empty>
with an EMPTY tail, because ffmpeg runs at `-v error` and succeeds. The message
named ffmpeg, said nothing about where N came from, and sent the next reader
hunting ffmpeg for a count ffmpeg never chose. All three helpers
(`ffmpeg_decode_sequence`, `_10bit`, `_444`) now share `frame_count_diagnosis`,
which reports the caller's count, ffmpeg's ACTUAL count, the byte arithmetic, and
states that `frames` is the caller's assertion rather than a measurement -- and
that if it came from our own decode_stream(), the disagreement is OURS.
Measured, same probe as r5:
FRAME COUNT MISMATCH (4:2:0 192x128): the caller passed `frames=0`, ffmpeg
produced 1 frame(s) (36864 bytes, 0 byte(s) not a whole frame, at 36864 B/frame).
`frames` is the EXPECTED count the CALLER asserted -- it is NOT measured from
ffmpeg... the fix is on OUR side, not ffmpeg's. ffmpeg itself exited cleanly.
This converts most of the 44 from confusing to diagnosable WITHOUT touching a
single caller, which is the whole point: 44 edits of unclear value was the risk.
`count_vacuity` keeps the floor and gains the note r6 item 3 asked for, naming
the TWO defect classes so the next reader does not repeat r4's mistake:
MISATTRIBUTED RED (what these sites are) vs SILENT PASS (a different defect with
a different fix, which these are NOT).
Sweep result, after fixing two detection bugs of mine: 61 sites, 17 spec-pinned,
44 not, across 30 distinct gates. The line/gate/count columns are exact (a
line-based scan with no body slicing). The `pixel_comparing` column is
APPROXIMATE and under-reports -- I sampled three gates it marks `false` and all
three plainly compare planes (4-5 plane-compare lines each). Its body slice is a
hand-rolled brace walk, and this crate's compare idioms vary enough that the
heuristic is not trustworthy. I am reporting that rather than shipping a 44-row
table derived from it: the classification needs a reader, not a regex.
Sites FIXED at the source: none beyond r4's. The 44 are reported with gate and
count expression, and fixing them means deriving each count from the fixture or
from the encoder's own frame count -- per-gate work across 30 gates, which is the
next lane, not this commit.
gate_coverage 15 passed, refusal_inventory 15, count_vacuity 2, pin_inventory 3,
pinned_golden3 green. 0 warnings. `#[ignore]` unchanged at 34.lanes/av1pins r5: the scanner, the 14 recovered pins, and a correction to r4Ahmet Kaan Gümüş · 32ee762
lanes/av1pins r5: the scanner, the 14 recovered pins, and a correction to r4
pin_inventory resolves five shapes; the fifth is the one this fix itself
introduced (crate_pin(&format!("{n}.ext"))), which made the gate correct and
simultaneously invisible to the check watching it -- caught by the reads.len()
floor. Capability tests use synthetic source so they cannot rot when the fix
lands; two scanner bugs (a format! brace escape, and find(')') stopping at
len()'s own paren and yielding zero sites) were found that way.
count_vacuity enumerates 61 locally-derived oracle counts, 13 spec-pinned, 48 not.
Reported, not fixed: unbounded across gates this lane does not own.
CORRECTION to r4: this shape is a MISATTRIBUTED RED, not a vacuous pass. Measured
by calling ffmpeg_decode_sequence(..., 0) under catch_unwind -- it panics at
stream.rs:5110 blaming ffmpeg. r4's fix stands; its justification did not.test(av1): a pin scanner that sees every shape, and a count-vacuity sweepAhmet Kaan Gümüş · 6049140
test(av1): a pin scanner that sees every shape, and a count-vacuity sweep
The r3 inventory matched two single-name call shapes and reported "the
machine-local-pin population is zero". `pinned_warp_stream_decodes_pixel_exact`
read 14 pins through a directory `concat!` literal plus a runtime
`format!("{fixtures}/{n}.obu")`, matched neither, and was invisible to it.
`pin_inventory` resolves FIVE shapes: crate_pin("X"), pin_dir().join("X"),
a whole-file concat! literal, a directory literal + runtime name, and (e) the
shape THIS FIX INTRODUCED -- `crate_pin(&format!("{n}.ext"))`.
Shape (e) is the one worth reading. Rewriting the directory literal as a
committed-path lookup made the gate CORRECT and simultaneously INVISIBLE:
`crate_pin("` no longer appears, shape (a) found nothing, and the enumerator
reported a CLEAN tree while 14 pins were read. A false pass is worse than the
original gap -- the original at least showed up in a filesystem audit. It was
caught by the `reads.len() >= 20` floor in the invariant test, which is why that
floor is there. This is the general lesson: fixing a shape can blind the check
that was watching it, so the check needs a floor AND a capability test that does
not depend on the live tree.
Capability tests use SYNTHETIC source, not the live file -- asserting against
the live tree would rot the moment the fix lands, which is exactly how a scanner
loses its edge and reports a clean tree again. Two of the three bugs in this
scanner were found that way: a `format!` brace-escape that emitted `{n` instead
of `{n}`, and a `find(')')` that stopped at `len()`'s own paren and silently
yielded ZERO sites.
`count_vacuity` enumerates every site that passes a locally-derived count as the
oracle's expected frame count: 61 found, 13 spec-pinned by a prior assert, 48 not.
CORRECTION to r4, which reported this shape as a "vacuous pass" and told Main
so. MEASURED by calling `ffmpeg_decode_sequence(&stream, 192, 128, 0)` on a real
pinned stream under `catch_unwind`: it PANICS at `stream.rs:5110` with
"expected 0 4:2:0 frames, ffmpeg said: ". The helper asserts
`out.stdout.len() == frame_bytes * frames` unconditionally, so a wrong count
cannot pass silently -- it REDS, with a message blaming FFMPEG for a count OUR
decoder chose. The consequence is a MISATTRIBUTED RED, not a silent pass. r4's
FIX is still right (the count now comes from the fixture, so the red names the
real cause); the justification was wrong, and a sweep repeating it would send the
next reader after a bug that does not exist.
The 48 unpinned sites are REPORTED, not fixed: that is an unbounded change across
gates this lane does not own. The pin-class gates are all clean -- 0 unpinned
count sites in lr_sgr, check_pinned_warp_stream, golden3, sbpart and film-grain.
`pinned_warp_stream_decodes_pixel_exact` is live and green: 14 pins read from
`crates/ec-av1/fixtures/`, 1 passed 0 failed 0 ignored, 1.47 s.
`#[ignore]` 36 -> 35. gate_coverage 15 passed, refusal_inventory 15 passed.
Tests and test helpers only; the frames=0 probe was deleted before this commit.test(av1): commit the 14 warp/ii/rect pins — recovered originals, not re-encodesAhmet Kaan Gümüş · 58978d8
test(av1): commit the 14 warp/ii/rect pins — recovered originals, not re-encodes
Same defect as r3's four, one level deeper, found by a scanner that could not
see it. `pinned_warp_stream_decodes_pixel_exact` read its pins through a
DIRECTORY `concat!(env!("CARGO_MANIFEST_DIR"), "/../../fixtures")` literal plus a
runtime `format!("{fixtures}/{n}.obu")` over a name list. A scanner built on
single-name call shapes (`crate_pin("X")`, `pin_dir().join("X")`) matched neither,
so r3's "the machine-local-pin population is zero" was wrong: these 14 existed,
uncommitted, the whole time.
PROVENANCE: `recovered-original` for all 14. Fetched byte-for-byte from the runner
library (`~/gates/library/fixtures`), verified identical in three independent
locations (this worktree's staged copy, a local /tmp copy, and the runner library
itself) before committing — 14/14 identical, 0 mismatches. NOT regenerated: these
are the actual historical mismatch witnesses (a warp-mismatch, a warp-sample
clamp, interintra neighbour flakes, rect-strip flakes), and a re-encode would be a
different stream that must not be called the pin.
warp-mismatch.obu 621 B 24cca5beb41c1078f8109d8fa7e35f10cc1eefb67c6d1d1ea248a0b6842287bb
warp-flake-5.obu 602 B 1a99f9e5b257eed0ebae055441904d6c40962a26c0c2d63c3e051732569ff0a0
warp-flake-7.obu 723 B c2f8b93f5a59c56b1c4453ea789e0fc955557ed9b63c0e2cb8683fa483eff2b5
ii-flake-1.obu 579 B 700ded3e61e15bc3573d339d7fcc6ab94500adb796c30021094d354306662238
ii-flake-2.obu 581 B edc4ad3a6c00c6bc909c626fa24433ef31a88ed519ed57403f5373a160e590af
ii-flake-3.obu 670 B 994bfbdc952ecef18ae1560d5e7f121ba1000172e0bc2ad05e5b8cfaa17b15cb
ii-flake-5.obu 681 B f43fe77ea0e8ddd9c1524b642e09f935921cb0d00c4a60061a52d2260af38b9a
ii-flake-6.obu 632 B 84a1f60011dfdb77ede98ce95a25d247d270b0af1cff2c44aa1e6b311ca63dce
ii-flake-7.obu 654 B 61ba4d114aa55ebcf95ae691abbce3307146a2d969c0627ea3ceea02f3875574
ii-flake-8.obu 635 B f19d3d80ed564850cec02a26cfe7ab00e282afa7896821c535a117f5541bef5d
ii-flake-9.obu 690 B 0df4874737cc615258c0fdfb4bcb157c9a3663127cbf0a896af44d4deb83c653
rect-flake-1.obu 607 B a3869b5d2bd8a8bc5413e0d039d5e3375a48601cdeb2edb8d4b732402926d357
rect-flake-2.obu 601 B c780ddee1adf25cf63a6ba70ff449820f6f4474b23ef16615c1e843ad0c86adb
rect-flake-3.obu 572 B 3b23d204549b7bcfbd7166b1b3e2920580236c78de12e8f23f7fb64c1864f3e6
The gate now resolves them through `crate_pin` and its helper through
`require_pin`, so a missing pin is a hard failure naming the path and the
generator rather than a raw io panic. `.gitignore`'s
`!crates/*/fixtures/**` negation means a plain `git add` suffices — verified with
`git check-ignore -q` (returns 1, "not ignored") and by staging with no `-f`.
Committed on its own so the bytes are durable independently of the scanner and
gate-rewiring work that follows.lanes/av1merge-wave3d: section 8, the wave-3d suite stagingAhmet Kaan Gümüş · f383944
lanes/av1merge-wave3d: section 8, the wave-3d suite staging Staged on user@host-d by git archive + git add -A (1693 index entries, so the pin census sees tracked pins) + the root fixtures symlink (so the clip gates can run instead of failing loudly), launched with systemd-run carrying every EC_* and PATH explicitly. Hash-checked with the re-keyed comm, 496 = 496, plus a self-comparison control so an empty comm -3 cannot be mistaken for a broken one. The preflight and the pin-gate-audit self-test are already GREEN from that archive checkout: verify-fixture-library GREEN (299 rows) and the census line total=8 committed=21 uncommitted=0 ignored=0 assertless=0. The oracle rung checker cannot run on that host -- it has only ~/.cache/aom-oracle/build, no src/ -- which is provisioning, not a regression; the 14 ok / exit 0 figure stays a local measurement. Suite totals appended when the unit exits.
lanes/av1merge-wave3d: the wave reportAhmet Kaan Gümüş · 37dae75
lanes/av1merge-wave3d: the wave report Three parallel branches off f33b9d41 merged in order, zero conflicts: lane-av1clipprobe (b2c9f8a4), lane-ibc444c-r4 (10183674), lane-av1rungs17 (97b4ee04). lane-ibc444c and lane-ibc444c-r3 retired as stale duplicates. Both hazards Main named were checked rather than assumed: the r4 stream.rs delta is a single tail append with ZERO deletions, so a 3-way apply could not have resurrected removed lines; and every merge's file list is exactly the branch's own (3, 3, 4 files). The instrument script's diff is one hunk with zero deletions before and after the merge, which is what makes its clean auto-merge meaningful. Two integration fixes, both the same wave-3c-b step recurring: a generated artifact must be regenerated when the source it indexes moves (7a7b9665, then 149b2ad8). Main's tsv row-set check is empty after each; the unique path set is 159 before and after both. Red-before re-measured on the merged tree: reverting only the two arithmetic lines in decode_intrabc_rect reproduces luma sample 205264, the lane's figure. The clipprobe lane's three behavioural cases all measured: absent root + require env is RED naming both ways out, absent root alone is exactly one SKIP line then ok, present root under require envs still passes sample-exact on all three tile grids. The oracle rung checker is 14 ok / exit 0, superseding the 10-ok note.
rungs 16/17: script EC_PREDOUT8 (with mode=) and EC_PREDND onto current mainAhmet Kaan Gümüş · 079a7cd
rungs 16/17: script EC_PREDOUT8 (with mode=) and EC_PREDND onto current main
Reconstruction, not replay. lane-av1cmpaudit's commit 3d0001bc predates the HBD
repair block that has since landed on main, so re-applying it as a patch would
clobber that block; the rung bodies were re-applied to the CURRENT script instead.
The script diff is one insert-only hunk (@@ -1076,0 +1077,153 @@), zero deletions,
so the repair block provably survives.
What was actually absent from main is bigger than it looked: NOT just the script
half. `grep -c 'OUR_PRED x={x} y={y} plane=' crates/ec-av1/src/decode.rs` is 0 on
main, so the Rust twin field (RECON_PLANE / recon_plane() / PlaneGuard, `plane=` on
both OUR_PRED sites) is absent as well, and 3d0001bc is not an ancestor of main.
1. rung 16, EC_PREDOUT8 at BOTH 8-bit prediction sites in reconintra.c (the
non-directional early return and the directional / filter-intra tail), with
`mode=` on both. Install on a pristine file, and upgrade of the no-mode form the
oracle tree's git HEAD carries, so a rebuild reproduces the live tree.
2. rung 17, EC_PREDND, the 10/12-bit non-directional site. This is the one that
matters: rung 16 and the pre-existing EC_PREDOUT both sit after the is_hbd early
return, so without rung 17 a rebuilt oracle prints NOTHING on a high-bitdepth
stream -- the failure the rung exists to remove.
3. decode.rs gains `plane=` on both OUR_PRED sites so an EC_PREDOUT8/EC_PREDND vs
OUR_PRED diff can tell a luma/chroma disagreement from a same-plane one. Behind
the existing EC_PRED flag; RECON_PLANE is read only by that rung.
4. check-aom-oracle-rungs.sh now also restores reconintra.c to pristine before
deriving (it previously only restored decodeframe.c, so a rung living in
reconintra.c was never exercised at all), and asserts: rung 16 installed at both
sites, mode= on both, rung 17 installed once, mode= present, plus a round-trip of
the no-mode upgrade form. All ten pre-existing checks still print ok, exit 0.
Mutation-proved: deleting rung 17, dropping rung 16's directional site, and
dropping its mode= each red the corresponding assertion.
Evidence (one configure, two aomdec builds differing only in reconintra.c):
12-bit av112bit-key.obu -> 118 EC_PREDND lines with the rungs, 0 lines and empty
stderr without them. 8-bit ii-flake-1.obu -> 15 EC_PREDOUT8 lines, 15/15 with
mode=, 0 without. Decoded output byte-identical either way (md5 6b29cc50... /
482b5e04...). On ours, decode_probe prints 177 OUR_PRED lines, all 177 carrying
plane=, pairing field-for-field with the oracle's first three EC_PREDND lines.
cargo check -p ec-av1 --lib: clean, no warnings.scripts: the manifest again, after the ibc444c gate's two new pin sitesAhmet Kaan Gümüş · 9572640
scripts: the manifest again, after the ibc444c gate's two new pin sites
Same wave-3c-b step, second time in one wave: a branch that appends a test to
crates/ec-av1/src/stream.rs can add pin sites a `format!("fixtures/{file}")`
read cannot be seen by the generator's first pass, and the preflight's DRIFT
check then fails the tree.
297 -> 299 rows. This one is a pure tail append, so unlike the previous
regeneration there is NOT a single line-attribution shift: the whole diff is
the two new rows, which are real new coverage and are the ibc444c gate's own
two witnesses,
crates/ec-av1/fixtures/420_intrabc_rect4_witness.obu (stream.rs:48071)
crates/ec-av1/fixtures/444_intrabc_rect4_witness.obu (stream.rs:48069)
plus the host-state unnamed-literal count 191 -> 193, which the drift
comparison excludes by design.
$ EC_REQUIRE_FIXTURES=1 scripts/verify-fixture-library.sh
shape: 299 rows / resolve: 0 missing, 0 empty
pin gates: total=8 committed=21 uncommitted=0 ignored=0 assertless=0
invariant 4: census self-test passed; every pin-reading gate resolves
the clip gates resolve .../fixtures too (EC_FIXTURES first, else $ROOT/fixtures)
verify-fixture-library: GREEN (299 rows) exit 0
Unique path set 159 before and 159 after; Main's row-set check is empty;
regeneration is idempotent.scripts: the clipprobe manifest was stale on its own sourceAhmet Kaan Gümüş · 0d91363
scripts: the clipprobe manifest was stale on its own source
The lane shipped scripts/fixture-library.tsv at 295 rows, but this lane's own
generator, run over the source it committed, emits 297 -- so
`EC_REQUIRE_FIXTURES=1 scripts/verify-fixture-library.sh` is RED on DRIFT
immediately after the merge. Two kinds of staleness, both real:
* the whole crates/ec-av1/src/stream.rs column is off by ~2 lines
(committed stream.rs:8156, regenerated 8154) -- the artifact was generated
before the lane's last stream.rs edit shortened it;
* three rows are missing outright, the three `library_fixture::require(`
sites this lane added: stream.rs:6298, stream.rs:45101 and
library_fixture.rs:151.
The merge note said to take the lane's version on a conflict and re-run the
verifier; there was no conflict, and this is the same "regenerate on the merged
tree" step as the previous wave, so it lands as its own commit rather than
folded into the merge.
No coverage is lost. The unique PATH SET is 159 before and 159 after, and
Main's row-set check is empty:
$ diff <(grep -v '^#' scripts/fixture-library.tsv | cut -f1 | sort -u) \
<(regen | cut -f1 | sort -u)
(empty)
Regeneration is idempotent (regen(regen(tree)) == regen(tree)) and, measured
while I was here, invariant under the staging shape the lane worried about: a
symlinked fixture root and a real directory produce byte-identical output (297
rows each, diff empty), so the 295-vs-297 gap was staleness, not host shape.
$ EC_REQUIRE_FIXTURES=1 scripts/verify-fixture-library.sh
shape: 297 rows / resolve: 0 missing, 0 empty
invariant 1: positive control fired; no root-fixture pin path
invariant 2: every committed pin is tracked
invariant 3: negation present; no tracked pin shadowed
pin gates: total=8 committed=21 uncommitted=0 ignored=0 assertless=0
invariant 4: census self-test passed; every pin-reading gate resolves
the clip gates resolve .../fixtures too (EC_FIXTURES first, else $ROOT/fixtures)
verify-fixture-library: GREEN (297 rows) exit 04:4:4 intrabc rect chroma: size the plane block from ss_size_lookup, not a halvingAhmet Kaan Gümüş · e7a1a68
4:4:4 intrabc rect chroma: size the plane block from ss_size_lookup, not a halving
Rebuilt on f33b9d41 (wave3c-b). decode_intrabc_rect sized a rect intra-BC
block's chroma plane block with a hardcoded 4:2:0 halving. libaom decides that
shape twice and neither site halves: av1_get_max_uv_txsize (blockd.h) is
ss_size_lookup[bsize] -- bw >> ss_x by bh >> ss_y at (px >> ss_x, py >> ss_y)
-- and get_vartx_max_txsize (blockd.h:1447) reads that plane block as
max_txsize_rect_lookup[plane_bsize], with decode_token_recon_block
(decodeframe.c:972-1005) walking the units from it. At 4:4:4 an 8x16 luma
block's chroma plane block is 8x16 and libaom codes it as ONE TX_8X16; the
halving read that same footprint as ONE 4x8 rect unit. This also UNSCOPES
lane-whtshape's `if lossless` conditional, which named the lossy 4:4:4 cell as
another lane's open cell. Identical arithmetic at 4:2:0.
MEASURED by trace, not by reading. This commit adds EC_IBCTX to
read_coeffs_rect (w, h, skip_ctx, sign_ctx, entry/post STREAM BIT, call site
via #[track_caller], deliberately NO plane label), EC_IBCTX2 to read_coeffs,
and EC_IBCBLOCK to decode_intrabc_rect; pairs against the oracle's EC_ECDUMP_IN
by stream bit position. Caller and plane, previously unestablished:
oracle bit 6870 plane=0 mi=(92,104) tx=7 (TX_8X16) all_zero=0
ours bit 6885 8x16 skip_ctx=0 read_inter_plane_rect
oracle bit 6878 plane=1 mi=(92,104) tx=7 (TX_8X16) all_zero=1
ours bit 6893 4x8 skip_ctx=0 read_inter_plane_rect all_zero=0 <-- FORK
oracle bit 6879 plane=2 mi=(92,104) tx=7 (TX_8X16) all_zero=1
The txb_skip VALUE first disagrees one unit before the bit position does.
Reverting only the two arithmetic lines makes the gate's luma floor bite at
sample 205264 -- the exact ceiling lanes/av1444rect.report.md rounds 3-4
documented.
The gate doc states the CORRECTED finding, not the retracted one: the
coefficient ladder is NOT exact. Measured here with the 0-bit filter on BOTH
sides -- oracle 2395 all_zero reads (2359 with a real position), ours 3999
lines of which 1326 consumed bits, 71 interval matches. The chroma tail is a
second ENTROPY fork (~1069 reads missing), first at U/V (160, 80) = mi
(20, 40); the gate pins a measured per-plane exact prefix [307200, 51360,
51360] and says so. The doc also states that pairing must be by BIT INTERVAL,
not by index, and names the one-line oracle instrumentation that unblocks it
(aom_reader_tell after the aom_read_symbol at decodetxb.c:158).
Gate guard calls main's shared aomdec_available(NAME): ONE presence-check
shape in the crate, and with EC_AV1_REQUIRE_AOMDEC / EC_AV1_REQUIRE_AOMENC set a
missing aomdec FAILS instead of reporting green with the compare skipped.
A/B on a real tree -- `git diff main --stat` is exactly 2 files, +271/-20,
zero mu_chunk_order / read_intra_chroma_lossless churn, zero scripts/ touched;
both halves rebuilt in a lane-private target dir with touch before each run:
MAIN ONLY (f33b9d41) MAIN + THIS LANE
-- list 753 tests 754 tests (+1 = my gate)
444 ok. 36 passed; 0 failed ok. 37 passed; 0 failed
lossless ok. 25 passed; 0 failed ok. 25 passed; 0 failed
intrabc_rect ok. 6 passed; 0 failed ok. 7 passed; 0 failed
gate_coverage ok. 13 passed; 0 failed ok. 13 passed; 0 failed
refusal_inventory ok. 19 passed; 0 failed ok. 19 passed; 0 failed
Zero failures on either half; no test green on main is red here. Full batch:
a_444_intrabc_rect_chroma_plane_block ok 1 (4:2:0 twin byte-exact; luma
byte-exact 307200/307200; U and V byte-exact to sample 51360),
a_444_intrabc_rect4 ok 1, lossless_tx_tests ok 5, cargo check --all-targets 0
errors 0 warnings.
Straggler twins of the same halving are NAMED in the report, not merged:
decode.rs:16758 in decode_intrabc_owned_rect and decode.rs:19846 in
cfl_ac_q3_at. Neither is reached on this lane's witness, so fixing them would
be an unmeasured change to another path; lane-av1oraclepost's class sweep should
take them. The 3-way apply reported no conflict in either region.ec-av1: the clip gates stop skipping green on an absent fixture rootAhmet Kaan Gümüş · 1f91edd
ec-av1: the clip gates stop skipping green on an absent fixture root The 1080p multi-tile gate printed 'SKIP the 1080p tile round trip: no fixture' and libtest reported ok on any tree without the gitignored root fixtures/ -- which is every linked worktree. Eleven clip gates had that shape, and none of them had an env that made the absence RED, so EC_AV1_REQUIRE_FFMPEG=1 (a batch saying 'this gate must run') did not help. New crates/ec-av1/src/library_fixture.rs owns the real-library fixture root and the one presence probe. It resolves EC_FIXTURES FIRST, which is the root scripts/verify-fixture-library.sh validates: the preflight and the gates used to read two different directories, so pointing EC_FIXTURES at a library elsewhere printed 'resolve 0 missing' and GREEN while every clip gate skipped. It fails under EC_REQUIRE_FIXTURES / EC_AV1_REQUIRE_FFMPEG / EC_AV1_REQUIRE_AOMENC and otherwise prints exactly one SKIP line naming the resolved path and the three ways out. Every clip gate now routes through it, the per-clip 'missing' drops in the BD-rate and TPL probes included, and the preflight's last word is GREEN-WITH-FINDINGS rather than a bare GREEN over a reported mode-(i) finding. gen-fixture-library.sh learns the resolver's library-relative literal so RESOLVE keeps checking the clip rows instead of losing them the moment a gate stops spelling ../../fixtures.
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.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.lanes/av1refusalspan: the boundary rule, the re-measurement, and the four mutationsAhmet Kaan Gümüş · 8a8b3cfBrowse files
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.
wave-3c-a: route the lm444loss-corr gate's oracle arm through aomdec_availableAhmet Kaan Gümüş · d48c08a
wave-3c-a: route the lm444loss-corr gate's oracle arm through aomdec_available
The merged branch's new gate guarded its pixel compare with a bare
`aomdec_path().is_file()`. The oracle-presence scan merged in wave 3b
(7a865ee7) rejects exactly that shape outside the probe that owns it, and
reds on the merged tree:
gate_coverage::tests::no_tool_presence_check_outside_its_probe
1 bare tool presence check(s) outside a probe
stream.rs:7271: if aomdec_path().is_file() {
A bare is_file() skips the compare with NO env escape, so under
EC_AV1_REQUIRE_AOMENC=1 the gate would still report green with the oracle
compare never run -- the "unreadable gate is unproven, not clean" class.
`aomdec_available(NAME)` carries the env-escape assertion and the SKIP
line, so the hand-rolled else-arm is dropped rather than kept alongside.
cargo test -p ec-av1 --lib -- gate_coverage refusal_inventory count_vacuity
29 passed; 0 failedlanes: the shared oracle gets the depth-correct, byte-checked rungs (zero-window swap)Ahmet Kaan Gümüş · 4b63be1
lanes: the shared oracle gets the depth-correct, byte-checked rungs (zero-window swap) The private copy was never the problem: ~/.cache/aom-oracle shipped the same four broken rungs, so every lane that ever paired against them on a 10/12-bit stream got a 0-byte file -- which reads downstream as "the oracle has no data for this stage" and becomes a phantom stage diff. Swapped with no window, because ps showed a live lane (cargo-target-av1lm444corr, a_10bit_film_frames_with_frame_edge_mv_clamping...) exec'ing the shared aomenc at that moment: hardlink backup aomdec.prefix-20260929-054321 + source copy in revert/, source edit (a file no running process reads), ninja libaom.a only, the link command re-run with -o to a scratch path, the new binary verified fully OFF-PATH, then one mv (inode 177294570 -> 177592760). Revert: mv ~/.cache/aom-oracle/build/aomdec.prefix-20260929-054321 ~/.cache/aom-oracle/build/aomdec git -C ~/.cache/aom-oracle/src checkout -- av1/decoder/decodeframe.c Verified ON the shared binary after the flip: five rungs exit 0 on av112bit-key.obu (12-bit, 30720 B each; rung 12 61440 B) and palette_screen_witness_10bit.obu (10-bit, 73728 B each; rung 12 147456 B); 8/8 byte-identical to the decoder's as u8 rows; 8-bit no-op vs the backed-up OLD binary 10/10 IDENTICAL (32768 B and 6144 B). Loudness proven live in the shared tree by a mutant also linked off-path (12-bit: exit 134, expect=30720 wrote=30560; 8-bit: expect=6144 wrote=6080). check-aom-oracle-rungs.sh against the shared source: 10 ok, exit 0. Naming: no lane in today's waves (3a: av1cmpaudit/av1leftwit/av1lossy128x96/ av1pinslive/av1txsearch; 3b: av1rawhelper/av1oracleskip) paired against these four rungs -- cmpaudit records them as having no in-repo consumer, rawhelper names PREFILT only as dump_yuv's documented contract and gates on rung 12, oracleskip is the aomenc-SKIP class. No test anywhere sets those env vars, so no automated gate could rest on a 0-byte dump. Historical users were 8-bit lanes, where the old rungs were correct.