Commit 21ef95c
committed
fix(release): close two P1 data-integrity gaps + announcement/docs for v0.26.0
Release-audit council found two silent-data-loss blockers; both fixed:
1. Collision-merge embedding loss (relocate-memory.ts). When moving a memory
that collides with an equivalent at the target, the source row was DELETEd —
FK-cascading its memory_embeddings away — without transferring an embedding to
the surviving target. A merged memory could end up with no vector. Now
INSERT OR IGNORE the source embedding onto the target before the delete (the
two are equivalent: same category + normalized_hash, so either vector is
valid). +1 regression test.
2. migrate-session cross-DB split-brain (migrate-session.ts). The two databases
are separate files, so OpenCode committed first and context.db committed
later; a context.db failure left OpenCode moved but Magic Context not. Capture
the session's prior column values and add a compensating rollback: if the
context.db transaction throws, restore OpenCode to its pre-migration state so
the two stay consistent (best-effort; the user's pre-run backup is the final
safety net). +1 regression test.
Also (SHOULD-FIX from the audit):
- Narrow the release-notes + CONFIGURATION.md fallback claim: the session-model
last resort is HISTORIAN-ONLY; dreamer/sidekick use only their configured
fallback_models (verified in compartment-runner-historian.ts vs dreamer/runner).
- Bump ANNOUNCEMENT_VERSION 0.25.0 -> 0.26.0 with this release's features.
Cache-stability core verified SAFE by the council (6/6 unanimous): perf scoping is
speed-only, D2 redacted-skip + gate sound, embedding identity unaffected,
migration v38 correct. Gate: plugin 2166/0, CLI 178/0 (+2), tsc + biome clean.1 parent 89a4746 commit 21ef95c
5 files changed
Lines changed: 94 additions & 7 deletions
File tree
- packages
- cli/src/commands
- plugin/src
- features/magic-context/memory
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
412 | 455 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
234 | 244 | | |
235 | 245 | | |
236 | 246 | | |
| |||
242 | 252 | | |
243 | 253 | | |
244 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
245 | 276 | | |
246 | 277 | | |
247 | 278 | | |
| |||
321 | 352 | | |
322 | 353 | | |
323 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
324 | 358 | | |
325 | 359 | | |
326 | 360 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
87 | 97 | | |
88 | 98 | | |
89 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments