skills/ARCHIVE-chaos-quarantine/subagent-spawn-template/SKILL.md
Standard contract for spawning bounded, auditable sub-agents — input contract, output schema, evidence requirements.
npx skillsauth add ariffazil/openclaw-workspace subagent-spawn-templateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Standard contract for spawning bounded, auditable sub-agents. Every sub-agent gets the same input contract, output schema, and evidence requirements. Replaces ad-hoc "do this thing" spawning.
Every sub-agent spawn call MUST include:
task_name: "stable-lowercase-identifier" # e.g. "audit-wealth-endpoints"
task_description: |
Clear, bounded description of what to do.
Include: scope, constraints, what NOT to touch.
output_schema:
type: object
required: ["status", "findings", "evidence"]
properties:
status: {type: string, enum: ["DONE", "BLOCKED", "ERROR"]}
findings: {type: array, items: {type: object}}
evidence: {type: array, items: {type: string}}
recommendation: {type: string}
time_budget_minutes: 15
evidence_required: true # Attach URLs, tool outputs, file paths
autonomy_band: "PROPOSE_ONLY" # AUTONOMOUS | PROPOSE_ONLY | NEVER (must match E7)
tools_scope: # Explicit tool allowlist
- "exec"
- "read"
- "web_fetch"
rollback_plan: "rm output_file" # How to reverse ALL changes
time_budget_minutes.BLOCKED with reason before timeout.output_schema.ERROR with reason.evidence_required: true: every finding MUST be backed by at least one evidence item (URL, file path, tool output snippet).AUTONOMOUS: Safe read-only tasks (health checks, file reads, research).PROPOSE_ONLY: Changes proposed but NEVER auto-executed. Returns plan for 888 review.NEVER: Must fail closed. Any execution attempt = ERROR.rollback_plan.task_name: "audit-arifos-drift"
task_description: |
Read /root/arifOS/arifosmcp/runtime/tools.py and
/opt/arifos/app/arifosmcp/runtime/tools.py.
Compare them. Report all differences.
Do NOT modify any files. Read-only.
output_schema:
type: object
required: ["status", "findings", "evidence"]
properties:
status: {type: string}
findings: {type: array}
evidence: {type: array}
time_budget_minutes: 10
evidence_required: true
autonomy_band: "AUTONOMOUS"
tools_scope: ["read", "exec"]
rollback_plan: "No changes — read-only"
{
"status": "DONE",
"findings": [
{
"severity": "IMPORTANT",
"description": "tools.py differs at line 147: arif_observe has mode=vitals logic in /root/ but not in /opt/",
"file_1": "/root/arifOS/arifosmcp/runtime/tools.py",
"file_2": "/opt/arifos/app/arifosmcp/runtime/tools.py"
}
],
"evidence": [
"diff -u /root/arifOS/arifosmcp/runtime/tools.py /opt/arifos/app/arifosmcp/runtime/tools.py"
],
"recommendation": "rsync /root/arifOS/arifosmcp/ → /opt/arifos/app/arifosmcp/ then restart arifos. Mark 888_HOLD."
}
OpenClaw spawns sub-agents via sessions_spawn. The template fields map:
| Template Field | sessions_spawn Param |
|---------------|---------------------|
| task_description | task (string) |
| time_budget_minutes | Included in task string + manual timeout |
| tools_scope | Native sub-agents inherit parent tools |
| output_schema | Included in task string as "Return ONLY valid JSON matching schema: ..." |
| autonomy_band | Enforced by E7 in arifOS kernel |
This template does not enforce constraints programmatically — it's a contract for human + agent behavior. The arifOS kernel enforces autonomy bands via E7. OpenClaw enforces via constitutional discipline.
development
Federation-wide gold (XAUUSD) trading capability. Python stack, OANDA broker, backtesting, macro signals, RSI strategy. Every organ has a role.
development
Capital claim state management — tracks claim lifecycle across WEALTH organ.
development
Archived constitutional warga placeholder retained only for audit provenance. Do not use for active work; use the live arifOS governance and constitutional skills instead.
testing
Warga (citizen) agent skills for AAA federation members. See subdirectories for specialized warga skills.