Manage Agent Session Fabric
- Treat the adapter as optional and capability-declared; absence never blocks non-terminal operation.
- Require a stable adapter identity and exact project scope.
- Separate
read,attach,execute, andpersistauthority. Permission for one never implies another. - Validate that the adapter declares the requested action before planning it.
- Return a non-executing plan with the required authority, errors, and explicit false execution, attachment, and persistence fields.
- Hand the plan to the normal authorization layer for any real effect. Never derive authority from an adapter, session record, prompt, or process existence.
Use runtime.agent_fleet_controls.plan_terminal_session_action. Completion requires denial without the exact authority, project-scope enforcement, unsupported-capability rejection, and proof that planning performs no process effect.