Lane-palette2 r2 report -- UV palette landed, verdict DONE
Browse files at this commita6be5cfc42461df4082b02fe99f8228dd58fc89aParent: 03d0151- docs
- lane-palette2 r2 report -- UV palette landed, verdict DONE
1 changed file +73 -0
- lanes/palette2-r2.report.md +73 -0
lanes/palette2-r2.report.mdadded+73 -0
| @@ -0,0 +1,73 @@ | |||
| 1 | +VERDICT: DONE -- UV palette reconstruction green and committed (0b79412) | ||
| 2 | + | ||
| 3 | +## What happened | ||
| 4 | + | ||
| 5 | +r1's uncommitted WIP (committed verbatim at d2ea8e7, "unverified") was much | ||
| 6 | +further along than the charter's own description suggested: `read_palette_colors_uv`, | ||
| 7 | +`PaletteUv` reconstruction into both chroma planes (`palette_uv_bufs` -> | ||
| 8 | +`PALETTE_PRED` for `u.reconstruct`/`v.reconstruct`, mirroring the palette-Y | ||
| 9 | +path), and `record_palette_uv` neighbour tracking were all already written | ||
| 10 | +and, on inspection, correct. The tree did not compile for one reason: the | ||
| 11 | +8x8-leaf call site of `read_intra_mode` (crates/ec-av1/src/decode.rs:4394) | ||
| 12 | +was still destructuring the pre-UV 8-tuple and passing the pre-UV 13-arg | ||
| 13 | +call, one edit behind the widened `read_intra_mode` signature (9-tuple | ||
| 14 | +return, 14-arg call with the new `palette_uv_cache: &[u16]` parameter) that | ||
| 15 | +the rest of the file had already moved to. | ||
| 16 | + | ||
| 17 | +Fixed by adding `_palette_uv` to the destructured tuple and `&[]` for | ||
| 18 | +`palette_uv_cache` at that one call site -- the same "read+refuse the | ||
| 19 | +symbol, never reconstruct" corner-cut that site already used for palette_y | ||
| 20 | +(`None` for the `palette` param), extended to UV. That site is the excluded | ||
| 21 | +8x8-leaf path (`prev_leaf`/rect handling), not the intra square-block path | ||
| 22 | +this round's gate exercises, so no new refusal or behaviour needed there. | ||
| 23 | + | ||
| 24 | +## Gate | ||
| 25 | + | ||
| 26 | +`a_real_aomenc_stream_with_palette_uv_decodes_pixel_exact` | ||
| 27 | +(crates/ec-av1/src/stream.rs, new): `testsrc2` (the multicoloured AV1 test | ||
| 28 | +pattern -- flat, few-colour, repetitive chroma per region, unlike | ||
| 29 | +`smptebars=hue=s=0` in the sibling palette-Y gate, which deliberately | ||
| 30 | +flattened chroma to sidestep this exact case) through the same square-only | ||
| 31 | +recipe as the palette-Y gate (`--enable-rect-partitions=0`/`-ab-`/`-1to4-`, | ||
| 32 | +fixed 32x32 partition, `--enable-palette=1`, `--sb-size=64 --threads=1 | ||
| 33 | +--row-mt=0`). Hard-asserts `decode::palette_uv_hits()` moved before | ||
| 34 | +comparing pixel output, per [[gate-blind-to-feature]] -- a pixel match on a | ||
| 35 | +stream that never used a UV palette would prove nothing. Live run: 2 UV | ||
| 36 | +palette blocks fire, both frames' Y/U/V match ffmpeg's independent decode | ||
| 37 | +of the same bytes exactly. | ||
| 38 | + | ||
| 39 | +## refusal_inventory.rs | ||
| 40 | + | ||
| 41 | +No edit needed. "a block that actually uses a palette (UV) -- reconstruction | ||
| 42 | +is out of scope" is still genuinely present in decode.rs at two other call | ||
| 43 | +sites -- the HORZ/VERT rect-strip path (decode.rs ~9263) and the inter-frame | ||
| 44 | +8x8-leaf path (decode.rs ~10359) -- both out of this round's scope (charter | ||
| 45 | +steps 2/3, plus inter-frame palette which the charter never named). Those | ||
| 46 | +stay refused; the inventory's scan is string-presence-based, so it already | ||
| 47 | +passes with no change. Confirmed: `refusal_inventory::tests::the_decode_path_refuses_exactly_the_listed_cases` | ||
| 48 | +and `capability_claims_are_declared_not_scattered` both green. | ||
| 49 | + | ||
| 50 | +## Checks run | ||
| 51 | + | ||
| 52 | +- `cargo check -p ec-av1` -- clean (was 2 errors before the fix). | ||
| 53 | +- `cargo test -p ec-av1 --lib` (EC_AV1_REQUIRE_AOMENC=1) -- 263 passed, 18 | ||
| 54 | + ignored, 0 failed, in 133.5s. Includes the new UV palette gate, the | ||
| 55 | + existing palette-Y gate, refusal_inventory, and gate_coverage, all green. | ||
| 56 | +- Command: `CARGO_TARGET_DIR=$HOME/.cache/cargo-target-palette2 | ||
| 57 | + EC_AV1_REQUIRE_AOMENC=1 nice -n 19 cargo test -p ec-av1 --lib -j4` | ||
| 58 | + | ||
| 59 | +## Scope discipline | ||
| 60 | + | ||
| 61 | +Did not touch steps 2 (HORZ/VERT rect-strip palette) or 3 (split-transform | ||
| 62 | +palette) -- both stay refused, per charter instruction to wait until UV is | ||
| 63 | +green and committed first. Turn budget: finished well under the ~55-turn | ||
| 64 | +soft cap (compile fix + one gate + verification), so no further step was | ||
| 65 | +started this round per charter ("do not start them until UV is green and | ||
| 66 | +committed" -- deferring to the next round rather than scope-creeping into | ||
| 67 | +step 2 with remaining budget). | ||
| 68 | + | ||
| 69 | +## Oracle / sibling worktrees | ||
| 70 | + | ||
| 71 | +Used the shared `~/.cache/aom-oracle/build/aomenc` read-only (rung 12 was | ||
| 72 | +not needed -- no change to `scripts/instrument-aom-oracle.sh`). No edits | ||
| 73 | +outside this worktree. Nothing pushed, nothing merged into main. | ||