GaiaFTCL Fusion Mac Cell β Wiki¶
The sovereign MβΈ plasma control substrate¶
FortressAI Research Institute | Norwich, Connecticut Patents: USPTO 19/460,960 | USPTO 19/096,071 β Β© 2026 Richard Gillespie
Updated: 2026-05-07 Β· Status: CALORIE β 156/156 tests Β· 18/18 in-app checks Β· 11/11 language games validated
Table of Contents¶
- What This Is
- Architecture
- UUM-8D Framework
- Fusion Domain
- Mac App
- Language Games
- Constitutional Constraints
- Glossary
Related pages: Mac-Cell-Guide Β· Sovereign-M8-Qualification Β· Language-Games Β· Language-Game-Narrator Β· Franklin-Consciousness-MQ Β· vQbitPrimitive-ABI Β· Directive-Architecture Β· MCP-Cell-Server
1. What This Is¶
GaiaFTCL is a sovereign macOS application β Franklin.app β that operates an eight-dimensional manifold (MβΈ = Sβ΄ Γ Cβ΄) for constitutionally-governed fusion plasma measurement. It runs entirely in pure Swift 6.2 on Apple Silicon, ships as a single ad-hoc-signed DMG, and is qualified to GAMP 5.
The app is not a dashboard. It is a measurement substrate. Every operator interaction is a projection move validated by VQbitUIValidator before any state is committed. Every committed move produces a ClosureReceipt with a SHA-256 seal. Every receipt persists to SwiftData. No state mutation bypasses the FranklinDriver.propose() sovereign gate.
Three processes, one NATS bus, no external dependencies:
Franklin.app
βββ Franklin β SwiftUI macOS app, RealityKit S4 projection
β βββ FranklinDriver β sovereign gate: propose(_:origin:)
β βββ FranklinSceneView β RealityKit USD scene viewer
β βββ SwiftNATSServer β embedded NATS on 127.0.0.1:4222
β
βββ VQbitVM β child process: sovereign measurement engine
β βββ S4DeltaWire β ManifoldTensorStore β C4ProjectionWire pipeline
β βββ VQbitMeasurementGate β Bell/CHSH gates, constitutional invariants
β βββ Publishes: gaiaftcl.vm.ready Β· gaiaftcl.vm.heartbeat (30s)
β
βββ FranklinConsciousnessService β child process: C4 projection + audit
βββ FranklinConsciousnessActor β C4 projection loop, self-review
βββ GRDB substrate β SQLite v1βv11 migrations
βββ Publishes: gaiaftcl.franklin.consciousness.state
Hardware requirement: Apple Silicon (arm64). No Intel path, no AMD path. Unified memory architecture is load-bearing β RealityKit entity updates from C4ProjectionSystem go directly to the GPU without a staging buffer.
2. Architecture¶
2.1 The Sovereign Gate¶
Every S4/C4 mutation routes through a single method. Nothing bypasses it.
// Sources/GaiaFTCLApp/FranklinDriver.swift
@MainActor
public func propose(_ move: UIProjectionMove,
origin: ValidationOrigin,
modelContext: ModelContext? = nil) async -> UIValidationResult
VQbitUIValidator runs four gates in sequence:
- Bounds gate β all 8 dimensions β [0, 1]
- Entropy gate β
ΞE = current.health β proposed.health β€ 0(health must improve or hold) - Terminal gate β proposed state must not be
.refusedor.blocked - Mooring gate β primID must not be the zero UUID
On .closed(receipt): state is committed, ClosureReceiptRecord inserted into SwiftData, activeTone updated from domain.
On .refused(code, reason): SHA-256-sealed refused receipt persisted, activeTone shifts to .diagnostic. No state mutation.
2.2 NATS Subject Catalogue¶
| Subject | Direction | Payload | Purpose |
|---|---|---|---|
gaiaftcl.substrate.s4.delta |
VQbitVM β FCS | S4DeltaWire (53 B) | S4 dimension update |
gaiaftcl.substrate.c4projection |
FCS β App | C4ProjectionWire (53 B) | C4 constitutional state |
gaiaftcl.vm.ready |
VQbitVM β App | β | Stack ready signal |
gaiaftcl.vm.heartbeat |
VQbitVM β App | timestamp | 30s keepalive; marks all 9 cells live |
gaiaftcl.franklin.consciousness.state |
FCS β App | JSON | Consciousness state update |
2.3 Persistence¶
| Store | Location | What lives here |
|---|---|---|
| SwiftData | ~/Library/Application Support/default.store |
ClosureReceiptRecord β all game receipts |
| GRDB | substrate.sqlite (inside app sandbox) |
C4MemoryStore β genesis record, consciousness events |
| Evidence | ~/Library/Application Support/GaiaFTCL/qualification/ |
IQ/OQ/PQ JSON receipts |
2.4 The Sovereign Mesh¶
| Region | Cell IDs | Quorum role |
|---|---|---|
| HEL (Helsinki) | hel-01..hel-05 | Primary |
| NBG (Nuremberg) | nbg-01..nbg-04 | Secondary |
Quorum threshold: β₯5/9 cells. In standalone sovereign mode (single DMG), VQbitVM's gaiaftcl.vm.heartbeat marks all 9 cells live at first tick (~30s). Current mode: sovereign_single (0/5 remote peers). Quorum passes via OQ-004 Path B (standalone) until peers are live.
3. UUM-8D Framework¶
3.1 The Eight-Dimensional State Space¶
MβΈ = Sβ΄ Γ Cβ΄
Sβ΄ β Structural (Projection Space). What the system currently believes about the physical state.
| Dimension | Symbol | Fusion mapping | Range |
|---|---|---|---|
| s1 | Structural | plasma current (Ip) | [0, 1] |
| s2 | Temporal | toroidal field (Bt) | [0, 1] |
| s3 | Spatial | electron density (ne) | [0, 1] |
| s4 | Observable | cell coverage / rendered | [0, 1] |
Cβ΄ β Constitutional (Obligation Space). What the system is obligated to do.
| Dimension | Symbol | Meaning | Range |
|---|---|---|---|
| c1 | Trust | epistemic authority | [0, 1] |
| c2 | Identity | prim identity integrity | [0, 1] |
| c3 | Closure | gate closure state | [0, 1] |
| c4 | Consequence | action consequence weight | [0, 1] |
Constitutional health = mean(c1, c2, c3, c4).
3.2 Terminal States¶
| Health range | Terminal state | Meaning |
|---|---|---|
| β₯ 0.65 | CALORIE |
Value produced β numerically closed |
| 0.35 β 0.65 | CURE |
Converging β deficit healing |
| < 0.35 | BLOCKED |
Structural failure β measurement below floor |
| Explicit refusal | REFUSED |
Constitutional violation β no value emitted |
3.3 The vQbit Primitive¶
// Sources/GaiaFTCLCore/VQbitPrimitive.swift
public struct VQbitPrimitive: Sendable, Codable {
public var s1_structural: Float32
public var s2_temporal: Float32
public var s3_spatial: Float32
public var s4_observable: Float32
public var c1_trust: Float32
public var c2_identity: Float32
public var c3_closure: Float32
public var c4_consequence: Float32
public var primID: UUID
public var domain: String // FUSION / HEALTH / QUANTUM / etc.
public var timestampUTC: String
}
Wire formats (frozen by IQ-007):
| Format | Size | Subject |
|---|---|---|
S4DeltaWire |
53 bytes | gaiaftcl.substrate.s4.delta |
C4ProjectionWire |
53 bytes | gaiaftcl.substrate.c4projection |
Any wire size change requires a full GAMP 5 re-qualification.
3.4 Epistemic Tags¶
| Tag | Meaning |
|---|---|
| M | Measured β direct sensor reading, highest authority |
| T | Tested β validated simulation or lab test |
| I | Inferred β computed from measured data |
| A | Assumed β prior knowledge, lowest authority |
Tags are immutable for the lifetime of a measurement. A M-tagged value cannot be downgraded.
4. Fusion Domain¶
4.1 The Nine Canonical Plant Kinds¶
The nine fusion plant kinds define the physical parameter space. They are domain contexts for language game projections, not rendered UI entities.
| ID | Kind | Plasma current (Ip) | Magnetic field (Bt) | Density (ne) |
|---|---|---|---|---|
| 1 | Tokamak | 0.5β15 MA | 1.0β8.0 T | 10ΒΉβΉβ10Β²β° mβ»Β³ |
| 2 | Stellarator | 0.00β0.05 MA | 1.5β3.5 T | 10ΒΉβΉβ10Β²β° mβ»Β³ |
| 3 | Inertial Confinement | 0.00 MA | 0.00 T | 10Β³β°β10Β³Β² mβ»Β³ |
| 4 | Spherical Tokamak | 0.1β3.0 MA | 0.5β2.5 T | 5Γ10ΒΉβΉβ5Γ10Β²β° mβ»Β³ |
| 5 | Reversed Field Pinch | 0.1β4.0 MA | 0.1β0.5 T | 10ΒΉβΉβ10Β²ΒΉ mβ»Β³ |
| 6 | Spheromak | 0.1β1.5 MA | 0.1β1.0 T | 10ΒΉβΉβ10Β²ΒΉ mβ»Β³ |
| 7 | Z-Pinch | 0.5β20 MA | ~0 T | 10Β²ΒΉβ10Β²Β³ mβ»Β³ |
| 8 | Mirror Machine | 0.01β0.5 MA | 0.5β10.0 T | 10ΒΉβΈβ10Β²β° mβ»Β³ |
| 9 | Magnetized Target | 0.01β0.5 MA | 0.05β1.0 T | 10Β²Β³β10Β²βΆ mβ»Β³ |
4.2 Fusion Domain β Language Game Mapping¶
The FUSION-001 language game maps the four S4 dimensions to fusion plasma:
| S4 | Fusion parameter | Units |
|---|---|---|
| s1 | Plasma current (Ip) | normalized MA |
| s2 | Toroidal field (Bt) | normalized T |
| s3 | Electron density (ne) | normalized mβ»Β³ |
| s4 | Cell coverage / observable | [0, 1] |
CALORIE on FUSION-001 requires constitutional health β₯ 0.82 with plasma confined.
4.3 Constitutional Rules for Fusion Telemetry¶
- No NaN, No Infinity. Any NaN or Inf in Ip, Bt, or ne is unconditional REFUSED. The cell does not warn. It halts.
- No negative telemetry. Ip, Bt, and ne must all be β₯ 0.0.
- Stellarator Ip cap. Ip β€ 0.05 MA. Higher values indicate a configuration error.
- Epistemic tags are immutable. Set at measurement time, cannot change during a run.
5. Mac App¶
5.1 App Architecture¶
Franklin.app is a pure SwiftUI macOS application targeting macOS 26.0+ (arm64). The three-layer structure:
FranklinDriver (@Observable)
ββ Sovereign gate for all S4/C4 mutations
ββ NATS client (SwiftNATSServer embedded)
ββ SovereignStackLauncher (VQbitVM + FCS process management)
FranklinSceneView (RealityKit)
ββ FranklinSceneDirector β USD scene catalog
ββ C4ProjectionSystem β render tick updates from bridge
ββ C4ManifoldRuntimeBridge β only written via propose()
DomainStageView (SwiftUI nav bar)
ββ 11 language games (5 nav buttons: FUSION, HEALTH, QUANTUM menu, CHAT, HUD)
ββ LanguageGameMultiTurnView β per-turn validation + receipt persistence
5.2 The RealityKit S4 Layer¶
Every domain has a USD scene in FranklinSceneDirector.catalog. USD file locations:
| USD file | Purpose |
|---|---|
Sources/GaiaFTCL/Resources/Franklin.usda |
Franklin avatar + master anchor |
Sources/GaiaFTCL/Resources/VQbitUIProtocol.usda |
Portal prims (PortalChat, PortalManifold) |
USD hierarchy contract:
def Xform "<FileName>" (kind="group") β defaultPrim
def Xform "<SCOPE_NAME>" (kind="group") β must match catalog entry
def Xform "CatalogAnchor" β MβΈ origin for portals
C4ProjectionSystem.update() runs every render tick, reads C4ManifoldRuntimeBridge, and updates entity components. The bridge is only written via FranklinDriver.propose().
Current USD portal states (2026-05-07):
| Prim | State | Closure condition |
|---|---|---|
| Franklin avatar | vqbit:rigState = "CURE" |
Deliver FranklinFigure-rigged.usdz to ~/Library/Application Support/GaiaFTCL/assets/ |
| PortalChat | vqbit:attachmentState = "CURE" |
macOS CURE is correct; full CALORIE requires visionOS 2.0 |
| PortalManifold | vqbit:attachmentState = "CURE" |
Same |
5.3 Franklin Consciousness Layer¶
FranklinConsciousnessActor runs inside FranklinConsciousnessService (child process). It maintains a C4 projection loop, self-review cycle, and inner monologue. All activity is journaled to GRDB (substrate.sqlite). The awakening ceremony runs on first launch and produces a GENESIS record.
Apple Intelligence (FoundationModels) is used for Franklin's chat responses in FRANKLIN-CHAT-001. Entitlement: com.apple.developer.foundation-models.inference.
5.4 Navigation¶
The main window nav bar (DomainStageView) is structured as five nav entries:
| Button | Type | Contents |
|---|---|---|
| FUSION | Single | FUSION-001 |
| HEALTH | Single | HEALTH-001 |
| QUANTUM | Menu | PROOF Β· CIRCUIT Β· VQE Β· LINALG Β· SIM Β· BOSONIC Β· QEC |
| CHAT | Single | FRANKLIN-CHAT-001 |
| HUD | Single | MANIFOLD-HUD-001 |
5.5 Franklin Constitutional State (2026-05-07)¶
| Dimension | Value | CALORIE threshold |
|---|---|---|
| c1 (trust) | 0.15 | β₯ 0.82 |
| c2 (identity) | 0.42 | β₯ 0.82 |
| c3 (closure) | 0.41 | β€ 0.10 |
| c4 (consequence) | 0.40 | β₯ 0.82 |
| Constitutional health | 0.35 | β₯ 0.65 |
| Terminal state | BLOCKED | CALORIE |
Franklin is BLOCKED because C4 values are below threshold. Lift path: replay language games with s1βs4 β₯ 0.85 (requires slider fix) β VQbitVM measures S4 deltas β C4 improves β CALORIE.
5.6 Build¶
cd cells/xcode
# Build + test
swift build && swift test
# Sovereign DMG (118M, ad-hoc signed arm64)
zsh scripts/build_dmg.sh
# Verify CALORIE
zsh scripts/verify_calorie.sh
Build output: dist/GaiaFTCL-1.0.0.dmg. dist/ is gitignored.
Franklin.app/Contents/MacOS/Franklin is CFBundleExecutable. Build product is GaiaFTCLApp β build_dmg.sh renames it.
6. Language Games¶
Language games are the primary operator interface for submitting S4 projections. Full specification: [[Language-Games]].
| Game | Turns | CALORIE threshold | Status (2026-05-07) |
|---|---|---|---|
| FUSION-001 | 7 | health β₯ 0.82 | CURE |
| HEALTH-001 | 7 | all β₯ 0.80 | CURE |
| QUANTUM-PROOF-001 | 7 | s_mean β₯ 0.85 probe | CURE |
| QC-CIRCUIT-001 | 6 | gate fidelity β₯ 0.85 | CURE |
| QC-VARIATIONAL-001 | 6 | signal β₯ 0.80 | CURE |
| QC-LINALG-001 | 6 | geometry β₯ 0.70 | CURE |
| QC-SIMULATION-001 | 6 | converging β₯ 0.82 | CURE |
| QC-BOSONIC-001 | 6 | stable β₯ 0.88 | CURE |
| QC-ERRORCORR-001 | 6 | error rate β₯ 0.75 | CURE |
| FRANKLIN-CHAT-001 | 7 | defaults meet threshold | CALORIE |
| MANIFOLD-HUD-001 | 5 | all params in bounds | CURE |
Why 10/11 CURE: AppleScript set value of slider does not drive SwiftUI Slider bindings. Submitted s1βs4 stayed at defaults (~0.500). Fix next session: coordinate-based drag on slider track.
7. Constitutional Constraints¶
7.1 Invariant Set¶
These rules are hard-coded. No configuration, user action, or external signal overrides them.
- No NaN, No Infinity. NaN/Inf in any S4 dimension β unconditional REFUSED.
- No negative telemetry. All S4 values β₯ 0.0.
- All S4/C4 values β [0, 1]. Values outside this range are rejected at the bounds gate.
- Entropy gate enforced.
health_proposed β₯ health_currentβ system health must not decrease from any validated move. - Epistemic tags are immutable. Set at measurement time, cannot be downgraded.
- Wire sizes frozen.
S4DeltaWire.byteCount == 53andC4ProjectionWire.byteCount == 53enforced by IQ-007. - One authoritative
Franklin.usda. Exactly one copy inSources/GaiaFTCL/Resources/. Duplicates are rejected bycheck-no-duplicate-franklin-usda.sh. FranklinSceneDirector.catalogscope must match USDA.scopestring must exactly equal thedef Xformname in the USD file.- Quantum algorithm count invariant.
quantumAlgorithmCount() == 19. Enforced by IQ-006 and OQ-007. - All S4/C4 mutations route through
propose(). No direct bridge write. Enforced byUngatedPathClosureTests.swift.
7.2 Change Control¶
Any change to the following requires a full GAMP 5 re-qualification cycle (IQ β OQ β PQ β new receipts):
S4DeltaWire.byteCountorC4ProjectionWire.byteCountVQbitPrimitivefield layoutFranklinDriver.propose()signature or validation logicSovereignQualificationRunnercheck set
8. Glossary¶
| Term | Definition |
|---|---|
| CALORIE | Terminal state: value produced. Constitutional health β₯ 0.65. |
| CURE | Terminal state: converging. Health 0.35β0.65. |
| BLOCKED | Terminal state: structural failure. Health < 0.35. |
| REFUSED | Terminal state: constitutional violation. Hard refusal with SHA-256-sealed reason. |
| Cβ΄ | Constitutional dimensions (c1βc4). Obligation space of the MβΈ manifold. |
| Sβ΄ | Structural dimensions (s1βs4). Projection space of the MβΈ manifold. |
| MβΈ | Eight-dimensional manifold: MβΈ = Sβ΄ Γ Cβ΄. |
| vQbit | Virtual quantum bit β one measurement primitive on MβΈ. See [[vQbitPrimitive-ABI]]. |
| S4DeltaWire | 53-byte frozen wire format for S4 dimension updates over NATS. |
| C4ProjectionWire | 53-byte frozen wire format for C4 constitutional state over NATS. |
| FranklinDriver | @Observable sovereign gate. All state mutations route through propose(). |
| VQbitVM | Child process: sovereign measurement engine, Bell/CHSH gates, NATS publisher. |
| FCS | FranklinConsciousnessService β child process: C4 projection loop, GRDB audit. |
| IQ | Installation Qualification β 7 in-app checks, bundle integrity. |
| OQ | Operational Qualification β 7 in-app checks, live stack correctness. |
| PQ | Performance Qualification β 4 in-app checks, timing and determinism. |
| MQ | Module Qualification β GAMP5 build-time constitutional proofs. |
| ClosureReceipt | SHA-256-sealed audit record for every validated game turn. Persists to SwiftData. |
| GAMP 5 | Good Automated Manufacturing Practice v5 β the qualification framework. |
| SwiftNATSServer | Embedded NATS broker at 127.0.0.1:4222, no external NATS server required. |
| NATS | Messaging bus. Subjects prefixed gaiaftcl.*. |
| USD | Universal Scene Description. RealityKit scenes authored in .usda format. |
| Sovereign single | Mesh mode when no remote peers are live. OQ-004 passes via standalone path. |
Federation-cosigned
This page's source is sealed in the GaiaFTCL federation manifest β page SHA-256 c320fe42faa9b7caβ¦, manifest witness a090592e0609adc8β¦, signed 2026-06-02T18:58:22Z by cell gaiaftcl-mac-cell. Verify with gaiaftcl wiki sign --all and compare wiki-all-signatures.json.