forge
Explore
Log in

Don't you dare go Hollow

Lane-rectres report -- the rect/AB residual lane lands default OFF with all three forced witnesses sample-exact through both decoders (HORZ half 840/840 fires, HORZ_A 4620 search / 5760 writer, per-unit cdef list 62 covered units), BD tables deferred on the worktree's missing fixtures/ with the exact unblock recorded

Browse files at this commit

ff133e7b150ee23a2b064f3339ab1b5d77529452Ahmet Kaan GümüşParent: dc098a5
  • docs
    • lane-rectres report -- the rect/AB residual lane lands default OFF with all three forced witnesses sample-exact through both decoders (HORZ half 840/840 fires, HORZ_A 4620 search / 5760 writer, per-unit cdef list 62 covered units), BD tables deferred on the worktree's missing fixtures/ with the exact unblock recorded
    • pins unmoved at 8291 / 33227
Show full message
docs(av1): lane-rectres report -- the rect/AB residual lane lands default OFF with all three forced witnesses sample-exact through both decoders (HORZ half 840/840 fires, HORZ_A 4620 search / 5760 writer, per-unit cdef list 62 covered units), BD tables deferred on the worktree's missing fixtures/ with the exact unblock recorded; pins unmoved at 8291 / 33227
lanes/rectres.report.mdadded+119 -0
@@ -0,0 +1,119 @@
1+# lane-rectres — non-skip residual on Rect128/Ab128 pieces
2+
3+Base: `3b4673fe` (lane-rectres worktree). Disposition: **stays-off (BD
4+unmeasured — fixtures prerequisite missing; see §4)**. `EC_AV1_RECTRES`
5+keeps its default (off): OFF is today's behavior bit for bit — the search
6+never flips a rect/AB piece to non-skip, so the writer's lifted refusal is
7+never reached. Pins untouched at 8291 / 33227 (no default change, so no pin
8+run, no lib suite). Never merged, never pushed.
9+
10+## 1. What shipped (commit `26a9b79e`)
11+
12+- `write_inter_block_128_rect` (tile.rs): the skip-only refusal is lifted.
13+ A residual piece codes one TX_64X64 luma unit plus a TX_32X32 chroma pair
14+ per 64x64 mu chunk (two chunks for a 128x64/64x128 half, one for a 64x64
15+ square), var-tx depth 0; under `TxMode::Select` a half codes two depth-0
16+ `txfm_partition` flags (ctx rect at `w.max(h)=128`), a square one (via
17+ `write_tx_syntax_inter`). A half's chroma unit takes the +3
18+ `get_txb_ctx` offset; a square's takes none. Luma `txb_skip_ctx`: the
19+ neighbour magnitude table on a half, fixed 0 on a square (the transform
20+ IS the whole plane block — `read_inter_plane`'s
21+ `luma_skip_ctx.unwrap_or(0)`, the 64 root's own writer rule). Tail =
22+ `record_planes_rect(luma=false)` off the assembled chroma grids, then the
23+ per-chunk chroma re-stamp on halves only (`mu_chroma` mirror).
24+- `search_rect_residual` (encode.rs): prices the non-skip outcome against
25+ the skip arm the search just committed (per-chunk
26+ `code_from_prediction` trials, `unskip` skip-symbol delta, packed 64-wide
27+ level grids), commits + flips `block` on a win; wired into
28+ `search_root_128_rect` and `search_root_128_ab` behind
29+ `rectres()` (`EC_AV1_RECTRES`, default OFF, test force
30+ `force_b128_rectres`).
31+- `cdef_unit_owner` (tile.rs) extends past Whole128: a non-skip Rect128
32+ half collapses its 2 units onto its origin; an Ab128 half likewise (its
33+ 64x64 squares are 1 unit each). Skip-only pieces never touch the map —
34+ they code no literal and the decoder's per-piece `cdef_transmitted`
35+ reset never fires. This is the lane-edge128 bug class, priced for the
36+ ONE index the syntax carries.
37+- Census: the native arm's standing line now prints "rect/AB pieces with a
38+ residual N (search) / M (writer)" and zeroes both counters per clip.
39+- A defect found and fixed during witnessing (would have been the lane's
40+ own bug class): the first draft priced the 64x64 square's luma
41+ all-zero flag off the neighbour table; the decoder fixes it at 0 for a
42+ whole-block transform, and the desync surfaced as an empty-slot
43+ reference refusal mid-stream (encode.rs witness fixture), not a pixel
44+ miss. Fixed before any gate measured anything.
45+
46+## 2. Witnesses (all `--ignored --exact`, standalone, all PASS)
47+
48+- `a_rect128_half_with_a_real_residual_decodes_exact_through_both_decoders`
49+ (smpte pan 1280x768, 8 frames, q=60, HORZ forced + residual forced):
50+ search won 840, writer coded 840; `coded > 0` guard; whole stream
51+ sample-exact through `decode_stream` AND ffmpeg, all planes/frames.
52+ EVIDENCE: ~/.cache/rectres/wit1.log | forced HORZ + rectres, q=60, 8
53+ frames | "search won 840, writer coded 840", ok, both decoders exact.
54+ LOADAVG 118.48/98.99/57.92 before, 118.48/98.99/57.92 after (sibling
55+ lane storm; 3.6s run).
56+- `an_ab128_piece_with_a_real_residual_decodes_exact_through_both_decoders`
57+ (testsrc2 1280x768, 12 frames, q=60, HORZ_A forced + residual forced):
58+ search won 4620, writer coded 5760 (writer counts include the filter
59+ search's winning re-code); exercises the two-chunk half AND both
60+ one-chunk squares; byte-exact through both decoders.
61+ EVIDENCE: ~/.cache/rectres/wit2.log | forced HORZ_A + rectres, q=60, 12
62+ frames | "search won 4620, writer coded 5760", ok. LOADAVG
63+ 107.04/97.41/58.06 before, 104.55/100.35/63.37 after.
64+- `a_rect128_residual_half_under_a_per_unit_cdef_list_decodes_exact`
65+ (testsrc2, 12 frames, q=90, HORZ forced + residual forced): writer coded
66+ 2760 non-skip halves; 62 64x64 CDEF units took another unit's literal
67+ (owner-map collapse firing on rect pieces); byte-exact through both
68+ decoders. EVIDENCE: ~/.cache/rectres/wit3.log | --ignored --exact run |
69+ "writer coded 2760; 64x64 CDEF units taking another unit's literal: 62",
70+ ok. LOADAVG 7.90/7.85/9.32 before, 9.39/8.16/9.37 after.
71+
72+## 3. BD measurement — NOT RUN (prerequisite missing)
73+
74+The control attempt of `bd_rate_film_long_gop` (gated
75+`systemd-run --user -p MemoryMax=14G --wait
76+--unit=rectres-longgop-control`) skipped by name: the worktree has no
77+`fixtures/` — `h264-1080p/2160p...mp4` and
78+`real-library-manifest.tsv` are absent, and the gate resolves fixtures at
79+`CARGO_MANIFEST_DIR/../../fixtures` INSIDE this worktree
80+(`~/.cache/rectres/longgop-control.log`: five "SKIP ... missing" lines,
81+"SKIP bd_rate_film_long_gop: no clip"). Media files are read-only and the
82+main checkout must not be touched, so the gate needs the worktree's
83+fixtures directory populated (copy or symlink of the main checkout's
84+`fixtures/`) before control and arm (`EC_AV1_RECTRES=1`) runs. Neither BD
85+table, fire census per clip, nor wall deltas exist yet; the keep rule is
86+UNMEASURED.
87+
88+UNBLOCK (verified 2026-09-12): the media fixtures themselves DO exist in
89+the main checkout's `fixtures/` (e.g.
90+`/home/user/Documents/Code/Rust/edith_codecs/fixtures/video/av1-1080p-23.976-8bit.mp4`
91+and `real-library-manifest.tsv`); only the worktree's copy is missing.
92+From the worktree root: `ln -s ../edith_codecs/fixtures fixtures` (a
93+worktree-side symlink; the media stays read-only), then re-run the two
94+gates: control (`cargo test -p ec-av1 --release --lib -- --ignored
95+--exact --nocapture encode::tests::bd_rate_film_long_gop`) and the same
96+under `EC_AV1_RECTRES=1`, then `bd_rate_screen_native` both ways, each
97+under `systemd-run --user -p MemoryMax=14G --wait --unit=rectres-<name>`,
98+one at a time, LOADAVG before/after.
99+
100+## 4. Disposition
101+
102+`stays-off`. Charter branches: mismatch → stopped (none: all witnesses
103+exact); keep rule met → ships-on (unmeasurable here); inert+exact → stays
104+off. With BD unrun the only safe disposition is default OFF — which is
105+bit-exact today's behavior by construction (the knob gates the only path
106+that flips a piece to non-skip). `fix-now | deferred(<unblock>) |
107+accepted`: BD control+arm runs and the census report are
108+`deferred(worktree fixtures/ populated with the real-library manifest)`;
109+witnesses, writer, search arms, owner map and census line are shipped and
110+accepted. Pins unmoved at 8291 / 33227. No suite run (default did not
111+flip).
112+
113+## 5. Non-goals respected
114+
115+Main checkout untouched, never pushed/merged, no repo-wide formatters (a
116+scoped rustfmt reflow of the two edited files was fully reverted by
117+restoring HEAD bytes and replaying the semantic edits — the committed diff
118+is semantic-only, 643+/39-), media files read-only, one gate at a time,
119+logs under ~/.cache/rectres/.