Skip to content

fix(daemon): daemon stop shuts down idle devices (#1056) - #1150

Merged
V3RON merged 6 commits into
mainfrom
bug/1056
Oct 31, 2026
Merged

V3RON merged 6 commits into
mainfrom
bug/1056

Conversation

@V3RON

@V3RON V3RON commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1056

simlock daemon stop now shuts down the idle (unleased, unclaimed) devices this daemon booted before it exits, as the maintainer decided. Leased devices keep running (ADR 0004 §3). The shutdown runs after background reclaims settle and the warm pool drains, so a device still reclaiming at stop is included, and before drivers are disposed, so Android still has adb. A failed shutdown is logged and the stop still completes.

Status

Implement: done (CI fix 8d6d81d) Review: round 2 passed, fix-check passed (coordinator) Hardware: n/a Gate: refused once (CI), CI rerunning on 8d6d81d
Next: gate

Assumptions

  • Assumption: shutdown initiator name — daemon-stop, listed in both event catalogs.

Review

Spec review: 1 blocking, 0 fixed, 0 notes. Code review: 2 blocking, 2 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 2. Tokens: 46.9M.
Runs: 12. Cost USD: 3.7213. Agent seconds: 1833.
Assessment: complete

Rejected:

  • spec: R3 [incorrect] shutdown not attributed — device.shutdown carries initiator daemon-stop.

Written by an agent.

@V3RON

V3RON commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor Author

Review ledger

Round 1: 70d8996
Round 2: 7c684e7
Round fix-check: 8d6d81d

Runs: 12. Cost USD: 3.7213. Agent seconds: 1833.
Tokens input 396, output 80399, cache read 7798868, cache write 539000.
- build implementer: claude-sonnet-5-5 204 s $0.3602
- audit implementer: claude-sonnet-5-5 157 s $0.1669
- review 1 reviewer: claude-sonnet-5-5 400 s $0.4367
- review 1 spec: claude-sonnet-5-5 19 s $0.1039
- review 1 code both: claude-opus-5-5 265 s $1.2095
- review 1 claims: claude-sonnet-5-5 40 s $0.1798
- fix 1 implementer: claude-sonnet-5-5 145 s $0.2238
- review 2 reviewer: claude-sonnet-5-5 190 s $0.1353
- review 2 code-reviewer tests: claude-opus-5-5 138 s $0.3688
- review 2 claims-reviewer claims: claude-sonnet-5-5 33 s $0.123
- fix fix-check implementer: claude-sonnet-5-5 186 s $0.2413
- review fix-check reviewer: claude-sonnet-5-5 56 s $0.1721
Finding outcomes: {"fixed":2,"incorrect":1}. Classes: {"safety 6 attribution":1,"testing 3 error path untested":1,"testing 3 reclaim order unproven":1}.
{"findings":[{"id":"R1","role":"code","class":"testing 3 reclaim order unproven","outcome":"fixed","path":"e2e/daemon-lifecycle.test.ts","round":"1","fix":"7c684e7c3fe35f7064d2d6f2e45d207aaafd85de"},{"id":"R2","role":"code","class":"testing 3 error path untested","outcome":"fixed","path":"src/core/create-core.ts","round":"1","fix":"7c684e7c3fe35f7064d2d6f2e45d207aaafd85de"},{"id":"R3","role":"spec","class":"safety 6 attribution","outcome":"incorrect","path":"src/core/create-core.ts","round":"1"}]}

Written by an agent.

@V3RON
V3RON merged commit bcedd2f into main Oct 31, 2026
67 checks passed
@V3RON
V3RON deleted the bug/1056 branch October 31, 2026 12:44
@V3RON

V3RON commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

Maintainer confirmed the behaviour shipped in #1150: daemon stop (and simlock update) shuts down idle devices, so the next start boots the warm pool's devices again. Kept as is.

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.

Released iOS simulator stays booted after simlock daemon stop

1 participant