Repository navigation
S19: teploy-ship doctor install-readiness checks and restore-readiness comparison - #49
Merged
Merged
Conversation
…s comparison Adds src/install-doctor.ts (pass|fail|unknown checks for Node, state dir writable/space, web port, env presence without values, store URL shape, store connectivity, clock; unknown is never pass; output passes the support RedactionGate) and a read-only 'doctor' command. Adds src/restore-readiness.ts, a pure backup-vs-restored history comparison that reports unverified unless it actually compared. Default behaviour of existing commands is unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VqsBNqvaWezf1DwQrAnVgX
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.
Changes
src/install-doctor.ts: install prerequisite checks (Node version, state dir writable and free space, web port,SHIP_WEB_TOKENand model credential presence without values,NUCLEUS_URLshape, store connectivity, clock sanity/skew). Every check is pass|fail|unknown; unknown is never pass. Verdict is ready only if all pass; not-ready on any fail; incomplete otherwise. Output passes the supportRedactionGate.teploy-ship doctor [--json] [--out f]command (exit 0 only when ready). Additive:args.tsflag entry,cli.tsdispatch. No existing command changes.src/restore-readiness.ts: pure backup-vs-restored history comparison (per-run event count + digest, waiting decisions, fingerprints, missing/extra/changed). Returnsunverifiedunless it actually compared. Not yet exposed as a command; snapshot capture needs a live store.docs/SUPPORT.md: short doctor section.Checks
pnpm run lintclean. Isolatednode --test "dist/**/*.test.js": 2007 tests passed, 0 failed. New: 13 doctor tests, 7 restore-readiness tests.scripts/grader-sensitivity.test.mjsandscripts/*.test.mjs(fixed port 8901 collision between agents; CI runs them).web/untouched.Not verified / still open
🤖 Generated with Claude Code
https://claude.ai/code/session_01VqsBNqvaWezf1DwQrAnVgX
Generated by Claude Code