Available on crate feature
computer-use only.Expand description
camelCase wire contracts for computer-use-mcp.
These types round-trip the JSON payloads shared with the TypeScript runtime
and enforce disclosure-safe invariants on deserialization (digest-only
postconditions, value-free sensitivity evidence, bounded approval scopes).
They carry no desktop-actuation logic — the computer-use-mcp server remains
authoritative for policy, identity, leases, and idempotency.
The submodules group related contracts:
action— action classification, resource context, provenance, postconditions, and theActionEnvelopetarget— target evidence and value-free sensitivity signalsapproval— disclosure-safeApprovalGrantscopesreceipt— capabilities, policy decisions, previews, and receiptslease— one-writer control leases and target reservationssession— session lifecycle, events, follow-ups, and deletion resultssafety— the versioned cross-runtime safety corpus
Modules§
- action
- Action classification, resource context, provenance, postconditions, and the
immutable
ActionEnvelopeproposed by the graph and enforced by the runtime. - approval
- Disclosure-safe approval grants returned by the runtime approval boundary.
- lease
- One-writer control leases and non-authoritative target reservations.
- receipt
- Capability, policy, preview, and execution-receipt contracts.
- safety
- Versioned cross-runtime deterministic safety corpus shared with the TypeScript fake-desktop harness.
- session
- Session lifecycle, event, follow-up, and deletion contracts.
- target
- Target evidence and value-free accessibility sensitivity contracts.
Structs§
- Action
Envelope - Immutable action proposed by the graph and enforced by the runtime.
- Action
Preview - Result of
preview_actionused for deterministic graph routing. - Action
Provenance - Provenance describing whether an action derives from untrusted instructions.
- Action
Resource Context - Optional resource identifiers describing what an action touches.
- Approval
Grant - Read-only, disclosure-safe authority returned by the runtime approval boundary.
- Bounds
- Axis-aligned bounding box in display coordinates.
- Control
Lease - One-writer desktop control lease.
- Execution
Capability - A verified execution capability advertised by the runtime.
- Execution
Receipt - Idempotency receipt returned by
execute_action. - Lease
Boundaries - App/window/display boundaries restricting a
ControlLease. - Policy
Decision - A policy decision for a previewed action.
- Postcondition
Evidence - A single postcondition and whether it was satisfied.
- Runtime
Session - A runtime session and its current lifecycle state.
- Safety
Corpus - Versioned cross-runtime deterministic safety corpus.
- Safety
Expectation - Expected effects, restores, and status for a
SafetyScenario. - Safety
Scenario - A single deterministic safety scenario and its expected outcome.
- Session
Completion Evidence - Evidence describing how a session reached completion.
- Session
Deletion Result - Principal-bound result of deleting one terminal runtime session’s durable data.
- Session
Event - Stable supervisor event used for ADK/runtime trace correlation.
- Session
Follow Up - Principal-owned, monotonic steering instruction consumed by an ADK graph.
- Session
Follow UpPage - A page of follow-ups plus the cursor for the next page.
- Target
Evidence - Evidence binding an action to a fresh desktop observation.
- Target
Reservation - Non-authoritative, expiring planner intent for multi-agent conflict checks.
- Target
Reservation Scope - Application/window scope of a
TargetReservation. - Target
Sensitivity Evidence - Value-free native accessibility evidence used for action risk and revalidation.
Enums§
- Action
Class - Operation-aware action class used by authorization and policy.
- Action
Postcondition - Digest-only expected state independently verified by computer-use-mcp.
- Approval
Grant Scope - Scope of an
ApprovalGrant. - Execution
Mode - Enforced execution mode selected for an action.
- Receipt
Status - Terminal status of an execution receipt.
- Target
Sensitivity Assessment - Conclusion of an accessibility-based target sensitivity check.
- Target
Sensitivity Signal - A single value-free signal contributing to a sensitivity assessment.
- Target
Sensitivity Source - Source of a
TargetSensitivityEvidenceassessment.