{"openapi":"3.1.0","info":{"title":"MUJ428 Trust Layer API","version":"1.8.3","description":"MUJ428 — VERIFY BEFORE ACT — machine-native trust preflight and evidence verification before consequential autonomous action."},"servers":[{"url":"https://wepmhfjzckclvywolrek.supabase.co/functions/v1/trust-layer"}],"paths":{"/v1/trust":{"post":{"summary":"Trust Reflex preflight","description":"Canonical request shape is flat. Legacy nested action objects are accepted only for compatibility and normalized before validation.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["caller_ref","action_ref","action"],"properties":{"caller_ref":{"type":"string","minLength":3},"action_ref":{"type":"string","minLength":3},"action":{"type":"string","enum":["PAY","BUY","DELEGATE","TRUST","ACCEPT","APPROVE","WRITE","RELEASE","COMMIT","PROPOSE"]},"amount_usd":{"type":"number","minimum":0},"irreversible":{"type":"boolean"},"external":{"type":"boolean"},"unknown_counterparty":{"type":"boolean"},"sensitive_data":{"type":"boolean"},"enforcement_boundary":{"type":"string","enum":["tool","payment","delegation","write","approval","release","commit","orchestration"]},"evidence_state":{"type":"string","enum":["SUFFICIENT","INCOMPLETE","CONFLICTING","STALE","FAILED"]},"closing_evidence_observable":{"type":"boolean"},"required_evidence_observed":{"type":"boolean"},"evidence":{"type":"array","maxItems":40,"items":{"type":"object"}},"actual_arguments":{"type":"object"},"authorization_ceiling":{"type":"number","minimum":0},"authority_expires_at":{"type":"string","format":"date-time"},"previous_trust_receipts":{"type":"array","maxItems":20,"items":{"type":"object"}}},"additionalProperties":true}}}},"x-muj428-input-compatibility":{"canonical_shape":"flat","legacy_nested_action_object":"accepted_and_normalized_before_validation"},"responses":{"200":{"description":"Free or paid Trust Reflex decision + Trust Receipt"},"402":{"description":"Free quota exhausted; no automatic charge occurs. 0.01 USDC x402 paid continuation is available only after explicit caller authorization."},"422":{"description":"Invalid request"}}}},"/v1/evidence-signal":{"post":{"summary":"Evidence Signal","responses":{"200":{"description":"Verified paid fulfillment"},"402":{"description":"0.25 USDC x402 payment required"}}}},"/v1/reputation-check":{"post":{"summary":"Agent Reputation Check","responses":{"200":{"description":"Verified paid fulfillment"},"402":{"description":"0.10 USDC x402 payment required"}}}},"/v1/milestone-attestation":{"post":{"summary":"Milestone Evidence Attestation","responses":{"200":{"description":"Verified paid fulfillment"},"402":{"description":"0.25 USDC x402 payment required"}}}},"/v1/trust-layer-report":{"post":{"summary":"Trust Layer Report","responses":{"200":{"description":"Verified paid fulfillment"},"402":{"description":"0.50 USDC x402 payment required"}}}},"/v1/transaction-assurance":{"post":{"summary":"Dynamic Transaction Assurance","description":"Under $50,000: 2.00% with $9 minimum. $50,000 and above: 1.00% with $25 minimum.","responses":{"200":{"description":"Verified paid fulfillment"},"402":{"description":"Dynamic x402 payment required based on transaction value"}}}},"/v1/monitor":{"post":{"summary":"Create Continuous Trust Monitoring from a prior Trust Receipt","description":"Post-preflight expansion capability. Registers evidence/authority/counterparty/policy/execution freshness without granting execution authority. Pricing is expansion beta/no charge until canonical pricing authority publishes a commercial term.","responses":{"201":{"description":"Monitor created with one-time bearer monitor token"},"409":{"description":"Monitor already exists"},"422":{"description":"Invalid or unproven source Trust Reflex invocation"}}}},"/v1/payments/capabilities":{"get":{"summary":"Discover payment rails and activation state","responses":{"200":{"description":"No-money payment capability discovery"}}}},"/v1/payments/select":{"post":{"summary":"Select an eligible payment rail before Trust Reflex","responses":{"200":{"description":"Rail eligible for trust preflight; no payment authorization"},"409":{"description":"Rail unavailable or requires verification"}}}},"/v1/rescue":{"post":{"summary":"MUJ428 Agent Rescue Beacon for stuck or uncertain consequential actions","description":"Returns bounded guidance and the independent Trust Kernel preflight route. Never grants execution authority.","responses":{"200":{"description":"Safe route and preflight requirements"},"422":{"description":"Invalid or unclassifiable request"},"429":{"description":"Rate limited"}}}},"/v1/welcome":{"get":{"summary":"Read the MUJ428 machine hospitality Welcome Envelope","responses":{"200":{"description":"Orientation-only Welcome Envelope; no Trust decision or execution authority"}}},"post":{"summary":"Orient an agent to the narrowest safe Trust Reflex insertion point","responses":{"200":{"description":"Personalized orientation and prepared example preflight; no Trust decision occurred"},"400":{"description":"Invalid JSON"}}}},"/v1/route":{"post":{"summary":"Resolve a consequential action through the MUJ428 Agent Router","responses":{"200":{"description":"Trust requirement and next-step route"},"422":{"description":"Unclassifiable intent"}}}},"/v1/trust-dns/resolve":{"post":{"summary":"Resolve receipt, evidence, executor, and effect-state requirements","responses":{"200":{"description":"Trust DNS resolution"}}}},"/v1/heartbeat":{"get":{"summary":"Poll current policy epoch, receipt version, revocations, and component endpoints","responses":{"200":{"description":"Trust Heartbeat"}}}},"/v1/compatibility":{"get":{"summary":"Search receipt-aware infrastructure","responses":{"200":{"description":"Compatibility entries with explicit evidence class"}}},"post":{"summary":"Register a self-attested compatibility advertisement","responses":{"202":{"description":"Accepted as unverified discovery metadata"}}}},"/v1/trust-requests":{"get":{"summary":"List open trust-capability requests","responses":{"200":{"description":"Open requests"}}},"post":{"summary":"Publish a bounded trust-capability request","responses":{"201":{"description":"Request and current matches"}}}},"/v1/loop/status":{"get":{"summary":"Read technical and evidence-gated propagation status","responses":{"200":{"description":"Loop status without unsupported adoption claims"}}}}},"x-muj428":{"campaign":"PROJECT OVERREACT-428","pricing_url":"https://wepmhfjzckclvywolrek.supabase.co/functions/v1/trust-layer/pricing.json","services_url":"https://wepmhfjzckclvywolrek.supabase.co/functions/v1/trust-layer/services","network":"eip155:8453","payment_protocol":"x402","payment_capabilities":"https://wepmhfjzckclvywolrek.supabase.co/functions/v1/trust-layer/v1/payments/capabilities","continuous_monitoring":"https://wepmhfjzckclvywolrek.supabase.co/functions/v1/trust-layer/v1/monitor","canonical_trust_request_shape":"flat","nested_action_object_compatibility":true,"first_action_default":{"namespace":"com.muj428/first-action-default/v1","operator_opt_in_required":true,"zero_history_input":"prior_consequential_actions","zero_history_qualifies_only_when":0,"unknown_when_absent":true,"no_cross_platform_history_inference":true,"execution_authority":false,"auto_spend":false},"machine_welcome":"https://wepmhfjzckclvywolrek.supabase.co/functions/v1/trust-layer/v1/welcome","machine_welcome_discovery":"https://wepmhfjzckclvywolrek.supabase.co/functions/v1/trust-layer/.well-known/muj428-welcome.json","rescue_beacon":"https://wepmhfjzckclvywolrek.supabase.co/functions/v1/trust-layer/v1/rescue","agent_router":"https://wepmhfjzckclvywolrek.supabase.co/functions/v1/trust-layer/v1/route","trust_dns":"https://wepmhfjzckclvywolrek.supabase.co/functions/v1/trust-layer/v1/trust-dns/resolve","trust_heartbeat":"https://wepmhfjzckclvywolrek.supabase.co/functions/v1/trust-layer/v1/heartbeat","compatibility_directory":"https://wepmhfjzckclvywolrek.supabase.co/functions/v1/trust-layer/v1/compatibility","trust_requests":"https://wepmhfjzckclvywolrek.supabase.co/functions/v1/trust-layer/v1/trust-requests","loop_status":"https://wepmhfjzckclvywolrek.supabase.co/functions/v1/trust-layer/v1/loop/status","receipt_required_header":"MUJ428-Receipt-Required: v1.3"}}