Repository navigation
Description
ID program — full investigation, design completion & build-out (program tracking)
Drew's directive (2026-11-23): run a program-scale investigation of the full ID project —
purpose, current and planned capabilities, short- and long-term roadmap, key designs (completed,
in progress, planned), dependency and blocker map — and use it to review and organize all
designs, improve every design, and create new designs for the obvious next steps: v1 ideas
taken to a fully featured platform, not an MVP.
Ground truth (verified 2026-11-23)
- Epics: epic: ID platform expansion — apps, comms, currency, hosting, boards (2026-10-28 directive, LIST 6–15) #2056 (27/29 closed; open id: design: ID messaging/relay protocol v1 #2036 messaging/relay, id: design: match attestation + audit v1 #2039 match attestation) and epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106
(Parts A/B/C). No single charter doc exists — designs live in the repo-rootdoc/archive. - 16 crates under
pkgs/id/crates/; rootidis the only public surface. - Shipped: Iroh P2P file CLI + REPL + web UI,
id walkskeleton, hosted Cloudflare Worker, MCP
bridge +mcp_policy::PolicySession(id(phase-14): spike 4/5 — policy point: capability ceiling, session quota, audit log #7916 closed, id(phase-14): spike 5/5 — bounded program interaction + end-to-end spike run #7917 open), Roc guest apps
(tic-tac-toe + 13 examples), Bevy native shell step 2a (id: rich presentation surfaces — versioned scene/audio/widget contract extension + Bevy renderers (F13.6 follow-on) #12657). - Scale (id(phase-14): Scale & performance hardening — v1 — first-iteration design #6304): frame cost FLAT ≈958,616 fuel at 10k/100k/1M (id(phase-14): frame cost vs world state size — view fuel and wall time at 10k/100k/1M events #13085); memory ≈18–22 KB/world
(id(phase-14): memory profile at scale — RSS per resident world and compaction spike #13086 closed). Codified 256-participant cap vs 320/3,200 tier targets (id(phase-14): stress generator — seeded tier worlds for the v1 stress program #13083). - Census: 208 open
app/id, 191epic/id-program, 36epic/id-platform; 44 blocked, 41 design.
Research threads (Drew's list)
Falcor/BLAS; app platforms; new interfaces and I/O equivalencies across platforms; Roc (incl.
Luke Boswell's roc-ray / roc-tui / roc-gui / roc-native-android work); Rust + Roc libraries for
the id binary and id-as-a-library; a standard capability set tied to Roc libraries; pure vs
impure app definitions; a generic token trading/market system with tokens tied to app fuel and
in-app items; sprites and basic text/2D games (Dwarf Fortress, Space Invaders, Dig Dug), basic
simulations, sketching, mind mapping; visualizing/searching the ID object graph; embeddings for
search (the Atlas project baked in); Bevy platform support + ECS; cleaner server/client
capability separation; full OCapN + CRDT support; major components distinguished (pure rendering
clients, content-addressed storage, signing, iroh-native approach); text/property objects as
structured data; binary formats (images/video); MCP and using each part as a library in other
apps; one distributed federated graph where servers and clients are technically the same with
different platforms/capabilities.
Deliverables
- A comprehensive document series in book form (bookwright method), published on the
existing code-repo Pages site under/code/id/, with a DOC-01-style docs-sync contract. - An issue-by-issue map of ALL id issues, prioritized in best working order, with all
blockers marked on the issues and in the list. - Many designs — existing ones reviewed/improved, new ones for the obvious next steps — landed
by PR in thedoc/archive. - Many PRs merged — implementation slices wherever unblocked, in dependency order.
- Core architecture diagrams (mermaid/SVG/graphviz) and mockups of the current system and
next steps.
Operating rule
The prompt (posted as the first comment on this issue, and added to the repo by the starter PR)
is a starting point, not a stopping point: expand until everything possible is done, review,
repeat. Many parallel agents across analyze/research/design/document/implement workstreams.
Related: #2056, #9106, #6304, #6062, #9109.
{
"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-23T12:04:42Z",
"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 23, 2026
CODE-4826
dezren39 commentedon Nov 23, 2026
ID Program — Full Investigation, Design Completion & Build-Out Prompt
You are the coordinator of a program-scale investigation and build-out of the ID project in
developing-today/code(pkgs/id). This prompt is a starting point, not a conclusive or finalstopping point. Work the design end to end, begin implementation wherever you are unblocked, and
when a pass finishes, review what remains, expand the plan, and repeat — until nothing more can be
done with the access and authority you have. Use subtasks and orchestration heavily: launch many
parallel agents (analyze, research, design, document, implement) and keep them pointed at the
frontier. A phase finishing is a signal to start the next one, not to stop and ask.
1. What ID is (ground truth — verify, don't re-derive)
ID is a local-first, federated, capability-based application platform: content-addressed objects in
a signed event graph, apps defined against a standard capability set, and nodes that are
simultaneously clients and servers with different platform/capability profiles. Governing
principles (from #6304 / #1240 / #6312): local-first; hostable by anyone; peer-to-peer ≡ hosted;
a hosted instance is a backstop, never a requirement.
apps, comms, currency, hosting, notes, chat, boards — 27/29 sub-issues closed; open:
#2036 messaging/relay protocol v1,
#2039 match attestation/audit) and
#9106 (extensible primitives, federation,
namespaces — Part A core, Part B federation/trust, Part C Atlas-facing).
doc/archive (~2,900timestamped paths;
pkgs/id/docandpkgs/id/docssymlink there) pluspkgs/id/README.md,pkgs/id/ARCHITECTURE.md,pkgs/id/WEB.md. Producing the charter is part of your job (§5).pkgs/id/crates/; the rootidcrate is the only public surface,id-corethe shared core.id-currency-registryandid-renderare flagged no-dependents inARCHITECTURE.md — resolve or retire that flag as part of the architecture review.
id walkfederation-walkingskeleton; a hosted Cloudflare Worker (per-user Durable Object, bridge store/auth, currency,
export/import — both halves landed 2026-11-23); an MCP bridge with the reconciled
mcp_policy::PolicySessionin id-caps (id(phase-14): spike 4/5 — policy point: capability ceiling, session quota, audit log #7916 closed; id(phase-14): spike 5/5 — bounded program interaction + end-to-end spike run #7917 open); invites with the depth-capfix (id(invites): sign_terms accepts child depth above the delegation cap #13217); BoundaryGate at signup/login; Roc guest apps as a shipped pattern
(tic-tac-toe + 13 examples); a Bevy native shell (step 2a of id: rich presentation surfaces — versioned scene/audio/widget contract extension + Bevy renderers (F13.6 follow-on) #12657 landed).
events (id(phase-14): frame cost vs world state size — view fuel and wall time at 10k/100k/1M events #13085); resident memory ≈18–22 KB per world blended at 1x/10x, compaction spike
89 MiB at 100k entries, no wall (id(phase-14): memory profile at scale — RSS per resident world and compaction spike #13086). Open tension: the codified 256-participant cap vs
the 320 / 3,200 tier targets (id(phase-14): stress generator — seeded tier worlds for the v1 stress program #13083). id(phase-14): join-time benches — cold and warm join at stress tiers #13084 (join-time benches) is flag-held; id(phase-14): first 10x stress run — measured limits table update #13087/id(phase-14): 100x feasibility run — find and record the wall #13088
are blocked behind the scale chain.
app/id, 191epic/id-program,36
epic/id-platform; of app/id: 44status/blocked, 28status/in-review,19
queue/queued, 41kind/design. The design backlog is the centre of gravity: Phase-14 coretopics id(phase-14): Hosted worlds & always-on hosting — core topic (research + design) #6276–id(phase-14): Creator tooling & insight — core topic (research + design) #6282 + outlines, the id: design program: worlds — advanced Roc libraries, capabilities, permissions, dynamic user functions, licensing (2026-11-04 brief) #5955 worlds program (Roc libraries, dynamic user functions,
presentation assets), the #567x cluster (wire format, currency scaling, knowledge layer, Bevy
incorporation id: design: Bevy incorporation — ID worlds as Bevy applications (ECS mapping of the entity/triple model) #5781, ESP32 id: design: ESP32 hardware platform line — boards, provisioning, firmware lifecycle, OTA, power #5783), federation/trust designs design(id): versioning — succeeds triples + carried-forward comments #9129–research(id): takeover resistance + acknowledgment-based inconsistency detection #9148.
Build shared store conformance fixtures and capability reports #10191 + Prototype IndexedDB adapter for bounded conformance evaluation #10213 closed — the only remaining step is design(id): store abstraction — Turso/SQLite-over-HTTP beside redb, IndexedDB evaluated (one interface, pluggable backends) #9082's adopt/defer/reject call on the
fixture's
reservedIndexedDB entry); [Architecture] Decouple Web UI from Core Library #6377 → [Innovation] AI-Powered File Management Integration #6381; Append submission, mandatory pending gate and atomic approval #10237 → Nested topic/comment objects and bounded feed projections #10252 → Default ancestor-comment carry with origin marker #10269 (implementationlanded for Append submission, mandatory pending gate and atomic approval #10237; its close is flag-held); hosted worlds id(phase-14): hosted worlds v1 P1 — host mode in the id binary (supervisor + data root) #10693 → id(phase-14): hosted worlds v1 P5 — basement-cluster deployment pack #10697 (all blocked);
discovery id(phase-14): publish-to-pkarr for world announcements (#6287 breakdown 2/5) #10706/id(phase-14): discovery resolver — invite link, pkarr, registries in order (#6287 breakdown 4/5) #10708/id(phase-14): Discovery, registry & federation — v2 — design: the public registry endpoint #10712 (blocked); jurisdiction id: add immutable jurisdiction and migration metadata to hosted directory #3399 → id: enforce restricted jurisdiction routing and object entry guards #3400–id: implement fenced jurisdiction migration control plane #3404 → id: implement Jurisdiction-partitioned hosted worlds and world blobs (design #3397) #5528/id: partition-local world blobs — per-jurisdiction R2 binding, world-reference indexing, local dedup + safe GC (design #3397 Phase 3, #5528 split) #9935;
Atlas D1 chain impl(atlas): D1 hot-cache schema, binding, and store module for the atlas-search Worker #13100 → impl(atlas): D1 hot-cache freshness evaluator — per-class watermark/TTL rules #13101 → impl(atlas): D1 hot-cache read-path integration — Turso-hop skip with skip logging #13105 → impl(atlas): D1 hot-cache measurement report for the storage-economics prototype #13107 (impl(atlas): D1 hot-cache invalidation — tenant events, Worker consumption, operator purge #13106 flag-held). Corrections to common
assumptions: design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084 is a pm-stack issue, not an ID chain head; the PM-orchestration DAG
(design(pm-orchestration): requirement crosswalk & current-state census #9198–design(pm-orchestration): Idempotency identity and stable structured receipts #9513) does not touch ID except operationally (task 16081 / design(pm-orchestration): Versioned desired/observed snapshot reconciler with dirty cursor + full audit. Owns proposed pm-stack/projector/src/priority-reconcile.ts, test/priority-reconcile.test.ts #9455 dep-blocked on design(pm-orchestration): priority distribution, provenance & reconciliation across producers/consumers #9200).
native adopted, high priority; per-platform releases with granular tags.
(ID-graph publication format design, open) + unstarted projectors impl(atlas/id): projector — versions, files, relations emission (#6062 follow-on 1) #11182–impl(atlas/id): ID-graph publication conformance audit (#6062 follow-on 5) #11186 + epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106 Part C
#9109 (storage economics, ID search,
recommendations). "Atlas baked into ID" is this program's direction to design, not a
recorded decision — design it, don't assume it.
2. Research seeds (Drew's threads — start here, go further)
(
get/set/call), normalized cache. The library is dormant (v2.x, years without releases):steal the model for native graph navigation, add typed querying as a view layer, do not adopt
the library. BLAS-class numerics belong host-side: faer (decompositions), nalgebra
(game/geometry), ndarray (interchange), fastembed-rs/lancedb for embeddings — exposed to apps
as capabilities, never linked into pure app definitions.
is on each tier (CLI, TUI, GUI, web, Android, embedded/ESP32) and the equivalency rules that let
one app definition render/interact on all of them.
platform literally is a capability set. Define the Roc-side API once; implement hosts per
target; the same pure app runs everywhere; purity is syntactic (effectful hosted functions carry
!in the new compiler); hosts can meter/refuse each hosted call — a natural fuel hook.Read all of Luke Boswell's work:
first-hand if reachable; it most plausibly announces roc-native-android)
https://lukewilliamboswell.github.io/roc-native-android/ and the whole blog
https://lukewilliamboswell.github.io/ (multi-entrypoint hosts + roc PR id: implement signed transport advertisements + rendezvous fetch/verify client (from #5793 decision record) #8214; Action-State GUI
with zig + raylib; roc-pga2d physics; basic-cli TUI text editor; fullstack Roc + htmx ×3)
roc-tui, roc-gui, roc-signals (reactive engine; the thing ported to Android),
roc-native-android (Zig JNI bridge + Kotlin host, APK scaffolding; author-stated gaps,
emulator-only — but a real existence proof for the Android tier), roc-awesome,
Hasnep's roc-packages index.
wild, most platforms single-maintainer experiments. ID's Roc layer must be insulated from
compiler churn (pin, abstract, or vendor the boundary).
boundary: what should be a reusable library (storage, caps, graph, wire, fuel, render) vs
binary-only. The end state: other apps embed ID pieces as libraries (see MCP, §3).
against once, implemented by every host (Rust native, web/WASM, Android, ESP32). Each
capability: name, signature, purity class, fuel cost model, failure modes, per-platform notes.
replayable, fuel-metered) vs impure/hosted effects; how the split shows up in the type system,
the wire format, and the permission prompt a user sees.
art: Agoric ERTP (Mint/Issuer/Brand/Purse/Payment with framework-enforced conservation) + Zoe
(escrow, offer safety, metering); Wasmtime
consume_fuelas the deterministic meteringprimitive beneath any fuel token. Convergent shape: metered execution → conserved asset
objects → capability-held, attenuable/revocable budgets — one design unifying app fuel,
in-app items, and trades. Build on the existing currency work (epic: ID platform expansion — apps, comms, currency, hosting, boards (2026-10-28 directive, LIST 6–15) #2056 currency sub-issues,
id-currency-registry, hosted-worker currency) — do not start a second currency design.simulations, sketching, mind mapping — the first-app suite that proves the platform: each is
a design + a working app, exercising sprites, text grids, input, timing, persistence.
compound nodes) vs Sigma.js v3 + Graphology (WebGL scale); internal model = property graph,
interchange = JSON-LD at the boundary. Search = the Atlas thread (§3).
content hash +
model_id; query → KNN → graph expansion → rerank/RRF fusion; the index isrebuildable, never a source of truth. Storage: libSQL/Turso native vectors (
F32_BLOB+DiskANN
vector_top_k) — sqlite-vec can't load on remote sqld. Local models via fastembed-rs(ONNX) or candle. Coordinate with the Atlas program prompt — the two programs meet here.
bevy_ecsis usable standalone;headless server =
bevywithdefault-features=false+ MinimalPlugins + ScheduleRunnerPlugin.ECS consumes projections of the graph; it never owns the graph. Build on id: design: Bevy incorporation — ID worlds as Bevy applications (ECS mapping of the entity/triple model) #5781 and the landed
Bevy shell (id: rich presentation surfaces — versioned scene/audio/widget contract extension + Bevy renderers (F13.6 follow-on) #12657 step 2a).
what a pure rendering client holds vs a storage/signing node vs a hosted backstop.
ocapn://sturdyrefs,netlayers) is pre-standardization and protocol-unstable, with Guile/Racket reference
implementations and no production Rust implementation found: adopt the semantics (promise
pipelining, distributed GC, certified third-party handoffs) into ID's Rust cap layer; track the
standard, don't block on it. CRDTs (Loro — Fugue text, MovableTree, full history DAG, closest
to event sourcing; Yrs — Yjs ecosystem/wire compat; Automerge — git-like change DAG, per-change
attribution) sign nothing and enforce no capabilities: they sit inside ID's signed-event
envelope, for content convergence only. Decide per content class which engine (or ID's own log)
applies.
storage; signing; the iroh-native approach (dial-by-public-key QUIC; iroh-blobs = BLAKE3
CAS transfer; iroh-gossip = live notification only, no catch-up; iroh-docs = signed KV,
NamespaceId as write capability, range-based set reconciliation — the closest existing shape
to ID's store; weigh adopt-vs-mirror per component).
completion: typed properties, schemas, migrations; media objects with streaming, thumbnails,
and capability-gated decode.
capability layer (MCP's own auth is young; tool hints are untrusted; calls arrive holding a
capability). Every major component ships as a library with a stable API; the binary is one
composition of them.
different platforms/capabilities. Any design that forks "the server version" from "the client
version" of a concept is wrong; fix the design.
3. Workstreams (run in parallel; each owns its issues end to end)
reconcile ARCHITECTURE.md with the code as it is; produce the core architecture diagrams
(mermaid in the book; SVG/graphviz where mermaid can't carry it): component map, event/object
lifecycle, capability flow, federation topology, app execution (pure core ↔ hosts).
doc/archive and the 41 openkind/designissues; touch up and improve every one (currentterminology, links, status, open questions resolved or explicitly parked); create the missing
designs for the obvious next steps — v1 ideas taken to a fully featured platform, not an
MVP: identity & key recovery, namespaces, permissions UX, offline/merge semantics per
content class, media pipeline, app distribution & updates, developer tooling, observability.
definition + host matrix (Linux first, Android second per priority); I/O equivalency rules;
pure/impure formalism; fuel metering per capability.
navigation (Falcor-model path API); Atlas integration design (design(id/atlas): ID-graph publication format — Atlas objects + provenance/lineage relations as ID-graph objects #6062 + projectors impl(atlas/id): projector — versions, files, relations emission (#6062 follow-on 1) #11182–impl(atlas/id): ID-graph publication conformance audit (#6062 follow-on 5) #11186
market/trading mechanics; in-app items; budgets as capabilities; abuse/Spam economics.
looks now and how next steps will look; the first-app suite (text/2D games, sims, sketching,
mind mapping) as designs + working apps; Bevy ECS simulation tier; sprite/text-grid rendering
across TUI/GUI/Android hosts.
messaging v1 (id: design: ID messaging/relay protocol v1 #2036); attestation/audit (id: design: match attestation + audit v1 #2039); iroh component decisions; hosted backstop
parity proofs (p2p ≡ hosted, tested).
small PRs, verified, merged. Designs that can't be implemented yet get a filed, linked
implementation issue with a named next action — nothing sits silently.
4. Deliverables (the program is done when these exist and stay current)
method (survey before structure; coordinator-fixed skeleton; mechanical coverage proof;
zero-warning build), joining the existing code-repo Pages deploy under
https://developing-today.github.io/code/id/ (one Pages site per repo — never a standalone
deploy). Sources in
pkgs/id/book/+pkgs/id/book.toml, built by a flake package likepkgs/fleet/docs.nix. Include a DOC-01-style docs-sync contract inpkgs/id/README.md:any crate/capability/protocol change updates its chapter in the same change. The fleet book
(https://developing-today.github.io/code/fleet/) is the form reference.
app/id/epic/id-program/epic/id-platformissue, prioritized in best working order, with all blockers marked bothon the issues themselves and in the priority list (a chapter in the book + the tracking
issue kept current). Blockers are worked, not just listed: when a blocker is itself workable,
it goes first.
doc/archive by PR and linked from the book.
only; merge when verified.
state and next steps (§3F), embedded in the book.
5. How to work (fleet rules — binding)
the owning repo the same pass for any problem found; naming it in a doc is not a substitute.
~/git/codeprimary stays on main + clean; all work in worktreeson branches, landed by PR). Never
git stashin shared clones. Never force-push main.singular-ownership check (fresh reads; a claim comment from another agent is a hard stop).
Re-read an issue's newest comments immediately before merging its PR.
fleet queue dispatch), laptop fallback; a container environmentfailure is not a test result — record which route verified. Tests name their oracle.
counts computed from a named source, never estimated in prose.
yours to start (the scale chain's id(phase-14): join-time benches — cold and warm join at stress tiers #13084 is one). Items needing Drew's decision get surfaced
with the decision's substance (options, ramifications, recommendation) — never re-ask a
decision he already recorded.
vertexincorg. External communications(anything outside our own repos/channels under Drew's identity) need per-item pre-approval.
large burns.
6. The iteration rule
This prompt is the starting point. When every workstream has reported, do not conclude:
re-survey (issues, designs, code), reconcile what the passes learned, expand the design set and
the issue map, and run the next pass. The program ends only when a full pass finds nothing more
that can be designed, documented, or implemented with the authority available — and even then,
the book, the issue map, and the docs-sync contract remain as the living record the next pass
starts from.
dezren39 commentedon Nov 23, 2026
Claiming this for the starter PR (Lane UI, via Archer): bringing the full investigation prompt (first comment on this issue) into the repo as a document in the
doc/archive, plus a short program index entry linking this issue, #2056, and #9106. Docs-only PR; will post the PR link and merge SHA here when done.Merge pull request #13243 from developing-today/lane-ui-13240
dezren39 commentedon Nov 23, 2026
Starter PR done (Lane UI): PR #13243 merged — merge commit
af119693476daf90adf2a7e1689404d876c08c97, head SHA-guarded at2104be5b15bd9176b85c3afa15f28742143a68da.What landed:
doc/2026-11-23T12-06-42Z_design_id_program_investigation_prompt/2026-11-23T12-06-42Z_design_id_program_investigation_prompt.md— the full program prompt from this issue's first comment, verbatim (18,904 bytes; sha25639d36cf8c9996283f74f6f0134f0c1a7b1c95a1e9a659a79c0cec5bc04b4feb1, re-verified againstmainafter merge). Placed as a dated design record per the archive convention documented indoc/README.md(doc/<UTC>_<kind>_<name>/folder holding a same-named.md).doc/README.md— one starting-points bullet in the Dated records section.pkgs/id/README.md— a short "ID program" subsection under Documentation linking the prompt, this issue, epics epic: ID platform expansion — apps, comms, currency, hosting, boards (2026-10-28 directive, LIST 6–15) #2056 and epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106, and the deliverables (ID book under/code/id/; prioritized, blocker-marked map of all ID issues).Docs-only: 3 Markdown files, additions only. This issue stays open as the program's tracking home.