forge
Explore
Log in

Don't you dare go Hollow

Warp r5 report + r5b charter

Browse files at this commit

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