Matapan docs · Overview

Matapan

Matapan is a local-first transactional control plane for agent-produced code. Coding agents (ChatGPT, Claude, Codex) get disposable, container-isolated workspaces and return work only as immutable, evidence-bearing proposals, applied via compare-and-swap. Your active checkout is never in the agent's write path.

The loop:

import trusted source → disposable isolated workspace → scoped tools/runtime → capture edits + verification → seal immutable proposal against an expected base → review → compare-and-swap apply → revoke and destroy → redacted audit trail remains.

Matapan is a workspace transaction manager — not an IDE, not an agent, not a generic sandbox, not a Git GUI.

Status

0.1.0-beta.1 + hardening rounds 3–6. All eight planned sprints are landed (security core, lifecycle, hardened runtime, MCP surface, proposal engine, policy profiles, secrets broker, egress proxy, audit retention, packaging), followed by an independent adversarial audit series that closed every blocker-severity finding (B-03 host Git execution, B-05 snapshot backups, B-06/NB-01 run lifecycle, B-08 destructive storage inputs). See CHANGELOG.md and the Threat Model.

The trust model in one paragraph

The agent is untrusted code working on trusted source. Every git invocation goes through one hardened runner (hooks dead, environment scrubbed, external drivers refused, signing and signature verification forced off). Every run executes in a locked-down container (capabilities dropped, read-only rootfs, no network by default, resource clamps). Agents never receive apply authority: work returns as a sealed proposal whose content digest, policy digest, and target branch are anchored in a hash-chained ledger and authenticated with an HMAC only the daemon holds. Apply is a layered compare-and-swap — what you reviewed is what lands, or nothing does.

Key properties

Where to go next