Skip to content

feat(cli): add 'boi overrides' subcommand + startup-warning test (A-28)#23

Open
mrap wants to merge 1 commit into
mainfrom
boi/SB33F
Open

feat(cli): add 'boi overrides' subcommand + startup-warning test (A-28)#23
mrap wants to merge 1 commit into
mainfrom
boi/SB33F

Conversation

@mrap
Copy link
Copy Markdown
Owner

@mrap mrap commented May 12, 2026

Summary

  • New boi overrides subcommand (list / clear / clear --all) for managing ~/.boi/phases/ override files
  • Cargo test test_phase_override_startup_warning asserts worker emits [WARN] Phase overrides active: when user phase files exist
  • Closes the A-28 phase override reconciliation work (originally tracked as failed specs S0047 / SB33F)

Backstory

Worker SB33F (autonomous BOI run, 2026-05-12) produced this implementation but task-verify failed because cargo test was run on host while the daemon held the worktree (race condition; violates the hex standing order that BOI cargo tests must run in Docker).

The artifact itself passes cleanly when run manually:
```
$ cargo test test_phase_override_startup_warning
test test_phase_override_startup_warning ... ok
```

Salvaged in a separate hex session; verified end-to-end before opening this PR.

Test plan

  • `cargo build --release` clean
  • `cargo test test_phase_override_startup_warning` passes
  • `boi overrides list` / `clear ` / `clear --all` round-trip
  • CI passes
  • Reviewer can repro the manual smoke

🤖 Generated with Claude Code

…8 follow-up)

Salvaged from BOI worker SB33F (2026-05-12), which produced the
implementation but failed task-verify due to cargo-test-on-host race
condition (violates hex standing order: BOI cargo tests must run in
Docker while daemon active).

Adds:
- src/cli/overrides_cmd.rs: new 'boi overrides' subcommand with
  list / clear <name> / clear --all actions targeting ~/.boi/phases/
- src/main.rs: wire Overrides variant + dispatch
- tests/test_phase_override_startup_warning.rs: cargo test asserting
  worker.rs emits "[WARN] Phase overrides active:" when user phase
  files exist
- worker.rs / cli/mod.rs / docs: supporting plumbing + doc note

Verified manually:
- `cargo build --release` clean
- `cargo test test_phase_override_startup_warning` passes
- `boi overrides list/clear` round-trip works

Closes A-28 phase override reconciliation work originally tracked in
S0047 / SB33F.

Co-Authored-By: Claude Opus 4.7 <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.

1 participant