agent-self-governance
· v1.1.0
"Self-governance protocol for autonomous agents: WAL (Write-Ahead Log), VBR (Verify Before Reporting), ADL (Anti-Divergence Limit), VFM (Value-For-Money), and IKL (Infrastructure Knowledge Logging). Use when: (1) receiving a user correction — log it before responding, (2) making an important decision or analysis — log it before continuing, (3) pre-compaction memory flush — flush the working buffer to WAL, (4) session start — replay unapplied WAL entries to restore lost context, (5) any time you want to ensure something survives compaction, (6) before claiming a task is done — verify it, (7) periodic self-check — am I drifting from my persona? (8) cost tracking — was that expensive operation worth it? (9) discovering infrastructure — log hardware/service specs immediately."
⚠️ Hazard Flags
📋 Capabilities
Execution
- ✅ Shell execution
- ❌ Code execution
- ❌ Install dependencies
- ❌ Persistence
- Privilege: user
Filesystem
- ✅ Read workspace
- ✅ Write workspace
- ✅ Read home
- ✅ Write home
- ❌ Read system
- ✅ Delete
Network
- Egress: none
- ❌ Ingress
Credentials
- ✅ Environment vars
- ✅ Credential files
- ❌ Browser data
- ❌ Keychain
Actions
🔒 Containment
Level: maximum
- APPROVE_POST: Can post publicly
- SANDBOX_CONTAINER: Code execution capability
- LOG_ACTIONS: Audit trail for all actions
⚡ Risks
Mitigation: Verify legitimate need for SSH access. Consider sandboxing.
Mitigation: Use shell=False and pass commands as lists
Mitigation: Provide clear, detailed description of skill functionality
Want a deeper analysis?
This report was generated by static analysis. Get an LLM-powered deep review with behavioral reasoning and attack surface mapping.
🧠 Deep Analysis — $5.00🚨 Incident Response
Kill switch: Stop the agent process
Containment: Review logs for unexpected actions
Recovery: Depends on skill capabilities
📄 Raw SSDS JSON click to expand
{
"meta": {
"document_id": "ssds:auto:agent-self-governance:1.1.0",
"ssds_version": "0.2.0",
"scanner_version": "0.4.0+fe6fd9123d50",
"created_at": "2026-03-05T02:56:28.881Z",
"created_by": {
"agent": "safeagentskills-cli/generate-ssds"
},
"language": "en",
"notes": "Auto-generated SSDS. Manual review recommended."
},
"skill": {
"name": "agent-self-governance",
"version": "1.1.0",
"format": "agent_skill",
"description": "\"Self-governance protocol for autonomous agents: WAL (Write-Ahead Log), VBR (Verify Before Reporting), ADL (Anti-Divergence Limit), VFM (Value-For-Money), and IKL (Infrastructure Knowledge Logging). Use when: (1) receiving a user correction — log it before responding, (2) making an important decision or analysis — log it before continuing, (3) pre-compaction memory flush — flush the working buffer to WAL, (4) session start — replay unapplied WAL entries to restore lost context, (5) any time you want to ensure something survives compaction, (6) before claiming a task is done — verify it, (7) periodic self-check — am I drifting from my persona? (8) cost tracking — was that expensive operation worth it? (9) discovering infrastructure — log hardware/service specs immediately.\"",
"publisher": "unknown",
"source": {
"channel": "local"
},
"artifact": {
"sha256": "e03176f28ea2db779d1aaa98ec3c6742997fa806a3925649a4266948898db052",
"hash_method": "files_sorted"
}
},
"capabilities": {
"execution": {
"can_exec_shell": true,
"can_exec_code": false,
"privilege_level": "user",
"can_install_deps": false,
"can_persist": false
},
"filesystem": {
"reads_workspace": true,
"reads_user_home": true,
"reads_system": false,
"writes_workspace": true,
"writes_user_home": true,
"writes_system": true,
"can_delete": true
},
"network": {
"egress": "none",
"ingress": false
},
"credentials": {
"reads_env_vars": true,
"reads_credential_files": true,
"reads_browser_data": false,
"reads_keychain": false
},
"services": [],
"actions": {
"can_send_messages": false,
"can_post_public": true,
"can_purchase": false,
"can_transfer_money": false,
"can_deploy": false,
"can_delete_external": false
},
"prompt_injection_surfaces": [],
"content_types": [
"general"
]
},
"hazards": {
"hdac": {
"H": 4,
"D": 4,
"A": 3,
"C": 1
},
"flags": [
"EXEC",
"FS_READ_WORKSPACE",
"FS_READ_USER",
"FS_WRITE_WORKSPACE",
"FS_WRITE_USER",
"FS_WRITE_SYSTEM",
"FS_DELETE",
"CREDS_ENV",
"CREDS_FILES",
"ACT_POST_PUBLIC"
],
"custom_flags": [
{
"code": "CRED_SSH",
"name": "SSH Key Access",
"description": "Accesses SSH keys in: SKILL.md"
},
{
"code": "FILE_DELETE",
"name": "File Deletion",
"description": "Can delete files in: scripts/wal.py"
},
{
"code": "SOCIAL_ENGINEERING",
"name": "Social Engineering Risk",
"description": "SOCIAL_ENG_VAGUE_DESCRIPTION: Skill description is too vague or missing"
},
{
"code": "COMMAND_INJECTION",
"name": "Command Injection Risk",
"description": "COMMAND_INJECTION_SHELL_TRUE: Shell command execution with shell=True enabled"
}
],
"confidence": {
"level": "medium",
"basis": [
"static_analysis"
],
"notes": "Detected 4 security patterns (2 vendored rule hits). Review recommended."
},
"rationale": {
"H": "H4: Critical: Privilege escalation or malware detected",
"D": "D4: Critical: Credential theft or data exfiltration",
"A": "A3: External actions (deploy/message/post)",
"C": "C1: General content"
}
},
"containment": {
"level": "maximum",
"required": [
{
"control": "APPROVE_POST",
"reason": "Can post publicly"
},
{
"control": "SANDBOX_CONTAINER",
"reason": "Code execution capability"
}
],
"recommended": [
{
"control": "LOG_ACTIONS",
"reason": "Audit trail for all actions"
}
],
"uncontained_risk": "Risk level depends on manual review of actual capabilities."
},
"risks": {
"risks": [
{
"risk": "SSH key access patterns in: SKILL.md",
"severity": "high",
"mitigation": "Verify legitimate need for SSH access. Consider sandboxing."
},
{
"risk": "Command injection risk: COMMAND_INJECTION_SHELL_TRUE",
"severity": "high",
"mitigation": "Use shell=False and pass commands as lists"
},
{
"risk": "Social engineering indicators: SOCIAL_ENG_VAGUE_DESCRIPTION",
"severity": "low",
"mitigation": "Provide clear, detailed description of skill functionality"
}
],
"limitations": [
"Static analysis only - runtime behavior not verified"
]
},
"incident_response": {
"kill_switch": [
"Stop the agent process"
],
"containment": [
"Review logs for unexpected actions"
],
"recovery": [
"Depends on skill capabilities"
]
},
"evidence": [
{
"evidence_id": "EV:file-1",
"type": "file_excerpt",
"title": "scripts/adl.py",
"file_path": "scripts/adl.py"
},
{
"evidence_id": "EV:file-2",
"type": "file_excerpt",
"title": "scripts/vbr.py",
"file_path": "scripts/vbr.py"
},
{
"evidence_id": "EV:file-3",
"type": "file_excerpt",
"title": "scripts/vfm.py",
"file_path": "scripts/vfm.py"
},
{
"evidence_id": "EV:file-4",
"type": "file_excerpt",
"title": "scripts/wal.py",
"file_path": "scripts/wal.py"
},
{
"evidence_id": "EV:file-5",
"type": "file_excerpt",
"title": "SKILL.md",
"file_path": "SKILL.md"
},
{
"evidence_id": "EV:file-6",
"type": "file_excerpt",
"title": "_meta.json",
"file_path": "_meta.json"
},
{
"evidence_id": "EV:cisco-1",
"type": "file_excerpt",
"title": "COMMAND_INJECTION_SHELL_TRUE [HIGH] scripts/vbr.py:48: result = subprocess.run(target, shell=True, capture_output=True, text=True, time",
"file_path": "scripts/vbr.py"
},
{
"evidence_id": "EV:cisco-2",
"type": "file_excerpt",
"title": "SOCIAL_ENG_VAGUE_DESCRIPTION [LOW] SKILL.md:1: ---",
"file_path": "SKILL.md"
}
]
}