forge
Explore
Log in

Don't you dare go Hollow

Lane-chroma r3 charter -- run the smooth-intra gate, then chroma

Browse files at this commit

d627fbc1eeb635537d705bd4b4a2315767e1fc9bAhmet Kaan GümüşParent: 7ba8085
  • docs
    • lane-chroma r3 charter -- run the smooth-intra gate, then chroma
Show full message
docs(av1): lane-chroma r3 charter -- run the smooth-intra gate, then chroma
lanes/chroma-r3.charter.mdadded+60 -0
@@ -0,0 +1,60 @@
1+# lane-chroma r3 — run the smooth-intra gate, then the chroma refusal
2+
3+Worktree `/home/user/Documents/Code/Rust/edith_codecs-chroma`, branch
4+`lane-chroma`.
5+
6+## State
7+- `8bca1d6` — **the luma fix landed**: `smooth_neighbor` is threaded into the
8+ intra edge filter strength instead of being hardcoded `false`. This is r1's
9+ root cause (a directional block neighbouring a smooth-mode one picked the
10+ wrong filter bucket). Committed, compiles.
11+- The next commit is the orchestrator's cap-rescue of r2's gate: ~140 new lines
12+ in `crates/ec-av1/src/stream.rs`, a smooth-intra gate that **compiles but has
13+ never been run once**. That is your first job.
14+- `lanes/chroma-r2.charter.md` — still binding for everything below.
15+- `lanes/chroma-r1.report.md` + `lanes/chroma-r1-attempt.diff` — r1's root-cause
16+ writeup and its reverted attempt (the chroma-side gate lives there).
17+
18+## Order — COMMIT AFTER EVERY GREEN STEP
19+1. Run the new gate:
20+ `export CARGO_TARGET_DIR=$HOME/.cache/cargo-target-chroma` then
21+ `EC_AV1_REQUIRE_AOMENC=1 nice -n 19 cargo test -p ec-av1 --lib <gate name> -j4 -- --nocapture`
22+ with a timeout of at least 600000 ms. Make it pass pixel-exact on luma with a
23+ HARD-asserted firing count proving `smooth_neighbor` actually came out TRUE
24+ somewhere — a gate that enables smooth intra but never hits the new branch
25+ proves nothing (class `gate-blind-to-feature`). Then the full suite
26+ (baseline 232/0 on this tree; main is at 234 with two new guard tests).
27+ COMMIT.
28+2. Chroma: add UV-mode neighbour tracking to `Neighbours` and remove the
29+ smooth/paeth chroma refusals (decode.rs uv_mode 9..=12, around 1970 and
30+ 2458), with r1's gate
31+ `a_real_aomenc_stream_with_smooth_paeth_chroma_decodes_pixel_exact` from the
32+ attempt diff green on luma AND chroma. COMMIT.
33+3. Once a gate really enables smooth-intra and paeth-intra, main's
34+ `crates/ec-av1/src/gate_coverage.rs` guard will FAIL by design: its
35+ `NEVER_EXERCISED` list still names `enable-smooth-intra` and
36+ `enable-paeth-intra` as tools no gate exercises. Deleting those two entries
37+ is part of landing this work — that guard exists precisely so closing the
38+ hole is noticed. (The guard is on main, so you will meet it at merge if not
39+ before; if `gate_coverage.rs` is not in your tree yet, note it in the report
40+ for the merge instead.)
41+4. If turns remain: the directional-chroma sibling at `decode.rs:7786`, the
42+ inter-frame intra-block reader, which refuses any non-DC/CFL uv_mode
43+ unconditionally and never computes `angle_delta_uv`. No known bug there,
44+ just unwritten plumbing. COMMIT.
45+
46+## Gate rules (mandatory)
47+`EC_AV1_REQUIRE_AOMENC=1` on every run; `-t <seconds>` on every ffmpeg generate;
48+fixtures through `gradients_source(seed, w, h, tail)`; aomenc
49+`--threads=1 --row-mt=0 --enable-smooth-intra=1` (and `--enable-paeth-intra=1`
50+for stage 2); firing counts are HARD asserts via thread-local `Cell<usize>`
51+counters like the existing `*_HITS`.
52+
53+## Hard rules
54+- Own `CARGO_TARGET_DIR` as above; foreground builds, `nice -n 19 cargo ... -j4`;
55+ every `cargo test` gets a timeout of at least 600000 ms.
56+- Sibling worktrees (edith_codecs, -realworld, -lr, -superres, -tiles) have live
57+ agents. Never build in or edit them.
58+- NEVER push, never merge, never touch `main`. Commit on `lane-chroma` only.
59+- 75-turn cap and it does NOT reset on resume: commit at every green step.
60+- End with `lanes/chroma-r3.report.md`, VERDICT on the first line.