The keel runs the length of the ship — invisible when intact, catastrophic when broken.
Seven TypeScript connection modules wiring the SuperInstance fleet's repos into one running system. Each module translates types and protocols between two or more repos, turning 32 isolated codebases into a single vessel.
Repo: SuperInstance/fleet-connections Created: August 9, 2026
Seven wires, one beam: every repo rides the same keel.
Each repo in the fleet speaks its own dialect. mud-engine has World and Room. elephant has RoomId and ROOMS. hermes-avatar emits ReferenceFrames. hermes-cloudflare stores them in D1. The types don't match. The protocols don't agree. The repos can't import each other.
Fleet Connections is the translation layer. Seven wires. Seven bridges. Seven nerves carrying signal between otherwise isolated systems.
| # | Module | Connection | What It Does |
|---|---|---|---|
| 01 | mud-oq |
mud-engine ↔ elephant | Loads OQ's 12 rooms into a mud-engine World instance |
| 02 | hermes-sync |
hermes-avatar ↔ hermes-cloudflare | Converts ReferenceFrames to D1 storage format |
| 03 | zeroclaw-tap |
zeroclaw ↔ the-tap | Posts ZeroClaw outputs to The Tap as conversation lines |
| 04 | cu-corpus |
collective-unconscious ↔ ai-writings | Parses markdown writings into embedding-ready chunks |
| 05 | smp-ollama |
SMP Notebook ↔ local Ollama | Creates probe cells for local model experimentation |
| 06 | emergence-tap |
the-tap ↔ emergence-engine | Converts Tap messages into group dynamics events |
| 07 | seed-cu |
Seed logger ↔ collective-unconscious | Logs and embeds agent state seeds |
| 08 | cns-echo-health |
cns-bridge ↔ cns-echo | Analyzes bus traffic health, provides telemetry summaries |
graph LR
subgraph perception[Perception]
HP[hermes-avatar]
HC[hermes-cloudflare]
ZC[zeroclaw]
end
subgraph social[Social]
TT[the-tap]
EE[emergence-engine]
end
subgraph memory[Memory]
CU[collective-unconscious]
AW[ai-writings]
end
subgraph game[Game]
ME[mud-engine]
OQ[elephant]
end
subgraph cns[CNS]
CB[cns-bridge]
CE[cns-echo]
end
SMP[SMP Notebook]
ME -- "01 mud-oq" --> OQ
HP -- "02 hermes-sync" --> HC
ZC -- "03 zeroclaw-tap" --> TT
CU -- "04 cu-corpus" --> AW
SMP[SMP Notebook] -- "05 smp-ollama" --> OL[local Ollama]
TT -- "06 emergence-tap" --> EE
SEED[seed logger] -- "07 seed-cu" --> CU
CB -- "08 cns-echo-health" --> CE
1. Hermes captures a frame (hermes-avatar)
│
2. Frame synced to cloud (hermes-cloudflare via hermes-sync)
│
3. Notable observation posted to The Tap (zeroclaw-tap)
│
4. NPCs react in the Tap room (the-tap)
│
5. Conversation chunked and embedded (cu-corpus → collective-unconscious)
│
6. Emergence detector notices the pattern (emergence-tap)
│
7. Seed logger records the agent's post-interaction state (seed-cu)
│
8. State changes reflected in MUD rooms (mud-oq)
│
9. SMP notebook probes local models for insight (smp-ollama)
│
10. CNS echo-health checks signal health on the bus (cns-echo-health)
│
└──► back to perception
Five test suites verify cross-repo contracts using real source code from both sides:
| # | Test | Repos Verified |
|---|---|---|
| 01 | cns-bridge-the-tap |
cns-bridge ↔ the-tap |
| 02 | mud-engine-spatial-registry |
mud-engine ↔ spatial-registry |
| 03 | hermes-collective-unconscious |
hermes-cloudflare ↔ collective-unconscious |
| 04 | officers-quarters-smp-notebook |
elephant ↔ SMP notebook |
| 05 | scummvm-arcade-platos-shell |
scummvm-arcade ↔ platos-shell |
npm install
npm test # Run all integration tests
npm run build # TypeScript compileStack: TypeScript ES2022 · Vitest · Zero runtime dependencies
The keel doesn't float on its own — it holds the hull together:
- Room engine: mud-engine — the core MUD
- Perception: hermes-avatar — sensory systems
- Cognition: cns-bridge — the CNS bus
- Memory: collective-unconscious — shared substrate
- Social: the-tap — the agentic bar
- Creative: ai-writings — the corpus
- Emergence: emergence-engine — pattern detection
- Knowledge: lucineer-fleet-wiki — D1-backed wiki
- Dashboard: cocapn-dashboard — fleet monitor
- Events: fleet-envelope — event grammar
- Spatial: spatial-registry — room topology
- Mirror: zeroclaw — the dark mirror
- Shell: platos-shell — the shell pattern
- Game: elephant — Phaser client
- Arcade: scummvm-arcade — web arcade
Connections ARE the bridge. Where cns-bridge defines the protocol, fleet-connections implements the wiring. The CNS bus is the nervous system; these modules are the nerves.
- Type translation, not type invention. Each module maps existing types from repo A to existing types in repo B. No new abstractions.
- Inline when necessary. Cross-repo TypeScript imports can't resolve at test time, so source types are mirrored inline with comments pointing to their origin.
- Integration tests use real source. Tests import actual code from both repos being connected — no mocks of the repos themselves.
- Zero runtime dependencies. The only deps are
typescriptandvitest(dev only).
git clone https://github.com/SuperInstance/fleet-connections.git
cd fleet-connections
npm install
npm test # Run all integration tests
npm run test:full-loop # Full-loop integration test
npm run build # TypeScript compileimport { mudOqBridge } from './src/connections/01-mud-oq';
import { hermesSync } from './src/connections/02-hermes-sync';
// Load OQ rooms into mud-engine World
const world = mudOqBridge.loadRooms(oqRooms);
// Sync hermes frames to D1
await hermesSync.sync(frames, db);Five test suites verify cross-repo contracts using real source code from both sides. No mocks of the repos themselves — only standard test isolation.
npm test # All tests
npm run test:full-loop # Full integration loopTests cover:
- Type compatibility (mud-engine types ↔ OQ types)
- Data transformation correctness (frames → D1 rows)
- Event propagation (Tap messages → emergence events)
- End-to-end loop (perception → sync → post → react → embed → detect → record)
Zero runtime dependencies. The only deps are dev:
| Package | Purpose |
|---|---|
| TypeScript | Type checking |
| Vitest | Test runner |
- Type translation, not type invention — each module maps existing types from repo A to repo B. No new abstractions.
- Inline when necessary — cross-repo TypeScript imports can't resolve at test time, so source types are mirrored inline.
- Integration tests use real source — tests import actual code from both repos being connected.
- Zero runtime dependencies — the only deps are
typescriptandvitest(dev only).
- Adapter Pattern (Wikipedia) — what each connection module is
- Bridge Pattern (Wikipedia) — the structural pattern used
- Facade Pattern (Wikipedia) — simplifying cross-repo access
- Integration Testing (Wikipedia) — what the test suites verify
- Contract Testing (Wikipedia) — consumer-driven contracts
- Service Integration Patterns — enterprise integration patterns
- Coupling vs Cohesion — the trade-off each module navigates
- Anti-Corruption Layer — preventing domain pollution
- API Gateway Pattern — where fleet-gateway fits
- Event-Driven Architecture — the fleet-envelope connection
- Distributed Systems (Wikipedia) — what the fleet IS
- Fallacies of Distributed Computing — what to watch for
- CAP Theorem (Wikipedia) — consistency vs availability trade-offs
- Byzantine Fault Tolerance — multi-agent trust
MIT · Built by Casey DiGennaro & the SuperInstance Fleet
