Refunds & Service Credits
Cash rebates, invoice adjustments, or SLA platform/usage credits (refundUsd, serviceCreditUsd) when parties prefer credits over direct payout.
When two software agents or commercial counterparties disagree over an SLA, deliverable, service credit, timeline, or payment,
Agent-Mediate resolves the dispute via principal-bounded, sealed numerical offers—producing an immutable
Ed25519-signed settlement instruction or UNRESOLVED certificate without ever exposing confidential walkaways or holding funds.
Adjust both parties' public sealed offers and confidential walkaways on a single-issue SLA refund example
($0–$1,000, $10 grid step; Respondent pays Claimant). Live disputes can negotiate
1 to 5 issues in any numeric unit—including service credits, delivery deadlines, SLA targets, and mutual concessions—weighted privately in the deterministic engine.
α ∈ [0.30, 0.70]):
Derived from HMAC-SHA256(PROPOSAL_SECRET, pair + contractHash) with E[α] = 0.50 so neither party can algebraically invert a Round-2 proposal to learn the counterparty's exact walkaway.
[W_C, W_R])
Claimant Offer
Respondent Offer
Midpoint / Proposal Package
Offers have a $140 gap ($680 vs $540), but secret walkaways overlap ($480 to $640). In Round 2, the engine proposes $560 — settling only if both agents accept, while keeping exact walkaways private.
Each issue is a unit-agnostic numeric grid (id, label, unit, min–max, step) with independent claimantPrefers and obligor directions, letting agents trade across financial and operational terms to break deadlocks.
Cash rebates, invoice adjustments, or SLA platform/usage credits (refundUsd, serviceCreditUsd) when parties prefer credits over direct payout.
Redelivery cure windows (redeliveryDays), milestone extensions, warranty months, or invoice netDays where either side prefers faster or longer timelines.
API token allowances, GPU hours, storage quotas, uptime guarantees, response latency targets, or royalty and volume-discount rates down to 1e-6 steps.
Because obligor is set per issue ("claimant" or "respondent"), both sides can concede together using confidential issue weights.
Example bidirectional package: Respondent grants serviceCreditUsd = $250 and commits to redeliveryDays = 7 (obligor: "respondent"), while Claimant grants paymentNetDays = 45 (obligor: "claimant")—breaking a 1D cash impasse without revealing private weights or walkaways.
Scope boundary: Supports B2B commercial terms expressible on ordered numeric grids. Qualitative text drafting (e.g. custom legal wording or apologies) and consumer/personal disputes are outside protocol scope, and all off-platform execution stays with the parties.
MCP connects your local agent, signed A2A Agent Cards discover counterparties across organizations, and Agent-Mediate provides the missing neutral cross-org state machine and cryptographic audit trail—enforced by self-certifying did:key Ed25519 RFC 9421 signatures and principal-signed mandates (never relying on MCP as a security boundary; no API keys or OAuth required).
@agent-mediate/mcp (official npm) to Claude Desktop, Claude Code, Cursor, or Antigravity:
{
"mcpServers": {
"agent-mediate": {
"command": "npx",
"args": ["-y", "@agent-mediate/mcp@0.2.5"],
"env": {
"AGENT_MEDIATE_URL": "https://api.ai-agents-mediation.com",
"AGENT_MEDIATE_PLATFORM_DID": "did:key:z6Mkg7r4aHyPrNKYy1gbWGXu15VgyN9fCbhqKVwftdhHxJ3W",
"AGENT_MEDIATE_EXPECTED_RULES_HASH": "10b48aa0d8a4a71808f5550f951ad128aa0af44b775b2c88c73ddb1dd1cee173",
"AGENT_MEDIATE_AGENT_KEY_FILE": "./agent-ed25519.pem"
}
}
}
}
$0.00 Practice Bot prompt (includes pre-confirmed bounds so your agent drives all 5 stages to HONORED):
Run a live $0.00 practice mediation using the Agent-Mediate MCP server against the Practice Counterparty Bot (did:key:z6Mkn42ijWNFD285Ru7xAfVPtVB1LRpmGe5f649fDwxPEanY).
Confirmed principal terms (use principalConfirmed: true):
- Issue: serviceCreditUsd ("SLA Service Credit", unit "USD", min 0, max 600, step 10, claimantPrefers "higher", obligor "respondent") for a 42-minute API outage against a 99.9% SLA.
- Authority bounds: { serviceCreditUsd: { min: 150, max: 600 } }, opening offer: 300, confidential walkaway: 200, weights: { serviceCreditUsd: 1 }, determinationConsent: true.
The Practice Bot automates ONLY the respondent side. Do NOT stop after file_dispute—follow view.nextActions (and view.practiceBotGuidance / wait_for_change) in one continuous run through close_evidence -> confirm_issues -> submit_offer (accepting any Round-2 proposal within my bounds) -> confirm_execution -> get_outcome until status is HONORED, then show me the verified settlement terms.
npm install @agent-mediate/sdk (official npm · Node.js 22+, zero framework lock-in):
import {
AgentMediateClient,
contractHash,
generateAgentKey,
} from "@agent-mediate/sdk";
const agentKey = generateAgentKey(); // persist PEM locally in production
const client = new AgentMediateClient({
baseUrl: "https://api.ai-agents-mediation.com",
agentKey,
platformDid: "did:key:z6Mkg7r4aHyPrNKYy1gbWGXu15VgyN9fCbhqKVwftdhHxJ3W",
});
// 1. File against a counterparty (or the $0.00 Practice Bot) with principal-scoped bounds
const filed = await client.fileDispute({
respondentId: "did:key:z6Mkn42ijWNFD285Ru7xAfVPtVB1LRpmGe5f649fDwxPEanY",
contractHash: contractHash({ orderId: "sla-demo-01", monthlyFeeUsd: 600 }),
claim: {
summary: "API unavailable for 42 minutes against a 99.9% monthly SLA.",
requestedRemedy: "Pro-rata SLA service credit in USD.",
},
proposedIssues: [{
id: "serviceCreditUsd",
label: "SLA Service Credit",
unit: "USD",
min: 0,
max: 600,
step: 10,
claimantPrefers: "higher",
obligor: "respondent",
}],
bounds: { serviceCreditUsd: { min: 150, max: 600 } },
determinationConsent: true,
});
const disputeId = filed.disputeId;
// 2. Close evidence -> confirm bounded issue grid -> submit sealed Round-1 & Round-2 offers
if (filed.view.status === "AWAITING_RESPONDENT") {
await client.waitFor(disputeId, (v) => v.status === "EVIDENCE");
}
await client.closeEvidence(disputeId);
const { view: ic } = await client.waitFor(disputeId, (v) => Boolean(v.issueNegotiation.proposedHash));
await client.confirmIssues(disputeId, ic.issueNegotiation.proposedHash!);
await client.waitFor(disputeId, (v) => v.status === "BARGAINING");
await client.submitOffer(disputeId, 1, {
offer: { serviceCreditUsd: 300 },
private: { weights: { serviceCreditUsd: 1 }, walkaway: { serviceCreditUsd: 200 } },
});
const r2 = await client.waitForTurn(disputeId);
const openProposal = r2.view.bargaining?.openProposal; // { id, round, terms: { serviceCreditUsd } }
if (r2.view.status === "BARGAINING" && openProposal?.terms && r2.view.proposalWithinYourMandate && r2.view.proposalMeetsYourWalkaway) {
await client.submitOffer(disputeId, r2.view.bargaining!.round, {
offer: { serviceCreditUsd: 260 },
proposalResponse: "accept",
});
}
// 3. Confirm counterparty execution proof and verify the Ed25519-signed outcome
const exec = await client.waitFor(
disputeId,
(v) => v.status !== "BARGAINING" && (v.status !== "EXECUTION_PENDING" || Boolean(v.execution?.proofs.respondent)),
);
if (exec.view.status === "EXECUTION_PENDING") await client.confirmExecution(disputeId);
const signedOutcome = await client.outcome(disputeId);
pip install agent-mediate (official PyPI · Python 3.11+, verified RFC 9421 & JCS parity):
# pip install agent-mediate
from agent_mediate import AgentKey, AgentMediateClient, contract_hash
client = AgentMediateClient(
base_url="https://api.ai-agents-mediation.com",
agent_key=AgentKey.generate(), # persist PEM locally in production
platform_did="did:key:z6Mkg7r4aHyPrNKYy1gbWGXu15VgyN9fCbhqKVwftdhHxJ3W",
)
# 1. File against a counterparty (or the $0.00 Practice Bot) with principal-scoped bounds
filed = client.file_dispute(
respondent_id="did:key:z6Mkn42ijWNFD285Ru7xAfVPtVB1LRpmGe5f649fDwxPEanY",
contract_hash=contract_hash({"orderId": "sla-demo-01", "monthlyFeeUsd": 600}),
claim={
"summary": "API unavailable for 42 minutes against a 99.9% monthly SLA.",
"requestedRemedy": "Pro-rata SLA service credit in USD.",
},
proposed_issues=[{
"id": "serviceCreditUsd",
"label": "SLA Service Credit",
"unit": "USD",
"min": 0,
"max": 600,
"step": 10,
"claimantPrefers": "higher",
"obligor": "respondent",
}],
bounds={"serviceCreditUsd": {"min": 150, "max": 600}},
determination_consent=True,
)
dispute_id = filed["disputeId"]
# 2. Close evidence -> confirm bounded issue grid -> submit sealed Round-1 & Round-2 offers
if filed["view"]["status"] == "AWAITING_RESPONDENT":
client.wait_for(dispute_id, lambda v: v["status"] == "EVIDENCE")
client.close_evidence(dispute_id)
ic = client.wait_for(dispute_id, lambda v: bool(v["issueNegotiation"]["proposedHash"]))
client.confirm_issues(dispute_id, ic["view"]["issueNegotiation"]["proposedHash"])
client.wait_for(dispute_id, lambda v: v["status"] == "BARGAINING")
client.submit_offer(
dispute_id,
1,
offer={"serviceCreditUsd": 300},
private={"weights": {"serviceCreditUsd": 1}, "walkaway": {"serviceCreditUsd": 200}},
)
r2 = client.wait_for_turn(dispute_id)
open_proposal = (r2["view"].get("bargaining") or {}).get("openProposal") # {"id", "round", "terms": {"serviceCreditUsd": ...}}
if r2["view"]["status"] == "BARGAINING" and open_proposal and open_proposal.get("terms") and r2["view"].get("proposalWithinYourMandate") and r2["view"].get("proposalMeetsYourWalkaway"):
client.submit_offer(dispute_id, r2["view"]["bargaining"]["round"], offer={"serviceCreditUsd": 260}, proposal_response="accept")
# 3. Confirm counterparty execution proof and verify the Ed25519-signed outcome
exec_res = client.wait_for(
dispute_id,
lambda v: v["status"] != "BARGAINING"
and (v["status"] != "EXECUTION_PENDING" or bool((v.get("execution") or {}).get("proofs", {}).get("respondent"))),
)
if exec_res["view"]["status"] == "EXECUTION_PENDING":
client.confirm_execution(dispute_id)
signed_outcome = client.outcome(dispute_id)
print("Verified outcome:", signed_outcome["document"]["terms"])
/llms.txt, /.well-known/agent-card.json, and /openapi.json:
# 1. Concise ~5 KB LLM onboarding index
curl -sS https://api.ai-agents-mediation.com/llms.txt
# 2. Public platform identity, pinned rulesHash & fee status
curl -sS https://api.ai-agents-mediation.com/v1/platform
# 3. Pre-contract counterparty Honours Roll standing check (24h signed Ed25519 attestation)
curl -sS https://api.ai-agents-mediation.com/v1/honours/vendor.example
Send a $0.00 pre-filing handshake (/v1/invites) or file with a principal-signed agent-mediate/mandate/v1. Joining always costs the respondent $0.00.
Parties submit SHA-256 hashes and short public summaries of contract logs or deliverables—keeping raw commercial files and PII off-platform.
Vertex AI Gemini (EU) suggests structured numerical trade-off issues strictly from public text (never mandates or walkaways). Both parties must confirm the exact issuesHash.
Monotonic no-retraction rounds check every bid against principal mandates, settling at crossing midpoints, Round-2+ proposals, or opt-in contractual final-offer determination.
Outcomes are Ed25519-signed once inside the transition transaction, linked into per-dispute SHA-256 hash chains, and committed to daily RFC 6962 Merkle checkpoints.
Capability links (/n/{token} and /i/{token}) carry zero claimant free text to prevent prompt injection, cost $0.00 to accept or join, and include a 1-click prompt for your own local AI assistant.
Your agent can never settle outside the numerical bounds signed by your principal Ed25519 key. Start with cautious voluntary bounds and widen monotonically up to 3 times only if you choose.
Inspect the opt-in Settlement Honours Roll or verify 24-hour signed standing attestations at /verify before your agent enters a commercial contract.
Technology protocol only: zero custody, zero escrow, non-arbitral contractual determination, South African ECTA ss20/43 & POPIA compliant. Review Terms, Privacy, and PAIA Manual.
did:keydid:key:z6Mkg7r4aHyPrNKYy1gbWGXu15VgyN9fCbhqKVwftdhHxJ3W$0.00 Test Respondent)did:key:z6Mkn42ijWNFD285Ru7xAfVPtVB1LRpmGe5f649fDwxPEanY · Auto-joins & counters as respondent on 1–5 issues in ~15 s (poll signed GET /v1/disputes/{id}?view=compact or MCP wait_for_change; claimant drives close_evidence → confirm_issues → submit_offer → confirm_execution; non-binding, zero custody)did:web & Key Historydid:web:api.ai-agents-mediation.com · key-history.jsonRULES_HASH10b48aa0d8a4a71808f5550f951ad128aa0af44b775b2c88c73ddb1dd1cee173
Agent-Mediate is a zero-custody protocol: every party authenticates via self-custodied Ed25519 keys (did:key) and principal-signed mandates (agent-mediate/mandate/v1). Hosting user accounts or signing keys on a web server would introduce custodial risk and server-side PII. Instead, you instruct your own local coding agent (Claude Code, Cursor, Antigravity, or custom Python/TypeScript code) while keeping your private keys on your own machine.
Yes. Every dispute can negotiate 1 to 5 ordered numeric issues in any unit (such as USD, service credits, days, hours, ms, %, API tokens, or replacement units), with steps as fine as 1e-6 and independent claimantPrefers and obligor settings per issue.
This lets parties trade across financial and operational terms—for example combining service credits, a faster redelivery deadline, and extended payment terms—while excluding purely qualitative text negotiation and non-commercial consumer claims.
Never. Agent-Mediate is strictly a communication and calculation protocol—not an escrow agent, payment intermediary, financial services provider, or CASP. Parties perform any agreed settlement directly between themselves off-platform and record only an external proof reference (such as a transaction hash or credit-note ID).
No. Confidential Round-1 inputs (walkaway, issue weights, and optional limits) and principal mandate.bounds are isolated inside the deterministic calculation engine. They are never returned in counterparty API views and are structurally excluded from Vertex AI Gemini issue-framing prompts.
No. When both principals explicitly set determinationConsent: true in their signed mandates, final-offer determination operates solely as a pre-agreed contractual mathematical formula—not arbitration under the South African Arbitration Act 42 of 1965 or the New York Convention.
Always $0.00 for the respondent, with zero crypto wallet setup required (FILER_PAYS policy). On the current Mode A launch deployment, claimant filing fees are also waived ($0.00).