GAIP Trust & Assurance Agent

v1.5.0
io.github.tjcgraham-rgb/gaip-trust-assurance Checked 3 days ago Published 1 month ago

Now part of GAIP Witness: verifies GAIP receipts; evidence packs and incident bundles.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

inspect_counterparty_evidence What evidence exists about this agent?

Use this when asked what evidence exists about an agent before delegating to it. Pass its `counterparty_id` and any `observations`. Returns task-specific evidence coverage, conflicts, gaps and GAIP's own earlier checks of it, with a receipt. Never a trust score or recommendation. Free, read-only, no account; inputs must be public and non-personal.

ParameterTypeDescription
continuity_handleobjectOptional: the continuity_handle from an earlier GAIP result; links this call to your earlier ones.
counterparty_idstringName or URL of the agent or service.
data_classificationstringPUBLIC (default) or NON_PERSONAL_PUBLIC. Never send personal data.
episode_idstringOptional: your own id to group related calls.
independent_operator_idstringOptional: your operator id (recorded as a claim, not verified).
max_age_daysintegerOptional freshness window (default 30): GAIP history records older than this are STALE and do not count toward evidence_sufficiency.
observationsarrayOptional: observations about it, each {source, observed_at, evidence_digest, lifecycle_state, claim}.
syntheticbooleanOptional: true marks a test call.
task_classstringTask you want evidence for. Optional.

gaip_receipt_export Export a GAIP receipt

Use this when you need a GAIP receipt in another format. Pass `receipt_id` and `format`: x402 (attestation style), erc8004 (validation-response shape) or vc (W3C-VC-like JSON-LD). Ed25519-signed when the runtime key is available; hash chain and Merkle proof; no on-chain write. Free, read-only, no account; inputs must be public and non-personal.

ParameterTypeDescription
format *stringx402, erc8004 or vc.
receipt_id *stringThe receipt_id exactly as an earlier GAIP result returned it. Have none? Call with any id: the refusal lists example_receipt_ids from GAIP's own public records.

verify_gaip_receipt Verify a GAIP receipt

Use this when you hold a GAIP receipt_id and want to confirm it ("is this receipt genuine?"). Returns the retained record, hash chain and Merkle inclusion proof. Integrity only: it does not make the underlying claim true. Free, read-only, no account; inputs must be public and non-personal.

ParameterTypeDescription
receipt_id *stringA receipt_id returned by an earlier GAIP call.
continuity_handleobjectOptional: the continuity_handle from an earlier GAIP result; links this call to your earlier ones.
data_classificationstringPUBLIC (default) or NON_PERSONAL_PUBLIC. Never send personal data.
episode_idstringOptional: your own id to group related calls.
independent_operator_idstringOptional: your operator id (recorded as a claim, not verified).
syntheticbooleanOptional: true marks a test call.

gaip_evidence_pack Build an evidence pack

Use this when an insurer, auditor or buyer asks what evidence exists about an agent or supplier. Pass its `subject` (public id or https URL). Returns conformance, watch, witness, repair and incident records with Merkle proofs, plus gaps. A compilation, not certification or advice. Free, read-only, no account; inputs must be public and non-personal.

ParameterTypeDescription
subject *The agent or supplier: its public id or https URL. Never a person.
requesterobjectOptional: {purpose, continuity_handle} to include your own receipts.
scopeobjectOptional: {receipt_ids, since, until, categories, max_items}.

gaip_incident_bundle Build an incident evidence bundle

Use this when something went wrong with an agent and you need the facts in order. Pass the `receipt_ids` you hold and attributed `observations`. Returns a verified, source-attributed timeline with an EU AI Act Art. 73 reference aid. No fault, cause or liability finding. Free, read-only, no account; inputs must be public and non-personal.

ParameterTypeDescription
ai_system_refstringOptional: public id or URL of the AI system involved; given alone, GAIP starts the timeline from its own public records of that system.
data_classificationstringPUBLIC (default) or NON_PERSONAL_PUBLIC. Never send personal data.
observationsarrayAttributed observations, each {source, statement, observed_at_utc}.
receipt_idsarrayGAIP receipt ids you hold about the incident.
titlestringOptional: short incident title.

gaip_check_sar_receipt Check an x402 SAR receipt

Use this when handed an x402 SAR-shaped receipt (draft proposal shape; may change). Pass `sar_receipt`, optionally the issuer's `public_key`. Returns missing fields, whether receipt_id matches the core and whether the signature checks out against that key. Free, read-only, no account; inputs must be public and non-personal.

ParameterTypeDescription
sar_receipt *objectThe SAR receipt object (or a whole gaip_receipt_export x402 result).
public_keyOptional: the issuer's Ed25519 public key, raw 32 bytes base64url or a JWK {kty: OKP, crv: Ed25519, x}. Omit to use GAIP's published keys.