test(daemon): add default_agent_args unit tests for pi/zot harness #200

Merged
clawdie merged 1 commit from feat/pi-autospawn-tests into main 2026-06-25 23:52:53 +02:00

1 commit

Author SHA1 Message Date
48737e0c8a test(daemon): add default_agent_args unit tests for pi/zot harness
Some checks are pending
CI / rust (pull_request) Waiting to run
CI / markdown (pull_request) Waiting to run
CI / port (pull_request) Waiting to run
CI / agent-jail-pkgs (pull_request) Waiting to run
Three unit tests for the autospawn contract function that determines
whether a spawned agent gets rpc-args (zot) or self-driving JSON args
(pi / everything else):

- default_agent_args_zot_gets_rpc — basename 'zot' → ["rpc"]
- default_agent_args_pi_gets_mode_json — basename 'pi' → ["--mode","json"]
- default_agent_args_unknown_gets_mode_json — safe default for
  unknown harnesses (sample-pi-agent.py, colibri-test-agent)

Also covers path-prefixed variants (/usr/local/bin/zot, /usr/local/bin/pi)
to verify basename extraction works through the spawner pipeline.

This closes the untested gap: if someone adds a third harness or changes
the basename check, these tests catch the pi-path regression before it
reaches the operator who flips from zot to pi.

workspace green (0 failures).
2026-06-25 23:30:50 +02:00