claude-agent-service/tests
Viktor Barzin 33ff0868c3 conversational: add no-tools multi-turn Brain endpoint for portal-assistant
The portal-assistant voice gateway needs a Claude that is conversational, free
(on the cluster subscription, no metered API), and safe to sit behind a public
edge. Add POST /v1/conversational: it drives a new no-tools `conversational`
agent with per-conversation --resume so a voice turn keeps context, and is lean
on purpose — no workspace clone, no tools, and crucially NO
--dangerously-skip-permissions (so even a leaked agent can't execute anything).
This is deliberately NOT /v1/chat/completions, which clones the git-crypt infra
repo and runs a Bash-enabled agent per turn (portal-assistant ADR-0002).

The conversational agent replies in the speaker's language (Bulgarian/English),
short and TTS-friendly. Tests cover the argv builder (new vs resume), the happy
path, multi-turn resume across calls, auth, and failure → 503. Full suite green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 18:38:44 +00:00
..
__init__.py Initial extraction from monorepo 2026-05-07 17:07:12 +00:00
conftest.py afk: add the autonomous issue-implementer loop (SHIPS DISABLED) 2026-06-15 21:15:11 +00:00
test_afk_ci_watcher.py afk: add the autonomous issue-implementer loop (SHIPS DISABLED) 2026-06-15 21:15:11 +00:00
test_afk_dispatch_policy.py afk: wire the T3 adapter to the REAL orchestration contract + fix priority 2026-06-15 22:27:00 +00:00
test_afk_notifier.py afk: add the autonomous issue-implementer loop (SHIPS DISABLED) 2026-06-15 21:15:11 +00:00
test_afk_phase_checklist.py afk: add the autonomous issue-implementer loop (SHIPS DISABLED) 2026-06-15 21:15:11 +00:00
test_afk_poller.py afk: wire the T3 adapter to the REAL orchestration contract + fix priority 2026-06-15 22:27:00 +00:00
test_afk_run_state_machine.py afk: add the autonomous issue-implementer loop (SHIPS DISABLED) 2026-06-15 21:15:11 +00:00
test_afk_t3_client.py afk: wire the T3 adapter to the REAL orchestration contract + fix priority 2026-06-15 22:27:00 +00:00
test_afk_t3_live.py afk: wire the T3 adapter to the REAL orchestration contract + fix priority 2026-06-15 22:27:00 +00:00
test_afk_tracker.py afk: add the autonomous issue-implementer loop (SHIPS DISABLED) 2026-06-15 21:15:11 +00:00
test_afk_watcher.py afk: wire the T3 adapter to the REAL orchestration contract + fix priority 2026-06-15 22:27:00 +00:00
test_breakglass.py breakglass UI v2: attachable sessions (tmux model) + mobile-first redesign 2026-06-14 19:19:03 +00:00
test_concurrency.py parallel execution: replace single-flight lock with bounded semaphore + per-job workspace 2026-06-02 20:57:41 +00:00
test_conversational.py conversational: add no-tools multi-turn Brain endpoint for portal-assistant 2026-06-17 18:38:44 +00:00
test_main.py parallel execution: replace single-flight lock with bounded semaphore + per-job workspace 2026-06-02 20:57:41 +00:00
test_openai_compat.py parallel execution: replace single-flight lock with bounded semaphore + per-job workspace 2026-06-02 20:57:41 +00:00