Wizard onboarding: required inputs, review-and-confirm, clean cancel#125
Merged
Conversation
…ean cancel Polish the `ordo init` experience toward a Claude-Code-style onboarding: - Welcome screen up front: what you'll need (tailnet hostname, Google OAuth client), that Ctrl-C cancels, and that nothing is written until you confirm. - Numbered steps (1/6 … 6/6). - Secure-front-door step is now an explicit gate: set up Tailscale + Google SSO, or skip it — skipping requires confirming you understand the stack then runs unauthenticated. When enabled, hostname / OAuth id / OAuth secret / allowlist are REQUIRED: a blank answer prompts to defer-or-retry (y/n) instead of silently shipping a half-configured gate. Emails are validated + de-duped. - Review step: a summary of every choice with a final Y/n. Decline → nothing written. Ctrl-C / EOF at any prompt → SetupCancelled → "cancelled, nothing written" (exit 130). The confirm gate is the last thing before any file write. - Post-setup offers are Ctrl-C-safe (config already written → just decline). Robustness/cosmetic: - CLI reconfigures stdout/stderr with errors="replace" so a stray non-ASCII char can never crash the wizard on a legacy cp1252 console. - All wizard chrome is ASCII; hardware summary separator ·→| and the generated ordo.yaml header em-dash→- (fixes the mojibake flagged on Windows). New pure validators (hostname_error / parse_emails / invalid_emails) are unit- tested; the interactive flow (full front door / cancel-at-review / skip-SSO / required-blank) was exercised directly via a scripted input funnel. README + operator-guide step lists updated to match. ruff 0.8.6 clean; substrate 281 pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
What
Polishes
ordo initinto a Claude-Code-style onboarding.Robustness / cosmetic
errors="replace"— a stray non-ASCII char can't crash the wizard on a legacy cp1252 console.·→|and the generatedordo.yamlheader em-dash→-(fixes the Windows mojibake).Validation
hostname_error/parse_emails/invalid_emails) unit-tested (+3).ruff==0.8.6whole-repo clean; substrate 281 passed, 4 skipped.interactivebranch + helpers).🤖 Generated with Claude Code