Claims

作者 ruvnet6051f6702b61无许可证74K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Claims-based authorization for agents and operations. Grant, revoke, and verify permissions for secure multi-agent coordination. Use when: permission management, access control, secure operations, authorization checks. Skip when: open access, no security requirements, single-agent local work.

AI 生成的概览

定义基于声明的代理授权以及跨主机工作声明协调。

功能
该技能记录了一套面向代理的基于声明的权限模型,列出 read、write、execute、spawn、memory、network、admin 等声明类型,以及 check、grant、revoke、list 命令和作用域模式。它还描述用于协调多个代理对任务或资源所有权的工作声明,包括本地账本工具和跨主机发布的联邦声明消息。内容涵盖安全级别、最佳实践以及声明流的频道隔离。
适用场景
适用于管理代理权限、访问控制或授权检查,或在多个代理或主机之间协调共享任务与资源的所有权。它面向安全的多代理操作,而非开放访问或单代理本地工作。
运行要求
仅为说明文档,不附带脚本。所述命令依赖通过 npx 运行的外部 claude-flow 和 ruflo 命令行工具,联邦声明还需要联邦中继和频道配置。

Claims Authorization Skill

Purpose

Claims-based authorization for secure agent operations and access control.

Claim Types

ClaimDescription
readRead file access
writeWrite file access
executeCommand execution
spawnAgent spawning
memoryMemory access
networkNetwork access
adminAdministrative operations

Commands

Check Claim

bash
npx claude-flow claims check --agent agent-123 --claim write

Grant Claim

bash
npx claude-flow claims grant --agent agent-123 --claim write --scope "/src/**"

Revoke Claim

bash
npx claude-flow claims revoke --agent agent-123 --claim write

List Claims

bash
npx claude-flow claims list --agent agent-123

Scope Patterns

PatternDescription
*All resources
/src/**All files in src
/config/*.tomlTOML files in config
memory:patternsPatterns namespace

Security Levels

LevelClaims
minimalread only
standardread, write, execute
elevated+ spawn, memory
adminall claims

Best Practices

  1. Follow principle of least privilege
  2. Scope claims to specific resources
  3. Audit claim usage regularly
  4. Revoke claims when no longer needed

Cross-Host Work Claims (federation, v3.40.0+)

Distinct from the authorization claims above: work claims coordinate ownership of a task or resource across agents, and now propagate across a cross-host federation so a claim made on one node is visible to the whole swarm.

Runtime tools (local ledger)

ToolPurpose
claims_claimTake ownership of an issue/resource (with optional TTL).
claims_releaseGive up a claim you hold.
claims_handoff / claims_accept-handoffTransfer a claim to another agent.
claims_steal / claims_mark-stealableWork-stealing for stalled claims.
claims_status / claims_listInspect current ownership.

Federated (cross-host)

Publish claim events into a federation room (federation_bbs_publish) so ownership converges across hosts. Message types: ClaimIssued / ClaimReleased / ClaimHandoff / ClaimAck.

Rules: one owner per resourceId; first valid ClaimIssued wins (ties → earliest ts, then smallest from); ClaimReleased or expired TTL frees it; ClaimHandoff only from the current owner; a coordinator posts ClaimAck naming the authoritative owner.

Before shared work: claim, sync, and proceed only if you are the acknowledged owner. When a claim must be both cross-host visible and runtime-enforced, mirror the two — publish the federation claim message and call claims_claim. See the cross-host-federation skill (ruflo-bbs-federation plugin) for the transport.

Scoping a claim stream to a channel (ADR-386)

By default every claim event lands in the shared swarm stream, where any relay member reads it. To keep a team's ownership ledger separate — or unreadable by the rest of the relay — publish claim messages into a channel instead:

npx ruflo federation channel --action create --name platform-team --visibility privatenpx ruflo federation channel --action grant --channel prv:<hex> --pubkey <teammate 64-hex>npx ruflo federation channel --action publish --channel prv:<hex> \  --type ClaimIssued --payload '{"resourceId":"repo/foo","ttlSeconds":7200}'npx ruflo federation channel --action read --channel prv:<hex>

Reduction rules are unchanged; only the audience changes. Two caveats before relying on it: a private channel hides content but not metadata (the relay still sees who published and when), and a claim nobody outside the channel can read cannot arbitrate against a claim made outside it. If ownership must be swarm-wide, keep it on the open stream. See the open-federation skill for channel mechanics.

来源与署名

来源:ruvnet/ruflo位于.agents/skills/claims提交6051f67

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架