Repository navigation
docs(adr): 0036 daemon state is a SQLite database, and each owner keeps its own tables - #755
Merged
Merged
Conversation
This was referenced Oct 20, 2026
This was referenced Oct 20, 2026
V3RON
added this pull request to stack #782
October 20, 2026 16:13
7 tasks done
…rrows point at it
Contributor
Author
Decision takenThe ADR's spec review (round 1) left four questions open. Each one is decided as the reviewed code in stack #782 already does it, except R5, where that code had a bug.
Each of these is pending the maintainer. Written by an agent. |
Contributor
Author
Review ledger{
"findings": [
{
"id": "R1",
"role": "spec",
"class": "contradicts accepted ADR",
"outcome": "fixed",
"path": "docs/internal/adr/0036-daemon-state-is-a-sqlite-database-whose-tables-each-owner-keeps.md",
"fix": "f3826507"
},
{
"id": "R2",
"role": "spec",
"class": "adr-index 1",
"outcome": "fixed",
"path": "docs/internal/adr/README.md",
"fix": "e53d39c3"
},
{
"id": "R3",
"role": "spec",
"class": "false statement in Supersedes",
"outcome": "fixed",
"path": "docs/internal/adr/0036-daemon-state-is-a-sqlite-database-whose-tables-each-owner-keeps.md",
"fix": "38fd1fb5"
},
{
"id": "R4",
"role": "spec",
"class": "undecided question",
"outcome": "fixed",
"path": "docs/internal/adr/0036-daemon-state-is-a-sqlite-database-whose-tables-each-owner-keeps.md",
"fix": "f3826507"
},
{
"id": "R5",
"role": "spec",
"class": "undecided ordering",
"outcome": "fixed",
"path": "docs/internal/adr/0036-daemon-state-is-a-sqlite-database-whose-tables-each-owner-keeps.md",
"fix": "e53d39c3"
},
{
"id": "R6",
"role": "spec",
"class": "incomplete consequence",
"outcome": "fixed",
"path": "docs/internal/adr/0036-daemon-state-is-a-sqlite-database-whose-tables-each-owner-keeps.md",
"fix": "f3826507"
}
]
}```
_Written by an agent._ |
Contributor
Author
Review notesNot blocking, not verified. Each is one reviewer's claim.
Written by an agent. |
V3RON
marked this pull request as ready for review
October 20, 2026 17:34
V3RON
added a commit
that referenced
this pull request
Oct 20, 2026
Closes #759 ### Status Implement: done (4/4, audit probed 4/4) Review: round 1 + fix-check passed Hardware: n/a Gate: waiting for the stack Next: gate the stack (#755 → #775 → #783 → #784 → #785 → #786) ## Done when - [x] `pnpm test:changed` passes. - [x] `rg -n "workers\.json" src docs --glob '!docs/internal/adr/**'` finds only the gateway's old-file list, its test and the `docs/CLI.md` upgrade section. ## Feature completion (#754) - [x] A worker restarted with fake drivers keeps devices, leases, requests, components and tokens: restart tests in #775 (`src/daemon/main.test.ts`), real tables in #783, tokens in #784. - [x] A gateway restarted keeps tokens and drains: #784 (join token across restart) and the e2e restart test here. - [x] A renew changes one row with 1,000 requests stored: test in #775. - [x] Refusals for each old file, a damaged or newer `state.db`, printed by `simlock status` at once with exit 1: #775, #784, this PR, and #785's e2e (`e2e/start-refusal.test.ts`). - [x] `docs/CLI.md` upgrade and downgrade steps, no live JSON file named: #775's section plus each PR's `rg` Done when line. ## Assumptions none ## Review Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 2 blocking, 2 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes. Rounds: 1. Tokens: 20.4M. Runs: 9. Cost USD: 2.3576. Agent seconds: 1557. Assessment: complete *Written by an agent.*
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.
ADR 0036 for #754: the daemon's state (registry, tokens, drained workers) moves into a per-daemon
state.dbwith real columns. Each owner keeps its own tables, drivers included. Old JSON files, damage and newer versions refuse to start.Accepted — not yet implemented, approved at the end of the #754 spec session (2026-10-20). It stays open at the bottom of the feature's stack and merges with its last task.
Part of #754.
Review
Spec review: 6 blocking, 6 fixed, 1 notes. Code review: skipped. Claims review: skipped.
Rounds: 2. Tokens: 22.5M.
Runs: 8. Cost USD: 3.0736. Agent seconds: 1185.
Assessment: complete
Written by an agent.