Repository navigation
feat(regions): activity health and hourly traffic trends - #503
Merged
Merged
Conversation
dborup
changed the base branch from
codex/regions-timeline-comparison
to
master
October 17, 2026 11:18
Owner
Author
Review — CS-Coordinator PR#503 — head 369562fVerdict: APPROVE This is a frontend-only increment that reuses Checked
The timeline-depth note from #502 applies here too: on 48 h retention instances, the 7 d view and comparisons will mostly show gaps. |
This was referenced Oct 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Third Regions milestone: observed region activity health and hourly traffic trends. Stacked on #502 (which builds on #501); this PR contains only the health/trends increment.
Interpretation and correctness
“Health” describes observed activity and retained evidence, not service availability or radio quality. There is no uncalibrated healthy/degraded/offline score or alarm threshold. Increased traffic can reflect spam, observer reception or routing changes; it does not establish improved network health.
No backend code, endpoint, schema, persistence, retention, dependency or operator configuration is changed. Any future health thresholds must be evidence-based and exposed through the customizer. Inter-region path evidence remains a later milestone.
Performance
Reuse
/api/regions/historyand its existing safety caps; no new server scans or per-node requests. Index selected-scope hourly activity once per snapshot/scope change into bounded 504-hour arrays. Activity-bin selection reads at most 168 bins without rescanning sparse history cells; distinct-node and period comparisons continue to use the existing prefix-sum selection. Charts and exact-value rows use keyed updates, bounded by 168 hours. Switching historical views, periods, scopes or timestamps does not fetch another payload.Local Node 26 / Apple arm64 measurements at the existing 250,000-cell limit (500 relay nodes):
A second fixture also exercises maximum fanout: 5,000 nodes × 32 scopes (160,000 node/scope pairs), exactly 250,000 valid cells and no truncation. Additional indexing is 2.085 ms median / 2.944 ms p95 across 20 runs; selecting 168 bins is 0.111 ms mean across 1,000 runs. Aggregate storage remains bounded to the same 504 slots, with 1,008 temporary generation-mark bytes.
These measure the additional activity helpers, not JSON parsing, existing history indexing, interval comparison or DOM rendering.
Verification
CI is dispatched explicitly on the feature branch because automatic PR workflows target
master, while this PR is stacked. The manual run is linked here rather than relying on an automatic PR Checks entry. Existing fork guards prevent publishing or deployment. Not merged or deployed.Final validation: full CI run 38896478073 passed on
369562f4, including all three server shards, all three browser shards, JavaScript/lint, ingestor, libraries, image validation and both aggregate gates. Final remote-head review has no open findings. The post-push local Regions browser run also passed all 27 checks.