forge
Explore
Log in

Don't you dare go Hollow

Warp r5d report + r5e charter

Browse files at this commit

385e0d9a3532a130ed3619b31a6ea9c8e69250a3Ahmet Kaan GümüşParent: 7efc3c5
  • chore
    • warp r5d report + r5e charter
Show full message
chore(av1): warp r5d report + r5e charter
lanes/warp-r5d.report.mdadded+25 -0
@@ -0,0 +1,25 @@
1+# lane-warp r5d report — HANDOFF (written by orchestrator from the builder's delta; WIP committed 0004e2e)
2+
3+HANDOFF: 89122b0 adjudicated PROVEN-RIGHT; HORZ_B strip mvstack query fixed (bw4=8,bh4=4,
4+spec-correct, keep); frame 13 unchanged — next round needs libaom inspect ground truth.
5+
6+## Facts (builder's delta, verbatim)
7+- decode.rs:5537 — HORZ_B strip mvstack query now bw4=8,bh4=4 (reject_residual gate); compiled;
8+ pin STILL fails frame 13; mvs byte-identical to r5c (strip 6,-8 leafA 6,8 leafB 6,-8).
9+- Pin diff map, quad (1,1): strip 418/512 wrong, leafA 171/256, leafB 256/256 FULLY wrong;
10+ first diff (31,40); deblock bleed 6+96 cells into Q01/Q10; Q00+Q10 blocks correct
11+ (ref=4 mapping fine).
12+- DEAD END: ffmpeg export_mvs — no AVMotionVector side data for AV1; use libaom inspect.
13+- DECISION: 89122b0 PROVEN-RIGHT — decode_inter_block `at` is 16px units (decode.rs:4858-9
14+ px = c*SUB); (r32*2+1, c32*2) = (3,2) 16px = mi(12,8) matches trace; no revert.
15+- /tmp/libaom-build has aomdec (generic C, CONFIG_INSPECTION=1); aomdec 3.13 lacks --inspect;
16+ build the examples/inspect target for a ground-truth per-block mv/ref dump.
17+- OPEN: frame 13 — entropy matches, ALL quad-(1,1) blocks pixel-wrong: either our mvstack
18+ winner differs from libaom (inspect decides) or MC internals; leafB filter=[0,0] fully
19+ wrong is the lead.
20+
21+## Dispositions
22+- done by orchestrator: WIP commit 0004e2e + this report (cap ate both again).
23+- fix-now (r5e): frame-13 root cause via libaom inspect ground truth.
24+- keep: bh4 fix — spec-correct regardless; may clear the NEXT mismatch once the primary
25+ cause is fixed.
lanes/warp-r5e.charter.mdadded+48 -0
@@ -0,0 +1,48 @@
1+# lane-warp r5e charter — frame-13 HORZ_B: build libaom inspect, diff per-block mv/ref, root-cause leaf B
2+
3+## Where you are
4+Worktree /home/user/Documents/Code/Rust/edith_codecs-warp, branch lane-warp @ 0004e2e (+ report
5+commit). Prior reports: lanes/warp-r5.report.md, r5c, r5d — read r5d FIRST, all facts there hold.
6+Build/test ONLY:
7+`env CARGO_TARGET_DIR=$HOME/.cache/cargo-target-warp cargo test -p ec-av1 --release --lib pinned_warp_stream_decodes_pixel_exact -- --ignored --nocapture`
8+Never plain workspace cargo test; never touch other worktrees; never push; never touch fixtures/
9+contents. C builds of libaom go in /tmp/libaom-build (exists, CONFIG_INSPECTION=1), NOT under any
10+cargo dir.
11+
12+## The one question this round answers
13+Frame 13, quadrant (1,1), HORZ_B (strip mv=(6,-8), leafA=(6,8), leafB=(6,-8), all ref=4=GOLDEN?):
14+our entropy matches (stream decodes; symbol counts fine) but every block's pixels are wrong,
15+leafB 256/256. EITHER our reconstructed mv/ref per block differs from libaom's (mv PREDICTION
16+defect — mvstack winner) OR mv/ref match and our MOTION COMPENSATION is wrong for these blocks
17+(subpel filter path, ref buffer, position). libaom inspect decides in one run.
18+
19+## Steps
20+1. Build the inspect tool: in /tmp/libaom-src cmake build dir /tmp/libaom-build,
21+ `make inspect` (examples/inspect.c; target name `inspect`). If the target is absent,
22+ reconfigure with `-DCONFIG_INSPECTION=1 -DENABLE_EXAMPLES=1`. Budget: <=8 calls. If it will
23+ not build in that budget, STOP and use plan B: aomdec patched printf at
24+ av1/decoder/decodeframe.c read_inter_block_mode_info (dump mi_row,mi_col,bsize,mv,ref) —
25+ still <=8 more calls.
26+2. Run inspect on fixtures/warp-mismatch.obu, extract frame 13 (decode order! count carefully —
27+ hidden frames may shift the index; match by comparing frame dimensions/count), quadrant
28+ (1,1) rows/cols 32..64: per-block bsize, mv, ref_frame, interp filter, motion_mode.
29+3. Diff against ours (EC_AV1_TRACE=1 run, /tmp/r5c_trace.txt shape). Decision table:
30+ - mv/ref DIFFER → mvstack winner defect: dump both candidate lists for the first differing
31+ block; classes av1-mvstack-refmv-corner (weights), context-read-from-one-cell (stamping),
32+ neighbour-votes-all-its-fields. Fix the stack build.
33+ - mv/ref MATCH → MC defect: leafB (bottom-right 16x16, filter=[0,0]) is the lead — check
34+ its MC source coordinates (16px vs mi confusion at the leaf call site was already one bug,
35+ class decision-at-wrong-granularity), ref slot mapping for GOLDEN, subpel filter selection
36+ for filter=[0,0], and OBMC/interintra application on leaves.
37+4. Fix. Pin twice green. Whole-crate `cargo test -p ec-av1 --release --lib`, paste final line.
38+
39+## Done criteria
40+1. The decision-table verdict (mv/ref differ vs match) stated WITH the two dumps excerpted.
41+2. Pin PASSES twice, full lib suite green — or HANDOFF with the verdict at minimum.
42+3. All work committed (`wip(av1): warp r5e ...`) — commit even on HANDOFF.
43+4. REPORT FILE lanes/warp-r5e.report.md, verdict FIRST line.
44+
45+## Hard rules
46+<=60 tool calls. AT CALL 40: commit whatever compiles + write the report as HANDOFF, then
47+continue only if calls remain. r5b/r5c/r5d ALL lost their commit+report to the cap — do not
48+be the fourth.