GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id(world): F12.12 many worlds per node: 1,000 idle / 100 active with a per-world memory budget · Issue #557 · developing-today/code

id(world): F12.12 many worlds per node: 1,000 idle / 100 active with a per-world memory budget #557

New issue
Copy link
New issue
Copy link
In progress
In progress
id(world): F12.12 many worlds per node: 1,000 idle / 100 active with a per-world memory budget#557
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insenhancementNew feature or requestepic/id-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedmode/onlineFully doable remotely: design, config, code, cloudnowOrg Project gate: active priority — orchestrator adds to the boardpriority/normalOrdinary priority (the default)queue/queuedHas a queued queue tasksource/humanFiled directly by a humanstatus:in-reviewtask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 22, 2026
Issue body actions

What and why

Lazy open, idle eviction with checkpoint and a bounded memory budget per world, measured against 1,000 idle and 100 active (20 ev/s, p99 < 50 ms) targets with the F11.8 harness. Lazy open, eviction and per-guest memory caps exist, but nobody has measured the targets and a world's total memory is not bounded.

Source

  • .opencode/plans/phase-12-platform-flexibility.md:51
  • .opencode/plans/phase-12-platform-flexibility.md:19-20

Current status

Partial. Mechanisms exist from Phase 9/10: pkgs/id/src/world_hub.rs:7-15 (lazy single-flight open, session and open-world ceilings, idle eviction), and a per-guest linear memory cap of 16 MiB (pkgs/id/src/sandbox.rs:25-36). The per-world total memory budget with refusal tests landed in #4628. The F11.8 many-world measurement now exists; its p99 is 5,650.792 ms versus the 50 ms target, so that performance criterion remains open. The checkpoint/eviction/reopen integrity assertion passed for all 100 active worlds.

Acceptance criteria

  • A per-world total memory budget is enforced, with refusal tests
  • 1,000 idle and 100 active worlds (20 ev/s each, p99 < 50 ms) are measured with the F11.8 harness and the results recorded (measured p99: 5,650.792 ms; target missed)
  • Idle eviction checkpoints and reopens without loss under that load

Size

L

Prerequisites

  • id(ci): F11.8 benchmark harness with committed baselines #539 — D1-008 F11.8 Benchmark harness with committed baselines

Activity

Next
  1. dezren39
    added
    enhancementNew feature or request
    on Oct 22, 2026
  2. github-actions
    assigned
    dezren39
    on Oct 22, 2026
  3. dezren39
    added
    kind/featureNew feature or capability request
    source/humanFiled directly by a human
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 26, 2026
  4. dezren39 commented on Oct 26, 2026

    @dezren39
    dezren39
    on Oct 26, 2026
    MemberAuthor
    More actions

    Intake review

    Fleet-monitor intake pass (2026-10-26). Body already carries a full ## Acceptance criteria section, so this pass is label normalization plus a liveness check — no body edit.

    Verified live on main e3467560 (2026-10-26): no per-world total memory budget exists — git grep -i 'memory_budget\|per-world.*memory' origin/main -- pkgs/id/src finds nothing; the per-guest linear-memory cap the body cites is still the only memory bound. The measurement half is also untouched (no harness run recorded). Still live; the body's "Partial" status assessment still holds.

    Related: prerequisite #539 (F11.8 benchmark harness with committed baselines) is still open and unenriched — the 1,000-idle/100-active measurement cannot be recorded without it. The metrics from #553 would make the budget observable once enforced.

    Risks / notes: a per-world budget needs a defined refusal behavior when a world exceeds it (refuse new allocations vs. evict vs. poison) — that semantic choice should be made in the implementation plan, mirroring how the sandbox handles guest memory exhaustion.

    Suggested approach: define and enforce the per-world budget with refusal tests first (verifiable without the harness), then run the scale measurement once #539's harness exists and record the numbers on this issue.

  5. dezren39
    added
    nextOrg Project gate: queued next — orchestrator adds to the board
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Oct 27, 2026
  6. 411 remaining items

    Load more actions
  7. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026
    MemberAuthor
    More actions

    Released by felix (outcome: free). Second-pass review done: PR #12552 open (inline journal write, measured neutral in sandbox venue, no regression); seam audit + design question recorded on the issue. Felix reviews/merges.

  8. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: merged
    by: agent felix (kind muse, Muse sandbox seat; queue fallback claim, worker felix)
    at: 2026-11-22

    Second-pass review landed: #12552 (merged).

    Per-seam verdicts are in the PR; the one landed win is structural: the per-world journal writer thread is gone. The writer's queue could never form (the owning actor is the sole producer and rendezvous-blocks until the in-flight append is durable — the same reason queue_depth_max reads 0 in every profile), so the thread was pure overhead: one channel send, one thread wake, and one reply wake per append, plus a thread per world. FileJournal now writes inline (same write_all + sync_data under the block_in_place guard from the first fix). No durability or ordering change. The sandbox venue could not measure a delta (ambient load swung percentiles ±2x while mechanism metrics stayed in one band) and showed no regression; the change stands on the construction argument and the hop count. Everything else reviewed was either already minimal (the sync is a single fdatasync-equivalent), immaterial (the duplicate serialization for the replication broadcast — recorded in the PR for a future CPU-bound profile), or a semantics question (below).

    Design question left open for Drewry, deliberately not implemented: input_ack waits for the journal sync in both paths — it is the documented WorldJournal contract ("acknowledged history must never get ahead of durable history"), and the laptop numbers say the ack essentially IS the sync wait (input_ack_p50 18.892 ms vs journal mean 25.784 ms). An async or batched ack would be a durability-semantics change.

    #557 remains open for the unloaded laptop re-run and that ack decision.

  9. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026
    MemberAuthor
    More actions

    decision:v1
    by: Drewry (via Felix, main chat)
    at: 2026-11-22

    input_ack: async/batched acknowledgement is APPROVED as SELECTABLE MODES — not a default flip. The durability contract stays the default; async/batched modes are opt-in per configuration, with the tradeoffs documented where the modes are defined. The fsync/syncfs group-commit tradeoffs (the evaluated-and-rejected Fix 2 line) must be discussed in the same documentation pass, so the record shows all three durability levers side by side. The unloaded laptop re-run remains outstanding as the measurement baseline.

  10. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Picked up by felix — 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 felix posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  11. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Progress from felix: implementing the selectable input_ack modes per Drewry's 2026-11-22 decision (comment 7087900634) — sync default unchanged, async/batched opt-in per configuration, tradeoff documentation in the same pass. Worktree felix/557-ack-modes.

  12. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Progress from felix: ack modes implemented on branch felix/557-ack-modes (design doc + JournalAckMode + FileJournal modes + WorldLimits plumbing + tests + BASELINES note). Laptop test run queued on the fleet build lock; PR follows once the journal suites pass.

  13. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: slice-landed
    by: agent felix (kind muse, Muse sandbox seat)
    at: 2026-11-23

    Landed for review: #12746 — selectable journal ack modes, per Drewry's 2026-11-22 decision (comment 7087900634). NOT merged; Felix reviews.

    What it is: JournalAckMode on the journal — Sync (default; the documented durability-before-ack contract, byte-for-byte the old behaviour), Batched (one sync per 64 appends; loss bounded to the unsynced tail), Async (no sync on the ack path; durability at sync points only). Selected per world via WorldLimits::journal_ack_mode, plumbed through open_world to FileJournal::open_with_ack_mode; observable via WorldJournal::ack_mode() and FileJournal::unsynced_appends(). Tradeoffs for all three levers (ack timing, the fdatasync primitive, and the rejected syncfs/fdatasync group-commit axis) are documented on the enum where the modes are defined and in the design record doc/2026-11-23T00-24-00Z_design_journal_ack_modes/. Transactions and compaction stay full sync points in every mode; the journal format and recovery scan are unchanged, so a mode switch on reopen replays identically. No new dependencies.

    Evidence (laptop, fleet-build-lock): fail-before — the six new tests alone on pristine origin/main fail to compile (26 errors, the whole mode surface missing). Pass-after — cargo test -p id-worlds --lib journal_ 66 passed / 0 failed (incl. the five new mode tests); world_store:: 51 passed / 0 failed; world_limits_default 1 passed; rustfmt clean. Clippy is environment-blocked on the laptop's shared target dir (E0514, the same failure the #1062 lane recorded); no new warnings touch the changed code.

    What remains on #557, unchanged by this slice: the unloaded laptop re-run of the many-worlds harness is still the deciding measurement and still outstanding — the modes are opt-in and the default path is untouched, so no existing baseline moves. A BASELINES.md section records the landing with no new number, per the decision's terms.

  14. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Released by felix (outcome: free). Selectable ack modes landed as PR #12746 (unmerged, for Felix's review): JournalAckMode sync/batched/async, WorldLimits plumbing, design doc, 6 tests green on laptop; #557 stays open for the unloaded re-run.

  15. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: slice merged
    by: agent felix (kind muse, Muse sandbox seat)
    at: 2026-11-22

    Merged: PR #12746 (2026-11-23T00:58:39Z) — selectable journal ack modes, implementing Drewry's 2026-11-22 ruling (comment 7087900634). Sync remains the default with byte-for-byte the old contract; Batched (one sync_data per 64 appends, loss bounded to the unsynced tail) and Async (durability only at sync points) are opt-in per world via WorldLimits::journal_ack_mode. The running mode is observable (ack_mode(), unsynced_appends() — always 0 in Sync), journal bytes and recovery are mode-independent (pinned by the cross-mode reopen test), and transactions/compaction stay full sync points in every mode. The tradeoff documentation sits on the enum and in doc/2026-11-23T00-24-00Z_design_journal_ack_modes/, with all three durability levers side by side including the fsync/syncfs group-commit axis (measured-and-rejected numbers carried from the Fix 2 record). Evidence: fail-before compile failure on pristine main (26 errors, surface missing); 66/66 journal tests + 51/51 world_store on the laptop under the build lock. No new dependencies.

    Still outstanding on #557, unchanged: the unloaded laptop re-run of the many-worlds harness — the deciding measurement. No baseline number moves until a world runs in a relaxed mode and is measured.

  16. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Fresh check: #557 is still OPEN. The only unmet criterion remains the reference-laptop p99 <50 ms measurement; the latest deciding run is 426.224 ms under heavy shared load. PR #12746 merged selectable Sync/Batched/Async journal ack modes with Sync still the default, so that does not resolve the criterion or change production behavior. Routed the next bounded slice as queued task 22182: expose benchmark-only ack-mode selection and measure the full workload in all three modes on an otherwise idle reference laptop, recording conditions and durability assertions. Keep #557 open; if all measurements remain >=50 ms, route the next optimization from the measured profile. Task: 22182 (repo-health-code-pilot).

  17. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    Merge-watch progress for PR #14233: the branch now includes current main (a5c26fc17d77) via merge commit 43fdcdd321f; its unique diff is limited to the benchmark selector, world-bench wiring, and per-mode results. The PR's Closes #557 reference has been corrected to Refs #557: the loaded 9–13 venue does not satisfy the outstanding idle reference-laptop p99 criterion, so this issue stays open. Current PR mergeability is clean. Targeted Fleet validation is running at 45832216915.

  18. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    Base refresh correction for PR #14233: main advanced again after the prior note. The PR branch now includes a965f0300c41 via merge commit 0b0b7436b2a; its four-file diff and non-closing Refs #557 link remain intact. GitHub reports a clean merge state. The final-head Fleet follow-up is 45836271733; I will verify its checkout SHA and terminal result before merge.

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

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 Agent note · verify-and-route verdict (queue task 24977, lane code-h, 2026-11-27)

    Fresh state verified this pass:

    • id(world): F12.12 many worlds per node: 1,000 idle / 100 active with a per-world memory budget #557 is OPEN (status:in-review, epic/id-program). No hold labels.
    • Ack-mode selection landed: PR id(world): selectable journal ack modes — sync default, batched, async (#557) #12746 merged 2026-11-23 (Sync/Batched/Async, Sync default). PR bench(id): many_worlds journal ack modes + per-mode baselines #14233 (benchmark ack-mode selector + per-mode BASELINES) merged 2026-11-26 with Refs #557, not a closing keyword.
    • The only unmet acceptance criterion remains the idle reference-laptop p99 < 50 ms measurement for 1,000 idle / 100 active worlds (last deciding run 426 ms under shared load; prior 5,650 ms). The loaded-laptop measurement cannot close it.
    • No live queue task for id(world): F12.12 many worlds per node: 1,000 idle / 100 active with a per-world memory budget #557 or the follow-on 22182 is queued, claimed or parked. The idle-laptop re-run is not a queue-actionable code change: it needs an otherwise-idle reference machine.

    Verdict: stays open; no new packet enqueued. Per the prior note (2026-11-24), the next step is the idle-laptop measurement; if all modes remain >= 50 ms, the next optimization routes from the measured profile. That routing happens once the measurement exists, not now.

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

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    Idle reference-laptop measurement — task 25926 (oc-code-03, 2026-11-27)

    The laptop is reachable, but the required idle-machine gate is not met. Fresh check at 03:37 local: load average 7.78 / 6.11 / 6.71 on 16 threads, with multiple rustc compiler processes using roughly 90–151% CPU, active git work, Python, OpenCode, and codedb. I did not start any benchmark runs, so no results are claimed or fabricated.

    Task 25926 is parked until the reference laptop is reachable and has no competing build or benchmark load. At that point, recheck processes/load and run the full Sync, Batched, and Async matrix; #557 remains open pending accepted idle measurements.

  21. dezren39 commented on Nov 27, 2026

    @dezren39
    dezren39
    on Nov 27, 2026
    MemberAuthor
    More actions

    Stand-down — lane 0437-A-C, queue task 25926, 2026-11-27. Premise check confirms this task is already parked (oc-code-03, 09:39Z): the measurement requires an idle reference laptop, the idle gate is not met, and this seat runs builds/tests by remote dispatch only — a hardware-specific idle-laptop benchmark cannot be satisfied from a GitHub-hosted runner. No duplicate attempt made. Wake condition unchanged: reference laptop verifiably idle, then run the Sync/Batched/Async matrix per the task acceptance.

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/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insenhancementNew feature or requestepic/id-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedmode/onlineFully doable remotely: design, config, code, cloudnowOrg Project gate: active priority — orchestrator adds to the boardpriority/normalOrdinary priority (the default)queue/queuedHas a queued queue tasksource/humanFiled directly by a humanstatus:in-reviewtask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.