Skip to content
PACKAGES

keyedRateLimitAdmissionBundle()

Build the D648/D649 bounded fact-stream admission gate.

opts.requests contains authority-admitted requests, not arbitrary raw requests. When using {@link attachKeyedRateLimitAuthority}, use its authorityRequests projection or composed admission bundle. The graph validates correlation and currentness only. The host authority owns durable quota, clocks, algorithms, and atomic consume. Replay suppression is exact while a completed correlation remains retained; cross-restart business-effect idempotency remains executor/application-owned.

import { keyedRateLimitAdmissionBundle } from "@graphrefly/ts/rate-limit";
function keyedRateLimitAdmissionBundle(
graph: Graph,
opts: KeyedRateLimitAdmissionBundleOptions,
): KeyedRateLimitAdmissionBundle
ParameterTypeDescription
graphGraphGraph that owns the declared correlation and projection nodes.
optsKeyedRateLimitAdmissionBundleOptionsOne bounded authority-admitted correlation lane and retention bounds.

Graph-visible admissions, denials, status, issues, audit, and cursor projections.

import { keyedRateLimitAdmissionBundle } from "@graphrefly/ts/rate-limit";

packages/ts/src/rate-limit/keyed-rate-limit.ts