End a lease after an operator-set time without device use
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- api, backend, cli, mobile-dev
Rechercherichtung
Start with ADR 0094 and the behavior table, then read the implementation tasks linked in the issue, especially #1907. The issue names config validation in src/core/config-validators.ts, lease management through createLeasing, and dispatchers in src/daemon/dispatcher-exec.ts and dispatcher-devices.ts. Done means the completion conditions hold across workers, gateways, CLI, MCP, agent-device, and console, including idle expiry, reporting, and configuration.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Request: #1553
Problem
A lease stays alive for as long as its holder renews it, and the holders renew on a timer: the MCP server for as long as the agent's session is open, a held simlock lease for as long as it runs, the agent-device front for as long as agent-device heartbeats. A renew says the holder's process is alive, not that anyone uses the device. An agent that finished its work and waits for a person, or forgot to release, keeps a booted simulator for hours, while other agents queue for that capacity.
In the reporter's words: "A client that keeps renewing its lease can leave an unused simulator running for hours. We run coding agents with leased simulators, and want unused devices to release capacity."
Who it is for
Operators of a worker shared by coding agents, local or behind a gateway, who see devices held by agents that stopped using them.
Outcome
- A worker ends a lease whose device has not been used for its idle limit, 30 minutes by default, even while the holder renews.
- The operator changes the limit, or turns it off with
0, in the worker's config. - Anyone who can see a lease sees when its device was last used and when the idle limit will end it.
- A holder whose lease ended this way is told so in plain words, with reason
idle, and knows to lease again.
How it works for the user
sequenceDiagram
participant A as Agent (MCP / CLI / agent-device)
participant W as Worker
A->>W: lease
W-->>A: granted (idle clock starts)
loop while the agent works
A->>W: command, input, agent-device command
W-->>W: idle clock starts again
end
loop agent waits, holder renews
A->>W: lease.renew
W-->>A: renewed (idle clock unchanged)
end
W-->>W: 30 min without use
W-->>A: lease-lost, reason idle
A->>W: next command
W-->>A: lease ended: its device was not used for the worker's idle limit; lease again
Before, a held CLI lease that nobody uses:
$ simlock lease --platform ios
{"lease":{"id":"lease-7f3a",...}}
# hours pass; the lease is renewed and never ends
After:
$ simlock lease --platform ios
{"lease":{"id":"lease-7f3a",...}}
# 30 minutes without a command on the device
{"push":"lease-lost","deviceId":"…","leaseId":"lease-7f3a","reason":"idle"}
$ echo $?
14
simlock status while the lease lives (times in ms, as the line prints them today):
Lease lease-7f3a: agent since 1795770000000, last renewed 1795771500000, last used 1795771325000, idle end 1795773125000
An agent-device command after an idle end:
$ agent-device snapshot
lease ended by simlock: its device was not used for the worker's idle limit; run disconnect, then open
Examples
What resets the idle clock (B3, B4, B5):
| Call on the lease | Today | After |
|---|---|---|
device.exec (simlock simctl through a gateway, MCP run_on_device, HTTP exec) |
no effect | resets; counts while it runs |
device.rotate (MCP rotate_device, simlock rotate) |
no effect | resets |
| a tap, key or button on the lease's input socket | no effect | resets |
| an agent-device command on the lease, local or relayed | no effect | resets; counts while it runs |
local simlock simctl / simlock adb on the worker |
no effect | holds every lease the same requester holds on that worker in use until the command exits |
| the same from an older CLI that sends no requester | no effect | no effect |
lease.renew, an agent-device heartbeat |
renews | renews; idle clock unchanged |
lease.get, lease.list, status.get, MCP lease_status |
read | read; idle clock unchanged |
watching /v1/leases/{id}/stream |
no effect | no effect |
bytes on a tunnel connection to the emulator's adb port (simlock tunnel emulator adb) |
no effect | resets |
| bytes on a port tunnel connection (reverse or forward, e.g. Metro), also in a session that tunnels adb too; lease file upload or download | no effect | no effect |
lease.idleAfterMs values (B1):
| Value | Today | After |
|---|---|---|
| key absent | — | 1800000 (30 min) |
0 |
refused: unknown key | off: no idle end |
60000 |
refused: unknown key | ends a lease 1 min after its last use |
2147483647 |
refused: unknown key | accepted (the longest timer) |
59999, 2147483648, -1, 1.5, "30m" |
refused: unknown key | refused, as other bad config values are |
What could go wrong
- An agent that drives its simulator only with tools simlock does not see (
xcodebuild test, Detox or Maestro on the UDID, a person at the Simulator window) for more than 30 minutes loses its lease. Likely for long localxcodebuild testruns; running the test throughsimlock simctl/simlock adbkeeps it inside an agent session or withSIMLOCK_AGENT_IDset (elsewhere each CLI call is its own requester), and the operator can raise the limit or set0. - A local
simlock adb logcator an opensimlock adb shellleft running keeps its requester's leases for as long as it runs, as a running command does. - A person who only watches a lease's screen in the console, for a long run started outside simlock, sees the lease end; the viewer says why.
- An upgrade turns the limit on for every worker. Leases held at the upgrade get a full 30 minutes from the restart.
- Through a gateway the last-use time shown can lag the worker's by up to one view refresh.
Words used
- idle limit: how long a lease may go without use before the worker ends it;
lease.idleAfterMs, e.g. 30 minutes. - use: a call that acts on the leased device: a command, input, rotation, an agent-device command, a local
simlock simctl/adbcall by the lease's requester, or bytes through anemulatortunnel. A renew, a read, watching the stream, a port tunnel and lease files are not use. - idle clock: the time since the lease's last use, or since its grant or the daemon's start if it has not been used since.
- idle end: a lease ended because its idle clock passed the idle limit; its reason is
idle.
Non-goals
- Suspending an idle lease and keeping its data (#1554); this feature only ends it.
- Keeping warm spares shut down (#1555).
- Seeing use from tools that bypass simlock (screen changes, device activity, host processes).
- A per-lease idle limit, or a lease request that changes it.
- A warning before the idle end, and any call that only resets the idle clock.
- A gateway-wide idle limit: each worker's own config applies.
Completion conditions
- With the defaults, a lease that is renewed but not used for 30 minutes ends with reason
idle, and its device is reclaimed. - A lease whose holder sends a command, input or an agent-device command at least once every 30 minutes stays, and a single command that runs longer than 30 minutes does not end it.
- With
lease.idleAfterMs: 0no lease ends for being idle. simlock status(and--json),simlock list --leases, MCPlease_statusand the console show the last use time and the idle end time of a live lease, and the console's Inbox lists a lease about to end idle.- A held
simlock lease, an MCP session, an agent-device command and the console's screen viewer each report an idle end with reasonidleor the idle message. - The same holds for a lease taken through a gateway.
Open questions
none
Decisions
- ADR 0094 — A worker ends a lease whose device goes unused (PR #1902): the idle clock beside the TTL, what counts as use, on by default, operator only, kept in memory.
- Decided with the maintainer: on by default at 30 minutes; only the operator sets it; watching the stream does not count; port tunnels do not count,
emulatortunnel traffic does; a localsimlock simctl/adbcommand holds every lease its requester holds in use until it exits, the CLI keeping its daemon connection open for that; a command on a lease that ended idle is answered with the idle message, other endings as today. - Decided in the session: lease files do not count, because they do not act on the device; an install that follows an upload is the command that counts.
- Decided in the session:
driver.passthroughgains an optionalrequesterId(I8), because locally every session's principal isagentand only the requester tells two agents apart; without it a call stamps nothing. - Decided in the session: physical phone leases follow the same rule, because an idle phone is the scarcest device to hold.
- Decided in the session: a command counts for as long as it runs, so a long test run is never ended mid-way.
- Decided in the session: a daemon start begins every restored lease's idle clock again, so nothing about use is stored.
- Decided in the session: an idle end is
lease.releasedwith reasonidle, not a new event, so the history and every reader of the reason follow. - Decided in the session: through a gateway the last-use fields are the worker's as of the gateway's last view of it, because gateway reads answer from views.
- Decided in the session: the agent-device front's ended-lease message and MCP's next answer name the idle reason without the number, because the push does not carry the limit.
- Decided in the session: the worker remembers a lease that ended idle for
lease.maxTtlMs, at most 1024 ids, because a gateway still routes a dropped lease's calls that long. - Decided in the session: the Inbox lists a lease about to end idle as
ending, by the same rule as the TTL, because otherwise a renewed lease just disappears. - Decided in the session: the gateway's agent-device front counts nothing; the worker's relay target counts relayed commands, because the gateway holds no idle clock.
Behaviours
| Id | Behaviour (invoker, action, what it sees) | Seam | Cases | Task |
|---|---|---|---|---|
| B1 | An operator sets lease.idleAfterMs; config get shows it, and a bad value is refused at start |
config load (src/core/config-validators.ts) and config.get |
absent → 1800000; 0; 60000; 2147483647; 59999, 2147483648, -1, 1.5, "30m" refused |
#1907 |
| B2 | A lease that is renewed but not used for the idle limit ends with reason idle; the device is reclaimed, lease.released reason idle is emitted and the holder gets lease-lost reason idle |
createLeasing with a fake clock and fake driver |
renewed every TTL/3 for 31 min → ended idle at 30 min; limit 0 → never; TTL passes first → expired; released first → no idle end; physical lease → idle, the phone reclaimed as on any end; restored at start → ends 30 min after the start |
#1907 |
| B3 | A device.exec or device.rotate on the lease restarts its idle clock; a running exec holds it until it ends, a refused one at once |
daemon dispatcher (src/daemon/dispatcher-exec.ts, dispatcher-devices.ts) |
exec at 20 min → ends at 50 min; exec running from 10 to 45 min → ends at 75 min; exec refused PASSTHROUGH_REFUSED at 20 min → ends at 50 min, inUse cleared; rotate at 20 min → 50 min; exec on an unknown lease → UNKNOWN_LEASE, nothing stamped |
#1907 |
| B4 | A local simlock simctl / simlock adb holds in use every lease its requester holds under the caller's principal, from the resolution until the CLI's connection closes; the CLI closes it when the command exits |
CLI passthrough command over a fake daemon, and daemon driverPassthrough |
requester holds one lease → in use while the command runs, clock restarts at exit; holds an iOS and an Android lease → both; command runs 10–45 min → ends at 75 min; CLI killed → connection closes, clock restarts; CLI outside an agent session with no SIMLOCK_AGENT_ID → sends no requesterId, nothing; another requester's lease → untouched; no requesterId → nothing; refused tool → nothing, connection closed; invalid requesterId → BAD_REQUEST, nothing |
#1907 |
| B5 | An input message on the lease's input socket, and bytes from the caller through an emulator tunnel, restart its idle clock; opening a socket, a port tunnel, the stream and renews do not |
input worker link (src/input/sessions.ts), tunnel session (src/tunnel/sessions.ts) |
tap at 20 min → 50 min; input socket open, no message → 30 min; dropped bad frame → 30 min; DATA on an emulator-port connection at 20 min → 50 min; reverse tunnel DATA at 20 min → 30 min; reverse tunnel DATA in a session that also tunnels adb, adb idle → 30 min; renew at 20 min → 30 min |
#1907 |
| B6 | An agent-device command on a lease restarts its idle clock and holds it while it runs; a heartbeat, an allocate and a release do not | agent-device worker (createWorkerWith, front runCommand and agentDeviceRelayTarget) |
local command at 20 min → 50 min; command streaming 10–45 min → 75 min; relayed command from a gateway at 20 min → 50 min; heartbeat at 20 min → 30 min; the gateway's front → counts nothing | #1908 |
| B7 | An agent-device command, local or relayed, on a lease that ended idle answers I5; one on a lease ended another way behaves as today | agent-device worker | ended idle → I5, nothing forwarded; ended explicit / expired → forwarded as today; idle id older than lease.maxTtlMs → forwarded as today; 1025th idle end → oldest forgotten |
#1908 |
| B8 | Every lease record the worker answers carries I4 | daemon dispatcher | lease.get, lease.list, list.get kind=leases, status.get, renew answer, grant answer; never used → no lastUsedAt, idleDeadline = clock start + limit; used → both; use running → inUse: true, no idleDeadline; limit 0 → neither idleDeadline nor inUse; through a gateway → the worker's values as of its view |
#1907 |
| B9 | The history keeps idle as an ended lease's reason, and the usage ledger and its CSV show it |
usage projection (src/history/projections/usage/projector.ts) |
lease.released reason idle → ledger endReason: "idle"; an unknown reason → still null |
#1907 |
| B10 | simlock status prints last use, in use and idle end on each lease line; --json and simlock list --leases carry I4 as answered |
CLI formatStatus (src/cli/format.ts:268) |
used; never used; in use; limit off | #1909 |
| B11 | MCP lease_status shows last use and idle end; after a lease-lost reason idle, the next tool that needs the lease answers I6 |
MCP server tools | live lease; after reason idle → I6; after other reasons → today's answer; after a new lease → today's answers |
#1909 |
| B12 | The console shows "last used" and the idle countdown on the lease list and drawer, lists a lease about to end idle in the Inbox as ending with its idle time left, and its screen viewer says why an idle-ended stream stopped |
console model (ui/src/model/leases.ts, ui/src/model/inbox.ts), src/contract/inbox.ts, ui/src/data/stream.ts |
used; never used; in use; limit off; idle end nearer than TTL → Inbox ending, time left from idleDeadline; TTL nearer → as today; stream end reason idle → I9 |
#1909 |
Stored state
| Id | What and where | Created, changed, deleted by | Listed or swept by | A restart mid-step leaves | Schema step | Task | Used by |
|---|---|---|---|---|---|---|---|
| S1 | In-memory use record per live lease in leasing on the worker: last use time, clock start, running-use count, idle timer | created at grant (lease-lifecycle.ts:117) and at restore (:201-207); changed by I3; deleted at every lease end (#announceEnd) |
read by I3's useView for I4 |
nothing: the next start creates one per restored lease, its clock starting at the start | none | #1907 | #1908 |
| S2 | In-memory set of lease ids that ended idle, in the agent-device worker parts, with each end time | added from beforeDeviceReclaim when EndedLease.reason is idle; dropped after lease.maxTtlMs or as the oldest past 1024 |
read by B7's check | an empty set: a command after a restart is forwarded as today | none | #1908 | — |
history.db stores the reason idle in its existing endReason TEXT column; no schema changes.
Interfaces
| Id | What | Shape and bounds | Errors and limits | Where | Task | Used by |
|---|---|---|---|---|---|---|
| I1 | Config key lease.idleAfterMs |
integer ms; 0 = off, else 60000 to 2147483647 (the timer ceiling the endWaitMs validator uses, config-validators.ts:360-368); default 1800000; in the lease slice of the config schema, types, defaults and validators; read only on a worker |
a bad value fails config load with the validators' usual message | src/contract/config-schemas.ts, src/core/config-*.ts; bumps the protocol by one |
#1907 | — |
| I2 | End reason idle |
added to LeaseReleaseReason, LeaseEndReason, EndedLease.reason, ModuleEndedLease.reason (src/modules/types.ts:56, its type test in src/daemon/module-shapes.test.ts), the lease.released event's reason (EVENTS.md lease.released), END_REASONS (usage/wire.ts:32), the usage endReason type (usage/types.ts:16), the LeaseLostPush reason comment (src/simlock-client/types.ts:133) |
— | src/leasing/lease-release-coordinator.ts:15, lease-lifecycle.ts:50, lease-ports.ts:48, src/bus/index.ts |
#1907 | #1908, #1909 |
| I3 | Leasing's use port LeaseUse: markUsed(leaseId): void, beginUse(leaseId): () => void, beginUseByRequester(principal, requesterId): () => void (every live lease of that requester under that principal, taken at the call), useView(leaseId): { lastUsedAt?, idleDeadline?, inUse? } |
an unknown or ended lease id is a no-op / {}; markUsed only records the time, and the idle timer, when it fires, re-arms to the new deadline if the time moved, so a stream of calls costs no timer work; beginUse's returned function is idempotent, and the clock restarts when the last running use ends |
none thrown | exported from src/leasing/index.ts; given to the daemon dispatcher and, as the by-shape ModuleLeaseUse on WorkerModuleContext (src/modules/types.ts:259, beside inputs, wired in src/daemon/worker-composition.ts:345 and :566, type test in module-shapes.test.ts), to the input, tunnel and agent-device modules; the gateway's module context has none |
#1907 | #1908 |
| I4 | Lease record fields | lastUsedAt?: number (ms epoch, absent before the first use since grant or start); idleDeadline?: number (absent when the limit is 0 or a use runs); inUse?: true (present while a use runs and the limit is not 0); all optional; added by one dispatcher helper to every record the worker answers (B8) |
— | src/contract/lease-schemas.ts leaseRecordSchema; bumps the protocol by one; regenerates website/public/openapi.json |
#1907 | #1909 |
| I5 | agent-device idle message | lease ended by simlock: its device was not used for the worker's idle limit; run disconnect, then open, with leaseEndedByHost's code, details and status |
— | src/agent-device/shared/replies.ts |
#1908 | — |
| I6 | MCP idle answer | Lease <leaseId> ended: its device was not used for the worker's idle limit. Call lease_simulator to lease a device again. |
— | src/mcp/ |
#1909 | — |
| I7 | CLI lease line additions | appended after last renewed <ms>: , last used <ms> when lastUsedAt; , in use when inUse; , idle end <ms> when idleDeadline |
— | src/cli/format.ts:321 |
#1909 | — |
| I8 | driver.passthrough input field requesterId |
optional; the same schema as lease.request's requesterId; the CLI sends the one it resolves for simlock lease (agent-identity), and none when that id is only its own process id (requesterIsProcess, src/cli/environment.ts:369,449), since no lease can match it; it keeps the client open until the spawned command exits (src/cli/commands/passthrough.ts:43-51 closes it after resolving today) |
an invalid one → BAD_REQUEST as on lease.request |
src/contract/operations-leases.ts:85-88; bumps the protocol by one |
#1907 | — |
| I10 | Connection-end signal on a dispatch session | connectionClosed?: AbortSignal on DispatchSession (src/daemon/dispatch.ts), aborted when the socket connection closes (src/daemon/server.ts:550 #closeConnection); absent on HTTP and the uplink, where driver.passthrough with a requesterId holds nothing |
— | src/daemon/dispatch.ts, src/daemon/server.ts |
#1907 | — |
| I9 | Console stream end text for idle |
The lease ended: its device was not used for the worker's idle limit. |
— | ui/src/data/stream.ts:314 ENDED_TEXT |
#1909 | — |
Existing code
Commit 056e29880.
Searches: rg ttlDeadline|lastRenewedAt in src/cli src/mcp ui/src (18 hits); rg "LeaseEndReason =|LeaseReleaseReason =" (2); rg END_REASONS (1); rg "device.exec|device.rotate|leaseInput\(" in src/daemon src/input src/mcp (6); rg runCommand|agentDeviceRelayTarget|leaseEndedByHost in src/agent-device (9); rg endWaitMs (20); rg "inputs:" in src/daemon (3); rg ENDED_TEXT in ui (1); rg isExpiring in src/contract (2).
| Id | Code (path:line) | Today | With this feature | Handled by |
|---|---|---|---|---|
| X1 | src/leasing/lease-expiry-scheduler.ts:22-36 |
one TTL timer per lease | unchanged; the idle timer is a second, separate one | B2 |
| X2 | src/leasing/lease-release-coordinator.ts:167-174, :309-330 |
expire ends with reason expired, guarded by the deadline it was armed for |
an idle end goes through the same #release with reason idle, guarded by the use record's deadline |
B2 |
| X3 | src/leasing/lease-lifecycle.ts:117, :129-144, :175-198, :201-207 |
grant and restore arm the TTL timer; renew moves it; #announceEnd cancels it and emits |
grant and restore also create S1; renew leaves it; #announceEnd drops it |
B2 |
| X4 | src/daemon/dispatcher-exec.ts:74-141 |
deviceExec finds the lease, resolves, runs |
beginUse once the lease is found, ended when the run ends or the resolution throws |
B3 |
| X5 | src/daemon/dispatcher-exec.ts:48-53; src/cli/commands/passthrough.ts:43-51 |
driverPassthrough names no lease; the CLI closes its client right after resolving |
with I8 and I10, beginUseByRequester after a successful resolution, ended on connectionClosed; the CLI closes after the command exits |
B4 |
| X6 | src/daemon/dispatcher-devices.ts:22-38 |
deviceRotate finds the lease and its input |
markUsed once the lease is found |
B3 |
| X7 | src/input/sessions.ts:183-198 |
each parsed message goes to the device input | markUsed for each message passed to the device input |
B5 |
| X8 | src/tunnel/sessions.ts:300-345, :491-500 |
each connection's target is known at its OPEN; onData passes caller bytes to it |
markUsed only for DATA on a connection whose target is the emulator port |
B5 |
| X9 | src/agent-device/front/front.ts:150-180; src/agent-device/gateway.ts:127-149 |
runCommand forwards with no ended check; the same front runs on a gateway |
on a worker: S2 check (B7), then beginUse ended with the same end; on a gateway: no use port, nothing counted |
B6, B7 |
| X10 | src/agent-device/worker.ts:68-86 |
a relayed call is forwarded with no classification | classified as the front does; a command on a lease: S2 check, then beginUse until its body ends |
B6, B7 |
| X11 | src/agent-device/worker.ts:172-177; src/agent-device/shared/replies.ts:13-25; src/agent-device/front/heartbeat.ts:60,95,283, boot.ts:29,46 |
beforeDeviceReclaim calls lease ends and link.forget; heartbeat and boot answer LEASE_ENDED_MESSAGE |
also adds an idle end to S2; heartbeat and boot unchanged | B7 |
| X12 | src/daemon/dispatcher-leases.ts:109-155, src/daemon/dispatcher-device-views.ts:12-16 (leasesFor, feeding status.get and the worker view), src/daemon/dispatcher-status.ts:83-88 (list.get kind=leases), src/leasing/lease-lifecycle.ts:117, :129-145 |
records leave as the registry holds them; the schema strips unknown fields | each goes through the one I4 helper | B8 |
| X13 | src/contract/status-schemas.ts:451, src/contract/worker-view.ts:112 |
worker status carries records into the gateway's view | I4 rides along unchanged | B8 |
| X14 | src/history/projections/usage/projector.ts:299-300 |
an unknown reason is stored as null |
idle is kept |
B9 |
| X15 | src/cli/format.ts:319-322 |
lease line ends last renewed <ms> |
I7 added | B10 |
| X16 | src/mcp/session.ts:554-566 |
lease-lost notice with the reason string | the session keeps the last idle end and answers I6 | B11 |
| X17 | ui/src/model/leases.ts:156-169, src/contract/inbox.ts:158-163, ui/src/model/inbox.ts:118-137, ui/src/data/stream.ts:314-329, ui/src/state/screen.ts:238-241 |
TTL countdown and "renewed ago"; Inbox ending listed and timed by ttlDeadline only; no text for idle, so the viewer reopens a gone lease |
"last used" and idle countdown; Inbox listed and timed by the nearer deadline; I9 shown, no reopen | B12 |
| X18 | website/src/content/docs/docs/concepts/leases.mdx:36-57, using-devices/keep-a-device.mdx:17,118, using-devices/build-and-run.mdx:71-89, screen-and-input-api.mdx:44,151, using-devices/agent-device.mdx:212, reference/configuration.mdx, reference/events.mdx, reference/cli.mdx (simlock status), reference/mcp-tools.mdx, docs/internal/EVENTS.md |
"Only renewing keeps a lease alive", "Nothing else releases a lease", the reasons lists, the ended message | the idle limit, what counts as use, reason idle, the new messages |
#1907, #1908, #1909 |
Tasks
flowchart LR
A[#1907 idle clock and end] --> B[#1908 agent-device]
A --> C[#1909 status, MCP, console]
- #1907 Idle leases: a worker ends a lease whose device goes unused — an operator's worker ends unused leases after 30 min (or the set limit), and every lease record shows its last use and idle end. Risk: a lease in active use is ended, or a forgotten one never is.
- #1908 Idle leases: agent-device commands count as use and get the idle message — agents working through agent-device keep their lease, and learn why it ended. Risk: an agent-device agent loses a lease it uses, or sees the wrong message.
- #1909 Idle leases: status, MCP and the console show last use and the idle end — people and agents see when a lease will end idle and why it ended. Risk: a wrong last-use time, or an idle end that reads as an unexplained loss.
Completion conditions:
- Renewed but unused lease ends
idleand is reclaimed: #1907. - Used leases stay; a long command does not end one: #1907 (commands, input, local passthrough), #1908 (agent-device).
lease.idleAfterMs: 0ends nothing: #1907.simlock status,list --leases, MCPlease_status, the console and the Inbox show last use and idle end: #1907 (fields), #1909 (display).- Each holder reports an idle end: #1907 (CLI
lease-lostreason), #1908 (agent-device), #1909 (MCP, console viewer). - Through a gateway: #1907 (view fields), #1908 (relayed commands).
Open work in the same area:
- #1900 → #1901 → #1904 → #1905 → #1906 and #1134 (tags, token expiry, handed-over leases; task:ready): change contract shapes and the protocol range,
DispatchSession,leasesForand the agent-device front; #1907 depends on #1905 and #1134, #1908 on #1906. - #1554 Suspend an idle lease: builds on ADR 0094's idle clock; no Depends on, as it is a request with no feature yet.
- #1555 Keep a prepared warm spare shut down: warm pool only, shares nothing.
- #1688 Slim: a lease declares the capabilities it needs (request): changes
lease.request, not the lease record; none. - #1153 / #1154 Settings through the daemon (task:draft): would let
lease.idleAfterMschange live; none, as neither is ready.
Written by an agent.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 730
- Forks
- 44
- Ø Merge
- 16 Std. 13 Min.
- Gemergte PRs (30 T.)
- 387
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus callstackincubator/simlock
-
bug:new
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 69/100
callstackincubator/simlock#1986 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug:new
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
callstackincubator/simlock#1979 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
process-runner.test.ts fails four tests when a child starts 1 to 3 s lateEvtl. vergeben @V3RON hat das heute übernommen. Offenbug:new
callstackincubator/simlock#1985 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug:new
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 74/100
callstackincubator/simlock#1984 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
iOS runCommand passes timeoutMs to spawn, which ignores it, and its comment relies on that backstopOffenbug:new
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 57/100
callstackincubator/simlock#1980 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in callstackincubator/simlock
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
audacity/audacity.github.io#118 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
crxjs/chrome-extension-tools#1261 ·
-
Resources: Update work of fuzhouEvtl. vergeben @rmt-svc hat das heute übernommen. Offenresources
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
railmapgen/rmp-gallery#4245 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
mike-north/AgentMonitors#717 ·
Maintainer antworten meist innerhalb von 1 Tag