Skip to content

id(phase-14): Scale & performance hardening — core topic (research + design) #6281

Open

Description

@dezren39

Scale & performance hardening — Phase 14 core topic (research + design)

Filed from the next-horizons discussion #1240, decided by Drew on 2026-11-05: all themes are planned. This issue is the core topic for Scale & performance hardening. Its job is research and design — broaden the idea beyond what is already understood, set up multiple next steps, and produce implementation plans. No implementation starts here; the output is design documents and implementation issues.

Drew's principles for everything in Phase 14 (from #1240, 2026-11-05)

  • Local-first is always the goal, AND a hosted version is intended: central coordination supporting a large graph of broadly accessible objects.
  • Anything built must be completely usable by others hosting a small or large server themselves. P2P-hosted worlds and data behave the same as a large hosted public server; differences live in backend scale elements and access controls.
  • Users connect to each other and transfer/interact directly wherever possible, so hosted resources are an offloadable backstop, not a requirement. The app must not technically need us to function. Collaborative / shared / federated / local-first / p2p.
  • Our hosted instance is essentially public; other operators open theirs only as much as they want. Publishing paths: share to a big server, publish on pkarr, or self-host. All comms through iroh on the backend; first-class clients.

The idea, broadened

Phase 12 makes worlds data; this topic makes them big. Broaden beyond benchmarks: the failure shapes of large worlds (journal growth, replay time, fan-out cost per frame, memory on small hosts), graceful degradation (what a world sheds first under load), and the difference between a big world on a laptop and a big world on the public server — same behavior, different budgets. Every claim here needs the harness (#539) and baselines (#542) to already exist; they now do.

Research questions (first pass)

  • Limits inventory: entities, journal entries, members, programs per world — measured, not guessed (stress harness on the laptop + CI)
  • Journal growth economics: snapshot/compaction policy, replay-time budget, cold-start of an old world
  • Fan-out: bytes/frame per member (extends id(world): F11.9 bytes-per-frame baseline table #542 baselines), backpressure, slow-member isolation
  • Degradation ladder: what sheds first — presence detail, history depth, program fuel — and who decides

Dependencies and existing pieces

Builds on #539 benchmark harness and #542 bytes-per-frame baselines (done), F11.7 metrics (#553, done), F12.10 scheduling (#1067), F12.12 presence at scale (#557), F12.13 replication (#806).

Next steps — the version ladder

  • v1 — first-iteration design — its own issue, filed in the same pass and linked in the first comment below
  • v2 — outline: growth policy — its own issue, filed in the same pass and linked in the first comment below
  • v3 — outline: multi-node chaos — its own issue, filed in the same pass and linked in the first comment below
  • v4 — outline: public-server targets — its own issue, filed in the same pass and linked in the first comment below

Plus a standing rule for this topic: anything the research surfaces that doesn't fit v1–v4 gets its own issue (Drew's rule: every feature, concept, or idea gets an issue), and future investigations are listed as comments here rather than lost.

Sequencing

Design queue order: F12.4 provider registry (#1061) and F12.10 scheduling/quotas (#1067) designs land first; Phase 14 v1 designs then run hosted worlds → discovery → agents spike → the rest. Implementation follows Phase 13. The drop rule applies throughout: anything that proves blocked, wrong, or superseded gets parked or closed with a note — never a silent stall.

Acceptance criteria

  • A research + design output exists for Scale & performance hardening: design documents broadening the topic beyond the current understanding, per the Phase 14 principles in the body (local-first plus hosted coordination).
  • Multiple concrete next steps are produced as implementation plans / implementation issues filed from this topic.
  • No implementation starts under this issue itself (per its own charter).

Activity

  1. added
    kind/feature
    status/needs-triage
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  3. added
    source/human
    priority/low
    app/id
    effort/l
    on Nov 5, 2026
  4. added
    meta/enriched
    on Nov 6, 2026
  5. dezren39 commented on Nov 6, 2026

    @dezren39
    MemberAuthor

    Intake review

    🤖 Fleet monitor intake (repo-fleet-monitor), 2026-11-06.

  6. added
    queue/queued
    task/triage
    on Nov 6, 2026
  7. dezren39 commented on Nov 6, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  8. 185 remaining items

  9. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged (re-verification, task 21877, lane code-g)

  10. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    Progress note (Felix lane, 2026-11-25): picked up via agent-next shortlist rung. The next slice of this topic is #13087 (first 10x stress run — measured limits table update): all four measurement prerequisites are landed (#13083/#13163, #13084/#13424, #13085/#13209, #13086/#13224), so the lane is running the 10x suite as a dispatched remote benchmark and will land the limits-table update PR against #13087. #13088 (100x) stays gated on this run plus #8239.

  11. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    Progress note (Felix lane, 2026-11-25): the next slice of this topic, #13087 (first 10x stress run), has its first run executed and recorded — PR #15095 (unmerged, awaiting Felix's review).

    Headline: the 10x fleet tier's first wall is measured — a single hub under default limits holds at most 256 concurrently leased worlds, so the tier's 1,000 active worlds cannot assemble (5/5 reps refused; boundary confirmed at 257). The wall is codified (HubLimits::default), not a host limit; follow-up #15056 owns the harness fix and re-run. At the cap (256 active, 10,000 idle) the run completes with all assertions passing. Numbers are ci-runner class; the reference-laptop 10x run remains outstanding on #13087, and #13088 (100x) remains gated on it plus #8239.

  12. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Triage re-verification (fleet any-o, 2026-11-26): still live research/design program; work is already routed to its child issues. Fresh status differs from the previous progress note: #13087 (first 10x stress run) is now CLOSED and PR #15095 merged 2026-11-25; #13088 (100x feasibility) remains OPEN; #6304 v1 design remains OPEN. The 10x result records the 256 active-world hub ceiling, with reference-laptop run still outstanding per the #13087 record; #13088 is gated by that plus #8239. No duplicate packet enqueued from this umbrella triage; continue through the existing version ladder/plan.

  13. developing-today commented on Nov 27, 2026

    @developing-today
    Contributor

    🤖 Triage re-verification — oc-code-03, task 25309 (2026-11-27)

    Existing verdict stands; no duplicate work packet. #6281 remains OPEN as the Phase 14 research/design umbrella, and its own charter forbids implementation here. Its prior triage and findings remain current. Fresh check: v1 design #6304 is still OPEN; v2–v4 remain sequenced behind predecessors. The 100x feasibility child #13088 is OPEN; its latest triage records the prerequisite #13087 as closed and identifies #13088 itself as the remaining scoped benchmark run. A separate parked task 22701 tracks that child. #1067 remains OPEN with its next scheduler slice routed to #15577; #557 remains OPEN pending its idle reference-laptop measurement. No umbrella-scoped work or duplicate child packet is warranted.

    No code or issue lifecycle state changed in this re-verification. Continue through the existing child ladder and measurement records; keep #6281 open as the tracking home.

  14. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    Picked up by repo-worker-code — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  15. added
    queue/claimed
    work/assigned
    on Nov 27, 2026
  16. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    Completed by repo-worker-code (outcome: done). Reverified the umbrella triage; current findings and child ladder remain valid, no duplicate work was added.

    Disposition: verdict merged_verified, checked_at 2026-11-27T00:34:18Z -- the record below passed the broker's offline disposition gate at completion time.

    {
      "checked_at": "2026-11-27T00:34:18Z",
      "source": "fleet gh readback",
      "issue": {
        "number": 6281,
        "state": "open",
        "state_reason": null,
        "closed_at": null,
        "closed_by": null
      },
      "pulls": [
        {
          "number": 15095,
          "state": "merged",
          "is_draft": false,
          "merged_at": "2026-11-25T12:47:04Z"
        }
      ],
      "verdict": "merged_verified",
      "follow_up": null
    }
    
  17. removed
    queue/claimed
    work/assigned
    on Nov 27, 2026
  18. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Census note — 2026-11-29 (lane CEN-C04, full-census pass)

    Verdict: ready (core-topic umbrella, work routed to children). Rechecked firsthand. Progress: the first 10x stress run #13087 is CLOSED (PR #15095 merged; recorded result: 256 active-world hub ceiling; the reference-laptop run remains outstanding on that record). Open children: #6304 (v1 design) and #13088 (100x feasibility — gated on the #13087 reference-laptop run plus #8239); v2–v4 rungs remain sequenced behind predecessors; #1067 OPEN (next scheduler slice #15577); #557 OPEN pending its idle reference-laptop measurement. Blockers: none on the umbrella.

    Census actions: no label changes — labels already sane.

  19. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix):

  20. added
    status/needs-triage
    on Nov 29, 2026
  21. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: none material.

    Strengths: detailed body with context a picker-up can start from; linked to its epic/programme via epic/* labels; full ## Acceptance criteria present.

    Actions taken: labels added this pass: status/needs-triage

    Priority: priority/low retained — matches the work's urgency as evidenced on the issue; no band change.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/iddesign/id-phase-14effort/lepic/id-platformepic/id-programkind/featuremeta/enrichedpriority/lowsource/humanstatus/needs-triagetask/triage

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions