Features & Commands

What every Clavus function does, when to use it, and what you should expect on disk.


Which lock should I use?

Quick Freeze PieceLock Piece with Proof CheckQuick Freeze File / Folder / ProjectLock File / Folder with Proof Check
What it protectsOne function or class under the cursorSame piece, plus a coupled smoke/test fileWhole file, every eligible file in a folder, or the whole projectSame whole-file scope, plus one shared Proof Check
Marker comment above the pieceYes — a short Clavus markerYes — same markerNo — whole-file protection onlyNo — whole-file protection only
Updates the shared lock mapYesYes (includes Proof Check)YesYes (includes Proof Check)
Agent cannot edit the pieceYesYesYesYes
Agent cannot edit / skip the checkN/A (no check yet)Yes — check is frozen with the pieceN/A until you add a checkYes
Pick whenBedrock works; you want speedBedrock must keep passing a real assertionBroad freeze without touching every functionFolder/file must stay green under one shared test

Rule of thumb: protect the 10–20% that must not regress with Proof Checks; use Quick Freeze for everything else that already works; use file/folder locks when piece-by-piece would be busywork.


Complete Clavus ▸ menu reference

Right-click in the editor or Explorer → Clavus. Five submenus:

Freeze & Lock

CommandWhat it doesWhen to use itWhat changes on disk
Suggest Priority LocksSuggests pieces worth protecting nextAfter Shield is on; when you are unsure what to lock firstRead-only until you accept a suggestion; accepting then writes locks / links as chosen
Quick Freeze PieceFreezes the function/class under the cursorBedrock works; no test attached yetMarker comment + lock-map entry
Lock Piece with Proof CheckFreezes the piece and attaches a Proof CheckYou have (or will pick) a test that must keep passingMarker + verified lock with Proof Check
Quick Freeze FileFreezes the whole fileFile is a unit of bedrockFile-scope lock; no marker comment
Lock File with Proof Check…Whole-file freeze + Proof Check promptFile must stay green under a named checkFile-scope verified lock + Proof Check
Quick Freeze Folder…Freezes eligible source files under a folderModule / package boundaryOne file-scope lock per eligible file
Lock Folder with Proof Check…Folder freeze with one shared Proof CheckShared smoke test covers the folderFile-scope verified locks + shared check
Freeze Entire ProjectQuick-freezes eligible files under the project rootRare; broad emergency freezeMany file-scope Quick Freeze locks

Unlock & Re-lock

CommandWhat it doesWhen to use itWhat changes on disk
Unlock Piece to EditOpens one protected piece for intentional editsYou (or the agent, after your unlock) need to change that pieceLock map marks the piece unlocked; marker stays
Re-lock PieceCloses the unlock window; runs Proof Check if presentEdits are done and checks passLock restored
Unlock File / Folder…Unlocks every protected piece under a pathCross-cutting refactor in one areaMultiple unlocks under that path
Unlock All Protected PiecesUnlocks every piece in the projectRare full-project intentional editAll active unlocks recorded
Re-lock All Unlocked PiecesRe-locks every open unlockAfter a bulk refactorAll unlocks closed (Proof Checks must pass where attached)

Proof Checks

CommandWhat it doesWhen to use itWhat changes on disk
Add Proof Check (Auto-Check)Upgrades a Quick Freeze: generates or attaches a smoke checkPiece is frozen but has no assertion yetLock becomes verified; check file may be created
Edit Proof CheckPoints an existing verified lock at a different check / commandTest moved or command changedUpdates Proof Check on the lock
Remove Proof CheckDowngrades verified → Quick FreezeYou want freeze without a coupled testClears Proof Check; freeze remains
Check All ProtectionsAudits every lock for drift, missing files, or broken checksAfter merges, formatter runs, or before a releaseRead-only audit; may surface alerts (no lock removal)

Remove Protection

CommandWhat it doesWhen to use itWhat changes on disk
Unfreeze PieceRemoves protection for one piecePiece should no longer be lockedRemoves lock entry; marker comment should be cleaned up if present
Unfreeze File / Folder…Removes locks under a pathRetiring a module’s protectionsDeletes matching lock entries
Unfreeze All…Removes every lock in the projectClean uninstall of protections (with confirmation)Clears lock map entries

Shield & Connections

CommandWhat it doesWhen to use itWhat changes on disk
Turn On / Repair Clavus ShieldCreates project Clavus state if needed; installs / repairs editor & agent integrationsFirst setup; after shield wiring was deleted or brokenShared lock map under .clavus/; editor/agent shield wiring
Open Visual InspectorOpens the local read-only InspectorDiagnosis, connections, Credit-Burn viewStarts local loopback page (no cloud)
Link Connected PiecesRecords that protected piece A depends on B (multi-select; can Auto-Link imports)Features must move together above/below the ratchetConnection recorded in the lock map
Unlink Connected PiecesRemoves a recorded connectionConnection was wrong or obsoleteRemoves connection
Inspect AlertsLists protection alerts / circuit-breaker hitsRed badges, drift, or breaker paused editsRead-only; may offer Unlock Suspect to Fix
Reset Circuit BreakerClears the Credit-Burn pauseAfter you fixed the Likely Root CauseClears the local breaker pause
Manage Licence & TrialShows trial / sandbox / Maker licence status; activate when readyTrial ending; need more than 3 locksUpdates licence state on your machine (not project Git)

Status Bar Command Hub

Click the Clavus status bar item (Clavus, N protected, alert, or Circuit Breaker) to open the Command Hub — a short picker for the same actions (including Unlock Suspect to Fix when the breaker is active).

Also available from the Command Palette: Clavus: Open Command Hub, Focus Protected Features, Activate Licence, Licence Status, Jump to Protected Piece.

Explorer badges

BadgeMeaning
●Whole file protected (or folder fully covered)
◐Partial — one or more locks (or folder partially covered)
○One or more pieces unlocked to edit
!Protection alert (drift) or circuit breaker on that path

Gutter rail colours

ColourMeaning
GreenProtected and intact
AmberUnlocked to edit
RedProtection alert (code or Proof Check drifted)

Agent & terminal reference

AI agents work through Clavus’s editor integrations. Humans use the Padlock UI (or their own terminal).

What AI agents can do

CapabilityExamples
Tighten protectionsAdd piece / file / folder locks; upgrade a Quick Freeze with a Proof Check; re-lock after you unlocked
Link featuresRecord connections between protected pieces
Read-only diagnosisIntegrity check; Glass-Vault failure diagnosis; priority-lock suggestions; advisory edit check
Read locked codeInspect, search, and run tests — agents are not blind to locked pieces

What AI agents are hard-blocked from doing

Blocked actionWhy
Unlock or unfreeze any pieceOnly the human opens the ratchet
Edit / remove / weaken Proof ChecksChecks stay coupled to the lock
Unlink connected featuresLoosening connections is human-only
Reset the Credit-Burn Circuit BreakerYou clear it after fixing the cause
Change Clavus project state or shield configurationControl plane is human-only
Disable Clavus from the agentShield stays under your control

If an agent believes a locked piece is the bug, it must stop editing and give you an Unlock Proposal (evidence, minimal change, how it will verify). You decide whether to unlock.

Related: HOW_TO_GUIDES.md · ERROR_CODES.md