docs(#1130): chat-to-AIRC migration proof gates#1141
Merged
Conversation
Per Joel's request on the card: codify what must be PROVEN — not just
compiled — at each stage of moving Continuum's chat path from the ORM-
backed chat_messages collection onto AIRC as the primary transport.
What this is: a planning document, no code change. Specifies the
inventory of every chat_messages call site, the four migration stages
(ORM only → dual-write → AIRC primary → ORM removed), and the explicit
proof gates per transition (compile, functional, mirror-lag SLO, failure
modes, smoke).
Three pieces worth flagging:
1. Inventory commands are runnable: a future migration PR's body must
include the inventory diff, and any new entry not listed here blocks
the merge. Forces the inventory to stay current.
2. Per-call-site cutover table covers every consumer in the inventory
(chat/{send,export,poll,analyze}, DataLoaders, PersonaUser, ai/
{thoughtstream,report}, DataReadServerCommand chat-access-control,
EventConstants registry). Each row gets a status field; PRs updating
any row update this file in the same commit.
3. Open decisions section lists the 4 questions that block stage 0 → 1:
dual-write atomicity, message-ID canonical, history backfill, and
tombstone semantics. Each comes with a recommendation; the document
doesn't pretend they're settled.
Adjacent docs (referenced, not duplicated):
- docs/grid/AIRC-CONTINUUM-BRIDGE.md — wire format, transport
- docs/grid/GRID-ARCHITECTURE.md — multi-machine semantics (out of
scope for v1 single-machine cutover)
- continuum#1129 / #1133 / #1134 — engram + admission gate (orthogonal,
can proceed in parallel)
This was referenced May 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Review fix
Proof
Closes #1130