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 Piece | Lock Piece with Proof Check | Quick Freeze File / Folder / Project | Lock File / Folder with Proof Check |
|---|
| What it protects | One function or class under the cursor | Same piece, plus a coupled smoke/test file | Whole file, every eligible file in a folder, or the whole project | Same whole-file scope, plus one shared Proof Check |
| Marker comment above the piece | Yes — a short Clavus marker | Yes — same marker | No — whole-file protection only | No — whole-file protection only |
| Updates the shared lock map | Yes | Yes (includes Proof Check) | Yes | Yes (includes Proof Check) |
| Agent cannot edit the piece | Yes | Yes | Yes | Yes |
| Agent cannot edit / skip the check | N/A (no check yet) | Yes — check is frozen with the piece | N/A until you add a check | Yes |
| Pick when | Bedrock works; you want speed | Bedrock must keep passing a real assertion | Broad freeze without touching every function | Folder/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.
Right-click in the editor or Explorer → Clavus. Five submenus:
Freeze & Lock
| Command | What it does | When to use it | What changes on disk |
|---|
| Suggest Priority Locks | Suggests pieces worth protecting next | After Shield is on; when you are unsure what to lock first | Read-only until you accept a suggestion; accepting then writes locks / links as chosen |
| Quick Freeze Piece | Freezes the function/class under the cursor | Bedrock works; no test attached yet | Marker comment + lock-map entry |
| Lock Piece with Proof Check | Freezes the piece and attaches a Proof Check | You have (or will pick) a test that must keep passing | Marker + verified lock with Proof Check |
| Quick Freeze File | Freezes the whole file | File is a unit of bedrock | File-scope lock; no marker comment |
| Lock File with Proof Check… | Whole-file freeze + Proof Check prompt | File must stay green under a named check | File-scope verified lock + Proof Check |
| Quick Freeze Folder… | Freezes eligible source files under a folder | Module / package boundary | One file-scope lock per eligible file |
| Lock Folder with Proof Check… | Folder freeze with one shared Proof Check | Shared smoke test covers the folder | File-scope verified locks + shared check |
| Freeze Entire Project | Quick-freezes eligible files under the project root | Rare; broad emergency freeze | Many file-scope Quick Freeze locks |
Unlock & Re-lock
| Command | What it does | When to use it | What changes on disk |
|---|
| Unlock Piece to Edit | Opens one protected piece for intentional edits | You (or the agent, after your unlock) need to change that piece | Lock map marks the piece unlocked; marker stays |
| Re-lock Piece | Closes the unlock window; runs Proof Check if present | Edits are done and checks pass | Lock restored |
| Unlock File / Folder… | Unlocks every protected piece under a path | Cross-cutting refactor in one area | Multiple unlocks under that path |
| Unlock All Protected Pieces | Unlocks every piece in the project | Rare full-project intentional edit | All active unlocks recorded |
| Re-lock All Unlocked Pieces | Re-locks every open unlock | After a bulk refactor | All unlocks closed (Proof Checks must pass where attached) |
Proof Checks
| Command | What it does | When to use it | What changes on disk |
|---|
| Add Proof Check (Auto-Check) | Upgrades a Quick Freeze: generates or attaches a smoke check | Piece is frozen but has no assertion yet | Lock becomes verified; check file may be created |
| Edit Proof Check | Points an existing verified lock at a different check / command | Test moved or command changed | Updates Proof Check on the lock |
| Remove Proof Check | Downgrades verified → Quick Freeze | You want freeze without a coupled test | Clears Proof Check; freeze remains |
| Check All Protections | Audits every lock for drift, missing files, or broken checks | After merges, formatter runs, or before a release | Read-only audit; may surface alerts (no lock removal) |
Remove Protection
| Command | What it does | When to use it | What changes on disk |
|---|
| Unfreeze Piece | Removes protection for one piece | Piece should no longer be locked | Removes lock entry; marker comment should be cleaned up if present |
| Unfreeze File / Folder… | Removes locks under a path | Retiring a module’s protections | Deletes matching lock entries |
| Unfreeze All… | Removes every lock in the project | Clean uninstall of protections (with confirmation) | Clears lock map entries |
Shield & Connections
| Command | What it does | When to use it | What changes on disk |
|---|
| Turn On / Repair Clavus Shield | Creates project Clavus state if needed; installs / repairs editor & agent integrations | First setup; after shield wiring was deleted or broken | Shared lock map under .clavus/; editor/agent shield wiring |
| Open Visual Inspector | Opens the local read-only Inspector | Diagnosis, connections, Credit-Burn view | Starts local loopback page (no cloud) |
| Link Connected Pieces | Records that protected piece A depends on B (multi-select; can Auto-Link imports) | Features must move together above/below the ratchet | Connection recorded in the lock map |
| Unlink Connected Pieces | Removes a recorded connection | Connection was wrong or obsolete | Removes connection |
| Inspect Alerts | Lists protection alerts / circuit-breaker hits | Red badges, drift, or breaker paused edits | Read-only; may offer Unlock Suspect to Fix |
| Reset Circuit Breaker | Clears the Credit-Burn pause | After you fixed the Likely Root Cause | Clears the local breaker pause |
| Manage Licence & Trial | Shows trial / sandbox / Maker licence status; activate when ready | Trial ending; need more than 3 locks | Updates 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
| Badge | Meaning |
|---|
| ● | 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
| Colour | Meaning |
|---|
| Green | Protected and intact |
| Amber | Unlocked to edit |
| Red | Protection 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
| Capability | Examples |
|---|
| Tighten protections | Add piece / file / folder locks; upgrade a Quick Freeze with a Proof Check; re-lock after you unlocked |
| Link features | Record connections between protected pieces |
| Read-only diagnosis | Integrity check; Glass-Vault failure diagnosis; priority-lock suggestions; advisory edit check |
| Read locked code | Inspect, search, and run tests — agents are not blind to locked pieces |
What AI agents are hard-blocked from doing
| Blocked action | Why |
|---|
| Unlock or unfreeze any piece | Only the human opens the ratchet |
| Edit / remove / weaken Proof Checks | Checks stay coupled to the lock |
| Unlink connected features | Loosening connections is human-only |
| Reset the Credit-Burn Circuit Breaker | You clear it after fixing the cause |
| Change Clavus project state or shield configuration | Control plane is human-only |
| Disable Clavus from the agent | Shield 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