Expand description
Stable, serde-only inventory and control contract for Gate4Agent C2.
Structs§
- Adapter
Contract Revision - Adapter
Id - Stable identifier for one provider adapter implementation.
- AgentId
- Stable, extensible identifier for an agent CLI.
- Agent
Progress Attention V1 - Agent
Progress Usage V1 - Agent
Progress V1 - Architecture
Id - C2Client
Authentication - C2Client
Hello - C2Control
Compatibility Support - C2Control
Event - C2Git
Snapshot - C2Git
Worktree Snapshot - C2Hello
- C2Managed
Session Record - C2Node
Event Envelope - C2Node
Failure - C2Node
Snapshot - C2Relay
Failure - C2Reply
Envelope - C2Request
Envelope - C2Request
Id - C2Server
Challenge - C2Session
Snapshot - C2Topology
- C2Topology
Node - C2Workspace
Inspection - C2Workspace
Snapshot - Capability
Id - Client
Compatibility Offer - Context
Pack Bytes Read - Context
Pack Lineage Receipt - Delivery
Blob Chunk HexV1 - Delivery
Blob Digest V1 - Delivery
Blob Receipt V1 - Delivery
Bundle Manifest V2 - Delivery
Commit Receipt V1 - Delivery
Manifest Digest V2 - Delivery
Stage Id - GitDiff
- GitHistory
Page - Harness
McpActivation Digest - Harness
McpCall Id - Harness
McpOpaque Payload V1 - An opaque harness-MCP payload.
- Harness
McpReply Chunk HexV1 - Harness
McpReservation Id - Health
Response - History
Candidate Summary - Host
Descriptor - Host
Directory Entry - Host
Directory Listing - Launch
Inventory - Managed
Worktree GitScope - Managed
Worktree Lease Id - Managed
Worktree Lease Snapshot - Managed
Worktree Profile Summary - Managed
Worktree Spawn Receipt - Managed
Worktree Spawn Request - Managed
Worktree Spawn Request V2 - Native
Session Catalog Entry - Native
Session Catalog Page - Native
Session Catalog Route - Native
Session Catalog Summary - Native
Session External Group - Native
Session Selection - Negotiated
C2Control Compatibility - Node
Cursor - Node
Failure - NodeGap
- NodeId
- Node
Incarnation Id - Node
Route - Observed
Node - Opaque
Host Path - Operating
System Id - Path
Semantics - Protocol
Range - Provider
Adapter Contract Support - Provider
Contract Revision - Provider
Contract Support - Provider
Runtime Contract Id - Provider
Runtime Status - Provider
Runtime Statuses - Provider
Runtime Version - Ready
Response - Repository
Path - Resolved
Bundle Receipt - Resolved
Context Pack Receipt - Resolved
Environment Profile Receipt - Resolved environment-profile identity echoed on spawn receipts.
- Resolved
Harness McpProxy Receipt V1 - Resolved
Spawn Receipt - Resolved
Spawn Spec - Routed
Node Event - Routed
Node Request - Routed
Node Response - Sanitized
Error - Session
Agent Progress - Session
Record Preview - Session
Task Binding V1 - Slim
Managed Session Record - Slim
Node Inventory - Slim
Session - Slim
Workspace - Spawn
Browser Profile Id - Opaque dig2browser station browserProfile id under node-local
profiles_root. - Spawn
Bundle Digest - Spawn
Bundle Id - Spawn
Bundle Revision - Spawn
Context Digest - Spawn
Context Id - Spawn
Deadline Ms - Spawn
Environment Profile Id - Spawn
Environment Profile Revision - Spawn
Idempotency Key - Spawn
Network Allowlist Id - Opaque node-local network allowlist policy id (station axis).
- Spawn
Overrides - Spawn-time overrides for an accepted
SpawnSpec. - Spawn
Profile Defaults - Spawn
Profile Id - Spawn
Profile Revision - Spawn
Profile Summary - Spawn
Prompt - Spawn
Prompt Metadata - Spawn
Required Capabilities - Spawn
Resolution Provenance - Spawn
Spec - Spawn
Target - Status
Response - TaskId
- Workspace
File Read - Worktree
Profile Id - Worktree
Profile Inventory - Worktree
Profile Revision
Enums§
- Adapter
Family - Agent
Progress Attention Kind V1 - Agent
Progress Current V1 - Agent
Progress Event Kind V1 - C2Auth
Direction - C2Auth
Transcript Error - C2Client
Frame - C2Control
Event Kind - C2Error
Category - C2Node
Event - C2Node
Response - C2Provider
Event Kind - C2Relay
Failure Code - C2Relay
Route - C2Server
Frame - C2Session
Status - GapKind
- Harness
McpContent Type V1 - Names what shape an opaque harness-MCP payload’s
bodyholds. - Harness
McpReject Reason V1 - Managed
Worktree Cleanup Failure - Managed
Worktree Lease State - Managed
Worktree Retention - Native
Session Catalog Scope - Native
Session Catalog Window - Native
Session External Group Kind - Node
Event - Node
Freshness - Node
Request - Node
Response - Node
Transport State - Path
Encoding - Path
Style - Protocol
Negotiation Error - Provider
Runtime Mode - Session
Task Target V1 - Slim
Session Status - Spawn
Field Provenance - Spawn
Override - Workspace
File Content - Worktree
Service Mode
Constants§
- BUILD_
STAMP - C2_
ACP_ CONTROL_ CAPABILITY - The four ACP control verbs –
ResolveInteraction,SetSessionMode,SetSessionConfigOption,SetSessionModel– gated the same way every other capability-scoped path is: a peer that never negotiated it must never have its requests admitted. - C2_
AGENT_ PROGRESS_ SNAPSHOT_ CAPABILITY - C2_
AGENT_ STREAM_ EVENTS_ CAPABILITY - The outbound agent-content stream –
C2NodeEvent::AgentStream– gated the same wayC2_TERMINAL_FRAME_EVENTS_CAPABILITYgatesC2NodeEvent::TerminalFrame: a peer that never negotiated it must never receive it. - C2_
API_ VERSION - C2_
AUTH_ NONCE_ BYTES - C2_
AUTH_ PROOF_ BYTES - C2_
CHILD_ ENVIRONMENT_ PROFILE_ CAPABILITY - C2_
COMPATIBILITY_ METADATA_ CAPABILITY - C2_
CONTROL_ DETAIL_ CAPABILITY - The sanitized control-event detail –
C2ControlEvent::detail– gated the same wayC2_AGENT_STREAM_EVENTS_CAPABILITYgates the agent stream: a peer that never negotiated it must never receive it. A C2-level capability, not a node one: the node always publishes its full control events and the C2 decides, per connection, what of them crosses. - C2_
DELIVERY_ BUNDLE_ V2_ STAGE_ COMMIT_ CAPABILITY - C2_
GIT_ READ_ CAPABILITY - C2_
HARNESS_ MCP_ READ_ PROXY_ CAPABILITY - C2_
HISTORY_ CONTEXT_ PACK_ CAPABILITY - C2_
HOST_ DIRECTORY_ BROWSE_ CAPABILITY - C2_
MANAGED_ WORKTREE_ LIFECYCLE_ CAPABILITY - C2_
MANAGED_ WORKTREE_ SPAWN_ V2_ CAPABILITY - C2_
NATIVE_ SESSION_ CATALOG_ CAPABILITY - C2_
NATIVE_ SESSION_ CATALOG_ PAGING_ CAPABILITY - C2_
NATIVE_ SESSION_ INDEX_ CAPABILITY - C2_
NATIVE_ SESSION_ PREVIEW_ CAPABILITY - C2_
OPAQUE_ UNIX_ PATH_ CAPABILITY - C2_
PROVIDER_ CONTRACT_ MANIFEST_ CAPABILITY - C2_
PROVIDER_ ID_ OPEN_ CAPABILITY - C2_
PROVIDER_ RUNTIME_ STATUS_ CAPABILITY - C2_
PROVIDER_ SESSION_ REFERENCE_ INDEX_ CAPABILITY - C2_
REPOSITORY_ PATH_ CAPABILITY - C2_
SESSION_ BUNDLE_ MATERIALIZATION_ CAPABILITY - C2_
SESSION_ RECORD_ CONTEXT_ EXPORT_ CAPABILITY - C2_
SESSION_ TASK_ CORRELATION_ CAPABILITY - C2_
SPAWN_ PROFILE_ REVISION_ CAPABILITY - C2_
SPAWN_ SPEC_ DEFAULTS_ OVERRIDES_ CAPABILITY - C2_
STANDALONE_ WORKSPACE_ LIFECYCLE_ CAPABILITY - C2_
TERMINAL_ FRAME_ EVENTS_ CAPABILITY - C2_
WORKSPACE_ ENTRY_ CREATE_ CAPABILITY - C2_
WORKSPACE_ FILE_ READ_ CAPABILITY - C2_
WORKSPACE_ FILE_ WRITE_ CAPABILITY - C2_
WORKTREE_ SELECTION_ CAPABILITY - CAPABILITY_
HOST_ DIRECTORY_ BROWSE_ V1 - Read-only, paged directory browsing using UTF-8 absolute host paths only.
OpaqueHostPath::UnixBytesis outside this capability revision. - DEFAULT_
C2_ API_ LISTEN - MAX_
C2_ AUTH_ COMPATIBILITY_ CAPABILITIES - MAX_
C2_ AUTH_ FRAME_ BYTES - MAX_
C2_ BOUND_ AUTH_ TRANSCRIPT_ BYTES - MAX_
C2_ CLIENT_ FRAME_ BYTES - MAX_
C2_ ENDPOINT_ BYTES - MAX_
C2_ GAPS_ PER_ NODE - MAX_
C2_ HELLO_ FRAME_ BYTES - MAX_
C2_ MANAGED_ SESSIONS_ PER_ NODE - MAX_
C2_ MANAGED_ WORKTREES_ PER_ NODE - MAX_
C2_ NODES - MAX_
C2_ RESPONSE_ BYTES - MAX_
C2_ ROOT_ BYTES - MAX_
C2_ SERVER_ FRAME_ BYTES - MAX_
C2_ SESSIONS_ PER_ NODE - MAX_
C2_ SESSION_ DISPLAY_ NAME_ BYTES - MAX_
C2_ WORKSPACES_ PER_ NODE - NODE_
ACP_ CONTROL_ CAPABILITY - The inbound ACP control verbs –
ResolveInteraction,SetSessionMode,SetSessionConfigOption,SetSessionModel– that answer whatNODE_AGENT_STREAM_EVENTS_CAPABILITYreports (same plan, §5). - NODE_
AGENT_ STREAM_ EVENTS_ CAPABILITY - The outbound content stream –
NodeEvent::AgentStream– mirroringNODE_TERMINAL_FRAME_EVENTS_CAPABILITY’s own subscription/type split rather than folding content into a telemetry vocabulary (docs/gate4agent/plans/gate4agent-acp-control-plane-on-the-wire-2026-09-02.md§3-4). - NODE_
CHILD_ ENVIRONMENT_ PROFILE_ CAPABILITY - NODE_
DELIVERY_ BUNDLE_ V2_ STAGE_ COMMIT_ CAPABILITY - NODE_
HARNESS_ MCP_ READ_ PROXY_ CAPABILITY - NODE_
HISTORY_ CONTEXT_ PACK_ CAPABILITY - NODE_
MANAGED_ WORKTREE_ LIFECYCLE_ CAPABILITY - NODE_
MANAGED_ WORKTREE_ SPAWN_ V2_ CAPABILITY - NODE_
NATIVE_ SESSION_ CATALOG_ CAPABILITY - NODE_
NATIVE_ SESSION_ CATALOG_ PAGING_ CAPABILITY - NODE_
NATIVE_ SESSION_ INDEX_ CAPABILITY - NODE_
NATIVE_ SESSION_ PREVIEW_ CAPABILITY - NODE_
PROVIDER_ ID_ OPEN_ CAPABILITY - NODE_
PROVIDER_ SESSION_ REFERENCE_ INDEX_ CAPABILITY - NODE_
SESSION_ BUNDLE_ MATERIALIZATION_ CAPABILITY - NODE_
SESSION_ RECORD_ CONTEXT_ EXPORT_ CAPABILITY - NODE_
SESSION_ TASK_ CORRELATION_ CAPABILITY - NODE_
SPAWN_ PROFILE_ REVISION_ CAPABILITY - NODE_
SPAWN_ SPEC_ DEFAULTS_ OVERRIDES_ CAPABILITY - NODE_
STANDALONE_ WORKSPACE_ LIFECYCLE_ CAPABILITY - NODE_
TERMINAL_ FRAME_ EVENTS_ CAPABILITY - NODE_
WORKSPACE_ ENTRY_ CREATE_ CAPABILITY - NODE_
WORKTREE_ SELECTION_ CAPABILITY
Functions§
- c2_
auth_ transcript - c2_
bound_ auth_ transcript - control_
telemetry_ detail - The telemetry view of
event, orNonewhen no telemetry derives from it (control-plane bookkeeping such as requests, completions and probes). - provider_
id_ is_ legacy