Lockgate

Rewind agent writes, hold the wire.

Row-level CAS journals, idempotent API voids, and a staged outbox chamber.

Inspect MCP server
Machined borosilicate glass holding chamber clamped between twin brushed stainless steel lock gates with a vermilion manual lock pin

Hold the wire before it leaves.

Database snapshots cannot recall a sent email or uncharge a card. Lockgate classifies every tool write into four explicit reversibility tiers and parks irreversible outbound traffic inside a twin-gate chamber until the run checks out.

  • Local SQLite row Atomic before/after row snapshot verified by live SHA-256 CAS precondition.
  • Compensatable API Paired deterministic inverse call keyed once per external resource ID.
  • Staged outbox Emails and webhooks wait behind the outer gate; rewind cancels before dispatch.
  • Exposed irreversible Already flushed across the boundary: emits a reconciliation ticket and runbook.

Never clobber a human edit.

Restoring a whole database backup wipes out legitimate work written by operators in between. Lockgate hashes every touched row inside SQLite WAL transactions and locks a conflict pin whenever another actor changed that row after the agent ran.

Selecting any earlier step computes its exact reverse-topological dependency closure, unwinding child Slack alerts, held emails, and Stripe invoices before touching the parent row.

Precision brushed steel flight-recorder reel and differential index drum locked by a vermilion-tipped mechanical pawl

Interlock console

Live against native Node SQLite. Pick a failure scenario, click any station along the rail to scope its causal closure, resolve the conflict pin, and pull rewind twice to prove exact-once idempotency.

Reading live SQLite ledger.
Interlocking rail (click any station to scope reverse causal closure)
Recorded tape

Dry-run rollback plan
Reverse-topological dependency closure
0 Restore rows
0 Compensate API
0 Cancel outbox
0 Conflicts
0 Tickets

Outbox chamber and external ledger

Break the outer lock seal deliberately on any held message to verify that Lockgate switches from silent cancellation to an honest reconciliation ticket.

Staged outbox chamber

0 held
Inner gate Standby
Outer wire seal Closed

External provider ledger

0 records
Provider Resource Action Status

Reconciliation tickets

0 open

Live SQLite customers table

Native Node SQLite in WAL mode. Compare the live SHA-256 row hashes against the pre-run baseline after every rewind.

Customer Plan Credit limit Contact email Status Updated by Row hash

MCP stdio server and CLI

Point any MCP client at Lockgate over stdio to route agent writes through the same CAS ledger, inverse API registry, and holding chamber.

Registered MCP tools
Tool input schema


            
Client MCP configuration
{
  "mcpServers": {
    "lockgate": {
      "command": "node",
      "args": ["dist/cli.js", "mcp", "--db", "./lockgate.db"]
    }
  }
}