safety/permission-gate
Skill10 starsChanged 2 months agoMITView on GitHub
Gate every mutation request against the Claw's declared permission surface — fires before any write to filesystem, vault, or external system. No Claw bypasses this gate. Default skill for Starlight Sentinel and every Claw that carries filesystem or sis_vaults write permissions.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Arcanea-Labs/Starlight-Intelligence-Systemword for word, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 1
- Arcanea-Labs/Starlight-Intelligence-System★ 10100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- site/AGENTS.mdAGENTS.md
- .claude/hooks/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- site/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/editorial.mdcCursor rule
- .cursor/rules/starlight-agents.mdcCursor rule
- .cursor/rules/starlight-core.mdcCursor rule
- .cursor/rules/starlight-memory.mdcCursor rule
- .cursor/rules/starlight-voice.mdcCursor rule
- frank-brand-editorSkill
- agent-hygieneSkill
- estate-guardSkill
- SKILL.mdSkill
- crypto-intelligenceSkill
- agent-forgeSkill
- skill-forgeSkill
- system-forgeSkill
- taste-engineSkill
- integration/ecosystem-syncSkill
- integration/repo-bridgeSkill
- integration/transmission-protocolSkill
- integration/universal-adapterSkill
- intelligence/decision-frameworkSkill
- intelligence/hermes-searchSkill
- intelligence/pattern-recognitionSkill
- intelligence/strategic-reasoningSkill
- intelligence/systems-thinkingSkill
- heartSkill
- storageSkill
- memory/capture-disciplineSkill
- memory/context-preservationSkill
- memory/insight-distillationSkill
- memory/knowledge-synthesisSkill
- memory/memory-consolidationSkill
- sis-memory-orchestratorSkill
- memory/vault-managementSkill
- agent-creatorSkill
- orchestration/context-engineeringSkill
- orchestration/gencreator-stackSkill
- orchestration/hermes-swarmSkill
- orchestration/multi-agent-coordinationSkill
- orchestration/parallel-executionSkill
- orchestration/workflow-designSkill
- workflow-skill-creatorSkill
- safety/mutation-approvalSkill
- safety/private-public-splitSkill
- safety/secret-detectorSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Always active when Sentinel Claw is running
- Distinctive: line 16
Default for: Starlight Sentinel
- Very specific: line 28
Check: is the requested action within the Claw's declared permissions.* surface?
- Distinctive: line 29
Check: is the target path within the declared workspace?
- Very specific: line 30
Check: does the Claw's mutation_default allow this action without explicit approval?
- Very specific: line 31
If mutation_default: false → escalate to Procedure 2 (Mutation Approval Request)
- Very specific: line 32
If within permissions + mutation_default: true → APPROVE, log, return
- Distinctive: line 33
If outside permissions → DENY, log reason, return
- Distinctive: line 41
Never auto-approve boundary violations
- Very specific: line 45
Every decision (APPROVE or DENY) writes to ~/.starlight/logs/permission.jsonl
- Distinctive: line 58
Every mutation is logged before it executes
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Permission Gate
Every mutation request passes through this gate. No Claw bypasses it.
When This Skill Activates
- Any Claw attempts to write files, execute shell commands, or export data
- Keywords: "write", "move", "delete", "execute", "export", "send", "upload"
- Always active when Sentinel Claw is running
- Default for: Starlight Sentinel
What This Skill Does
Evaluates permission requests from Claws against their declared permission surface in CLAW.md, the user's workspace contract, and the active safety posture. Issues a programmatic APPROVE or DENY with logged reasoning.
Procedures
Procedure 1: Permission Evaluation
- Receive permission request:
{ claw_id, action_type, target, declared_reason } - Load the requesting Claw's
CLAW.mdpermission block - Check: is the requested action within the Claw's declared
permissions.*surface? - Check: is the target path within the declared workspace?
- Check: does the Claw's
mutation_defaultallow this action without explicit approval? - If
mutation_default: false→ escalate to Procedure 2 (Mutation Approval Request) - If within permissions +
mutation_default: true→ APPROVE, log, return - If outside permissions → DENY, log reason, return
Procedure 2: Permission Boundary Violation
- Action requested is outside declared permission surface
- Log violation:
{ timestamp, claw_id, requested_action, declared_surface, verdict: DENY } - Present violation to user in plain language
- Offer: "Update Claw contract to include this permission?" or "Proceed as one-time exception?"
- Never auto-approve boundary violations
Procedure 3: Permission Log Write
- Every decision (APPROVE or DENY) writes to
~/.starlight/logs/permission.jsonl - Entry includes: timestamp, claw_id, action_type, target (sanitized), decision, reason
- Log is append-only — no entry is ever modified or deleted
Integration Points
- Vaults: Reads Wisdom vault for security principles
- Agents: Primary agent is Starlight Sentinel
- Claws: Called by every Claw with
requires_sentinel: true - Skills: Composes with
mutation-approvalfor interactive approval flows
Quality Criteria
- Every mutation is logged before it executes
- Boundary violations are surfaced to the user, never silently resolved
- DENY decisions include a human-readable reason
- Log entries are parseable JSON (not freeform text)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

