pub fn identified_clean_exit_agent_spec(
fixture_root: &Path,
started_marker: &Path,
release_signal: &Path,
session_id: &str,
) -> Result<AgentSpec, ControlledExitFixtureError>Expand description
Combines controlled_clean_exit_agent_spec’s deterministic
marker/release/exit-0 handshake with an early SessionStart Hook-shaped
post carrying session_id, originally so the session established a
verified ProviderSessionIdentity (provider_session: Some(_)) before it
waits for release and exits cleanly.
Lifecycle hooks are retired (owner ruling 2026-09-25): there is no hook
ingress listening anywhere anymore, so the script’s post to
$env:GATE4AGENT_HOOK_URL no longer reaches anything and this fixture no
longer establishes a verified provider session identity by itself. Kept
for its marker/release/exit-0 handshake shape; callers relying on the
identity side of this fixture need an ACP-sourced replacement.