Roberto Musso
d8add7e8cb
feat(local-agent-v2): step 4 — journey produces structured AgentConfig JSON
Replace freeform prompt_template output with validated AgentConfig JSON:
- agent_setup.py: new system prompt (journey_system_v2), AGENT_CONFIG_START/END
markers, _extract_agent_config() with Pydantic validation, updated handlers
returning agent_config key; import AgentConfig from schemas
- tests/test_journey_v2.py: 6 unit tests + 5 parametrized LLM eval cases
following test_agent_runner_v2.py pattern; _run_journey uses
set_client_executor/clear_client_executor mirroring device_ws
- tests/fixtures/journey_v2/: cases.yaml + email_action.html + email_info.html
- tests/conftest.py: add --journey-dir CLI option; remove S3/plugin fixtures
(cleanup from microservices migration, already present in working tree)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>