Skip to main content

Crate gent_daemon

Crate gent_daemon 

Source
Expand description

Native daemon with local agent RPC and encrypted configuration/message sync.

Modules§

backend
The two release channels share a hosted authority. Persist its stable origin in identity records and resolve only the network destination for each role.
config
configuration_log
Ordered configuration transport. No network operation holds the Store lock. Migration activation and trusted joining remain separate control-plane work.
encrypted
Native MLS persistence. Configuration authority can share the live RPC store; encrypted agent-message delivery and remote transport remain separate work.
entitlements
Bounded offline access. Only the hosted account authority signs leases.
file_objects
Trusted endpoint storage for immutable encrypted files. Agent bindings and permission checks live in store::files; the dispatcher moves only ciphertext.
file_transport
Ciphertext object transport for trusted endpoint code. Service acknowledgments are availability hints, never agent permission or delivery receipts. The caller must bind objects/deadlines to authorized messages and authenticate downloaded bytes with the private FileGrant before exposing plaintext.
hosted
A web node’s local socket carries scoped RPCs to its native hosting daemon. It owns no replicated store, sync loop, notification socket or updater.
invitation_transport
Native invitation mailbox transport. The caller supplies an independently trusted signed offer; account-service responses cannot supply that trust. This layer never advances Noise state. Retries send the same cached envelope.
messages
Private node-to-node wire records. Only a verified MLS stream authenticates the hosting node; labels and agent IDs supplied by a model never do.
pairing
Node bootstrap over a separately authenticated private channel (currently SSH). No relay is allowed to supply these snapshots, requests, or grants in plaintext.
recovery
Activation boundary for offline recovery material. Marker contents are informational; any directory entry at the marker path keeps state offline.
release_channel
Read the last accepted channel with or without a running daemon.
replica
Durable, compare-and-swap storage for an enrolled cluster’s verified authority. This is not yet used by the local-only RPC store or connected to a relay.
shutdown
Register process signals at the supervisor that owns shutdown ordering.
store
sync
Automatic encrypted configuration and agent-record transport over an opaque relay. Relay transport credentials authorize storage, never cluster key authority.

Structs§

DaemonLock
Ownership acquired before update recovery or opening the node database.

Functions§

receive_file
request
run
run_locked
run_locked_until
Run until the caller requests shutdown, without installing signal handlers. Supervisors use this to drain dependent services before stopping native RPC.
run_until
A cooperative update stops accepting new RPCs, drains accepted requests, and waits for in-progress database transactions before releasing ownership.