You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto-merge skipped this PR because its changes look too small for the issues it closes ( #144): about 0 substantive added line(s), where those issues would normally need at least 20. Blank lines and comment-only lines do not count, and Markdown counts only towards documentation issues.
If the work is complete, a maintainer will review and merge it. Otherwise, please finish the issues before asking for review — points are awarded for the work the issue describes.
This PR now implements #144 in code, replacing the docs-only stub. soroforge doctor runs every preflight check in one pass:
Checks: config valid, WASM artifacts present, each network reachable with a matching passphrase, database reachable and at the latest migration, signer configured, and deployer funded on the default network (or --network).
Output: each check prints PASS, FAIL or SKIP with a one-line fix.
Exit code: non-zero if any check fails. Checks that need something that isn't configured (no DATABASE_URL, no signer) are skipped, not failed. --json emits the checklist.
Reuse: it builds on checkConfig (its WASM half is moved into checkWasmArtifacts, and config check behaves the same), netcheck.Check, the readiness checker and store.Migrator, which gains Latest().
Read-only: it never applies migrations or funds anything.
Docs: the README documents the command, so the stub docs/DOCTOR_PREFLIGHTS.md is removed.
The branch includes your merge and the latest main (ede7c5a). make check (gofmt, vet, full tests) passes locally, including the new fake-backed doctor_test.go tests and a temp-SQLite test that Latest() matches Up().
mayborn005
changed the title
feat(cli): soroforge doctor runs every preflight check at once
docs: define doctor preflight checks
Oct 26, 2026
Correction to my comment above: this PR was merged before those commits were pushed, so main only has the original docs file (c640d30 / 7ba1956). The implementation described above is on the branch but is not in main. I've restored the original title and description so they match what was merged. Sorry for the noise.
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
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
Closes #144
Validation
git diff --check