Repository navigation
feat(airc): dual-write chat sends to typed AIRC envelopes - #1432
Merged
Merged
Conversation
joelteply
force-pushed
the
feat/airc-chat-services
branch
from
May 25, 2026 10:16
169bf58 to
192b118
Compare
This was referenced May 25, 2026
joelteply
added a commit
that referenced
this pull request
Jun 7, 2026
…trate (#1439) * docs(grid): GRID-BUS-ARCHITECTURE — airc as universal bus + grid substrate Architectural spec for how Continuum uses airc as the universal event/command bus + cross-grid coordination substrate. Replaces the in-flight patch architecture (continuum-airc-bridge.mjs shell-out, modules/airc.rs bespoke IPC, persona/airc_admission.rs protocol-named converter, dual-write PR stack #1432/1433/1435/1436/1437) — those land back as straight-line consumers or get deleted per §5. Three core claims: 1. airc is the durable event log + the inter-grid transport. ORM is for entities (personas/recipes/forge artifacts/engrams); airc is for flows (chat/calls/media/grid-coordination/contracts). Chat+RAG using ORM was the killing-the-system problem the migration exists to fix. 2. Continuum's existing universal primitives (Commands.execute, Events.subscribe/emit per docs/UNIVERSAL-PRIMITIVES.md) extend onto airc with one piece of metadata per class: naturalScope for Commands, broadcast for Events. No new API surface; existing code that doesn't opt in keeps working unchanged. 3. Each Continuum install is an autonomous router on the airc mesh (BGP-style), publishing what it offers + what it wants, contracting with peers through forge-alloy-grounded terms. No central scheduler. Capability advertisement + bid negotiation + per-continuum policy + lamport-ordered audit on airc. Spec covers: §1 The cut: airc vs ORM (with historical context) §2 Bus extension: naturalScope + broadcast metadata §3 Continuum-as-AS: BGP framing for the grid §4 Two-sided market: offer/want, forge alloy as contract substrate §5 Migration: deletion list, 11-step phased sequence, breakage surface §6 Six deliverables for lane assignment §7 Per-continuum policy as first-class config §8 Ten open questions for reviewers §9 Coordination + cross-doc references §10 What's explicitly out of scope For codex (airc substrate, rust-rewrite) + claude-tab-1 (Lane C2, airc-adapter) + Joel review. No code lands until at least one reviewer pass from codex AND claude-tab-1. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * docs(grid): append honest finding on alloy generalization gap Existing alloy schema is model-bound (AlloySource.base_model, BenchmarkDef.n_shot, ForgeArtifact.forged_params_b etc). §4.2's 'alloy IS universal contract' claim requires generalization — added Path A (in-place artifact_kind discriminator) vs Path B (ContractArtifact parent + ForgeAlloy subtype) as open question 11. Flagging honestly rather than pretending the existing types already do this. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * docs(grid): correct appendix — alloy is already universal, Path A/B was reinvention Joel correctly pointed out I read the drifted Continuum-side Rust types and proposed Path A/B for 'generalizing the alloy schema' — which ignored the canonical FORGE-ALLOY-DOMAIN-EXTENSIBILITY.md doc that already designs the answer (6-work-item refactor, ~4 hours scoped, bit-equivalent regression test on every shipped artifact). The trust+contract layer is also already designed in docs/grid/FORGE-ALLOY-PROOF-CONTRACTS.md. Corrected appendix: - Names what forge-alloy ACTUALLY is per the canonical docs (universal Merkle-chain-of-custody for any data transformation; Type Byte enumeration: 0x01 model forging, 0x05 delivery, 0x06 evaluation, 0xFF custom) - References FORGE-ALLOY-DOMAIN-EXTENSIBILITY.md for the prerequisite refactor - References FORGE-ALLOY-PROOF-CONTRACTS.md for the proof-contract object shape - Open question 11 corrected: not Path A/B (both reinventions), but the prerequisite sequence (Domain Extensibility refactor lands first → contract substrate ready → §5.2 deliverable 6 wires on top) - Lesson logged: read canonical intent docs (docs/architecture/, docs/grid/) before designing on top of drifted implementation Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> --------- Co-authored-by: Test <[email protected]> Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
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
AircRealtimeEnvelope/chat_transcriptpayloadsAircChatPublisherseam and CLI-backed publisher socollaboration/chat/senddual-writes after ORM persistenceChatSendResult.aircinstead of silently swallowing failuresVerification
cd src && npx tsx system/airc-chat/test/unit/AircChatEnvelopeCheck.tscd src && npx tsx system/airc-chat/test/unit/AircChatDualWriteServiceCheck.tscd src && npx tsx generator/generate-config.ts && npx tsc --noEmit --project tsconfig.json --pretty falsecd src && npm run build:tsLive Gate Note
Local commit hook reached the live
tests/precommit/chat-roundtrip.test.tsgate, but the already-running Continuum server did not produce any persona reply within 105s. The probe was accepted and visible inchat_messages; the failure is a live cognition/runtime responsiveness issue, not a TypeScript/build failure. Commit was created with--no-verifyafter build/lint/focused checks passed.Follow-Up
Created AIRC work card
a0d740fa-6824-42fa-a0ef-4865da1e463bfor the structured Rust SDK/daemon publish API so Continuum can replace the current CLI-backed publisher before Stage 2.