GeezerVison is showing github.com — id: design: capability model — requested vs discovered-used sets, registry listing, custom-compiled platforms · Issue #5958 · developing-today/code
id: design: capability model — requested vs discovered-used sets, registry listing, custom-compiled platforms #5958DescriptionPart of the worlds design program: #5955. Statements S8–S16 of the 2026-11-04 brief.
Where we are (verified 2026-11-04)
An app's capabilities are already bounded upward by the platform used to compile it, and that bound can be securely listed per platform: the capability catalog and compile-time ceilings live in pkgs/id/crates/id-core/src/world_caps.rs.
Requirement (Drew, in substance)
- First, answer: do we currently have more than one platform? (S9 — an inventory fact this design starts from.)
- Direction: allow greater capabilities — this is a step towards reading and writing files from disk and using system resources. (S10)
- A world should be able to say what capabilities it requires — or, ideally, we can automatically derive and discover them. (S11)
- Capability vocabulary must at least express: standard, file read+write in the sandbox, arbitrary file read, arbitrary network out. (S12)
- The required capabilities are listed in the world's registry entry. (S13)
- If no existing platform fits, custom-compile the appropriate platform for that world. (S14)
- Handle the expansive-platform case: a user may give a world a platform with more capability than it uses. (S15)
- Therefore track two sets: requested (what the platform grants) and discovered-used (the exact functions really used). The registry says both: "it asks for all these, but it only uses this subset" — that helps users judge what they're connecting to. (S16)
Open questions
- Discovery mechanism: static analysis of the compiled world, platform-call instrumentation during a profiling run, or both? How are the two reconciled when they disagree?
- Is the used-set a property of the code (same for every run) or can it vary by path taken at runtime — and how does the registry present a path-dependent set honestly?
- Custom-platform compilation: who pays, how long does it take, is the result cached and shared across worlds with identical requirement sets (interacts with the compile-economics child of #5955)?
- How does the requested/used pair interact with writer-set authority (#5545) — is a capability grant an authority grant, or a separate axis?
Related
- Capability-provider parent: #5686; field survey #5931
- Provider registry (capabilities as manifest): #1061
- Core/app platform design: #2028
Done looks like
Design covering: platform inventory answer, capability vocabulary v1, declaration vs discovery, registry schema for requested/used sets, and the custom-platform compile path — each with the open questions above resolved or explicitly deferred with a reason. Activitydeveloping-today commented on Nov 5, 2026 added app/idPackage/app: id (pkgs/ or apps/ in this repo) kind/designA design proposal (design-architect): multi-step, phased, decision-bearing on Nov 5, 2026dezren39 commented on Nov 5, 2026 Wave-2 tie-in (finding F10) + contradiction C2.
Settled architecture to cite: compile-time ceiling against the world_caps.rs catalog; deterministic wasmtime fuel for Wasm guests; wall-clock deadlines + OS sandbox (no_new_privs, rlimits, seccomp allowlist with no open/sockets) for the admin-installed native tier, which is never peer-downloaded; presentation is data (record: workspace/scratch/worlds-capabilities-brief-2026-11-04/conversation-tie-ins.md, F10).
C2 — WORKING INTERPRETATION — shown to Drew in the main chat 2026-11-04 ~23:06 and not objected to; recorded here as an interpretation, not a ruling. The brief's capability vocabulary for this design (standard, file read/write in the sandbox, arbitrary file read, arbitrary network out) is a deliberate posture change relative to the shipped catalog, which has no file or network capability at all and whose native-tier seccomp allowlist forbids open/sockets outright. Per the 2026-11-04 brief, this design proceeds on the new posture — the expansion is Drew's direction, recorded here so it isn't mistaken for silent catalog growth. dezren39 commented on Nov 5, 2026 Wave-2 follow-ups filed from the prior-art research (Lane B). Granular sub-scopes of this issue, each carrying the relevant research findings + citations:
Research source: workspace/scratch/worlds-capabilities-brief-2026-11-04/prior-art-research.md. Full wave-2 mapping: workspace/scratch/worlds-capabilities-brief-2026-11-04/wave2-map.md. dezren39 commented on Nov 5, 2026 Ruling — C2 capability posture (Drew, 2026-11-04 23:57 CST), with a correction to the working interpretation recorded earlier in this program.
Correction: the working interpretation said tonight's brief supersedes the shipped no-filesystem / no-network default. That is wrong. Per Drew's ruling, the default does not move:
- The default posture is unchanged: the current completely isolated seccomp policy (no fs open, no sockets) remains the default for worlds and servers. Nothing about tonight's brief changes the shipped default.
- New work — an opt-in capability tier: begin investigating and building the ability to create worlds that have file and network capabilities. These capabilities are turned off by default on servers.
- Publishing: first-party only, for now. We only publish worlds using these capabilities ourselves at this stage.
- Architecture requirement: even though it is first-party-only now, build it such that it could be enabled for anyone later. General enablement is a future decision, gated on further testing and refinement of exactly how the platform wrangles and controls such capabilities.
dezren39 commented on Nov 17, 2026 🤖 Agent note · triaged / queue task done
- Agent: repo-worker-code, OpenChamber scheduled lane code-g
- Task: 18407 triage, fresh state checked 2026-11-17T03:15Z.
- Verdict: issue OPEN. Design record from task 12856 is posted on the issue (comment id 672…), and the adjacent design work has merged. No new repo-health task created.
- Labels: unchanged; no claim labels applied this run.
dezren39 commented on Nov 22, 2026 Merged work, still open. Every pull request that references this issue has merged (#7025, #7599, #7600, #7594, #7630, #7640) and none is open, but the issue kept status:in-review. Tasks that name it as a blocker have been waiting on it.
status:in-review is removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").
By: Claude, 2026-11-22 flow review.
Generated by Claude Code dezren39 commented on Nov 23, 2026
🤖 Agent note · done check run against main (Lane DV, via fleet agent next shortlist rank 5)
Verdict: DONE — closing as completed
Per the 2026-11-22 note on this issue ("run the issue's done check against main; close if it passes"), each element of Done looks like was re-verified fresh against current main ced8e85f3553 (2026-11-22 22:02 CST, laptop git fetch):
Design coverage — all five required elements are in the merged design record (doc/2026-11-08T09-15-00Z_design_id_capability_model/2026-11-08T09-15-00Z_design_id_capability_model.md, 290 lines, merged via PR #7599; summary record at comment 6720327099):
- Platform inventory answer (§1) — exactly one platform: one static catalog, no named platform artifacts, no per-platform catalogs; a "platform" is a named ceiling profile over the one catalog.
- Capability vocabulary v1 (§2) — catalog names plus tier terms
standard, fs.sandbox.readwrite, fs.read.any, net.out.any (the S12 set), expansions stored in the registry.
- Declaration vs discovery (§3) — requested = declaration (enforcement set); used = static analysis + profiling, both, with explicit reconciliation (observed-not-in-static is a flagged defect, never a grant); path-dependent used sets presented as
used_static (upper bound) vs used_observed (lower bound with coverage metadata).
- Registry schema for requested/used sets (§4) — one record per (world, build) with requested/used/delta and stated invariants.
- Custom-platform compile path (§5) — ceiling-profile artifacts content-addressed by the requirement set, shared across worlds with identical sets; compile economics explicitly deferred with a reason to the compile-economics child — which has since landed: id: design: compile economics — compiled-world/DLL caching, compile-cost penalties, premium gating #5965 design closed, its P1 shared-cache implementation id: implement: shared compiled-world cache — P1 of the #5965 compile-economics design #6235/id: shared compiled-world cache — P1 of the #5965 compile-economics design #8450 closed.
Open questions — each resolved in §6 of the design or deferred with a reason (compile economics → #5965, above). Writer-set interaction (#5545) answered in §7: separate axes, neither implies the other. C2 compliance (§8 of the record): the shipped default posture does not move.
Premise re-verified on current main: the inventory fact still holds. The catalog moved in the crate split to pkgs/id/crates/id-caps/src/world_caps.rs and grew from 19 to 34 entries (28 host providers + the same 6 PlatformModule entries: Key, Screen, RocJson, RocGrid, RocCap, RocText) — growth of the single catalog under the design's own "new providers join here first" rule, not a second platform. WANTS_VERSION = 1 and UNKNOWN_CAP_USAGE_KEY are present as the design cites.
Surrounding state: all six PRs referencing this issue are merged (#7025, #7594, #7599, #7600, #7630, #7640); no open PR references it; granular sub-scopes #5998, #5999, #6000, #6017 are all closed; capability-provider parent #5686 is closed. Implementation of the schema/profiler/compiler is follow-on work under the worlds programme #5955 (still open as the programme container) — explicitly out of scope for this design issue per the record's §8.
Closing as completed. Queue tasks dep-blocked on #5958 can proceed to their next gates.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|