GeezerVison is showing github.com — feat(id): hot-world signals — write-locality metrics + sustained-threshold detector (#2275, landing task 8498) by developing-today[bot] · Pull Request #6832 · developing-today/code
Conversation
developing-today
Bot
commented
Nov 7, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Fixes #2275.
Provenance
The implementation in this PR was written by lane code-i (task 8498, 2026-11-03) on branch queue/8498-2275-hot-world-signals (commit 0e9e83f3be), but its PR never left the action outbox, so the work sat unlanded for four days while the issue kept stale queue/claimed labels — the gap the fleet monitor escalated on 2026-11-06 (hence user/review). As the reviewer for that escalation I verified the work was real and complete, merged current main into it (clean, no conflicts), re-ran its tests, and am landing it under my own branch rather than rewriting code-i's.
What it does (commit 0e9e83f3be, unchanged)
- Write-locality in
WorldMetrics (world/metrics.rs, +316): a bounded, fixed-size write-locality table (entity-addressed writes record their entity_ref on the journal record path; overflow folds into a catch-all bucket) surfaced as MetricsSnapshot.write_locality — no allocation/locking on the record path, matching the existing metrics discipline.
- Sustained-threshold detector (
world/hotness.rs, new, 349 lines): evaluates the retained snapshot window (never actor_queue_depth_max — the queue gauge trend, per the 2026-11 triage note) plus sustained p95 latency bands and window-average command rate, producing a HotnessReport (healthy / warning / critical + firing signal) attached to every snapshot.
world/actor.rs +8 (record-path hook), world/mod.rs wiring. No change to world semantics, journal format, or the serial actor model.
Verification (on the merged tree, current main + this commit)
cargo test --lib hotness: 6 passed — sustained_critical_latency_triggers, a_spike_does_not_trigger, queue_growth_is_detected_from_the_gauge_trend, sustained_command_rate_triggers, snapshot surfacing.
cargo test --lib world::metrics::: 3 passed — write_locality_counts_regions_and_overflows_when_full, snapshot_hotness_uses_the_retained_window, histogram_buckets_and_snapshot_shape (pre-existing shape intact).
MetricsSnapshot.hotness is consumed through the same snapshot path id world stats already uses (WorldHandle::metrics() → commands/world.rs).
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
ab11f2e2-4fc0-489d-bc90-618c18b2a04f
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
dezren39
Awaiting requested review from dezren39
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|