Commit 55fc45c
committed
fix(kvs-lance): fail fast on a pre-
`max_persisted_seq` treated a dataset whose schema lacks the `seq` column as
success (returning 0), but the write paths now always build 5-column batches,
so the first flush/merge against such a 4-column dataset would hit an opaque
Lance schema mismatch. Return a clear migration error instead — exactly the
"fail with a clear migration error before allowing commits" Codex suggested.
A fresh dataset created by this code always carries the 5-column schema, so
this only fires for genuinely legacy (pre-release) data; all 4 seq tests pass.
Also records the Cognitive-RISC substrate↔invariant mapping (and the N1 trap:
do not add class_id to the kv-lance schema — it stays policy-free) in
.claude/board/EPIPHANIES.md.
https://claude.ai/code/session_01R9AWgFa65uPnLyS2my2d2Rseq legacy dataset (codex P2 on #30)1 parent e329a7a commit 55fc45c
2 files changed
Lines changed: 42 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
207 | 211 | | |
208 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
209 | 216 | | |
210 | 217 | | |
211 | 218 | | |
| |||
0 commit comments