Repository navigation
Task 004: Remove db-config.json ceremony - #9
Merged
Merged
Conversation
Collaborator
Author
/ponytail-reviewRemoved Lean already. Ship.
|
5 tasks
SQLite is the only supported backend; stop reading/writing db-config.json and branch on a type field that never varies. - Connect directly via Database.sqlitePath - Delete legacy db-config.json on startup - Simplify setup-database flow and test helpers - Remove dbConfig.type branching in jobs and client info
Igloczek
force-pushed
the
task/004-simplify-db-config
branch
from
June 30, 2026 11:44
70ce852 to
eb7a4d1
Compare
Igloczek
added a commit
that referenced
this pull request
Aug 8, 2026
Task 004: Remove db-config.json ceremony
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.
Implements tasks/004-simplify-db-config.md from the ponytail audit backlog.
Goal
Stop persisting a JSON file that always contains
{ "type": "sqlite" }and branch on a field that never varies.Scope
path.join(dataDir, "kuma.db")(or existingDatabase.sqlitePath).readDBConfig,writeDBConfig, andDatabase.dbConfig.typebranching insrc/server/database.ts.db-config.jsonexists, ignore or delete it on startup (document behavior in code comment only).db-config.json.Acceptance criteria
db-config.json.db-config.json.kuma.dbstill open correctly.bun run test:backendpasses (includingschema.test.ts,upgrade.test.ts).bun run buildsucceeds.Depends on
Nothing (do before Task 005).
Verification
Audit reference
Finding #12 —
db-config.jsonmulti-backend config.