Architecture

How Clavus feels in use — without the implementation brief.


01 / Locking

Locking

Lock a line, function, class, file, folder, or whole project, etc. Agents can still work nearby without false alarms. Edits inside the locked surface are blocked until you unlock. Nearby work stays free; protected content stays frozen.

Span locks also leave a short Clavus marker comment above the piece so protection stays attached as the file grows.

02 / Coupled Proof Checks

Coupled Proof Checks

A Proof Check is a real test or smoke command paired with the lock. While the piece is locked:

  • agents cannot silently rewrite the check to make it pass,
  • re-lock runs the check and refuses to close the unlock window if it fails.

Quick Freeze skips the check for speed; you can upgrade later with Auto-Check or by attaching an existing file.

03 / One-Way Ratchet

One-Way Agent Ratchet

Shield installs editor and agent integrations for Cursor and Claude Code so edits honour your locks.

Agents may tighten (add locks, attach checks, link features, re-lock after you unlocked). Agents may not unlock, unfreeze, weaken checks, unlink, reset the breaker, or change Clavus project / shield configuration. That asymmetry is the One-Way Agent Ratchet.

04 / Glass Vault

Glass-Vault diagnosis

When locked code is involved in a failure, Clavus keeps the vault readable. Agents get full read access and should hand you an Unlock Proposal instead of papering over the bug in callers.

The Visual Inspector and alerts help you unlock the smallest correct surface — not guess with more tokens.

05 / Circuit Breaker

Credit-Burn Circuit Breaker

If an agent repeatedly fails against the same protected target, Clavus latches a Credit-Burn Circuit Breaker: further burning edits pause until a human inspects the Likely Root Cause, fixes (often via Unlock Suspect to Fix), and resets the breaker. The goal is fewer wasted model calls, not more.

06 / Zero-Hostage Ownership

Offline-first Zero-Hostage ownership

Locks live in your project under .clavus/ (commit the shared lock map). Licence state lives on your machine. The Visual Inspector binds to localhost only. Enforcement does not require a cloud round-trip.

Zero-Hostage Promise: when the 14-day Reverse Trial ends, existing protections stay active. The free sandbox only limits new locks. Clavus never auto-clears your protections to force a purchase.