evaluateFixedWindowRateLimitTransition()
Evaluate one D650 fixed-window-v1 transition.
This synchronous pure calculator owns no clock, store, transaction, receipt, outcome id, effect,
Graph node, I/O, timer, polling, retry, or scheduler. A null state means the host has already
confirmed first initialization inside its atomic authority boundary.
Durable hosts must order work as: strict request and identity; receipt lookup; identical material
returns the stored outcome without reading time or evaluating; different material conflicts;
resolve the exact policy; load exact scoped state; acquire authoritative observedAtMs; evaluate;
atomically persist nextState and the outcome receipt.
Import
Section titled “Import”import { evaluateFixedWindowRateLimitTransition } from "@graphrefly/ts/rate-limit";Signature
Section titled “Signature”function evaluateFixedWindowRateLimitTransition(value: unknown): FixedWindowRateLimitTransitionParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | Strict fixed-window request, policy, state, and supplied observation input. |
Returns
Section titled “Returns”One immutable ready transition with exact nextState.
Example
Section titled “Example”import { evaluateFixedWindowRateLimitTransition } from "@graphrefly/ts/rate-limit";Source
Section titled “Source”packages/ts/src/rate-limit/keyed-rate-limit-algorithms.ts