AgentSessionManager.Policy.Runtime (AgentSessionManager v0.8.0)

Copy Markdown View Source

Mutable per-run policy state for real-time enforcement decisions.

Runtime decisions can request either immediate cancellation (cancel?) or an approval signal (request_approval?) depending on policy action.

Summary

Functions

Returns a specification to start this module under a supervisor.

Types

decision()

@type decision() :: %{
  violations: [AgentSessionManager.Policy.Evaluator.violation()],
  cancel?: boolean(),
  request_approval?: boolean()
}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

observe_event(server, event)

@spec observe_event(GenServer.server(), map()) :: {:ok, decision()}

start_link(opts)

@spec start_link(keyword()) :: GenServer.on_start()

status(server)

@spec status(GenServer.server()) :: map()