Skip to content

[P2][bug] database create never creates the DB file (UI + CLI); daemon routing wedges; registry status wrong #1675

Closed

Description

@mstomar125

Summary

Creating a new database is broken at the daemon level (both the UI switcher and the CLI): database create reports success and registers the DB in ~/.nodespace/databases.toml, but the DB file is never created → frontend status='missing' (red ⚠️ TriangleAlert in database-switcher.svelte), switcher wedged, and the daemon's query routing stops answering (node query rc=1) after the failed create/switch — while the daemon process stays alive (NOT crash-looping). No create/open lines appear in the daemon log at the creation timestamp. Validation round-1 (2026-07-16), core 330799b2.

Also: database list reports the active Default DB as status=closed — a registry-status defect (same class as closed #1648).

Fix direction

  • Daemon: actually create/open the DB file on create before registering it in databases.toml; roll back the registration on failure.
  • Unwedge routing after a failed create (don't leave the daemon serving a missing active DB).
  • Fix database list status reporting for the active DB.

Impact

Blocked B1 (#1665 consent validation — no way to reach a fresh sync-off DB) and B2's proper two-DB A/B. Relates #1644, #1648 (closed), ADR-053.

Evidence

Validation reports val-B1-FAIL.md (primary finding) + val-B2-FAIL.md (CLI confirmation) (round-1 pack, 2026-07-16).

Activity

  1. self-assigned this
    on Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions