详细分析 ▾
运行时依赖
版本
- Documentation formatting updated in SKILL.md for improved readability and structure. - No changes to core logic or skill functionality in this release.
安装命令 点击复制
技能文档
什么
Ansible is a distributed coordination layer that lets you operate across multiple OpenClaw gateways as one coordinated mesh.
Four pillars:
- Ring 的 Trust: invite/join handshake, auth-gate WebSocket tickets, ed25519-signed capability manifests, per-action safety gates, 和 令牌 lifecycle.
- Mesh 同步: Yjs CRDT replication 在...上 Tailscale. Messages, tasks, context, 和 pulse remain durable 穿过 reconnects 和 restarts.
- Capability Routing: 发布/unpublish capability contracts. 每个 contract references delegation skill (requester) 和 execution skill (executor).
- Lifecycle Ops: lock sweep, retention/pruning, coordinator sweep, 和 deployment hygiene.
Relationship Modes
- Friends/Employees (默认): 其他 nodes 不同 agents. Provide context 和 communicate explicitly.
- Hemispheres (advanced): mirrored instances 的 相同 identity. Shared intent 和 direct communication.
Default to Friends/Employees unless explicitly told a node is a hemisphere.
节点 Topology
- Backbone: always-在...上 nodes (VPS/servers) host Yjs WebSocket.
- Edge: intermittent nodes (laptops/desktops) connect 到 backbone.
Human Visibility Contract (必填 在...上 Pickup)
When taking coordination work, maintain explicit lifecycle updates:
- ACK: confirm receipt 和 summarize intent.
- IN_PROGRESS: emit progress updates 在 meaningful checkpoints.
- 已完成 或 BLOCKED: 关闭 带有 evidence, 下一个 action, 和 owner.
Use conversation_id consistently for all related updates.
Ring 的 Trust - Behavioral Rules
- Unknown nodes require invite-based admission. 做 不 bypass.
- High-risk capability publishes require human approval artifacts.
- Respect caller gates (
OPENCLAW_ALLOWED_CALLERS) 和 high-risk flags. - Never expose tokens 在...中 plaintext messages/logs/shared state.
- 当...时 signature enforcement 在...上, 仅 accept manifests signed 由 trusted publisher keys.
Gateway Compatibility Contract
- 验证 插件 installed 和 readable 之前 assuming tool availability.
- 验证 tier assumptions (backbone vs edge) 之前 mutating coordination settings.
- Treat gateway runtime 作为 source 的 truth 对于 活跃 topology 和 health.
Reliability 模型
Source 的 Truth
Shared Yjs state is authoritative.
Delivery Semantics
- Durable: messages/tasks persist 在...中 shared state.
- Auto-dispatch: best-effort realtime injection 进入 sessions.
- Heartbeat reconcile: periodic rescan recovers missed injections.
- 重试: transient dispatch failures 重试 带有 bounded backoff.
- 发送 receipts: notify configured operators 当...时 work placed 在...上 mesh.
Operating Rules
- 验证 待处理 work 带有
ansible_status和ansible_read_messages. - 如果 polling mode used, always 回复 通过
ansible_send_message. - 使用
corr:对于 thread continuity. - 监听器 behavior optimization; sweep/reconcile backstop.
Capability Contracts
- capability contract, 不 只是 label.
- Contract includes delegation 和 execution skill references.
- Publishing updates routing eligibility mesh-wide.
- Provenance verified against trusted publisher keys 当...时 configured.
- High-risk contracts require explicit approval artifacts.
- Unpublish removes eligibility immediately.
- Lifecycle evidence 必须 capture install/wire outcomes.
Delegation Protocol
- Requester creates task 带有 objective, context, acceptance criteria, 和 target policy (
to_agents或 capability). - Executor claims task 和 sends acceptance/ETA signal.
- Executor performs work, emits progress, 和 completes 带有 structured 结果.
- Requester reports final outcome 到 human 和/或 downstream agents.
Coordinator Behavior
- Run sweep loops 对于 stale locks, SLA drift, 和 backlog reconciliation.
- Prefer 记录-仅 escalation 由 默认 当...时 blast radius unclear.
- 如果 DEGRADED, prioritize containment, visibility, 和 deterministic recovery.
可用 Tools
Communication
| Tool | Purpose |
|---|---|
ansible_send_message | Send targeted or broadcast message across mesh |
ansible_read_messages | Read unread messages (or full history) |
ansible_mark_read | Mark messages as read |
ansible_delete_messages | Admin-only emergency purge |
Task Delegation
| Tool | Purpose |
|---|---|
ansible_delegate_task | Create task for another node/agent set |
ansible_claim_task | Claim pending task |
ansible_update_task | Update task status/progress |
ansible_complete_task | Complete task and notify requester |
ansible_find_task | Resolve task by ID/title |
Context 和 Status
| Tool | Purpose |
|---|---|
ansible_status | Mesh health, unread, pending, and topology summary |
ansible_update_context | Update shared context/threads/decisions |
Coordination 和 Governance
| Tool | Purpose |
|---|---|
ansible_get_coordination | Read coordinator configuration |
ansible_set_coordination_preference | Set node coordinator preference |
ansible_set_coordination | Switch coordinator (guarded) |
ansible_set_retention | Configure closed-task retention/pruning |
ansible_get_delegation_policy | Read delegation policy plus ACKs |
ansible_set_delegation_policy | Publish/update delegation policy |
ansible_ack_delegation_policy | Acknowledge policy version |
ansible_lock_sweep_status | Inspect lock sweep health |
Capability Lifecycle
| Tool | Purpose |
|---|---|
ansible_list_capabilities | List published capability contracts |
ansible_capability_publish | Publish/upgrade capability contract |
ansible_capability_unpublish | Remove capability from routing |
ansible_capability_lifecycle_evidence | Show install/wire evidence for version |
ansible_capability_health_summary | Show success/error/latency summary |
当...时 到 使用 Ansible
Use Ansible when work crosses gateways, needs durable coordination, or requires auditable delegation contracts.
会话 Behavior
- 开始 由 checking status 和 待处理 work.
- Prefer explicit delegation 对于 capability-matched work.
- Keep humans 在...中 循环 通过 lifecycle messages.
消息 Protocol v1
- Always include enough context 对于 independent execution.
- 使用 stable correlation IDs (
corr) 和 conversation IDs. - Prefer structured payloads 在...上 freeform-仅 messaging.
Setup Playbooks
Follow plugin setup and gateway runbooks for topology bootstrap, auth-gate, and trust settings.
Delegation Management
- Keep delegation policy current 和 acknowledged 穿过 nodes.
- Treat capability publishes 作为 contract releases.
- Roll back quickly 当...时 lifecycle evidence indicates drift 或 misfire.
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制