Skip to content

docs(#1130): chat-to-AIRC migration proof gates#1141

Merged
joelteply merged 2 commits into
canaryfrom
feat/chat-over-airc-proof-gates
May 14, 2026
Merged

docs(#1130): chat-to-AIRC migration proof gates#1141
joelteply merged 2 commits into
canaryfrom
feat/chat-over-airc-proof-gates

Conversation

@joelteply
Copy link
Copy Markdown
Contributor

@joelteply joelteply commented May 14, 2026

Summary

  • add the proof-gated Chat-to-AIRC migration plan
  • document staged dual-write, AIRC-primary, and ORM-removal gates
  • tighten the inventory language so future migration PRs must check in a generated inventory artifact, not rely on a hand-maintained table

Review fix

  • Live grep showed additional chat call sites beyond the first draft: sentinel pipelines, voice bridge, RAG/tool definitions, context search/slice, AIRC bridge, persona task/training modules, and docs.
  • The document now calls the table a seed inventory and makes generated inventory the required source of truth before code migration.

Proof

  • git diff --check
  • precommit hook: TypeScript build passed; browser tests skipped because local stack is down
  • pre-push hook: TypeScript clean; ESLint 5530 errors vs baseline 6310; Rust/Docker skipped for docs-only change

Closes #1130

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)
@joelteply joelteply merged commit 79e5fa7 into canary May 14, 2026
2 checks passed
@joelteply joelteply deleted the feat/chat-over-airc-proof-gates branch May 14, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant