Skip to content

ID program — full investigation, design completion & build-out (program tracking) #13240

Open

Description

@dezren39

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)

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

  1. 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.
  2. 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.
  3. Many designs — existing ones reviewed/improved, new ones for the obvious next steps — landed
    by PR in the doc/ archive.
  4. Many PRs merged — implementation slices wherever unblocked, in dependency order.
  5. 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

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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 final
    stopping 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.

    2. Research seeds (Drew's threads — start here, go further)

    • Falcor / BLAS further development — Falcor's virtual JSON Graph, path addressing
      (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.
    • App platforms; new interfaces and I/O equivalencies across platforms — define what an "app"
      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.
    • Roc — the platform model is an unusually exact fit: the platform supplies all I/O, so a
      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:
    • Rust + Roc libraries to improve the id binary and id-as-a-library — audit every crate
      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).
    • A standard capability set tied to Roc libraries — one capability catalogue, programmed
      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.
    • Pure vs impure app definitions — formalize the split: pure definitions (deterministic,
      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.
    • Tokens: a generic trading/market system; tokens tied to app fuel and in-app items — prior
      art: Agoric ERTP (Mint/Issuer/Brand/Purse/Payment with framework-enforced conservation) + Zoe
      (escrow, offer safety, metering); Wasmtime consume_fuel as the deterministic metering
      primitive 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.
    • Sprites and basic text/2D games (Dwarf Fortress, Space Invaders, Dig Dug), basic
      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.
    • Visualizing and searching the ID object graph — Cytoscape.js (analysis, algorithms,
      compound nodes) vs Sigma.js v3 + Graphology (WebGL scale); internal model = property graph,
      interchange = JSON-LD at the boundary. Search = the Atlas thread (§3).
    • Embeddings for search — the Atlas project baked in — derived-index pattern: index keyed by
      content hash + model_id; query → KNN → graph expansion → rerank/RRF fusion; the index is
      rebuildable, 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 platform support and ECS for complex simulations — bevy_ecs is usable standalone;
      headless server = bevy with default-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).
    • Cleaner server/client capability separation — one node binary, capability profiles:
      what a pure rendering client holds vs a storage/signing node vs a hosted backstop.
    • Full OCapN and CRDT support — OCapN (Spritely: CapTP, Syrup, 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.
    • Distinguish the major components: pure clients rendering the graph; content-addressed
      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).
    • Text/property objects as structured data; binary formats (images/video) — object model
      completion: typed properties, schemas, migrations; media objects with streaming, thumbnails,
      and capability-gated decode.
    • MCP, and using each part as a library in other apps — MCP servers sit behind ID's
      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.
    • One distributed federated graph — servers and clients are technically the same thing with
      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)

    • A. Charter & architecture — write the missing charter (purpose, principles, component map);
      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).
    • B. Design completion & new designs — review and organize all existing designs in the
      doc/ archive and the 41 open kind/design issues; touch up and improve every one (current
      terminology, 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.
    • C. Capability platform & Roc — the standard capability catalogue (§2); the Roc platform
      definition + host matrix (Linux first, Android second per priority); I/O equivalency rules;
      pure/impure formalism; fuel metering per capability.
    • D. Data, graph & search — object/property model completion; graph visualization &
      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
    • E. Tokens & fuel economy — ERTP/Zoe-shaped asset design on Wasmtime fuel metering;
      market/trading mechanics; in-app items; budgets as capabilities; abuse/Spam economics.
    • F. Clients, games & simulations — mockups/sketches (ASCII + rendered) of how the system
      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.
    • G. Federation & protocols — OCapN semantics adoption plan; wire format (#567x); relay/
      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).
    • H. Implementation — begin every unblocked slice the designs unlock, in dependency order;
      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)

    1. A comprehensive document series in book form — an ID book built with the bookwright
      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 like
      pkgs/fleet/docs.nix. Include a DOC-01-style docs-sync contract in pkgs/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.
    2. An issue-by-issue map of ALL ID issues — every open app/id / epic/id-program /
      epic/id-platform issue, prioritized in best working order, with all blockers marked both
      on 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.
    3. Many designs — completed, improved, and new (§3B/§3C/§3E), each landed in the doc/
      archive by PR and linked from the book.
    4. Many PRs merged — implementation slices (§3H), docs, and the book itself; CI runs on main
      only; merge when verified.
    5. Diagrams & mockups — architecture diagrams (§3A) and UI/interaction mockups for current
      state and next steps (§3F), embedded in the book.

    5. How to work (fleet rules — binding)

    • GitHub via the gh CLI / REST only (the GitHub connector is banned). File a GitHub issue in
      the owning repo the same pass for any problem found; naming it in a doc is not a substitute.
    • Execution on the laptop (~/git/code primary stays on main + clean; all work in worktrees
      on branches, landed by PR). Never git stash in shared clones. Never force-push main.
    • Before implementing any issue: premise check (is it still true on current 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.
    • Builds/tests dispatch-first (fleet queue dispatch), laptop fallback; a container environment
      failure is not a test result — record which route verified. Tests name their oracle.
    • Evidence standard: every factual claim carries its checked source or is labelled unverified;
      counts computed from a named source, never estimated in prose.
    • Respect standing holds: items flagged as awaiting Drew's item-specific approval are not
      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.
    • Secrets by name only, never values. Never touch the vertexinc org. External communications
      (anything outside our own repos/channels under Drew's identity) need per-item pre-approval.
    • Quota doctrine: plan quotas only, never funds; a 402 is a wall; burn-by-expiry; measure before
      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.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.

  4. added a commit that references this issue on Nov 23, 2026
  5. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Starter PR done (Lane UI): PR #13243 merged — merge commit af119693476daf90adf2a7e1689404d876c08c97, head SHA-guarded at 2104be5b15bd9176b85c3afa15f28742143a68da.

    What landed:

    Docs-only: 3 Markdown files, additions only. This issue stays open as the program's tracking home.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions