Skip to content

Re-sync the iOS slim label list to simslim v0.14.0 #1328

Closed

Description

@V3RON

Part of #1326.

Scope

Simlock's iOS slim label list matches simslim v0.14.0. A slim device also turns off the new mdm category, on a worker whose slim set includes it (every worker that leaves ios.slim.categories unset), and two more other services. An operator can name mdm in ios.slim.categories.

In short

The list of services a slim simulator turns off moves from simslim v0.13.0 to v0.14.0: one new category, mdm (device management: com.apple.remotemanagementd, com.apple.RemoteManagementAgent, com.apple.managedassetsd), and two more labels in other (com.apple.accessibility.axassetsd, com.apple.ClipServices.clipserviced). Nothing else in the list changes.

flowchart LR
  A[ios.slim.categories] --> B["slim-labels.ts<br/>(v0.13.0 → v0.14.0) *changed*"] --> C[overrides file before boot] --> D[boot, read back]
Loading
ios.slim.categories Today After
unset 15 categories, 168 distinct labels off 16 categories, 173 distinct labels off
[mdm] mdm unknown: nothing to slim, device granted full 3 labels off, device slim
[other] 14 labels off 16 labels off
[store] as today as today

If this goes wrong, a slim device fails its readback and is granted full, or a test that needs device management or App Clips breaks on a host with the set unset.

Technical spec

Facts

Commit 034ddb9.

# Fact Source
F1 slim-labels.ts is copied from simslim profiles.go at d594c230… (v0.13.0) src/drivers/ios/slim-labels.ts:3-8 at 034ddb9
F2 simslim v0.14.0 (7e374b38) profiles.go has mdm at line 345 between telemetry (325) and other (357), labels at 351-353 gh api 'repos/MobAI-App/simslim/contents/profiles.go?ref=v0.14.0', lines 345-353
F3 v0.14.0 other description "Wallet, App Clips, business services, assets, and miscellaneous background daemons." and labels end with axassetsd, clipserviced (lines 377-378) same file, lines 357-379
F4 profiles.go is the same at the #66 merge ab8ce9f and at v0.14.0: the compare lists no profiles.go gh api repos/MobAI-App/simslim/compare/ab8ce9f...v0.14.0 → CLAUDE.md, README.md, cmd/simslim/main.go, launchd_batch_test.go, watch*.go
F5 Between v0.13.0 and the #66 merge, only mdm and other differ: 15 → 16 categories; 174 → 179 label entries, 168 → 173 distinct labels (labelsFor dedupes; device.slimmed labelCount counts distinct labels, src/drivers/ios/index.ts:1309) the session's scripted compare of profiles.go at d594c230 and ab8ce9f (spec-explorer, simslim area)
F6 Simlock's other today: description without "App Clips", 14 labels src/drivers/ios/slim-labels.ts:269-286
F7 resolveSlimCategories(undefined) returns every category of SLIM_CATEGORIES src/drivers/ios/slim-labels.ts:297-303
F8 An unknown configured name goes to unknown; if none is known, the boot is skipped as no-categories and the device is granted full src/drivers/ios/index.ts:1228-1233, :1167-1168
F9 The test pins "matches simslim v0.13.0" src/drivers/ios/slim-labels.test.ts:19
F10 Docs list the 15 names as complete website/src/content/docs/docs/reference/configuration.mdx:196, website/src/content/docs/docs/worker/capacity.mdx:121
F11 ADR 0060 §6 pins the list to v0.13.0; ADR 0066 §6 moves it to v0.14.0 docs/internal/adr/0060-…md:154-160; ADR 0066 §6 (PR #1327)
F12 VENDORED-CODE.md has no row for the simslim data docs/internal/VENDORED-CODE.md inventory and "not vendored" tables (no simslim match)
F13 simslim's forbiddenLabels (15) are in no Simlock category, and none of the Watch companion labels the request names (NPKCompanionAgent, appconduitd, pairedsyncd, bulletindistributord, eventkitsyncd) is simslim@ab8ce9f:profiles_test.go:9-28; `grep -E 'NPKCompanionAgent
F14 NEVER_DISABLE_LABELS (assistantd, gamed, sharingd) equal simslim's AlwaysEnabled src/drivers/ios/slim-labels.ts:326-330; simslim@ab8ce9f:profiles.go:85-89, 275-279, 317-321

Modules touched

Searches: SLIM_CATEGORIES, v0.13.0, d594c230, the 15 category names in website/ and docs/.

  • src/drivers/ios/slim-labels.ts (data and header), slim-labels.test.ts
  • src/drivers/ios/AGENTS.md (nothing names v0.13.0 there; checked)
  • website/src/content/docs/docs/reference/configuration.mdx, website/src/content/docs/docs/worker/capacity.mdx
  • docs/internal/VENDORED-CODE.md: an inventory row for the simslim data inside one of our own files (src/drivers/ios/slim-labels.ts), as the idevice row does for one string, sanctioned by ADR 0060 §6 and ADR 0066 §6

Contract and event changes

None. ios.slim.categories takes any strings today (definition.ts:31); device.slimmed already carries the category names and label count.

Other code on the same state

Searched SLIM_CATEGORIES (index.ts, slim-labels.ts, tests) and resolveSlimCategories (index.ts:1229). The overrides write sets every managed label, so a seed's copied disabled.plist written under v0.13.0 is rewritten at the copy's prepare boot (ADR 0060 §1). A warm slim device prepared before the upgrade stays ready across a restart and is granted slim with the five new labels still running until it is deleted; harmless (more runs, not less), no action. T2 and T3 read the category names (feature Shared values, "Category names").

Failure modes

Call Outcome What happens Limit, counted from
prepare boot with the new labels a new label not honoured by a runtime readback mismatch → granted full, as today (F8's sibling path, index.ts:1290-1300) 120 s readback, as today

No Tests line: the readback rule is unchanged and covered by existing index.test.ts readback cases.

Rules in play

  • ADR 0066 §6, "re-synced from simslim's profiles.go at v0.14.0 (7e374b38), keeping its MIT notice": the header names that commit.
  • ADR 0060 §6, "Category names do not change": narrowed by 0066; existing names keep their spelling.
  • documentation rule 9: the two pages that list the names list 16.

Tests

Seam: src/drivers/ios/slim-labels.ts, modelled on slim-labels.test.ts.

  • An operator slims with the unset slim set and gets every v0.14.0 category, mdm and the two new other labels included: cases unset set (16 categories, 173 distinct labels, mdm labels and the two other labels in labelsFor), set naming mdm (exactly its 3 labels). Extends slim-labels.test.ts "matches simslim v0.13.0", renamed to v0.14.0.

Done when

  • slim-labels.ts's categories, descriptions and labels equal simslim v0.14.0's Categories, in order; the header names 7e374b38 (v0.14.0).
  • pnpm exec vitest run --project unit src/drivers/ios/ passes.
  • The website's configuration and capacity pages list 16 names, mdm included.
  • VENDORED-CODE.md has an inventory row for the simslim data.
  • On a Mac with an iOS 18.5 or newer runtime: e2e/slow-ios-slim.test.ts (it runs on the newest installed runtime; its ALL_LABELS comes from SLIM_CATEGORIES) passes, so the five new labels read back as written (slow lane).

Out of scope

  • Any label outside simslim v0.14.0's list (the request's Watch companion and forbiddenLabels traps).
  • Per-lease categories (T3).

Depends on

Written by an agent.

Activity

  1. added
    task:draftScope written; technical spec or its spec check missing.
    on Nov 5, 2026
  2. added
    task:readySpec checked. An agent may implement it once its Depends on allow.
    and removed
    task:draftScope written; technical spec or its spec check missing.
    on Nov 5, 2026
  3. self-assigned this
    on Nov 5, 2026
  4. added a commit that references this issue on Nov 6, 2026
    3cd670a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

task:readySpec checked. An agent may implement it once its Depends on allow.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions