Skip to main content

Crate gate4agent_testkit

Crate gate4agent_testkit 

Source
Expand description

Controlled, authentication-free provider fixtures for integration tests.

Enums§

ControlledExitFixtureError

Constants§

ACP_FIXTURE_ID
CLEAN_EXIT_FIXTURE_ID
CONTROL_FIXTURE_ID
GROK_ACP_FIXTURE_ID
Deliberately equal to the real catalog’s grok agent ID — see grok_acp_agent_spec for why.
HOOK_POSTING_FIXTURE_ID
IDENTIFIED_CLEAN_EXIT_FIXTURE_ID
MONITORING_HOOK_FIXTURE_ID
MONITORING_PERMISSION_INPUT_CANARY
MONITORING_PROMPT_CANARY
MONITORING_PROVIDER_SESSION_CANARY
MONITORING_SUBAGENT_DESCRIPTION_CANARY
MONITORING_SUBAGENT_ID_CANARY
MONITORING_TOOL_INPUT_CANARY
MONITORING_TOOL_OUTPUT_CANARY
ONE_SHOT_FIXTURE_ID
PIPE_FIXTURE_ID
PTY_PROVIDER_FIXTURE_ID

Functions§

acp_agent_spec
controlled_clean_exit_agent_spec
exiting_agent_spec
grok_acp_agent_spec
Grok registered over ACP against the same synthetic peer as acp_agent_spec, but bound to the real grok adapter ID (agent ID equal to GROK_ACP_FIXTURE_ID, i.e. the catalog’s own grok agent ID).
hook_posting_agent_spec
A PTY fixture whose script posts a synthetic hook payload to $env:GATE4AGENT_HOOK_URL. Lifecycle hooks are retired (owner ruling 2026-09-25): nothing sets that env var and nothing listens on it anymore, so the post is inert. Kept as a plain PTY fixture for callers that only need its launch shape, not a working hook post.
identified_clean_exit_agent_spec
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.
interactive_agent_spec
monitoring_hook_agent_spec
A PTY fixture whose script posts a full ordered sequence of synthetic hook payloads to $env:GATE4AGENT_HOOK_URL. Lifecycle hooks are retired (owner ruling 2026-09-25): nothing sets that env var and nothing listens on it anymore, so the posts are inert and this fixture no longer declares a hook adapter. Kept as a plain PTY fixture for callers that only need its launch shape, not a working hook post.
one_shot_agent_spec
pipe_agent_spec
pty_provider_agent_spec
require_windows_headless_supervisor_for_test
Refuse to run Windows PTY integration code outside the bounded supervisor.
suppress_windows_fault_dialogs_for_test
Prevent automated Windows fault paths from opening modal UI.