Architecture
Distributed systems still rely on coordination models that treat state as something reconstructed after the fact. Every service invents its own rules for synchronisation, conflict resolution, recovery, and failure.
The Spook Systems architecture introduces a deterministic shared-state substrate built from four cooperating protocols. Each layer is independently novel. Together they form a unified model for deterministic state evolution from point-to-point Pairs up to multi-register and multi-node correlation domains.
1. Protocol Family
The architecture is structured as a layered protocol stack:
ETCP and ESTP form the transport substrate. QSCS and QN extend the model to multi-register and multi-node scenarios.
2. ETCP — Identity and Conformance Layer
ETCP provides the structural and identity primitives required for deterministic shared-state synchronisation. It defines how endpoints identify themselves, form Pairs, and maintain link-level conformance.
Identity Primitives
3. ESTP — Deterministic Shared-State Synchronisation
ESTP builds on ETCP to provide deterministic state evolution between two correlated HalfPairs. It defines how state is represented, how mutations are encoded, and how deterministic convergence is guaranteed.
Core Concepts
HalfPair Lifecycle
Each HalfPair follows a deterministic state machine. Every transition has a defined trigger and a defined outcome.
Collapse Semantics
Collapse resolves pending mutations into a single committed StateBlock. CollapseRules are deterministic, total, and side-effect-free.
Decoherence and Re-Entanglement
When correlation is lost, the HalfPair enters Decohered. On reconnection, deterministic re-entanglement reconciles divergent histories using minimal deltas, not full state transfer.
4. QSCS — Multi-Register Deterministic Correlation
QSCS extends ESTP from 1:1 Pairs to deterministic multi‑register correlation. It introduces QStateRegisters and QGroups, enabling multiple registers to evolve through shared collapse events and commit to the same sequence of QStateVectors, all without modifying the underlying transport.
5. QN — Deterministic Multi-Node Correlation
QN extends QSCS to the network layer. It provides deterministic multi-node correlation across distributed systems, clusters, and regions. QN does not transmit quantum information; it coordinates the classical register structures that align with quantum processes.
6. Full Layered Architecture
7. Runtime Architecture
The system is implemented as a single-daemon, multi-Pair, single-socket architecture:
8. Key Components
| Component | Layer | Responsibility |
|---|---|---|
| PairManager | ETCP/ESTP | Creates, tracks, and disposes entangled Pairs |
| HalfPair | ESTP | Local Pair representation; StateBlock, Candidates, state machine |
| CollapseEngine | ESTP | Deterministic collapse resolution |
| DeltaEngine | ESTP | Minimal delta generation and application |
| StateGraph | ESTP | Lifecycle state machine |
| CouplingRegistry | ETCP | Correlation constraints |
| MessageBus | ETCP | Delta framing and delivery |
| QRegister / QGroup / QDomain | QSCS/QN | Multi-register and multi-node structures |
| QRoute | QN | Deterministic routing |
| Daemon | Runtime | Central process managing all protocol layers |
9. Design Decisions
These decisions prioritise determinism, simplicity, and predictable behaviour under failure.
10. Hybrid Classical-Quantum Applicability
The architecture's structural properties—isolated registers, deterministic transitions, minimal deltas, and strict causal ordering—align naturally with hybrid classical‑quantum workflows. ESTP and ETCP provide the deterministic classical control substrate, while QSCS and QN extend this model to multi‑register and multi‑node coordination. QSCS and QN operate entirely on classical register structures associated with quantum‑adjacent workflows; they do not transmit, manipulate, or depend on quantum information.
11. Architectural Summary
The Spook Systems protocol family forms a unified deterministic synchronisation substrate spanning point-to-point Pairs, multi-register entanglement groups, and multi-node correlation domains.
It introduces deterministic shared-state as a transport-layer primitive — a foundation for the next generation of distributed systems.