Skip to content

feat(drivers): iOS and Android device-data tables - #783

Merged
V3RON merged 18 commits into
task/761from
task/757
Oct 20, 2026
Merged

V3RON merged 18 commits into
task/761from
task/757

Conversation

@V3RON

@V3RON V3RON commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Closes #757

Status

Implement: done (6/6, audit probed 6/6) Review: round 1 passed, 0 findings Hardware: n/a Gate: waiting for the stack
Next: stack on #775

Done when

  • pnpm test:changed passes.
  • rg -n "productionDeviceDataTables" src/daemon/main.ts shows it passed where task 1 passed the empty map.

Assumptions

none

Review

Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 0 blocking, 0 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 1. Tokens: 15.6M.
Runs: 7. Cost USD: 2.0671. Agent seconds: 1666.
Assessment: complete

Written by an agent.

@V3RON

V3RON commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Review ledger

Runs: 7. Cost USD: 2.0671. Agent seconds: 1666.
Tokens input 186, output 44802, cache read 3666173, cache write 296237.
- build implementer: claude-sonnet-5-5 608 s $0.4502
- audit implementer: claude-sonnet-5-5 374 s $0.1734
- fix implementer: claude-sonnet-5-5 49 s $0.0518
- review 1 reviewer: claude-sonnet-5-5 307 s $0.1027
- review 1 spec: claude-sonnet-5-5 37 s $0.1291
- review 1 code both: claude-opus-5-5 243 s $1.0228
- review 1 claims: claude-sonnet-5-5 48 s $0.1371
Finding outcomes: {}. Classes: {}.
{"findings": []}

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review October 20, 2026 16:37
@V3RON
V3RON added this pull request to stack #782 October 20, 2026 16:37
@V3RON
V3RON merged commit 020e9a3 into main Oct 20, 2026
26 checks passed
@V3RON
V3RON deleted the task/757 branch October 20, 2026 18:19
V3RON added a commit that referenced this pull request Oct 20, 2026
Closes #758

### Status
Implement: done (5/5, audit probed 22/22) Review: round 2 passed
Hardware: n/a Gate: waiting for the stack
Next: stack sync onto #783 once #775's CI fix lands

## Done when

- [x] `pnpm test:changed` passes.
- [x] `pnpm test:e2e e2e/token-route.test.ts e2e/http-api.test.ts`
passes.
- [x] `rg -n "tokens\.json" src docs --glob '!docs/internal/adr/**'`
finds only the old-file lists, their tests and the `docs/CLI.md` upgrade
section.

## Assumptions

- Assumption: the transaction helper F13 names was not in
`src/ports/sqlite.ts` — I moved `inTransaction` there from
`src/state/open.ts` (state imports it back), the smallest way for
`src/auth` to use it without importing state.
- Assumption: a worker with only a `tokens.json` gets the worker's
existing upgrade step word for word, as the spec says — I added no
token-specific step to it.

## Review

Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 1 blocking, 1
fixed, 0 notes. Claims review: 1 blocking, 1 fixed, 0 notes.
Rounds: 2. Tokens: 17.5M.
Runs: 9. Cost USD: 3.8042. Agent seconds: 2546.
Assessment: complete

*Written by an agent.*
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.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS and Android device data in their own state.db tables

1 participant