forge
Explore
Log in

Don't you dare go Hollow

Lane-tiles r3 charter

Browse files at this commit

565a78b302ba157be326c3d9d89e346e801f80cbAhmet Kaan GümüşParent: 6416aca
  • docs
    • lane-tiles r3 charter
Show full message
docs(av1): lane-tiles r3 charter
lanes/tiles-r3.charter.mdadded+48 -0
@@ -0,0 +1,48 @@
1+# lane-tiles r3 — verify r2's per-tile loop, then finish it
2+
3+Worktree `/home/user/Documents/Code/Rust/edith_codecs-tiles`, branch
4+`lane-tiles`, at d1c2071.
5+
6+## State
7+- `1231cd5` (r1) — tile-origin groundwork in `Neighbours` (`tile_row0_mi`,
8+ `tile_col0_mi`, `start_tile()`), every literal-`0` availability check keyed on
9+ the tile origin. A no-op until something calls `start_tile`.
10+- `d1c2071` (r2, cap-rescued by the orchestrator) — `decode.rs` +159,
11+ `stream.rs` +3, staged but never committed by r2 and **never seen to compile
12+ or pass anything**. That is your first job: find out what it is.
13+- `lanes/tiles-r2.charter.md` and `lanes/tiles.charter.md` still govern the
14+ staging, the three hard parts and the gate rules. `lanes/tiles.report.md` has
15+ r1's exact line ranges.
16+
17+## Order
18+1. `export CARGO_TARGET_DIR=$HOME/.cache/cargo-target-tiles`, then
19+ `cargo check -p ec-av1 --lib` and, if it compiles,
20+ `EC_AV1_REQUIRE_AOMENC=1 nice -n 19 cargo test -p ec-av1 --lib -j4`
21+ (timeout >= 600000 ms). Report the count against 232/0 for this tree. Getting
22+ d1c2071 green is the whole job until it is green. COMMIT once green.
23+2. Stage 1 from the r2 charter: the key-frame tile decode as a per-tile loop —
24+ fresh msac over each tile's byte range, a fresh copy of the frame's initial
25+ CDFs per tile, only `context_update_tile_id`'s end-of-tile CDFs kept, and
26+ `start_tile()` wired along with the `PlaneBuf` tile-pixel-origin fields.
27+ Proven on an intra-only two-tile column split, pixel-exact, with a
28+ hard-asserted thread-local count of tiles decoded `> 1`. COMMIT.
29+3. Then tile rows and non-uniform spacing; then inter frames (thread the tile
30+ origin into `mvstack.rs`'s neighbour scan — this is where it will break);
31+ then several tile-group OBUs per frame; then `context_update_tile_id` proven
32+ with a stream where it is not tile 0. One commit each.
33+
34+## Note for the merge
35+Main carries two guards you do not have: `gate_coverage.rs` (pins the aomenc
36+tools no gate exercises) and `refusal_inventory.rs` (pins every decode-path
37+refusal string, so adding, renaming or removing one — including the multi-tile
38+refusal you are here to delete — fails until the list is updated). Report the
39+refusal strings you change, verbatim.
40+
41+## Hard rules
42+Foreground builds `nice -n 19 cargo ... -j4`, own `CARGO_TARGET_DIR` as above,
43+every `cargo test` a timeout >= 600000 ms. Sibling worktrees (edith_codecs,
44+-chroma, -realworld, -lr, -superres, -palette) have live agents — never build in
45+or edit them. Never push, never merge, never touch `main`. 75-turn cap, does not
46+reset: COMMIT AT EVERY GREEN STEP — both rounds on this lane so far ended with
47+work uncommitted. Stage 1 committed and green is a good round on its own. End
48+with `lanes/tiles-r3.report.md`, VERDICT on line 1.