Lane-l2 report -- LAST2 re-judged on the current substrate and stays off: control reproduces the standing table to the digit (screen row moves exactly along intertx's documented 14.4->13.7), the deciding long-GOP gate reads -0.3 best (keep rule asks >=0.5), LAST2 codes 0.5-1.1 percent of film inter blocks and never on screen, walls +2.4-9.7 percent
Browse files at this commit1100a98e084270f9d8639d7f484b670746798747Parent: 9bce8b7- docs
- lane-l2 report -- LAST2 re-judged on the current substrate and stays off: control reproduces the standing table to the digit (screen row moves exactly along intertx's documented 14.4->13.7), the deciding long-GOP gate reads -0.3 best (keep rule asks >=0.5), LAST2 codes 0.5-1.1 percent of film inter blocks and never on screen, walls +2.4-9.7 percent
- the per-lag SAD census re-run reproduces refs.report section 1 exactly
- witness 0-off/40-on LAST2 blocks exact through both decoders
- pins unmoved 8291/33227
1 changed file +185 -0
- lanes/l2.report.md +185 -0
lanes/l2.report.mdadded+185 -0
| @@ -0,0 +1,185 @@ | |||
| 1 | +# lane-l2 — re-judge LAST2 on the current substrate: the deciding long-GOP gate | ||
| 2 | + | ||
| 3 | +Base: `a8f2186a` (lane-l2 worktree). Disposition: **stays-off** — on the | ||
| 4 | +deciding gate the lever was never in the keep rule's reach (best delta | ||
| 5 | +anywhere is -0.3 BD, the rule asks ≥0.5), it fires for real but tiny | ||
| 6 | +(0.5-1.1% of inter blocks on the films, 0.0% on bars 2160p and screen), and | ||
| 7 | +it costs +4.4-9.7% encoder wall. The machinery from lane-last2 (merge | ||
| 8 | +`321b2dc1`) stays behind `EC_AV1_LAST2` (default OFF = today's behavior bit | ||
| 9 | +for bit — the control reproduces the standing table to the digit on four of | ||
| 10 | +five native rows and both long-GOP rows). Pins untouched at 8291 / 33227 (no | ||
| 11 | +default change, so no pin run, no lib suite). Never merged, never pushed. | ||
| 12 | + | ||
| 13 | +## 0. What this lane actually was (the stale premise, corrected) | ||
| 14 | + | ||
| 15 | +The task text priced the lever from `last2_census`'s doc comment, which still | ||
| 16 | +claimed `ref_frame_idx` aliases `LAST2` onto `LAST`'s slot and called the | ||
| 17 | +build "a week of wall". That premise was STALE at the base: lane-last2 | ||
| 18 | +already shipped the whole machine — `EC_AV1_LAST2` knob (default OFF, | ||
| 19 | +`encoder.rs` `last2()`/`const LAST2 = false`), the leaf chain alternating its | ||
| 20 | +refresh over `LEAF_SLOTS = [0, 7]` with `leaf_hist` carried across mini-GOPs, | ||
| 21 | +`ref_frame_idx[1]` + per-slot `sign_bias`/`order_hints` coding, the 32x32 | ||
| 22 | +`extra` search offer with LAST2's own `NEWMV` (`EC_AV1_LAST2_NEW`), the RD | ||
| 23 | +pricer's LAST2 leaf, the OBMC picture table, the trial-decode `RefPix` slot, | ||
| 24 | +the witness, and the gate census line. What lane-last2 NEVER measured: the | ||
| 25 | +long-GOP gate (its own handover: "No long-GOP arm was run because nothing | ||
| 26 | +ships"), and its 12-frame refutation predates lane-intertx/lane-rectres/ | ||
| 27 | +lane-tplhalf. So this lane re-ran the per-lag SAD census, re-witnessed, and | ||
| 28 | +filled in the deciding table on server-1; the only source change needed was | ||
| 29 | +retiring the stale doc comment itself. | ||
| 30 | + | ||
| 31 | +## 1. What shipped (commits `eaf64ec4`, `eeae0580`) | ||
| 32 | + | ||
| 33 | +- `lanes/l2.charter.md` — this lane's charter, committed first. | ||
| 34 | +- `encode.rs` `last2_census` doc comment rewritten: it now states what ships | ||
| 35 | + (the lever is real, `EC_AV1_LAST2`, leaf chain, 32x32 offer with its own | ||
| 36 | + NEWMV), that the census stays the PRICING arm, and that its best-of-two SAD | ||
| 37 | + shares over-count the lever by more than an order of magnitude once | ||
| 38 | + NEAR/NEAREST/DRL off `LAST`, the backward `ALTREF`, and the rate term price | ||
| 39 | + in — pointing at `last2.report.md` §4's refutation and the gate census's | ||
| 40 | + fire share. Comment-only; no behavior change. | ||
| 41 | +- No other source change: the charter's build steps (1) DPB slot, (2) search | ||
| 42 | + offer + own motion search, (3) witness, (4) census share — were all | ||
| 43 | + already in the base and are measured here as they shipped. | ||
| 44 | + | ||
| 45 | +## 2. Witnesses (all local, release, BEFORE any gate) | ||
| 46 | + | ||
| 47 | +- `encoder::tests::a_leaf_predicts_off_last2_when_the_picture_two_back_matches` | ||
| 48 | + PASS in 1.53 s: lever OFF codes LAST 101 / **LAST2 0** / GOLDEN 18 / | ||
| 49 | + ALTREF 3 (2933 B); lever ON codes LAST 54 / **LAST2 40** / GOLDEN 16 / | ||
| 50 | + ALTREF 0 (2449 B) — the census/counter guard (`off == 0`, `on >= 8`) | ||
| 51 | + proves the blocks were really CODED off LAST2 and that OFF is today's | ||
| 52 | + behavior; `decode_stream` AND ffmpeg both reconstruct all nine display | ||
| 53 | + positions sample-exact; one `show_existing_frame` per hidden frame. | ||
| 54 | + EVIDENCE: ~/.cache/l2/witness.log | cargo test --release --lib -- | ||
| 55 | + a_leaf_predicts_off_last2_when_the_picture_two_back_matches --nocapture | | ||
| 56 | + "off: ... LAST2 0 ... on: ... LAST2 40 ...", ok, both decoders exact. | ||
| 57 | + LOADAVG 1.57/1.17/1.11 before, 1.52/1.17/1.11 after (1.6 s run). | ||
| 58 | +- `encode::tests::the_encoders_own_streams_are_byte_identical_to_their_pins` | ||
| 59 | + PASS in 4.85 s at the default (knob untouched): OFF is bit-exact at the | ||
| 60 | + pins. EVIDENCE: local run, pins test ok, 8291 / 33227 unchanged. | ||
| 61 | +- Per-lag SAD census `encode::tests::last2_census` re-run on this HEAD, | ||
| 62 | + reproduces `refs.report.md` §1 EXACTLY (deterministic): film A leaf 6.99% / | ||
| 63 | + ARF 10.31%, film B leaf 7.25% / ARF 8.38% of prediction SAD removed by | ||
| 64 | + best-of-two. The pricing census is unchanged and the refutation stands: | ||
| 65 | + pure-SAD over-counts the lever ~an order of magnitude (38% of blocks by | ||
| 66 | + SAD vs 0.5-1.1% coded once rate, NEAR/NEAREST/DRL and the backward ALTREF | ||
| 67 | + price in). EVIDENCE: ~/.cache/l2/sad-census.log | --ignored --exact | ||
| 68 | + encode::tests::last2_census | table identical to refs.report §1, 2.63 s. | ||
| 69 | + | ||
| 70 | +## 3. BD measurement (server-1 user@host-e, per the skill recipe) | ||
| 71 | + | ||
| 72 | +Repo `/home/user/gates/repo-l2`, target `/home/user/gates/target-l2`, | ||
| 73 | +rsync of worktree `eeae0580` (`--exclude /fixtures/ /target/ /.git/`), | ||
| 74 | +fixtures symlink, `rm -f .git && git init -q`, warm release compile 56.5 s. | ||
| 75 | +Four gates run STRICTLY serially by one remote chain | ||
| 76 | +(`/home/user/gates/gate-chain-l2.sh`): control = `EC_AV1_LAST2=0`, arm = | ||
| 77 | +`EC_AV1_LAST2=1`, same HEAD, `MemoryMax=5G`, ffmpeg PATH shim, `--ignored | ||
| 78 | +--exact` full test paths, per-gate logs on the server and copied to | ||
| 79 | +`~/.cache/l2/`. | ||
| 80 | + | ||
| 81 | +Sanity gate PASSED: the control reproduces the standing table within the | ||
| 82 | +±0.2/cell requirement — long-GOP film A +20.9/-9.0 and film B +70.4/-2.2 TO | ||
| 83 | +THE DIGIT, native rows bars 1080p -3.3/-19.0, bars 2160p +8.4/-13.9, film A | ||
| 84 | ++17.9/-6.3, film B +22.6/-3.8 TO THE DIGIT. The fifth native row reads | ||
| 85 | ++13.7/-33.6 where `rectres.report.md` §3b records +14.4/-33.2 — exactly the | ||
| 86 | +screen-default improvement lane-intertx's merge (`c736be2c`) documents | ||
| 87 | +("+14.4 -> +13.7"), which this HEAD contains; against the corrected standing | ||
| 88 | +number the row reproduces to the digit too. This is a documented base change, | ||
| 89 | +not substrate suspicion. | ||
| 90 | + | ||
| 91 | +### 3a. Long-GOP BD (deciding; 48 pictures, gop=48, both films) | ||
| 92 | + | ||
| 93 | +BD-rate, lower better: | ||
| 94 | + | ||
| 95 | +| row | off vs libaom | off vs rav1e | on vs libaom | on vs rav1e | wall ours off->on | | ||
| 96 | +|---|---|---|---|---|---| | ||
| 97 | +| film A (1080p) 1920x768 | +20.9% | -9.0% | +20.6% | -9.1% | 1398.2s -> 1479.8s (+5.8%) | | ||
| 98 | +| film B (2160p HDR) 1920x1024 | +70.4% | -2.2% | +70.3% | -2.1% | 1100.9s -> 1156.8s (+5.1%) | | ||
| 99 | + | ||
| 100 | +EVIDENCE: ~/.cache/l2/lg-control.log | server-1 gate, MemoryMax=5G, ffmpeg shim | ||
| 101 | +PATH | film A +20.9%/-9.0%, film B +70.4%/-2.2% (== standing table to the | ||
| 102 | +digit), LAST2 0.0% both films; test ok (exactness assertions held at every | ||
| 103 | +clip x q x frame). Service runtime 52m07.6s. LOADAVG 0.52/0.45/0.23 before, | ||
| 104 | +1.26/1.19/1.11 after. | ||
| 105 | +EVIDENCE: ~/.cache/l2/lg-arm.log | server-1 gate, EC_AV1_LAST2=1 | | ||
| 106 | +film A +20.6%/-9.1%, film B +70.3%/-2.1%; LAST2 1289 of 235454 (0.5%) film A, | ||
| 107 | +2358 of 220341 (1.1%) film B. Service runtime 54m25.0s. LOADAVG | ||
| 108 | +1.26/1.19/1.11 before, 1.06/1.11/1.09 after. | ||
| 109 | + | ||
| 110 | +### 3b. 12-frame native guard (all five rows) | ||
| 111 | + | ||
| 112 | +| row | off vs libaom | off vs rav1e | on vs libaom | on vs rav1e | wall ours off->on | | ||
| 113 | +|---|---|---|---|---|---| | ||
| 114 | +| bars 1080p | -3.3% | -19.0% | -3.4% | -19.0% | 423.1s -> 451.8s (+6.8%) | | ||
| 115 | +| bars 2160p | +8.4% | -13.9% | +8.4% | -13.9% | 353.6s -> 388.0s (+9.7%) | | ||
| 116 | +| film A | +17.9% | -6.3% | +17.7% | -6.5% | 370.0s -> 389.8s (+5.4%) | | ||
| 117 | +| film B | +22.6% | -3.8% | +22.6% | -3.8% | 317.4s -> 332.1s (+4.6%) | | ||
| 118 | +| screen capture | +13.7% | -33.6% | +13.7% | -33.6% | 235.7s -> 241.4s (+2.4%) | | ||
| 119 | + | ||
| 120 | +EVIDENCE: ~/.cache/l2/nat-control.log | server-1 gate, five rows | table above | ||
| 121 | +"off" columns; four rows == the standing table to the digit, screen row == | ||
| 122 | +the intertx-corrected standing number. Service runtime 34m31.7s. LOADAVG | ||
| 123 | +1.06/1.11/1.09 before, 1.08/1.13/1.11 after. | ||
| 124 | +EVIDENCE: ~/.cache/l2/nat-arm.log | server-1 gate, five rows, EC_AV1_LAST2=1 | | ||
| 125 | +table above "on" columns; screen row byte-identical to control (LAST2 0 | ||
| 126 | +coded there). Service runtime 36m20.9s. LOADAVG 1.08/1.13/1.11 before, | ||
| 127 | +1.09/1.13/1.09 after. | ||
| 128 | + | ||
| 129 | +### LAST2 census share per clip (the arm runs' gate census) | ||
| 130 | + | ||
| 131 | +| clip | LAST2 / inter blocks | share | | ||
| 132 | +|---|---|---| | ||
| 133 | +| film A long-GOP (192 frames) | 1289 / 235454 | 0.5% | | ||
| 134 | +| film B long-GOP (192 frames) | 2358 / 220341 | 1.1% | | ||
| 135 | +| bars 1080p (48 frames) | 134 / 21474 | 0.6% | | ||
| 136 | +| bars 2160p (48 frames) | 0 / 14557 | 0.0% | | ||
| 137 | +| film A 12f (48 frames) | 330 / 53433 | 0.6% | | ||
| 138 | +| film B 12f (48 frames) | 326 / 48822 | 0.7% | | ||
| 139 | +| screen capture (48 frames) | 0 / 11162 | 0.0% | | ||
| 140 | + | ||
| 141 | +The lever FIRES on real film and is NOT a dead knob (the counter is read | ||
| 142 | +once per clip by `take_ref_frame_hits` — no drain-then-read), it is simply | ||
| 143 | +chosen by ~1 block in 150 on the long-GOP films, and the screen clip never | ||
| 144 | +takes it. | ||
| 145 | + | ||
| 146 | +## 4. Keep rule — NOT met; disposition | ||
| 147 | + | ||
| 148 | +- One film row ≥0.5 BD down on a column: best delta anywhere is -0.3 (film A | ||
| 149 | + long-GOP vs libaom; -0.2 on the 12-frame film A row). FAILS. | ||
| 150 | +- Other film row flat within ±0.3: yes (-0.1/+0.1). | ||
| 151 | +- Screen not worse by 0.3: yes (byte-identical, 0.0). | ||
| 152 | +- Wall ≤+15%: yes (+2.4% to +9.7%). | ||
| 153 | + | ||
| 154 | +The deciding clause fails on the gate that decides — consistent with | ||
| 155 | +lane-last2's 12-frame refutation at its older base, now confirmed on the | ||
| 156 | +current substrate with the long-GOP table filled in. Default stays OFF; no | ||
| 157 | +pin run, no three-lane suite (the default did not flip); the pins themselves | ||
| 158 | +were re-verified green at the default locally, and the OFF path's bit-exactness | ||
| 159 | +is additionally proven by the control reproducing the standing table to the | ||
| 160 | +digit. `fix-now | deferred(<unblock>) | accepted`: nothing deferred — the | ||
| 161 | +charter's measurement is complete; the arm stays parked behind `EC_AV1_LAST2` | ||
| 162 | +(witnessed, census-visible). A future change that makes the older picture | ||
| 163 | +worth MORE (e.g. a prediction lever that specifically prices lag-2 content) | ||
| 164 | +re-runs the same four gates, not the census. | ||
| 165 | + | ||
| 166 | +## 5. Procedure notes (for the next lane on server-1) | ||
| 167 | + | ||
| 168 | +- A sequential multi-gate chain script on the server (one systemd-run unit per | ||
| 169 | + gate, `--wait`, per-gate log files, LOADAVG before/after each unit echoed | ||
| 170 | + into one chain log) keeps "one gate at a time" honest across a ~3 h batch | ||
| 171 | + without a babysitting ssh session; the four gates cost 52m/54m/35m/36m. | ||
| 172 | +- A control row may legitimately differ from the standing table where a | ||
| 173 | + MERGED default changed it — diff the delta against the merge message's own | ||
| 174 | + recorded number (here intertx's "+14.4 -> +13.7") before declaring | ||
| 175 | + substrate suspicion. Reproduce-to-the-digit everywhere else is what makes | ||
| 176 | + the one moving row attributable. | ||
| 177 | +- `--ignored --exact` needs the full test path even for the diagnostic | ||
| 178 | + censuses (`encode::tests::last2_census`, not `last2_census`). | ||
| 179 | + | ||
| 180 | +## 6. Non-goals respected | ||
| 181 | + | ||
| 182 | +Main checkout untouched, never pushed/merged, no repo-wide formatters (the | ||
| 183 | +only source commit is a comment block, `git show eeae0580` is 12+/9-), media | ||
| 184 | +files read-only, one gate at a time on server-1 (serial chain, LOADAVG pairs | ||
| 185 | +recorded), logs under ~/.cache/l2/ and /home/user/gates/logs/. | ||