lanes: wave-3c-a merge report -- two branches in, fixlib held, census sweep
Browse files at this commit90e4e6ef6451adcf18981ff35fe79ca320dffd81Parent: d48c08a1 changed file +464 -0
lanes/av1merge-wave3c-a.report.mdadded+464 -0
| @@ -0,0 +1,464 @@ | |||
| 1 | +# Merge wave 3c-a — lm444loss-corr, oraclehbd (fixlib HELD) | ||
| 2 | + | ||
| 3 | +Integration owner run. Pre-wave `main` = `c6112723` (wave-3b merge report). | ||
| 4 | +Post-wave `main` = `6c1d78a6`. Lane-private | ||
| 5 | +`CARGO_TARGET_DIR=/home/user/.cache/tgt/merge3ca` for every cargo | ||
| 6 | +invocation in this wave (the shared `target/` has served another worktree's | ||
| 7 | +stale binary four times this batch). | ||
| 8 | + | ||
| 9 | +Nothing was pushed. | ||
| 10 | + | ||
| 11 | +## 1. Per-branch table | ||
| 12 | + | ||
| 13 | +| # | branch | merge-base | tip merged | merge commit | predicted | actual | `cargo check -p ec-av1 --all-targets` | | ||
| 14 | +|---|---|---|---|---|---|---|---| | ||
| 15 | +| 1 | `lane-av1lm444loss-corr` | `c6112723` (= pre-wave main) | `b3033a2a` | `879c11e2` | clean (`93dec078`) | clean, no conflict | Finished, 0 warnings | | ||
| 16 | +| 2 | `lane-av1oraclehbd` | `3eec02c8` | `4fcbe5ad` | `8667050b` | clean (`00336264`, re-predicted as `c2fc779b` against the post-#1 main) | clean, no conflict | Finished, 0 warnings | | ||
| 17 | +| 3 | `lane-av1fixlib` | `0dfdf0c8` | `3be839be` | **NOT MERGED — held by Main mid-wave** | — | — | — | | ||
| 18 | +| 4 | `lane-av1fixtureshape` | — | `c1cf1758` | **not merged separately: subsumed (§5)** | — | — | — | | ||
| 19 | + | ||
| 20 | +Blast radius as merged, each merge diffed against its own first parent: | ||
| 21 | + | ||
| 22 | +``` | ||
| 23 | +879c11e2 crates/ec-av1/fixtures/ll444_intrabc_rect_l2.obu | Bin 0 -> 121844 bytes | ||
| 24 | + crates/ec-av1/src/decode.rs | 21 +- | ||
| 25 | + crates/ec-av1/src/stream.rs | 146 ++++++++ | ||
| 26 | + lanes/av1lm444loss-corr.report.md | 408 ++++++++++++++++++ | ||
| 27 | + 4 files changed, 574 insertions(+), 1 deletion(-) | ||
| 28 | + | ||
| 29 | +8667050b lanes/av1oraclehbd.report.md | 426 ++++++++++++++++++++++++++++ | ||
| 30 | + scripts/check-aom-oracle-rungs.sh | 92 ++++++++++++ | ||
| 31 | + scripts/instrument-aom-oracle.sh | 172 ++++++++++++++++ | ||
| 32 | + 3 files changed, 690 insertions(+) | ||
| 33 | +``` | ||
| 34 | + | ||
| 35 | +Branch #2's tip MOVED between the `merge-tree` prediction and the merge | ||
| 36 | +(`e16329a6` → `4fcbe5ad`, a report-only commit documenting the zero-window | ||
| 37 | +oracle swap: `lanes/av1oraclehbd.report.md | 128 +++`). The script content is | ||
| 38 | +byte-identical between the two tips, so the clean prediction still held for the | ||
| 39 | +code; the whole branch landed in one merge commit and its second parent is the | ||
| 40 | +new tip `4fcbe5ad`. | ||
| 41 | + | ||
| 42 | +## 2. Conflicts and how each was resolved | ||
| 43 | + | ||
| 44 | +**There were none in either merge.** Both `git merge-tree --write-tree` | ||
| 45 | +predictions returned a tree id with no conflict list, and both real `--no-ff` | ||
| 46 | +merges auto-resolved with zero hunks. Per `skill://multi-lane-branch-merge-resolve` | ||
| 47 | +a clean auto-merge is not evidence of a clean merge, so | ||
| 48 | +`cargo check -p ec-av1 --all-targets` ran after EACH merge (`src/lib.rs` | ||
| 49 | +touched first so the check could not serve a cache), and a `--list` plus a | ||
| 50 | +full name-set comparison ran after the second. | ||
| 51 | + | ||
| 52 | +**One integration fix was still required** — a defect the lane introduced that | ||
| 53 | +only shows on the merged tree, because the guard that catches it landed in the | ||
| 54 | +preceding wave (`b1a462fa`, wave 3b). | ||
| 55 | + | ||
| 56 | +`lane-av1lm444loss-corr`'s new gate guarded its pixel compare with a bare | ||
| 57 | +`aomdec_path().is_file()`. The oracle-presence scan merged in wave 3b | ||
| 58 | +(`7a865ee7`) rejects exactly that shape outside the probe that owns it: | ||
| 59 | + | ||
| 60 | +``` | ||
| 61 | +gate_coverage::tests::no_tool_presence_check_outside_its_probe | ||
| 62 | + oracle-presence scan: 8 site(s) inspected, 7 in a probe / assert / comment, 1 offender(s); | ||
| 63 | + per pattern {"affine_aomenc_path().is_file()": 1, "aomdec_path().is_file()": 6, "aomenc_path().is_file()": 1} | ||
| 64 | + 1 bare tool presence check(s) outside a probe | ||
| 65 | + stream.rs:7271: if aomdec_path().is_file() { | ||
| 66 | +test result: FAILED. 28 passed; 1 failed; 0 ignored; 0 measured; 720 filtered out | ||
| 67 | +``` | ||
| 68 | + | ||
| 69 | +A bare `is_file()` skips the compare with **no env escape**, so under | ||
| 70 | +`EC_AV1_REQUIRE_AOMENC=1` the gate would still report green with the oracle | ||
| 71 | +compare never run — the "unreadable gate is unproven, not clean" class. The | ||
| 72 | +resolution routes the arm through the probe that owns the path, | ||
| 73 | +`aomdec_available(NAME)`, which carries both the env-escape assertion and the | ||
| 74 | +SKIP line, and drops the hand-rolled `else` arm rather than keeping it | ||
| 75 | +alongside. Committed as its own commit, not folded into the merge, so it stays | ||
| 76 | +separately reviewable and separately revertable: | ||
| 77 | + | ||
| 78 | +`6c1d78a6 wave-3c-a: route the lm444loss-corr gate's oracle arm through aomdec_available` | ||
| 79 | + | ||
| 80 | +## 3. Branch 1 — `lane-av1lm444loss-corr` | ||
| 81 | + | ||
| 82 | +Claim: one expression in `decode.rs::decode_intrabc_rect`'s lossless chroma | ||
| 83 | +tail replay, `ur * (4 >> ss_y)` → `ur * ((4 << ss_y)/MI)`. | ||
| 84 | + | ||
| 85 | +### Structural checks | ||
| 86 | + | ||
| 87 | +| check | required | measured | verdict | | ||
| 88 | +|---|---|---|---| | ||
| 89 | +| `INTRABC_RECT_LOSSLESS_CHROMA4_HITS` occurrences in `decode.rs` | survive at 6 | 6 on pre-wave main, 6 on the branch tip, 6 on the merged tree | PASS | | ||
| 90 | +| `decode_intrabc_rect`'s `ll_chroma` replay tail | byte-identical | the whole-file `decode.rs` delta pre-wave→merged is 1 removed line + 20 added lines: the single step expression plus its 19-line comment. Nothing else in the file moves. | PASS | | ||
| 91 | +| new gate exists exactly once | 1 | 1 `fn` definition (`stream.rs:7233`), 1 registration in `--list`; 2 textual hits = the `fn` + its `const NAME` | PASS | | ||
| 92 | +| gate non-vacuous | — | mutation reproduced red on the merged tree, then restored green | PASS | | ||
| 93 | + | ||
| 94 | +The complete evidence for "one expression" is the whole-file delta: | ||
| 95 | + | ||
| 96 | +``` | ||
| 97 | +$ diff <(git show c6112723:crates/ec-av1/src/decode.rs) crates/ec-av1/src/decode.rs | ||
| 98 | +< (mi_r + ur * (4 >> ss_y(fctx)), mi_c + uc * (4 >> ss_x(fctx))), | ||
| 99 | +> // lane-av1lm444loss-corr: the MI STEP between chroma units is that same | ||
| 100 | +> // footprint expressed in luma mi cells, `(4 << ss) / MI` ... (19 lines) ... | ||
| 101 | +> (mi_r + ur * ((4 << ss_y(fctx)) / MI), | ||
| 102 | +> mi_c + uc * ((4 << ss_x(fctx)) / MI)), | ||
| 103 | +``` | ||
| 104 | + | ||
| 105 | +### The `(0,0,8)` shape assert | ||
| 106 | + | ||
| 107 | +The gate's first assertion reads the stream's **own parsed sequence header** and | ||
| 108 | +requires `(subsampling_x, subsampling_y, bit_depth) == (0, 0, 8)`. That is a | ||
| 109 | +shape gate, not a hole. The reasoning is arithmetic: at ss (1,1) the replaced | ||
| 110 | +`4 >> 1` and the new `(4 << 1) / 4` are both the integer 2, so a 4:2:0 stream | ||
| 111 | +cannot make this gate fail — every other assertion in it would pass on a stream | ||
| 112 | +that cannot exercise the corrected step. The assert makes that non-failure | ||
| 113 | +explicit instead of silent. 4:2:0 coverage is the arithmetic plus the scoped | ||
| 114 | +battery in the next paragraph, not a 4:2:0 arm of this gate (a floor-on-wrong- | ||
| 115 | +output assert there would be theatre). | ||
| 116 | + | ||
| 117 | +### Non-vacuity, measured on the MERGED tree | ||
| 118 | + | ||
| 119 | +``` | ||
| 120 | +$ EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib -- \ | ||
| 121 | + a_lossless_444_intrabc_rect_replay_steps_by_the_units_own_mi_footprint | ||
| 122 | +test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 748 filtered out; finished in 0.56s | ||
| 123 | + | ||
| 124 | +# MUT corr: put `4 >> ss_y` / `4 >> ss_x` back into decode.rs | ||
| 125 | +MUT applied | ||
| 126 | +thread 'stream::tests::a_lossless_444_intrabc_rect_replay_steps_by_the_units_own_mi_footprint' | ||
| 127 | + panicked at crates/ec-av1/src/stream.rs:9592:17: | ||
| 128 | +a_lossless_444_intrabc_rect_replay_steps_by_the_units_own_mi_footprint: decode-order frame 0 of 6 | ||
| 129 | + (6 shown, 0 hidden) differs from the oracle at byte 33216 (ours 101 vs 100), 10604 bytes differ | ||
| 130 | +test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 748 filtered out | ||
| 131 | +MUT_EXIT=101 | ||
| 132 | + | ||
| 133 | +# restore | ||
| 134 | +RESTORED byte-identical # diff -q against the pre-mutation copy | ||
| 135 | +$ grep -c 'MUT corr' crates/ec-av1/src/decode.rs | ||
| 136 | +0 | ||
| 137 | +$ git status --porcelain # (empty) | ||
| 138 | +test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 748 filtered out | ||
| 139 | +``` | ||
| 140 | + | ||
| 141 | +The mutation reproduces the lane's own numbers exactly — **10604** bytes differ, | ||
| 142 | +first at **byte 33216**, in the **key** frame, on a luma sample. That is the | ||
| 143 | +signature of a chroma-context defect: the wrongly-placed stamps corrupt the | ||
| 144 | +`txb_skip_ctx` the next unit reads, the tile desyncs, and the samples that move | ||
| 145 | +first are whichever block comes next in luma. The gate bites, on the merged | ||
| 146 | +tree, not only in the lane's worktree. | ||
| 147 | + | ||
| 148 | +### Fixture pin provenance | ||
| 149 | + | ||
| 150 | +``` | ||
| 151 | +$ sha256sum crates/ec-av1/fixtures/ll444_intrabc_rect_l2.obu | ||
| 152 | +f0de080edce35d34cdd628b71f63dc452f946e8328352b69d3c1da090a54ec67 (121844 bytes) | ||
| 153 | +``` | ||
| 154 | + | ||
| 155 | +Matches the report's claimed sha256 and size, and the gate's own | ||
| 156 | +`read_pin(&obu, 121844, 0x38bf_968e_979c_7a0a, NAME)` passed, so the FNV hash | ||
| 157 | +in the gate is this pin's. TRACKED, not merely on disk: | ||
| 158 | + | ||
| 159 | +``` | ||
| 160 | +$ git ls-tree -r HEAD crates/ec-av1/fixtures/ll444_intrabc_rect_l2.obu | ||
| 161 | +100644 blob 601adaa24413ad370d4e03c5f9672e7ca6a70ef0 crates/ec-av1/fixtures/ll444_intrabc_rect_l2.obu | ||
| 162 | +``` | ||
| 163 | + | ||
| 164 | +Whole-directory grouping of `crates/ec-av1/fixtures` by blob sha is empty: no | ||
| 165 | +two committed fixtures are byte-identical under different names. | ||
| 166 | + | ||
| 167 | +### Scoped gate runs (final merged tree, after the §2 fix) | ||
| 168 | + | ||
| 169 | +``` | ||
| 170 | +$ cargo test -p ec-av1 --lib -- lossless 444 intrabc | ||
| 171 | +test result: ok. 64 passed; 0 failed; 1 ignored; 0 measured; 684 filtered out; finished in 26.47s | ||
| 172 | +``` | ||
| 173 | + | ||
| 174 | +**64 passed / 0 failed / 1 ignored** — the expected triple exactly. | ||
| 175 | + | ||
| 176 | +The second scoped run needs a note, because its expected number is not | ||
| 177 | +reproducible on today's roster: | ||
| 178 | + | ||
| 179 | +``` | ||
| 180 | +$ cargo test -p ec-av1 --lib -- frame_edge partial edge odd lossless --skip 444 | ||
| 181 | +test result: ok. 44 passed; 0 failed; 0 ignored; 0 measured; 705 filtered out; finished in 137.65s | ||
| 182 | +``` | ||
| 183 | + | ||
| 184 | +**44 passed / 0 failed**, not 17. The filter is the lane's own definition of | ||
| 185 | +the set, quoted from the superseded `lanes/av1lm444loss.report.md:236` — "4:2:0 | ||
| 186 | +lossless + frame-edge gates (17 scoped: `frame_edge`, `partial`, `edge`, `odd`, | ||
| 187 | +`lossless`, non-444)" — with the non-444 clause applied as `--skip 444`. Both | ||
| 188 | +the lane report and the assignment carry "17", but neither enumerates the 17 | ||
| 189 | +names, and no narrower reading of that scope reproduces 17 on the current tree: | ||
| 190 | +the same filter restricted to `stream::tests::` yields 23, to | ||
| 191 | +`stream::tests::` + (frame_edge|lossless) yields 15, `frame_edge` alone yields 12, | ||
| 192 | +`stream::tests::` + lossless yields 8. The "17" is inherited prose from a | ||
| 193 | +superseded lane's report and the roster has grown since. The 44-gate run is a | ||
| 194 | +strict superset of every candidate 17, and it is green, so the intent the number | ||
| 195 | +stood for — no 4:2:0 lossless or frame-edge regression from the corrected step — | ||
| 196 | +is met with a wider measurement than asked for. | ||
| 197 | + | ||
| 198 | +## 4. Branch 2 — `lane-av1oraclehbd` | ||
| 199 | + | ||
| 200 | +Claim: oracle INSTRUMENTATION + scripts only; no gate touched; the shared oracle | ||
| 201 | +untouched. | ||
| 202 | + | ||
| 203 | +### Surface | ||
| 204 | + | ||
| 205 | +``` | ||
| 206 | +$ git diff --name-only 3eec02c8 4fcbe5ad | ||
| 207 | +lanes/av1oraclehbd.report.md | ||
| 208 | +scripts/check-aom-oracle-rungs.sh | ||
| 209 | +scripts/instrument-aom-oracle.sh | ||
| 210 | + | ||
| 211 | +$ git diff --name-only 3eec02c8 4fcbe5ad | grep -c '\.rs$' | ||
| 212 | +0 | ||
| 213 | +``` | ||
| 214 | + | ||
| 215 | +No `.rs` file is touched, and no fixture is regenerated. The merge against | ||
| 216 | +`main` re-confirms it on the merged tree: | ||
| 217 | + | ||
| 218 | +``` | ||
| 219 | +$ git diff --name-only 879c11e2 8667050b | grep '\.rs$' | ||
| 220 | +(no output) | ||
| 221 | +``` | ||
| 222 | + | ||
| 223 | +### The checker | ||
| 224 | + | ||
| 225 | +``` | ||
| 226 | +$ bash scripts/check-aom-oracle-rungs.sh | ||
| 227 | +ok legacy u8 row loops left in the derived file 0 | ||
| 228 | +ok ec_dump_narrow_row call sites (4 rungs x 3 planes) 12 | ||
| 229 | +ok ec_dump_finish call sites (one per narrowing rung) 4 | ||
| 230 | +ok byte-count check wired into EC_AV1_PREFILT_DUMP 1 | ||
| 231 | +ok byte-count check wired into EC_AV1_POSTDEBLOCK_DUMP 1 | ||
| 232 | +ok byte-count check wired into EC_AV1_PREFILT_WIDE_DUMP 1 | ||
| 233 | +ok byte-count check wired into EC_AV1_POSTCDEF_DUMP 1 | ||
| 234 | +ok rung 12 still converts plane pointers 1 | ||
| 235 | +ok rung 12 not routed through the narrowing checker 0 | ||
| 236 | +ok instrument-aom-oracle.sh derives the depth-correct, byte-checked rungs (base v3.13.3) | ||
| 237 | +EXIT=0 | ||
| 238 | +``` | ||
| 239 | + | ||
| 240 | +**10 `ok` lines, exit 0**, against a scratch copy of the oracle tree | ||
| 241 | +(`mktemp -d`, `trap rm -rf`), base `v3.13.3` = `92d4c37f`. The script also | ||
| 242 | +asserts idempotency by re-running the instrumenter and `cmp`-ing the derived | ||
| 243 | +file, which is the property the repair block claims. | ||
| 244 | + | ||
| 245 | +### The shared oracle was not written to | ||
| 246 | + | ||
| 247 | +The checker only reads the real tree (`cp -a` into `$WORK`, then the instrumenter | ||
| 248 | +runs with `AOM_ORACLE_SRC=$WORK/src`). Measured before and after: | ||
| 249 | + | ||
| 250 | +``` | ||
| 251 | +$ md5sum ~/.cache/aom-oracle/src/av1/decoder/decodeframe.c ~/.cache/aom-oracle/src/av1/common/reconintra.c | ||
| 252 | +45e316447f7d71e72e466e5d63f76930 .../av1/decoder/decodeframe.c | ||
| 253 | +aab22cb52e6b595d0ee13dd8735b722a .../av1/common/reconintra.c | ||
| 254 | +``` | ||
| 255 | + | ||
| 256 | +Those two files are already dirty in that checkout — that is the lane's own | ||
| 257 | +zero-window swap, reported in its appendix, not this merge. Flagged to whoever | ||
| 258 | +owns the shared-oracle question; the merge did not add to it. | ||
| 259 | + | ||
| 260 | +## 5. Branch 3 — `lane-av1fixlib` — HELD, not merged | ||
| 261 | + | ||
| 262 | +Main's hold arrived mid-wave: `pin-gate-audit.py` matched raw function bodies, | ||
| 263 | +and because `fn_bodies` spans from a gate's `fn` line to the NEXT `fn` line, a | ||
| 264 | +doc comment belonging to the next gate sits inside the previous gate's captured | ||
| 265 | +body. Restoring the golden7 prose therefore reclassified | ||
| 266 | +`pinned_golden4_stream_decodes_pixel_exact` into the root-literal branch, where | ||
| 267 | +it finds no names and is skipped entirely — census `total=8 → 7`, no red | ||
| 268 | +anywhere. Do-not-merge honoured: the branch was not merged and no part of its | ||
| 269 | +work was cherry-picked. | ||
| 270 | + | ||
| 271 | +What was measured anyway, so the go/no-go is data and not a guess. | ||
| 272 | + | ||
| 273 | +### Tip moved during the wave | ||
| 274 | + | ||
| 275 | +`lane-av1fixlib` was `2b4ecf71` when the wave opened and is `3be839be` now. The | ||
| 276 | +new commits are exactly the two that close Main's hold: | ||
| 277 | + | ||
| 278 | +``` | ||
| 279 | +3be839be report: the three-host run on the flipped tree, and the census hole with its control | ||
| 280 | +f4e1ac6b census: comment-stripped matching plus a self-test in the shape that cost a gate | ||
| 281 | +717a5f07 merge Agent01-5's report of the census hole (the crate-side prose restore is already in via 0790e90c) | ||
| 282 | +9e433f02 restore the golden7 doc comment verbatim; the scanner is comment-blind-proof, so the history stays | ||
| 283 | +c1cf1758 lane-av1fixtureshape: report — site 1 is a scanner defect, plus an open census hole that un-counts a gate | ||
| 284 | +0790e90c ec-av1: restore the verbatim forbidden literal in the golden7 doc comment | ||
| 285 | +``` | ||
| 286 | + | ||
| 287 | +### `lane-av1fixtureshape` is SUBSUMED — verified by ancestry | ||
| 288 | + | ||
| 289 | +``` | ||
| 290 | +$ git log --oneline -1 lane-av1fixtureshape | ||
| 291 | +c1cf1758 lane-av1fixtureshape: report — site 1 is a scanner defect, plus an open census hole that un-counts a gate | ||
| 292 | +$ git merge-base lane-av1fixlib lane-av1fixtureshape | ||
| 293 | +c1cf1758eabad8727e317d178b6aaf2129f4d20f | ||
| 294 | +``` | ||
| 295 | + | ||
| 296 | +`c1cf1758` — the fixtureshape tip — **is** the merge base, i.e. it is an | ||
| 297 | +ancestor of `3be839be`. So it is merged, and must not be merged separately. | ||
| 298 | + | ||
| 299 | +Worth recording because the check was FALSE earlier in the wave, and for a | ||
| 300 | +reason worth knowing: against the then-current tip `2b4ecf71` ancestry said | ||
| 301 | +`NOT-SUBSUMED` and `stream.rs` really did differ | ||
| 302 | +(`12cae635` blob `0070f0c4` = reworded, vs `0790e90c` blob `88ec09c7` = | ||
| 303 | +restored). The tip moved, not the conclusion — a lane's subsumption claim must | ||
| 304 | +be re-checked at the tip that will actually be merged, never at the tip quoted | ||
| 305 | +in a message. | ||
| 306 | + | ||
| 307 | +### Main's acceptance line, measured on the branch tip | ||
| 308 | + | ||
| 309 | +Census, with the prose restored (`stream.rs:23981` carries | ||
| 310 | +`literal, which points at the GITIGNORED root`): | ||
| 311 | + | ||
| 312 | +``` | ||
| 313 | +$ git archive lane-av1fixlib | tar -x -C /tmp/3ca_fixlib && cd /tmp/3ca_fixlib | ||
| 314 | +$ python3 scripts/pin-gate-audit.py | tail -1 | ||
| 315 | +COUNT total=8 committed=21 uncommitted=0 ignored=0 assertless=0 | ||
| 316 | +``` | ||
| 317 | + | ||
| 318 | +**`total=8 committed=21 uncommitted=0 ignored=0 assertless=0`** — the required | ||
| 319 | +line, not `7`. The prose-restore hazard is closed. | ||
| 320 | + | ||
| 321 | +Census positive control, the exact shape that cost the gate: | ||
| 322 | + | ||
| 323 | +``` | ||
| 324 | +$ python3 scripts/pin-gate-audit.py --self-test | ||
| 325 | +SELFTEST selftest_a_reads_a_pin crate_pin | ||
| 326 | +SELFTEST selftest_b_reads_a_pin crate_pin | ||
| 327 | +SELFTEST PASS a doc comment between two gates left both counted as crate_pin | ||
| 328 | +SELFTEST_EXIT=0 | ||
| 329 | +``` | ||
| 330 | + | ||
| 331 | +Both gates are classified `crate_pin` across a doc comment that quotes a banned | ||
| 332 | +`concat!` root literal. `f4e1ac6b` also added the scanner-side strip | ||
| 333 | +(`re.sub(r"/\*.*?\*/", ...)`, then a `l.split("//", 1)[0]` per line) to | ||
| 334 | +`pin-gate-audit.py`, and a second strip at line 206 for the `//`-in-body case. | ||
| 335 | + | ||
| 336 | +Preflight, on the real checkout (`~/.cache/wt/av1fixlib`, clean at `3be839be`) — | ||
| 337 | +a `git archive` export is not a valid host because the root `fixtures/` tree is | ||
| 338 | +gitignored and every row then reads missing: | ||
| 339 | + | ||
| 340 | +``` | ||
| 341 | +$ EC_REQUIRE_FIXTURES=1 bash scripts/verify-fixture-library.sh | ||
| 342 | + invariant 1: positive control fired (the scanner can still see a literal) | ||
| 343 | + invariant 1: no root-fixture pin path | ||
| 344 | + invariant 2: every committed pin is tracked | ||
| 345 | + invariant 3: .gitignore negation present | ||
| 346 | + invariant 3: no tracked pin is shadowed by .gitignore | ||
| 347 | + invariant 4: census self-test passed (a comment cannot steal a gate) | ||
| 348 | + invariant 4: every pin-reading gate resolves through committed copies | ||
| 349 | + recovered pins: every recovered-original hash matches | ||
| 350 | + vectors: 3 referenced rows, 0 not ok | ||
| 351 | + drift: manifest rows match the code on this host | ||
| 352 | + code-shape violations: 0 | ||
| 353 | +verify-fixture-library: GREEN (303 rows) | ||
| 354 | +PREFLIGHT_EXIT=0 | ||
| 355 | +``` | ||
| 356 | + | ||
| 357 | +The worktree was still clean afterwards — the preflight wrote nothing. | ||
| 358 | + | ||
| 359 | +### One acceptance claim that needs correcting before the go-ahead | ||
| 360 | + | ||
| 361 | +"`git diff main --stat` shows scripts/ + reports, NOT a second copy of | ||
| 362 | +ec-h264/ec-opus/ec-flac conformance files" is **true in substance, false as | ||
| 363 | +stated**. There is no duplicated copy: the 1054-line | ||
| 364 | +`crates/ec-opus/tests/conformance.rs` edit from `b2d9b195` is gone, and | ||
| 365 | +`ec-h264/tests/conformance.rs` and `ec-flac/tests/xiph_vectors.rs` are gone with | ||
| 366 | +it. But fixlib still carries its own edits in four other conformance test | ||
| 367 | +files, going from main to the tip: | ||
| 368 | + | ||
| 369 | +``` | ||
| 370 | +crates/ec-aac/tests/oracle.rs | 39 +++++++++--- | ||
| 371 | +crates/ec-aac/tests/sbr_real_library.rs | 104 ++++++++++++++++++++++++++++ | ||
| 372 | +crates/ec-flac/tests/encode_matrix.rs | 67 ++++++++++++++++---- | ||
| 373 | +crates/ec-h264/tests/encode.rs | 38 +++++++++++- | ||
| 374 | +``` | ||
| 375 | + | ||
| 376 | +These are in scope for a lane whose charter is "kill the fixture-absent | ||
| 377 | +silent-skip class" — a ~24-line `require_fixture(path, generator)` probe plus | ||
| 378 | +call-site swaps that turn `let Ok(text) = read_to_string(..) else { SKIP }` into | ||
| 379 | +probe → assert → return, so `EC_REQUIRE_FIXTURES=1` hard-fails instead of | ||
| 380 | +skipping. They are not a second copy. Worth stating explicitly in the go/no-go | ||
| 381 | +so the next reader is not surprised by a non-`scripts/` entry in the stat. | ||
| 382 | + | ||
| 383 | +Also spotted, cosmetic: the new probe's doc comment in all four files ships an | ||
| 384 | +unfilled template placeholder, `/// Fixture-presence probe for | ||
| 385 | +`<what this test needs>`.` | ||
| 386 | + | ||
| 387 | +### Verdict on fixlib | ||
| 388 | + | ||
| 389 | +Measured ready against every line Main set — census line exact, positive | ||
| 390 | +control passing, preflight GREEN — but it is **not merged**, because Main's hold | ||
| 391 | +is a decision and not mine to lift. One `git merge-tree --write-tree` predicts | ||
| 392 | +it clean, since fixlib touches `crates/ec-av1/src/stream.rs` (the golden7 doc | ||
| 393 | +comment, `0790e90c`/`9e433f02`) and the four conformance files, and this wave's | ||
| 394 | +own two commits touch `decode.rs`, `stream.rs` and `scripts/` — so the hot-file | ||
| 395 | +overlap to watch is `stream.rs`. `stream.rs` is likely to conflict: this wave | ||
| 396 | +added a gate at the tail of the same test module. | ||
| 397 | + | ||
| 398 | +## 6. Cross-branch sweep | ||
| 399 | + | ||
| 400 | +### Test NAME sets, both directions | ||
| 401 | + | ||
| 402 | +`--list | wc -l` is not a count: libtest also prints a `running 0 tests` line and | ||
| 403 | +a summary line, so pre-wave `wc -l` is 750 for 748 tests. | ||
| 404 | + | ||
| 405 | +| | pre-wave `c6112723` | post-wave `6c1d78a6` | | ||
| 406 | +|---|---|---| | ||
| 407 | +| `wc -l` | 750 | 751 | | ||
| 408 | +| `grep -c ': test$'` | 748 | 749 | | ||
| 409 | +| summary line | `748 tests, 0 benchmarks` | `749 tests, 0 benchmarks` | | ||
| 410 | + | ||
| 411 | +``` | ||
| 412 | +$ comm -23 pre post # REMOVED | ||
| 413 | +(empty) | ||
| 414 | +$ comm -13 pre post # ADDED | ||
| 415 | +stream::tests::a_lossless_444_intrabc_rect_replay_steps_by_the_units_own_mi_footprint: test | ||
| 416 | +$ sort post | uniq -d # duplicate registrations | ||
| 417 | +(empty) | ||
| 418 | +``` | ||
| 419 | + | ||
| 420 | +**Nothing removed, nothing renamed, one addition, no duplicate registration.** A | ||
| 421 | +count alone could not have distinguished this from "+2, −1"; the two | ||
| 422 | +`comm` directions can, and both are reported above. The arithmetic reconciles: | ||
| 423 | +`748 pre + 1 (lm444loss-corr) + 0 (oraclehbd, scripts only) − 0 = 749`. | ||
| 424 | + | ||
| 425 | +The census family, on the merged tree, before and after the §2 fix: | ||
| 426 | + | ||
| 427 | +``` | ||
| 428 | +# before the fix | ||
| 429 | +$ cargo test -p ec-av1 --lib -- gate_coverage refusal_inventory count_vacuity | ||
| 430 | +test result: FAILED. 28 passed; 1 failed; 0 ignored; 0 measured; 720 filtered out | ||
| 431 | + | ||
| 432 | +# after the fix | ||
| 433 | +$ cargo test -p ec-av1 --lib -- gate_coverage refusal_inventory count_vacuity | ||
| 434 | +test result: ok. 29 passed; 0 failed; 0 ignored; 0 measured; 720 filtered out | ||
| 435 | +``` | ||
| 436 | + | ||
| 437 | +Gates the three branches touch: `oraclehbd` touches none (scripts only); | ||
| 438 | +`lm444loss-corr` adds exactly the one named above, run green under | ||
| 439 | +`EC_AV1_REQUIRE_AOMENC=1` and proven red by the mutation in §3. Both `--list` | ||
| 440 | +captures were taken after `touch`ing `stream.rs` and `decode.rs`, because those | ||
| 441 | +tests read compile-time sources and a stale binary would report the previous | ||
| 442 | +tree's census. | ||
| 443 | + | ||
| 444 | +### Fixture-pin hygiene for the wave's new pin | ||
| 445 | + | ||
| 446 | +Covered in §3: the pin is tracked at one blob sha, and no two committed | ||
| 447 | +`crates/ec-av1/fixtures` blobs collide under different names. | ||
| 448 | + | ||
| 449 | +### Foreign/untracked files | ||
| 450 | + | ||
| 451 | +`git status` shows `?? lanes/av1probes.report.md` — a sibling lane's untracked | ||
| 452 | +report. It was NOT staged into any commit in this wave (the wave's three commits | ||
| 453 | +touch only `decode.rs` / `stream.rs` / `scripts/` / the branch reports). It is | ||
| 454 | +flagged here so its owner lands it from their own worktree. | ||
| 455 | + | ||
| 456 | +## 7. Merge commit topology | ||
| 457 | + | ||
| 458 | +``` | ||
| 459 | +6c1d78a6 wave-3c-a: route the lm444loss-corr gate's oracle arm through aomdec_available | ||
| 460 | +8667050b Merge branch 'lane-av1oraclehbd' (2 parents: 879c11e2 4fcbe5ad) | ||
| 461 | +879c11e2 Merge branch 'lane-av1lm444loss-corr' (2 parents: c6112723 b3033a2a) | ||
| 462 | +``` | ||
| 463 | + | ||
| 464 | +Both merges are `--no-ff` with exactly two parents each. Nothing pushed. | ||