refactor: remove the unwired managed-local device allocation (follow Simlock's lease-and-point design)

Merged
TH
2mo ago
+225-9861

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-env and drives the device through ordinary local runtimes (--ios-simulator-device-set "$SIMLOCK_IOS_DEVICE_SET" for iOS; the daemon inherits ANDROID_ADB_SERVER_PORT for Android).

Removes the never-activated foundations:

  • the managed-allocation package, managed request admission and reachability, and the managed-local runtime owner
  • the managed-local owner kind, managed binding fence and managedDevice scope in contracts
  • allocator-held device claims (schema 3) and their device status/release --stale rendering
  • managed branches in Android deployment/readiness and Apple simulator readiness

Released v0.21.24 could decode or print these shapes, but no shipped path produced them. A persisted managed-local envelope now decodes as unreattachable, and a schema-3 claim as inconsistent; 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 main 19203c620): pnpm check:affected --run passed (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