Skip to content

feat!: pending-key capabilities, scoped registration, capabilities-only public gateways, no loopback token - #28

Merged
thiras merged 9 commits into
mainfrom
claude/gateway-pending-key
Nov 24, 2026
Merged

thiras merged 9 commits into
mainfrom
claude/gateway-pending-key

Conversation

@alpergundogdu

@alpergundogdu alpergundogdu commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

The decdn gateway changes how it pays and who may use it. This PR updates the SDK, the fake gateway and the contract suite to match.

  • Loopback: no token. Every route passes a browser-header gate.
    • The gateway holds one pending delegate key.
    • A capability is registered with a required scope: "any" or an owner-signed namespace scope.
    • A key holds one capability per pool, and capabilities from several pools.
  • Public: no daily allowance. It pays only with capabilities registered through the same API on its bare host, and answers 503 when none can pay.
  • Payment order: among usable capabilities (not spent, not inside the expiry margin), the earliest one scoped to the request's namespace pays. Failing that, the earliest "any" one pays.
    • On loopback, the request's namespace is the one its URI names (?ns= or the site's label).
    • On public, it is the namespace whose pointer serves the request, and only for that pointer's own bundle: site entries, and /_decdn/ for the site's own hash. ?ns= and <ns>.<hash32> select no scope.

The gateway change is on decdn main, which pins this branch in .github/sdk-typescript.sha. sdk-python makes the same change in decdn/sdk-python#15, and the two SDKs behave the same.

Public API changes (breaking)

  • Opening a client:
    • OpenOptions.token and OpenOptions.host are removed.
    • A URL on localhost or a loopback address (127.0.0.0/8, [::1] in any spelling) opens a loopback client. Any other URL opens a public one, including an IPv4-mapped address, 0.0.0.0 and decdn.localhost.
    • In a page on a site origin, open() opens that site, whatever gatewayUrl names.
    • The client sends no x-decdn-token, no x-decdn-host and no Origin. From Node, fetch sends User-Agent: node, which the gate passes.
  • Removed:
    • The @decdn/client/node subpath, with readLoopbackToken and defaultDataDir.
    • The UNAUTHORIZED error code: a 401 maps to HTTP.
    • POOL_UNFUNDED.
  • client.loopback.delegate() returns the gateway's pending key. It is the same address on every call until a capability claims it. The gateway keeps keys in memory, so a restart loses them.
  • client.loopback.registerCapability({ capability, scope }):
    • scope is "any" or { namespaces, signature }, exported as CapabilityScope.
    • It returns Registration, newly exported: { signer, pool, expiry, namespaces? }.
    • Before sending anything, it refuses with CONFIG an empty namespaces, an id that is not a u64 of at least 1, or a signature that is not 0x plus 65 bytes. Otherwise it sends the signature as given, and the gateway checks it.
  • client.loopback.capabilities() lists the held capabilities in registration order, as RegisteredCapability entries { cap, expiry, namespaces?, pool, signer, spent }. namespaces is present only on a namespace-scoped capability.
  • client.loopback on a non-loopback client throws CONFIG: "the SDK offers the delegate and capability API on a loopback client alone: open one on a localhost or loopback-address URL".
  • PAYMENT_REQUIRED is a loopback gateway's plain-text 402, and a public gateway's 503 that names a fallback URI. It carries retryAfterSecs and fallbackUri. Any other 503 is HTTP.
  • Bad answers: a delegate, capability or pointer answer that is not JSON, lacks a field its contract names, or has a field of another type raises HTTP: "the gateway's answer to <path> is not the JSON its contract names: …". The error carries the body. It no longer surfaces as a raw SyntaxError or a silent undefined.

Fake gateway

Loopback gate. A top-level GET (Sec-Fetch-Mode: navigate and Sec-Fetch-Dest: document) passes first. Otherwise, in this order:

  1. Sec-Fetch-Site: cross-site gives 403.
  2. An Origin that is neither the bare host nor a site origin http://[<ns>.]<hash32>.localhost:<port> gives 403.
  3. No Sec-Fetch-Site, on a request with an Origin or a Mozilla/ user agent, gives 403.

Loopback routing.

  • A site origin spends only for its own pages, for the user (same-origin, none, or no Sec-Fetch-Site), and for a navigation to a document.
  • On the bare host, a browser's navigation to a bundle or entry redirects to its site.

API, both modes:

  • /_delegate keeps a single pending key.
  • PUT /_capability, in the real gateway's check order:
    1. 422 for a body that does not parse, an unknown field, or a missing or malformed scope. The scope must be "any" or a non-empty list of u64s (0 included) with an even-length hex signature.
    2. 422 for a cap of 0, or an expiry inside the 420 s margin.
    3. 409 for a key the gateway does not hold, or a second capability from one pool on one key.
    4. 422 for a signature that is not 65 bytes.
  • The registration and the listing echo namespaces for a namespace scope.
  • On a loopback gateway, the API answers no cross-origin OPTIONS. On a public gateway, /_delegate, /_capability and /_status answer on the bare host to any origin, with a 204 preflight, and answer 404 on site hosts.

Paying.

  • Payment is ranked as described above.
  • A pool in drained retires its capability, and the next one pays.
  • A raw blob the cache holds whole, and the empty root, need nothing that pays.
  • When nothing can pay:
    • Loopback answers 402: the gateway holds no capability that can pay: register one with PUT /_capability.
    • Public answers 503 JSON {"error": "the gateway cannot pay right now", "retry_after_secs": 60, "uri": ...}, with Retry-After: 60 and the Link fallback.
  • fake.fund() gives a test a capability that pays.

Contract suite and released gateways

  • Loopback (describe.skipIf(!shippedAfter("0.3.1"))):
    • The fixture has no token. Its capabilities field is one { capability } per flavour, each from its own pool, all issued to the pending key. Real-gateway registrations pass scope: "any".
    • The suite covers:
      • the pending key;
      • the 402 when nothing pays;
      • 422 for a missing or unknown scope, or an extra field;
      • 409 for an unheld key and for a second capability from one pool;
      • the listing's exact keys;
      • verified blob, entry, window and head reads;
      • each gate refusal, and the order the gate checks them;
      • a top-level navigation from another site passing while a frame's is refused;
      • the redirect of a navigation to its site.
    • Registering a namespace scope runs against the fake only, since a real gateway needs a pool-owner signature.
  • Public (if (shippedAfter("0.3.1"))): /_delegate, /_capability and /_status (with no allowance) on the bare host to any origin, and the API preflight on the bare host only. The fixture registers a capability before the suite, as decdn's harness does.
  • Released gateways:
    • The floor (v0.3.0) and the latest release (v0.3.1) have the old scoped, token-holding loopback API, so scripts/decdn-contract.sh --tag leaves out the loopback journey for any release at or before v0.3.1.
    • The public journey still runs against both.
    • Script tests check the script's released_after against shippedAfter.
    • The floor stays at 0.3.0 until decdn releases this API. Against 0.3.0 or 0.3.1, a loopback client gets the gateway's 401 as HTTP. The README says so.

Docs

The README covers:

  • the payment order and the expiry margin (one redeem interval plus 120 s, 420 s by default);
  • that only a pointer selects a scope on a public gateway;
  • the navigation exception and the site-origin rule;
  • that a browser sees a gate refusal as NETWORK;
  • the loopback hosts;
  • a 0.1, 0.2 row in the compatibility table.

The docs link the ADR sections #capabilities, #scope and #cross-origin-reads.

Gates

Local, on b9ae4e2:

  • pnpm lint (eslint, prettier, tsc) passes.
  • pnpm test:coverage: 285 passed, 43 skipped, 94.3% statement coverage. One test fails: publish.test.ts "stops on a version npm has from another tarball", which fails on macOS because its tar has no --mtime. CI runs it on Linux.
  • pnpm test:browser did not run locally, because Playwright's Chromium is not installed here. CI's browser job runs it.

Real gateway (scripts/decdn-contract.sh --ref main):

On b9ae4e2, all 17 CI checks pass, including Node 20.19/22/24/26, browser (Chromium), coverage, package and the v0.3.0/v0.3.1 release contracts.

🤖 Generated with Claude Code

alpergundogdu and others added 2 commits November 16, 2026 18:20
The loopback gateway holds one pending delegate key and pays with the first
usable capability in registration order. registerCapability takes the
capability alone and returns {signer, pool, expiry}; capabilities() entries
carry cap, expiry, pool, signer and spent. The host option and the
x-decdn-host header are gone, and the delegate and capability API is called
without the token.

The loopback contract suite skips against decdn v0.3.1 and earlier, and
scripts/decdn-contract.sh leaves those releases' loopback journey out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A public gateway pays only with capabilities registered on its bare host and
answers 503 when none can pay; it has no daily allowance and never answers
402. PAYMENT_REQUIRED is a loopback gateway's 402 alone. The fake gateway's
public mode drops the allowance, serves /_delegate, /_capability and /_status
on the bare host to any origin, and serves a cached blob with nothing that
pays. New public contract tests are gated on shippedAfter("0.3.1").

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@alpergundogdu alpergundogdu changed the title feat!: pending-key loopback capabilities feat!: pending-key capabilities, capabilities-only public gateways Nov 16, 2026
The loopback gateway has no token and gates every request on browser
headers instead. The token option, the x-decdn-token header,
readLoopbackToken and the UNAUTHORIZED error code are removed. The fake
gateway applies the gate to every loopback route, redirects only a browser
navigation to a bundle or entry to its site, and the loopback contract suite
checks the gate's refusals behind the existing shippedAfter("0.3.1") gate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@alpergundogdu alpergundogdu changed the title feat!: pending-key capabilities, capabilities-only public gateways feat!: pending-key capabilities, capabilities-only public gateways, no loopback token Nov 17, 2026
registerCapability takes a required scope: "any", or a namespace scope
{ namespaces, signature } whose pool-owner signature the SDK passes
through. The registration result and capability listing entries carry
optional namespaces, read as bigints. The fake gateway requires the
scope, checks its shape, echoes namespaces, and pays with a namespace
scope only for requests that name one of its namespaces.

A 503 maps to PAYMENT_REQUIRED, like a 402; POOL_UNFUNDED is gone. The
./node subpath export and defaultDataDir are removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@alpergundogdu alpergundogdu changed the title feat!: pending-key capabilities, capabilities-only public gateways, no loopback token feat!: pending-key capabilities, scoped registration, capabilities-only public gateways, no loopback token Nov 17, 2026
alpergundogdu added a commit to decdn/decdn that referenced this pull request Nov 17, 2026
…oken (#2910)

* feat(gateway)!: one pending delegate key, capabilities on both gateway modes

The gateway holds at most one pending delegate key: GET /_delegate returns
it until a capability claims it. PUT /_capability takes {"capability"}
only, for a key the gateway holds, one capability per pool per key. The
gateway pays every pull with the first registered capability that no
funding stop retired and that sits outside the node expiry margin, and
serves a cache hit with nothing that can pay. /_delegate, /_capability and
/_status need no token and no Origin; a loopback gateway answers nothing
cross-origin. A public gateway answers the same API on its bare host and
pays with capabilities first, then from its own pool when it names a
keystore.

Removes the per-page scope, x-decdn-host selection, per-site delegate
bounds, the pending-key TTL and the psl dependency.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(gateway)!: pay only with capabilities, no keystore and no allowance

A gateway, loopback or public, pays only with the capabilities pool owners
register to its in-memory delegate keys: --keystore and --capability are
refused, it opens no pool and keeps no buyer store past its run. The daily
allowance (--allowance-bytes-per-day, --allowance) is gone; the caps of the
capabilities bound what a gateway spends. A public gateway with nothing
that can pay answers 503 with the canonical decdn: URI. The counter
requests_allowance_exhausted is renamed requests_payment_required, /_status
loses its allowance field, and an active pull's payer is {signer, pool}.

The e2e journeys fund their gateways through decdn_e2e::pool_owner.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(gateway)!: a loopback gateway takes no token; browser headers gate it

A loopback gateway writes no token file and reads no x-decdn-token. Every
request passes a browser-header check after the Host check: a cross-site
page, an Origin that is none of the gateway's own (the bare host and its
site origins), and a browser that sends no Sec-Fetch-Site (an Origin, or a
Mozilla/ User-Agent) get 403. A client outside a browser passes. On the
bare host, a browser's navigation to a bundle or entry redirects to its
site; any other request is served there. Site pages may connect to their
own origin only. decdn dashboard reads the gateway's /_status with no
token.

Moves the SDK pins to decdn/sdk-typescript#28 and decdn/sdk-python#15,
whose contract suites pass against this gateway.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(gateway): a pool owner scopes a capability to its namespaces

A capability registered with a scope that its pool's owner signed
(EIP-712 CapabilityScope, domain decdn-capability-scope) pays only for
requests that one of the scope's namespace pointers serves: the
pointed bundle on <ns>.<host>. Scoped matches pay before unscoped
capabilities. The listing, /_status and the dashboard show each
capability's namespaces. `decdn pool assign --namespace` signs the
scope and prints the whole PUT /_capability body.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(gateway)!: every capability registration states its scope

`PUT /_capability` requires `scope`: "any" for a capability that pays
for any content, or a pool owner's signed namespace scope. A body with
no scope is refused, so no capability pays for everything by accident.
`decdn pool assign --any-namespace` prints the "any" registration.

A loopback gateway selects a scoped capability by the namespace the
request's decdn: URI names (`?ns=`, or the site label). A top-level GET
navigation passes its browser check from any site, so a link on any
page opens loopback content.

The gateway_pointer journey funds its gateway with a namespace-scoped
capability. Moves the SDK pins to decdn/sdk-typescript@1dab70e and
decdn/sdk-python@3b502a9, which send the scope and map 503 to
PAYMENT_REQUIRED.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(adr): point ADR 003 and the overview at the gateway's capability scope

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@yigitdot

Copy link
Copy Markdown
Contributor

PR review: #28 (pending-key capabilities, no loopback token)

Context

Review of PR #28 (local branch pr-28) against the gateway branch
origin/claude/gateway-pending-key in /Users/yigit/dev/decdn/decdn. Rule under
test: the fake gateway must mirror the real one (AGENTS.md). Tests were not run
(plan mode).

Critical — fake gateway diverges from the real gateway

  1. Payer selection ignores scope rank. Real delegates.rs:176-194 paying()
    picks the earliest scoped match before any "any" one; fake
    test/fake-gateway.ts:525-547 payer() takes the first in registration order.
    Also README + src/loopback.ts capabilities() JSDoc ("the order it pays
    with them") are wrong. Fix: rank scoped=0, any=1 in payer(); fix docs; add
    a contract case (any registered first, then scoped → scoped pays).
  2. Public gateway scoped payment keyed on wrong namespace. Fake pay()
    (~:907) uses uri.namespace; real gateway uses the pointer namespace only on
    <ns>.<host> pointer routes. Fix: pass site.pointer (undefined on bare
    host / ?ns= / <ns>.<hash32> routes); add a public contract test with a
    scoped capability; correct README "same rules as loopback".
  3. Browser gate lacks top-level navigation exception. Real
    site.rs:193-197 passes GET + navigate + document before any check;
    fake gate() (:504-522) checks cross-site first. Site-origin spend check
    (~:787) also must require sec-fetch-dest: document. Add contract cases;
    update README / src/client.ts gate description.

Important

  1. Released gateways break silently. gatewayFloor stays 0.3.0 but
    loopback API can't work on ≤0.3.1 (401 token required → now HTTP).
    Raise the floor when the next gateway ships, or document floor = public only
    and map 401 to a clear CONFIG-style error. README compat table also lacks a
    0.2 row.
  2. scopeJson under-validates (src/loopback.ts:~138-152): missing
    signature emits invalid JSON "signature":undefined; ids 0/negative/≥2^64
    pass (integer() has no range check). Check signature is a string and
    1 ≤ id ≤ U64_MAX, throw CONFIG.
  3. Gateway JSON is cast, not checked (delegate, registerCapability,
    capabilities in src/loopback.ts); non-JSON 200 throws raw SyntaxError.
    Wrap and throw UPSTREAM on bad shape.
  4. Browser on cross-origin loopback gets NETWORK — 403 has no CORS, so
    fetch TypeError is reported as gateway unreachable (src/client.ts:365-382).
    Consider a CONFIG hint when location.origin ≠ loopback origin.
  5. Every 503 → PAYMENT_REQUIRED (src/http.ts:20), including proxy 503s,
    and retry treats them as payment. Gate on JSON body with uri.
  6. Untested released_after / FILTER in scripts/decdn-contract.sh:27-44,163-171;
    add script tests for v0.3.0, v0.3.1, v0.3.1-rc.1, v0.3.2, v0.4.0 and agreement
    with shippedAfter (test/contract/fixture.ts:152).

Suggestions

  • Fake checks 65-byte signature before the 409 key check; real verifies after (order mismatch).
  • CapabilityScope JSDoc "each at least 1" unenforced; cite ADR or enforce (see 5).
  • Explain "420 s" as redeem interval + 120 s with ADR link.
  • Add ADR links (appendix-gateway.md#capabilities, #scope, #cross-origin-reads) to new README/JSDoc.
  • Contract test for combined gate headers; test 401 → HTTP; rename loopback.test.ts:79.
  • "::1" branch in client.ts:221 is dead (hostname keeps brackets); --listen 127.0.0.2 misclassified as public.

Strengths

  • No dead refs to removed APIs (token, node subpath, UNAUTHORIZED); CHANGELOG untouched.
  • Response shapes/key order, 402 plain text, 503 body+headers match the gateway.
  • Good unit coverage for bigint round-trips and Registration shape; contract suite gated cleanly by shippedAfter("0.3.1").

Next step

Fix 1–3 (fake parity, with contract cases), then 4–6; run pnpm lint && pnpm test
and scripts/decdn-contract.sh --ref origin/claude/gateway-pending-key.

yigitdot and others added 2 commits November 24, 2026 01:39
Port the /_decdn/ redirect tests from #30 to capabilities-only public
gateways: no allowance, and no pull means nothing paid.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… gate

The fake gateway pays with a capability scoped to the request's namespace
before an earlier "any" one; on a public gateway, only a namespace pointer
selects a scope, for its own bundle. A top-level GET navigation passes the
loopback browser gate from any page, a site spends only for a navigation to
a document, and the scope signature's length is checked after the key.

The SDK refuses a malformed scope (no namespace, an id outside u64 >= 1, a
signature that is not 65 bytes) with CONFIG before any request, maps a
non-JSON answer to HTTP, keeps PAYMENT_REQUIRED for a 503 that names a
fallback URI, and opens the site on a site page whatever gatewayUrl names.
README documents the payment order, the public scope rule and the gate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@yigitdot

Copy link
Copy Markdown
Contributor

Addressed in 6536cd8, checked against decdn main (the gateway change is merged there).

Fixed

  • 1–3, fake parity. payer() ranks a capability scoped to the request's namespace before an earlier "any" one. On a public gateway only the pointer namespace selects a scope, and only for the pointer's own bundle (site entries, and /_decdn/<site hash>); ?ns= and <ns>.<hash32> select none. The loopback gate lets a top-level GET (navigate + document) through first; a site spends only for a navigation to a document. README, capabilities() JSDoc and the client.ts header describe this, with ADR links (#capabilities, #scope, #cross-origin-reads).
  • 5. scopeJson refuses with CONFIG, before any request, an empty namespaces, an id outside u64 ≥ 1 (shared namespaceId with pointers) and a signature that is not 0x + 65 bytes.
  • 6 (partly). parseWithBigInts turns a non-JSON answer into DecdnError("HTTP") instead of a raw SyntaxError, for every caller.
  • 8. A 503 is PAYMENT_REQUIRED only when it names a fallback URI; any other 503 is HTTP.
  • 9. Script tests check released_after against shippedAfter for 0.2.9, 0.3.0, 0.3.1, 0.3.1-rc.1, 0.3.2-rc.1, 0.3.2, 0.3.10, 0.4.0, 1.0.0.
  • Suggestions. The fake reads the scope signature's length after the 409 key checks; contract tests cover combined gate headers and the navigation exception; unit test for 401 → HTTP; the contract test name says "scope word"; the dead "::1" branch is gone; the compatibility table has a 0.1, 0.2 row; "420 s" is explained as one redeem interval plus 120 s.

Not changed

  • 4. The floor stays at 0.3.0 until decdn ships a release after v0.3.1; the README already states that loopback needs one. A 401 stays HTTP (now tested).
  • 6, shape checks. Gateway JSON stays cast, as pointer.set does; the contract suite pins the shapes.
  • 7. A browser cannot tell the gate's 403 (no CORS headers) from a network failure, so it stays NETWORK; the README says so. open() now picks the site context on a site page whatever gatewayUrl names, since a site page cannot read the loopback API cross-origin. The old test that expected loopback there is replaced.

Verification

🤖 Generated with Claude Code

yigitdot and others added 2 commits November 24, 2026 02:09
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…contract

- open() takes localhost, any 127.0.0.0/8 address and [::1] (in any IPv6
  spelling) as a loopback gateway; an IPv4-mapped address stays public.
- delegate(), registerCapability(), capabilities() and pointer.set read the
  gateway's JSON field by field: an answer that is not JSON, or lacks a field
  its contract names, or has one of another type, is HTTP with the body. A
  string the gateway writes in an integer field stays a type error.
- The loopback API's CONFIG message says the SDK offers it on a loopback
  client, since a public gateway's bare host serves it too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Namespace validation still coerces unsupported input types or leaks native exceptions instead of CONFIG errors, risking unintended namespace selection and violating the validation-before-sending contract.

1 open issue
What changed in this PR

Updates the TypeScript SDK to match the gateway’s pending-key capability model, replacing loopback tokens and public daily allowances with capability-based payment.

Changes:

  • Adds scoped capability registration, pending-key handling, and stricter response validation.
  • Removes token helpers and updates client selection and payment-error handling.
  • Aligns the fake gateway, contract tests, packaging, and documentation with the new protocol while retaining older public-gateway coverage.
File Description
test/​unit/​pointer.test.ts Tests malformed pointer responses and funds fixtures.
test/​unit/​node.test.ts Removes token-helper tests.
test/​unit/​loopback.test.ts Covers pending keys, scopes, validation, and payment order.
test/​unit/​client.test.ts Updates context, browser-gate, and payment tests.
test/​support/​dcap.ts Adds synthetic capability-token generation.
test/​scripts/​decdn-contract.test.ts Checks release-version filtering consistency.
test/​fake-gateway.ts Models capability payment, registration, and browser gates.
test/​contract/​public.test.ts Covers the public capability API and preflights.
test/​contract/​loopback.test.ts Exercises the tokenless pending-key protocol.
test/​contract/​fixture.ts Adopts pending-key fixtures and public capability funding.
test/​browser/​setup.ts Funds the browser-test gateway.
src/​pointer.ts Shares namespace validation and validates pointer responses.
src/​node.ts Removes Node token helpers.
src/​loopback.ts Implements scoped registration and validated API responses.
src/​index.ts Exports scope and registration types.
src/​http.ts Adds response validation and revises payment-error mapping.
src/​errors.ts Updates error codes for the new protocol.
src/​client.ts Removes token handling and revises context selection.
scripts/​decdn-contract.sh Excludes incompatible older loopback journeys.
scripts/​check-package.sh Checks the remaining package entry point.
scripts/​build.mjs Stops building the Node helper entry point.
README.md Documents capability payment, migration, and compatibility.
package.json Removes the ./node export.
CONTRIBUTING.md Explains older-release loopback exclusions.
.github/​workflows/​ci.yml Updates import checks for the remaining entry point.

Review effort: Balanced

Comment thread src/pointer.ts Resolved
integer() passed anything to BigInt, so a JavaScript caller's `true` or
`"7"` became an id and `null` or `"x"` threw a native error. It now gives
CONFIG for any type but bigint and number, before a request is sent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@thiras
thiras merged commit 8acb60b into main Nov 24, 2026
17 checks passed
@thiras
thiras deleted the claude/gateway-pending-key branch November 24, 2026 23:55
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.

4 participants