Repository navigation
docs(daemon): design and plan for hyperdb-daemon extraction - #385
Open
StefanSteiner wants to merge 4 commits into
Open
StefanSteiner wants to merge 4 commits into
StefanSteiner wants to merge 4 commits into
Conversation
Design spec and implementation plan for moving the shared-hyperd daemon out of hyperdb-mcp into a hyperdb-daemon crate, in phases: measure, engine and control-channel hardening, internal crate move, and a later public acquire() API. The shared engine runs on TCP loopback with a generated SCRAM password and a strict-SCRAM client.
Pre-1.0 clients are unsupported against a 1.0 daemon; the daemon reports a rejected client in STATUS/log naming the upgrade, and the changelog documents the rule.
…rsion and engine_user in Phase S Decide D8 (standalone hyperdb-daemon binary, L1 dropped) and reshape Phase B around a language-neutral contract (command line, record schema, control protocol) with the Rust acquire() API as a layer on top, so users of the Hyper API in C++, Python or Java can share an engine. Phase S gains protocol_version and engine_user in daemon.json so that contract starts from a known baseline. Also reflow a broken line in D5.
Sharing a .hyper file across processes needs a shared engine because the file is locked by the hyperd that opened it. Key each daemon by a required app ID (the MCP is app `mcp`, keeping ~/.hyperdb) instead of a shared default cohort: an app's processes share one engine, apps do not share databases and update independently. Takeover stays lease-aware and only happens between versions of the same app.
This was referenced Nov 26, 2026
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.
Adds the design spec and implementation plan for extracting the shared-engine daemon in
hyperdb-mcp/src/daemon/into ahyperdb-daemoncrate. This PR is docs only: no code changes, and nothing is scheduled yet.docs/superpowers/specs/2026-11-24-hyperdb-daemon-extraction-design.mddocs/superpowers/plans/2026-11-24-hyperdb-daemon-extraction.mdDecisions recorded
hyperdreceives only its SCRAM-SHA-256 verifier, through an owner-only--configfile (authorized_users), and always runs with--strict-settings-mode. Before publishing its record, the daemon checks that a passwordless connection is rejected. TheHYPER_INITIAL_USER_PASSWORDenvironment variable is documented as the fallback.Phases
acquire()API; needs a go/no-go decision first.Open decisions are listed at the end of the spec.
npx markdownlint-cli2reports 0 issues.🤖 Generated with Claude Code