Skip to main content

Module ocp

Module ocp 

Source
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_name invoke tool_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.