Add suite selection to agentlab run - #121
Conversation
|
Agent Review Scope: PR #121, Issue families: Declined issue families:
Resolved ask-user decisions:
Unresolved ask-user blockers:
Validation notes:
Terminal condition: completed. Final fresh clean-context review-pass evidence found no unresolved auto-fix or ask-user blockers. PR #121 is ready for integration-owner review; merge, GitHub issue #120 closure, and branch deletion remain outside this workflow. |
|
Agent Review Scope: PR #121, Issue families: Declined issue families:
Resolved ask-user decisions:
Unresolved ask-user blockers:
Validation notes:
Terminal condition: completed for updated head |
Previously,
agentlab runaccepted exactly one--task, so running a suite required external shell loops. That pushed task discovery, ordering, per-task status, and aggregate failure reporting outside the CLI.That shape made repeated suite pilots more error-prone because users had to recreate orchestration details around the evaluation harness each time.
This PR adds
--suite <path>as a mutually exclusive alternative to--task. Suite runs discover task bundles with the existing task discovery helpers, execute discovered tasks sequentially in deterministic order, reuse the same trial configuration for each task, print per-task summaries, and return a nonzero aggregate status when any suite task fails. It also adds--dry-runso users can resolve a task or suite and inspect what would run without starting trials.GitHub issue #120 remains open for integration-owner landing and closure.
Readiness evidence: #120
Readiness verdict: Ready to Implement
Validation:
python3 -m unittest tests.test_cli.CliOutputTest.test_run_parser_accepts_jobs tests.test_cli.CliOutputTest.test_run_parser_accepts_suite tests.test_cli.CliOutputTest.test_run_parser_rejects_task_and_suite_together tests.test_cli.CliOutputTest.test_handle_run_preserves_cli_summary_from_trial_execution tests.test_cli.CliOutputTest.test_handle_run_executes_suite_tasks_sequentially tests.test_cli.CliOutputTest.test_handle_run_reports_suite_no_matches tests.test_cli.CliOutputTest.test_handle_run_returns_nonzero_for_suite_trial_failurespython3 -m unittest tests.test_cli.CliOutputTest.test_run_parser_accepts_dry_run tests.test_cli.CliOutputTest.test_handle_run_dry_run_resolves_task_without_executing_trials tests.test_cli.CliOutputTest.test_handle_run_dry_run_resolves_suite_without_executing_trialspython3 -m unittest tests.test_clipython3 -m unittest tests.test_tasks tests.test_trial_executionpython3 -m unittest tests.test_cli tests.test_tasks tests.test_trial_executionpython3 -m agentlab run --agent codex --suite tasks/starter --dry-run --trials 1 --jobs 1git diff --check