Repository navigation
Description
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
developing-today commentedon Nov 5, 2026
CODE-1847
dezren39 commentedon Nov 5, 2026
Version ladder for this topic (filed in the same pass, 2026-11-05):
Phase 14 plan of record: #6312. Discussion of record: #1240.
dezren39 commentedon Nov 6, 2026
Intake review
🤖 Fleet monitor intake (repo-fleet-monitor), 2026-11-06.
dezren39 commentedon Nov 6, 2026
🤖 Agent note · handed off
opencode, so task 11053 is handed off to the opencode claimant per the worker instruction §1b and parked 1200s pending the claimant launching the bound session; if the park expires first, task 11053 returns to the queue.185 remaining items
dezren39 commentedon Nov 24, 2026
🤖 Agent note · triaged (re-verification, task 21877, lane code-g)
status/needs-triage; triage is real, current, and complete (lane code-w task 11134 2026-11-08; re-verified lane code-p task 12503, lane code-t/code-e task 14665, lane any-h task 18458, lane any-n task 19973). Real-and-current research + design core topic; no code fix belongs in this task; follow-on work is the already-filed version ladder, so no new packet is enqueued (dedupe).pkgs/id/doc/2026-11-23T07-53-00Z_design_scale_perf_stress_v1/via PR docs(id): phase-14 scale & perf v1 — large-world stress program design (#6304) #13090 (MERGED 2026-11-23T08:04Z). Scoped next phase impl(id): group-commit batching for world journal appends — one sync per queued input batch (#7064 follow-on) #8239 (group-commit batching for id(world): F12.12 many worlds per node: 1,000 idle / 100 active with a per-world memory budget #557 p99) is CLOSED 2026-11-17; id(world): F12.12 many worlds per node: 1,000 idle / 100 active with a per-world memory budget #557 itself remains OPEN. id: Phase 14 — hosted, federated, local-first (plan of record) #6312 reads OPEN today (was noted CLOSED 2026-11-10) — recorded as current state, does not alter the verdict.developing-today-fleet commentedon Nov 25, 2026
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.
developing-today-fleet commentedon Nov 25, 2026
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.
developing-today-fleet commentedon Nov 26, 2026
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.
developing-today commentedon Nov 27, 2026
🤖 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.
developing-today-fleet commentedon Nov 27, 2026
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 whilerepo-worker-codeposts progress markers; after 30 minutes of silence any other worker may pick this up.)developing-today-fleet commentedon Nov 27, 2026
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.dezren39 commentedon Nov 29, 2026
🤖 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.
developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix):
developing-today-fleet commentedon Nov 29, 2026
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 criteriapresent.Actions taken: labels added this pass:
status/needs-triagePriority:
priority/lowretained — matches the work's urgency as evidenced on the issue; no band change.