Commit aef7954
committed
ci(lane): derive the migration head from migrations/ instead of hard-coding 18
With W2-PROOF's suites wired in, running the official-binary lane end to end
locally surfaced four assertions that hard-coded the Wave-1 migration head of
18. Wave 2 added migrations 0019-0023, so each was stale:
- exact successful migration prefix (count/max)
- migration history after exact index replay
- later success remains visible during failed migration 12
- failed migration 12 is not masked by the head version
All four now derive the head from the migrations/ directory, which is the
source of truth, so a future wave adding migrations cannot leave this proof
asserting a stale prefix. The assertions stay exactly as strict: contiguity
from 1, the exact count, and bool_and(success) are all still required -- only
the literal "how many" is derived. A floor guards against an empty or
implausible migrations directory silently satisfying the check.
Verified: full lane green against a live CockroachDB v26.2.3
("official-binary connected correctness proof passed", 100 connected tests
incl. all 44 newly wired Wave-2 proofs). fmt/clippy -D warnings/test
--all-targets green (1408 passed, 0 failed); all frozen source pins match.
Claude-Session: https://claude.ai/code/session_01BxEBa1v242Fo1AJJGftFnZ1 parent 31edea8 commit aef7954
1 file changed
Lines changed: 16 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2026 | 2026 | | |
2027 | 2027 | | |
2028 | 2028 | | |
2029 | | - | |
2030 | | - | |
2031 | | - | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
2032 | 2039 | | |
2033 | | - | |
| 2040 | + | |
2034 | 2041 | | |
2035 | 2042 | | |
2036 | 2043 | | |
| |||
2079 | 2086 | | |
2080 | 2087 | | |
2081 | 2088 | | |
2082 | | - | |
| 2089 | + | |
2083 | 2090 | | |
2084 | 2091 | | |
2085 | 2092 | | |
2086 | 2093 | | |
2087 | 2094 | | |
2088 | 2095 | | |
2089 | 2096 | | |
2090 | | - | |
2091 | | - | |
2092 | | - | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
2093 | 2100 | | |
2094 | | - | |
| 2101 | + | |
2095 | 2102 | | |
2096 | 2103 | | |
2097 | 2104 | | |
| |||
0 commit comments