OctoClaw Runtime Skill
This skill describes the current v0.6.0 runtime line. It intentionally does
not describe the old Python octoclaw_spawn.py, completion-file finalizer, or
JSON delivery-outbox runtime. Those were historical mechanisms and must not be
reintroduced as compatibility paths.
Current Authority
| Layer |
Authority |
| live route |
`reply |
| execution lifecycle |
OpenClaw native TaskFlow / sessions_spawn / native announce |
| OctoClaw metadata |
SQLite runtime ledger: WorkContract, route seal, native refs, spawn intent, audit events |
| status display |
generated projection from metadata + native lifecycle |
task-state.json |
rebuildable read-model cache, not truth |
| replay log |
observability and evaluation evidence, not runtime truth |
Main-Agent Rules
- For direct answers, use
reply; do not create work.
- For delegated work, call
octoclaw_dispatch; do not hand-write spawn args.
- After native spawn is accepted, confirm with
octoclaw_dispatch_confirm.
- For status/provenance/follow-up questions, use
octoclaw_status or
octoclaw_task_action; do not dispatch new work just to explain old work.
- Do not call or recreate
octoclaw_spawn.
- Do not use completion files, child-finalizer recovery, or JSON delivery
outbox as the normal final-delivery mechanism.
- Do not treat
task-state.json as durable truth. Missing or corrupt
task-state must be rebuilt or reported degraded.
- Do not inject raw child transcripts into the parent context.
Tool Use
| Tool |
Use |
octoclaw_route_hint |
Ask the runtime for route guidance before model/tool escalation. |
octoclaw_policy_decide / octoclaw_route |
Resolve policy and route facts. |
octoclaw_dispatch |
Create a WorkContract-backed delegation plan and native spawn intent. |
octoclaw_dispatch_confirm |
Bind accepted native runId / childSessionKey evidence back to OctoClaw metadata. |
octoclaw_task_action |
Read task details, queue, artifacts, or supported task operations. |
octoclaw_status |
Render status/details/queue/timeline from projection. |
Auto Router Commands
| Command |
Use |
octoclawctl router wizard [--incremental] [--config answers.json] |
Create or update local router plan/budget/privacy/language/restricted/same-provider config. |
octoclawctl router promotion review [--input shadow.jsonl] |
Evaluate local shadow samples and append promotion decisions. |
octoclawctl router decisions [--since 7d] |
Inspect shadow-to-live promotion decisions. |
octoclawctl router cost report [--period 7d] |
Review local cost grouped by model, complexity, and route, including prediction and budget status. |
octoclawctl router cost budget set --monthly <usd> |
Store the local monthly router budget. |
octoclawctl router score override <model> <tier>=<score> |
Override a model score for a complexity tier. |
octoclawctl router model mark <model> --dispreferred-for <tier> |
Soft-avoid a model for a tier. |
octoclawctl router model ban <model> --for <tier> |
Hard-exclude a model for a tier. |
Delegation Contract
Delegated work must carry:
- WorkContract id and route seal.
- scope and allowed tools.
- role / worker-pool / model profile metadata.
- native spawn intent id.
- accepted native refs after confirm.
- status projection derived from native lifecycle and OctoClaw metadata.
spawnExecuted=true requires accepted native run evidence. A child session key by
itself is only a reference; it is not execution proof.
Status Questions
These are status-surface requests, not new work:
- "OctoClaw status"
- "task status"
- "which task is running?"
- "why did it not dispatch?"
- "who handled the previous task?"
- "show queue/details/timeline"
Answer through octoclaw_status or octoclaw_task_action. If no verifiable
record exists, say that clearly and do not invent a task.
Current Docs
README.md / README.zh-CN.md: operator-facing overview.
docs/octoclaw-architecture-map-2026-05-09.md: detailed module graph.
docs/octoclaw-ts-rebuild-design-v2.md: architecture baseline.
docs/octoclaw-runtime-convergence-cleanup-plan-2026-05-07.md: runtime cleanup handoff.
docs/octoclaw-repo-debt-cleanup-plan-2026-05-09.md: archive/version/terminology cleanup.
docs/archive/: historical material only.
Forbidden Legacy Paths
Do not reintroduce these as product runtime behavior:
octoclaw_spawn as a public tool or alias.
- plugin
runtime.subagent.run() fallback.
- fake detached runtime capability registration.
- child completion files as normal final protocol.
- child-finalizer recovery loop.
- JSON delivery outbox for new planner/native runtime tasks.
- resident runner / tmux / ClawTeam as required substrate.
1---2name: octoclaw3metadata:4 source: https://skillmd.com/skills/guanbear/octoclaw5 author: openclaw-community6 version: "0.6.0"7 timestamp: "2026-05-09"8 stable: false9tags:10 - multi-agent11 - scheduler12 - productivity13description: >14 OctoClaw is the TypeScript-first policy, delegation, status, and operator15 layer for OpenClaw. Use it when a turn should be routed through16 reply/delegate policy, WorkContract-backed delegation, runtime status, IM17 delivery, or feedback-loop tooling.18postInstall: |19 20 OctoClaw is installed. Current live route authority is `reply | delegate`.21 Use `octoclaw_dispatch` for delegated work and `octoclaw_status` for status.22---2324# OctoClaw Runtime Skill2526This skill describes the current `v0.6.0` runtime line. It intentionally does27not describe the old Python `octoclaw_spawn.py`, completion-file finalizer, or28JSON delivery-outbox runtime. Those were historical mechanisms and must not be29reintroduced as compatibility paths.3031## Current Authority3233| Layer | Authority |34|------|-----------|35| live route | `reply | delegate` only |36| execution lifecycle | OpenClaw native TaskFlow / `sessions_spawn` / native announce |37| OctoClaw metadata | SQLite runtime ledger: WorkContract, route seal, native refs, spawn intent, audit events |38| status display | generated projection from metadata + native lifecycle |39| `task-state.json` | rebuildable read-model cache, not truth |40| replay log | observability and evaluation evidence, not runtime truth |4142## Main-Agent Rules43441. For direct answers, use `reply`; do not create work.452. For delegated work, call `octoclaw_dispatch`; do not hand-write spawn args.463. After native spawn is accepted, confirm with `octoclaw_dispatch_confirm`.474. For status/provenance/follow-up questions, use `octoclaw_status` or48 `octoclaw_task_action`; do not dispatch new work just to explain old work.495. Do not call or recreate `octoclaw_spawn`.506. Do not use completion files, child-finalizer recovery, or JSON delivery51 outbox as the normal final-delivery mechanism.527. Do not treat `task-state.json` as durable truth. Missing or corrupt53 task-state must be rebuilt or reported degraded.548. Do not inject raw child transcripts into the parent context.5556## Tool Use5758| Tool | Use |59|------|-----|60| `octoclaw_route_hint` | Ask the runtime for route guidance before model/tool escalation. |61| `octoclaw_policy_decide` / `octoclaw_route` | Resolve policy and route facts. |62| `octoclaw_dispatch` | Create a WorkContract-backed delegation plan and native spawn intent. |63| `octoclaw_dispatch_confirm` | Bind accepted native `runId` / `childSessionKey` evidence back to OctoClaw metadata. |64| `octoclaw_task_action` | Read task details, queue, artifacts, or supported task operations. |65| `octoclaw_status` | Render status/details/queue/timeline from projection. |6667## Auto Router Commands6869| Command | Use |70|---------|-----|71| `octoclawctl router wizard [--incremental] [--config answers.json]` | Create or update local router plan/budget/privacy/language/restricted/same-provider config. |72| `octoclawctl router promotion review [--input shadow.jsonl]` | Evaluate local shadow samples and append promotion decisions. |73| `octoclawctl router decisions [--since 7d]` | Inspect shadow-to-live promotion decisions. |74| `octoclawctl router cost report [--period 7d]` | Review local cost grouped by model, complexity, and route, including prediction and budget status. |75| `octoclawctl router cost budget set --monthly <usd>` | Store the local monthly router budget. |76| `octoclawctl router score override <model> <tier>=<score>` | Override a model score for a complexity tier. |77| `octoclawctl router model mark <model> --dispreferred-for <tier>` | Soft-avoid a model for a tier. |78| `octoclawctl router model ban <model> --for <tier>` | Hard-exclude a model for a tier. |7980## Delegation Contract8182Delegated work must carry:8384- WorkContract id and route seal.85- scope and allowed tools.86- role / worker-pool / model profile metadata.87- native spawn intent id.88- accepted native refs after confirm.89- status projection derived from native lifecycle and OctoClaw metadata.9091`spawnExecuted=true` requires accepted native run evidence. A child session key by92itself is only a reference; it is not execution proof.9394## Status Questions9596These are status-surface requests, not new work:9798- "OctoClaw status"99- "task status"100- "which task is running?"101- "why did it not dispatch?"102- "who handled the previous task?"103- "show queue/details/timeline"104105Answer through `octoclaw_status` or `octoclaw_task_action`. If no verifiable106record exists, say that clearly and do not invent a task.107108## Current Docs109110- `README.md` / `README.zh-CN.md`: operator-facing overview.111- `docs/octoclaw-architecture-map-2026-05-09.md`: detailed module graph.112- `docs/octoclaw-ts-rebuild-design-v2.md`: architecture baseline.113- `docs/octoclaw-runtime-convergence-cleanup-plan-2026-05-07.md`: runtime cleanup handoff.114- `docs/octoclaw-repo-debt-cleanup-plan-2026-05-09.md`: archive/version/terminology cleanup.115- `docs/archive/`: historical material only.116117## Forbidden Legacy Paths118119Do not reintroduce these as product runtime behavior:120121- `octoclaw_spawn` as a public tool or alias.122- plugin `runtime.subagent.run()` fallback.123- fake detached runtime capability registration.124- child completion files as normal final protocol.125- child-finalizer recovery loop.126- JSON delivery outbox for new planner/native runtime tasks.127- resident runner / tmux / ClawTeam as required substrate.