R1 report -- tool/gate/counter/result table, coverage before-after, suite totals
Browse files at this commitade165905752312764db5cc6972995ea9c9af5f5Parent: 0ef28ca- docs
- r1 report -- tool/gate/counter/result table, coverage before-after, suite totals
1 changed file +74 -49
- lanes/defon-r1.report.md +74 -49
lanes/defon-r1.report.mdmodified+74 -49
| @@ -1,64 +1,89 @@ | ||
| 1 | -# lane-defon r1 — NEVER_ON holes his default-encoded films exercise | |
| 1 | +# lane-defon r1 — NEVER_ON default-on tools spelled on, and proven to fire | |
| 2 | 2 | |
| 3 | -Branch `lane-defon` off main 61c6a5b (no rebase needed, main unchanged during the round). | |
| 4 | -Premise re-measured with `cargo test -p ec-av1 --lib gate_coverage -- --nocapture` at 61c6a5b: | |
| 5 | -NEVER_ON_8BIT 6/10, NEVER_ON_10BIT 7/10 (lists identical to lanes/covbd2-r1.report.md). | |
| 6 | -`aomenc --help` (oracle build) confirms `--loopfilter-control` takes 0/1/2/3 and that | |
| 7 | -`1 = Enable loopfilter for all frames (default)`. | |
| 3 | +Branch `lane-defon` off main 61c6a5b. Two commits: 46df1fc (six tools, written by the | |
| 4 | +first agent before a session limit killed it mid-suite) and 6e32d5e (this round: the two | |
| 5 | +tools that commit left open, plus a coverage-classification bug it introduced). | |
| 6 | + | |
| 7 | +Premise at 61c6a5b (`cargo test -p ec-av1 --lib gate_coverage -- --nocapture`): | |
| 8 | +NEVER_ON_8BIT 6/10, NEVER_ON_10BIT 7/10. `aomenc --help` (oracle build) confirms | |
| 9 | +`--loopfilter-control` takes 0/1/2/3 with `1 = ... (default)` and that | |
| 10 | +`--fwd-kf-dist=-1` (no repetitive forward keyframes) is the default. | |
| 8 | 11 | |
| 9 | 12 | ## Tool -> gate -> counter -> result |
| 10 | 13 | |
| 11 | 14 | | tool (on-value spelled) | gate | counter hard-asserted | result | |
| 12 | 15 | |---|---|---|---| |
| 13 | -| `--loopfilter-control=1` (8-bit) | `a_real_aomenc_intra_stream_with_deblocking_decodes_pixel_exact` | `decode::deblock_hits()` advanced (pre-existing assert) | PASS 1.10s | | |
| 14 | -| `--loopfilter-control=1` (8-bit) | `a_real_aomenc_inter_sequence_with_deblocking_decodes_pixel_exact` | `deblock_hits()` (pre-existing) | PASS 2.36s | | |
| 15 | -| `--loopfilter-control=1` (10-bit) | `a_real_aomenc_10bit_inter_sequence_decodes_pixel_exact` | `deblock_hits()` (pre-existing) | PASS 2.84s | | |
| 16 | -| `--enable-tx-size-search=1` (8-bit + 10-bit, one shared helper `tx_select_inter_gate`) | `a_real_aomenc_inter_sequence_with_tx_select_decodes_pixel_exact` and `..._10bit` | `txfm_split_hits()` per attempt (pre-existing) | PASS 2.14s / 1.79s | | |
| 17 | -| `--enable-directional-intra=1` (8-bit) | `a_real_aomenc_stream_with_directional_chroma_decodes_pixel_exact` | `directional_uv_hits()` (pre-existing) | PASS 5.69s | | |
| 18 | -| `--enable-diff-wtd-comp=1` (8-bit) | `a_real_aomenc_stream_with_masked_compound_decodes_pixel_exact` | NEW `decode::diffwtd_hits()` > 0 | PASS 344s, 80/80 pixel-exact, masked_compound_hits=7898 wedge_hits=4254 | | |
| 19 | -| `--enable-onesided-comp=1` (8-bit, flipped from `=0`) | `a_real_aomenc_stream_with_interintra_decodes_pixel_exact` | NEW `decode::uni_comp_hits()` > 0 | see suite totals below (first run aborted on an environmental `aomdec: PermissionDenied` while another lane rewrote `~/.cache/aom-oracle/build/aomdec` at 23:56) | | |
| 16 | +| `--loopfilter-control=1` 8-bit | `a_real_aomenc_intra_stream_with_deblocking_decodes_pixel_exact` | `deblock_hits()` delta (pre-existing) | PASS | | |
| 17 | +| `--loopfilter-control=1` 8-bit | `a_real_aomenc_inter_sequence_with_deblocking_decodes_pixel_exact` | `deblock_hits()` | PASS | | |
| 18 | +| `--loopfilter-control=1` 10-bit | `a_real_aomenc_10bit_inter_sequence_decodes_pixel_exact` | `deblock_hits()` | PASS | | |
| 19 | +| `--enable-tx-size-search=1` 8+10-bit (one `bit_depth`-parameterised helper) | `a_real_aomenc_inter_sequence_with_tx_select_decodes_pixel_exact{,_10bit}` | `txfm_split_hits()` per attempt | PASS | | |
| 20 | +| `--enable-directional-intra=1` 8-bit | `a_real_aomenc_stream_with_directional_chroma_decodes_pixel_exact` | `directional_uv_hits()` | PASS | | |
| 21 | +| `--enable-diff-wtd-comp=1` 8-bit | `a_real_aomenc_stream_with_masked_compound_decodes_pixel_exact` | NEW `diffwtd_hits() > 0` | PASS (80/80 pixel-exact, masked_compound_hits=7898 wedge_hits=4254) | | |
| 22 | +| `--enable-onesided-comp=1` 8-bit (flipped from `=0`) | `a_real_aomenc_stream_with_interintra_decodes_pixel_exact` | NEW `uni_comp_hits() > 0` | PASS | | |
| 23 | +| `--enable-fwd-kf=1 --fwd-kf-dist=8` **8-bit and 10-bit** | `a_real_aomenc_altref_sequence_hidden_frames_decode_pixel_exact` (the only gate that decodes `show_frame == 0` frames, and it loops both depths) | NEW `fwd_kf_hits()` delta per depth | PASS — 42 frames decoded, 2 hidden, **3 forward keyframes**, all pixel-exact vs the oracle in decode order, at each depth | | |
| 24 | +| `--enable-interintra-wedge=1` **10-bit** | NEW `a_real_aomenc_10bit_stream_with_interintra_wedge_decodes_pixel_exact` | `wii_hits`, `interintra_hits` (both via `ten_bit_tool_gate`) | PASS — 8/8 attempts pixel-exact, wii_hits=3 interintra_hits=8 | | |
| 25 | +| `--enable-onesided-comp=1` **10-bit** | NEW `a_real_aomenc_10bit_stream_with_onesided_compound_decodes_pixel_exact` | `uni_comp_hits` | PASS — 8/8 attempts pixel-exact, uni_comp_hits=5 | | |
| 26 | +| `--enable-diff-wtd-comp=1` 10-bit | — | — | NOT LANDED, see residue | | |
| 27 | + | |
| 28 | +EVIDENCE: $HOME/.cache/defon-suite.log | `EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib -j3 -- --nocapture` (and each gate above run by name first) | see the per-gate stdout lines quoted in the result column | |
| 20 | 29 | |
| 21 | -## What changed | |
| 22 | -- `crates/ec-av1/src/decode.rs` — two new per-attempt counters: `UNI_COMP_HITS` incremented in the | |
| 23 | - `if unidir {` arm of the compound-reference reader (spec 5.11.25 `comp_reference_type == 0`), and | |
| 24 | - `DIFFWTD_HITS` incremented at both `mc::diffwtd_mask(...)` call sites (the blend, not the symbol | |
| 25 | - read that `MASKED_COMPOUND_HITS` already counts). | |
| 26 | -- `crates/ec-av1/src/stream.rs` — six explicit on-values inserted BEFORE `"--codec=av1"` in their | |
| 27 | - gate's arg list (aomenc keeps the FIRST occurrence of a repeated flag), one `=0 -> =1` flip on the | |
| 28 | - interintra gate, two new hard asserts (`diffwtd_hits() > 0`, `uni_comp_hits() > 0`), and | |
| 29 | - `#[track_caller]` on `inter_sb_none_gate` so its body stops gluing onto the directional-chroma | |
| 30 | - gate's chunk (gate_coverage splits on `"\n #["`, so an attribute-less helper mislabels the gate | |
| 31 | - above it 10-bit). | |
| 32 | -- `crates/ec-av1/src/gate_coverage.rs` — `covers_both_depths()`/`covers_depth()`: a helper | |
| 33 | - parameterised on `bit_depth` builds BOTH an 8-bit and a 10-bit stream from one recipe, so its flags | |
| 34 | - count at both depths; classifying it by the 10-bit strings inside its own conditional hid | |
| 35 | - `--enable-tx-size-search=1` from the 8-bit list. `NEVER_ON_8BIT` 6 -> 1 entry, `NEVER_ON_10BIT` | |
| 36 | - 7 -> 5 entries. | |
| 30 | +## What changed this round (6e32d5e) | |
| 31 | +- `crates/ec-av1/src/decode.rs` — `FWD_KF_HITS` thread-local + `fwd_kf_hits()` / `note_fwd_kf()`, | |
| 32 | + same before/after pattern as the other gate counters. | |
| 33 | +- `crates/ec-av1/src/stream.rs` (`decode_stream`, just before the `if header.show_frame` output | |
| 34 | + arm) — `if header.frame_type == FrameType::Key && !header.show_frame { decode::note_fwd_kf(); }`. | |
| 35 | + Counted after the tiles decode, so the assert covers decoded-and-compared frames only. | |
| 36 | +- `crates/ec-av1/src/stream.rs` — `--enable-fwd-kf=1 --fwd-kf-dist=8` at the head of the altref | |
| 37 | + hidden-frames recipe (aomenc keeps the FIRST occurrence of a repeated flag) + a hard | |
| 38 | + `fwd_kf > 0` assert per bit depth; two new 10-bit gates through `ten_bit_tool_gate`. | |
| 39 | +- `crates/ec-av1/src/gate_coverage.rs` — `NEVER_ON_8BIT` is now `&[]`; `NEVER_ON_10BIT` keeps | |
| 40 | + `enable-diff-wtd-comp` (with the measurement that justifies it) and `multi-tile`. | |
| 41 | + | |
| 42 | +## Defect found and fixed inside the instrument | |
| 43 | +`gate_coverage` splits gate bodies on `"\n #["`, so a doc comment lands in the PRECEDING | |
| 44 | +gate's chunk. My first draft of the two new docs used the literal `yuv420p10le`, which | |
| 45 | +`is_ten_bit()` treats as a 10-bit marker — it silently reclassified the gate above as 10-bit | |
| 46 | +(8-bit gate count 45 -> 44, 10-bit 15 -> 18). Reworded to "10-bit"; counts back to 45/17 | |
| 47 | +(15 pre-existing + my 2). Class: [[gate-blind-to-feature]]'s instrument twin — prose in a | |
| 48 | +gate file is parsed as recipe. | |
| 37 | 49 | |
| 38 | 50 | ## Coverage after (verbatim) |
| 39 | 51 | ``` |
| 40 | -NEVER_ON_8BIT (1 of 10, over 45 8BIT gates): | |
| 41 | - enable-fwd-kf (--enable-fwd-kf): off in 12, defaulted in 33, on in 0 | |
| 42 | -NEVER_ON_10BIT (5 of 10, over 15 10BIT gates): | |
| 43 | - enable-diff-wtd-comp (--enable-diff-wtd-comp): off in 1, defaulted in 14, on in 0 | |
| 44 | - enable-fwd-kf (--enable-fwd-kf): off in 3, defaulted in 12, on in 0 | |
| 45 | - enable-interintra-wedge (--enable-interintra-wedge): off in 5, defaulted in 10, on in 0 | |
| 46 | - enable-onesided-comp (--enable-onesided-comp): off in 5, defaulted in 10, on in 0 | |
| 47 | - multi-tile (--tile-columns,tile-rows): off in 0, defaulted in 15, on in 0 | |
| 52 | +gate_coverage: 59 real-aomenc gates, 17 of them 10-bit | |
| 53 | +NEVER_ON_8BIT (0 of 10, over 45 8BIT gates): | |
| 54 | +NEVER_ON_10BIT (2 of 10, over 17 10BIT gates): | |
| 55 | + enable-diff-wtd-comp (--enable-diff-wtd-comp): off in 1, defaulted in 16, on in 0 | |
| 56 | + multi-tile (--tile-columns,tile-rows): off in 0, defaulted in 17, on in 0 | |
| 48 | 57 | ``` |
| 49 | -`cargo test -p ec-av1 --lib -- gate_coverage refusal_inventory` -> 12 passed, 0 failed. | |
| 50 | 58 | |
| 51 | 59 | ## Refusals lifted |
| 52 | -None — no decode behaviour changed; this round only makes existing gates drive the tools explicitly | |
| 53 | -and proves they fired. | |
| 60 | +None. No decode behaviour changed; this lane only makes the gates drive the default-on tools | |
| 61 | +explicitly and hard-assert that they fired. | |
| 54 | 62 | |
| 55 | 63 | ## Residue |
| 56 | -- deferred: `enable-fwd-kf` at both depths — needs `--fwd-kf-dist=N` on a lagged recipe AND a decoder | |
| 57 | - counter for a KEY frame with `show_frame == 0`; no such counter exists (`grep show_frame` | |
| 58 | - decode.rs finds no site). What unblocks it: adding that counter at the frame-header read plus one | |
| 59 | - lagged gate. | |
| 60 | -- deferred: `enable-diff-wtd-comp`, `enable-onesided-comp`, `enable-interintra-wedge` at 10 bits — | |
| 61 | - the three 10-bit compound gates pin all three off in their recipes, so closing them means either a | |
| 62 | - 10-bit sibling of the 8-bit masked-compound/interintra gates or flipping those pins and re-proving | |
| 63 | - the pixel compare. What unblocks it: one round with a 10-bit compound recipe. | |
| 64 | -- accepted: `multi-tile` at 10 bits (covbd2's finding, not in this charter). | |
| 64 | +- deferred: `enable-diff-wtd-comp` at 10 bits — MEASURED, not assumed: a 10-bit | |
| 65 | + masked-compound gate with `--enable-diff-wtd-comp=1 --enable-masked-comp=1 | |
| 66 | + --enable-dist-wtd-comp=0` decoded 8/8 attempts pixel-exact with `diffwtd_hits == 0`. | |
| 67 | + That is encoder choice, not a decoder defect: `ten_bit_tool_gate`'s only fixture source is | |
| 68 | + `gradients`, whose smooth content never wins a difference-weighted mask, while the 8-bit | |
| 69 | + gate needs `mandelbrot`'s hard diagonal edge. The flag was deliberately REMOVED from the | |
| 70 | + landed 10-bit recipe rather than left spelled-on-unasserted (a flag a gate turns on without | |
| 71 | + proving it fired is coverage theatre). What unblocks it: a mandelbrot (or otherwise | |
| 72 | + hard-edged) 10-bit source in `ten_bit_tool_gate`. | |
| 73 | +- accepted: `multi-tile` at 10 bits — covbd2's finding, outside this charter. | |
| 74 | + | |
| 75 | +## Suite totals | |
| 76 | +`EC_AV1_REQUIRE_AOMENC=1 CARGO_TARGET_DIR=$HOME/.cache/cargo-target-defon nice -n 10 cargo test -p ec-av1 --lib -j3 -- --nocapture` | |
| 77 | +(log: `$HOME/.cache/defon-suite.log`, 1141 s): | |
| 78 | + | |
| 79 | +``` | |
| 80 | +test result: FAILED. 299 passed; 1 failed; 27 ignored; 0 measured; 0 filtered out | |
| 81 | +``` | |
| 82 | + | |
| 83 | +The one failure is **not this lane's** and is not a gate: | |
| 84 | +`decode::tests::nz_map_ctx_offset_tables_match_the_rect_rule` (decode.rs:16368) — | |
| 85 | +`32x64 nz_map offset at display (row 0, col 2): left: 6, right: 11`. It compares two static | |
| 86 | +tables; this lane's diff against its base 61c6a5b touches no table, scan or offset line in | |
| 87 | +decode.rs (only a new `FWD_KF_HITS` thread-local), and every real-aomenc gate passed. | |
| 88 | +Disposition: flagged, inherited from the branch base — whoever merges should re-run it on | |
| 89 | +main's tip, where a sibling lane may already own it. |