Skip to content

Rate regulator: windows start at epoch multiples of resetIntervalMs (E91) - #117

Merged
talwgx merged 1 commit into
mainfrom
docs/e91-window-wording
Oct 26, 2026
Merged

talwgx merged 1 commit into
mainfrom
docs/e91-window-wording

Conversation

@talwgx

@talwgx talwgx commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Engineering ask E91, the wording that ships with engine 1.1.152 (log-10x/l1x-inc#238). Comments and schema text only. The modules twin is the docs/e91-window-wording branch in log-10x/modules; either can merge first.

What changes

  • pipelines/run/receive/rate/config.yaml (resetIntervalMs comment): "Windows start at each multiple of the interval since the Unix epoch, so every node's windows line up with the clock, the same windows for all patterns and services. The first window after a start is partial, and a policy file reload does not start a new window."
  • pipelines/run/receive/rate/schema.json: the same sentences in the resetIntervalMs description, as the modules rateReceiverResetIntervalMs doc now reads.

Engine facts (l1x-inc 68cb4929)

  • AtomicCounterRegistry.java:46-48: the next reset of an interval is (floorDiv(time, interval) + 1) * interval, an epoch multiple; :191-196 (pruneEntry) zeroes a counter only when the prune time is a multiple of its own interval.
  • EventRegistryContext.java:81-83: reset() resets the lookup registry only, so a policy reload does not start a window.

🤖 Generated with Claude Code

…E91)

Engine 1.1.152 zeroes an interval counter at each multiple of its own
interval since the Unix epoch, so regulator windows line up with the clock
on every node, the first window after a start is partial, and a policy
reload still does not start one. config.yaml and schema.json carry the
modules text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@talwgx
talwgx merged commit 4f057f2 into main Oct 26, 2026
5 checks passed
@talwgx
talwgx deleted the docs/e91-window-wording branch October 26, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant