Integration tests for agentd pi adapter

t-539.7·WorkTask·
·
·
Parent:t-539·Created2 weeks ago·Updated2 weeks ago

Description

Edit

Integration tests for agentd pi adapter end-to-end flow.

Test scenarios: 1. Spawn agent → verify running → wait for completion → verify status 2. Spawn agent → send message mid-task → verify received 3. Spawn agent → stop → verify stopped status 4. Spawn multiple agents → verify parallel execution 5. Agent crash → verify failed status and webhook 6. Webhook delivery → verify POST received

Implementation:

  • Use tasty for test framework
  • Spawn real agentd daemon on test port
  • Use mock pi or simple echo agent for fast tests
  • Test webhook with local HTTP server

Can be run with: bild --test Omni/Agentd/Daemon.hs

Timeline (4)

🔄[human]Open → InProgress2 weeks ago
🔄[human]InProgress → Done2 weeks ago
💬[human]2 weeks ago

Added integration tests in Omni/Agentd/Daemon.hs using mock pi script + webhook server. Tests cover spawn/webhooks, send message summary update, worktree creation/cleanup, and failure status. typecheck.sh Omni/Agentd/Daemon.hs passes.