pub struct AgentEntry {
pub agent_id: String,
pub local_url: String,
pub block_id: String,
pub pid: u32,
pub updated_at: u64,
pub auth_key: String,
pub channel: String,
pub registration_nonce: u64,
pub jekt_public_key: String,
pub uid: String,
pub uid_public_key: String,
}Expand description
One entry per registered agent in the shared data dir.
Fields§
§agent_id: String§local_url: StringLocal HTTP URL of the owning AgentMux instance (e.g. http://127.0.0.1:PORT).
block_id: String§pid: u32OS PID of the owning agentmux-srv process.
updated_at: u64Unix milliseconds of last update.
auth_key: StringPer-launch auth key of the owning instance. Required by peers
performing cross-instance HTTP forward of /agentmux/reactive/inject
after the route moved under auth_middleware. Optional in the
struct (serde default) so older on-disk entries still deserialize;
a missing or empty value means a forward to this entry will be
rejected by the peer’s auth layer (graceful — falls back to cloud
muxbus).
channel: StringThe writing instance’s channel id (AGENTMUX_CHANNEL, default
“stable”). Empty for entries in the per-channel registry (where a
channel tag is redundant — the whole file is already channel-
scoped by its directory); populated for entries in the host-global
shared registry (§ below), where multiple channels’ entries for
the same agent name coexist and need distinguishing. MuxBus Tier 2b
same-host cross-channel delivery, issue #1916.
(This previously cited a SPEC_MUXBUS_CROSS_CHANNEL_DELIVERY spec dated
2026-07-02 that has never existed in any commit — check-spec-citations
flags it the moment this file is touched. Repointed at the issue rather
than at a plausible-looking neighbour, since the similarly-named
duplicate-delivery spec is a different document about duplicate
suppression, not this registry’s shape. registry/paths.rs carries the
same dead pointer and is deliberately left alone here: it is unchanged
by this PR so the gate does not see it, and widening a security PR to
sweep unrelated files is its own risk. Worth a follow-up.)
registration_nonce: u64Process-wide unique nonce of the persistent-controller spawn this
entry was written for; 0 = not recorded (HTTP register handler,
PTY shell auto-register, pre-existing entries). Real nonces are
always ≥ 1, drawn from a single srv-wide counter — NOT the
controller-local spawn generation, which restarts for a
replacement controller and could collide across controller
instances (codex P1 on PR #2500). Lets an exit-handler’s cleanup
compare-and-remove (remove_if_nonce) instead of deleting a
fallback respawn’s fresh entry (issue #2363).
jekt_public_key: StringBase64 Ed25519 public key for this agent, for cross-channel jekt
signature verification —
docs/specs/SPEC_JEKT_CROSS_CHANNEL_TRUST_2026_09_02.md §D1.
The public half only. That is what makes publishing it here safe, and is the whole reason this tier uses the agent’s asymmetric LAN keypair rather than its symmetric host-tier HMAC key: a shared file containing HMAC secrets would let every channel on the machine mint signatures for every agent (spec §5).
Empty for entries written before this shipped, and for an agent whose
LAN keypair has not been minted yet. An empty value means “cannot
check,” never “failed the check” — the verifier must map it to
None, not Some(false), or every pre-upgrade sender on a
mixed-version machine gets escalated (spec §6).
uid: StringIdentity M4d-5 (SPEC_AGENT_IDENTITY_CARRIED_NOT_DERIVED_2026_09_23.md
§6.5.10): the registered block’s agent UID, and that UID’s own public
key (M4d-2), published beside the name-keyed jekt_public_key, which
is unchanged so v1 verification is the same for every peer. M4d-6
verifies v2 signatures (source_uid) against it, by UID. Empty for an
entry written before this shipped or for a block with no agent row;
like jekt_public_key, empty means “cannot check”.
uid_public_key: StringTrait Implementations§
Source§impl Clone for AgentEntry
impl Clone for AgentEntry
Source§fn clone(&self) -> AgentEntry
fn clone(&self) -> AgentEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentEntry
impl Debug for AgentEntry
Source§impl<'de> Deserialize<'de> for AgentEntry
impl<'de> Deserialize<'de> for AgentEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for AgentEntry
impl RefUnwindSafe for AgentEntry
impl Send for AgentEntry
impl Sync for AgentEntry
impl Unpin for AgentEntry
impl UnsafeUnpin for AgentEntry
impl UnwindSafe for AgentEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more