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
Owner

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).

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).
clawdie added 1 commit 2026-06-25 23:52:40 +02:00
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
48737e0c8a
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).
clawdie merged commit 5578de0abb into main 2026-06-25 23:52:53 +02:00
clawdie deleted branch feat/pi-autospawn-tests 2026-06-25 23:52:54 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: clawdie/colibri#200
No description provided.