Mutation Approval
Plans are free. Changes cost a confirmation. That's the contract.
When This Skill Activates
- Any Claw with
mutation_default: false is about to execute a file operation
- A destructive or irreversible operation is about to run (delete, overwrite, move)
- Keywords: "move", "delete", "overwrite", "rename", "apply changes", "execute plan"
- Default for: Starlight Sentinel
- Activated by: Reclamation Claw, Bootstrap Claw, Memory Claw (on decay), Architect Claw
What This Skill Does
Intercepts mutations before they execute. Presents a clear human-readable summary of what will change, requires explicit confirmation, records the approval, and passes control back to the requesting Claw. No mutation is silent. No mutation is irreversible without a logged confirmation.
Procedures
Procedure 1: Pre-Mutation Briefing
- Receive mutation plan from requesting Claw:
{ claw_id, operation_type, targets: [{ path, action, description }], reversible: bool }
- Render a human-readable summary:
Reclamation Claw wants to make 14 changes:
- Move 8 files from ~/Documents/old/ to ~/Documents/projects/
- Move 3 files to ~/Documents/archive/
- Import 3 items into SIS vaults
Reversible: Yes (move log will be saved)
Type "I confirm" to proceed, or "cancel" to abort.
- Wait for user response — no timeout, no auto-proceed
- If "I confirm" (case-insensitive): log approval, return APPROVED
- If anything else: log cancellation, return DENIED
Procedure 2: Partial Approval
- User wants to approve some operations but not others
- Present individual operations for line-by-line approval
- Mark each as APPROVED or SKIPPED
- Return approved subset to Claw for execution
- Log all decisions
Procedure 3: Irreversible Operation Gate
For operations flagged reversible: false (e.g., permanent deletes):
- Add extra confirmation layer:
⚠️ This action cannot be undone.
Memory Claw wants to permanently delete 4 archived vault entries.
Type the exact phrase "delete permanently" to confirm, or "cancel" to abort.
- Accept only the exact confirmation phrase
- Log with full entry content in the audit trail before executing
Procedure 4: Batch Rollback
If a mutation batch fails mid-execution:
- Halt remaining operations
- Execute rollback for completed operations in reverse order
- Report: what succeeded, what failed, what was rolled back
- Write full rollback log to
~/.starlight/logs/mutation-rollback.jsonl
Integration Points
- Vaults: No direct vault access — operates on mutation proposals only
- Agents: Starlight Sentinel (primary)
- Skills: Composes with
permission-gate (authorization check runs first)
- Claws: Reclamation (file moves), Bootstrap (directory creation), Memory (decay), Architect (scaffolding)
Quality Criteria
- User always reads a plain-language summary before confirming
- Confirmation phrase must be explicit — no ambiguous Y/n prompts for destructive ops
- Every approval is logged with timestamp, claw, operation count, and user phrase
- Rollback is always attempted on failure — never leave a half-executed plan
1---2name: safety-mutation-approval3description: Require explicit user confirmation before any Claw mutates user files outside ~/.starlight/. Produces a plan first; mutations are never the default. Fires on all Claws with filesystem:write_user permission. Default skill for Starlight Sentinel and Bootstrap Claw.4---56# Mutation Approval78> Plans are free. Changes cost a confirmation. That's the contract.910## When This Skill Activates1112- Any Claw with `mutation_default: false` is about to execute a file operation13- A destructive or irreversible operation is about to run (delete, overwrite, move)14- Keywords: "move", "delete", "overwrite", "rename", "apply changes", "execute plan"15- Default for: Starlight Sentinel16- Activated by: Reclamation Claw, Bootstrap Claw, Memory Claw (on decay), Architect Claw1718## What This Skill Does1920Intercepts mutations before they execute. Presents a clear human-readable summary of what will change, requires explicit confirmation, records the approval, and passes control back to the requesting Claw. No mutation is silent. No mutation is irreversible without a logged confirmation.2122## Procedures2324### Procedure 1: Pre-Mutation Briefing25261. Receive mutation plan from requesting Claw:27 ```28 { claw_id, operation_type, targets: [{ path, action, description }], reversible: bool }29 ```302. Render a human-readable summary:31 ```32 Reclamation Claw wants to make 14 changes:33 - Move 8 files from ~/Documents/old/ to ~/Documents/projects/34 - Move 3 files to ~/Documents/archive/35 - Import 3 items into SIS vaults3637 Reversible: Yes (move log will be saved)38 Type "I confirm" to proceed, or "cancel" to abort.39 ```403. Wait for user response — no timeout, no auto-proceed414. If "I confirm" (case-insensitive): log approval, return APPROVED425. If anything else: log cancellation, return DENIED4344### Procedure 2: Partial Approval45461. User wants to approve some operations but not others472. Present individual operations for line-by-line approval483. Mark each as APPROVED or SKIPPED494. Return approved subset to Claw for execution505. Log all decisions5152### Procedure 3: Irreversible Operation Gate5354For operations flagged `reversible: false` (e.g., permanent deletes):55561. Add extra confirmation layer:57 ```58 ⚠️ This action cannot be undone.59 Memory Claw wants to permanently delete 4 archived vault entries.6061 Type the exact phrase "delete permanently" to confirm, or "cancel" to abort.62 ```632. Accept only the exact confirmation phrase643. Log with full entry content in the audit trail before executing6566### Procedure 4: Batch Rollback6768If a mutation batch fails mid-execution:69701. Halt remaining operations712. Execute rollback for completed operations in reverse order723. Report: what succeeded, what failed, what was rolled back734. Write full rollback log to `~/.starlight/logs/mutation-rollback.jsonl`7475## Integration Points7677- **Vaults:** No direct vault access — operates on mutation proposals only78- **Agents:** Starlight Sentinel (primary)79- **Skills:** Composes with `permission-gate` (authorization check runs first)80- **Claws:** Reclamation (file moves), Bootstrap (directory creation), Memory (decay), Architect (scaffolding)8182## Quality Criteria8384- User always reads a plain-language summary before confirming85- Confirmation phrase must be explicit — no ambiguous Y/n prompts for destructive ops86- Every approval is logged with timestamp, claw, operation count, and user phrase87- Rollback is always attempted on failure — never leave a half-executed plan