Verace Topos: architecture and design levels
A five-layer, invariant-bounded design for reversible symplectic steering of a language model's residual stream, from math core to host interface.
- Original activation: The residual stream value before the step
- Leapfrog integrator: Advances the activation one symplectic step at a time
- Phase-space volume: Preserved by each step, so the step can be reversed
- Activation and momentum: The activation paired with a steering momentum
Overview
The architecture and design levels of Verace Topos are the specifications that define how its symplectic steering engine is structured, from a pure mathematical core up to the host interface. They address one question: how can an intervention on a model's internal activations be applied so that it is reversible, does not drift, and is checked against stated invariants at every step? A steering intervention here means a change to the residual stream, the running hidden-state vector that a transformer passes from layer to layer. The documents specify the system at several levels: layered architecture, high-level design, low-level design, interfaces, data flow, invariants, testing and deployment.
The design stacks five layers with dependencies pointing downward only. L1 is a pure, backend-agnostic math core. L2 holds the steering engines. L3 is the runtime that orchestrates them. L4 holds backend adapters. L5 is the host interface. Steering is modelled as Hamiltonian flow: the activation is paired with a steering momentum under , and it is advanced by a leapfrog integrator that preserves phase-space volume. For each hooked layer, the runtime routes to a target basin, builds the operator, takes a symplectic step, glues local interventions together, checks the invariants, and then either appends an inverse record to a ledger or passes the original activation through.
The specifications describe each subsystem in its own document: the 5D instanton router, the geometric state optimizer, the non-perturbative state engine, the continuous-state activation layer, the wave memory buffer, the spectral projector, the differential fuzzer and the function-calling generator. They also contain a requirements hierarchy, traceability matrices, an invariant service-level matrix, a risk register and a design critique log. The invariant traceability matrix reports 292/292 tests passing with coverage above 93%, though the lab's records give different test totals for V3. The pipeline records claim a showcase script ran on GPT-2 124M with all invariants green in 0.72s, a demonstration rather than an evaluation that cannot be checked from these documents.
This part of Verace Topos consists of design documents only: 86 documents and no code files. Every mechanism, constant and bound described here is a specification or a target, including the 5 ms fuzzing budget, the 2000 ms proof timeout, the overhead bounds of at most 8% compute and the 1 ms kill switch. The 292/292 count comes from the invariant traceability matrix and the GPT-2 run is a showcase claim of the pipeline records; neither can be verified against code within this part. Whether steering under these invariants changes model behaviour as intended is not measured in these sources.
Status
Design. This part holds 86 architecture and design documents and no code files, so every mechanism it describes is specified rather than shown implemented.
Simulator
A pendulum moves through its phase space: angle across, momentum up. Step it with a method that can be run backwards and with one that cannot, and drag its start.
- across: angle · up: momentum
- Energy at the start
- 0.368
- Energy at the end
- 0.368
- Change in energy
- 0.000
- Returns to its start run backwards
- Yes
Switch to Euler with the same step: the trajectory spirals off its curve and cannot be run back. Drag the ring, or tap the plane, to start elsewhere.
This simulator is an illustration of the principle, with made-up numbers. It does not run the lab's code or show the lab's data, and nothing in it is a measurement.
Architecture
L1 math core
Pure, deterministic functions over plain arrays, with no I/O and no model library. The core owns the symplectic integrators, the projectors, the instanton action, sheaf gluing, the Fréchet barycenter and the invariant checkers.
L2 steering engines
The engines grouped by role: selection and direction (router, direction engine), transport and state (symplectic steering, geometric state optimizer, non-perturbative state engine), and substrate and memory (continuous activation layer, wave memory buffer).
L3 runtime engine
The orchestrator. It builds the intervention plan, manages the hook lifecycle, runs the per-layer schedule, keeps the reversibility ledger and emits telemetry.
L4 adapter layer
Backend-specific adapters for HF Transformers, vLLM and a mock backend. The adapters attach hooks and move activations between the host model and the core through the ModelAdapter port.
L5 host and application
The command-line interface, the Python API and a steer subcommand through which a host application invokes steering.
Edge subsystems
Subsystems at the L4 and L5 boundary: the multimodal input transducer, the dynamic function-calling generator and the automated testing fuzzer, which is used in CI and for self-audit.
Reversibility ledger
An append-only, Merkle-linked log of exact inverse records, one per applied step. Replaying the records in reverse reconstructs the original activations for audit.
Invariant regime
A set of checked invariants: I1 to I5 for the core engine, extended to a taxonomy I0 to I22. Each invariant has a tolerance and a defined action on breach.
Results
From the lab's own experiments and records. They have not been independently replicated.
Invariant traceability matrix reports full test pass
The invariant traceability matrix reports 292/292 tests passing and coverage above 93%. The lab's records give different test totals for V3, so this count belongs to that matrix alone, and the test suite itself is not part of these design sources.
Showcase pipeline claim on GPT-2 124M
The lab's pipeline records claim that a showcase script integrating all 33 subsystems ran on GPT-2 124M with every invariant verified green in 0.72s. This is a demonstration claim, not an evaluation, and it cannot be checked from these documents.
Fuzzing budget specified at 5 ms
The differential fuzzer is specified to run 1,000 cases in under 5 ms against independent oracles, checking properties P1 to P6. This is a design target.
Overhead bounds are targets
The deployment design targets at most 8% added compute and at most twice the activation memory on steered layers for in-process deployment, and a kill switch under 1 ms. No measurement of these bounds appears in these sources.
Milestones gated by numeric exit criteria
Six milestones, M0 to M5, are each gated by quantitative criteria. Examples are a error below 1e-6 and 292/292 tests passing.
Concepts
- Downward-only dependencies
- Each layer may depend only on layers below it. The design specifies import-linter rules in CI that stop the core from importing engines, stop engines from importing adapters, and stop the runtime from bypassing the engines.
- Ports and adapters
- A hexagonal arrangement in which the math core knows no framework. A host model is reached only through the ModelAdapter port, whose operations are attach, detach, residual_view, write_back and generate.
- Hamiltonian steering
- The activation and steering momentum evolve under with . Here is the distance to the target basin and is a strength constant.
- Leapfrog integration
- A kick-drift-kick (Störmer-Verlet) scheme: a half step in , a full step in , then another half step in . It satisfies and is exactly reversible by negating the momentum.
- Core invariants I1 to I5
- I1 is volume preservation, . I2 is reversibility. I3 is an integer winding number. I4 is flat gauge curvature, . I5 is conservation of the wave norm.
- Invariant taxonomy I0 to I22
- The extended set of 23 invariants. Besides the core five, it adds a volume floor for the KV cache, a proof gate and a thermal budget, each tied in the documents to an enforcing subsystem and a test file.
- Fail-fast setup, fail-safe runtime
- Setup errors raise exceptions such as ConfigError, GeometryMismatch and AdapterError. Errors during a step never raise: the step returns the original activation and emits a telemetry violation.
- Instanton vacuum selection
- The router projects the activation into a 5D frame, estimates a tunnelling action for each basin with , and selects the target basin by hard argmax or by a soft blend.
- Winding number hysteresis
- A switch to a new basin requires an action gap above a hysteresis margin together with a consistent integer winding number. This prevents oscillation between basins.
- Sheaf gluing
- The local interventions computed for each layer are reconciled into one global intervention through a colimit. When the angle between sections exceeds a maximum, the result is damped toward the metric mean rather than summed.
- Natural gradient by conjugate gradient
- The geometric optimizer computes for a local metric with a conjugate-gradient solve. The solve uses only matrix-vector products and never forms .
- Non-perturbative barrier crossing
- When the router finds a high barrier between basins, the state is moved along an instanton bounce path using symplectic sub-steps. The winding number changes by and the transport aborts on any breach.
- Soliton wave memory
- Each steered layer keeps a complex field evolved by the focusing nonlinear Schrödinger equation . A soliton is a wave packet that keeps its shape as it travels, so the field carries steering intent across tokens without fading or growing.
- Split-step NLS evolution
- The nonlinear Schrödinger equation is integrated by alternating a linear dispersion step in Fourier space with a nonlinear phase step. The scheme preserves the norm, which the documents treat as the temporal analogue of the symplectic invariant.
- Static and dynamic fusion
- A precomputed static profile prior and a dynamic runtime correction are combined by sheaf gluing. The available modes are static, dynamic and synergistic.
- Steering profile
- An immutable, content-addressed artifact that holds the directions, basins, frame, scores and provenance for one behaviour. Directions come from the mean difference of contrastive activation sets, optionally refined by PCA or logistic regression.
- Geometry pinning
- The runtime refuses any profile whose model_id differs from the running model. If the hash, signature or model check fails, the model runs unsteered.
- Safety caps and quality gate
- The caps max_kappa, max_lam, max_alpha and max_beta, a min_score layer gate and a latency_cap_pct setting limit how far and how expensively steering can move behaviour.
- Continuous-state activation layer
- The layer index is treated as a continuous coordinate, a neural-ODE view of the network, so the integrator can take steps smaller than one layer.
- Topos KV cache
- A designed replacement for the KV cache. Active memory is held at 64 tokens or fewer per layer, and evicted tokens are encoded as KdV solitons and stored as zstd-compressed 128-token blocks indexed by a 16D geometric key.
- Diagram honesty rule
- The architecture views combine Kruchten 4+1 with C4 levels. Diagrams may only visualize the text specifications, and any change to a specification requires the figures to be updated.
About this page
Written from the lab's own documents and source code. Figures and results are the lab's measurements as it recorded them at the time, and have not been independently replicated.
Published under the PolyForm Noncommercial License 1.0.0: free for noncommercial use.