Lane-palette2 r5 charter -- gate what r4 built
Browse files at this commit96254b3f42cef67b956e1bb621da47bdd7c9d2c6Parent: 9f6023c- docs
- lane-palette2 r5 charter -- gate what r4 built
1 changed file +41 -0
- lanes/palette2-r5.charter.md +41 -0
lanes/palette2-r5.charter.mdadded+41 -0
| @@ -0,0 +1,41 @@ | ||
| 1 | +# lane-palette2 r5 — write the gate | |
| 2 | + | |
| 3 | +At 05f6db8. r4 implemented the rect-strip palette path and hit its cap with | |
| 4 | +"compiles clean, now let's write the gate test". I committed its tree verbatim; | |
| 5 | +**it compiles but is otherwise unverified by me, and it has NO gate**, which | |
| 6 | +means right now it is exactly the thing this project refuses to ship: a | |
| 7 | +capability claim with nothing behind it. | |
| 8 | + | |
| 9 | +## The job, in one sentence | |
| 10 | +Write the gate for what r4 built, and let it tell you whether r4 is right. | |
| 11 | + | |
| 12 | +Specifics: | |
| 13 | +- `smptebars` and `rgbtestsrc` at plain default aomenc settings both reach the | |
| 14 | + rect-strip palette case — that is measured, so no fixture hunting is needed. | |
| 15 | + Add `--enable-palette=1` explicitly: `gate_coverage.rs` only counts a tool as | |
| 16 | + exercised on a positive flag. | |
| 17 | +- Drive the tile decode BELOW `decode_stream` so a surviving refusal cannot | |
| 18 | + short-circuit the code you are measuring | |
| 19 | + ([[refusal-short-circuits-its-own-code]]). | |
| 20 | +- Hard-assert that the rect-strip palette path actually fired before comparing | |
| 21 | + pixels ([[gate-blind-to-feature]]) — a hit counter, not just a pixel match. | |
| 22 | +- Pixel-exact vs ffmpeg. If it mismatches, that is r4's implementation being | |
| 23 | + wrong, which is a perfectly good outcome for this round: bisect it with a | |
| 24 | + range ladder against the oracle (rung 12 is yours), and say so plainly. | |
| 25 | +- Only with the gate green: lift the refusal and update `refusal_inventory.rs` | |
| 26 | + in the SAME commit. Check what r4 already changed in that file — it edited it | |
| 27 | + without a gate, so treat its edits as unverified too. | |
| 28 | + | |
| 29 | +Do not start step 3 (palette with a split luma transform) this round. | |
| 30 | + | |
| 31 | +## Budget discipline | |
| 32 | +75 turns, no reset on resume. At about turn 55, stop starting new work: commit | |
| 33 | +what is green and write your report. | |
| 34 | + | |
| 35 | +Hard rules: `CARGO_TARGET_DIR=$HOME/.cache/cargo-target-palette2`; foreground | |
| 36 | +`nice -n 19 cargo ... -j4`; every `cargo test` a timeout >= 600000 ms; ffmpeg | |
| 37 | +generates bounded with `-t`; `EC_AV1_REQUIRE_AOMENC=1`; aomenc | |
| 38 | +`--threads=1 --row-mt=0 --sb-size=64`. The oracle is SHARED — env-gated rungs | |
| 39 | +only. Sibling worktrees have live agents — never build in or edit them. Never | |
| 40 | +push, never merge into main; I handle merges. End with | |
| 41 | +`lanes/palette2-r5.report.md`, VERDICT on line 1. |