Agent Service Agreements (ASA)
You have a contract system for agent-to-agent transactions. Use it to define, negotiate, and verify service agreements with other agents.
Setup
CODEBLOCK0
When to Use This Skill
- - Before delegating work to another agent: create an agreement defining expectations
- When accepting work from another agent: review and countersign the agreement
- After work is delivered: verify quality against the agreement's thresholds
- When a dispute arises: reference the agreement as the contractual baseline
Core Operations
Create an Agreement
CODEBLOCK1
Verify Delivery Against Agreement
CODEBLOCK2
List Active Agreements
CODEBLOCK3
Agreement Fields
| Field | Description |
|---|
| INLINECODE0 | What the agent will deliver |
| INLINECODE1 |
Minimum acceptable quality score (0-1) |
|
deadline_seconds | Time limit for delivery |
|
payment_terms | Amount, currency, release schedule |
|
verification_method | How quality will be assessed |
|
escalation_path | What happens if delivery fails |
Rules
- - Define before delegating. Always create an agreement before sending work to another agent.
- Verify before paying. Run quality verification against the agreement's thresholds.
- Reference in disputes. Agreements are the contractual baseline for AJP dispute resolution.
Links
- - PyPI: https://pypi.org/project/agent-service-agreements/
- Whitepaper: https://vibeagentmaking.com/whitepaper/service-agreements/
- Full Trust Stack: https://vibeagentmaking.com
Security & Transparency Disclosure
Product: Agent Service Agreements Skill for OpenClaw
Type: Skill Module
Version: 0.1.0
Built by: AB Support / Vibe Agent Making
Contact: alex@vibeagentmaking.com
What it accesses:
- - Reads and writes agreement store files (
.jsonl) in your working directory - No network access for core operations
- No telemetry, no phone-home, no data collection
What it cannot do:
- - Cannot access files outside your working directory beyond what you explicitly specify
- Cannot make purchases, send emails, or take irreversible actions
- Cannot access credentials, environment variables, or secrets
- Does not execute payments — payment terms are recorded, not processed
License: Apache 2.0
代理服务协议 (ASA)
您拥有一个用于代理间交易的合同系统。使用它来定义、协商并验证与其他代理的服务协议。
安装
bash
pip install agent-service-agreements
何时使用此技能
- - 在委托工作给其他代理之前:创建一份定义预期的协议
- 在接受工作来自其他代理时:审查并会签协议
- 在工作交付后:根据协议阈值验证质量
- 当争议发生时:将协议作为合同基准进行参考
核心操作
创建协议
python
from agentserviceagreements import AgreementStore, create_agreement
store = AgreementStore(agreements.jsonl)
agreement = create_agreement(
store=store,
proposer_id=your-agent-id,
counterparty_id=other-agent-id,
servicetype=dataanalysis,
quality_threshold=0.85,
deadline_seconds=3600,
payment_terms={amount: 0.05, currency: USD, release: graduated},
verificationmethod=automatedeval
)
根据协议验证交付
python
from agentserviceagreements import verify_delivery
result = verify_delivery(
agreement_id=agr-123,
deliverable=output.json,
store=agreements.jsonl
)
print(f质量评分: {result.quality_score})
print(f阈值达标: {result.passed})
print(f付款状态: {result.payment_status})
列出活跃协议
python
from agentserviceagreements import AgreementStore
store = AgreementStore(agreements.jsonl)
active = store.listactive(agentid=your-agent-id)
for a in active:
print(f{a.id}: {a.servicetype} 与 {a.counterpartyid} — 截止 {a.deadline})
协议字段
| 字段 | 描述 |
|---|
| servicetype | 代理将交付的内容 |
| qualitythreshold |
最低可接受质量评分(0-1) |
| deadline_seconds | 交付时间限制 |
| payment_terms | 金额、货币、释放计划 |
| verification_method | 质量评估方式 |
| escalation_path | 交付失败时的处理流程 |
规则
- - 委托前先定义。 在向其他代理发送工作前,务必先创建协议。
- 付款前先验证。 根据协议阈值运行质量验证。
- 争议时参考。 协议是AJP争议解决的合同基准。
链接
- - PyPI: https://pypi.org/project/agent-service-agreements/
- 白皮书: https://vibeagentmaking.com/whitepaper/service-agreements/
- 完整信任栈: https://vibeagentmaking.com
安全与透明度披露
产品: OpenClaw 代理服务协议技能
类型: 技能模块
版本: 0.1.0
构建者: AB Support / Vibe Agent Making
联系方式: alex@vibeagentmaking.com
访问权限:
- - 读取和写入工作目录中的协议存储文件(.jsonl)
- 核心操作无需网络访问
- 无遥测、无回传、无数据收集
无法执行的操作:
- - 无法访问您明确指定之外的工作目录文件
- 无法进行购买、发送电子邮件或执行不可逆操作
- 无法访问凭据、环境变量或机密信息
- 不执行付款——付款条款仅记录,不处理
许可证: Apache 2.0