Repository navigation
Implement Milestone 1 operable-shell foundation - #1
Merged
Merged
Conversation
Turn the placeholder crate into the first working slice of the server: - CLI with serve, doctor, and backup subcommands (--data-dir / CONSOLEBOOK_DATA_DIR, local bind by default) - SQLite storage built from one explicit options object; startup verifies foreign keys, WAL, synchronous mode, and busy timeout and fails closed - embedded application-owned migrations; migration 0001 creates the single-row instance identity table - Axum HTTP API with GET /api/health (database round trip, 503 when degraded) and graceful shutdown on SIGINT/SIGTERM - read-only doctor diagnostics: layout, pragmas, migration state, integrity check, identity, backup inventory - validated backups: VACUUM INTO snapshot, integrity-checked as its own database, fsynced, deleted if validation fails - structured logging without record content - integration tests covering invariants, identity stability, health, doctor, and backup round trips - ADR 0003 records the connection-invariant and backup decisions; README updated to describe the real commands Still ahead in Milestone 1: first-run setup codes, administrator accounts and recovery, the embedded SvelteKit shell, and scheduled backup retention.
Match the toolchain used across ConaryLabs projects instead of floating on whatever stable the build host has.
7 tasks
This was referenced Oct 15, 2026
web(deps): two high npm advisories (devalue, source-map-js) and an unpopulated dependency graph
#131
Closed
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.
Turns the placeholder crate into the first working slice of the Milestone 1 operable shell, and pins the toolchain.
What's included
consolebook serve/doctor/backup, with--data-dir/CONSOLEBOOK_DATA_DIR(default./data) and a local-only default bind of127.0.0.1:7770.0001creates the single-row instance identity table.GET /api/health(database round trip, 503 when degraded) and graceful shutdown on SIGINT/SIGTERM.doctor: read-only diagnostics — never creates the database, never migrates. Reports layout, pragma invariants, migration state,integrity_check, instance identity, and backup inventory; exits non-zero on failure.VACUUM INTOsnapshots, validated by opening the snapshot as its own database and requiring a clean integrity check, then fsynced along with the directory. Snapshots that fail validation are deleted rather than left looking usable.Docs
Testing
cargo fmt --check,cargo clippy --all-targets(pedantic, zero warnings),cargo testall clean on 1.98.Deliberately out of scope (next slices of Milestone 1)
First-run setup codes, administrator accounts and recovery, the embedded SvelteKit shell, and scheduled backup retention.