Task Router Skill
Task Router
Structural authority separation for autonomous agent actions. Three-phase governance pipeline: PROPOSE, DECIDE, PROMOTE. No action is both proposed and approved by the same computational pathway.
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install devongenerally-png/governance-guard打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
Governance guard enforces structural authority separation on all agent actions through a PROPOSE-DECIDE-PROMOTE pipeline.
Before performing any write, execute, network, create, or delete action. The governance pipeline MUST be invoked before the action executes. Read actions may also be governed under standard or strict policies.
Run the complete PROPOSE → DECIDE → PROMOTE pipeline in a single call:
npx tsx scripts/governance.ts pipeline '<intent-json>' --policy policies/standard.yaml
The intent JSON must include:
skill: skill identifiertool: tool/function being invokedmodel: LLM model nameactionType: one of read, write, execute, network, create, delete
target: resource being acted uponparameters: tool parameters (object)dataScope: data categories accessed (array, e.g. ["personal", "financial"])conversationId: current conversation IDmessageId: current message IDuserInstruction: the user message that triggered this actionThe pipeline returns a JSON response:
"governance": "approved" — proceed with the action"governance": "deny" — do NOT proceed; inform the user with the reason
"governance": "escalate" — present the action to the user for approval:Action requires your approval:
Skill: <skill>
Action: <actionType> on <target>
Reason: <reason>
Reply APPROVE or DENY
Then resolve:
npx tsx scripts/governance.ts resolve-escalation <intent-id> approve
# or
npx tsx scripts/governance.ts resolve-escalation <intent-id> deny
npx tsx scripts/governance.ts audit --last 10
| Preset | Default | Description |
|---|---|---|
minimal |
approve | Blocks only credentials and d... |
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
Structural authority separation for autonomous agent actions. An OpenClaw skill that interposes a three-phase governance pipeline between agent intent and execution.
Core principle: PROPOSE ≠ DECIDE ≠ PROMOTE. The agent proposes actions. A separate, deterministic policy engine decides admissibility. Only approved actions are promoted to execution. Every transition is witnessed.
# Install
npm install
# Run the governance pipeline
npx tsx scripts/governance.ts pipeline \
'{"skill":"browser","tool":"fetch","model":"claude","actionType":"network","target":"https://api.example.com","parameters":{},"dataScope":[],"conversationId":"c1","messageId":"m1","userInstruction":"fetch the API"}' \
--policy policies/standard.yaml
Agent Intent → PROPOSE → DECIDE → PROMOTE → Execution
│ │ │
Serialize Evaluate Gate on
+ hash policy approval
(no LLM) + freshness
| Phase | Authority | Implementation |
|---|---|---|
| PROPOSE | Agent (LLM) | Structured intent capture with SHA-256 hash binding |
| DECIDE | Policy Engine (deterministic) | Pure function: policy + intent → verdict. No LLM. |
| PROMOTE | Execution Gate | Approve verdict + hash match + freshness check |
| Preset | Default | Use case |
|---|---|---|
minimal |
approve | Low friction. Blocks only credentials and destructive commands. |
standard |
deny | Recommended. Allows common ops, escalates network/delete. |
strict |
deny | Maximum safety. Reads only, everything else escalates. |
See references/policy-schema.md for the full policy file specification.
Every governance decision is recorded as a hash-chained witness record in `~/....
# governance-guard Governance guard enforces structural authority separation on all agent actions through a PROPOSE-DECIDE-PROMOTE pipeline. ## When to activate Before performing any **write**, **execute**, **network**, **create**, or **delete** action. The governance pipeline MUST be invoked before the action executes. Read actions may also be governed under standard or strict policies. ## How to use ### 1. Full pipeline (recommended) Run the complete PROPOSE → DECIDE → PROMOTE pipeline in a single call: ```bash npx tsx scripts/governance.ts pipeline '<intent-json>' --policy policies/standard.yaml ``` The intent JSON must include: - `skill`: skill identifier - `tool`: tool/function being invoked - `model`: LLM model name - `actionType`: one of `read`, `write`, `execute`, `network`, `create`, `delete` - `target`: resource being acted upon - `parameters`: tool parameters (object) - `dataScope`: data categories accessed (array, e.g. `["personal", "financial"]`) - `conversationId`: current conversation ID - `messageId`: current message ID - `userInstruction`: the user message that triggered this action ### 2. Handle the verdict The pipeline returns a JSON response: - If `"governance": "approved"` — proceed with the action - If `"governance": "deny"` — do NOT proceed; inform the user with the `reason` - If `"governance": "escalate"` — present the action to the user for approval: ``` Action requires your approval: Skill: <skill> Action: <actionType> on <target> Reason: <reason> Reply APPROVE or DENY ``` Then resolve: ```bash npx tsx scripts/governance.ts resolve-escalation <intent-id> approve # or npx tsx scripts/governance.ts resolve-escalation <intent-id> deny ``` ### 3. Audit decisions ```bash npx tsx scripts/governance.ts audit --last 10 ``` ## Policy presets | Preset | Default | Description | |--------|---------|-------------| | `minimal` | approve | Blocks only credentials and d...
# governance-guard
Structural authority separation for autonomous agent actions. An [OpenClaw](https://openclaw.dev) skill that interposes a three-phase governance pipeline between agent intent and execution.
**Core principle**: PROPOSE ≠ DECIDE ≠ PROMOTE. The agent proposes actions. A separate, deterministic policy engine decides admissibility. Only approved actions are promoted to execution. Every transition is witnessed.
## Quick start
```bash
# Install
npm install
# Run the governance pipeline
npx tsx scripts/governance.ts pipeline \
'{"skill":"browser","tool":"fetch","model":"claude","actionType":"network","target":"https://api.example.com","parameters":{},"dataScope":[],"conversationId":"c1","messageId":"m1","userInstruction":"fetch the API"}' \
--policy policies/standard.yaml
```
## Architecture
```
Agent Intent → PROPOSE → DECIDE → PROMOTE → Execution
│ │ │
Serialize Evaluate Gate on
+ hash policy approval
(no LLM) + freshness
```
| Phase | Authority | Implementation |
|-------|-----------|---------------|
| PROPOSE | Agent (LLM) | Structured intent capture with SHA-256 hash binding |
| DECIDE | Policy Engine (deterministic) | Pure function: policy + intent → verdict. No LLM. |
| PROMOTE | Execution Gate | Approve verdict + hash match + freshness check |
## Policy presets
| Preset | Default | Use case |
|--------|---------|----------|
| `minimal` | approve | Low friction. Blocks only credentials and destructive commands. |
| `standard` | deny | Recommended. Allows common ops, escalates network/delete. |
| `strict` | deny | Maximum safety. Reads only, everything else escalates. |
See [references/policy-schema.md](references/policy-schema.md) for the full policy file specification.
## Witness chain
Every governance decision is recorded as a hash-chained witness record in `~/....Task Router
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.