Observed since 20 Oct, 22:29 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Forensic investigation, dispute resolution, and risk assessment for the agent economy — the accountability layer of the Agent Trust Stack
Forensic investigation, dispute resolution, and risk assessment for the agent economy. The accountability layer (Layer 4) of the Agent Trust Stack.
pip install agent-justice-protocol
from agent_justice_protocol import (
ForensicInvestigation, IncidentReport, AgentReference,
EvidenceRecord, JusticeStore,
)
# Investigate an incident
report = IncidentReport(
reporter=AgentReference(agent_id="agent-monitor-01"),
incident_type="service_failure",
severity="high",
description="Agent failed to deliver contracted output",
subjects=[AgentReference(agent_id="agent-suspect-42")],
)
investigation = ForensicInvestigation(report)
investigation.add_evidence(EvidenceRecord(
evidence_type="interaction_log",
provenance_tier=2,
source_agent_id="agent-monitor-01",
content={"action": "request_sent", "status": "timeout"},
))
finding = investigation.produce_finding()
# Store results
store = JusticeStore()
store.append_finding(finding)
| Module | Purpose | Key Classes |
|---|---|---|
| Forensics Engine | Investigate incidents: collect evidence, reconstruct timelines, flag causal indicators | ForensicInvestigation, IncidentReport, EvidenceRequest, PrivacyGuard |
| Dispute Resolution | File claims, exchange evidence (commit-reveal), arbitrate with peer panels | Dispute, DisputeClaim, ArbitratorPool, render_decision |
| Risk Assessment | Score agent risk, compute actuarial outputs for insurance underwriting | RiskEngine, RiskProfile, population_risk_summary |
Each module ships independently. Module 1 requires only a provenance chain. Module 2 depends on Module 1 for evidence. Module 3 consumes output from both.
# Run a forensic investigation
agent-justice investigate --reporter agent-01 --type service_failure \
--severity high --description "Output not delivered" --subject agent-02
# File a dispute
agent-justice file --claimant agent-01 --respondent agent-02 \
--finding <finding-id> --harm-type financial \
--harm-description "Failed delivery" --amount 500
# Check risk profile
agent-justice query agent-02
# Store statistics
agent-justice status
Incident
-> [Module 1: Forensics Engine]
Evidence collection -> Timeline reconstruction -> Causal indicators
Output: ForensicFinding
-> [Module 2: Dispute Resolution]
Claim filing -> Response -> Evidence exchange -> Arbitration
Output: ArbitrationDecision
-> [Module 3: Risk Assessment]
Historical findings + decisions -> Risk scoring -> Actuarial outputs
Output: RiskProfile
pip install agent-justice-protocol[coc] # Chain of Consciousness integration
pip install agent-justice-protocol[arp] # Agent Rating Protocol integration
This software is provided as a reference implementation of the Agent Justice Protocol specification. It is intended for research, development, and integration testing.
This software does not provide legal advice, legal representation, or legally binding arbitration. Dispute decisions rendered by this software are structured data outputs, not legal judgments. For disputes exceeding $50,000 or involving regulatory compliance, human legal counsel is required.
Limitations:
No warranties. See LICENSE for full terms.
Apache 2.0 — see LICENSE.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.1 | 5 Apr 2026 | 4 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 22:29 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:0a78a0d203d47c401d05c3ff3dbc8601d7e085af8341a70a662227113cdd346e