Catalog PyPI
PACKAGE EXPLORERView in registry

agent-service-agreements

PyPI

Machine-readable service contracts and quality verification for autonomous agent commerce — the agreements layer of the Agent Trust Stack

agentagreementaicommerceescrownegotiationqualityserviceslatrustverification
Versions collected1
Direct dependencies4From release 0.1.1
Last observed20 Oct, 23:20 UTC

README

Version 0.1.1 documentation

Agent Service Agreements

PyPI Python License

Machine-readable service contracts and quality verification for autonomous agent commerce. Part of the Agent Trust Stack.

from agent_service_agreements import Identity, create_agreement_from_template, VerificationEngine

agreement = create_agreement_from_template("research",
    client=Identity(scheme="api_key", value="client-123"),
    provider=Identity(scheme="api_key", value="provider-456"),
    escrow_amount="5.00")

result = VerificationEngine().verify(deliverable_text, original_request="Summarize federated learning research")
print(f"Score: {result.composite_score}, Passed: {result.passed}")

What It Does

ASA provides two API surfaces for agent-to-agent commerce:

Agreements API — Create, negotiate, sign, and manage machine-readable service contracts with quality criteria, SLO definitions, and payment terms.

Verification API — Evaluate deliverable quality across multiple dimensions (correctness, completeness, coherence, etc.) with structural and semantic verification. Works standalone or against agreement criteria.

Install

pip install agent-service-agreements

Zero required dependencies. Python 3.8+.

Optional integrations:

pip install agent-service-agreements[arp]  # Agent Rating Protocol
pip install agent-service-agreements[ajp]  # Agent Justice Protocol

CLI

# Create an agreement from a template
agent-service agree --template research --client alice --provider bob --amount 5.00

# Verify a deliverable
agent-service verify --deliverable output.md --request "Summarize FL research" --type text/research

# List templates
agent-service templates

# Check store status
agent-service status

Agreement Templates

TemplateDimensionsThreshold
researchaccuracy, completeness, relevance, source_quality, writing_quality75
code_generationcorrectness, performance, security, maintainability, test_coverage80
data_analysisaccuracy, methodology, depth, clarity, actionability75
translationaccuracy, fluency, cultural_fit, terminology, completeness80
reviewthoroughness, accuracy, actionability, tone, completeness75
generalaccuracy, completeness, relevance, clarity, timeliness70

Escrow & Graduated Payment

ASA supports graduated payment release based on quality scores:

ScoreRelease
>= 90100%
75-8985%
60-7450%
< 600% (dispute option)

Continuous mode available: payment = (score / 100) * amount.

Dead-man's switch defaults to hold_for_backup_evaluator (not release_to_provider).

Negotiation

Multi-round structured negotiation with fairness constraints:

  • Configurable round limits (default: 5)
  • Asymmetry limits (max 25% change per round)
  • Price bounds relative to market rates
  • Structured JSON messages (no free-text manipulation)

Verification Depths

  • Structural: Schema validation, format checks, size constraints (~0ms)
  • Semantic: Agent-as-a-Judge integration point for content quality (~10-120s)
  • Composite: Structural + semantic + optional canary/cross-reference checks

Trust Ecosystem

ASA is Layer 2 in the Agent Trust Stack:

Layer 3: Accountability  — Agent Justice Protocol (disputes, forensics)
Layer 2: Agreements      — Agent Service Agreements (this package)
Layer 1: Trust Primitives — Chain of Consciousness + Agent Rating Protocol

Security

VAM-SEC v1.0 Security Disclaimer: This is alpha software implementing a protocol specification. It has not undergone formal security audit. Do not use for production financial transactions without additional security review. The escrow abstraction layer does not handle actual funds — it computes release amounts that must be executed by an external payment system.

License

Apache 2.0. See LICENSE.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.15 Apr 20264

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
vibeagentmaking/agent-service-agreements

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:20 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b0011fdd183e3022ff1d7fe8bca29fbe4edfd42ca3a69ee9b4cc733f4feddc88