Skip to main content

Crate gent_protocol

Crate gent_protocol 

Source
Expand description

Portable identities, local RPC types, and endpoint permission semantics.

Modules§

administration
Scoped permission administration. Grants never confer discovery or further delegation. Endpoints must authenticate the administrator and peer visibility.
babysitter
Host attribution for ordinary conversation recovery.
configuration_log
Public ordering metadata. Configuration, node permissions, and encryption keys belong only inside ciphertext, never in this protocol’s headers.
dashboard
Declarative, chat-owned dashboards. Values contain no executable markup.
directory
Display metadata and deterministic, permission-filtered name resolution.
file_objects
Public ciphertext-storage envelopes. Never put file names, media types, plaintext hashes, agent IDs, or decryption keys in these records.
history
Historical provenance at trusted endpoints. These records grant no live authority.
hosted_mcp
Bounded HTTP messages for an outbound hosted MCP connection. This transport carries plaintext at the hosted endpoint; it is not the encrypted node relay.
notifications
Account-scoped events shared by desktop and future delivery clients.
owner_transfer
Local-owner RPC only. Agents cannot issue signing-owner transfers.
permissions
Effective policy gates shared with message authorization. Rule traces are for the local owner only; agent tools must first verify peer visibility.
service
Account administration only. These records convey no cluster key authority.
stats
Read models for the owner-facing Gent statistics command and Desktop tab.
transport_batch
Versioned, bounded framing of opaque ordered packets. This envelope grants no authority: endpoints still authenticate every packet and its position.
transport_exchange
Bounded, versioned multiplexing of the existing idempotent mailbox operations.
transport_sweep
One conditional read for the incoming mailboxes selected by a repair sweep.
transport_watch
Availability hints only. Neither subscription nor notification proves receipt.
transport_wss
A targeted envelope around the compact peer session. On ingress peer is the destination. The relay replaces it with the authenticated source on egress.
wake
Local host-input dispatch evidence, separate from message receipts and work.
web_failover
Native carrier admission and checkpoint transport for hosted web nodes. Checkpoints contain web state only. They never contain native node keys.
work
Local reports about host execution. These are not execution grants or proof that external side effects happened exactly once.

Structs§

Agent
FileDescriptor
Chat-visible attachment metadata. Decryption keys are a separate private wire type and must never be serialized into a chat RPC or MCP response.
FilePart
Message
Policy
RelayAttachment
RelayGrant
RelayMessage
Authenticated relay context inside the encrypted message, never inferred from text. Relay access follows messaging policy, not asserted human authorship.
Rule

Enums§

AgentOp
ConfigurationEdit
Effect
InvitationOp
OwnerOp
PairingOp
Permission
RelayMessageKind
RelayResponseKind
RelaySecurityMode
ReleaseChannel
Request
Response
Selector

Constants§

EXCHANGE_TTL_SECONDS
MAX_EXCHANGE_MESSAGES
MAX_FILE_BYTES
MAX_FRAME_BYTES
MAX_REGISTRATION_GENERATION
MAX_RELAY_GRANT_LIFETIME
MAX_TEXT_BYTES