Skip to content

GaiaFTCL Mac Cell โ€” Sovereign Mโธ Technical Guide

Patents: USPTO 19/460,960 | USPTO 19/096,071 โ€” ยฉ 2026 Richard Gillespie


New here? Start with these.

This page is the technical guide. It's dense on purpose โ€” it's the reference manual for engineers shipping the cell.

If you have never opened Franklin.app before, do not start here. Start with one of these plain-English pages instead, then come back:

These pages are written for a junior-high reader. You can read all of them in about forty minutes and you will understand the cell well enough to use it. The rest of this page is for the people building the cell.


What This Is

GaiaFTCL Mโธ is a sovereign macOS application โ€” Franklin.app โ€” that embodies an eight-dimensional manifold: four structural dimensions (S1โ€“S4) and four constitutional dimensions (C1โ€“C4). 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 (156 build-time tests + 18 in-app IQ/OQ/PQ checks).

Three processes, one NATS bus, no external dependencies:

Franklin.app
  โ”œโ”€โ”€ Franklin (SwiftUI macOS app)
  โ”‚     โ”œโ”€โ”€ FranklinSceneView   โ€” RealityKit S4 projection layer
  โ”‚     โ”œโ”€โ”€ FranklinDriver      โ€” sovereign gate: propose(_:origin:)
  โ”‚     โ””โ”€โ”€ SwiftNATSServer     โ€” embedded NATS broker on 127.0.0.1:4222
  โ”‚
  โ”œโ”€โ”€ VQbitVM (child process)
  โ”‚     โ”œโ”€โ”€ S4DeltaWire โ†’ ManifoldTensorStore โ†’ C4ProjectionWire pipeline
  โ”‚     โ”œโ”€โ”€ VQbitMeasurementGate โ€” Bell/CHSH gates, constitutional invariants
  โ”‚     โ””โ”€โ”€ Publishes: gaiaftcl.vm.ready ยท gaiaftcl.vm.heartbeat (30s)
  โ”‚
  โ””โ”€โ”€ FranklinConsciousnessService (child process)
        โ”œโ”€โ”€ FranklinConsciousnessActor โ€” C4 projection loop, self-review
        โ”œโ”€โ”€ GRDB substrate โ€” SQLite v1โ†’v11 migrations
        โ””โ”€โ”€ Publishes: gaiaftcl.franklin.consciousness.state

The vQbit Data Model

Every sovereign state in the Mโธ manifold flows through a VQbitPrimitive โ€” one prim = one domain entity = one point on the eight-dimensional manifold.

// Sources/GaiaFTCLCore/VQbitPrimitive.swift
public struct VQbitPrimitive: Sendable, Codable {
    // Sโด โ€” structural dimensions
    public var s1_structural:  Float32   // geometry / topology
    public var s2_temporal:    Float32   // time / sequence
    public var s3_spatial:     Float32   // location / space
    public var s4_observable:  Float32   // rendered / visible

    // Cโด โ€” constitutional dimensions
    public var c1_trust:       Float32   // epistemic authority
    public var c2_identity:    Float32   // prim identity integrity
    public var c3_closure:     Float32   // gate closure state
    public var c4_consequence: Float32   // action consequence weight

    public var primID:         UUID
    public var domain:         String    // FUSION / HEALTH / QUANTUM / etc.
    public var timestampUTC:   String
}

Terminal state derivation from constitutional health mean(c1..c4):

Health range Terminal state
โ‰ฅ 0.65 CALORIE โ€” value produced
0.35 โ€“ 0.65 CURE โ€” converging
< 0.35 BLOCKED โ€” structural failure
Explicit refusal REFUSED โ€” with closure condition

The Apple Silicon Advantage โ€” Unified Memory

Apple Silicon M-chips eliminate the CPUโ†’GPU copy. Memory is unified physical DRAM โ€” both CPU and GPU read from the same physical address. RealityKit entity components updated by C4ProjectionSystem.update() go directly from FranklinDriver's Swift actors to the GPU without a staging buffer or DMA transfer.


S4 Projection Layer (RealityKit)

The S4 dimension โ€” "observable" โ€” is rendered by RealityKit. Every domain has a USD scene (FranklinSceneDirector.catalog) with a three-level hierarchy:

def Xform "<FileName>" (kind="group")        โ† defaultPrim
    def Xform "<SCOPE_NAME>" (kind="group")  โ† must match catalog entry
        def Xform "CatalogAnchor"            โ† Mโธ origin for sphere + portals
            โ€ฆgeometry childrenโ€ฆ

C4ProjectionSystem runs every render tick, reading from C4ManifoldRuntimeBridge (which is only written via FranklinDriver.propose()) and updating RealityKit entity components. Entity state is always derived from validated bridge state โ€” never mutated directly.


The Sovereign Gate

Every S4/C4 mutation in the system routes through a single method:

// Sources/GaiaFTCLApp/FranklinDriver.swift
@MainActor
public func propose(_ move: UIProjectionMove,
                    origin: ValidationOrigin,
                    modelContext: ModelContext? = nil) async -> UIValidationResult

VQbitUIValidator runs the move through: 1. Bounds gate โ€” all 8 dimensions โˆˆ [0, 1] 2. Entropy gate โ€” ฮ”E = current.health โˆ’ proposed.health โ‰ค 0 (health must improve or hold) 3. Terminal gate โ€” proposed state must not be .refused or .blocked 4. Mooring gate โ€” primID must not be the zero UUID

On .closed(receipt): state is committed, ClosureReceiptRecord is persisted to SwiftData, activeTone updates from domain.
On .refused(code, reason): a SHA-256-sealed refused receipt is persisted, activeTone shifts to .diagnostic. No state mutation occurs.


Wire Formats (frozen)

Format Subject Size Carries
S4DeltaWire gaiaftcl.substrate.s4.delta 53 bytes One S4 dimension update per prim
C4ProjectionWire gaiaftcl.substrate.c4projection 53 bytes Full C4 constitutional state per prim

Both sizes locked by IQ-007. Any change requires a full GAMP 5 re-qualification.


The Nine-Cell Sovereign Mesh

Region Cells Purpose
HEL (Helsinki) hel-01..hel-05 Primary computation
NBG (Nuremberg) nbg-01..nbg-04 Secondary computation

Quorum: โ‰ฅ5/9 cells. In standalone sovereign mode (single DMG), VQbitVM's gaiaftcl.vm.heartbeat marks all 9 cells live.


Configuration management

Item Requirement
S4DeltaWire.byteCount 53 bytes (CI-007) โ€” change requires full PQ re-execution
Franklin.usda Exactly one authoritative copy in Sources/GaiaFTCL/Resources/
FranklinSceneDirector.catalog scope must exactly match def Xform name in USDA
language_game_contracts SUM(algorithm_count WHERE domain LIKE 'quantum%') == 19

See also


Federation-cosigned

This page's source is sealed in the GaiaFTCL federation manifest โ€” page SHA-256 6320f85760ad5babโ€ฆ, 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.