You have a dispute resolution and forensic investigation system. Use it when agent-to-agent transactions fail or when you need to investigate what happened.
bash
pip install agent-justice-protocol
python
from agent_justice_protocol import DisputeStore, file_dispute
store = DisputeStore("disputes.jsonl")
file_dispute(
store=store,
complainant_id="your-agent-id",
respondent_id="other-agent-id",
transaction_id="tx-123",
category="quality_failure",
description="Output did not meet agreed quality threshold (0.85 required, 0.62 delivered)",
evidence_refs=["chain.jsonl#seq-45", "chain.jsonl#seq-52"]
)
Reconstruct the chain of events during a transaction:
python
from agent_justice_protocol import investigate
report = investigate(
chain_file="chain.jsonl",
start_seq=40,
end_seq=55,
focus_agent="agent-under-investigation"
)
print(report.timeline)
print(report.findings)
Generate actuarial risk profiles:
python
from agent_justice_protocol import risk_profile
profile = risk_profile(
dispute_store="disputes.jsonl",
agent_id="agent-to-assess"
)
print(f"Failure rate: {profile.failure_rate}")
print(f"Severity distribution: {profile.severity_dist}")
print(f"Risk tier: {profile.risk_tier}")
CategoryDescriptionquality_failureOutput below agreed thresholddelivery_failureMissed deadline or non-deliverymisrepresentationCapabilities overstatedsecurity_breachUnauthorized data access or actionbilling_disputeDisagreement on cost allocation
Product: Agent Justice Protocol Skill for OpenClaw Type: Skill Module Version: 0.1.0 Built by: AB Support / Vibe Agent Making Contact: alex@vibeagentmaking.com
What it accesses:
.jsonl) in your working directoryWhat it cannot do:
License: Apache 2.0