Skip to main content

Module supervisor

Module supervisor 

Source
Expand description

Agent supervisor for process lifecycle management.

The AgentSupervisor manages the full lifecycle of kernel-managed agents: spawn, stop, restart, inspect, and watch. It wraps the existing AgentLoop spawn mechanism without replacing it, adding capability enforcement, resource tracking, and process table integration.

Structs§

AgentSupervisor
Manages the lifecycle of kernel-managed agent processes.
EnclaveConfig
Placeholder configuration for TEE enclaves (D14, C8).
RestartBudget
Restart budget: max N restarts within M seconds.
RestartTracker
Restart state tracking per supervised agent.
SpawnRequest
Request to spawn a new supervised agent process.
SpawnResult
Result of a successful agent spawn.

Enums§

ResourceCheckResult
Result of a resource limit check.
RestartStrategy
Supervisor restart strategy (Erlang-inspired).
SpawnBackend
Execution backend for spawning an agent process.

Functions§

check_resource_usage
Check resource usage against limits and return the worst result.