Skip to content

Latest commit

 

History

History
1310 lines (1247 loc) · 137 KB

CHANGELOG.md

File metadata and controls

1310 lines (1247 loc) · 137 KB

Changelog

Unreleased

ADR 0004 (docs/adr/0004-ttl-first-leases-on-every-transport.md): there is now one kind of lease, on every transport. A lease carries a TTL, and the only thing that keeps it alive is a client-initiated lease.renew arriving before the deadline — on the unix socket, over HTTP, over MCP, and through a gateway alike. Held mode is gone as a daemon concept; staying alive to renew and releasing on exit is now the CLI's and the MCP session's own policy over an ordinary lease. This is a breaking release for the contract, three config keys, and one user-visible behaviour; see below.

ADR 0004 is Accepted — not yet implemented: the entries in this section describe the decided end state, and they land with the PRs that implement it (the client's renew timers, and the daemon's heartbeat removal, config rename, and protocol bump).

ADR 0005 (docs/adr/0005-gateway-and-worker-modes.md): a simlock daemon now runs in one of two modes. A worker is what every daemon is today — it owns the devices on one machine — and a gateway owns none, fronting the workers that dial out to it over a single WebSocket uplink. A gateway keeps one fleet-wide queue, dispatches each request to the worker best placed to serve it, proxies device commands to the worker that owns the device, and implements the same typed contract towards its own clients, so every existing frontend works against it unchanged. Nothing here is removed or repurposed and a daemon left in the default mode: "worker" behaves exactly as it does today, so every one of the entries below is additive except the protocol bump — device.exec and its output pushes take the socket wire to protocol 5, which means a client and a daemon still have to be upgraded together. That one is listed under BREAKING CHANGES above, with ADR 0004's own bump, since it is the same wire and the same upgrade.

ADR 0005 is Accepted — not yet implemented as well: the entries under "ADR 0005" below describe the decided end state, and they land with the PRs that implement it (device.exec on the worker, then the gateway skeleton and worker views, the fleet queue and forwarding, drain and reconnect). The documentation is the exception to that order: it lands first, as the specification those changes are written against.

⚠ BREAKING CHANGES

  • The daemon protocol is now 6, {min: 6, max: 6}, with no compatibility shim. ADR 0008 makes the catalog's modelRuntimes and modelAliases required, so a gateway marks a worker on 5 incompatible with both ranges shown and sends it nothing; upgrade the worker. A client built against 5 gets PROTOCOL_VERSION_UNSUPPORTED from hello, as with every earlier bump.
  • The daemon protocol is now 5, {min: 5, max: 5}, with no compatibility shim — the same no-shim rule that took it to 4. ADR 0005 adds device.exec and its output push family, and moves status.get's health into a daemon block that also carries mode, so advertising 4 would claim a compatibility path that does not exist. A client built against 4 does not overlap this daemon and its hello fails with PROTOCOL_VERSION_UNSUPPORTED naming both ranges; daemon.stop stays the frozen exception, so simlock daemon stop then starting the new daemon is the upgrade path.
  • Contract: lease.heartbeat is removed as an operation, and heartbeat is removed as a hello capability. The daemon never pushes to a client to prove liveness any more; nothing replaces it, because lease.renew already did the job on every transport that has one.
  • mode leaves the contract. lease.request no longer accepts it, and the lease record no longer carries it. ttlMs is now accepted on every lease.request — supplying it used to be BAD_REQUEST for a held lease — and is capped at lease.maxTtlMs, above which a request or a renew is BAD_REQUEST rather than silently clamped. A caller reading lease.mode off a grant now reads undefined, which is falsy, not an error; there is nothing to branch on any more.
  • A body-less renew re-applies the lease's own TTL, not lease.defaultTtlMs. The lease record stores the ttlMs it was granted with (or last renewed with, when a renew carried one), and lease.renew without a ttlMs resets the deadline to now + that width. lease.defaultTtlMs now applies in exactly one place: a lease.request that names no ttlMs. A caller that relied on renew snapping every lease back to the 15-minute default will find a four-hour lease staying four hours wide.
  • lastRenewedAt replaces lastHeartbeatAt — as a new stored field, not a rename. lastHeartbeatAt was never persisted: the dispatcher derived it as ttlDeadline - heldTtlBackstopMs, which only worked because every held lease shared one backstop width. With per-lease TTLs that arithmetic has no answer, so the daemon now writes lastRenewedAt onto the lease record at grant and on every renew, and simlock status renders it as "last renewed". A consumer reading lastHeartbeatAt gets undefined.
  • Socket protocol: moves twice in this release, once per ADR, each time with no compatibility shim. ADR 0004 removes lease.heartbeat and mode, taking the wire to protocol 4; ADR 0005 adds device.exec, its output push family, and the mode field on status.get's daemon block, taking it to 5. What ships advertises {min: 5, max: 5} — 4 is a step along the way, not a range anything releases with, since a range widens only where a compatibility path is kept (ADR 0003 §6). A version-mismatched client fails hello with PROTOCOL_VERSION_UNSUPPORTED and never restarts the daemon — run simlock daemon stop once it's idle. daemon.stop remains a frozen exception, accepted at any protocol version the daemon has ever spoken.
  • Config: three lease.* keys are retired — lease.detachedTtlMs, lease.heldTtlBackstopMs, and lease.heartbeatIntervalMs. All three are now simply unrecognized: simlock config warns about each and ignores it, exactly as it does for any other unknown key. None of them is aliased onto a new key, so a config still setting lease.detachedTtlMs gets lease.defaultTtlMs's default rather than the value it wrote — copy the value across. New: lease.defaultTtlMs (15 minutes, applied to a request that names no ttlMs) and lease.maxTtlMs (4 hours). Both must be positive numbers with lease.defaultTtlMs <= lease.maxTtlMs; a config that breaks either rule is rejected at load and the daemon does not start, naming the offending key, rather than being clamped. Note the two treatments are different on purpose: a retired key is warned about and ignored, because it is a leftover; a TTL pair that contradicts itself has no safe fallback to be ignored in favour of. See docs/CONFIGURATION.md#retired-lease-keys.
  • Upgrading over a live held lease: a lease a pre-ADR-0004 daemon persisted in held mode survives the upgrade with its persisted deadline intact — up to the old one-hour lease.heldTtlBackstopMs. Nothing can renew it: its holder speaks protocol 3 and the new daemon speaks {min: 5, max: 5}, so its hello fails. The lease simply expires on that deadline and its device is reclaimed, or simlock release <lease-id> ends it sooner. Stopping the old daemon while it is idle, as the protocol- mismatch error already advises, avoids the situation entirely.
  • A holder killed with SIGKILL keeps its device until the TTL expires. The daemon keeps no per-connection lease state and releases nothing when a connection closes, on any transport — so a holder that dies without running its own release path (SIGKILL, a crash, a lost machine) holds its device until expiresAt, at most the lease's own TTL after its last renew — lease.defaultTtlMs unless the request asked for more, never more than lease.maxTtlMs — against today's immediate release on socket close. A holder that exits normally, is SIGTERMed, or whose parent dies still releases at once, because that is its own policy. This is the one behaviour change a local user notices, and it is the accepted price of a single mechanism; the reverse case improves, as a machine sleep or a socket hiccup no longer costs a live holder its device. lease.defaultTtlMs and --ttl bound it — see docs/known-pitfalls.md.
  • simlock daemon stop no longer releases leases, and there is no orphaned-lease sweep at daemon startup. Leases persist across a restart and the next daemon restores each one's TTL timer from its deadline; one whose deadline passed in between expires as soon as a daemon is there to expire it.
  • Events: lease.granted's payload drops mode. lease.released loses the closed and orphaned reasons — a closing connection is not a release and never was a fact worth emitting, and there is no startup sweep to produce an orphan. explicit, killed, and device-lost remain.
  • simlock/client: onLeaseLost no longer fires with reason daemon-connection-lost when a connection dies. The lease is still granted and still yours — reconnect and renew it, or let its TTL run out. onConnectionLost is what reports the dead connection; onLeaseLost now only ever reports a lease the daemon actually ended.
  • The MCP server's renew timer reconnects, but never launches a daemon. ADR 0003 §10/§11 gave MCP one lazy reconnect trigger, the next tool call; ADR 0004 adds a second. When the renew timer fires against a dead client the session reconnects and renews, so an idle session no longer loses its lease waiting for a call that may not come. That trigger only ever connects to a daemon that is already listening — auto-launch stays a tool-call concern, so an operator's simlock daemon stop is not undone by an idle session, and a lease held across a stopped daemon expires unless the daemon is back before its deadline.
  • A running simlock lease exits 1 when its daemon connection dies, writing one DAEMON_CONNECTION_LOST line that names the lease id and its ttlDeadline. The CLI still does not reconnect (ADR 0003 §10), so it can neither renew nor release — but it no longer implies the lease went with it. The lease stands until its deadline and any later invocation can simlock lease renew <lease-id> it. Exit 14 keeps its narrower meaning: the daemon ended the lease while the connection was alive.
  • doctor reports an unavailable optional module as module-unavailable. The finding carries a module field (agent-device today) and replaces agent-device-unavailable; the stderr line is <module> fail <message>; <remedy>. The daemon protocol is now 37.

Features

These ship with the PRs that implement ADR 0004; this section describes what those changes add, alongside the breaking changes above.

  • cli: simlock lease (without --detach) renews its own lease at one third of the lease's TTL for as long as it runs — sending no TTL of its own, so the deadline keeps the width the lease was granted with — and releases on exit, parent death, or SIGINT/SIGTERM. --detach prints the grant and exits; the lease it leaves behind is the same kind of lease, and renewing it is the caller's job.
  • cli: simlock lease --ttl <duration> sets a lease's initial TTL in place of lease.defaultTtlMs, capped by lease.maxTtlMs.
  • daemon: one expiry path for every frontend — startup restores every lease's TTL timer from its persisted deadline, and the held-lease bookkeeping kept for release-on-close is deleted along with the StartupConverger orphan sweep that existed to clean up after it.
  • config: lease.maxTtlMs bounds what any caller may ask for, so one client cannot pin a device for a day by naming a large ttlMs.
  • contract, daemon, http, cli: device.exec runs simctl/adb on the machine that owns the device and streams the output back, so an agent that is not on that machine can drive the device it leased (ADR 0005 §19a-§19e). The daemon resolves the command through the same driver passthrough simlock simctl / simlock adb already use — the same root scoping, the same refusal list — and pushes each chunk as it arrives (a new request-scoped output push family) rather than buffering any of it; the call resolves with the command's exit code. Over HTTP it is POST /v1/leases/{id}/exec, answering Server-Sent Events: an output event per chunk, then a terminal exit or error. simlock/client gains exec(input, { onOutput }). simlock simctl / simlock adb are unchanged against a worker — they still spawn with inherited stdio, so an interactive adb shell keeps its terminal — and take this path against a gateway, which owns no devices; the CLI reads which it is talking to from mode in status.get's daemon block rather than guessing from its transport, and both commands now accept --lease <id> (ignored against a worker, so one command line works against either). stdin is a one-shot string, read from a pipe to EOF before the command starts: there is no pseudo-terminal, so line-oriented commands work, full-screen ones do not, and a bare adb shell is refused (PASSTHROUGH_REFUSED) rather than left to hang. On this one operation admin does not bypass ownership: an admin session names the requesterId it is running the command for and the daemon compares it to the lease's own, which is what keeps a proxy holding one admin credential from reaching every lease on the machine.
  • contract: status.get gains a daemon block, { health, mode }. health moves into it from the top level, and mode (worker/gateway, read straight from the new mode config key) joins it — the one field that tells a client which kind of daemon answered, and what simlock simctl / simlock adb branch on. simlock status renders it as Daemon: running (worker).
  • android: simlock adb now refuses a caller-supplied -P, -H, -L, or --server-port anywhere in adb's globals — the arguments before the subcommand — including the attached forms -P5037/-Hhost and one that follows another global's value (-s emulator-5554 -P 5037 shell …), the way simlock simctl already refuses --set/--profiles. adb takes the last -P on the line, so one supplied by a caller silently won over the one Simlock inserts and pointed the command at another server — including the machine's default one, outside Simlock's containment entirely. Past the subcommand those spellings are operands and still pass through (simlock adb shell echo -Please), and -s/-t/-d/-e are not refused at all: they select a device inside the containment rather than leaving it.
  • config: exec.timeoutMs (default ten minutes) bounds one device.exec command; past it the process is killed and the call fails with the new EXEC_TIMEOUT error code (CLI exit 10, the code the other "ran out of time" outcome already uses, and HTTP 504) rather than reporting the exit code the kill produced.
  • catalog: each platform in simlock catalog, GET /v1/catalog, the MCP list_devices tool, and getCatalog carries modelRuntimes: for every model, the installed runtimes it pairs with. A listed pair can be leased; on iOS a model and a runtime that are each installed can still fail to pair, and are not listed together. An iOS lease for an exact version now succeeds when any installed build of that version pairs with the model, not only the first one. simlock catalog prints each model with its runtimes. On a gateway, simlock worker list shows each worker's own pairings and the catalog pairs a model with a runtime when at least one worker does.
  • catalog: each platform also carries modelAliases, the other names a lease accepts for a model in any letter case — on Android a built-in profile's AVD id, such as pixel_8 for Pixel 8 — and Android carries images, every installed system image with its API level, tag, and ABI, a foreign-ABI image included. simlock catalog prints both. On a gateway each worker's view carries its own and the catalog lists their union; the gateway does not yet route a request by another name.
  • events: every business event is also written to ~/.simlock/events.jsonl, one JSON line each, so the history survives a daemon restart or crash. simlock events --since and GET /v1/events?since= read it, reaching past a restart and past the 1000 events kept in memory; with no daemon running, simlock events --since (without --follow) reads the file and starts none. --since with --follow prints that history, then streams, with nothing lost or repeated where they meet. The file is capped by the new eventLog.rotateBytes (default 5 MiB, one rotated generation). daemon.log no longer gets its own copies of component.installed and device.slimmed; read them from the event file.
  • daemon: daemon.log records every request that changes state, on every frontend, with who asked, how long it took and its error code; every background failure Simlock handled by retrying or destroying a device, with the device and the error; and at log.level: debug, read requests and every device command with its exit code. A failing event subscriber is logged as a JSON line. simlock daemon logs --follow prints new lines as they are written, across rotations.

ADR 0005: gateway and worker modes

These ship with the PRs that implement ADR 0005, and every one of them is additive: mode defaults to worker, so a daemon that ignores all of this is the daemon that exists today.

  • contract: device.exec (role agent) runs one simctl/adb command against a leased device on the machine that owns it — { leaseId, tool, args, stdin?, requesterId? } in, { exitCode } out, with output streamed as request-scoped output pushes (stream: "stdout" | "stderr" plus a chunk, keyed by frame id like progress). It works on the unix socket, over HTTP, and over the uplink, so a remote HTTP agent can drive its device against a lone worker with no gateway involved at all. stdin is one string sent with the request and then closed; there is no pseudo-terminal, and a bare adb shell with no command is refused (PASSTHROUGH_REFUSED) rather than left to stall until the timeout. A non-admin caller is gated the ordinary way, its principal against the lease's ownerId; requesterId exists for the one session that would otherwise bypass that check, the gateway's admin session on a worker, and admin does not bypass on this one operation — the worker compares the supplied requesterId to the lease's own.
  • contract: worker.list|drain|undrain|remove (admin) manage the workers connected to a gateway; mode joins status.get's daemon block; workers joins its output; workerId joins every device and lease in a gateway's aggregate; worker: { id, label } joins the lease object; and worker joins the token roles. All additive.
  • daemon: config.mode selects worker (default) or gateway. A gateway starts no drivers, validates no device roots, and runs no reaper, health monitor, or capacity strategy; src/gateway/ implements the contract's handlers over worker views and uplinks, importing nothing from drivers and, from core, only the platform-agnostic queue and bus. A gateway's one piece of persisted state is its worker registry — which workers it knows and which an operator has drained — kept under its SIMLOCK_HOME with owner-only permissions, so a drain survives both a worker reconnect and a gateway restart. Worker views are rebuilt on every connect and never persisted.
  • Socket protocol: the wire's second move this release, to protocol 5, with no compatibility shim — see BREAKING CHANGES above, where it is listed with ADR 0004's. device.exec and its output push family are new frames and no compatibility path is kept for them, so under ADR 0003 §6's honesty rule the range does not widen. Over the uplink this is ordinary version negotiation: a worker older than ADR 0005 does not overlap a gateway's range, is marked incompatible with both ranges shown, is never dispatched to, and keeps serving its own local clients until it is upgraded.
  • daemon: one fleet queue on the gateway, dispatched to workers with noWait: true, so a gateway request never sits in a worker's queue and can be granted by whichever worker frees first. A request becomes dispatched on a grant or on the first progress push from that worker; only an immediate NO_CAPACITY (a stale view) leaves it queued. Routing is a pure function over the worker views behind gateway.routing; the v1 policy is a warm hit first, then the most free running capacity for the platform. Each view carries the worker's effective downloads.policy, read once with config.get on connect, so routing can tell whether a machine may install a missing runtime at all — the worker still clamps allowDownload through that same policy, as always.
  • daemon: lease.renew/release/reads forward to the owning worker (the lease id names it), the one-lease-per-requester rule becomes fleet-wide, and the requester a gateway forwards is namespaced gw:<gateway instance id>:<requester> so local and fleet agents cannot collide on a worker. lease.release-all on a gateway releases only the leases that gateway issued, across every connected worker, and never a worker's own local leases; a worker it cannot reach is reported as WORKER_UNREACHABLE naming that worker while the rest still complete.
  • config: new keys. Worker side: gateway.url, gateway.token (a join token), gateway.label, and exec.timeoutMs (10 minutes, and the authoritative one — that side owns the process). Gateway side: gateway.routing (warm-then-free), gateway.disconnectedRetentionMs (24 hours) and gateway.execTimeoutMs (11 minutes, a backstop for a worker that never answers, deliberately longer than the worker's own). Plus mode itself. Worker-only keys in a gateway's config are ignored with a warning, as unknown keys already are. Two pairs are rejected at load instead, and the daemon does not start: mode: "gateway" with http.enabled: false, since a gateway with no listener cannot be reached by anyone; and, in mode: "worker", gateway.url without gateway.token or the reverse, since a half-configured uplink would otherwise come up looking like an ordinary standalone worker.
  • http: new routes. GET /v1/uplink (WebSocket upgrade, join-token bearer, role worker) is the one inbound connection in a fleet; POST /v1/leases/{id}/exec streams a command's output as Server-Sent Events, the same shape /events already uses; GET /v1/workers, POST /v1/workers/{id}/drain, DELETE /v1/workers/{id}/drain, and DELETE /v1/workers/{id} (all operator) are what the console (#88) renders. "Multi-host brokering" leaves docs/HTTP-API.md's "Not implemented" list, since this is it.
  • events: worker.connected, worker.disconnected, worker.rejected, worker.removed, worker.drain-started, worker.drain-ended, and request.dispatched are emitted by a gateway, and every worker's own business events are republished on the gateway's bus with workerId added to the payload — an additive change, so no exception to events rule 6 is needed this time. worker.rejected reports an uplink refused at the door, which nothing else records — it is what answers "why did that machine never appear". See docs/EVENTS.md.
  • contract: five new error codes. WORKER_UNREACHABLE (kind: "transport", CLI exit 1, HTTP 503 — where every other transport-kind code already sits) when a worker's uplink is down; WORKER_CONNECTED (exit 2, HTTP 409) refusing worker remove on a connected worker; UNKNOWN_WORKER (exit 12, HTTP 404) for worker drain/undrain naming a worker the gateway does not know — remove instead answers {"removed": false}, since forgetting an already-forgotten worker is not a failure; UNSUPPORTED_IN_GATEWAY_MODE (exit 2, HTTP 501, permanently rather than pending some later fan-out) for nuke/cleanup/doctor/driver.passthrough asked of a gateway; and EXEC_TIMEOUT (exit 10, HTTP 504) when a command outlives exec.timeoutMs. device.exec's refusals are not new codes: a refused verb is the existing PASSTHROUGH_REFUSED and an unwrapped tool the existing UNKNOWN_PASSTHROUGH_TOOL, both already exit 2 / HTTP 422.
  • deps: ws is added as a runtime dependency — Node ships a WebSocket client but no server, and the uplink needs both ends. It sits behind the UplinkListenerFactory/UplinkConnector ports as their one real adapter, so nothing above the port imports it and tests script a fleet in memory without it.

Documentation

  • record ADR 0004 as Accepted — not yet implemented (docs/adr/0004-ttl-first-leases-on-every-transport.md and docs/adr/README.md): the documentation describes the decided end state; the code catches up in the changes that implement ADR 0004.
  • rewrite the lease model across docs/CLI.md, docs/CLIENT.md, docs/HTTP-API.md, docs/CONFIGURATION.md, docs/ARCHITECTURE.md ("Leases", the frontend topology, and startup convergence), docs/EVENTS.md, docs/ABOUT.md, and README.md; record the SIGKILLed holder and re-frame the reparented-holder fix around renew timers in docs/known-pitfalls.md.
  • record ADR 0005 as Accepted — not yet implemented (docs/adr/0005-gateway-and-worker-modes.md and docs/adr/README.md).
  • describe gateways and workers across the user manual: a "Gateway and worker modes" section in docs/ARCHITECTURE.md (topology, uplink, worker views, the fleet queue, routing, lease forwarding, device.exec, failure behaviour, the safety argument, and src/gateway/'s boundaries), "Against a gateway" and simlock worker in docs/CLI.md, the uplink/worker/exec routes in docs/HTTP-API.md, exec and mode in docs/CLIENT.md, the new keys and a "Modes" section in docs/CONFIGURATION.md, the fleet events in docs/EVENTS.md, and a paragraph each in docs/ABOUT.md and README.md.
  • docs/IDEAS.md drops "Cross-machine coordination" — ADR 0005 designs it — and gains the items that record deferred: gateway-side file upload for device.exec, reserved capacity slices, fan-out doctor/cleanup, richer routing (label selectors, requester affinity), and a byte-heavy data plane.
  • docs/known-pitfalls.md records five accepted fleet gaps: no file transfer for device.exec, no pseudo-terminal, a dispatched request whose uplink drops, a lease that survives a gateway restart it cannot be renewed through, and local agents sharing a worker's capacity with the fleet.
  • reserve "gateway" for ADR 0005's meaning: the src/http frontend is called the HTTP frontend throughout docs/ARCHITECTURE.md, docs/HTTP-API.md, and docs/known-pitfalls.md, where it used to be "the HTTP gateway". No behaviour changes; one word now means one thing. ADRs 0003 and 0004 keep the old wording deliberately — an accepted record says what it said when it was accepted, and is never edited to match a later vocabulary.

0.8.0 (2026-11-17)

What's Changed

  • fix(daemon): the test dispatcher stores failures as production does by @V3RON in #1504
  • fix(lint): in a merge the commit hook judges only the lines the merge adds by @V3RON in #1506
  • fix(core): nuke --delete-devices destroys an unclaimed provisioning device by @V3RON in #1518
  • feat(config): the worker sends gateway.headers on its uplink dial by @V3RON in #1515
  • docs(adr): 0073 a worker may enrol the phones plugged into it by @V3RON in #1505
  • feat(drivers): drivers list the phones on USB, enrolled or not by @V3RON in #1511
  • feat(core): a worker enrols the phones plugged into it under devices.autoEnroll by @V3RON in #1514
  • chore(agents): a spec session writes the design once, checks it against the code, then writes thin tasks by @V3RON in #1521
  • fix(gateway): a generated lease id answers WORKER_UNREACHABLE until its worker reports after a restart by @V3RON in #1530
  • fix(daemon): a relay lets go of its target Request once it answers by @V3RON in #1533
  • docs(adr): propose 0074, an admission command ranks or refuses a gateway request (#1516) by @V3RON in #1519
  • feat(leasing): a chosen lease id is refused with LEASE_ENDED after its lease ended by @V3RON in #1526
  • feat(gateway): an admission command ranks or refuses each new request by @V3RON in #1528
  • feat(gateway): a lease request's metadata reaches the admission command by @V3RON in #1529
  • fix(core): nuke --delete-devices deletes quarantined virtual devices by @V3RON in #1520
  • chore(deps): bump the npm-minor-and-patch group across 1 directory with 16 updates by @dependabot[bot] in #1460
  • docs(adr): propose 0075, a foldable simulator streams the panel in use (#1531) by @V3RON in #1532
  • feat(capture): a foldable simulator's stream shows the panel in use and switches on a fold by @V3RON in #1536
  • feat(ios): taps land on the panel of a foldable that is in use by @V3RON in #1559
  • chore(deps): bump the npm-minor-and-patch group with 10 updates by @dependabot[bot] in #1543
  • chore(deps): bump pixelmatch from 7.1.0 to 8.0.0 by @dependabot[bot] in #1544
  • fix(ios): a simulator's clone or create waits ios.simulator.createTimeoutMs and a late copy is deleted by @V3RON in #1563
  • fix(ios): ios.*.bootTimeoutMs is one deadline taken before simctl boot by @V3RON in #1575
  • chore(delivery): an upstream label and a weekly check-upstream routine by @V3RON in #1576
  • docs(adr): propose 0077, the repository is a workspace and its packages release together (#1562) by @V3RON in #1565
  • feat(e2e): the repository builds, checks and releases @simlock/e2e with option checking by @V3RON in #1568
  • feat(e2e): the device provider leases, installs, renews and releases, with a Run tests from CI page by @V3RON in #1572
  • refactor: split every file over 1,000 lines into topic files by @V3RON in #1582
  • fix(delivery): review-inputs.sh resolves feature/-adr to the feature by @V3RON in #1611
  • docs(adr): propose 0078, an Android worker tries its default image tag first and falls back to none (#1590) by @V3RON in #1591
  • feat(leasing): an Android worker tries its default image tag first (#1595) by @V3RON in #1609
  • feat(android): doctor warns when no installed image has the default image tag by @V3RON in #1616
  • feat(catalog): a worker's catalog names its default image tag and a gateway ranks by it by @V3RON in #1615
  • docs(adr): propose 0079, one capture per device is shared and every capture sends a key frame every 5 s (#602) by @V3RON in #1593
  • feat(screen-capture): iOS screen streams send a key frame at least every 5 s by @V3RON in #1606
  • feat(android-screen): Android streams send a key frame at least every 5 s through scrcpy's reset video by @V3RON in #1610
  • feat(stream): viewers of one device on a worker share one capture by @V3RON in #1614
  • feat(stream): viewers through a gateway share one relay by @V3RON in #1617
  • docs(adr): 0076 an iOS clone names only its own folders before its first boot by @V3RON in #1564
  • feat(ios): a seed is copied unbooted from a throwaway simulator that is then deleted by @V3RON in #1620
  • feat(ios): a leased simulator swaps its lineage's UDIDs for its own before its first boot by @V3RON in #1626
  • fix(test): the drain-and-restart wait covers the restarted worker's catalog by @V3RON in #1630
  • docs(adr): propose 0079, an Android worker may enrol phones reached over the network (#1589) by @V3RON in #1594
  • feat(core): a phone's hardware serial is kept on its record, and one phone keeps one record by @V3RON in #1622
  • feat(android): network phones under android.networkDevices by @V3RON in #1627

Full Changelog: https://github.com/callstackincubator/simlock/compare/v0.7.0...v0.8.0

0.7.0 (2026-11-10)

What's Changed

  • fix(cli): daemon stop with no daemon running exits 0 and says so by @V3RON in #1313
  • fix(cli): a held lease cancels its waiting request on a signal or the bound process's exit by @V3RON in #1316
  • fix(contract): config.get answers the drivers section by @V3RON in #1314
  • chore(agents): an easy bug goes from its triage report to main through a fast track by @V3RON in #1322
  • feat(agent-device): the front leases from a named baseline by @V3RON in #1319
  • fix(contract): device.exec refuses a stdin over 8 MiB with BAD_REQUEST by @V3RON in #1318
  • fix(agent-device): an allocate's device mode reaches the lease request (#1223) by @vitalyiegorov in #1225
  • feat(capture): the simulator screen program ships universal, so Intel workers stream by @AndrewBeniston in #1185
  • test: cut the slowest CI tests, from 11.6 min a PR run to about 5 by @V3RON in #1325
  • refactor(config): a driver owns its config keys, and a module takes the config sections it reads by @V3RON in #1324
  • feat(config): configurable boot deadlines for full iOS simulators and Android emulators by @V3RON in #1321
  • fix(daemon): stop waits for lease requests still booting before it disposes the drivers by @V3RON in #1317
  • feat(agent-device): the allocate reply reports the granted device mode by @vitalyiegorov in #1254
  • docs(adr): propose 0062, the warm pool learns a baseline after repeated leases (#1257) by @V3RON in #1260
  • feat(warm-pool): a baseline kind is learned on its Nth lease in 24 h and warms its newest version by @V3RON in #1335
  • refactor(agent-device): split edge.test.ts into parts (ADR 0063) by @V3RON in #1339
  • refactor(daemon): split server.ts into parts (ADR 0063) by @V3RON in #1341
  • refactor(core): split doctor.test.ts and registry.test.ts into parts (ADR 0063) by @V3RON in #1340
  • refactor(gateway): split fleet-coordinator.ts into parts (ADR 0063) by @V3RON in #1342
  • refactor(leasing): split lease-acquisition-coordinator.test.ts into parts (ADR 0063) by @V3RON in #1344
  • refactor(http): split app.test.ts into parts (ADR 0063) by @V3RON in #1343
  • refactor(contract): split schemas.ts into parts (ADR 0063) by @V3RON in #1345
  • refactor(daemon): split main.ts into parts (ADR 0063) by @V3RON in #1347
  • docs(adr): propose 0064, a tunnel reaches an iOS simulator's ports and an emulator's adb port (#1282) by @V3RON in #1287
  • feat(tunnel): iOS simulator tunnels, forward to the lease's simulator, reverse on the exact port by @V3RON in #1336
  • feat(tunnel): simlock tunnel emulator adb, the caller's own adb sees the remote emulator by @V3RON in #1346
  • chore(agents): sub-agents compact at 300k tokens, the Haiku explorer at 100k by @V3RON in #1350
  • fix(agent-device): devices through a gateway no longer collides on request id by @V3RON in #1352
  • chore(docs): a manual holds only what the code cannot say by @V3RON in #1353
  • test(e2e): the slow lane keeps its seeds and runs leasing cases on one platform by @V3RON in #1366
  • docs(adr): propose 0066, a slim lease may keep named categories running (#1326) by @V3RON in #1327
  • feat(ios): slim labels match simslim v0.14.0, with the mdm category by @V3RON in #1333
  • feat(ios): the iOS driver boots a slim simulator with a lease's except list by @V3RON in #1348
  • feat(leasing): a slim lease keeps named categories running (--except) by @V3RON in #1349
  • feat(gateway): route an except lease by each worker's slim set and default mode by @V3RON in #1360
  • feat(agent-device): the front maps deviceExcept to the lease's except by @V3RON in #1368
  • fix(docs): warmPool.enabled no longer claims released devices stay booted by @V3RON in #1377
  • docs(android): fix reattachRunningEmulators comment on what outlives a stop by @V3RON in #1380
  • fix(daemon): the test helpers give a gateway a free HTTP port by @V3RON in #1383
  • fix(android): saving a device reads a config.ini with spaces around = by @V3RON in #1379
  • fix(gateway): lease.list lists a lease as soon as lease.request answers by @V3RON in #1376
  • fix(drivers): build the seed tables' one-ready-seed index in a version 2 step by @V3RON in #1384
  • fix(updater): empty update-backup before taking a backup by @V3RON in #1389
  • docs(adr): propose 0067, a lease has a file folder on its worker that HTTP callers fill and read (#1351) by @V3RON in #1354
  • feat(lease-files): a lease holder uploads, downloads, lists and deletes its lease's files on a worker by @V3RON in #1390
  • feat(exec): exec reads a lease file on stdin and runs in the lease folder by @V3RON in #1393
  • feat(lease-files): a gateway relays the file routes to the lease's worker by @V3RON in #1392
  • fix(test): startFleet's gatewayUrl hook runs after the gateway listens by @V3RON in #1396
  • docs(adr): propose 0068, a worker pauses warming and new devices under host memory pressure (#1355) by @V3RON in #1359
  • feat(host-load): a worker works out its memory pressure step and reports it by @V3RON in #1398
  • feat(capacity): at new-devices-paused a worker creates and boots no device for a lease by @V3RON in #1401
  • feat(warm-pool): the warm pool starts nothing and sheds a device at warming-paused by @V3RON in #1400
  • feat(gateway): a gateway ranks a memory-paused worker last and worker list shows the step by @V3RON in #1402
  • feat(ui): the console shows a worker's memory-pressure step by @V3RON in #1403
  • fix(test-support): daemon test rigs start on another port when their picked port is taken by @V3RON in #1405
  • docs(adr): accept 0069, a learned kind keeps one ready copy while its copies are leased (#1374) by @V3RON in #1378
  • feat(warm-pool): keep a spare copy of a learned kind while its copies are leased by @V3RON in #1387
  • fix(test): rotate test workers serve no HTTP unless a test asks for a port by @V3RON in #1418
  • fix(test): a gateway file test waits for the upload to reach the worker before probing its name by @V3RON in #1416
  • fix(core): a deleted device record expires after devices.deletedRetentionMs by @V3RON in #1415
  • fix(agent-device): session folders are removed at lease end and at daemon start by @V3RON in #1413
  • chore(comments): delete comments that say what, not why, since ded53744 by @V3RON in #1440
  • docs(delivery): refactor issues run without a spec, and a routine may start them (rule 18) by @V3RON in #1443
  • fix(daemon): test fixtures keep role defaults when overrides are given by @V3RON in #1444
  • fix(cli): local passthrough forwards termination signals to its tool by @V3RON in #1445
  • docs(adr): accept 0070, test runners drive a lease through the agent-device front (#1419) by @V3RON in #1420
  • feat(agent-device): label front errors with retry guidance by @V3RON in #1437
  • feat(agent-device): retain leases through close by @V3RON in #1436
  • feat(agent-device): answer boot on the leased device by @V3RON in #1439
  • feat(agent-device): each lease is its own agent-device tenant by @V3RON in #1453
  • fix(ios): isolate simulator clipboards from the Mac by @V3RON in #1446
  • feat(console): establish redesign foundation by @V3RON in #1435
  • feat(console): the redesign's pages together, with breakpoints and a light theme (#1434) by @V3RON in #1454
  • fix(ui): stop the toast test's 5.5 s check landing at 6 s by @V3RON in #1470
  • docs(adr): propose 0071, a restart re-allocates a live agent-device lease (#1461) by @V3RON in #1462
  • feat(agent-device): a heartbeat re-allocates a live agent-device lease after a restart by @V3RON in #1466
  • feat(agent-device): a standalone worker adopts its leases after a restart by @V3RON in #1468
  • fix(core): a deleted device record leaves the snapshot past devices.deletedRetentionMs by @V3RON in #1483
  • fix(cli): a signal during connect sends no lease request by @V3RON in #1482
  • fix(daemon): an abort before the daemon admits a lease request cancels it (#1479) by @V3RON in #1485
  • fix(agent-device): a re-allocate after a restart names the lease's backend by @V3RON in #1484
  • docs(cli): a refused simctl or adb command prints USAGE (exit 2) by @V3RON in #1488
  • fix(ios): an iOS seed boot timeout answers PROVISION_FAILED with reason boot-timeout by @V3RON in #1491
  • fix(gateway): a lease.cancel right after its lease.request cancels the fleet request by @V3RON in #1493
  • fix(agent-device): devices with requestProgress is forwarded, docs open an app before snapshot by @V3RON in #1489
  • fix(core): baseline remove while a copy is reclaiming answers DEVICE_BUSY by @V3RON in #1490
  • docs(agent-device): the guide names the iOS errors after a restart and says to open again by @V3RON in #1496
  • fix(config): config get answers a drivers key at its default by @V3RON in #1494
  • fix(agent-device): close after a restart ends the lease by @V3RON in #1495

New Contributors

  • @vitalyiegorov made their first contribution in #1225
  • @AndrewBeniston made their first contribution in #1185

Full Changelog: https://github.com/callstackincubator/simlock/compare/v0.6.0...v0.7.0

0.6.0 (2026-11-05)

What's Changed

  • docs(adr): 0059 a worker with real drivers holds a per-user lock (#1189) by @V3RON in #1190
  • feat(daemon): a worker with real drivers holds a per-user lock by @V3RON in #1193
  • docs(adr): 0060 iOS slim writes launchd overrides while the simulator is shut down by @V3RON in #1194
  • feat(ios): slim writes launchd overrides before one boot, reads them back by @V3RON in #1197
  • fix(auth): refuse unsafe worker ids at join by @V3RON in #1214
  • fix(gateway): drop the proxy auth header and cookie before relaying to a worker by @V3RON in #1213
  • fix: owner-only SIMLOCK_HOME and per-request waiting-row ownership by @V3RON in #1217
  • fix(cli): escape control characters in remote text and restrict requesterId by @V3RON in #1218
  • fix(gateway): a worker cannot crash, stall or corrupt its gateway by @V3RON in #1215
  • fix(limits): bound input sizes and make their parsing linear by @V3RON in #1216
  • fix(android): passthrough refuses emu avd snapshot except list by @V3RON in #1221
  • fix(input): ignore messages after a lease's input is released by @V3RON in #1226
  • fix(cli): tunnel drops a connection once both halves ended by @V3RON in #1227
  • fix(android): bound the emulator mark read in time and size by @V3RON in #1224
  • fix(e2e): capture stand-in logs closed when its stdout fails by @V3RON in #1230
  • fix(e2e): a held loopback port never stalls its release by @V3RON in #1231
  • fix(stream): a screen stream ends at the identity's expiresAt by @V3RON in #1228
  • fix(android): fail the boot when the emulator exits, quoting its error (#1199) by @V3RON in #1232
  • feat(mcp): list_devices lists enrolled phones by @leonardoxr in #1120
  • chore(agents): manuals reach agents, retired words, fresh checkouts, inline test commands by @V3RON in #1252
  • docs(adr): 0061 every virtual device is a copy of a source, and a baseline is a named source by @V3RON in #1201
  • feat(ios): every simulator is a copy of a seed, and every virtual device serves one lease by @V3RON in #1210
  • feat(android): every emulator is a copy of a seed, booted from its boot snapshot by @V3RON in #1222
  • feat(baselines): save, list and remove baselines from held leases by @V3RON in #1235
  • feat(leasing): a lease names a baseline and gets a copy of it by @V3RON in #1236
  • feat(gateway): route baseline lease requests to a worker that holds the baseline by @V3RON in #1241
  • feat(ui): a Baselines page and a device's baseline by @V3RON in #1245
  • feat(ios): ios.simulator.audio keeps every simulator silent by @V3RON in #1258
  • docs(adr): propose 0063, a big module is one composition root over parts that own their state (#1259) by @V3RON in #1262
  • test(hygiene): size test, a code file stays at 1,400 lines and a test file at 2,500 by @V3RON in #1274
  • refactor(android): adb-tools.ts, the leaf part for env, commands and device folders by @V3RON in #1276
  • refactor(android): ownership.ts, the one check before a stop, load or destroy by @V3RON in #1277
  • refactor(android): console-ports.ts owns the console port reservations by @V3RON in #1278
  • refactor(android): passthrough-rules.ts holds the adb refusal rules by @V3RON in #1279
  • refactor(android): avd-config.ts owns config.ini, the config hash and the marks by @V3RON in #1280
  • refactor(android): emulator.ts starts, readies and stops an emulator by @V3RON in #1281
  • refactor(android): system-images.ts owns system images and components by @V3RON in #1283
  • refactor(android): catalog.ts is a part of the Android driver by @V3RON in #1284
  • refactor(android): device-table.ts owns the device states, locks, listManaged and pre-root devices by @V3RON in #1285
  • refactor(android): seeds.ts is a part of the Android driver by @V3RON in #1286
  • feat(ios): ios.simulator.headless false shows each simulator in a window by @V3RON in #1290
  • docs(website): rewrite the user docs in plain, task-first English by @V3RON in #1291
  • fix(ui): the lease drawer shows the baseline the lease was made from by @V3RON in #1306
  • fix(android): pass -crash-report-mode only to an emulator that lists it by @V3RON in #1304
  • fix(daemon): a stopping daemon answers new connections with DAEMON_STOPPING by @V3RON in #1302
  • fix(ios): a seed simctl no longer knows counts as deleted (#1296) by @V3RON in #1303
  • fix(cli): daemon stop waits until the daemon has exited by @V3RON in #1305
  • test: raise five shrink-only line limits in source hygiene by @V3RON in #1307

Full Changelog: https://github.com/callstackincubator/simlock/compare/v0.5.0...v0.6.0

0.5.0 (2026-11-01)

What's Changed

  • chore(release): format the 0.4.2 changelog entry so Format passes by @V3RON in #1163
  • fix(release): collapse blank-line runs in the changelog notes by @V3RON in #1165
  • feat(daemon): device.rotate rotates a leased iOS simulator by @leonardoxr in #1122
  • feat(cli): simlock rotate and MCP rotate_device by @leonardoxr in #1123
  • feat(agent-device): the front answers orientation on an iOS simulator through device.rotate by @leonardoxr in #1124
  • docs(adr): 0053 the daemon owns each lease's device input, and device.rotate uses it by @leonardoxr in #1106
  • fix(http): SSE streams write an opening comment at once by @V3RON in #1170
  • fix(android): write the adb server's output to logs/adb-server.log by @V3RON in #1171
  • fix(http): /v1 JSON answers carry Cache-Control: no-store by @V3RON in #1173
  • docs(adr): 0058 through a gateway, simlock adb and simctl send stdin only with --stdin by @V3RON in #1175
  • feat(cli)!: through a gateway, simlock adb and simctl send stdin only with --stdin by @V3RON in #1178
  • fix(android): refuse simlock adb disconnect by @V3RON in #1180
  • feat(tunnel): reverse a leased Android device's port over a lease WebSocket on a worker by @leonardoxr in #1121
  • feat(tunnel): the gateway relays the tunnel socket to the lease's worker by @leonardoxr in #1125
  • feat(tunnel): simlock tunnel reverses a leased device's port to the caller (#1114) by @leonardoxr in #1126
  • feat(tunnel): simlock tunnel forward reaches a leased device's port from the caller's machine by @leonardoxr in #1127
  • docs(adr): 0054 a lease holder tunnels device ports to its own machine by @leonardoxr in #1111
  • fix(android): start the emulator with -crash-report-mode never by @V3RON in #1186

Full Changelog: https://github.com/callstackincubator/simlock/compare/v0.4.2...v0.5.0

0.4.2 (2026-10-31)

What's Changed

  • fix(e2e): slow-ios-smoke comment names the real reason the simulator stays Booted by @V3RON in #1136
  • fix(agents): pr-body-check ignores an indented line after a non-checklist line by @V3RON in #1142
  • fix(ios): read the version from a device-specific runtime id by @V3RON in #1141
  • fix(android): leave hw.device.hash2 out of the config hash by @V3RON in #1147
  • fix(ports): survive a client reset during uplink authenticate by @V3RON in #1140
  • fix(android): bound the clean-baseline snapshot load at 60 s by @V3RON in #1149
  • fix(cli): report an invalid config.json as USAGE, exit 2 by @V3RON in #1148
  • fix(daemon): daemon stop shuts down idle devices (#1056) by @V3RON in #1150
  • fix(config): config.get redacts secrets unless showSecrets is asked by @V3RON in #1157
  • fix(android): give emulator console snapshot save, snapshot list and emu kill a deadline by @V3RON in #1159
  • fix(e2e): warmUp releases its warm-up leases when a later one fails by @V3RON in #1160
  • fix(e2e): keep each daemon's log when teardown deletes its home by @V3RON in #1161

Full Changelog: https://github.com/callstackincubator/simlock/compare/v0.4.1...v0.4.2

0.4.1 (2026-10-31)

What's Changed

  • ci(release): read the npm version from npm, not process.versions by @V3RON in #1073
  • fix(release): keep capture programs executable; follow pnpm launchers to agent-device by @V3RON in #1075
  • test(audit): 13 fewer tests in cli, daemon, edge and five more files, since 19a11eb by @V3RON in #1039
  • test(audit): 9 fewer tests in ios, leasing, dispatcher and http, since 19a11eb by @V3RON in #1086
  • feat(input): rotate a leased iOS simulator with 0x07 by @leonardoxr in #1081
  • fix(android): start emulators with an authenticated gRPC endpoint by @joelfickson in #1083
  • fix(ports): the daemon listens on a named pipe on Windows by @leonardoxr in #1052
  • fix(drivers,ports,core): Android on Windows by @leonardoxr in #1053
  • fix(ports): read a pid's command line on Windows, so a crashed daemon's children are reaped by @leonardoxr in #1078
  • fix(daemon): a start that fails at the socket claim exits by @leonardoxr in #1077
  • chore(deps): bump the npm-minor-and-patch group across 1 directory with 25 updates by @dependabot[bot] in #1050
  • fix(ports): the daemon's children open no console window on Windows by @leonardoxr in #1076
  • chore(deps): bump vitest from 4.1.10 to 5.0.5 by @dependabot[bot] in #1022
  • perf(android): keep the avdmanager list device answer while its inputs are unchanged by @leonardoxr in #1079
  • feat(ports): read CPU, memory and swap on Windows by @leonardoxr in #1054
  • fix(agent-device): find an npm-installed agent-device on Windows by @leonardoxr in #1055
  • feat(agent-identity): read pi's PI_SESSION_ID as pi: by @tobimori in #1046
  • chore(deps): bump @agent-device/proxy to 0.21.35 by @V3RON in #1094
  • fix(e2e): keep the Android smoke lease from teaching the warm pool by @V3RON in #1096
  • fix(capture): a software H.264 encoder holds no frame back (#1090) by @TUNA-NOPE in #1092
  • fix(android): readiness waits for the package manager (#1089) by @TUNA-NOPE in #1093

New Contributors

  • @leonardoxr made their first contribution in #1081
  • @joelfickson made their first contribution in #1083
  • @tobimori made their first contribution in #1046
  • @TUNA-NOPE made their first contribution in #1092

Full Changelog: https://github.com/callstackincubator/simlock/compare/v0.4.0...v0.4.1

0.4.0 (2026-10-30)

What's Changed

New Contributors

  • @alcpereira made their first contribution in #167

Full Changelog: https://github.com/callstackincubator/simlock/compare/v0.2.0...v0.4.0

0.3.0 (2026-09-03)

ADR 0003 (docs/adr/0003-one-typed-daemon-contract-behind-every-frontend.md): every daemon operation is now declared once, as a typed contract (src/contract/), served by one shared dispatcher to all four frontends — the CLI, the stdio MCP server, the HTTP gateway, and a new programmatic client (simlock/client, simlock/admin, see docs/CLIENT.md). This is a breaking release for every frontend's wire vocabulary; see below.

⚠ BREAKING CHANGES

  • CLI: --json output and stderr event lines (lease, daemon, and progress/push lines) are now the contract's own values, serialized as-is. The old snake_case renderings (expires_at_ms, estimated_boot_ms, eta_seconds, …) are gone. Exit codes are unchanged; human-readable status/catalog formatting is unchanged.

  • MCP: tool names are unchanged, but every tool's input/output schema is now derived from the contract instead of hand-declared. Two field changes need every caller updated:

    • lease_simulator's timeout_seconds is now timeoutMs. The input schema is .strict(), so a caller still sending the old key gets a hard BAD_REQUEST, not a silent failure. The real hazard is a caller that renames the field but not its value: {"timeoutMs": 30} meaning "30 seconds" is valid input, and times out ~1000× sooner than intended (QUEUE_TIMEOUT, exit 10) rather than later — update the field name and multiply the value by 1000.
    • The top-level slim: boolean on a grant is gone; it is now device.featureProfile ("full" | "reduced" | undefined). A caller still checking result.slim === true silently never sees a feature-loss signal again.

    See docs/CLI.md#simlock-mcp for the full callout.

  • Socket protocol: moves to protocol 3 with no compatibility shim. A version-mismatched client fails hello with PROTOCOL_VERSION_UNSUPPORTED and never restarts the daemon — run simlock daemon stop once it's idle. daemon.stop is a frozen exception, accepted at any protocol version the daemon has ever spoken (still admin-role gated).

  • lease.request's wire shape drops the legacy device/os field aliases and the nested request wrapper the pre-0.3.0 daemon accepted; an old client sending them now gets BAD_REQUEST instead of those keys silently vanishing.

  • HTTP: GET /v1/leases/:id and GET /v1/leases/:id/events now return 404 UNKNOWN_LEASE instead of 403 FORBIDDEN for another requester's still-live lease — there is no dispatcher operation for a single-lease read to defer to, so both fall back to lease.list's own filter, which does not distinguish "unknown" from "not yours" either. POST /v1/leases/:id/renew and DELETE /v1/leases/:id dispatch lease.renew/lease.release directly instead and keep answering 403 FORBIDDEN for the same case, matching the socket transport exactly — see docs/HTTP-API.md#get-v1leasesid.

  • token create|list|revoke are now daemon operations (admin role) — the daemon is the sole owner of tokens.json. config set and daemon logs remain file operations.

Bug Fixes

  • http: allowDownload is now clamped through config.downloads.policy the same way the socket protocol always was — HTTP previously passed a client-supplied allowDownload through unclamped, so a "never" policy could be bypassed over HTTP even though the socket already blocked it.
  • http: a request arriving before the daemon's startup convergence finishes now waits on the shared dispatcher's readiness gate instead of being refused — the HTTP gateway's listener starts at socket-claim time rather than only after convergence completes.
  • cli: filter lease-lost pushes by this connection's own lease id, so a second CLI invocation sharing a principal (e.g. a detached lease from an earlier --detach) doesn't misreport a push for a lease this process never held.
  • contract: restrict lease.cancel to the calling principal (only admin may cancel on another principal's behalf).
  • daemon: require the admin role for daemon.stop.
  • http: GET /v1/lease-requests/{id} and friends now answer 404 UNKNOWN_LEASE_REQUEST, not 404 UNKNOWN_REQUEST — the latter collided with the contract's own UNKNOWN_REQUEST (a 400 protocol error for an unrecognized operation name), so a client branching on error.code alone could not tell "no such request id" from "no such operation".

Features

  • contract: declare every daemon operation once — name, role, input/ output zod schema, optional authorize hook — with public TypeScript types inferred from the schemas (src/contract/).
  • daemon: move request handling into one transport-independent dispatcher (src/daemon/dispatcher.ts) serving both the unix socket and, in-process, the HTTP gateway.
  • daemon: negotiate protocol versions as {min, max} ranges instead of an exact match.
  • daemon: resolve hello's admin credential — an operator token or the daemon's per-start admin.token secret — before any other request on the connection runs; wire the admin handshake and route lease-scoped pushes to every live connection sharing a lease's owner, not just the holder.
  • core: persist a lease's ownerId, distinct from requesterId (ADR 0003 §4) — the session principal a lease was granted to, vs. the per-request attribution a connection may vary. lease.released/ lease.expired now carry ownerId in their event payloads.
  • client: add the typed daemon client core (simlock-client) and publish it as the simlock/client and simlock/admin package entry points — one connection, no reconnect, no retry, with AbortSignal-driven cancellation on requestLease (see docs/CLIENT.md).
  • cli, mcp: move onto the typed client, deleting the hand-built request payloads and raw response parsers both frontends carried before.
  • http: move HTTP onto the shared dispatcher, deleting its own copies of status assembly, decoration, error mapping, and ownership checks.

Documentation

  • record ADR 0003 (docs/adr/0003-one-typed-daemon-contract-behind-every-frontend.md).
  • add docs/CLIENT.md for the new programmatic client; document the contract/dispatcher architecture and the cooperative-identity security model in docs/ARCHITECTURE.md; document the breaking changes above in docs/CLI.md and docs/HTTP-API.md; record true-cancellation-during- provisioning and the HTTP tracker/notice-buffer stateful leftovers in docs/known-pitfalls.md.

[0.2.0] and earlier

Not tracked in this file — see git log for history before this changelog was introduced.