forge
Explore
Log in

Don't you dare go Hollow

Lane-palette r6 charter -- run the bisect

Browse files at this commit

0e5435a43de0bb6c36eda2fafdbdf060be0562e2Ahmet Kaan GümüşParent: 2c35d53
  • docs
    • lane-palette r6 charter -- run the bisect
Show full message
docs(av1): lane-palette r6 charter -- run the bisect
lanes/palette-r6.charter.mdadded+54 -0
@@ -0,0 +1,54 @@
1+# lane-palette r6 — run the bisect
2+
3+At e5e8e6d. Read `lanes/palette-r5.report.md`.
4+
5+## Where you stand
6+r5 merged main into this branch and resolved all six `decode.rs` conflicts plus
7+`gate_coverage.rs` — the tree now carries main's CDEF, chroma and multi-tile
8+work, `NEVER_EXERCISED` is down to `enable-intrabc` alone, and two refusal
9+strings the merge surfaced are pinned. Suite 244/0. **No merge debt remains**,
10+so this round is entirely the bisect that r4 built the instrument for.
11+
12+## The one job
13+Palette-Y decodes its colours and index map, `palette_hits` fires, and the block
14+then refuses by name because the reconstructed pixels do not match libaom.
15+r3 checked `read_palette_colors_y`, `read_uniform`,
16+`palette_color_index_context` and the `PALETTE_Y_COLOR_INDEX` table
17+line-for-line against the oracle source — all match. So do not re-read tables
18+(class `worker-cap-spent-reading`). Use the instrument:
19+
20+1. r4's `EC_TRACE_PALETTE=1` rung (rungs 6/6b in
21+ `scripts/instrument-aom-oracle.sh`, aomdec already rebuilt on this box)
22+ prints, inside libaom's `decode_color_map_tokens`, per-pixel
23+ row/col/ctx/n/rng before and color_idx/rng after, plus the `map[0]` uniform
24+ read.
25+2. Add the matching trace inside our `decode_color_index_map`
26+ (decode.rs ~2182 before r5's merge; find it by name).
27+3. Regenerate the gate's exact fixture stream ONCE and run both traces over it.
28+4. Diff RANGES, never `tell()` (class `compare-range-not-tell`). Reference range
29+ unchanged where ours moves = we read a symbol it never wrote; theirs moves
30+ and ours does not = we skipped one (class `equal-range-means-unread`).
31+5. **If the ranges match to the end of the block, the reads are right** and the
32+ bug is in how the palette is applied — the `PALETTE_PRED` thread-local's
33+ lifetime, the buffer write, per-TU slicing, or plane mixing. That is the more
34+ likely outcome given r3's table audit, so check it early rather than last.
35+
36+Then remove the refusal IN THE SAME COMMIT as the gate that proves pixel
37+exactness — not before. Two sibling lanes lifted refusals on a green suite this
38+batch and one had a firing counter that was never incremented, so its own assert
39+was blind. A green suite cannot prove a path nothing takes.
40+
41+## Then
42+Palette UV, the rect-strip `palette_bsize_ctx` refusal (decode.rs ~1940), then
43+intrabc — which is the last entry on `gate_coverage.rs`'s `NEVER_EXERCISED`.
44+One commit each, each with its own hard-asserted firing count.
45+
46+Merge note: main is at 93d9510. Report every refusal string you add or remove,
47+verbatim.
48+
49+Hard rules: `CARGO_TARGET_DIR=$HOME/.cache/cargo-target-palette`; foreground
50+`nice -n 19 cargo ... -j4`; every `cargo test` a timeout >= 600000 ms. Sibling
51+worktrees have live agents — never build in or edit them, and do NOT create
52+additional worktrees. Never push, never merge into `main`. 75-turn cap, does not
53+reset: COMMIT AT EVERY GREEN STEP. End with `lanes/palette-r6.report.md`,
54+VERDICT on line 1.