forge
Explore
Log in

Don't you dare go Hollow

Lane-superres r10 charter -- gate the scaled-MC code that no stream can reach yet

Browse files at this commit

0f2fce1f4f00431edad97c1be3abfdf17445a9e0Ahmet Kaan GümüşParent: 576ce59
  • docs
    • lane-superres r10 charter -- gate the scaled-MC code that no stream can reach yet
Show full message
docs(av1): lane-superres r10 charter -- gate the scaled-MC code that no stream can reach yet
lanes/superres-r10.charter.mdadded+43 -0
@@ -0,0 +1,43 @@
1+# lane-superres r10 — the bypass gate, then the lift
2+
3+At fee8ba3. Read `lanes/superres-r9.report.md`. The plumbing exists:
4+`mc::predict_scaled`/`scale_factor`/`REF_NO_SCALE` are landed and pinned
5+bit-exact against `predict_with_filters` at `REF_NO_SCALE`, and
6+`decode_inter_block` carries `frame_width` through all 19 call sites. Three
7+scoped refusals cover the combinations without scaled-MC support (compound,
8+warp/OBMC/interintra, `decode_inter_block8`'s 8x8 leaf).
9+
10+**But none of that code is reachable yet**, because `stream.rs:217` still
11+refuses `use_superres` on an inter frame at the frame level. Unreachable code is
12+unproven code — that is this round's whole point.
13+
14+## Order
15+1. Merge `main` (170a5a3) and compile immediately.
16+2. The bypass gate: a real aomenc stream with a key frame and an inter frame,
17+ both with `use_superres` (`--superres-denominator` controls non-key frames,
18+ `--superres-kf-denominator` the key ones), driven below `decode_stream` so
19+ the frame-level refusal cannot short-circuit it
20+ ([[refusal-short-circuits-its-own-code]]). Hard-assert that the scaled path
21+ actually fired — a hit counter on `predict_scaled`, not just a pixel match,
22+ since an unscaled reference would pass the pixels and prove nothing
23+ ([[gate-blind-to-feature]]).
24+3. Pixel-exact vs ffmpeg, then lift `stream.rs:217`'s refusal and update
25+ `refusal_inventory.rs` in the same commit.
26+4. If the gate mismatches, bisect against the oracle rather than by inspection.
27+ Rungs 6, 7, 8, 8b are taken; 9 and 10 are spoken for by sibling lanes — take
28+ 11.
29+
30+`decode_inter_block8`'s blanket refusal can stay blanket this round; narrowing
31+it is worth its own round and is not what stands between this lane and main.
32+
33+## Budget discipline
34+75 turns, and they do NOT reset if you are resumed. At about turn 55, stop
35+starting new work: commit what is green and write your report.
36+
37+Hard rules: `CARGO_TARGET_DIR=$HOME/.cache/cargo-target-superres`; foreground
38+`nice -n 19 cargo ... -j4`; every `cargo test` a timeout >= 600000 ms; fixtures
39+through `gradients_source(seed, w, h, tail)`; ffmpeg generates bounded with
40+`-t`; `EC_AV1_REQUIRE_AOMENC=1`; aomenc `--threads=1 --row-mt=0 --sb-size=64`.
41+The oracle is SHARED — env-gated rungs only. Sibling worktrees have live agents —
42+never build in or edit them. Never push, never merge into main. End with
43+`lanes/superres-r10.report.md`, VERDICT on line 1.