Repository navigation
Deepen Harness settings behind one Setup interaction - #456
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Concentrate installed-Harness selection and all six Model/Effort interactions behind one semantic Setup effect.
Closes #454
Evidence
Before:
registered_order_and_enter_defaults_produce_one_complete_answerfailed at the new interaction withHarness selection not yet implemented.After: all 27 complete Harness interaction tests pass, including defaults, clearing, distinct validation rules, atomic retention and interruption.
All 48 Setup effect tests pass. Existing regressions pass: 18 process-tree tests, 17 terminal/command Setup tests and 8 first-offer tests.
Normal checks:
cargo fmt --checkandcargo clippy --all-targets -- -D warningspass.cargo testpasses: 1222 tests across 39 test binaries, 0 failures.GitHub CI passes on Ubuntu and macOS. Both platform artifacts also pass the release checks.
Test seams
harness::settings::ask: scripted terminal transcripts and semantic results, with isolated executable/catalog stand-ins and controlled PATH.ask_harness_settingseffect: received defaults, complete accepted-result persistence, complete retention and errors before writes.Merge Danger
Door: two-way
An ownership refactor that can be reverted without migrating User config or Credentials.
Blast Radius: Setup
Interactive Setup and the first Run's Setup offer use the deepened Harness interaction.
Unaddressed findings
Standards
src/setup.rs): general testing guidance discourages observing collaborator sequences. Kept because Deepen Harness settings behind one Setup interaction #454 explicitly requires a once-only semantic interaction, recorded defaults and effect-order coverage at this agreed seam (Decisions 6 and 15).src/harness/settings.rs,src/setup/questions.rs): kept these small helpers local to their respective question flows to preserve ownership and the narrow Harness interface; a shared question utility offers limited benefit in this refactor.Spec
None. The independent Spec review reported no findings.
Built with codex · gpt-6.1-sol · xhigh