Scarlet Sovereign Systems · New Plymouth, Aotearoa New Zealand

An independent research lab building low-compute, local-first AI.

We study how ordinary commodity CPUs can run persistent, inspectable models locally — with the weights, the kernels, and the state staying on the owner's own hardware.

This is a research practice, not a storefront. Our primary output is open engineering notes, kernels, and four core papers; a small set of tools that grew out of the lab work sits quietly below.

Four core papers.

All research notes

Transformers: Pastry, Not Pie

Why stateless attention hits a structural wall on local hardware, and the O(1) persistent state, salience working memory, and episodic recall built to replace it in pure Rust.

Read Paper I →

SCARLET Is All You Need

Hardware isomorphism and cryptographic provenance: uniting dense ternary transformers, O(1) state-space models, recurrent depth, and block diffusion on one commodity-CPU substrate with MAC-sealed state.

Read Paper II →

POPCNT: State of the Art in the New Art of State

The bit-exact zero-multiply POPCNT origin identity, the DualTrit memory layout, SIMD dispatch across x86_64 and ARM64, and the invariants that keep ternary inference exact.

Read Paper III →

TritCore v1.4: One Kernel, Four Architectures

Dense ternary, O(1) state-space, recurrent depth, and block diffusion running on a single zero-multiply kernel — documenting the failure modes we hit and the invariants that tamed them.

Read Paper IV →

Sovereign compute, built from first principles.

Control belongs with the person who owns the machine.

Modern AI assumes a rented data centre, a metered API, and an opaque remote runtime. We work on the opposite premise: that meaningful inference, memory, and agent execution should run on modest local hardware, offline by default, with every state transition inspectable and reversible.

Based in New Plymouth, Aotearoa New Zealand, Scarlet Sovereign Systems operates as an independent systems lab focused on ternary arithmetic, zero-dependency Rust kernels, fail-closed agent boundaries, and human-scale software.

Receipts before claims.

  • Local-first substrate. Kernels, indexes, and state live on the local disk with zero telemetry and no cloud dependency in the hot path.
  • Fail-closed agency. Tools refuse stale writes, verify cryptographic hashes before mutating files, and bind approvals to exact arguments.
  • Measured parity. Every kernel and protocol change is checked against deterministic tests and documented alongside its failure modes.

Verification & parity notes · Cryptographic agent policy gates

Quiet artefacts from the work.

Index of tools

To build and verify the kernels above, we wrote small, self-contained Rust tools for our own ongoing research. They are kept here quietly for anyone working on local-first systems.

Repo Printer

Sandboxed, state-locked surgical file patching over MCP. Enforces canonical path containment, optimistic hash locks, dry-run validation, and atomic multi-file rollback.

Included with Codex →

Crimson Codex

Single Rust binary combining hybrid BM25 + dense search, vector-graph recall, interactive offline HTML repo graphs, symbol outlines, diff impact mapping, and surgical patching.

Crimson Codex →

Scarlet Sentinel

A fail-closed MCP policy gate for AI agents: deny-by-default tool boundaries, argument-bound consent, and tamper-evident local audit logs.

Scarlet Sentinel →