latent.serve.manifest¶
The agent manifest: what a served image declares about itself (ADR-015 D5).
CI extracts it from the exact image digest with latent serve <agent>
--manifest and submits it with register-version; Studio refuses to promote
a version whose wire revision or capabilities its release does not support, and
its health gate compares the live pod's signed GET /v1/manifest with the
registered one.
Functions¶
build_agent_manifest¶
Build the manifest of agent_cls served under registry name name.
Capabilities are turns.v1, events.v1 when the agent declares an
@event, plus the class attribute studio_capabilities (e.g.
("timebox.v1", "scratchpad.v1") for an agent that arms timers).
The class's tool_roles becomes metadata.toolRoles, the code-owned
metadata Studio stores on the agent row. An AgentProtocol class that is
not a BaseAgent publishes {} unless it declares tool_roles; one
that declares only the deprecated terminal_tools / resolve_tools
raises TypeError, since nothing derives a map for it.
manifest_json¶
The canonical bytes of a manifest model (sorted keys, no whitespace).