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: investigate: hot-world sharding — when one world outgrows one Durable Object · Issue #2059 · developing-today/code

id: investigate: hot-world sharding — when one world outgrows one Durable Object #2059

New issue
Copy link
New issue
Copy link
Closed
#2820
Closed
id: investigate: hot-world sharding — when one world outgrows one Durable Object#2059
#2820
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/questionQuestion or design decision to resolvemeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivepriority/normalOrdinary priority (the default)source/humanFiled directly by a human

Description

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

Source: the Cloudflare Workers fit investigation (on #2044) open question 3. A per-world Durable Object has a ~1,000 req/s soft ceiling and single-threaded execution. Investigate sharding/overflow strategies for a hot world (partition by topic/region, spill to native nodes, hierarchical objects) and the signals that trigger each.

Program: Drew's 2026-10-28 directive (full text: hatch-personal memory/topics/id-program-2026-10-28.md). Parent epic: #2056.
Working pattern: parallel investigations, then the named synthesis issue merges them into a full design. Route guidance: Workhorse by default; Specialist/Summit for synthesis and ramification-heavy work. A result that says "done" is not the endpoint — the orchestrator reviews it and may commission another round. Deliverables: a markdown design/investigation doc (mermaid/SVG diagrams welcome) linked from this issue, plus follow-up issues for anything buildable. Build a proof of concept where the design calls for one, but do NOT build the permanent feature on top of an unreviewed PoC.

Acceptance criteria

  • A markdown investigation doc is linked from this issue covering sharding/overflow strategies for a hot world (partition by topic/region, spill to native nodes, hierarchical objects).
  • The doc names the signals that trigger each strategy, against the per-world Durable Object ~1,000 req/s soft ceiling and single-threaded execution.
  • Anything buildable that falls out is filed as follow-up issues linked here.

Activity

Next
  1. dezren39
    added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Oct 29, 2026
  2. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    Parent epic: #2056 — ID platform expansion (2026-10-28 directive). Filed as batch 2 from PREPARED-ACTIONS.md.

  3. developing-today commented on Oct 29, 2026

    @developing-today
    developing-todayBot
    on Oct 29, 2026 – with developing.today
    Contributor
    More actions

    CODE-980

  4. dezren39
    added
    kind/questionQuestion or design decision to resolve
    source/humanFiled directly by a human
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 29, 2026
  5. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    Intake review

    Related: parent epic #2056; source: Workers fit investigation #2044, open question 3; sibling investigations #2060 (key recovery) and #2061 (jurisdiction pinning).

    Notes: investigation deliverable in the ID program batch; the trigger signals matter as much as the strategies — an overflow path with no observable trigger is not a design.

    Risks: partitioning by topic/region changes world consistency semantics; the doc should state what consistency each strategy gives up.

    Suggested approach: Workhorse investigation per program route guidance.

    — Fleet monitor intake pass (protocol §5): issue verified still live this run (filed within the last hour; no merged PR or duplicate resolves it), labels normalized, meta/enriched applied.

  6. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  7. dezren39
    added
    priority/highImportant and time-sensitive
    queue/queuedHas a queued queue task
    on Oct 29, 2026
  8. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    Top priority — ID program wave-1. Drew directed this be picked up in the next runs (2026-10-29): enqueued directly as triage task 3361 in repo-health-code-pilot at queue priority 20 (only breakage-class work at priority 10 outranks it). Wave-1 is the ungated investigations and designs; syntheses and PoCs stay gated on their named inputs. Investigation route: Workhorse.

  9. dezren39
    removed
    status/needs-triageNot yet triaged; needs a first look
    on Oct 29, 2026
  10. 8 remaining items

  11. dezren39
    added
    queue/queuedHas a queued queue task
    and removed
    work/assignedQueue worker lifecycle state
    on Oct 29, 2026
  12. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    Queued: repo-health-code-pilot task 3928 (2026-10-30), wave-2 follow-on. The 2026-10-29 triage verified this issue and recorded 'write the investigation' as the next step; this task is that write — investigation doc PR under doc/, follow-up issues for buildable pieces, close with the doc link. Ordered by Drew ('queue unrun').

  13. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Oct 30, 2026
  14. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), Lane D shift
    • Session / ID: queue task 3928
    • Found via: queue claim
    • Task: Write the wave-2 investigation/design doc for hot-world sharding (overflow strategies past one Durable Object, trigger signals, journal/semantics impact) under doc/ via PR; follow-ups + close.
    • Expectation: effort m; done = doc PR opened/merged, follow-up issues filed, issue closed with doc link.
    • Links: task 3928
  15. dezren39
    added 2 commits that reference this issue on Oct 30, 2026

    doc: fix four Codex findings — windowed queue-depth signal, re-merge …

    0e20e4c

    Merge pull request #2820 from developing-today/queue/3928-2059-hot-wo…

    f25da0f
  16. dezren39
    closed this as completedin #2820on Oct 30, 2026
  17. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    Investigation landed — closing

    The wave-2 investigation/design document for this issue is landed on main:

    • Doc: doc/2026-10-30T19-35-00Z_investigation_hot_world_sharding/2026-10-30T19-35-00Z_investigation_hot_world_sharding.md
    • PR: doc: investigation — hot-world sharding (#2059) #2820 (merged, merge commit f25da0f)

    It formalises the wave-1 findings recorded on this issue (task 3361), re-verified against current main (metrics.rs signal fields, SetCrossWorldWrite in actor.rs, WorldLimits in mod.rs). It covers: the escalation ladder (rung 0 shed non-actor load → 1 topic partition → 2 region shards → 3 native spill under a journaled lease → 4 hierarchy for reads only); the §2 signal bands with sustained-window and de-escalation discipline; the §4 comparison table with each strategy's consistency cost explicit (ordering, atomicity, "is it still one world?"); and §5 on what sharding does to the journal, with multi-writer CRDT journal splitting explicitly rejected. All four Codex review findings on the PR were verified against the code, fixed in the doc, and replied to on their threads: windowed queue-depth signal (actor_queue_depth_max is a lifetime fetch_max high-water mark — a note also landed on #2275), shard re-merge as a state-import/reconciliation design rather than journal concatenation (WorldCore::restore rejects a second Created header), command_latency corroboration (it times the whole handler, journal persistence included), and aggregate-vs-per-object storage for topic partitioning.

    Follow-ups filed from the investigation:

    • id: design: region-seam handoff format — journaled export/import for hot-world region shards (from #2059) #2818 — design: region-seam handoff format (journaled export/import)
    • id: design: native-spill write lease protocol for hot worlds (from #2059) #2819 — design: native-spill write lease protocol

    Hand-off to #2046 (doc §8): rung-1 hosted mapping (separate DOs vs segmented tables), shard re-merge design or one-way declaration, threshold defaults confirmation against #2275's detector. The signals follow-on #2275 remains open and carries the windowed-queue-depth refinement.

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), Lane D shift
    • Session / ID: queue task 3928
    • Found via: queue claim
    • Task: Write the wave-2 investigation/design doc under doc/ via PR; follow-ups + close.
    • Expectation: met — doc PR doc: investigation — hot-world sharding (#2059) #2820 merged, follow-ups id: design: region-seam handoff format — journaled export/import for hot-world region shards (from #2059) #2818/id: design: native-spill write lease protocol for hot worlds (from #2059) #2819 filed, issue closed with the doc link.
    • Links: PR doc: investigation — hot-world sharding (#2059) #2820 · doc doc/2026-10-30T19-35-00Z_investigation_hot_world_sharding/
  18. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/questionQuestion or design decision to resolvemeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivepriority/normalOrdinary priority (the default)source/humanFiled directly by a human

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.