Capability Contracts

PubFi capabilities are stable agent-facing data contracts. Agents should use a capability such as wallet.account_balance instead of binding directly to an upstream provider path when a capability exists.

Initial Vocabulary

Response Envelope

Every v1 capability response uses:

Why The Envelope Matters

The envelope lets agents inspect:
  • selected capability id;
  • readiness posture;
  • selected provider or resource provenance;
  • source freshness evidence;
  • upstream metadata when observed;
  • warnings and fail-closed states.
Normalized output does not hide provider identity. PubFi keeps provenance visible so agents can reason about source quality and route suitability.

Execution Boundary

A valid capability schema does not make a route callable. Execution still depends on current gateway/provider readiness, API-key auth, active billing admission, sufficient request allocation, upstream credentials, source freshness, and supported route mapping.