Skip to content

feat(cli): add --validate alias for --preflight in attractor run#59

Open
mvanhorn wants to merge 3 commits intodanshapiro:mainfrom
mvanhorn:osc/47-validate-preflight-mode
Open

feat(cli): add --validate alias for --preflight in attractor run#59
mvanhorn wants to merge 3 commits intodanshapiro:mainfrom
mvanhorn:osc/47-validate-preflight-mode

Conversation

@mvanhorn
Copy link
Copy Markdown
Contributor

Fixes #47

Adds --validate as a synonym for --preflight/--test-run in the attractor run command. This gives operators the intuitive flag name proposed in the issue while preserving backward compatibility with the existing flags.

Changes

  • Added --validate case to the flag parser in attractorRun() (aliases to same preflightOnly bool)
  • Updated usage text to show --validate|--preflight|--test-run
  • Updated incompatibility error message to list all three flags
  • Added TestAttractorRun_ValidateAlias_Accepted test
  • Updated TestAttractorRun_PreflightRejectsDetach and TestUsage_IncludesPreflightFlags for the new flag

Test plan

  • go build ./cmd/kilroy/ compiles cleanly
  • TestAttractorRun_ValidateAlias_Accepted - verifies --validate triggers preflight-only mode
  • TestAttractorRun_PreflightRejectsDetach - verifies --validate/--preflight/--test-run reject --detach
  • TestUsage_IncludesPreflightFlags - verifies usage text includes --validate

This contribution was developed with AI assistance (Claude Code).

Adds --validate as a synonym for --preflight/--test-run in the
attractor run command, matching the flag name proposed in danshapiro#47.
Updates usage text, error messages, and adds test coverage.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
mvanhorn and others added 2 commits March 9, 2026 20:40
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…i/ paths

- Add gpt-5.3-codex-spark to cliOnlyModelIDs map (fixes TestIsCLIOnlyModel)
- Replace root .ai/verify_errors.log and .ai/test-evidence/latest/ with
  run-scoped .ai/runs/$KILROY_RUN_ID/ paths in demo spec (fixes
  TestReferenceSurfaces_NoLegacyRootAIScratchPaths)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

attractor run: add --validate/--preflight preflight-only mode

1 participant