Train AM: storage split (HDD/SSD), safe storage startup, idle server sleeps #647

Closed
kayg wants to merge 0 commits from train/2026-10-20am into dev
Owner

Train AM ran the full suite: fmt, clippy, workspace tests, the build, svelte-check, and every Playwright project in parallel shards.

Results: cr1440 298, cr390 233+197, wk1440 136+162, wk390 141+180, small 20: all passed. wk390 shard 3/3 timed out on every test that used the shard's shared server (its own-server signout tests passed) while the host was saturated; rerun alone at the same head 7f9ceae: 161 passed, 0 failed.

Contents:

  • #642 Storage split: user files (Home) and app state (databases, indexes, history, caches) in separate roots (--data, --state); the default stays one root. Typing and save acks never wait on the HDD. Startup refuses a missing Home, missing state, or a mismatched Home/state pairing; new storage only with --create; deliberate moves use the confirmed local storage re-pair. Single-root installs upgrade with no manual step. AL's auth.db and invite key live in state; quota counts the Home only. ADR 0062.
  • #646 An idle server sleeps: list reconciliation waits on a notification instead of a 100 ms loop (idle wakeups 19.6/s to 0.00/s at 10k notes).
  • Restore replay now refreshes list metadata through the room (a note restored during a metadata failure reappears without a restart), with a regression test.
    Reviews: storage split review (3 P1) and re-audit (1 P1, 1 P2), all fixed; idle fix reviewed by the coordinator. 650 workspace tests on the combined branches.

🤖 Generated with Claude Code

https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk

Train AM ran the full suite: fmt, clippy, workspace tests, the build, svelte-check, and every Playwright project in parallel shards. Results: cr1440 298, cr390 233+197, wk1440 136+162, wk390 141+180, small 20: all passed. wk390 shard 3/3 timed out on every test that used the shard's shared server (its own-server signout tests passed) while the host was saturated; rerun alone at the same head 7f9ceae: 161 passed, 0 failed. Contents: - #642 Storage split: user files (Home) and app state (databases, indexes, history, caches) in separate roots (`--data`, `--state`); the default stays one root. Typing and save acks never wait on the HDD. Startup refuses a missing Home, missing state, or a mismatched Home/state pairing; new storage only with `--create`; deliberate moves use the confirmed local `storage re-pair`. Single-root installs upgrade with no manual step. AL's auth.db and invite key live in state; quota counts the Home only. ADR 0062. - #646 An idle server sleeps: list reconciliation waits on a notification instead of a 100 ms loop (idle wakeups 19.6/s to 0.00/s at 10k notes). - Restore replay now refreshes list metadata through the room (a note restored during a metadata failure reappears without a restart), with a regression test. Reviews: storage split review (3 P1) and re-audit (1 P1, 1 P2), all fixed; idle fix reviewed by the coordinator. 650 workspace tests on the combined branches. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
kayg added 19 commits 2026-10-20 17:56:48 +00:00
Keep Homes on HDD and durable history, indexes and caches on SSD. Let room typing continue during atomic file writes and measure both acknowledgement and file durability on the split layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Document the existing long-path socket fallback and retain both storage roots when suggesting a cleanup undo command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Check the mounted sources as well as filesystem and rotational flags so an unmounted HDD path cannot fall back to the SSD root filesystem.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Reserve disjoint live, restore and permanent-delete samples for the requested run count. Expand sample manifests while preserving fixture file bytes, reject insufficient fixtures before timing, and cover the previous run-three collision.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Correct stale note-open, first-page and idle-memory labels and include the existing search budgets. The budget JSON and historical SSD measurements are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Retain the original all-SSD measurement table verbatim while updating the current budget table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Route scan-state.tsv through the Home metadata directory so split storage does not leave a derived scan cache on HDD. Verify the snapshot exists under state and never under the user Home.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Keep browser harness app state on SSD per fixture size and preserve scenario failures in the gate exit status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Train AM: an idle server sleeps (#646)
Some checks failed
CI / web (pull_request) Failing after 14s
CI / server (pull_request) Successful in 35s
CI / rust (pull_request) Successful in 6m42s
7f9ceaef16
Author
Owner

This PR's commits are on dev (landed). Forgejo kept it open and its merge endpoint answers 405, so it is closed by hand.

This PR's commits are on dev (landed). Forgejo kept it open and its merge endpoint answers 405, so it is closed by hand.
kayg closed this pull request 2026-10-21 11:32:30 +00:00
Some checks failed
CI / web (pull_request) Failing after 14s
CI / server (pull_request) Successful in 35s
CI / rust (pull_request) Successful in 6m42s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!647
No description provided.