3-Tier Undo-Cost Ladder
Automatically picks the right safety check based on how hard an action is to undo.
A typo in a database migration gets the exact same light check as editing a readme file.
Easy edits fly through automatically; risky API edits trigger peer review; irreversible changes stop for a human.
What It Does (In Plain English)
Instead of treating every write the same, Reversibility Gate sorts actions into 3 simple tiers: one_click (easy to undo → run autonomously), cleanup (messy to undo, e.g., public API changes → require tests + independent AI review), and no_undo (irreversible, e.g., DROP TABLE → require human approval). Agents cannot spoof a lower tier.
Real-World Example
- 1Agent edits a private helper (
one_click) → runs straight through. - 2Agent edits
src/api/orders.js(cleanup) → Reversibility Gate demands tests + independent review. - 3Agent tries to run
DROP TABLE(no_undo) → Reversibility Gate escalates directly to human approval.
When Should You Turn It On?
Add at Level 3 (execute) or Level 4 (commit) to match oversight automatically to blast radius.
Safety level note: Level 3 · Execute — Can run routine live actions with grants, receipts, and audit logs.
How to Add It (workspace.yaml)
kits:
- "@neusym/kit-reversibility-gate@0.1.0"
domain:
seeds:
reversibilityPolicies:
- name: default-ladder
active: true
rules:
- id: api-changes
tier: cleanup
mutatedPathPrefixes: ["src/api/"]Kits It Works With
Technical Details & Configuration Options (2 settings)
| Package | @neusym/kit-reversibility-gate |
|---|---|
| Provides Ports | reversibility@1 |
| Requires Ports | tools@1tasks@1 |
| Optional Ports | artifacts@1review@1approvals@1digital-twin@1 |
| Publishes Events | reversibility.evaluated |
| Owned DB Collections | reversibility_policies |
Configuration Options (kitConfigs.reversibility-gate)
| Setting | Type | Default | Description |
|---|---|---|---|
staticPolicies | array | [] | Optional static reversibility policies merged below tenant-managed policies of the same name. |
enforceOnTaskComplete | boolean | false | When true, task.complete verifies trusted evidence requirements for active reversibility policies. |