Expand description
Open Context Protocol (OCP) v0.1 export adapter.
OCP is the published exchange format (see the open-context-protocol
repo; schemas vendored under docs/contracts/ocp/). Internal types stay
free to evolve — this module is the compatibility boundary that projects
them onto the spec’d wire shapes (ADR-0001 in the OCP repo, GL #430).
Context-IR documents and evidence (audit) entries already serialize schema-conformant via serde; only surfaces whose internal encoding differs from the wire format need an adapter here.
Functions§
- capability_
check_ result - OCP Part 2 check result: may
role_nameinvoketool_name? - capability_
grant_ set - OCP Part 2 grant set for a role: which capabilities the subject holds.
- export_
event - Project a runtime event onto the OCP Part 5 wire shape.