Skip to content

[Phase 2.5-C] Integration tests for ReactAgent runtime parameters #368

Description

@frankbria

Context

PR #367 (issue #362) added full runtime parameter support to ReactAgent (dry_run, verbose, on_event, debug, output_logger, fix_coordinator). Unit test coverage is solid (60 tests), but end-to-end CLI integration tests are missing.

These tests would exercise the full path from CLI → runtime → ReactAgent, catching wiring issues that unit tests with mocked dependencies can't.

Integration Tests to Add

1. Verbose mode with ReactAgent engine

cf work start <id> --execute --verbose --engine react
  • Verify stdout contains [ReactAgent] prefixed progress messages
  • Verify output logger captures the same messages (for cf work follow)
  • Compare behavior parity with plan-based agent verbose mode

2. Dry-run mode with ReactAgent engine

cf work start <id> --execute --dry-run --engine react
  • Verify no files are created or modified in the workspace
  • Verify [DRY RUN] stub results appear in output
  • Verify read tools (read_file, list_files, search_codebase, run_tests) still execute
  • Verify unknown tools are blocked (fail-safe default)

3. Streaming with cf work follow using ReactAgent

cf work start <id> --execute --engine react &
cf work follow <id>
  • Verify SSE events are emitted during ReactAgent execution
  • Verify output.log is written in real-time via RunOutputLogger
  • Verify stream closes cleanly on task completion

Acceptance Criteria

  • All 3 integration test scenarios pass
  • Tests use real CLI invocation (subprocess or CliRunner) not just unit mocks
  • Tests work with MockProvider (no real LLM calls needed)
  • Tests marked with @pytest.mark.v2

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase-2.5-CPhase C: ReAct Agent Core

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions