Governed Delegation
Canonical model-routing source: docs/MODEL_ROUTING_POLICY.md
If this file conflicts with routing doctrine, the canonical policy doc wins.
Use this skill when a task may require subagents or governed delegation.
This is the canonical front door for delegation-envelope policy in configuration/governance work.
Use it to answer one narrow question well:
If delegation is needed, what execution envelope is allowed?
Do not use this skill as a substitute for:
- - live runtime inspection
- persisted config inspection
- config mutation/apply workflows
Goal
Keep the split clean:
- - GPT decides whether delegation is needed, how to decompose the work, and whether deterministic execution is better
- governed delegation decides the allowed execution envelope
- OpenClaw runtime performs the actual spawn/execution through supported surfaces
Do not patch OpenClaw core for this.
Do not depend on dist internals.
Prefer add-on boundaries.
Default rule
Before delegating, classify the task on four axes:
- -
taskClass: INLINECODE2 - INLINECODE3 : INLINECODE4
- INLINECODE5 : INLINECODE6
- INLINECODE7 : INLINECODE8
Then use the helper:
For Class C/D or other fail-closed work, include frontDoor explicitly (for example orchestrator:orchestrators/reflect/orchestrator.md). The helper now rejects strict requests when the requested front door does not match canonical policy.
Policy intent
- - GPT for ambiguity, policy interpretation, arbitration, deep synthesis, and critical governance review
- CODEX for bounded implementation, deterministic transforms, verification, backup/apply/validate routines
- MINIMAX only for bounded low-risk read-only work
- fail closed for Class C/D and other unsafe downgrade cases
When to use
Use this skill when:
- - an orchestrator needs subagents
- a cron/delegated task needs model-tier guardrails
- a task mixes planning and implementation and you need a safe split
- a critical write or durable memory/governance task must not silently degrade to a weak model
Use it after deciding that delegation is actually on the table.
For ordinary questions like "what is live right now?", "what does the saved config say?", or "apply this config change safely", start with the appropriate inspection/mutation surface instead.
Output contract
The helper should produce a decision containing:
- - chosen model
- failClosed true/false
- policy source
- runner type
- optional auditable spawn request envelope
Minimal workflow
- 1. Decide if delegation is actually needed
- Classify task risk/type
- Ask governed-delegation helper for decision
- If safe, pass the resulting request to the supported runtime/tool surface
- If not safe, refuse or escalate instead of degrading
Canonical config/governance split
- - live runtime state → inspect runtime/session/gateway state directly
- saved config state → inspect persisted config/schema directly
- safe mutation → use supported config patch/apply/restart flows
- delegation policy → use this skill
If plain GPT or a direct deterministic runner is enough, do not add delegation. This skill reduces unsafe delegation — it is not a reason to turn everything into a subagent workflow.
受控委派
规范模型路由来源:docs/MODELROUTINGPOLICY.md
若本文档与路由策略存在冲突,以规范策略文档为准。
当任务可能需要子代理或受控委派时,请使用此技能。
这是配置/治理工作中委派信封策略的规范入口。
使用它来精准回答一个狭窄的问题:
如果需要委派,允许的执行信封是什么?
不要将此技能用作以下操作的替代方案:
- - 实时运行时检查
- 持久化配置检查
- 配置变更/应用工作流
目标
保持清晰的职责划分:
- - GPT 决定是否需要委派、如何分解工作,以及确定性执行是否更优
- 受控委派 决定允许的执行信封
- OpenClaw 运行时 通过支持的接口执行实际的生成/运行操作
不要为此修补 OpenClaw 核心。
不要依赖发行版内部实现。
优先使用附加边界。
默认规则
在委派之前,从四个维度对任务进行分类:
- - taskClass:A|B|C|D
- deterministic:true|false
- criticalWrite:true|false
- requiresDeepReasoning:true|false
然后使用辅助工具:
- - node skills/governed-delegation/scripts/request.js {...json...}
对于 C/D 类或其他故障关闭的工作,需显式包含 frontDoor(例如 orchestrator:orchestrators/reflect/orchestrator.md)。当请求的前门与规范策略不匹配时,辅助工具现在会拒绝严格请求。
策略意图
- - GPT 负责模糊性处理、策略解释、仲裁、深度综合和关键治理审查
- CODEX 负责有边界的实现、确定性转换、验证、备份/应用/验证流程
- MINIMAX 仅用于有边界的低风险只读工作
- 故障关闭 适用于 C/D 类及其他不安全降级场景
使用时机
在以下情况下使用此技能:
- - 编排器需要子代理
- 定时/委派任务需要模型层护栏
- 任务混合了规划与实现,需要安全拆分
- 关键写入或持久内存/治理任务不得静默降级为弱模型
在确定委派确实可行之后使用。
对于诸如当前运行状态是什么?保存的配置内容是什么?或安全应用此配置变更等普通问题,请从适当的检查/变更接口入手。
输出约定
辅助工具应生成包含以下内容的决策:
- - 所选模型
- 故障关闭 true/false
- 策略来源
- 运行器类型
- 可选的可审计生成请求信封
最小工作流
- 1. 确定是否确实需要委派
- 对任务风险/类型进行分类
- 向受控委派辅助工具请求决策
- 如果安全,将生成的请求传递给支持的运行时/工具接口
- 如果不安全,拒绝或升级处理,而非降级
规范配置/治理划分
- - 实时运行时状态 → 直接检查运行时/会话/网关状态
- 已保存配置状态 → 直接检查持久化配置/模式
- 安全变更 → 使用支持的配置补丁/应用/重启流程
- 委派策略 → 使用此技能
如果纯 GPT 或直接确定性运行器已足够,不要添加委派。此技能旨在减少不安全委派——它并非将所有任务转变为子代理工作流的理由。