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: implement: hot-world signals — write-locality metrics + sustained-threshold detector · Issue #2275 · developing-today/code

id: implement: hot-world signals — write-locality metrics + sustained-threshold detector #2275

New issue
Copy link
New issue
Copy link
Closed
#6832
Closed
id: implement: hot-world signals — write-locality metrics + sustained-threshold detector#2275
#6832
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/humanFiled directly by a humanstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Parent: #2059 (hot-world sharding investigation, ID epic #2056). Filed from the #2059 investigation (doc: ~/workspace/id-program-2026-10-28/investigations/hot-world-sharding.md, §2/§5).

Problem

The hot-world sharding triggers in #2059 need two things pkgs/id does not have yet:

  1. Write-locality data. WorldMetrics (pkgs/id/src/world/metrics.rs) records command/journal latency, queue depth, and sessions, but no per-topic/per-region write split — so the rung-1 (topic partition) vs rung-2 (region shard) vs rung-3 (native spill) decision cannot be made from evidence: all three triggers depend on whether writes concentrate in one topic/region.
  2. A signal consumer. Nothing evaluates MetricsSnapshot against sustained thresholds (rate vs ceiling, actor_queue_depth_max growth, latency bands over 10-minute windows). Detection today would be a human reading id world stats.

Scope

  • Add a bounded write-locality counter to WorldMetrics (per-topic or per-region write counts, fixed-size / top-K so recording never allocates on hot paths, matching the existing metrics design), surfaced in MetricsSnapshot.
  • Add a threshold evaluation over snapshots (sustained-window, spike-resistant) that reports a world's hotness band (healthy / warning / critical) plus which signal fired, consumable from id world stats.

Acceptance criteria

  • MetricsSnapshot carries write-locality counts with no allocation/locking on the record path (same discipline as existing fields).
  • Hotness-band evaluation exists with tests covering: sustained critical, spike-does-not-trigger, and queue-growth detection.
  • id world stats surfaces the band and the firing signal.
  • No change to world semantics, journal format, or the serial actor model.

Program: ID wave-1 follow-on from #2059; the design/synthesis consumer is #2046 (serverless edition v1), which stays gated on its named inputs.

Activity

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

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

    CODE-1136

  3. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  4. dezren39
    added
    kind/enhancement
    source/humanFiled directly by a human
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    status/needs-triageNot yet triaged; needs a first look
    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 — fleet monitor, 2026-10-29

    • Related: parent id: investigate: hot-world sharding — when one world outgrows one Durable Object #2059 (hot-world sharding investigation), epic epic: ID platform expansion — apps, comms, currency, hosting, boards (2026-10-28 directive, LIST 6–15) #2056; investigation doc §2/§5 linked in the body.
    • Still live: filed today from the id: investigate: hot-world sharding — when one world outgrows one Durable Object #2059 investigation; no metrics/detector implementation exists yet.
    • Notes: body already carries acceptance criteria; none appended.
    • Risks: threshold tuning is the open-ended part — a detector that fires constantly is worse than none. Prefer shipping the metrics first with the detector behind a conservative sustained-threshold default.
    • Suggested approach: write-locality metrics first (observable, no behaviour change), detector second with thresholds from the id: investigate: hot-world sharding — when one world outgrows one Durable Object #2059 doc's numbers.
    • Labels normalized: kind/enhancement, source/human, priority/normal, effort/m, status/needs-triage, meta/enriched.
  6. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    Refinement from the #2059 investigation doc review (PR #2820, Codex finding, verified against the code): the hotness detector in this issue must not trigger on actor_queue_depth_max. That metric is a lifetime high-water mark — WorldMetrics::record_queue_depth (pkgs/id/src/world/metrics.rs) uses fetch_max, and MetricsSnapshot never resets it — so after any large burst it can neither show queue growth inside a window nor show recovery. The detector should sample actor_queue_depth per snapshot (trend across 3+ snapshots, per the investigation §2 bands) and/or compute a windowed maximum itself. The landed doc (doc/2026-10-30T19-35-00Z_investigation_hot_world_sharding/, §2 caveat) states this; carrying it here so the implementation spec doesn't have to rediscover it.

  7. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  8. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-g
    • Session / ID: task 7884 (triage); follow-up implementation: task 8498
    • Found via: queue claim
    • Task: Triage issue id: implement: hot-world signals — write-locality metrics + sustained-threshold detector #2275 at current main — verdict: still live, confirmed unimplemented, implementation routed.

    Evidence (fresh, 2026-11-03):

    • pkgs/id/src/world/metrics.rs at main: WorldMetrics record methods are record_command, record_journal_append, record_checkpoint, add_frame_bytes, record_queue_depth only. MetricsSnapshot carries latency histograms, totals, frame_bytes_total, actor_queue_depth, actor_queue_depth_max, sessions — no write-locality counts, and no hotness-band evaluation exists anywhere in pkgs/id (code search finds write-locality/hotness only in the investigation/design docs).
    • PR search for id: implement: hot-world signals — write-locality metrics + sustained-threshold detector #2275: only PR doc: investigation — hot-world sharding (#2059) #2820 (the merged id: investigate: hot-world sharding — when one world outgrows one Durable Object #2059 investigation doc). No implementation PR or branch exists; nobody owns this work.
    • The 2026-10-30 refinement on this issue (comment 6532029493) is carried into the follow-up packet verbatim: the detector must not trigger on actor_queue_depth_max (lifetime high-water mark, fetch_max, never reset) — it samples the actor_queue_depth gauge trend across 3+ snapshots and/or computes a windowed maximum.

    Routing: implementation enqueued as task 8498 (small_fix, priority 30) with the issue's four acceptance criteria as its acceptance list, including the gauge-trend constraint and the sustained-critical / spike-does-not-trigger / queue-growth tests. Issue #2275 stays open; status/needs-triage removed, queue/queued kept for task 8498.

    • Expectation: done for triage; implementation proceeds under task 8498.
    • Links: task 8498 · parent id: investigate: hot-world sharding — when one world outgrows one Durable Object #2059 · investigation PR doc: investigation — hot-world sharding (#2059) #2820
  9. dezren39
    removed
    status/needs-triageNot yet triaged; needs a first look
    on Nov 3, 2026
  10. 19 remaining items

  11. developing-today commented on Nov 6, 2026

    @developing-today
    developing-todayBot
    on Nov 6, 2026 – with developing.today
    Contributor
    More actions

    Correction to the fleet monitor escalation note above (its label names were stripped by a shell substitution error when posting): the stale labels on this issue are queue/claimed + work/assigned; the requeue path, if the reviewer finds the work is not done, is to swap them to queue/queued + status/needs-triage and enqueue a fresh triage packet; user/review was added by that note.

  12. developing-today commented on Nov 7, 2026

    @developing-today
    developing-todayBot
    on Nov 7, 2026 – with developing.today
    Contributor
    More actions

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

  13. developing-today commented on Nov 7, 2026

    @developing-today
    developing-todayBot
    on Nov 7, 2026 – with developing.today
    Contributor
    More actions

    Progress from repo-worker-code-d: reviewing user/review escalation: implementation reportedly completed 2026-11-03 on branch queue/8498-2275-hot-world-signals (0e9e83f) but PR never left the outbox. Next: verify branch vs main, revalidate, land or close with evidence.

  14. developing-today commented on Nov 7, 2026

    @developing-today
    developing-todayBot
    on Nov 7, 2026 – with developing.today
    Contributor
    More actions

    Progress from repo-worker-code-d: branch verified intact (0e9e83f), merge-tree clean vs current main, not in main. Next: merge main locally, run metrics/hotness tests, open rescue PR.

  15. developing-today commented on Nov 7, 2026

    @developing-today
    developing-todayBot
    on Nov 7, 2026 – with developing.today
    Contributor
    More actions

    Progress from repo-worker-code-d: tests pass on merged tree (hotness 6/6, metrics 3/3). Next: PR open, Codex gate, merge.

  16. developing-today
    added
    status:in-review
    on Nov 7, 2026
  17. developing-today
    added a commit that references this issue on Nov 7, 2026

    Merge pull request #6832 from developing-today/queue/fallback-2275-la…

    c224437
  18. developing-today
    closed this as completedin #6832on Nov 7, 2026
  19. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 7, 2026
  20. developing-today commented on Nov 7, 2026

    @developing-today
    developing-todayBot
    on Nov 7, 2026 – with developing.today
    Contributor
    More actions

    Released by repo-worker-code-d (outcome: done). DONE (user/review escalation resolved): the 2026-11-03 implementation by lane code-i (task 8498) was complete but its PR never left the outbox. Verified intact on branch queue/8498-2275-hot-world-signals (0e9e83f), merged current main cleanly, re-ran tests on the merged tree (hotness 6/6, world::metrics 3/3, cargo check --no-default-features OK), and landed it as PR #6832. Issue closed by the merge. Credit: implementation lane code-i; landing/review lane code-d.

  21. developing-today
    removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 7, 2026
  22. dezren39
    removed
    user/reviewNeeds a user-look: Muse reviews first and handles what it can
    status/in-progressQueue worker lifecycle state
    on Nov 7, 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/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/humanFiled directly by a humanstatus:donetask/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.