Lane-sbpart r6 charter -- merge main, build rung 9, range-ladder block2
Browse files at this commit6bdfdfdd2dc3dd2e56d3ececd138af9d9ce38231Parent: 36ec3fb- docs
- lane-sbpart r6 charter -- merge main, build rung 9, range-ladder block2
1 changed file +50 -0
- lanes/sbpart-r6.charter.md +50 -0
lanes/sbpart-r6.charter.mdadded+50 -0
| @@ -0,0 +1,50 @@ | ||
| 1 | +# lane-sbpart r6 — range-ladder block2 | |
| 2 | + | |
| 3 | +At f68fe19. Read `lanes/sbpart-r5.report.md`. r5 delivered the answer three | |
| 4 | +rounds had failed to: the rect64 mismatch is an **entropy desync, not | |
| 5 | +reconstruction**. Block1 of the SB-level `PARTITION_VERT` pair | |
| 6 | +(`decode.rs:5611-5643`) decodes pixel-exact; block2 is wrong from its first | |
| 7 | +pixel; everything after it in raster order is wrong; everything before it, | |
| 8 | +including SB column 0, is exact. That overturns r2's stride and scan-table | |
| 9 | +suspects — drop them. | |
| 10 | + | |
| 11 | +## Order | |
| 12 | +1. **Merge `main` first** (now 170a5a3 — loop restoration filters, tile-group | |
| 13 | + OBUs, non-uniform tile spacing, a reworded sub-16x16 partition refusal) and | |
| 14 | + COMPILE IMMEDIATELY. Three merges in this batch were text-clean and | |
| 15 | + compile-broken because a newer gate called a decoder whose signature a lane | |
| 16 | + had changed. r5 owed this and ran out of budget. | |
| 17 | +2. **Build oracle rung 9**: an `EC_TRACE`-patched decode path in | |
| 18 | + `scripts/instrument-aom-oracle.sh`, env-gated and silent when unset, that | |
| 19 | + prints the range after each element for the SB containing block2. Follow the | |
| 20 | + existing rungs' wrapper-around-impl shape; rebuild with | |
| 21 | + `scripts/build-aom-oracle.sh`. Rungs 6, 7, 8, 8b are taken and 10 is spoken | |
| 22 | + for by a sibling lane, so take 9. | |
| 23 | +3. **Range-ladder block2's first reads** (skip, mode, angle_delta_y, uv_mode) | |
| 24 | + against it. Compare msac RANGE, never `tell()` — decoders' tell baselines | |
| 25 | + differ by fixed constants ([[compare-range-not-tell]]). Read the result | |
| 26 | + strictly: the reference's range unchanged where ours moves means we read a | |
| 27 | + symbol it never wrote; theirs moving where ours does not means we skipped | |
| 28 | + one; only when both move differently is a table implicated | |
| 29 | + ([[equal-range-means-unread]]). | |
| 30 | +4. Fix, then get the gate pixel-exact, then merge-ready. | |
| 31 | + | |
| 32 | +r5 ruled out by direct experiment: `maybe_read_cdef_idx`'s per-SB | |
| 33 | +`CDEF_TRANSMITTED` guard (`--enable-cdef=0` reproduces the identical symptom). | |
| 34 | +It also code-audited `fill_skip_grid_rect`/`skip_txfm_ctx`/`record_rect`'s | |
| 35 | +above/left span writes and found them correct **by inspection only** — which is | |
| 36 | +exactly the kind of proof this repo has watched fail, so let the ladder decide | |
| 37 | +rather than trusting that audit ([[shared-oracle-blindness]]). | |
| 38 | + | |
| 39 | +## Budget discipline | |
| 40 | +75 turns, and they do NOT reset if you are resumed. At about turn 55, stop | |
| 41 | +starting new work: commit what is green and write your report. | |
| 42 | + | |
| 43 | +Hard rules: `CARGO_TARGET_DIR=$HOME/.cache/cargo-target-sbpart`; foreground | |
| 44 | +`nice -n 19 cargo ... -j4`; every `cargo test` a timeout >= 600000 ms; | |
| 45 | +`EC_AV1_REQUIRE_AOMENC=1`; aomenc `--threads=1 --row-mt=0 --sb-size=64`; | |
| 46 | +`--enable-tx-size-search=0` is required by this gate's recipe. The oracle is | |
| 47 | +SHARED with sibling lanes — env-gated rungs only, never a throwaway patch left in | |
| 48 | +the tree. Sibling worktrees have live agents — never build in or edit them. Never | |
| 49 | +push, never merge into main. End with `lanes/sbpart-r6.report.md`, VERDICT on | |
| 50 | +line 1. |