Expand description
The intelligence endpoint list and per-endpoint credentials.
--intelligence / AGENTD_INTELLIGENCE is an ordered, comma-separated
list (https://gw-a.example,https://gw-b.example), and list order IS
failover priority: eps[0] is the primary. Each element goes through the
HTTPS-only transport resolver — plaintext http:// is admitted for loopback
only — and resolves its own credential by env name. With a single
element the failover and breaker machinery is inert, so a one-endpoint list
behaves exactly like a plain dial.
Per-endpoint credential naming: the default AGENTD_INTELLIGENCE_TOKEN
belongs to endpoint 1, then _2, _3, … 1-indexed by list position. Each
has a …_FILE variant read through crate::sec::secret, which is what
makes credential rotation possible without restarting. The list URI itself
carries no key: the resolved value is held as an opaque String in the
dialer only, never placed in a config or manifest struct, and never logged or
serialized — that is why no Serialize impl may ever be added to a type
holding it.
Structs§
- Endpoint
- A single resolved endpoint: its transport + the per-request HTTP framing + its resolved credential + live health/breaker state.
- Endpoint
List - The ordered endpoint list with the sticky-primary
activecursor.