From a0632bbfb78e98301c84096519e8801d0e2ebdaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 28 Aug 2026 18:59:48 +0300 Subject: [PATCH] chore(av1): warp r5 report + r5b charter --- lanes/warp-r5.report.md | 32 ++++++++++++++++++++++++++++ lanes/warp-r5b.charter.md | 44 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 lanes/warp-r5.report.md create mode 100644 lanes/warp-r5b.charter.md diff --git a/lanes/warp-r5.report.md b/lanes/warp-r5.report.md new file mode 100644 index 00000000..3c4fa896 --- /dev/null +++ b/lanes/warp-r5.report.md @@ -0,0 +1,32 @@ +# lane-warp r5 report — HANDOFF at tool cap (written by orchestrator from the builder's delta; state committed 876b0b1) + +HANDOFF: extended partitions implemented, pin advanced from refusal to a frame-13 pixel mismatch. + +## (a) vs (b) determination: (b) — genuine capability gap +The refusal was real content: the pinned aomenc stream uses extended inter partition +types. HORZ_B, VERT_A, VERT_B implemented in the inter tile walk (decode.rs, +201 lines). +EVIDENCE: pin `pinned_warp_stream_decodes_pixel_exact` no longer refuses; decodes 24/24 +frames; orchestrator-rerun confirms fail moved to stream.rs:3501 `frame 13 luma vs ffmpeg` +(/tmp/claude-1000/warp-r5-pinverify.log). + +## Remaining defect (next round) +- Frame 13 luma mismatch, isolated to quadrant (1,1) = (32..64)x(32..64), INTRA path: + /tmp/warp_r5_trace.txt shows only 10 single-ref EC_TRACE blocks total, all in frames 1-2; + the 3 warp blocks are all in frames 1-2 which PASS. Frames 3+ print key-walk partition + traces only — so frame 13 is either a key frame or inter-all-intra; which walk prints + "TRACE partition" was still open at the cap. +- Warp-geometry hypothesis for frame 2 is DEAD (frame 2 passes). + +## Resume steps (from the builder's dying words) +1. `grep -n "TRACE partition" crates/ec-av1/src/decode.rs` — key walk ~3369 vs inter ~7304; + tells whether frame 13 is a key frame. +2. Instrument frame 13's failing quadrant: key frame → per-block intra trace (mode/ctx + px + stats) for (32..64)x(32..64); inter-all-intra → mirror the 5801 EC_TRACE into the + is_inter=0 branch at decode.rs:4923. +3. Root-cause quadrant-(1,1) luma diff, fix, pin twice green, then full + `cargo test -p ec-av1 --release --lib`. + +## Dispositions +- fix-now (next round r5b): frame-13 quadrant mismatch. +- done by orchestrator: WIP commit 876b0b1 + this report (builder's cap ate both). +- deferred(pin green): full lib-suite run. diff --git a/lanes/warp-r5b.charter.md b/lanes/warp-r5b.charter.md new file mode 100644 index 00000000..c7b70b15 --- /dev/null +++ b/lanes/warp-r5b.charter.md @@ -0,0 +1,44 @@ +# lane-warp r5b charter — continuation HANDOFF: frame-13 quadrant-(1,1) luma mismatch + +## Where you are +Worktree /home/user/Documents/Code/Rust/edith_codecs-warp, branch lane-warp @ 876b0b1. +Previous round (report: lanes/warp-r5.report.md): extended inter partitions HORZ_B/VERT_A/VERT_B +implemented; pin no longer refuses, decodes 24/24 frames, FAILS `frame 13 luma vs ffmpeg` +(stream.rs:3501). Do NOT revisit the partition work or anything about warp itself — +frames 1-2 hold ALL the warp blocks and they PASS. +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. + +## Known facts (do not re-derive) +- Mismatch is frame 13, luma, quadrant (1,1) = rows 32..64, cols 32..64 of the 64x64 frame. +- EC_AV1_TRACE run artifact from last round: /tmp/warp_r5_trace.txt (may be gone; regenerate + with EC_AV1_TRACE=1 if needed). Only 10 single-ref EC_TRACE blocks in the whole stream, all + frames 1-2. Frames 3+ printed key-walk partition traces only — frame 13 is either a KEY frame + or an inter frame decoding all-intra blocks; UNRESOLVED which. +- Fixture: fixtures/warp-mismatch.obu (aomenc seed 49, 64x64, 24 frames); oracle = ffmpeg + (the pin test compares against ffmpeg_decode_sequence itself). + +## Steps (from the previous builder's dying words) +1. `grep -n "TRACE partition" crates/ec-av1/src/decode.rs` — key walk ~3369 vs inter ~7304: + determines whether frames 3+ (incl. 13) go through the key/intra walk. +2. Instrument frame 13's failing quadrant: if key walk → per-block intra trace (mode/ctx + + pixel stats) for rows/cols 32..64; if inter-all-intra → mirror the EC_TRACE at ~decode.rs:5801 + into the is_inter=0 branch at ~decode.rs:4923. +3. Diff ours vs ffmpeg at frame 13 block granularity; find the FIRST wrong block; root-cause. + Classes to check first: context read from one cell (neighbour ctx gathered over the span?), + trial map not restored, CDF row held constant. If entropy desync suspected: count symbol + reads per block (class symbol-consumption-gap) before tracing one; compare msac RANGE not + tell() across decoders. +4. Fix. Pin twice green. Then full crate suite: `cargo test -p ec-av1 --release --lib` + (whole lib), paste final `test result:` line. + +## Done criteria +1. Pin PASSES twice (output excerpts in report). +2. Full ec-av1 lib suite green (final test-result line in report). +3. All work committed to lane-warp (`wip(av1): warp r5b ...`), compiling — commit even on HANDOFF. +4. REPORT FILE lanes/warp-r5b.report.md: verdict first (PASS or HANDOFF + exact resume state), + root cause named with trace evidence, what changed, dispositions. + +## Hard rules +≤60 tool calls (commit + report BEFORE the cap: at call ~50 stop investigating, commit, write +the report as HANDOFF). Never checkout files with uncommitted work. Never touch fixtures/ contents.