Repository navigation
Description
Request: #1806
Problem
A slim iOS simulator turns off groups of background services, siri among them, to save memory and CPU. Nothing in the lease answer says which. Someone testing App Intents or Apple Intelligence on a slim lease sees Siri stuck on "Preparing support" and gets no hint why: today simlock lease --platform ios --mode slim prints only "mode":"slim" for the device, and the reporter had to read Simlock's bundled code to find out.
Who it is for
A person or a coding agent that leases an iOS simulator, through simlock lease or the MCP tool lease_simulator, gets a slim one (by asking, or because the worker's default is slim), and then finds a system feature that does not work.
Outcome
On a slim lease, the lease command and the MCP lease tool each say, in one line, which categories are off on that device and how to get them back. The person or agent can then ask again with --except <name> or --mode full without reading code or docs.
How it works for the user
flowchart TD
A[simlock lease --platform ios] --> B{device mode}
B -- full, Android, phone --> C[grant JSON on stdout, nothing more]
B -- slim --> D[grant JSON on stdout]
D --> E{worker names categories off?}
E -- yes --> F["stderr: slim: siri, widgets, ... off; use --except name or --mode full"]
E -- none, or no answer in 2 s --> C
Before:
$ simlock lease --platform ios --mode slim --detach
{"device":{"id":"dev_1","mode":"slim",...},"environment":{...},"lease":{...},"timing":{...}}
After (the worker turns off every category, the lease keeps store):
$ simlock lease --platform ios --mode slim --except store --detach
{"device":{"id":"dev_1","mode":"slim","except":["store"],...},"environment":{...},"lease":{...},"timing":{...}}
{"notice":"slim: widgets, siri, search, icloud, pim, web, family, health, photos, apps, messaging, connectivity, telemetry, mdm, other off; use --except <name> or --mode full"}
The first line is stdout, the second stderr. Through MCP, lease_simulator answers the same grant with one more field, hint: "slim: widgets, siri, … other off; pass except: [\"<name>\"] or mode: \"full\"".
Examples
| Lease | Worker's categories off | Today | After |
|---|---|---|---|
iOS, slim, no except |
all 16 | grant only | grant + slim: widgets, siri, … other off; … |
iOS, slim, except: ["siri"] |
all 16 | grant only | grant + hint naming the 15 others |
iOS, slim, except names every category the worker turns off |
3 | grant only | grant only |
| iOS, slim | none (ios.slim.categories: [], only ios.slim.exclude) |
grant only | grant only |
iOS, asked slim, got full (runtime below 18.5) |
all 16 | grant only | grant only |
| iOS, full | all 16 | grant only | grant only |
| Android, or a physical phone | — | grant only | grant only |
| iOS, slim, the catalog read fails or takes over 2 s | — | grant only | grant only |
What could go wrong
- Through a gateway the line names the categories any worker turns off, not only the serving worker's. Fleets share one config in practice, so this is rare; the line may then name a category that is on.
- The line lists names, not what each does. The slim page on the website explains them.
- A script that treats any stderr output as failure would now see one more line on slim leases. Simlock already prints notices there.
Words used
- slim simulator: an iOS simulator Simlock boots with groups of background services turned off, to save memory and CPU. The lease's
device.modeisslim. - category: one named group of those services, such as
siriorstore. The worker'sios.slim.categorieschooses which are off; all 16 by default. except: the categories a slim lease asked to keep running, such as--except store. The grant shows them asdevice.except.- hint line: the one line this feature adds, naming the categories off and the way out.
- catalog: what
simlock catalogand the MCP toollist_devicesanswer; for iOS it already lists the worker's slim categories (slimCategories).
Non-goals
- No change to the daemon contract: the grant
lease.requestanswers, the catalog and every other operation keep their shape, and the protocol is not bumped. Only the MCP toollease_simulatorgains a field of its own. - No hint in the agent-device front or the Node client: only
simlock leaseandlease_simulator. - No description of each category in the line, and no list of single services turned off by name (
ios.slim.exclude). - The slim page on the website stays as it is.
Completion conditions
simlock lease --platform ios --mode slimon a worker that turns off every category prints the grant on stdout and, on stderr,{"notice":"slim: widgets, siri, search, icloud, store, pim, web, family, health, photos, apps, messaging, connectivity, telemetry, mdm, other off; use --except <name> or --mode full"}.- The same lease with
--except sirinames every category butsiri. lease_simulatorwithmode: "slim"answers the grant plus ahintfield holding the line withpass except: ["<name>"] or mode: "full", in its structured result and its text, so a client that reads only one of them (Codex reads only the structured result) sees it.- A full, Android or physical lease prints and answers exactly what it does today.
- The CLI and MCP reference pages on the website describe the line.
Open questions
Decisions
- No ADR: one task, no wire change, and nothing hard to reverse.
- Maintainer decision (2026-11-24, comment on Slim lease silently disables Siri; nothing tells the user which categories are off #1806): one hint line on a slim lease, from
simlock leaseand the MCP lease tool, naming the categories off and the way out; no contract change and no new grant field; the slim docs page stays. - Decided in the session: the categories off are the iOS catalog's
slimCategoriesminus the grant'sdevice.except, read with onecatalog.getafter the grant, because the client cannot see the worker's config and the catalog already carries it with no shape change. - Decided in the session: no line when the device is not
slim, the list is empty, or the catalog read fails or takes over 2 s, because the hint must never fail or slow a lease. - Decided in the session: the CLI writes the line as a stderr
noticeafter the grant, because stdout carries only the grant and notices already go to stderr. - Maintainer decision (2026-11-25, in the session): MCP carries the line as an optional
hintfield oflease_simulator's own answer, because Codex passes only the structured result to the model; the daemon contract stays unchanged, asrelease_simulatoralready addsreleasedon top of its operation's answer. - Decided in the session: each frontend names its own way out (
--except <name> or --mode full,except: ["<name>"] or mode: "full"), because a flag means nothing to an MCP caller. - Decided in the session: through a gateway the union of the fleet's categories is used, because the gateway catalog answers no per-worker list and a fleet shares one config in practice.
- Decided in the session: all categories are named, never cut with
…, because the point is thatsiriis found in the line.
Behaviours
| Id | Behaviour (invoker, action, what it sees) | Seam | Cases | Task |
|---|---|---|---|---|
| B1 | A user runs simlock lease and gets an iOS slim device: after the grant on stdout, stderr gets one notice line (I2) naming the categories off (I1). |
simlock lease command with a fake client (src/cli/index-lease-requests.test.ts style) |
slim, catalog all 16, no except → 16 named in catalog order; slim, --except siri → 15, no siri; slim, except covers the list → no line; slim, catalog slimCategories: [] or absent or no iOS entry → no line; full → no line, no catalog.get call; Android → no line; physical → no line; catalog.get rejects → no line, grant and exit code as today; catalog.get unanswered past 2 s (fake clock) → no line, command goes on; --detach → line, then exit 0; --export-env → export lines on stdout, notice on stderr |
#1843 |
| B2 | An MCP client calls lease_simulator and gets an iOS slim device: the result is the grant plus hint (I3), in structuredContent and in the one text item. |
lease_simulator tool call on createMcpServer with a fake client (src/mcp/server.test.ts style) |
slim, catalog all 16 → hint names 16; slim with except: ["store"] → names all but store; full → no hint, answer as today; Android → no hint; catalog read rejects → no hint, call succeeds; unanswered past 2 s → no hint; the answer parses against the tool's outputSchema with and without hint; the rest of the answer equals the grant in every case |
#1843 |
| B3 | A reader of the website's CLI and MCP reference finds the line described. | website/src/content/docs/docs/reference/cli.mdx ## simlock lease, mcp-tools.mdx ## lease_simulator |
the CLI page shows the notice text and when it is absent; the MCP page names the hint field and when it is absent |
#1843 |
Stored state
none
Interfaces
| Id | What | Shape and bounds | Errors and limits | Where | Task | Used by |
|---|---|---|---|---|---|---|
| I1 | slimCategoriesOff(client, device, clock): the category names a slim device has off, for the hint. |
In: the granted device (mode, except), a client with getCatalog, a Clock. Out: readonly string[], the iOS entry's slimCategories in its order, minus device.except; [] when device.mode !== "slim" (then no call is made) or there is nothing left. |
Never throws: a rejected catalog.get({ platform: "ios" }) or one unanswered in SLIM_HINT_TIMEOUT_MS = 2000 (awaitWithin, counted from the call) answers []. |
src/lease-policy/index.ts (shared by CLI and MCP, not exported from simlock/client) |
#1843 | — |
| I2 | CLI hint line | One stderr line {"notice":"slim: <names joined by \", \"> off; use --except <name> or --mode full"}, written after the grant's stdout line, only when I1 answers a non-empty list. Names are not passed through escapeControl: the catalog parse holds them to /^[a-z][a-z0-9-]{0,31}$/ and the line is JSON-escaped. |
No new exit code; the line never changes the exit code. | src/cli/commands/lease.ts |
#1843 | — |
| I3 | MCP hint field |
leaseSimulatorOutputSchema becomes the lease.request output extended with hint: string (optional, no length cap: 32 names of up to 32 characters exceed 1024), in src/mcp/contracts.ts beside releaseSimulatorOutputSchema. Value: slim: <names joined by ", "> off; pass except: ["<name>"] or mode: "full", set only when I1 answers a non-empty list. The daemon contract is untouched: no protocol bump. |
— | src/mcp/server.ts lease_simulator handler, through src/mcp/session.ts lease() |
#1843 | — |
Existing code
Commit 200afe5.
Searches: rg slimCategories src (21 files), rg "requestLease\(" src/cli src/mcp src/agent-device (3 callers), rg -n notice src/cli/commands/lease.ts (6), rg except src/contract/device-schemas.ts (4).
| Id | Code (path:line) | Today | With this feature | Handled by |
|---|---|---|---|---|
| X1 | src/cli/commands/lease.ts:396-398 |
Writes the grant (or --export-env lines) to stdout and goes on to hold or exit. |
Then awaits I1 and writes I2 to stderr. | B1 |
| X2 | src/cli/commands/lease.ts:122 |
Writes a stderr { notice } line for a process-scoped requester; the pattern I2 follows. |
Unchanged. | B1 |
| X3 | src/mcp/server.ts:229-230, src/mcp/server.ts:415-420 |
session.lease(...) then success(output): one text item, the JSON, plus structuredContent. |
A slim grant's answer carries hint (I3) in both. |
B2 |
| X12 | src/mcp/contracts.ts:61, src/mcp/contracts.ts:87-89 |
lease_simulator answers lease.request's output verbatim; release_simulator extends its operation's output with released. |
leaseSimulatorOutputSchema extends with hint (I3). |
B2 |
| X4 | src/mcp/session.ts:179-210 |
lease() requests, starts renewal and returns the grant. |
Unchanged, or returns the names beside it; the implementer picks where I1 is awaited. | B2 |
| X5 | src/drivers/ios/catalog.ts:206-208, src/drivers/ios/slim-labels.ts:309-332 |
A worker's iOS catalog names slimCategories: the configured ios.slim.categories that are known, else all 16 in SLIM_CATEGORIES order. |
Read by I1, unchanged. | I1 |
| X6 | src/gateway/aggregate.ts:438-447 |
A gateway's iOS catalog names the union of its workers' categories, sorted, absent when empty. | Read by I1, unchanged. | I1 |
| X7 | src/contract/device-schemas.ts:297 |
grantedDeviceSchema carries mode and except. |
Read by I1, unchanged: no protocol bump. | I1 |
| X8 | src/contract/operations.ts:181-187 |
catalog.get, role agent, input { platform? }. |
Called once per slim grant. | I1 |
| X9 | src/lease-policy/index.ts:69-88 |
awaitWithin bounds a promise on the Clock. |
Bounds the catalog read in I1. | I1 |
| X10 | website/src/content/docs/docs/reference/cli.mdx:114-156, website/src/content/docs/docs/reference/mcp-tools.mdx:47-71 |
Describe the grant only. | Describe the hint line. | B3 |
| X11 | src/agent-device/front/allocate.ts:212 |
The agent-device front requests leases too. | Unchanged (non-goal). | — |
Tasks
- Slim lease hint line in simlock lease and lease_simulator #1843 Slim lease hint line in simlock lease and lease_simulator — a slim lease says which categories are off and how to keep them, from the CLI and MCP.
Risk: the line is missing, names a kept category, or slows a lease.
Completion conditions: all five are delivered by #1843.
Open work in the same area:
- Plain http to a remote farm by explicit opt-in: --allow-insecure-http, SIMLOCK_ALLOW_INSECURE_HTTP, allowInsecureHttp #1839 (plain http to a farm) changes
src/cli/commands/lease.tsin its connect code, not the grant output: no Depends on. - PRs feat(seed): simlock seed makes and settles a kind's seed #1837, feat(auth): add read-only viewer role for fleet inspection and console #1809, feat(core): core settles quick seeds in the background, one at a time, when the worker is quiet #1770 edit other sections of
reference/cli.mdx: no Depends on.
Written by an agent.
Activity
V3RON commentedon Nov 24, 2026
Design posted: Problem through Existing code (one task, no ADR, no wire change).
Written by an agent.
V3RON commentedon Nov 25, 2026
Spec updated: maintainer approved the design; MCP hint is a
hintfield (Decisions, B2, B3, I3, X3, X12); task #1843 posted (Task cells, Tasks).Written by an agent.
V3RON commentedon Nov 25, 2026
Delivery run
Merged: none
Parked: #1843 — review round 1 incomplete: auto mode refused the reviewer's lens agents (a hook rewrites their input); PR #1847 built and audited, still a draft
Waiting: none
Decided: none
Written by an agent.
V3RON commentedon Nov 25, 2026
Delivery run
Merged: none
Parked: #1843 — R8 and R9 (test-logic) open at the round cap; PR #1847 draft
Waiting: none
Decided: #1843 —
escapeControland the 1024 cap in I2/I3 → spec corrected, code unchangedWritten by an agent.
feat(cli): slim lease hint line in simlock lease and lease_simulator (#…
github-actions commentedon Nov 25, 2026
Closing: all 1 sub-issues are closed. The PR that closed the last one walks the completion conditions (delivery rule 9); reopen this if one does not hold on
main. Flip its ADRs to Accepted if delivery has not.V3RON commentedon Nov 25, 2026
Delivery run
Merged: #1847 (#1843)
Parked: none
Waiting: none
Decided: #1843 —
escapeControlon category names and a length cap on the MCPhint→ neither (confirmed by the maintainer; pending marks removed from I2/I3 and the #1843 Rules line)Written by an agent.