Skip to content
Systems, agents and memoryPrototype

Verace Forge

Design for an autonomous engineering agent with soliton memory, barycentric consensus and formal verification, with a Python prototype.

Verace Research
  1. Cognitive engineering kernel: Soliton memory ring and hypersphere barycenter
  2. Desktop actuation harness: Simulated in the prototype
  3. JIT native tool forge: Designed to compile and link tools at run time
  4. Verification pyramid: Lean4 proofs down to unit tests, prover a stub
Figure 1. The cognitive kernel at the centre of the Verace Forge design. Schematic: an illustration of the Verace Forge design, with the cognitive kernel at its centre and its tools and checks around it. Much of this is design only: in the Python prototype, actuation is simulated and the prover is a stub.
Open the simulator on its own pageA loop that checks before it commits: an interactive toy model of the principle. You can also try it below

Overview

Verace Forge is the lab's design for an autonomous engineering agent: a system that writes, verifies, compiles, fuzzes, profiles and deploys software and hardware designs, from frontend and distributed backends to kernel drivers, low-latency trading engines, CAD models and Verilog. The design specification starts from a stated problem with code assistants that predict text. They treat source code as flat token sequences and ignore syntax trees and type systems. They lose coherence across many files because attention costs O(N2)O(N^2). They cannot compile, run or debug what they write. Verace Forge is specified as the engineering specialisation of the lab's cognitive engine, with which it shares code.

The design specification describes three layers. A desktop actuation and repository ingestion harness is designed to read the screen, drive a virtual keyboard and mouse, and parse code into syntax trees and Subject-Predicate-Object (SPO) triples. A cognitive kernel is designed to hold a soliton memory core, a non-autoregressive instanton engine for one-pass multi-file edits, a run-time native tool forge, a formal prover and a deterministic state machine. Six subagent roles are designed to combine proposals by a weighted Riemannian barycenter, checked by a verification pyramid from Lean4 proofs to unit tests. In the prototype, desktop actuation is simulated and the prover is a stub returning canned results.

The research implementation is a Python package with one module per subsystem and a master agent that routes a task by keywords to a fixed demonstration call. The kernel module implements a soliton memory ring with sech2\mathrm{sech}^2 similarity attention, a Fréchet barycenter and, for the instanton engine, only an iterative refinement loop. The lab's scaling-law analysis document reports that small models suffer Fréchet variance collapse to 0.00000, while a 110,173,945-parameter model with d=1024d = 1024 kept variance between 0.53 and 0.75 at 3,118 MB peak VRAM. The same document reports that replacing 4D tensor broadcasts with normalised matrix products cut peak VRAM from 5.5 GB to 3.11 GB on an RTX 4050.

The system is a prototype. Its neural kernel, saga orchestrator, order book, lock-free queue and corpus builder are implemented in Python. The prover and solver modules return fixed strings, desktop actuation is simulated, generators emit fixed or templated text, and the one-pass multi-file synthesis is not implemented. The end-to-end test asserts only on the queue. The roadmap marks the cognitive core complete and actuation ready, which the stubs do not bear out. Fuzzing and the swarm exist only as design; the GB300 tier is a roadmap target, not hardware the lab is shown to hold. The only recorded measurements are the variance, VRAM and parameter figures above, all from the scaling-law analysis document, not code runs; the scaling laws and immune system are specified only.

Status

Prototype. A Python package implements the neural kernel and several subsystems while the prover, solver and actuation modules are stubs, and the only recorded measurements are variance, VRAM and parameter figures in the lab's scaling-law analysis document.

Simulator

An agent runs sixty tasks whose steps sometimes fail. Choose whether each step is checked, how often a step fails and how long the tasks are.

  • pale: worked first time · colour: caught and repeated · white: failed unnoticed · crossed: given up
Tasks finished correctly
57 of 60
Finished with a hidden error
0
Given up after three tries
3
Extra work spent on retries
16%
After each step

Turn the check off: the same failures now finish unnoticed. Lengthen the tasks and see how fast unchecked errors add up.

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

  1. Desktop actuation harness

    Designed to drive a virtual HID keyboard and mouse through the Linux uinput interface with minimum-jerk motion, read the screen through PipeWire and read interface structure through AT-SPI2 accessibility. In the code this module is simulated and returns dummy results.

  2. Repository comprehension layer

    Designed to parse code with Clang libtooling and Tree-Sitter into zero-copy binary syntax trees in shared memory, and to index repositories as SPO triples such as implements, calls and guarded_by rather than flat text. Neither parser is implemented in the prototype.

  3. Cognitive engineering kernel

    The neural core: a soliton memory ring, an instanton reasoning engine and a hypersphere barycenter module, implemented in the kernel module of the research code. In the code the instanton engine is only an iterative refinement loop.

  4. Six engineering subagent roles

    Chief system architect, core C++ and Rust developer, kernel and eBPF specialist, hardware and CAD designer, differential fuzzing guard, and formal theorem prover. The design has them reach consensus through a Fréchet barycenter.

  5. JIT native tool forge

    Designed to emit C++20 or CUDA PTX, compile it with g++ and nvcc, and link it with dlopen and dlsym in under 200 ms. Verified tools are kept in a procedural memory bank for reuse.

  6. Engineering verification pyramid

    Designed as four layers of checking: Lean4 proofs, dual-oracle differential fuzzing against a SymPy symbolic oracle, ASan, UBSan and MSan sanitizers, then unit, integration and CI-CD tests. In the prototype the prover is a stub that returns canned results.

  7. Topological Immune System

    A four-wall defence specified against data poisoning, manifold collapse and catastrophic forgetting during continual learning: an entropy gate, a geodesic variance guard, an elastic soliton lock and an SMT invariant verifier.

  8. Domain engineering modules

    Python modules for a limit order book, distributed saga transactions, text layout and WebGPU shaders, parametric CAD and Verilog, eBPF packet filters, and formal verification.

  9. Training corpus builder

    A script that merges several local JSONL datasets and a Codeforces problem list into one unified JSONL training corpus with a manifest.

Implementation

Mechanisms as they are implemented in the source code, with the constants the code uses.

Soliton memory ring attention
KdVSolitonMemoryRing stores memory slots and scores a query against them with a sech2\mathrm{sech}^2 similarity kernel in place of softmax dot-product attention. The design fixes the number of slots at K=d/4K = d/4 per layer, which the specification puts at 8.26% of each layer's parameter budget.
Karcher mean on the hypersphere
RiemannianFrechetBarycenter averages unit vectors iteratively by mapping points to the tangent space at the current estimate with the logarithmic map, averaging there, and mapping back with the exponential map. It computes the weighted barycenter p∗=arg⁡min⁡p∑iwid2(p,pi)p^* = \arg\min_p \sum_i w_i d^2(p, p_i) that the design uses for subagent consensus.
Fréchet variance measure
The dispersion of concept vectors around their Riemannian mean is 12N∑iarccos⁡2(ui⊤μ)\frac{1}{2N} \sum_i \arccos^2(u_i^\top \mu). The geodesic variance guard is specified to project gradients into the tangent null space when this value falls below 0.005.
Iterative instanton reasoning loop
InstantonReasoningEngine is only an iterative refinement loop that updates a state over repeated iterations. The one-pass multi-file synthesis the design describes, patching 50 or more files in a single 10 ms pass, is not implemented.
Saga compensation orchestrator
DistributedSagaOrchestrator runs a list of SagaStep forward actions in order and tracks each with a SagaStepStatus. On a failure or exception it runs the compensating actions of the completed steps in reverse order.
Price-priority limit order book
SubMicrosecondOrderBook keeps bid and ask price levels in dictionaries and matches incoming Order objects by price priority. Despite the class name it is a Python implementation, and its latency is not measured.
Lock-free SPSC ring buffer
LockFreeSPSCQueue is a single-producer single-consumer queue over a fixed ring buffer. It is the one component whose behaviour the end-to-end test asserts.
Keyword task routing
MasterASIEngineer instantiates every subsystem and dispatches a task by matching keywords in its domain string to a fixed demonstration call for that subsystem.
Formal verification stubs
Lean4FormalProver returns a fixed Lean proof string and Z3ConstraintSolver returns canned results. No proof assistant or SMT solver is invoked.
Text layout and shader generation
DOMFreePretextLayoutEngine wraps text greedily using an average character width. WebGPUCanvasRenderer returns a fixed WGSL compute shader string.
Parametric CAD and Verilog generation
ParametricCADSolid computes the volume and mass of a flange from closed-form formulas. SynthesizableVerilogGenerator produces a parameterised pipelined ALU as Verilog source text.
XDP filter generation
WireSpeedEBPFFilter generates the C source of an XDP program that drops TCP traffic to a given port. VirtualHIDController simulates key and mouse actuation and returns dummy results.
Unified corpus merge
process_jsonl_corpus() and process_codeforces() read local JSONL datasets and a Codeforces problem list. main() writes them into one JSONL corpus with a manifest.

Results

From the lab's own experiments and records. They have not been independently replicated.

  1. Small models collapse in Fréchet variance

    The lab's scaling-law analysis document records Karcher barycentric variance falling to 0.00000 in small models. It attributes this to crowding of concepts and to padding dominating the mean.

  2. Width 1024 model keeps variance

    In the lab's scaling-law analysis document, a 110,173,945-parameter model with d=1024d = 1024, 16 layers and 256 solitons held Fréchet variance between 0.53 and 0.75 at 3,118 MB peak VRAM.

  3. Matrix products cut soliton memory VRAM

    The lab's scaling-law analysis document reports that replacing 4D tensor broadcasts in the soliton memory with normalised matrix multiplication reduced peak VRAM from 5.5 GB to 3.11 GB on an RTX 4050.

  4. Roadmap status exceeds the code

    The lab's roadmap marks the cognitive core, including the formal prover, as complete and desktop actuation as ready. In the code the prover and solver return fixed results and actuation is simulated.

Concepts

Non-autoregressive synthesis
Generating a whole output at once rather than token by token. The design treats a multi-file refactor as one global boundary-value problem and specifies patching 50 or more files in a single 10 ms pass; this is not implemented, and the code has only an iterative refinement loop.
Concept solitons
The lab's term for memory states modelled on Korteweg-de Vries (KdV) solitary waves, which keep their shape as they move. The design uses them as unit-hypersphere concept vectors and claims constant memory per step for streaming syntax trees.
Fréchet variance collapse
The lab's scaling-law analysis document describes small models whose barycentric variance on the hypersphere drops to 0.00000. It attributes this to representational crowding and to padding tokens dominating the average.
Johnson-Lindenstrauss packing bound
The number of nearly orthogonal directions in dimension dd is bounded by M(d,ϵ)≤exp⁡(c d ϵ2)M(d, \epsilon) \le \exp(c \, d \, \epsilon^2). The lab uses this to argue that a larger model width avoids angular interference between concepts.
Five architectural scaling laws
Invariant ratios the design specification proposes for sizing: K=d/4K = d/4 memory slots, L=d/64L = d/64 layers, a state-space-to-MLP ratio near 0.381, B=log⁡2d−4B = \log_2 d - 4 bounces, and a transducer-to-decoder ratio near 0.526.
Ideal model sizing matrix
Five planned model tiers from a 3.02M-parameter Nano Core to a 542.80M-parameter ASI Monolith, each mapped to a hardware target and a VRAM budget.
3M baseline parameter split
The lab's scaling-law analysis document breaks down a 3,024,493-parameter baseline: soliton layers 52.48%, decoder 28.28%, transducer 14.87% and instanton engine 4.36%.
Shannon-Rényi entropy gate
The first wall of the immune system. Training samples below 2.5 bits per byte are quarantined by clamping the learning rate to zero.
Spectral pinning
A specified defence against catastrophic forgetting. The conserved eigenvalues of the Lax operator, the spectral invariants of the soliton equations, are held fixed during continual fine-tuning.
Dual-oracle differential fuzzing
Testing compiled native tools against a trusted symbolic oracle in SymPy and requiring agreement within a tolerance, with sanitizer checks for memory errors.
Petri net state machine
The design bounds the agent's transitions with the state equation Mk=M0+A⊤xM_k = M_0 + A^\top x, where MM is the marking and AA the incidence matrix. It uses this to argue the absence of deadlocks and infinite loops.
Sheaf gluing for code
The design borrows the sheaf gluing axiom, under which local data that agree on overlaps combine into a global whole. It uses the axiom to require that type definitions and interface contracts agree across translation units, and to align visual code edits with spoken explanations in tutorial video.
Dual-tier hardware deployment
The roadmap targets edge execution on a laptop RTX 4050 with 6 GB and the full system on a deskside GB300 workstation specified at 20 PFLOPS FP4 with memory pools of 288 GB and 496 GB. The GB300 tier is a roadmap target, not hardware the lab is shown to hold.
Autonomous web researcher
A designed subsystem that formulates search queries, ingests papers, nightly arXiv preprints and video tutorials, extracts SPO triples with trust ratings and checks claims by local benchmarks.

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.