Skip to main content

Module inspect

Module inspect 

Source
Expand description

The session inspector (createSessionControl().inspect, session-control-provider.ts): the read-only host requests behind RPC inspect, /agents, /memory why|list, /skills, /experiments, /goals, /progress and the Claude Code watch views. A request outside INSPECTION_REQUESTS is refused before it reaches the runtime, so inspecting never runs a search, starts work or changes state. Allowed requests go to the session’s host stack as the root lane’s requests (the worker’s host.handle(request, payload)), outside any cell.

Constants§

INSPECTION_REQUESTS
Read-only host requests the inspector may issue (INSPECTION_REQUESTS of session-control.ts, without grants.list: there is no grant system). None of them runs a search or starts work.
VIEWER_INSPECTIONS
The inspections ultron claude’s watch viewer may make through its control socket (READ_ONLY_INSPECTIONS of claude/mcp-server.ts): the INSPECTION_REQUESTS the rlm-views poller sends, plus async.pending and usage.report.

Functions§

inspect
inspect(request, payload): refuse anything but an inspection request, then ask runtime (none: the session has no Ultron runtime). A null payload is an empty one; any other non-object is refused.