@pleach/gateway changelog
Release history for @pleach/gateway — site-docs entries that materially touched the @pleach/gateway surface, newest-first. Canonical runtime history lives upstream.
This page collects the site-content changelog entries that
materially touched the @pleach/gateway docs
surface or named a @pleach/gateway symbol. It is not the runtime
changelog — the canonical record of @pleach/gateway runtime
behavior lives in the upstream package
CHANGELOG.md and on
npmjs.org/package/@pleach/gateway.
See the combined site changelog at
/docs/changelog/combined for the
chronological unified view across every SKU.
Unreleased
Changed
-
Fail-closed audit writes beyond the quickstart route (2026-11-17). A
SessionRuntimeturn now ends withAUDIT_LEDGER_WRITE_FAILEDwhen a ledger write its emitter hands over withtrackAuditLedgerWriteisn't stored, and a gateway call rejects when its provenance row isn't stored.content/docs/auditable-call-row.mdxdrops the "quickstart route only" limit.session-runtime.mdxaddsauditLedgerWriteFailureandauditLedgerWriteTimeoutMs, andgateway.mdxadds "When the provenance row can't be stored" (provenanceWriteFailure,provenanceWriteTimeoutMs). The Postgres ledger's newchainWaitTimeoutMs(default 30000) fails only the row stuck behind a hung write.audit-ledger.mdxcorrects "recordCallnever rejects", which stopped being true when the ledger began failing closed.scrubbers.mdxdocumentsregisterHostScrubbableFields, now the only way to givedomain.*event types scrub paths.interrupts.mdxnotes the exportedApprovalListingandApprovalCoveragetypes, and thehasLiveGraphRuns()row says a Stop-ended stream whose adapter kept running now counts until it settles. The Part 11 audit-trail row widens to match; no grade changed. Upstream af525a50e9, 707d95dcfc, 33f156b012, fdfa771f46, 812f30fa94. -
Dense docs pages consolidated; three claims narrowed (2026-11-06). About forty pages across compliance, the audit record, safety, the gateway, observe, the event log and the use cases are shorter. Long table cells now carry a headline, with their limits in a list below. A limit repeated across rows is stated once, and every limit stays. Internal detail a reader never sets is gone: hashing order, detector thresholds, key wrapping and storage layout. The ownership page no longer calls the eval replay engine deterministic, and it links to what replay guarantees. Its chain check names the removed-tail limit. The landscape replay row says a replay is valid only against the same version and request fingerprint. The comparison page scopes
llm.invocationspans to calls through a seam and the tool loop's own provider requests. The government supply-chain page names the federal order and NIST guidance without their numbers. -
Column names generalized; host-read flags removed (2026-11-06). Docs and past changelog entries now describe stored column names in plain words, such as "the turn id" and "the tenant column". The tenant column keeps its name inside the SQL you run for row-level security. Dotted telemetry attributes such as
pleach.tenant_idandcost.tenant_idstay, and so does the Datadog cost adapter's tenant tag.env-vars.mdxdrops its host-read flags section: neither flag is read by@pleach/core. TheEventLogRowlisting inevent-log.mdxdrops a config-manifest hash field that the exported type doesn't declare.scripts/check-internal-paths.mjsnow fails CI on these column names. No limit changed. -
Docs cite public import specifiers, not package source paths. Pages that pointed at files inside a package's source tree (
src/...,packages/<sku>/src/..., line numbers, deep links into source) now name the symbol and the subpath it's exported from. "Cited source" lists are now "Public surface" lists. The site's CI now fails on a new source path in a page. -
Per-call audit rows and the closed
costOmittedset are documented. Model resolution matrix gains a "Per-call rows" section: every provider dispatch writes onemodelCallrow (AUDIT_RECORD_VERSION27), what a decision row is versus a per-call row, and howpriced-per-call/owned-per-callkeep each dispatch billed once. Its pricing paragraph now describes the per-runtime/modelssnapshot (createModelConfigSnapshot,installStandardLoaders({ modelRates }),warmModelCatalog) instead of rung-only pricing. Family-lock documents the per-call row's family attribution order andUNRESOLVED_PROVIDER_FAMILY.@pleach/observedocumentsObserveRow.costUSDas optional and everyObserveCostOmittedreason (unpriced,served-model-mismatch,priced-per-call,owned-per-call,not-a-call), thepleach.cost_omittedtag the Postgres and Supabase destinations store, andpleach.observe.cost_omittedon OTel spans. Cost events corrects the route output (costUsdoptional,RouteCostOmitted), thecomputeCostexample (costIncompleteis required), and documents that the ceiling fails closed on an unknown cost and prices cached prompt tokens at the full input rate (an estimate, not an upper bound). Agent instrumentation drops the "main-turncostUSDis a0sentinel" claim: an unknown cost is now absent withcostOmitted, never0. The older keylessdemoentry on the core changelog is marked superseded.
Added
-
The auditable-call row page caught up with the record contract, and three cache-pricing claims were corrected (2026-11-10).
content/docs/auditable-call-row.mdxdocumentedAUDIT_RECORD_VERSIONthrough v40 while the core source is at 47, so the page never taughtcacheWriteTokens/cacheWrite1hTokens,attemptOrigin/dispatchId,sameModelRetry, orcatalogCostUsd/catalogPriceBasis/catalogCostDrift. The version table now runs v8–v47 and four sections cover those fields (Cache writes, Dispatch identity, Same-model retries, Catalog price and drift); themodelCallslot row dates each group from its own bump, socostSource/estimatedInputTokens/generationIdread as v39 andpriceBasis/servingProvideras v40 rather than as part of the v42–v47 additions. The same page,gateway/cost-events.mdxandobserve.mdxall said a call that read or wrote the cache wasunpricedbecause no cache rate was known.priceCountsin core's rate helper prices a cache read whenever a read rate is supplied and a write only when its lifetime and rate are known; all three pages now say so, and the gateway ceiling's estimate still adds no cache-write tokens. -
Gateway
llm.invocationspans ship. Gateway · OpenTelemetry replaces its "dedicated tracer is roadmap" section and hand-rolled span shim with the shipped behavior: onellm.invocationspan per routed call fromGatewayClient.route()and per transport-servedGatewayRuntime.routeChatCompletion()call; thetraceroption (tracer: nulldisables, omitted →trace.getTracer("@pleach/gateway")from the optional@opentelemetry/apipeer); the attribute list per surface; errors recording onlyerror.typeandhttp.response.status_codewith the fixed messagellm invocation failed; andRouteChatCompletionInput.callClass, validated againstALL_CALL_CLASSESand used for attribution only.@pleach/gatewaydrops the "OTEL span emission is not in this release" bullet, lists spans as shipped, and addstracerto the constructor-options table. The packages-table row already said spans ship and is unchanged. Upstream source, not yet published to npm. -
Gateway gains a "Not a proxy" framing block. The SKU overlaps a governed-proxy control plane (Portkey, Cloudflare AI Gateway, and the enterprise control planes above them) feature-for-feature — routing, over-budget refusal, cost attribution, failover. The page now states the distinction: gateway is an in-process routing client that never opens a socket of its own and consumes a host-supplied
GatewayTransport, versus a proxy that routes all traffic through a vendor and holds the audit trail on its side. Altitude, not timing — both enforce at runtime. Cross-links to the new comparison section. -
The chat-completion transport seam documented. Gateway gains
GatewayChatTransport— the runtime-native contractrouteChatCompletiondispatches through (route(request) → { content, usage, costUsd? }), distinct from thecallClass-shapedGatewayTransport. Its first concrete implementation iscreateOpenAiCompatibleTransport: pointbaseURLat any OpenAI-Chat-Completions endpoint (OpenAI, OpenRouter, Together, Groq, vLLM) and supply anauthcallback.costUsdis a hint, not a requirement — the gateway stays the single source of truth for cost attribution. The cloud-IAM transports (Bedrock, Azure OpenAI, Vertex) implement the same contract in later cuts. Marked experimental; the npm README is the source of truth for the frozen signature. -
@pleach/gateway/nextdocumented as shipped (createGatewayRoute). Migration from core flipped from "roadmap / NOT shipped today" to shipped. The factory is a Web-standard(req) => ResponsePOST handler wrappingGatewayClient; docs carry the real opts (client|clientOptions+tenantId, optionaltransports/resolveRoute) and the{ family, callClass, model, prompt, byokKey? }request body. The never-shipped{ runtime, credentialStore, costEmitter }params were removed.
Fixed
-
BYOK routing and cost-event samples match the code (2026-11-16).
gateway/byok.mdxsaid routing calls the credential store on everyroute(). It doesn't: your host calls the resolver fromcreateCredentialRoutingMiddlewarebefore dispatch. The Postgres store sample now passes the requiredcipher.gateway/cost-events.mdxadds the requiredrootTurnId. It says the cost middleware does catch anemit()error and hands it toonError, and the soft-threshold warning fires only when a threshold is set. -
BYOK keys are keyed by
CredentialSlot(2026-11-16).gateway/byok.mdxshowedProviderFamilyas the credential key. The store now takes aCredentialSlot, which adds the"openrouter"aggregator slot. CustomTenantCredentialStoreimplementations need the wider type. -
Status corrected: failover and region routing ship. The status list called cross-provider failover and region routing "v1.x work"; both ship as experimental subpaths (
@pleach/gateway/failover,@pleach/gateway/region). Added Tenant resolution, Failover, and Region routing reference sections. -
Schema
codeRepository+sameAsfor@pleach/gatewaycorrected in the site's Organization + SoftwareApplication JSON-LD@graph(inlined in<head>on every page). Both fields now point athttps://github.com/pleachhq/gateway(washttps://github.com/pleachhq, a leftover from when the SKU schemas were drafted against an upstream monorepo). Load-bearing becausesameAsis the field AI search engines use for entity reconciliation across the npm ↔ GitHub ↔ docs boundary. See the combined view for the full cross-SKU pack.
Added
@pleach/observeslotted into the Bundled packages cluster after@pleach/gateway.- Sidebar — added
observeunder Bundled packages after@pleach/gateway.
Changed
-
The proxy-side comparison drops "provider cost plus 5%" as the category's price floor. Concentrate launched 2026-06-10 on a $5M pre-seed giving away routing, cross-provider fallback, PII redaction, RBAC, SSO, and audit logs at zero markup on tokens, and charging for log retention, org- and model-level rate limits, and the contract. The section names it alongside Merge Gateway and says the consequence plainly: routing is not a priced surface in this category any more. The altitude argument — gateway is an in-process routing client, a proxy holds the audit trail on its side — is unchanged by it.
-
Cross-docs status-flip pass —
@pleach/gateway@0.8.0-alpha.0with Anthropic transport real and other transports to follow. "Planned" / "no shipping code yet" claims across ~55 docs pages rewritten. Touched Gateway, Audit ledger, Event log, and others. -
Pricing / FAQ rewrites — Hosted Gateway description rewrites to per-tenant subscription pricing with optional consolidated billing, drops any percentage-on-routed-spend framing (100% of disclosed-pricing LLM router cohort runs zero markup on inference).
-
FAQ → Is there a hosted version? — answer rewrites to lead with No today, name the gateway as the planned multi-tenant routing SKU, and close with the FSL-conversion-clock mechanism behind the net-additive guarantee.
-
GatewayClient-per-cost-center note added on Gateway.
2026-06-08
Changed
- Packages table corrected to real published
version —
@pleach/gateway 0.8.0-alpha.0(was largely stale "Reserved · placeholder" framing). - Plugin contract → Sibling SKUs as plugins
section retitled and rewritten with per-row real status
— includes
@pleach/gateway.
@pleach/eval changelog
Release history for @pleach/eval — site-docs entries that materially touched the @pleach/eval surface, newest-first. Canonical runtime history lives upstream.
@pleach/langchain changelog
Release history for @pleach/langchain — site-docs entries that materially touched the @pleach/langchain surface, newest-first. Canonical runtime history lives upstream.