agent-attachment-protocol
Shared Rust types and validation for agent attachment providers and terminal clients.
The version 1 JSON contract separates an exact agent reference, a fresh availability observation, and an executable attachment plan. Only the attachable observation carries a plan. Consumers validate the returned reference against the requested reference before using its plan.
The crate exports AttachmentReference, Destination, CommandSpec, AttachmentPlan, Observation, and AttachmentResolution.
Providers retain lifecycle, authentication, native conversation ownership, and recovery policy. Terminal layout planning belongs to agent-ssh.
This 0.1 API is experimental.