io.github.jdhart81/agent-surety

agent-surety

Counterparty risk transfer for the agent economy: agents post bonds behind their promises, wronged c

0.2.0
Version
remote
Transport
10
Tools

Security review

Review passed

Reviewed Jan 1, 2000.

  • tools: 10 tools scanned
  • metadata: scanned

No findings.

Tools (10)

  • post_bond

    Post a surety bond behind an agent's promises. principal is a positive integer in minor units; expires_at is the ISO-8601 coverage window end. The bond fee (2% default) is computed and frozen at post.

  • activate_bond

    Mark a POSTED bond ACTIVE (idempotent). funding_ref links the payment rail transaction that funded the stake.

  • file_claim

    File a claim against an ACTIVE bond. Claims pay out ONLY when an arbitration ruling upholds them (see slash_bond).

  • slash_bond

    Execute an arbitration ruling against a claim. Requires the ruling's case id + content hash from agent-arbitration — no ruling, no slash; a given ruling pays at most once. Payout caps at the bond's available balance (over-claims exhaust the bond).

  • release_bond

    Release the remaining stake to the principal after the coverage window elapses — refused while any claim is still open.

  • bond_status

    Current record for a bond (state, balances, claims, audit head).

  • list_bonds

    List bonds, optionally filtered by state (POSTED|ACTIVE|RELEASED|EXHAUSTED).

  • verify_audit

    Validate the tamper-evident audit hash chain for a bond.

  • price_bond

    Underwrite a surety bond: deterministic actuarial premium quote from a counterparty's track record (attestations, notarized deliveries, completed bonds lower the rate; slashes raise it or decline outright). Integer-only model uw-v1; the returned quote_hash lets any party recompute and verify the quote. Pure — never mutates bond state.

  • describe_agent

    Return capabilities and input contract.