Repository navigation
Description
What this is
The implementation home for the feature-composition plan for the ID binary, prioritized by Drew 2026-11-23 (~21:27 CST) together with the Roc platform composer design it builds on.
Plan of record (landed): doc/2026-11-24T03-36-48Z_design_id-feature-composition/ — https://github.com/developing-today/code/tree/main/doc/2026-11-24T03-36-48Z_design_id-feature-composition (record PR #14055, merged 6b1f96b9).
Premise check: the existing feature-architecture design home is #5788 ("feature-leveled build variants on the crate split"), closed 2026-11-05 after its design task completed. This plan succeeds it — it keeps #5788's four levels as the founding profiles and revises what that design left open (§0.2 of the record). This issue is the open implementation tracker; #5788 stays closed as the predecessor record.
Shape of the plan
- Core: a plain, dumb client — local identity, basic store, provider link, CLI — with everything else behind features (§3 of the record).
- Feature catalogue: curated opt-in features with declared dependencies and exclusivity groups; alternate stores are the named mutually exclusive group (§4).
- Profiles:
plain(the user download),full(curated all-on server build — a profile, not--all-features),basement(headless),embedded(library only), plus served-environment compositionscomposer-host,alt-store-node,hosted-edge; every build is named by its composition hash (§5–§6). - The Roc platform composer is one feature of this binary (
roc-composer), with its own Rust plan at §8 of the record: manifest schema + canonical CBOR/BLAKE3 hashing first, per-target composability certification, the universal host never a production artefact, registry graduation/revocation at the grant layer.
Slices (§10 of the record — plan output, NOT yet queued)
- S1 — Catalogue + manifest + hash, as a design-of-record
- S2 — Feature hygiene
- S3 — The
worldsplit - S4 — The plain profile
- S5 — The full profile + composition stamping
- S6 — Store exclusivity, first alternate
- S7 —
id-composebuild tool + registry - S8 — CI matrix + cross-profile conformance
- S9 — Measurement + budgets
- S10 — Roc Composer v0
- S11 — Roc Composer v1
- S12 — Transport adapter features
- S13 — Hosted/alt-store served profiles
Slices get packetised from this issue when the programme is scheduled; the plan itself enqueues nothing.
Links
- Composer design record: PR docs: Roc platform composer — amendment to the composed-platform design #14029 (
doc/2026-11-24T02-45-34Z_design_roc-platform-composer/) - Design exploration it amends:
doc/2026-11-24T02-09-38Z_research_roc-investigation/platform-design-exploration-2026-11-23.md(Part 3) - Predecessor design: id: design: feature-leveled build variants on the crate split — client-only, server, headless, embedded (from #3447) #5788 (closed)
- Open decisions: §11 of the plan record — recorded there, not taken here.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T03:45:35Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activity
developing-today commentedon Nov 24, 2026
CODE-5163
developing-today-fleet commentedon Nov 24, 2026
Amendment — Drew's refinements to the feature-composition plan (2026-11-23)
Recorded from Drew's direction in the main chat, 2026-11-23 ~22:02 CST, confirming the plan's reading and extending it. These points amend the plan of record (doc/2026-11-24T03-36-48Z_design_id-feature-composition/, PR #14055); the dated record is not rewritten — this comment is the amendment of record.
1. Features gate three distinct acts, not one
The plan's catalogue splits by role, because three different binaries (or three modes of one binary) need three different feature sets:
rustfeature may need to be enabled to compile a platform carrying a capability that needs it.2. Build/run asymmetry is first-class, in both directions
What a binary needs to build a platform and what it needs to run one are different sets, and neither implies the other:
3. Permissions inside ID: three request kinds
Authority lives inside the ID system as app permissions, separate from composability:
Each needs its app permission. A user requesting an app with a specific feature set needs permission to do so, and the feature set must be valid — composable as a platform under the catalogue's rules. Permission and validity are independent checks; either one failing stops the request. (This is the grant side of the composer's narrowing: composition ⊇ declaration ⊇ grant.)
4. Expected deployment shapes (the common cases stay simple)
Most scenarios are one of: (a) servers carrying just what their platform(s) need; (b) servers with everything enabled, able to launch any platform, running many different platforms across many clients; or (c) a mix of the two. Client builds mirror the same selection: e.g. ID as an Android app bakes in the Android platform capability and carries only compatibility layers to run as a terminal, while the ID executable in client form would carry nothing able to execute the Android platform.
5. Game-engine platforms go either way
For engine platforms (the Odin engine platform; the Bevy-based one): either the ID binary runs on the platform — the platform opens the appropriate protocol and has the API client built in, with whatever the capability needs enabled (e.g. physics) — or ID runs as a service and a separate game executable connects to it. The Bevy code itself contains nothing about platforms or Roc: platform handling is handed off to a service (on a laptop or elsewhere), or the platform component is built right into the Bevy app, in which case the ID executable is not used at all.
6. Precompile-first posture, dynamic as the escape hatch
For performance: precompile. ~90% of the time, runs use a preset list of precompiled platforms — hosted by the user, or accessed as hosted environments. Fully dynamic generation must nevertheless be possible end to end: dynamically generate a platform, execute a world against it, and dynamically execute sandboxed Roc code the world app was built for — via a compiled DLL of the client-side code built directly from the Roc code, compiled by us (a trusted backend), never by the submitting client — to prevent any hijinks.
7. The strategy-ID tick model (automated / AI-controlled competitive games)
developing-today-fleet commentedon Nov 24, 2026
Plan amendment — profile naming + open profile sets (Drew, 2026-11-23 23:21 CST)
Two changes to the plan's profile section (§6), in Drew's words: "make basement an alias for headless profile or something and allow simple config/way to make new profile sets."
1.
headlessis the canonical profile name;basementis an alias.headless.basementresolves to it as an alias, so anything written againstbasementkeeps working.2. Profile sets are open — defining a new profile is a config act, not a code act.
plain,full,headless,embedded) are expressed in the same config format, so built-in and user-defined profiles share one definition mechanism, one validation path, and one composition-hash treatment — a user profile's builds are named by their composition hash exactly like a built-in's.Plan impact: §6 gains alias resolution + the profile-definition config; the §10 slices that touch the catalogue/profiles carry both. Nothing else in the plan changes; the slices remain deliberately unqueued.
developing-today-fleet commentedon Nov 24, 2026
Amendment 3 — "server" and "client" are roles, not kinds of node (Drew, 2026-11-23)
Recorded from Drew's direction in chat, 2026-11-23 ~23:38 CST: "server and client is sort of arbitrary they are kind of all servers and can be clients etc p2p. but practically it's good to treat them as different in many cases."
What this changes in the plan:
This amends the framing of Amendment 1's three-sided matrix (compile / run a platform / run the client half): the three sides stand, but they are per-role feature sets that any node may hold in any combination.
developing-today-fleet commentedon Nov 24, 2026
Amendment 4 — the strategy-model behaviours are conventions, not hard-coded semantics (Drew, 2026-11-23)
Recorded from Drew's direction in chat, 2026-11-23 ~23:42 CST: "the waiting idling error worldside etc are examples of common conventions one might expect but aren't hard coded, world's might do all sorts of things but often these kinds of things."
This corrects the framing of Amendment 1's strategy model (comment 7121662656):
developing-today-fleet commentedon Nov 24, 2026
Amendment 5 — correction: "the rest feature" is the rust feature (Drew, 2026-11-23)
Resolves the one open term from Amendment 1 (comment 7121662656), where dictation rendered the compile-prerequisite feature's name as "the rest feature." Drew's correction, 2026-11-23 ~23:50 CST: "For the IDE [the ID binary] to even be able to compile a platform, it needs the rust feature, and depending on what's needed, the rust feature might need to be enabled in order to compile a platform with that capability."
What the record now says:
rustfeature. ID needs the rust feature enabled to compile platforms at all — it is the baseline prerequisite for the compile act, alongside the composer feature (roc-composer).rustexample in this light: the per-capability features a compile needs are the features of the selected capabilities, and for Rust-implemented capabilities that set includesrustitself — on top of its baseline role.