| name | tao |
| description | The Tao is the autonomous execution engine that ties self-direction with governance. It orchestrates /nexus (routing), /tao-loop (iterate-generate-deploy), /tao-judge (iterative-evaluator-calibrator), and /session-handoff (continuity/escrow) into a single cohesive autonomous mission-runner. The Tao handles autonomous overnight execution for complex projects. |
| allowed-tools | Read, Grep, Glob, Bash, Agent, delegate_task, skill_view, hermes_cli |
tao โ Autonomous Execution Engine
The Tao is the synthesis of four subsystems:
- /nexus โ Master dispatch router: decides what skill should handle a task
- /tao-loop โ Iterate, generate, deploy with persistent checkpointing
- /tao-judge โ Iterative evaluator / calibrator / grader-gate
- /session-handoff โ Continuity / escrow for state persistence across sessions
When to invoke
- The user says "run this autonomously" or "handle this overnight"
- A task spans >1 skill or >1 domain and requires closed-loop execution
- Prior work exists that needs resumption via /resume-from-handoff
- The user grants 100% authority for exhaustive autonomous action
Invocation Contract
Input: {prayer.field, prayer.layer, prayer.operator, prayer.objective, prayer.subject, prayer.context}
Derivation from user request:
field: work_area_group (e.g., "RestoreAssist", "Unite-Hub", "Marketing", "Portfolio")
layer: execution_depth (routine | complex | board-critical)
operator: action_type (build | audit | research | deploy | maintain)
objective: primary_deliverable (e.g., "ship the auth refactor", "audit all env vars")
subject: target_entity (project, repo, feature, or "across all projects")
context: freeform constraints, prior handoff ID, budget, timeline
Execution Algorithm
Define: tao(prayer)
Phase 1 โ Initiation (TAO-Start)
- Hydrate state โ check for prior handoff via /resume-from-handoff
- Classify โ /nexus routes the prayer to the primary skill(s)
- Load โ
skill_view(primary_skill) to calibrate output contracts
- Budget โ estimate tokens, set TERMINAL TRIGGER, COMPACTION THRESHOLD
- Emit prayer hash โ
prayer_hash = sha256(prayer) for audit trace
Phase 2 โ Execution Loop (TAO-Loop)
While prayer.layer not satisfied:
- ACT โ Execute the next step using the routed skill(s)
- CHECKPOINT โ Persist state: files written, git state, tokens consumed, evidence URLs
- JUDGE โ /tao-judge evaluates the ACT output
- TERMINAL TRIGGER CHECK
- If judge_score >= threshold AND all must-haves pass โ Phase 3
- If max_loops reached โ Phase 3 (with partial flag)
- If anomaly detected AND anomaly_score >= 0.4 โ Phase 4 (ESCROW)
- If token budget critical (<10%) โ COMPACT + continue
Phase 3 โ Conclusion (TAO-End)
- EMIT โ Final deliverable in the format requested (or the skill's native format)
- AUDIT โ /audit-emit produces the structured JSON audit trace
- HANDOFF โ /session-handoff captures:
- What was done
- What shipped
- What remains
- Exact pickup point for next session
- Verification commands
- IMPROVE โ Every execution produces improvement instructions:
- What worked well
- What was slow / expensive
- What the skills got wrong
- Recommended patches to relevant skill SKILL.md files
- QUEUE โ Improvement instructions stored in
tao_improvement_queue for periodic review via /meta-curator
Phase 4 โ Escrow (TAO-Stop)
Triggered by: anomaly_score >= 0.4, external stop, manual intervention request, or unresolvable contradiction.
- HALT all execution immediately
- PAUSE state: preserve checkpoints, context canvas, evidence URLs
- ESCALATE to /boardroom with full trace
- HANDOFF the pause state for human review
- LOCK the prayer hash; resume requires explicit re-invocation
Self-Improvement Loop
The Tao is not just an executor โ it is a learner.
After every TAO-End:
- Analyse the execution trace for patterns
- Extract skill-specific improvement notes (e.g., "/judge missed this edge case")
- Batch improvement notes per skill
- When a skill accumulates >3 improvement notes โ auto-emit a patch proposal to /meta-curator
- When a patch is accepted โ update the skill SKILL.md and increment the skill version
- When >5 patches accepted in a session โ emit a Tao system upgrade note
Observability Contract
Every Tao session emits:
{
"tao_session_id": "",
"prayer_hash": "sha256",
"phases": [
{"phase": "TAO-Start", "timestamp": "", "duration_seconds": 0.0},
{"phase": "TAO-Loop", "timestamp": "", "loops": 0, "avg_judge_score": 0.0, "duration_seconds": 0.0},
{"phase": "TAO-End", "timestamp": "", "duration_seconds":
Cross-Model Fallbacks
If the primary model fails during Tao execution:
- Routine steps โ fallback to Sonnet/Haiku
- Judge reviews โ fallback to deeper model (Opus/Claude-4)
- MOA disagreements โ fallback to Boardroom
- Escrow โ always uses the strongest available model
Autonomy Rules
- The Tao NEVER asks "what should I do next?" โ it decides and reports
- The Tao ALWAYS handoffs before stopping โ never lose state
- The Tao ALWAYS emits an audit trace โ every execution is accountable
- The Tao ALWAYS queues improvements โ every execution makes the system better
- The Tao ALWAYS respects the CEO Board and Pi governance gate on external outputs
- The Tao ALWAYS runs destructive operations through /judge first
- The Tao NEVER auto-executes financial transactions, contract signings, or production deployments without explicit pass-through approval
- The Tao treats dirty-tree / mega-diff as a trigger for lane-splitting via Kanban/cron, not a reason to stop
References
- /nexus โ Master dispatch router
- /tao-loop โ Iterate-Generate-Deploy loop
- /tao-judge โ Iterative evaluator
- /session-handoff โ State escrow
- /resume-from-handoff โ State retrieval
- /boardroom โ Escalation panel
- /audit-emit โ Structured audit formatter
- /meta-curator โ Skill lifecycle management