Repository navigation
fix(bootstrap): detect runtime toolchain and auth gaps - #21
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.
Intent
Bring bootstrap detection in line with what Firstmate actually invokes or depends on at runtime: detect pnpm, codeburn, @infisical/cli, Herdr, ripgrep, xz-utils, and the exact pinned ShellCheck 0.11.0 through bin/fm-bootstrap.sh. Detect first, emit an actionable diagnostic, and install only after explicit in-session consent; never add silent installation. Distinguish required dependencies from optional enhancements in each diagnostic so missing feature-only tools do not block an otherwise healthy session. Report codeburn as optional because its absence only disables task-usage snapshots; report Infisical CLI and its environment-local interactive authentication boundary as optional; report inactive Herdr as optional but make it required for a selected Herdr backend, and offer the existing pinned checksum-verifying Herdr installer so absence is discovered during setup rather than dispatch. Treat xz-utils as required only while pinned ShellCheck needs installation or repair and optional when exact ShellCheck is already usable. Detect environment-local GitHub, selected-Claude, and Infisical authentication honestly without automating browser logins or copying credentials across WSL distributions. Declare the NodeSource node_22.x and official GitHub CLI apt repositories while preserving the bootstrap rule against privileged or silent apt-source mutation. Verify executable diagnostics through the public bootstrap interface with each tool absent, using the existing clean Debian evidence as the source of dependency facts. Keep hunkdiff, @openai/codex, and clerk out of scope because Firstmate does not depend on them. Do not run or add Herdr lifecycle commands because Herdr lab authorization is not enabled. Every generated artifact, including risk rationales and fix summaries, must use role-neutral prose with no second person and no captain, user, firstmate, or crewmate role nouns.
What Changed
Risk Assessment
✅ Low: The change is well-bounded and the bootstrap diagnostics, dependency classifications, consent-gated installers, authentication boundaries, documentation, and executable-interface tests consistently implement the stated intent.
Testing
The focused bootstrap suite passed, and detect-only public-interface checks demonstrated required pnpm detection, optional codeburn detection, conditional xz-utils classification around exact ShellCheck 0.11.0, and required Herdr detection only when its backend is selected; the transcript confirms diagnostics were emitted without installation or authentication side effects.
Evidence: Public bootstrap diagnostics transcript
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
Inspectedgit diff 4535ef4b98fd6411e5ba4cab6c6ae1f36dd6d1be..f5c5e239c682c21698a9baf279826426dbe96401 -- bin/fm-bootstrap.sh tests/fm-bootstrap.test.shbash tests/fm-bootstrap.test.sh/tmp/no-mistakes-evidence/01KZAFZEG8H7XVMF17HC0CXZMN/capture-bootstrap-evidence.sh "$PWD" > /tmp/no-mistakes-evidence/01KZAFZEG8H7XVMF17HC0CXZMN/bootstrap-diagnostics.txtVerifiedgit status --shortremained empty after testing✅ **Document** - passed
✅ No issues found.
🔧 **Lint** - 1 issue found → auto-fixed ✅
🔧 Fix: Suppress intentional child-shell fixture expansion warnings
✅ Re-checked - no issues remain.
✅ **Push** - passed
✅ No issues found.
Part of PSY-67