Expand description
muxspect instances and muxspect --channel <name> <command>: look at another AgentMux
instance on this machine from inside one
(docs/specs/SPEC_MUXSPECT_CROSS_TIER_INSTANCE_INSPECTION_2026_09_02.md §2.3, §2.4).
GET /api/v1/muxspect/instances lists the live instances from backend::instance_registry.
forward_to_channel is a layer on muxspect’s read routes: a request carrying ?channel=<name>
is sent, as it is minus that parameter, to that instance’s own route and its answer returned.
The layer sits on the routes named in routes.rs only. dock/clear and every other write is
never behind it, so no instance can change another’s state through this.
Constants§
- FORWARD_
TIMEOUT 🔒 - How long a forwarded request may take. These are diagnostic reads of a local process: a instance that does not answer in this time is reported, not waited for.
- MAX_
FORWARDED_ 🔒BYTES - The most of a forwarded answer that is passed on.
Functions§
- error_
response 🔒 - forward 🔒
- Send
GET <path>?<query>to the live instance onchannel.livelists the live instances ofdir(the real process table in production; a test passes its own). - forward_
client 🔒 - forward_
timeout 🔒 - How long the forwarded request for
pathmay take:FORWARD_TIMEOUT, except for the one read that samples for a while on purpose (muxspect browsers). - forward_
to_ channel - A layer for muxspect’s read routes. Without
?channel=, or naming this instance’s own channel, the request is served here as always. - handle_
muxspect_ instances GET /api/v1/muxspect/instances: every live AgentMux instance on this machine (the caller’s own is markedself), without their keys.- listing_
body 🔒 - read_
capped 🔒 - The body of
resp, read chunk by chunk so that no more thancapbytes are ever held:Nonewhen it is larger (known from its Content-Length, or found out as it streams in). - relay 🔒
- The other instance’s answer, as it gave it: its status, its content type and its body.
- split_
channel 🔒 - The
channelparameter of a query, and the query without it.Nonewhen the request names no channel (an emptychannel=names none).