Lane-sbpart r4 charter -- run the gate on r3's unverified edits, then finish the bisect
Browse files at this commitc67fd6324a497be82279489ec43b80819434efd0Parent: dac1692- docs
- lane-sbpart r4 charter -- run the gate on r3's unverified edits, then finish the bisect
1 changed file +44 -0
- lanes/sbpart-r4.charter.md +44 -0
lanes/sbpart-r4.charter.mdadded+44 -0
| @@ -0,0 +1,44 @@ | |||
| 1 | +# lane-sbpart r4 — finish the rect64 bisect | ||
| 2 | + | ||
| 3 | +At 58f7fb6. Read `lanes/sbpart-r3.charter.md` (still your charter — r3 never | ||
| 4 | +reported) and `lanes/sbpart-r2.report.md`. | ||
| 5 | + | ||
| 6 | +r3 stopped at its turn cap with the words "compiles clean, now run the gate". I | ||
| 7 | +committed its edits to `decode.rs` and `stream.rs` verbatim so nothing was lost. | ||
| 8 | +**Their state is unverified by me: run the gate first.** If it is green, r3 | ||
| 9 | +solved it and your job is to prove that, tidy the diagnostics out, and merge | ||
| 10 | +main. If it is still red, keep bisecting. | ||
| 11 | + | ||
| 12 | +The gate is `a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact`. | ||
| 13 | +It reaches `decode_block_rect64` (`sb_rect_hits() > 0` on real aomenc content) | ||
| 14 | +and mismatched ffmpeg's luma from partway through row 0 of a 192x128 frame. | ||
| 15 | +Method is `EC_AV1_GATE_DUMP` plus the oracle's `EC_TRACE`/`EC_TRACE_COEFF` rungs, | ||
| 16 | +not hand-tracing; add a rung to `scripts/instrument-aom-oracle.sh` if a fact is | ||
| 17 | +not observable (numbers 6, 7, 8 and 8b are taken on main — take 9). r2's two | ||
| 18 | +suspects, still unchecked as far as I know: the corner-embed stride versus | ||
| 19 | +`dequant_and_inverse_typed_wh`'s w/h ordering for 64x32 vs 32x64; and | ||
| 20 | +`default_scan(TX32)` versus the shared `scan32`. If you touch scanning, sweep the | ||
| 21 | +transposed copy in the SAME round — a scan weight can use the cross axis and | ||
| 22 | +square candidates hide every axis swap ([[scan-weights-cross-axis]]). | ||
| 23 | + | ||
| 24 | +Gate-recipe facts already paid for, do not rediscover: `--enable-tx-size-search=0` | ||
| 25 | +is REQUIRED or every strip hits its own tx-depth refusal first; and | ||
| 26 | +`--enable-ab-partitions=0` does NOT gate AB partitions at 64x64, so use plain | ||
| 27 | +`gradients_source` rather than a blended source. | ||
| 28 | + | ||
| 29 | +Then merge `main` into this branch and resolve it yourself — main is at a8724cb, | ||
| 30 | +far ahead (tile rows, delta_q/delta_lf, key-frame superres, palette-Y, a | ||
| 31 | +`bit_depth != 8` refusal, three guard tests). Expect `refusal_inventory` and | ||
| 32 | +`gate_coverage` to fail until this branch's lists match; that is them working. | ||
| 33 | + | ||
| 34 | +A branch that lifts a refusal without a gate does not merge to main. | ||
| 35 | + | ||
| 36 | +Hard rules: `CARGO_TARGET_DIR=$HOME/.cache/cargo-target-sbpart`; foreground | ||
| 37 | +`nice -n 19 cargo ... -j4`; every `cargo test` a timeout >= 600000 ms; fixtures | ||
| 38 | +through `gradients_source(seed, w, h, tail)`; ffmpeg generates bounded with `-t`; | ||
| 39 | +`EC_AV1_REQUIRE_AOMENC=1`; aomenc `--threads=1 --row-mt=0 --sb-size=64`. The | ||
| 40 | +oracle is SHARED with five sibling lanes — env-gated rungs only, never a | ||
| 41 | +throwaway patch left in the tree. Sibling worktrees have live agents — never | ||
| 42 | +build in or edit them. Never push, never merge into main. 75-turn cap, does not | ||
| 43 | +reset: COMMIT AT EVERY GREEN STEP. End with `lanes/sbpart-r4.report.md`, VERDICT | ||
| 44 | +on line 1. | ||