From 167e8c7a8f6aa3a714125bcb773fb2988e339486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 30 Sep 2026 05:49:39 +0300 Subject: [PATCH] lanes/av1gapremeasure: WITHDRAW the odd-height 'closed' row -- it was my recipe Cross-checked against Agent06-5's 320x236 fixture on the same comparator: my f0 diff (16023 bytes) equals Main's digit for digit, and both streams were measured in one run with a +1 flip control each. The variable is --end-usage=q, not the source, not the container round-trip and not threading: - his content + my flags: 0/0/0 16/16 in six arms; - his exact aomenc line with --obu output: cmp-IDENTICAL to his file, so the webm remux is byte-preserving; - his command + --threads=1 or + --row-mt=0: 16459 B, 0/0/0 16/16; - his command + --end-usage=q: 6787 B, 0/0/0 16/16 -- the defect disappears. aomenc's DEFAULT end-usage is the only configuration measured to reach it. Re-measured the family on that recipe: 320x236 (16562 B, sha256 84e4d1ab) and 322x248 (16131 B, sha256 9e8c9c6c, f0 Y 2170) are 0/16 frames exact -- OPEN; 320x232 (sha256 6832c3cd = the committed pin), 320x248 and 324x236 are 0/0/0 16/16 -- closed. Also records a defect in count_rawvideo_diffs: its plane split uses absolute thresholds, so on a multi-frame stream everything past frame 0's luma is attributed to V (it reported 330673 wrong V in a 302080-byte plane). Report only; no source change. --- lanes/av1gapremeasure.report.md | 69 +++++++++++++++++++++++++++++++-- 1 file changed, 65 insertions(+), 4 deletions(-) diff --git a/lanes/av1gapremeasure.report.md b/lanes/av1gapremeasure.report.md index 972e9b81..2b0932fc 100644 --- a/lanes/av1gapremeasure.report.md +++ b/lanes/av1gapremeasure.report.md @@ -35,7 +35,7 @@ oracle's own bytes change is not a measurement, and none of these are. | **12-bit palette / intrabc** | "neither palette nor intrabc has a 12-bit witness" | Not producible here: 6 recipes × 2 sources, `--enable-palette=1 --enable-intrabc=1` and `--lossless=1` included, produce `allow_intrabc=false` at 12-bit AND at 8-bit | **UNREACHABLE with this aomenc** | what is missing: an encoder that selects the tools (the recipe, not the depth, is what failed — the 8-bit control is the proof) | | **SEG_LVL gaps** (`SEG_LVL_REF_FRAME`/`SKIP`/`GLOBALMV`) | `lanes/av1seglvl.report.md:16-19`: "every frame header parsed: aomenc enables `SEG_LVL_ALT_Q` and nothing else. 162 seg-enabled frames … zero instances of any other `SEG_LVL` feature. The refusal **stays, by name, unchanged**" | Census gate `a_segmentation_census_over_real_aq_streams_finds_no_mode_overriding_feature` **green on main, reproducing the recorded numbers digit for digit**: 4 lag/two-pass arms → 162 seg-enabled frames, 134 inherited-map, 38 with ALT_Q, per-feature `[96,0,0,0,0,0,0,0]` / `[32,…]` / `[96,…]` / `[80,…]`. Refusal gate green: 3 features × segments 0/3/7 all refuse, 0 pictures | **UNREACHABLE (guarded) — the record is CORRECT** | control: the same census run on a hand-built header enabling features 5/6/7 reports `per_feature[5]=1`, `[6]=1`, `[7]=1` (and `alt_q=0`) — the instrument reads non-ALT_Q bits, so the corpus zeros are a measurement | | **rect residual tables** ("census film-unreachable, no witness") | `lanes/av1chromarect.report.md:67-68` named `ChromaRect32x64`/`ChromaRect64x32` missing, then **refuted itself** at `:69` ("That conclusion is wrong, and the wrongness is the finding") — libaom never forms a 64-point chroma transform; the missing thing was the WALK. The witness recorded as REFUSING (`fixtures/r512.obu`, 6948 B) is the one the debt calls unwitnessed | **`r512.obu` DECODES 3/3 frames byte-exact vs aomdec, 0 wrong on Y/U/V.** `r512_rect1x2_444_palette.obu` 2250 B 1/1 · `r512_rect2x1_1x2_444.obu` 2697 B 1/1 · `420_intrabc_rect4_witness.obu` 890 B 1/1 · `444_intrabc_rect4_witness.obu` 1016 B 1/1 · `444_lossy_rect4_inter_witness.obu` 6441 B 2/2 — 9 frame-dumps, 0 wrong | **CLOSED** (and the premise was refuted in the record itself) | control: same `flip` mechanism, +1 in Y | -| **odd-height 4:2:0 cells** (debt's own "STILL OPEN" row) | "`320x236` (Y 234349, U 56957, V 52981) and `322x248` (Y 36286, U 13359, V 13001)" — recipe `aomenc --profile=0 --cq-level=45 --cpu-used=0 --limit=16` of testsrc2 | Measured with **that exact recipe**: `320x236` **0/0/0, 16/16 exact** · `322x248` **0/0/0, 16/16 exact** · `320x232` 0/0/0 16/16 · `320x248` 0/0/0 16/16 · `324x236` 0/0/0 16/16 | **CLOSED** | per-cell control: flip oracle byte 0 → `wrongY=1`, `exact=15` on the same stream | +| **odd-height 4:2:0 cells** (debt's own "STILL OPEN" row) | "`320x236` (Y 234349, U 56957, V 52981) and `322x248` (Y 36286, U 13359, V 13001)" | **My first "closed" verdict on this row was WRONG and is withdrawn** — see §5. Under the recipe that actually reaches the defect (aomenc's DEFAULT end-usage, no `--end-usage=q`): `320x236` **0/16 frames exact** (16562 B, sha256 `84e4d1ab…`), `322x248` **0/16 frames exact** (16131 B, sha256 `9e8c9c6c…`, f0 Y 2170 — the same number `lanes/av1oddluma.report.md` records), while `320x232` (15773 B, sha256 `6832c3cd…` = the committed pin) and `320x248` and `324x236` are 0/0/0 with 16/16 frames exact | **320x236 and 322x248: OPEN and REACHABLE. 320x232 / 320x248 / 324x236: closed** | control on every cell: flip oracle byte 0 → +1 in Y, `exact` 16 → 15. Per-frame byte diffs on the 320x236 witness: `[16023, 19724, 19422, 20473, 20870, 19647, 21038, 19846, 22231, 21805, 23276, 23013, 24664, 24777, 24727, 22751]` — frame 0 (the keyframe) is already wrong, entropy fork, as `av1oddluma` narrowed | | **4:4:4 SQUARE 64x64 sibling-DC** (debt line 21) | "the SECOND unit reconstructs its SIBLING's flat DC instead of its own … seed: f0 r512.obu mi=(112,80) px=(320,448) side=64 … reconstructs flat 241 (the oracle has 202)" | The seed stream itself measures **0 wrong on all three planes across all 3 frames** vs aomdec — a flat-241-vs-202 signature at one unit would be at least 1 wrong sample | **CLOSED** | same `r512.obu` dump as the row above | | `cfl_ac_q3_at` (debt line 19) | recorded REFUTED and guarded by two gates on main | not re-run this round | closed **by record** (see `not_done`) | — | | 4:2:2 anomaly on 322x242 + the refusal-lift decision (debt line 8) | "ONE NAMED ANOMALY, unattributed … being settled on lane-av1422anom" | not measured (owned by that lane). My fresh 322x242 encode is 0/0/0 vs aomdec on 4 frames, but that is PRESENTED output and does not touch the rung-vs-returned-picture question | **not measured** | see `not_done` | @@ -81,13 +81,17 @@ Replace the three named items with: > `Re-measured 2026-09-30 on main facdcb73 (lane-av1gapremeasure): 12-bit AV1 is CLOSED for decode -- 7 committed 12-bit pins, 27 frame-dumps, 0 wrong samples on any plane vs the instrumented aomdec (control: one flipped oracle byte moves the count by exactly +1); the only surviving 12-bit refusal (allow_screen_content_tools) is BROADER than its gap -- lifted locally, 6 real aomenc 12-bit arms decode byte-exact 0/0/0 2/2, so the flag-only cell is safe and only a real 12-bit palette/intrabc stream is unwitnessed (this aomenc emits none, at 12 or 8 bits). rect residual tables: CLOSED and the premise refuted in the record itself -- r512.obu (6948 B, the stream the debt calls unwitnessed) decodes 3/3 frames byte-exact vs aomdec 0/0/0 on Y/U/V, plus 5 sibling rect pins 6/6. SEG_LVL gaps: the record is CORRECT -- the census reproduces exactly (162 seg-enabled frames over 4 arms, per-feature [96,0,0,0,0,0,0,0]/[32,..]/[96,..]/[80,..], all non-ALT_Q features 0) and the REF_FRAME/SKIP/GLOBALMV refusal fires on every hand-built header; census control: the same instrument reports per_feature[5]=1/[6]=1/[7]=1 on headers that enable them. ` -**(b) line 8, the odd-height "STILL OPEN" row.** Current text: +**(b) line 8, the odd-height row.** Current text: > `STILL OPEN, separate mechanism (LUMA errors, unlocalised): 320x236 (Y 234349, U 56957, V 52981) and 322x248 (Y 36286, U 13359, V 13001). ` -Replace with: +This row is **STILL OPEN and now REACHABLE** — do not close it. What is new is +the one-flag recipe and the fact that a *plausible-looking* recipe hides it: +`aomenc --end-usage=q` makes the defect disappear (the cell measures 0/0/0, +16/16 exact), while aomenc's **default** end-usage reproduces it on demand. +Append to the row: -> `CLOSED 2026-09-30 (lane-av1gapremeasure, measured on main facdcb73 with the recorded recipe aomenc --profile=0 --cq-level=45 --cpu-used=0 --limit=16 of testsrc2, live aomdec comparator): 320x236 is 0/0/0 with 16/16 frames exact and 322x248 is 0/0/0 with 16/16 frames exact; 320x232 / 320x248 / 324x236 also 0/0/0 16/16. Per-cell non-vacuity control: flipping one byte of the real oracle output moves the count by exactly +1 in Y and exact frames 16 -> 15. ` +> `RE-MEASURED 2026-09-30 (lane-av1gapremeasure, main facdcb73, live aomdec comparator, per-cell +1 flip control): still open, and reachable with a one-flag recipe -- aomenc WITHOUT --end-usage=q (its default rate mode) over ffmpeg testsrc2=size=320x236:rate=24:duration=1 gives 16562 B, sha256 84e4d1ab56620af1c5b78e1aa3d2d67496a492f2e127198c82dd1d68b01c6200, 0 of 16 frames exact, per-frame diff bytes [16023, 19724, 19422, 20473, 20870, 19647, 21038, 19846, 22231, 21805, 23276, 23013, 24664, 24777, 24727, 22751] (the KEYFRAME is wrong, so this is an entropy fork, consistent with lanes/av1oddluma.report.md). 322x248 the same way: 16131 B, sha256 9e8c9c6c202a9d6a200e5393a79df5b6b5734ded3d004e3eac65f272c6e4730f, 0/16 frames exact, f0 Y 2170. CLOSED members of the same family: 320x232 (15773 B, sha256 6832c3cd867f5fc491b45fd67f77c38453db0ca6d461e7d225e6276f4d0784c8 = the committed pin, 0/0/0 16/16), 320x248 (16440 B) and 324x236 (16683 B) both 0/0/0 16/16. WARNING for the next lane: adding --end-usage=q (or --threads=1/--row-mt=0) to the recipe makes the defect VANISH without fixing anything -- the threaded default with the default end-usage is the only configuration measured to reach it. ` **(c) line 21, the 4:4:4 SQUARE 64x64 row.** Its opening claim is: @@ -115,3 +119,60 @@ oracle 202) are stale. Prefix the row with: produced; `av1gwarp12` covers ROTZOOM at 12-bit. - Nothing was left in the tree: the throwaway harness and the temporary refusal lift were reverted; `git status --porcelain` is empty at this commit. + +## 5. Cross-check against `Agent06-5`'s fixture — my first "closed" verdict on the +## odd-height row was an artefact of my own recipe + +Main measured `/tmp/h232fix/o320x236.obu` (16562 B, sha256 `84e4d1ab…`) as +diverging on current main; my 320x236 encode measured 0/0/0 16/16. Both readings +are right. Same comparator, same run, per frame, `+1` control on each stream: + +| stream | bytes | frames exact | per-frame diff bytes | flip-0 control | +|---|---|---|---|---| +| mine (`testsrc2=size=320x236:rate=25`, 16 frames, aomenc `--end-usage=q --threads=1 --row-mt=0`) | 6615 | **16/16** | all 0 | — | +| Agent06-5's (`testsrc2=size=320x236:rate=24:duration=1`, aomenc default end-usage) | 16562 | **0/16** | `[16023, 19724, 19422, 20473, 20870, 19647, 21038, 19846, 22231, 21805, 23276, 23013, 24664, 24777, 24727, 22751]` | wrongY 11198 → **11199** | + +My f0 number (16023) equals Main's f0 (16023) digit for digit, so the two +measurements are the same measurement. + +**What is NOT the variable** (each ruled out by measurement, all with the +1 +control): + +- **The source content.** Agent06-5's own content, demuxed from his webm and + re-encoded with MY flags, is 0/0/0 16/16 exact in six arms (plain, no-lag, + cdef0, restoration0, sb128, tx-size-search). +- **The container round-trip.** Re-running Agent06-5's exact aomenc line with + `--obu -o file.obu` (no webm, no ffmpeg remux) yields 16562 B, + `cmp`-IDENTICAL to his file, sha256 `84e4d1ab…`. The remux is byte-preserving. +- **Threading.** From his command, adding `--threads=1` → 16459 B, adding + `--row-mt=0` → 16459 B (the two are byte-identical to each other), and BOTH + measure 0/0/0 16/16 exact. + +**The single variable: `--end-usage=q`.** From his command on his source, adding +only `--end-usage=q` gives 6787 B and 0/0/0 16/16 exact. So aomenc's default +rate mode (which ignores `--cq-level=45`, emitting 8281 b/f instead of 3393 b/f) +is the only configuration measured to reach the defect; `--end-usage=q`, and +independently `--threads=1` or `--row-mt=0`, make it vanish without fixing +anything. That is why my sweep found nothing: every recipe I used carried +`--end-usage=q`, inherited from the crate's own encode helpers. + +### 5.1 A defect in the shared comparator, found while doing this + +`count_rawvideo_diffs` attributes planes with **absolute, non-frame-scaled** +thresholds (`stream.rs:10424-10436`: `if i < ys {0} else if i < ys + us {1} else {2}`, +where `ys`/`us` come from the FIRST picture). On a multi-frame stream every +sample after frame 0's luma therefore lands in plane 2, which is why the +diverging stream reports `wrongV = 330 673` when plane V only holds 302 080 +bytes across 16 frames. The per-frame byte counts and `frames_exact` are sound +(their sum is exactly the reported total, 344 287); the per-plane split is +meaningful only on single-frame streams. Read the numbers in §1's rows as +"0 wrong on every plane" (they are zeros) and, for any non-zero multi-frame +count, use per-frame bytes. + +### 5.2 Harness note + +The first `eprintln!` of a `--nocapture` run is intermittently swallowed by the +`memguard-runner` wrapper (observed repeatedly: the first `GAP`/`XC`/`XPATH` line +of a run is missing, and re-running with the same paths in a different order +prints it). Every number quoted here was seen printed in at least one run; none +rests on a line that only ever appeared as the swallowed first line.