forge
Explore
Log in

Don't you dare go Hollow

Warp r5c report (builder) + r5d charter

Browse files at this commit

f89ec61d18f7ad3cb302241c9b40dc192024fb1bAhmet Kaan GümüşParent: 714fd00
  • chore
    • warp r5c report (builder) + r5d charter
Show full message
chore(av1): warp r5c report (builder) + r5d charter
lanes/warp-r5d.charter.mdadded+54 -0
@@ -0,0 +1,54 @@
1+# lane-warp r5d charter — frame-13 HORZ_B mv-prediction mismatch (MiGrid stamping / mvstack corner probe)
2+
3+## Where you are
4+Worktree /home/user/Documents/Code/Rust/edith_codecs-warp, branch lane-warp @ d7d50f8 (or one
5+commit later). Build/test ONLY:
6+`env CARGO_TARGET_DIR=$HOME/.cache/cargo-target-warp cargo test -p ec-av1 --release --lib pinned_warp_stream_decodes_pixel_exact -- --ignored --nocapture`
7+Never plain workspace cargo test; never touch other worktrees; never push; never touch fixtures/.
8+
9+## Facts established across r5..r5c (do NOT re-derive; prior reports lanes/warp-r5.report.md, warp-r5c.report.md)
10+- Pin fixtures/warp-mismatch.obu: decodes 24/24, FAILS `frame 13 luma vs ffmpeg` (stream.rs:3501),
11+ quadrant (1,1) = rows/cols 32..64.
12+- Frame 13 quadrant (1,1) decodes through the INTER walk as PARTITION_HORZ_B: square 32x32 strip
13+ mv=(6,-8), leaves mv (6,8) and (6,-8) (/tmp/r5c_trace.txt:983-995 if still present; regenerate
14+ with EC_AV1_TRACE=1 otherwise). NOTE the leaf/square mv sign difference — if OUR decoded mv
15+ differs from libaom's here, the entropy path still matches (stream decodes to the end), so a
16+ wrong PREDICTED mv (mvstack) with compensating diff coding is possible only if... no: a wrong
17+ predicted mv changes the reconstructed mv and pixels but not symbol counts. That is exactly
18+ the observed shape (pixels wrong, no desync).
19+- mvstack.rs:533: the corner probe can SOLE-FILL the stack when row/col scans find nothing; the
20+ square's (6,-8) at quad (0,0)'s corner cell (7,7) is only reachable that way.
21+ scan_row/scan_col read correctly (mvstack.rs:377/450, start at mi_col/mi_row, col_shift=0 for
22+ offset -1).
23+- SUSPECT (r5c's open): the inter walk's MiGrid stamping writes wrong coordinate UNITS
24+ (mi vs 16px) for some blocks, so cells are missing at scan time and the corner probe
25+ sole-fills with the wrong candidate.
26+- 89122b0 (HORZ_B bottom-leaf coords trial): revert-bisected by orchestrator — IDENTICAL
27+ frame-13 failure with and without it. Not the cause. Its convention adjudication is STILL
28+ OWED: read decode_inter_block's position-param convention at its definition (~decode.rs:4774)
29+ and declare 89122b0 PROVEN-RIGHT or PROVEN-WRONG (revert it on the branch if wrong).
30+
31+## Steps
32+1. `grep -n "grid.set\|fn record" crates/ec-av1/src/decode.rs` + read MiGrid::get/set (mvstack.rs)
33+ — establish the ONE true coordinate unit of MiGrid, then audit every inter-walk stamp site
34+ (square arms, HORZ/VERT arms, HORZ_B/VERT_A/VERT_B arms, SPLIT leaves) against it.
35+ Class decision-at-wrong-granularity + class context-read-from-one-cell.
36+2. For frame 13's first wrong block: dump the mvstack candidate list ours-vs-expected (libaom
37+ source is at /tmp/libaom-src if still present). The refmv weights class
38+ ([[av1-mvstack-refmv-corner]]): rng-per-symbol/value TRACE at the stack build, not hand
39+ reasoning.
40+3. Fix the stamping (or the corner-probe gating). Pin twice green. Then whole-crate
41+ `cargo test -p ec-av1 --release --lib`; paste final `test result:` line.
42+4. Adjudicate 89122b0 (see above).
43+
44+## Done criteria
45+1. Pin PASSES twice (excerpts in report).
46+2. Full ec-av1 lib suite green (final test-result line).
47+3. All work committed to lane-warp (`wip(av1): warp r5d ...`), compiling — commit even on HANDOFF.
48+4. REPORT FILE lanes/warp-r5d.report.md, verdict FIRST line (PASS or HANDOFF + resume state),
49+ root cause with trace evidence, 89122b0 adjudication, dispositions.
50+
51+## Hard rules
52+≤60 tool calls. AT CALL 45: STOP investigating; commit whatever compiles, write the report as
53+HANDOFF, only then continue if calls remain. r5b and r5c both lost findings to the cap —
54+the report is worth more than five more probe runs.