forge
Explore
Log in

Don't you dare go Hollow

Lane-sbpart r8 charter -- check Luma64's CDF-set resolution first

Browse files at this commit

fbce155ae280bb3c07309540aa034b5839aa2107Ahmet Kaan GümüşParent: ad21b2d
  • docs
    • lane-sbpart r8 charter -- check Luma64's CDF-set resolution first
Show full message
docs(av1): lane-sbpart r8 charter -- check Luma64's CDF-set resolution first
lanes/sbpart-r8.charter.mdadded+47 -0
@@ -0,0 +1,47 @@
1+# lane-sbpart r8 — one symbol away
2+
3+At 376a086 (I merged main for you). Read `lanes/sbpart-r7.report.md`.
4+
5+r7 range-laddered block2's luma coefficient read against a real aomdec and got
6+the defect down to a single symbol: **entry range, `eob` and `base_eob` all
7+match the oracle exactly; the first divergence is the `base` symbol at scan
8+position (row=1, col=0), pos=32** — we decode 3 (triggering an extra `br` read),
9+libaom decodes level 1. Same entry state on both sides, different value out.
10+That shape points at a CDF-row selection, not at neighbour arithmetic.
11+
12+## Order
13+1. **First move, named by r7:** check whether `TxbSet::Luma64`'s CDF-set /
14+ `txs_ctx` resolution matches libaom's `get_txsize_entropy_ctx(TX_32X64)`
15+ (`cdf_state.rs`, search `Luma64`). A wrong CDF-set produces exactly this
16+ symptom. Related class: a table narrowed to a pinned row breaks the moment
17+ the indexing field moves ([[cdf-row-held-constant]]).
18+2. Only if that matches: `base_ctx`'s neighbour math at (row=1, col=0) for a
19+ true `TX_32X64`. Remember that a scan weight or step can use the CROSS axis
20+ and that square candidates hide every axis swap
21+ ([[scan-weights-cross-axis]]) — if you touch it, sweep the transposed copy in
22+ the same round.
23+3. Fix, get the gate pixel-exact, commit. Then the round is done; do not start
24+ stage 2 (the 32x32 `part32` values) or the inter path.
25+
26+Ruled out and not to be revisited: `around_rect` (skip_ctx and dc_sign_ctx both
27+read identically to the oracle), the CDEF per-SB guard, and — from r5 — the
28+theory that this is a reconstruction bug at all.
29+
30+Reproduction, from r7: the pinned OBU is scratchpad-only and does not survive;
31+regenerate with
32+`EC_SBPART_GATE_ATTEMPTS=1 EC_AV1_GATE_DUMP=<path> EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact -- --nocapture`
33+(seed 42 reproduces first try). Oracle rung 11 is live in `~/.cache/aom-oracle`
34+and captured in `scripts/instrument-aom-oracle.sh`; drive it with
35+`EC_TRACE_COEFF=1 aomdec --i420 -o /dev/null <pin>.obu`.
36+
37+## Budget discipline
38+75 turns, no reset on resume. At about turn 55, stop starting new work: commit
39+what is green and write your report. The merge is already done for you.
40+
41+Hard rules: `CARGO_TARGET_DIR=$HOME/.cache/cargo-target-sbpart`; foreground
42+`nice -n 19 cargo ... -j4`; every `cargo test` a timeout >= 600000 ms;
43+`EC_AV1_REQUIRE_AOMENC=1`; aomenc `--threads=1 --row-mt=0 --sb-size=64` and this
44+gate needs `--enable-tx-size-search=0`. The oracle is SHARED — env-gated rungs
45+only. Sibling worktrees have live agents — never build in or edit them. Never
46+push, never merge into main. End with `lanes/sbpart-r8.report.md`, VERDICT on
47+line 1.