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