lanes/av1testcount: the 13-branch wave reconciled exactly, re-measured
Browse files at this commit1684e95ed552ee6e8aa821f29753666b427a90d3Parent: 585f2031 changed file +161 -0
- lanes/av1testcount.report.md +161 -0
lanes/av1testcount.report.mdadded+161 -0
| @@ -0,0 +1,161 @@ | ||
| 1 | +# lane-av1testcount — test-count census of the 13-branch merge wave | |
| 2 | + | |
| 3 | +**Read-only.** No repository file was edited except this report, which is | |
| 4 | +committed on branch `lane-av1testcount` (worktree `~/.cache/wt/av1testcount`). | |
| 5 | +Every number comes from `cargo test -p ec-av1 --lib -- --list` executed in a | |
| 6 | +throwaway `git worktree` at each commit, in per-batch private | |
| 7 | +`CARGO_TARGET_DIR`s (`~/.cache/cargo-target-tc1..4`) — the shared house target | |
| 8 | +dir is not used, because a shared dir serves a sibling lane's binary and would | |
| 9 | +have made this census a census of someone else's tree | |
| 10 | +(`skill://counterfactual-ab-target-dir-provenance` variant 5). All 15 census | |
| 11 | +worktrees were removed afterwards. | |
| 12 | + | |
| 13 | +**Re-measured 2026-09-30 (lane-breconcile), because main has moved well past | |
| 14 | +`9623bcab` and a reader must not mistake this for a count of TODAY's tests.** | |
| 15 | +Both anchors re-derived from scratch with `cargo test -p ec-av1 --lib -- --list` | |
| 16 | +on fresh `git archive` extracts with private target dirs: | |
| 17 | + | |
| 18 | +``` | |
| 19 | +298f75c4 (pre-merge base) 712 raw --list lines, 712 unique | |
| 20 | +9623bcab (merged main) 742 raw, 742 unique | |
| 21 | +b307aaeb (this tree) 802 raw, 802 unique | |
| 22 | +``` | |
| 23 | + | |
| 24 | +So the load-bearing arithmetic still holds — 712 and 742 are what they were, | |
| 25 | +and they are immutable facts about two immutable commits — but the tree this | |
| 26 | +report's numbers would be compared against is now **802**, not 742. The 13 | |
| 27 | +per-branch tip counts in §1 were NOT re-taken (13 more throwaway builds); they | |
| 28 | +are the lane's own figures and are not re-verified here. What is re-verified is | |
| 29 | +the pair the reconciliation stands on, plus zero duplicate registrations at | |
| 30 | +both anchors, which is the property §2 names. | |
| 31 | + | |
| 32 | +## 1. The two commits | |
| 33 | + | |
| 34 | +| role | commit | subject | | |
| 35 | +|---|---|---| | |
| 36 | +| pre-merge base | `298f75c4` | `gitignore: let per-crate fixture pins be added without -f` | | |
| 37 | +| merged main | `9623bcab` | `Merge lane-av1superpin @ 9646f74d — superres den=9 + mode-2 pins, shared helper, report corrections` | | |
| 38 | + | |
| 39 | +The 13 merges in `298f75c4..9623bcab`, newest first, with the branch tip taken | |
| 40 | +from each merge's second parent: | |
| 41 | + | |
| 42 | +| # | merge | branch | tip | tests at the tip | NEW names vs base | base tests the tip does NOT carry | note | | |
| 43 | +|---|---|---|---|---|---|---|---| | |
| 44 | +| 1 | `9623bcab` | lane-av1superpin | `9646f74d` | 708 | **+4** | **8** | **the tip predates 8 base gates** — see the correction below | | |
| 45 | +| 2 | `afa13bcf` | lane-whtshape | `f541d062` | 717 | +5 | 0 | | | |
| 46 | +| 3 | `9a9e3674` | lane-av1lm444loss | `9249442f` | 713 | +1 | 0 | | | |
| 47 | +| 4 | `764ba257` | lane-av1dualfilter10 | `c2b969c8` | 715 | +3 | 0 | | | |
| 48 | +| 5 | `a5867794` | lane-av1distwtd | `1aaf7e0b` | 714 | +2 | 0 | | | |
| 49 | +| 6 | `7f8817cb` | lane-av1pins | `44a05b40` | 712 | +0 | 0 | | | |
| 50 | +| 7 | `e96de012` | lane-av1superhbd | `a2da03e4` | 717 | +5 | 0 | | | |
| 51 | +| 8 | `b4c45166` | lane-av1tilemeasure | `df1370dd` | 716 | +4 | 0 | | | |
| 52 | +| 9 | `962945ce` | lane-av1toolgates | `4c4bd3e2` | 714 | +2 | 0 | | | |
| 53 | +| 10 | `10db0dc2` | lane-av1mutproof | `ffd8d138` | 712 | +0 | 0 | | | |
| 54 | +| 11 | `0eb19c11` | lane-av1gates444 | `555c83f3` | 715 | +3 | 0 | | | |
| 55 | +| 12 | `5e9c7715` | lane-av1skipfix | `960be978` | 712 | +0 | 0 | | | |
| 56 | +| 13 | `e443a86e` | lane-av1chrtx | `ea97eb0c` | 715 | +3 | 0 | | | |
| 57 | +| | | | **sum** | | **+32** | **8** | | | |
| 58 | + | |
| 59 | +**Correction (r1, after review).** The first version of this table had a | |
| 60 | +`tests at tip (base-relative delta)` column that printed `708 (+4)` on row 1, | |
| 61 | +which does not satisfy `tip = base + delta` — 712 + 4 = 716, not 708 — while | |
| 62 | +every other row did, on the row that names the merge head. The cause: the | |
| 63 | +column conflated two different numbers, "names the tip adds" and "net change". | |
| 64 | +`lane-av1superpin`'s tip `9646f74d` is **708 = 712 + 4 new - 8 removed**: it | |
| 65 | +was cut from a tree OLDER than `298f75c4` and does not carry 8 gates the base | |
| 66 | +already had — | |
| 67 | + | |
| 68 | +``` | |
| 69 | +a_444_12bit_inter_sequence_decodes_pixel_exact | |
| 70 | +a_444_intrabc_rect4_reads_its_own_chroma_plane_block | |
| 71 | +a_4to20_key_frame_takes_the_left_chroma_reference_read_its_libaom_row | |
| 72 | +a_lossless_444_10bit_inter_stream_decodes_pixel_exact | |
| 73 | +a_lossless_444_128_root_lossless_stream_reads_chunks_chunk_major | |
| 74 | +a_lossless_444_rect16x4_chroma_reach_is_ss_aware | |
| 75 | +a_pinned_444_inter_stream_chroma_units_inherit_their_own_quadrants_tx_type | |
| 76 | +a_real_aomenc_odd_coded_dimension_streams_decode_pixel_exact | |
| 77 | +``` | |
| 78 | + | |
| 79 | +— all eight of which ARE on merged main, so nothing was lost; the merge simply | |
| 80 | +took the base's copies. The conclusion of §2 is unaffected, because it is | |
| 81 | +stated over the UNION of new names and separately over base-minus-main, and | |
| 82 | +both of those are 0. What changes is the rule a future census must state | |
| 83 | +explicitly: **a branch tip is not `base + delta` unless the tip also carries | |
| 84 | +every base test.** The per-branch column is now three numbers, and a tip with a | |
| 85 | +non-zero "does NOT carry" cell is flagged. | |
| 86 | + | |
| 87 | +## 2. The arithmetic | |
| 88 | + | |
| 89 | +``` | |
| 90 | +pre-merge base 298f75c4 712 tests | |
| 91 | +sum of the 13 branches' NEW names + 32 (4+5+1+3+2+0+5+4+2+0+3+0+3) | |
| 92 | +distinct new names across all 13 - 2 (two names declared by TWO branches) | |
| 93 | + ------ | |
| 94 | +base + distinct new = 712 + 30 = 742 | |
| 95 | +merged main 9623bcab 742 tests | |
| 96 | +DELTA 0 | |
| 97 | +``` | |
| 98 | + | |
| 99 | +The 32 is a sum over the "NEW names" column, not over net per-branch deltas: | |
| 100 | +one tip (`9646f74d`) is cut from an older base and does not carry 8 base | |
| 101 | +tests, so its net is -4 while it adds 4. Summing nets would give 712 + 20 and | |
| 102 | +would NOT reconcile — which is exactly why the per-branch column above is | |
| 103 | +three numbers now. The reconciliation that holds is the one over the UNION of | |
| 104 | +new names plus the separate, independent check that the base survives intact | |
| 105 | +(`base - main = 0`, below): 8 base tests that one branch never carried are | |
| 106 | +still on main, taken from the base side of the merge. | |
| 107 | + | |
| 108 | +Every set operation, computed on the sorted name lists: | |
| 109 | + | |
| 110 | +| check | result | | |
| 111 | +|---|---| | |
| 112 | +| branch test names ABSENT from merged main (a silently dropped gate) | **0** | | |
| 113 | +| tests on merged main that are in no branch and not in the base | **0** | | |
| 114 | +| tests in the base that are GONE from merged main (a rename or a removal) | **0** | | |
| 115 | +| duplicate registrations on merged main (`--list \| sort \| uniq -d`) | **0** — 742 raw lines, 742 unique | | |
| 116 | +| per-branch duplicate NAMES (the risk that matters) | **2**, both resolved below | | |
| 117 | + | |
| 118 | +**The census reconciles exactly: 712 + 30 = 742, delta 0, nothing lost, | |
| 119 | +nothing renamed, nothing duplicated.** The merge dropped no gate, and no | |
| 120 | +conflict resolution silently took one side of an add/add. | |
| 121 | + | |
| 122 | +## 3. The two duplicate names, checked for a lost assertion | |
| 123 | + | |
| 124 | +A duplicate name across branches is the one way the count can look right while | |
| 125 | +an assertion is lost: the merge keeps one side, the other side's body is gone. | |
| 126 | +Both were diffed, body against body, at the two tips that declare them: | |
| 127 | + | |
| 128 | +| duplicate name | declared by | verdict | | |
| 129 | +|---|---|---| | |
| 130 | +| `stream::tests::a_distance_weighted_compound_stream_decodes_pixel_exact` | lane-av1dualfilter10 (`c2b969c8`) and lane-av1distwtd (`1aaf7e0b`) | **byte-identical** (188 lines each, `cmp` equal) — the same gate declared twice, not two gates. Nothing lost. | | |
| 131 | +| `gate_coverage::tests::the_detector_sees_the_gates_the_spelling_filter_missed` | lane-av1distwtd (`1aaf7e0b`) and lane-av1dualfilter10 (`c2b969c8`) | **byte-identical** (61 lines each, `cmp` equal) — same. lane-av1toolgates does not declare it at all, so the pair is the one above. | | |
| 132 | + | |
| 133 | +So the 2-test difference between "sum of deltas" (32) and "distinct new names" | |
| 134 | +(30) is fully explained: two gates were each written twice, identically, by two | |
| 135 | +lanes that had not seen each other. That is a coordination miss between | |
| 136 | +lane-av1dualfilter10 and lane-av1distwtd, not a merge loss. | |
| 137 | + | |
| 138 | +## 4. The number for the next wave | |
| 139 | + | |
| 140 | +A wave that merges N branches should satisfy | |
| 141 | +`merged == pre_merge_base + (sum of branch deltas) - (duplicate names across | |
| 142 | +branches)`, and separately report `base - merged == 0` (nothing renamed or | |
| 143 | +dropped) and `--list | sort | uniq -d` empty (nothing shadowed). This wave: | |
| 144 | +**712 -> 742, +30 distinct tests (+4.2%), 13 branches, ~2.3 tests per branch.** | |
| 145 | +The charter's expectation of "~35 gates this wave added" is close but high by | |
| 146 | +five: measured 30 distinct (32 summed before the duplicate collapse). Three of | |
| 147 | +the thirteen branches (pins, mutproof, skipfix) add no test at all, which is | |
| 148 | +where the difference lives. | |
| 149 | + | |
| 150 | +## 5. Limits of this census, stated so nobody over-reads it | |
| 151 | + | |
| 152 | +- It compares NAMES. A branch that changed the BODY of an existing gate in | |
| 153 | + place (rather than adding one) moves no name and is invisible here — the | |
| 154 | + per-branch diffs of `stream.rs` would be the tool for that, and this lane | |
| 155 | + makes no claim about bodies. | |
| 156 | +- It counts `#[test]`s in the `ec-av1` LIB target only (`--lib`), which is | |
| 157 | + where every gate in this crate lives; the crate has no `tests/` directory and | |
| 158 | + no other test target. | |
| 159 | +- `--list` was used throughout; nothing was run, so a test that is registered | |
| 160 | + but red would still count as present. That is the question this census asks | |
| 161 | + (did it survive the merge), not whether it passes. |