diff --git a/crates/ec-av1/src/gate_coverage.rs b/crates/ec-av1/src/gate_coverage.rs index 363c039b..60b94e19 100644 --- a/crates/ec-av1/src/gate_coverage.rs +++ b/crates/ec-av1/src/gate_coverage.rs @@ -2,14 +2,25 @@ //! //! Every gate in [`crate::stream`] that runs a real `aomenc` picks its coding //! tools with `--enable-*=0/1` flags, and a flag left off the command line -//! takes aomenc's default (on, for the tools this decoder cares about). That -//! makes it possible -- and it happened -- for a coding tool to be switched -//! *off in every single gate*, so that no real stream in this repository ever -//! exercised it and a corner-cut in the decoder survived twenty gates -//! unnoticed: `reconstruct`'s `smooth_neighbor` was hardcoded `false`, wrong -//! whenever a directional block neighbours a smooth-mode one, and invisible -//! because all twenty gates passed `--enable-smooth-intra=0` -//! (lane-chroma r1, 2026-08-30). +//! takes aomenc's default. That default is `1` for essentially every tool in +//! [`TOOL_UNIVERSE`] on a non-realtime build -- `default_extra_cfg` in +//! `av1/av1_cx_iface.c` is all-ones across the seq-level tool fields, and this +//! oracle is built with `CONFIG_REALTIME_ONLY 0`. But a `1` default is NOT +//! the same as the tool reaching the stream, and the rest of this file's +//! "defaulted means unknown" rule rests on that gap: palette and intrabc are +//! gated on CONTENT (`encoder.c:2079` derives `allow_screen_content_tools` +//! from block counts, and `seq_force_screen_content_tools` is left at the +//! adaptive `SELECT_SCREEN_CONTENT_TOOLS`), and `speed_features.c` masks +//! several tools OFF again per `--cpu-used`. A `1` default proves the encoder +//! was ALLOWED the tool, never that any block used it. +//! +//! With that default in place it is possible -- and it happened -- for a +//! coding tool to be switched *off in every single gate*, so that no real +//! stream in this repository ever exercised it and a corner-cut in the +//! decoder survived twenty gates unnoticed: `reconstruct`'s +//! `smooth_neighbor` was hardcoded `false`, wrong whenever a directional +//! block neighbours a smooth-mode one, and invisible because all twenty +//! gates passed `--enable-smooth-intra=0` (lane-chroma r1, 2026-08-30). //! //! The test below re-derives that set from the gate source and pins it. A tool //! that is switched off in every gate and on in none is *provably never @@ -22,8 +33,10 @@ // keys on `--enable-=0/1`, and `--tile-columns=` has no such // shape -- a `--tile-columns=` presence check would also read `=0` (one tile) // as coverage, which is the opposite of what it would claim. It needs no -// entry either: 13 gates spell `--tile-columns`/`--tile-rows` with a nonzero -// log2 and assert the parsed `tile_info` really carries the grid, and +// entry either: measured 2026-09-29 (lane-av1distwtd r2), 19 of the 146 +// census-selected gate bodies spell `--tile-columns`/`--tile-rows` with a +// nonzero log2 -- 9 assert the parsed `tile_info` in the same body and 10 +// more delegate to a shared helper that asserts it -- and // `run_multi_tile_gate` covers a 2D grid with the coding tools ON at both // bit depths. @@ -107,12 +120,22 @@ enum On { /// cover, listed with their aomenc default. /// /// lane-covbd's derivation read `--enable-*` flags only, so a tool a gate pins -/// off through another spelling was invisible: all 49 gates that name it pass -/// `--enable-tx-size-search=0`, and the real-stream PANIC hiding behind that -/// pin was found by lane-ab16, not by this guard. `--loopfilter-control=0`, +/// off through another spelling was invisible: every gate that named +/// `--enable-tx-size-search` passed `--enable-tx-size-search=0` when this was +/// written, and the real-stream PANIC hiding behind that pin was found by +/// lane-ab16, not by this guard. `--loopfilter-control=0`, /// `--tile-columns=0` and a `--cpu-used` high enough to switch a search off are /// the same shape. /// +/// The "all 49" count is GONE as of 2026-09-29 (lane-av1distwtd r2) and is +/// deliberately not replaced by a number: the tool is no longer pinned off +/// tree-wide, so any count would be a snapshot that rots the same way. +/// Measured on this tree for the record: 113 of the 146 selected gate bodies +/// name it, 88 pass `=0`, 15 pass `=1`, and 9 build the value into a +/// `format!` variable the census cannot see -- so the historical claim no +/// longer holds in EITHER direction, and the `enable-tx-size-search` entry +/// below is a live question, not a settled one. +/// /// Each entry is `(tool, spellings, aomenc default, what counts as on)`. The /// "defaulted means unknown" rule of [`NEVER_EXERCISED`] applies unchanged: a /// default of `1` does not prove the encoder picked the tool for any stream, so @@ -168,9 +191,17 @@ const DEFAULT_ON_TOOLS: &[(&str, &[&str], &str, On)] = &[ /// Non-`--enable-*` spellings that drive a [`TOOL_UNIVERSE`] tool. /// -/// `--superres-mode=1` is how all three superres gates switch superres on; +/// `--superres-mode=1` is how every superres gate switches superres on; /// without this map they read as an `enable-superres` hole while a real stream -/// exercises the tool (lane-covbd deferred exactly this). +/// exercises the tool (lane-covbd deferred exactly this). The count was "all +/// three" until 2026-09-29 (lane-av1distwtd r2), which measured SIX gates +/// spelling a nonzero `--superres-mode` (5 among the 146 census-selected +/// bodies, plus `a_superres_census_over_six_real_streams_...`). No count is +/// given here for the same reason as `enable-tx-size-search` above: it rots. +/// Worth noting the alias is the ONLY positive evidence for superres, and +/// those gates do assert arrival -- `superres_hits` / `predict_scaled_hits` +/// are read in five of them -- so this one is a healthy alias, not a +/// spelling-only one. #[cfg(test)] const ALIASES: &[(&str, &str)] = &[("superres-mode", "enable-superres")]; @@ -205,13 +236,61 @@ const NEVER_EXERCISED_8BIT: &[(&str, &str)] = &[ // The existing lane-cwarp compound-warp gates already SPELLED `=1` and // the census still read this entry as open, so the hole was a missing // witness, not a missing flag. + // `enable-dual-filter` -- reason CORRECTED 2026-09-29 (lane-av1distwtd + // r2). The old reason ("never spelled by any gate, so defaulted = + // unknown; no stream is proven to carry per-direction interp filters") + // was FALSE on both halves, and the entry does not describe a coverage + // hole at all: + // - it IS spelled, as `=0`, by 2 gates + // (`real_aomenc_1to4_streams_...` and + // `a_real_aomenc_inter_sequence_with_32x32_level_1to4_strips_...`), + // so "never spelled" was wrong; + // - a stream IS proven to carry the tool, and the default reaches the + // header. Measured on this oracle (aom 3.13.3) with this crate's own + // parser: one recipe, flag left off the command line, parses + // `dual_filter=true` (6855 B); the same recipe with + // `--enable-dual-filter=0` parses `dual_filter=false` and encodes + // DIFFERENT bytes (6874 B). "Defaulted = unknown" is the right rule + // for a tool whose default may not reach the header; for this one it + // measurably does, so the rule was applied to a premise that does + // not hold. + // The real reason this entry survives: `gate_bodies()` (below) only sees + // a `#[test]`-shaped segment that spells `--passes=1`, + // `ten_bit_tool_gate(` or `encode_10bit_gradients`. A gate that hands + // its recipe to a shared helper keeps its flags in the HELPER, so the + // segment is filtered out and the census never sees the spelling. + // `a_real_aomenc_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact` + // spells `--enable-dual-filter=1` and hard-asserts + // `decode::dual_filter_diff_hits()` moved, which is the arrival assert + // this file's own rule demands ("an explicit `--enable-=1` in a + // gate that then asserts the feature fired"). The tool is exercised. + // Left in place ONLY because deleting it would redden this file's own + // test while the selection blind spot stands -- fixing the filter is a + // census change, out of scope for a claim-correction lane. ( "enable-dual-filter", - "never spelled by any gate, so defaulted = unknown; no stream is proven to carry per-direction interp filters", + "EXERCISED but invisible to this census: a_real_aomenc_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact spells =1 and asserts dual_filter_diff_hits() moved; gate_bodies() filters that gate out because its recipe lives in a shared helper. Delete once the filter counts helper-delegating gates", ), + // `enable-flip-idtx` -- reason CORRECTED 2026-09-29 (lane-av1distwtd r2). + // "never spelled" is FALSE: TWO gates spell `--enable-flip-idtx=1`, and + // one of them is exactly the gate the 10-bit list's own comment names + // (`a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_decodes_pixel_exact`, + // which hard-asserts `compared_class1 > 0` -- "--enable-flip-idtx=1 never + // produced a V_DCT/H_DCT transform on a compared attempt"). That comment + // claims the gate passes `=1` "at both depths", and MEASURED run of it: + // 12 pixel-exact decodes, 6 of them 10-bit (so 6 at 8 bits), 219 rect + // coefficient TUs on compared attempts of which 10 carry a 1D tx class. + // So the 1D transform types are proven to reach a real 8-bit stream this + // decoder reconstructs exactly. + // It survives at 8 bits purely as a classification artefact: the gate + // builds both depths from one `ten_bit` recipe, `is_ten_bit` sees the + // `yuv420p10le` in its conditional and files it 10-bit-ONLY, and + // `covers_both_depths` recognises only "if bit_depth == 10" / "if depth + // == 10" / "for depth in [8usize, 10]" -- the lane-defon/reelckf blind + // spot its own doc comment describes, reached through a third spelling. ( "enable-flip-idtx", - "never spelled; the flip/identity transform types are unproven by a real stream", + "EXERCISED at 8 bits: a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_decodes_pixel_exact spells =1, asserts tx_class1_hits moved, and 6 of its 12 pixel-exact decodes are 8-bit (measured). Mis-filed 10-bit-only by is_ten_bit, which covers_both_depths cannot see through a `ten_bit` recipe", ), // `enable-global-motion` LEFT this list on 2026-09-25 (lane-av1gwarp12 r2): // `a_real_affine_global_motion_stream_decodes_pixel_exact` loops @@ -221,6 +300,23 @@ const NEVER_EXERCISED_8BIT: &[(&str, &str)] = &[ // containing both the gate and this test until the ROTZOOM suite. // The 12-bit ROTZOOM gate rides the high-depth bucket via `encode_12bit(` // in `is_ten_bit`, so it plays no part in this retirement. + // `enable-rect-tx` -- reason RE-VERIFIED 2026-09-29 (lane-av1distwtd + // r2), both halves still TRUE, and the second half is now PROVEN rather + // than asserted. (1) "never spelled": measured across all 146 + // census-selected gate bodies, zero spell `--enable-rect-tx` at either + // depth -- the only `--enable-*` tool in [`TOOL_UNIVERSE`] with no + // spelling anywhere. (2) "reach the decoder only through partition + // shape": aom 3.13.3 has no sequence-header bit for it. `enable_rect_tx` + // is an `AV1E_SET_ENABLE_RECT_TX` encoder-search control + // (`av1_cx_iface.c:2125`, copied to `txfm_cfg->enable_rect_tx` at + // `av1_cx_iface.c:1483`) and is read ONLY inside `tx_search.c` + // (lines 2568/2662/2686/2710/2956); `bitstream.c` writes no such bit, and + // this crate's `SequenceHeader` (`ec-av1-syntax/src/sequence.rs`) has no + // such field. The decoder's own gate is `is_rect_tx_allowed`, derived + // from partition shape -- exactly what this reason says. A gate can + // therefore never prove this tool by naming the flag, only by proving a + // rect transform unit fired (`rect_partition_hits` / + // `rect_coeff_tu_hits`, which lane-rect1d's gate does assert). ( "enable-rect-tx", "never spelled; rect transforms reach the decoder only through partition shape, never through a gate that names the tool", @@ -236,10 +332,16 @@ const NEVER_EXERCISED_10BIT: &[(&str, &str)] = &[ // `enable-rect-partitions` and `enable-restoration` at 10 bits. All five // deleted together. - // Only 4 of the 45 real-aomenc gates encode at 10 bits, and they pin the - // pixel filters and the intra tool set off. Every entry the 8-bit list - // carries is a hole here too. lane-hbdgates r1 closed six of the seven - // 8-bit-only entries with real 10-bit gates (filter-intra, smooth-intra, + // The "Only 4 of the 45 real-aomenc gates encode at 10 bits" sentence that + // stood here is STALE (lane-av1distwtd r2, 2026-09-29), and understated + // the high-depth bucket by more than an order of magnitude. Measured + // against this tree with `gate_bodies()`' own filter: 146 selected gate + // bodies, of which 83 are classified 10-bit-or-higher by `is_ten_bit`. + // The historical point stands -- those gates pin the pixel filters and + // the intra tool set off far more often than not -- but the counts a + // reader would check them against no longer exist. + // Every entry the 8-bit list carries is a hole here too. lane-hbdgates r1 + // closed six of the seven 8-bit-only entries with real 10-bit gates // paeth-intra, intra-edge-filter, rect-partitions, ab-partitions); its // seventh, the 10-bit LR gate, was `#[ignore]`d on that branch and passes // un-ignored on main, which carries the fix. @@ -252,9 +354,26 @@ const NEVER_EXERCISED_10BIT: &[(&str, &str)] = &[ // gate passes `=1` for both. `enable-1to4-partitions` left it on 2026-09-02: // lane-tx64x16 r4's 32-level 1:4 gate has a 10-bit arm that asserts both // orientations and coded strips inside pixel-exact attempts. + // `enable-dual-filter` -- reason CORRECTED 2026-09-29 (lane-av1distwtd + // r2). "hole at both depths, see the 8-bit list" inherited the 8-bit + // entry's false "never spelled" claim. The same named gate + // (`a_real_aomenc_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact`) + // spells `--enable-dual-filter=1` and hard-asserts + // `dual_filter_diff_hits()` moved; it is simply invisible to + // `gate_bodies()` because its recipe lives in a shared helper. Same + // entry, same cause, both depths. + // The two numbers in the `enable-flip-idtx` retirement below are + // RE-MEASURED 2026-09-29 (lane-av1distwtd r2) by running the gate, and + // both still hold exactly: "pixel-compares six 10-bit decodes" (the run + // reports 12 pixel-exact decodes, 6 of them 10-bit) and "10 of its rect + // coefficient TUs carry a 1D tx class" (the run reports 219 rect + // coefficient TUs on compared attempts, 10 of them 1D). The gate also + // hard-asserts `compared_class1 > 0`, so the claim that it "passes =1 at + // both depths" is backed by an arrival assert, not just a spelling -- + // which is what makes the 8-bit entry's "never spelled" untenable. ( "enable-dual-filter", - "hole at both depths, see the 8-bit list", + "EXERCISED but invisible to this census, at both depths -- see the 8-bit entry: a_real_aomenc_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact spells =1 and asserts dual_filter_diff_hits() moved, and gate_bodies() filters it out", ), // `enable-flip-idtx` LEFT this list on 2026-09-02 (lane-rect1d r1): // `a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_decodes_pixel_exact` diff --git a/lanes/av1distwtd.report.md b/lanes/av1distwtd.report.md new file mode 100644 index 00000000..3359334c --- /dev/null +++ b/lanes/av1distwtd.report.md @@ -0,0 +1,120 @@ +# lane-av1distwtd + +Two rounds on one branch (`lane-av1distwtd`, base `a21f3680`). + +- **r1** — close the `enable-dist-wtd-comp` coverage hole. +- **r2** — audit every CLAIM in `gate_coverage.rs` against the code and correct + the false ones (appended below). + +--- + +## r1: `enable-dist-wtd-comp` + +`PRODUCIBLE`. The census entry's stated reason — "distance-weighted compound is +unimplemented" — was **false**: `compound::dist_wtd_comp_weight_assign` +(lane-av1comp) and `mc::combine_compound`'s weighted path have implemented it for +a long time. What was missing was a stream *carrying* the tool, so no gate ever +proved it fired. + +Closed with a witness gate `a_distance_weighted_compound_stream_decodes_pixel_exact` +(25 oracle frames, 21 distance-weighted blocks, pixel-exact) plus the +`gate_coverage.rs` entry deletion, commit `9cca1096`. See that commit message for +the full red-before evidence. + +**12-bit / single-ref:** unaffected. 12-bit reaches the same arm independently +(15 blocks measured); single-ref never reads `compound_idx` at all. + +--- + +# r2 appendix: gate_coverage.rs claim audit + +Every claim checked against the code, not against prose. Method per claim: +find the deciding symbol and follow the call path from the feature-flag parse to +the reconstruction site; for encoder claims, read `~/.cache/aom-oracle/src` +(aom 3.13.3, `CONFIG_REALTIME_ONLY 0`) rather than `--help`; where a stream was +needed, encode one and read the **parsed** header, never the flag. + +## Evidence table + +| # | entry / claim (file:line) | stated reason | verdict | deciding code | what it should say | +|---|---|---|---|---|---| +| 1 | `enable-dist-wtd-comp` 8-bit (retired r1, commit `9cca1096`) | "unimplemented" | **FALSE** (r1) | `compound.rs:36 dist_wtd_comp_weight_assign`; `mc.rs:2075 combine_compound` | retired; combine long implemented, witness gate added | +| 2 | `enable-dist-wtd-comp` encoder default (`:5`) | "off in 11 gates" implies encoder default off | **FALSE** | `av1_cx_iface.c` `default_extra_cfg` = 1; `bitstream.c:2681` writes it | default is ON; the 11 gates pinned it `=0` themselves | +| 3 | `enable-dual-filter` 8-bit (`:270`) | "never spelled by any gate … no stream proven to carry per-direction interp filters" | **FALSE** | gate `a_real_aomenc_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact` spells `=1` and asserts `dual_filter_diff_hits()` (`decode.rs:35135`); default parses `dual_filter=true` | EXERCISED; census can't see it (helper-delegation filter) | +| 4 | `enable-dual-filter` 10-bit (`:374`) | "hole at both depths" | **FALSE** | same gate as #3 | same as #3, both depths | +| 5 | `enable-flip-idtx` 8-bit (`:291`) | "never spelled" | **FALSE** | gate `a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_decodes_pixel_exact` spells `=1`, asserts `tx_class1_hits` | EXERCISED at 8 bits (6 of 12 measured decodes are 8-bit) | +| 6 | `enable-flip-idtx` 10-bit numbers (`:366`) | "six 10-bit decodes", "10 rect TUs 1D" | **TRUE** (re-measured) | ran the gate: 12 decodes, 6 ten-bit, 219 rect TUs, 10 of them 1D | keep (now backed by an arrival assert) | +| 7 | `enable-rect-tx` 8-bit (`:320`) | "never spelled; reached only via partition shape" | **TRUE** | 0 gates spell it; aom has no header bit — `av1_cx_iface.c:2125/1483` is search-only, read only in `tx_search.c`; decoder gate is `is_rect_tx_allowed` | keep; now proven, not asserted | +| 8 | `enable-rect-tx` 10-bit (`:395`) | "hole at both depths" | **TRUE** | same | keep | +| 9 | `enable-cfl-intra` 8-bit comment (`:190`) | "gate passes `=1` at 8 AND 10 bits, pixel-compares both arms" | **TRUE** | gate `a_real_aomenc_sb128_stream_whose_skipped_cfl_and_1to4_chroma_pairs_...` loops `for depth in [8usize, 10]`, spells `=1`, asserts `dir_pairs > 0` | keep | +| 10 | same gate, name says "skipped_cfl" | — | **NOTE** | that gate asserts directional 1:4 pairs, **not** skipped-CfL; skipped-CfL evidence is a *different* gate (`a_real_film_key_frame_with_a_skipped_cfl_block_...`) | name overstates; comment doesn't repeat the error | +| 11 | `enable-intrabc` 10-bit comment (`:~336`) | "hard-asserts a decoded intrabc block per depth" | **TRUE** | `an_sb128_screen_stream_with_intrabc_...` asserts `blocks_total > 0 && fired_arms > 0` | keep | +| 12 | `enable-intrabc` NEVER_EXERCISED header (`:45`) | "counter asserted > 0" | **TRUE** | `a_real_aomenc_screen_key_frame_reads_use_intrabc_on_rect_strips` asserts `blocks_total > 0 && fired_arms > 0` | keep | +| 13 | `enable-restoration` 10-bit comment (`:311`) | "asserts a real Wiener/SGR unit fired" | **TRUE** | `a_real_aomenc_10bit_restoration_stream_...` asserts `lr_stripe0_hits`/`lr_last_stripe_hits` | keep | +| 14 | `enable-1to4-partitions` 10-bit comment (`:317`) | "10-bit arm asserts both orientations and coded strips" | **TRUE** | `a_real_aomenc_10bit_..._1to4...` gates assert `rect4_coeff_hits`/orientation counters | keep | +| 15 | `enable-global-motion` 8-bit comment (`:264`) | "loops `for depth in [8u32, 10u32]`" | **TRUE** | `a_real_affine_global_motion_stream_decodes_pixel_exact`; `covers_both_depths` recognises that exact spelling | keep | +| 16 | `DEFAULT_ON_TOOLS` doc (`:123`) | "all 49 gates that name it pass `--enable-tx-size-search=0`" | **STALE** | 113 of 146 name it: 88 `=0`, 15 `=1`, 9 via `format!` | claim no longer holds either way; count removed, not replaced | +| 17 | module doc (`:5`) | "a flag off the line takes aomenc's default (on …)" | **TRUE but misleading** | default is 1, but palette/intrabc are content-gated (`encoder.c:2079`) and `speed_features.c` re-masks per cpu-used | reworded: default = *allowed*, not *arrived* | +| 18 | module doc TILING (`:25`) | "13 gates … assert the parsed `tile_info`" | **STALE** | 19 gates spell nonzero tile log2; 9 assert in-body, 10 delegate to a helper that asserts | reworded to the measured split | +| 19 | `ALIASES` (`:194`) | "all three superres gates" | **STALE (undercount)** | 6 gates spell nonzero `--superres-mode`; 5 read `superres_hits`/`predict_scaled_hits` | count removed (rots); alias marked healthy | +| 20 | 10-bit list header (`:335`) | "Only 4 of the 45 real-aomenc gates encode at 10 bits" | **STALE** | 83 of 146 selected bodies are 10-bit-or-higher | reworded with the measured figure | +| 21 | `DEFAULT_ON_TOOLS` default column (`:135-181`) | `1` for tx-size-search / directional-intra / smooth-interintra / interintra-wedge / diff-wtd-comp / onesided-comp | **TRUE** | `default_extra_cfg` (non-RT array) is 1 for all six; `CONFIG_REALTIME_ONLY 0` | keep | +| 22 | `DEFAULT_ON_TOOLS` `deblocking`/`multi-tile`/`fwd-kf` defaults (`:181-189`), `multi-tile` `0`, `fwd-kf` `0` | — | **TRUE** | `LOOPFILTER_ALL` (non-zero), `tile_columns/rows = 0`, `fwd_kf = 0` | keep | +| 23 | NEVER_EXERCISED doc (`:46`) | "palette and intrabc only come on for screen content" | **TRUE** | `encoder.c:2079` `allow_screen_content_tools` from block counts; `seq_force_screen_content_tools` adaptive | keep | + +## Claims-a-gate spot check (class: a passing gate that never reaches the feature) + +Main's "one level down" class. Each entry naming a gate was checked against that +gate's own asserts: + +| entry | gate named | gate exists | gate asserts the firing | verdict | +|---|---|---|---|---| +| dist-wtd (r1) | `a_distance_weighted_compound_stream_...` | yes | yes — `dist_wtd_comp_hits() > 0` | **VERIFIED** | +| dual-filter | `a_real_aomenc_dual_filter_obmc_8x8_...` | yes | yes — `dual_filter_diff_hits() > before` | **VERIFIED** (census blind to it) | +| flip-idtx | `a_real_aomenc_stream_with_a_1d_tx_class_...` | yes | yes — `compared_class1 > 0` | **VERIFIED** | +| cfl-intra | `a_real_aomenc_sb128_stream_whose_skipped_cfl_...` | yes | yes — `dir_pairs > 0` (not skipped-CfL) | **VERIFIED for 1:4 pairs; GAP for the name's skipped-CfL** | +| intrabc | `an_sb128_screen_stream_with_intrabc_...` | yes | yes — `blocks_total > 0 && fired_arms > 0` | **VERIFIED** | +| restoration | `a_real_aomenc_10bit_restoration_stream_...` | yes | yes — `lr_*_hits` | **VERIFIED** | +| superres (alias) | 5 superres gates | yes | yes — `superres_hits`/`predict_scaled_hits` | **VERIFIED** | +| global-motion | `a_real_affine_global_motion_...` | yes | yes — affine GM counter | **VERIFIED** | + +**GAP (one):** no gate in the tree names `enable-rect-tx`, because the tool has no +header bit and no flag-shaped decoder gate — a *structural* gap, correctly +described by entry #7, not a broken gate. + +## The two structural census defects this audit exposed + +Both are stated in the corrected comments but are **census logic**, deliberately +NOT changed in this lane (the brief forbids behaviour changes; the entry deletions +are left in place so the file's own tests stay green): + +1. **`gate_bodies()` helper-delegation blind spot** (`gate_coverage.rs:421`). + The filter keeps only a `#[test]`-shaped segment containing `--passes=1` / + `ten_bit_tool_gate(` / `encode_10bit_gradients`. A gate that hands its recipe + to a shared helper keeps the flags in the *helper*, so the whole gate is + invisible. Measured: 165 of 311 segments are filtered out, and 6 of those + spell at least one `--enable-X=1` — including both gates that prove + `enable-dual-filter` (#3, #4). This is why two live entries are wrong. + +2. **`covers_both_depths` blind spot, third spelling** (`gate_coverage.rs:599`). + It recognises only `if bit_depth == 10` / `if depth == 10` / + `for depth in [8usize, 10]`. `a_real_aomenc_stream_with_a_1d_tx_class_...` + builds both depths from a `ten_bit` recipe, so `is_ten_bit` sees the + `yuv420p10le` and files it 10-bit-ONLY — hiding its 8-bit arm and keeping the + 8-bit `enable-flip-idtx` entry alive (#5). This is the lane-defon/reelckf blind + spot the function's own doc comment describes, reached through a new spelling. + +**Loud, for the coverage matrix:** entries `enable-dual-filter` (8-bit `:270`, +10-bit `:374`) and `enable-flip-idtx` (8-bit `:291`) are **stale coverage holes** +— the tools are exercised by gates with hard arrival asserts. The census is +wrong, not the coverage. If another lane's matrix counts these as open cells, +that matrix overstates the holes. Correcting the two structural defects above +would let all three entries be deleted and this file's own test stay green. + +## What changed in this lane + +`crates/ec-av1/src/gate_coverage.rs` only, and the diff is **comment/reason-text +only**: verified — the only non-comment lines changed are 3 entry *reason +strings* (`gate_coverage.rs:272, 293, 376`). No flag name, entry membership, +counter, gate, or decoder behaviour was touched. All 9 `gate_coverage` tests +green after the change. No stream, gate, or counter behaviour altered, per brief.