forge
Explore
Log in

Don't you dare go Hollow

Lane-palette r5 charter -- merge main and resolve, then the bisect

Browse files at this commit

51844cc00ed4521c001951c15987a692c7a1bd67Ahmet Kaan GümüşParent: f1654a3
  • docs
    • lane-palette r5 charter -- merge main and resolve, then the bisect
Show full message
docs(av1): lane-palette r5 charter -- merge main and resolve, then the bisect
lanes/palette-r5.charter.mdadded+48 -0
@@ -0,0 +1,48 @@
1+# lane-palette r5 — merge main, then run the bisect
2+
3+At 323456a. Read `lanes/palette-r4.report.md`.
4+
5+## Job 1 — merge `main` into this branch and resolve, before anything else
6+`git merge main` from this worktree. It conflicts in six places in `decode.rs`
7+(main has since landed multi-tile key-frame decode, the chroma smooth/paeth work
8+and CDEF index reads, all of which touch `Neighbours` / `PlaneBuf` / the block
9+readers) and one in `gate_coverage.rs`. **You** resolve it, not the orchestrator:
10+you know which side owns each hunk here, and a wrong resolution in this file is
11+a silent decode bug. Then the full suite green, then COMMIT. Main is at 53f5358.
12+
13+While resolving, two things main added that you must keep:
14+- `gate_coverage.rs`'s `NEVER_EXERCISED` — your removal of `enable-palette` is
15+ correct and stays (a real gate enables it now); main still lists
16+ `enable-intrabc`.
17+- `refusal_inventory.rs` — pins every decode-path refusal string. Your reworded
18+ palette-Y string must be listed there or the suite fails, which is the point.
19+ Main also reworded three refusals that falsely claimed "this encoder never
20+ writes" a case aomenc demonstrably writes; do not reintroduce that phrasing.
21+
22+## Job 2 — the bisect r4 built the instrument for
23+r4's `EC_TRACE_PALETTE=1` rung (rungs 6/6b in
24+`scripts/instrument-aom-oracle.sh`, aomdec rebuilt) prints per-pixel
25+row/col/ctx/n/rng before and color_idx/rng after inside libaom's
26+`decode_color_map_tokens`, plus the `map[0]` uniform read. Add the matching
27+trace inside our `decode_color_index_map` (decode.rs ~2182), regenerate the
28+gate's exact fixture stream ONCE, and diff.
29+- CLASS `compare-range-not-tell`: compare RANGE, never `tell()`.
30+- CLASS `equal-range-means-unread`: reference range unchanged where ours moves =
31+ we read a symbol it never wrote; theirs moves and ours does not = we skipped
32+ one. Tables are already cleared line-for-line, so a table is the LAST suspect.
33+- If the ranges match to the end of the block, the reads are right and the bug
34+ is in how the palette is applied — `PALETTE_PRED` / the buffer write
35+ (decode.rs ~3347), per-TU slicing, or plane mixing.
36+Then remove the refusal, make the gate assert pixel-exactness, and COMMIT.
37+
38+## Then
39+Palette UV, the rect-strip `palette_bsize_ctx` refusal (decode.rs ~1940), then
40+intrabc — one commit each, each with its own hard-asserted firing count.
41+
42+Hard rules: `CARGO_TARGET_DIR=$HOME/.cache/cargo-target-palette`; foreground
43+`nice -n 19 cargo ... -j4`; every `cargo test` a timeout >= 600000 ms. Sibling
44+worktrees have live agents — never build in or edit them, and do NOT create
45+additional worktrees. Never push, never merge into `main`, never touch `main`
46+itself (merging main INTO this branch is what job 1 asks for and is fine).
47+75-turn cap, does not reset: COMMIT AT EVERY GREEN STEP. End with
48+`lanes/palette-r5.report.md`, VERDICT on line 1.