Skip to content

feat(core,ios,android,contract,daemon,cli,client,http): simlock component list shows every installed component, its size, and who installed it - #229

Merged
V3RON merged 3 commits into
mainfrom
task/220
Oct 2, 2026
Merged

V3RON merged 3 commits into
mainfrom
task/220

Conversation

@V3RON

@V3RON V3RON commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Closes #220

simlock component list [--platform] lists every installed iOS runtime image and Android system image. Each entry has its variant, its size, whether Simlock installed it (installedAt when it did), Simlock's own devices of that version, and foreign devices. It is the agent read component.list, also listComponents on the client and GET /v1/components. A gateway answers UNSUPPORTED_IN_GATEWAY_MODE.

Each driver gains listComponents(). It builds receipts with the same function as findComponent and installComponent. ComponentInstaller.list compares them to the records with sameReceipt.

Not in the spec:

  • A record counts only for its own platform.
  • If a foreign-device read fails, that driver's listing is rejected rather than undercounted, so the platform is left out and logged. Missing files count as nothing.
  • On Android, an AVD home that is Simlock's own root (a daemon started from a lease's environment) counts no foreign AVDs.
  • Versions are ordered as numbers, so 9 comes before 35.
  • New DriverCatalog.select(platform?), which listCatalog now uses too. New Filesystem.directorySize, which does not follow symlinks.
  • The installer takes an optional logger.

Done when

  • Real machine, simlock component list: not run. It reads the user's ~/.simlock daemon and needs the maintainer's go-ahead.
  • e2e with the fake driver: e2e/component-list.test.ts. A component installed with component install is listed as Simlock's, and one scripted as present is not. An agent session can list.
  • pnpm check is green: 2472 unit tests and 69 fake-lane e2e tests.

Review

Spec review: 5 findings, 1 fixed; round 2: 5 findings, 1 fixed. Code review: 10 findings, 8 fixed; round 2: 6 findings, 4 fixed.

Rejected:

  • The real-machine Done-when line is not delivered. It needs the maintainer's go-ahead, so it is left unchecked above.
  • DriverCatalog.select is not in the spec. The installer must ask every driver, and listCatalog now uses the same function, so there is still only one.
  • Requiring a record's platform to match is not in the spec. Receipts are opaque, so two drivers could produce equal ones, and one platform's record must not prove another platform's component.
  • The iOS test puts no device in Simlock's set. The driver never reads that set, and the scripted runner fails any call to it. That is the proof.
  • Pre-root registry devices count in both devices and foreignDevices. Counting them twice can only make removal refuse, which is the direction ADR 0010 §8 asks for.
  • A failed foreign-device read drops the whole platform, which the spec did not ask for. An undercount would let removal pass, and leaving the platform out makes removal refuse.
  • Numeric version order is not in the spec. The spec names the sort keys but not how to compare them, and numeric order keeps 9 before 35.
  • A failed driver gives an empty list that looks like "nothing installed". The spec says to leave it out and log it, which is what happens.
  • Xcode-bundled iOS runtimes are not listed. The spec lists from simctl runtime list -j images only, and Simlock never installs or removes bundled runtimes.

Written by an agent.

V3RON added 3 commits October 2, 2026 14:26
…nent list shows every installed component, its size, and who installed it

Closes #220
… foreign AVD, and the device-list shape check is tested
@V3RON
V3RON merged commit 1150ce2 into main Oct 2, 2026
14 checks passed
@V3RON
V3RON deleted the task/220 branch November 6, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

simlock component list shows every installed component, its size, and who installed it

1 participant