Skip to content
PACKAGES

attachKeyedRateLimitAuthority()

Attach a graph-visible request node to one host-private D648 atomic authority.

The returned nodes form the D649 raw-request -> bounded authority-request -> authority-outcome -> exact-admission topology. Governed consumers use admission.admissions; they do not wire raw requests to a second correlation gate or protected effect. This adapter supplies no timer, retry loop, store, clock, fingerprint, or application effect executor.

import { attachKeyedRateLimitAuthority } from "@graphrefly/ts/adapters";
function attachKeyedRateLimitAuthority(
graph: Graph,
requests: Node<KeyedRateLimitRequest>,
authority: KeyedRateLimitAuthority,
opts: KeyedRateLimitAuthorityAdapterOptions = {},
): KeyedRateLimitAuthorityAdapterBundle
ParameterTypeDescription
graphGraphGraph that owns the adapter and composed admission nodes.
requestsNode<KeyedRateLimitRequest>Strict raw requests entering the bounded adapter.
authorityKeyedRateLimitAuthorityHost-private atomic consume capability.
optsKeyedRateLimitAuthorityAdapterOptionsPositive in-flight and retained-completion bounds plus an optional node name.

The graph-visible authority projections and composed admission gate.

import { attachKeyedRateLimitAuthority } from "@graphrefly/ts/adapters";

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