Repository navigation
refactor: remove the unwired managed-local device allocation (follow Simlock's lease-and-point design) - #3372
Conversation
|
Size Report
Startup median (7 runs, lower is better):
|
There was a problem hiding this comment.
All reported issues were addressed across 122 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
cda5c8b to
020e971
Compare
|
The removal looks right at 020e971. Nothing in a shipped path produced these shapes, and a saved One leftover: the Android private-adb-server lane in adb-provider-scope.ts is now dead too. The only production caller that set a construction-time Not blocking: ADR 0021 §3 says SDK callers can pass The earlier CI runs were cancelled when this push replaced them, and the new run is still going. There are no conflicts. |
Simlock closed its side of ADR 0021's in-process allocator integration (simlock#70, not planned): agents now lease a device themselves and point agent-device at it. The agent-device foundations for the old design never ran in a shipped production path, so they go: - the managed-allocation package (operation journal, store, records, decision), managed request admission and reachability, and the managed-local runtime owner with its gateway registration - the managed-local RuntimeOwnerRef kind, the managed binding fence, and PlatformRequestScope.managedDevice from contracts; capture-kit no longer decodes a managed-local owner, so such an envelope is unreattachable - allocator-held device claims (schema 3): admission, conflicts, inspection classifications, settlement, session-open refusal, and the `device status`/`release --stale` allocator rendering; an unknown-schema record stays inconsistent and is never released as stale - the managed device scope in Android deployment and readiness and Apple simulator readiness Ordinary local runtimes, process-owned claims, simulator-set scoping and the Android private-server transport are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ADR 0021 now records the replacing decision: agents lease devices from Simlock and drive them through ordinary local runtimes, with --ios-simulator-device-set for iOS and the daemon's ANDROID_ADB_SERVER_PORT for Android. The withdrawn Host design is summarized for git-history recovery. ADR 0007 drops its managed-device durability amendment, ADR 0029 stops naming the removed Host, ADR 0033 gains a dated note that rows citing the removed package no longer bind, and the glossary drops the managed-allocation terms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…was later deleted Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pins and export exemption Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
020e971 to
71f0ab2
Compare
|
Note: I reviewed 020e971. The branch now sits at 71f0ab2, which carries the same four commits rebased onto the updated chore/fallow-3, so the review below still applies, and the CI ask now means a completed green run at 71f0ab2. The code in 020e971 looks right to me, but I can't call it ready yet: CI at this head has not finished. The 11 non-passing jobs show cancelled, not failed, because the push of 020e971 replaced those runs. This change deletes a workspace package, its lockfile entries, tsconfig references and fallow entries, so it touches every listed route (typecheck, lint, repo guards, fallow, unit and integration, bundle size). Please get a completed green run at 020e971 before merge. I did not run the tests or Not blocking, take or leave: (1) The only production code that set a construction-time Is the scope-level Android The cubic-dev-ai P2 thread on the 0033 decision table is fixed at this head, because the dated 2026-10-10 note now also covers the |
Summary
Simlock closed its half of ADR 0021's in-process allocator integration (simlock#70, not planned) in favor of agents leasing devices themselves. agent-device follows: an agent runs
simlock lease … --export-envand drives the device through ordinary local runtimes (--ios-simulator-device-set "$SIMLOCK_IOS_DEVICE_SET"for iOS; the daemon inheritsANDROID_ADB_SERVER_PORTfor Android).Removes the never-activated foundations:
managed-allocationpackage, managed request admission and reachability, and the managed-local runtime ownermanaged-localowner kind, managed binding fence andmanagedDevicescope in contractsdevice status/release --stalerenderingReleased v0.21.24 could decode or print these shapes, but no shipped path produced them. A persisted
managed-localenvelope now decodes as unreattachable, and a schema-3 claim asinconsistent; tests cover both. ADR 0021 is rewritten to the replacing decision, and ADRs 0007, 0029 and 0033 plus the glossary are updated. Codex reviewed the plan and the diff.122 files, +225/−9,861 (production: +53/−4,935). This exceeds the 1,000-line budget because it is almost entirely deletion.
Validation
Tested
71f0ab2db(rebased on main19203c620):pnpm check:affected --runpassed (full check set). Ordinary paths keep their coverage: device claims (92 tests), contracts/gateway/binding (122), and Android/Apple platform (2,086). This is a dead-path removal, so no live device run applies.🤖 Generated with Claude Code