forge
Explore
Log in

Don't you dare go Hollow

wip(part32): report -- gate green, workspace check clean, one pre-existing decode_block_rect64 defect exposed (out of scope, named in report)

Browse files at this commit

c3dde3f9a4414eb743668cbaa53ae3e732c2de10Ahmet Kaan GümüşParent: 6137e93
lanes/part32-r1.report.mdadded+117 -0
@@ -0,0 +1,117 @@
1+# lane-part32 r1 report
2+
3+## What landed
4+
5+`crates/ec-av1/src/decode.rs`: the INTRA 32x32 dispatch (key-frame tile path,
6+the one that previously hit `"a 32x32 partition type this decoder does not
7+code (value={part32})"`) now handles `PARTITION_HORZ_A` (4), `PARTITION_HORZ_B`
8+(5), `PARTITION_VERT_A` (6), `PARTITION_VERT_B` (7) -- mirrors cd6cb6d's INTER
9+AB arms exactly, using `decode_block` (square 16x16, `TxbSet::Luma16`/
10+`Chroma8`) for the two square sub-blocks and `decode_block_rect` (32x16 or
11+16x32) for the strip. The catch-all refusal is unchanged text but now only
12+reached for `PARTITION_HORZ_4`/`PARTITION_VERT_4` (values 8/9) -- narrowed by
13+construction, not by editing the string (still pinned as-is in
14+`refusal_inventory.rs`, no change needed there since the text is identical).
15+
16+Four new thread-local hit counters (`intra_horz_a_hits`/`intra_horz_b_hits`/
17+`intra_vert_a_hits`/`intra_vert_b_hits`), one per arm, mirroring
18+`PARTAB_HITS`'s pattern but split so a recipe that only ever fires one arm
19+can't hide behind a shared total.
20+
21+## Gate
22+
23+`crates/ec-av1/src/stream.rs::a_real_aomenc_intra_stream_with_ab_partitions_decodes_pixel_exact`
24+-- single key frame, 64x64, `mandelbrot` content (same recipe shape as the
25+existing `a_real_aomenc_intra_stream_with_tx_select_decodes_pixel_exact`),
26+`--min-partition-size=16 --max-partition-size=32` (same bound lane-partab used
27+to stay below the still-unlanded SB(64)-level AB territory), 40 attempts.
28+Forbids the four `value={4,5,6,7}` intra refusal strings once reached, hard-
29+asserts all four per-arm counters > 0.
30+
31+**PASSES**, `EC_AV1_REQUIRE_AOMENC=1` included:
32+
33+```
34+a_real_aomenc_intra_stream_with_ab_partitions_decodes_pixel_exact:
35+0 named refusals, 40 pixel-exact matches out of 40,
36+horz_a=34 horz_b=45 vert_a=15 vert_b=18
37+```
38+
39+EVIDENCE: `cargo test -p ec-av1 --lib a_real_aomenc_intra_stream_with_ab_partitions_decodes_pixel_exact -- --nocapture`
40+(with and without `EC_AV1_REQUIRE_AOMENC=1`) | both runs above | 40/40 pixel-exact, all 4 counters nonzero.
41+
42+## Suite: NOT fully green -- one PRE-EXISTING failure exposed, out of this
43+## lane's scope
44+
45+`cargo test -p ec-av1 --lib`: **264 passed, 1 failed** (19 ignored), 208s.
46+
47+Failure: `stream::tests::a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact`,
48+seed 42, first luma mismatch at (row=0, col=91), inside superblock (0,1)'s
49+`PARTITION_VERT`-at-64 arm (`decode_block_rect64`, lane-sbpart territory --
50+mode=DC_PRED, all_zero=1, off by one: got=80 want=81).
51+
52+Root-cause isolation done this round:
53+- Confirmed with `git checkout 21a71ec -- decode.rs stream.rs` (temporary,
54+ reverted) that this exact seed/recipe/byte-for-byte stream **already
55+ refused** on main at `"a 32x32 partition type this decoder does not code
56+ (value=4)"` -- inside superblock (1,1), which decodes strictly *after*
57+ superblock (0,1) in tile order. Entropy decoding is causal: nothing this
58+ lane touched can change how SB(0,1) is decoded, since SB(0,1) is decoded
59+ and its pixels finalized before the stream ever reaches the part32 AB
60+ symbol this lane added.
61+- This is the "refusal hides a defect" class already in the ledger
62+ (`refusal-hides-a-defect.md`): the sbpart gate's `matched > 0` assertion
63+ only ever checked pixels on attempts that decoded *end to end*; every
64+ attempt that hit a downstream refusal (including this exact seed, before
65+ this lane) never had its earlier SB(0,1) pixels compared at all. Lifting
66+ the part32 refusal let decode run to completion for seed 42, and the
67+ frame-level pixel compare then found a pre-existing `decode_block_rect64`
68+ defect for the first time.
69+- Not investigated further (turn budget): whatever's wrong in the
70+ 32x64/64x32 rect-64 corner-truncated intra path is `decode_block_rect64`'s
71+ own bug, unrelated to `decode_block`/`decode_block_rect` (this lane's
72+ functions) and to the AB dispatch. It belongs to lane-sbpart, not
73+ lane-part32.
74+
75+Per this repo's own rule ("Landing red ON THE LANE is fine -- I do the merges
76+to main and I never merge red"), HEAD is committed red with this failure
77+named. **Do not merge without either (a) fixing `decode_block_rect64`'s
78+DC-prediction/edge bug (a lane-sbpart-shaped charter, not part32's) or (b) an
79+explicit call that this newly-exposed defect is acceptable to carry
80+forward.**
81+
82+`cargo check --workspace --all-targets`: clean.
83+
84+## ReelC extract
85+
86+Cut `fixtures/part32/reelc-extract.obu` (gitignored) via
87+`ffmpeg -ss 600 -t 2 -c:v copy -an -f obu -bsf:v extract_extradata` from
88+`~/Videos/Films/reelc.mkv`.
89+`cargo run -p ec-av1 --example decode_probe -- fixtures/part32/reelc-extract.obu`:
90+
91+```
92+REFUSED: unsupported: AV1 decode_stream (a stream whose bit depth is not 8
93+(this decoder reconstructs into 8-bit planes))
94+```
95+
96+No longer stops at the part32 refusal (charter's predicted outcome: ReelC is
97+10-bit and hits the bit-depth wall first, per `his-av1-library-is-10-bit.md`).
98+
99+EVIDENCE: `cargo run -p ec-av1 --example decode_probe -- fixtures/part32/reelc-extract.obu`
100+| ran against a real 2s ReelC extract at ~10min mark | output above.
101+
102+## HEAD
103+
104+`69eeb6e` -- "wip(part32): intra 32x32 AB arms (HORZ_A/HORZ_B/VERT_A/VERT_B)
105+decode, gated 40/40 pixel-exact, all 4 hit counters fire"
106+
107+## Open
108+
109+- `HORZ_4`/`VERT_4` (values 8/9) not attempted this round; refusal still
110+ names them (unmodified string, now only reachable for those two values).
111+ Not reached by any gate recipe tried, reachability unknown.
112+- The `decode_block_rect64` DC-prediction/edge defect above is the actual
113+ blocker for a fully green suite. It is NOT part32's code and needs its own
114+ lane/charter (lane-sbpart shaped) to isolate and fix.
115+- `--cq-level=45`/`--enable-tx-size-search=0` etc kept identical to
116+ lane-partab's proven recipe; not swept for a lower-cq/higher-fidelity
117+ variant.