Skip to main content

Module protocol

Module protocol 

Source
Expand description

Transport-neutral versioned request and response envelopes. Transport-neutral Glass request and response envelopes.

MCP keeps its JSON-RPC framing, but daemon clients and embedded callers use these envelopes for the operation payload. The envelope is intentionally small: transport-specific framing, streaming, and authentication remain outside this contract.

Structs§

GlassError
Structured failure that can be carried across transports without parsing text.
GlassRequest
Canonical operation request shared by supported transports.
GlassResponse
Canonical operation response shared by supported transports.
MutationLeaseRef
A request-independent mutation lease reference.
RetryGuidance
Bounded recovery guidance attached to every canonical failure.
TaskCompilePayload
Typed payload carried by a task.compile request.
TaskCompileResult
Typed successful result for a task.compile operation.
TaskValidationPayload
Typed payload carried by a task.validate request.
TaskValidationResult
Typed successful result for browser-free Task Protocol validation.
WebIrContinuityPayload
Typed payload carried by a webIr.continuity request.
WebIrContinuityResult
Browser-free Web IR continuity classification for one entity.
WebIrDiffPayload
Typed payload carried by a webIr.diff request.
WebIrDiffResult
Bounded summary result for a browser-free Web IR revision diff.
WebIrDraftPayload
Typed payload carried by a webIr.validate or webIr.inspect request.
WebIrInspectionResult
Bounded summary result for browser-free Web IR inspection.
WebIrValidationResult
Bounded successful result for browser-free Web IR validation.

Enums§

ErrorPhase
Phase in which a public operation stopped.
ProtocolError
Validation failure for the canonical protocol envelope.
RetryClassification
Stable retry classification for agent recovery.

Constants§

GLASS_PROTOCOL_VERSION
Version of the canonical Glass operation envelope.
TASK_COMPILE_OPERATION
Canonical transport operation for browser-free Task Protocol compilation.
TASK_VALIDATE_OPERATION
Canonical transport operation for browser-free Task Protocol validation.
WEB_IR_CONTINUITY_OPERATION
Canonical transport operation for browser-free Web IR continuity checks.
WEB_IR_DIFF_OPERATION
Canonical transport operation for browser-free Web IR revision diffs.
WEB_IR_INSPECT_OPERATION
Canonical transport operation for browser-free Web IR inspection.
WEB_IR_VALIDATE_OPERATION
Canonical transport operation for browser-free Web IR validation.

Functions§

compile_task_request
Decode and compile a task.compile request without browser access.
compile_task_result
Decode and compile a task.compile request into a typed response payload.
validate_task_result
Validate a task.validate request into a typed response payload.
web_ir_continuity_result
Classify one Web IR entity from a canonical request.
web_ir_diff_result
Compute a bounded Web IR diff from a canonical request.
web_ir_inspect_result
Inspect a Web IR draft from a canonical request.
web_ir_validate_result
Validate a Web IR draft from a canonical request.