Skip to content
pleach
ReferenceChangelog

@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 SessionRuntime turn now ends with AUDIT_LEDGER_WRITE_FAILED when a ledger write its emitter hands over with trackAuditLedgerWrite isn't stored, and a gateway call rejects when its provenance row isn't stored. content/docs/auditable-call-row.mdx drops the "quickstart route only" limit. session-runtime.mdx adds auditLedgerWriteFailure and auditLedgerWriteTimeoutMs, and gateway.mdx adds "When the provenance row can't be stored" (provenanceWriteFailure, provenanceWriteTimeoutMs). The Postgres ledger's new chainWaitTimeoutMs (default 30000) fails only the row stuck behind a hung write. audit-ledger.mdx corrects "recordCall never rejects", which stopped being true when the ledger began failing closed. scrubbers.mdx documents registerHostScrubbableFields, now the only way to give domain.* event types scrub paths. interrupts.mdx notes the exported ApprovalListing and ApprovalCoverage types, and the hasLiveGraphRuns() 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.invocation spans 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_id and cost.tenant_id stay, and so does the Datadog cost adapter's tenant tag. env-vars.mdx drops its host-read flags section: neither flag is read by @pleach/core. The EventLogRow listing in event-log.mdx drops a config-manifest hash field that the exported type doesn't declare. scripts/check-internal-paths.mjs now 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 costOmitted set are documented. Model resolution matrix gains a "Per-call rows" section: every provider dispatch writes one modelCall row (AUDIT_RECORD_VERSION 27), what a decision row is versus a per-call row, and how priced-per-call / owned-per-call keep each dispatch billed once. Its pricing paragraph now describes the per-runtime /models snapshot (createModelConfigSnapshot, installStandardLoaders({ modelRates }), warmModelCatalog) instead of rung-only pricing. Family-lock documents the per-call row's family attribution order and UNRESOLVED_PROVIDER_FAMILY. @pleach/observe documents ObserveRow.costUSD as optional and every ObserveCostOmitted reason (unpriced, served-model-mismatch, priced-per-call, owned-per-call, not-a-call), the pleach.cost_omitted tag the Postgres and Supabase destinations store, and pleach.observe.cost_omitted on OTel spans. Cost events corrects the route output (costUsd optional, RouteCostOmitted), the computeCost example (costIncomplete is 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-turn costUSD is a 0 sentinel" claim: an unknown cost is now absent with costOmitted, never 0. The older keyless demo entry 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.mdx documented AUDIT_RECORD_VERSION through v40 while the core source is at 47, so the page never taught cacheWriteTokens/cacheWrite1hTokens, attemptOrigin/dispatchId, sameModelRetry, or catalogCostUsd/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); the modelCall slot row dates each group from its own bump, so costSource/estimatedInputTokens/generationId read as v39 and priceBasis/servingProvider as v40 rather than as part of the v42–v47 additions. The same page, gateway/cost-events.mdx and observe.mdx all said a call that read or wrote the cache was unpriced because no cache rate was known. priceCounts in 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.invocation spans ship. Gateway · OpenTelemetry replaces its "dedicated tracer is roadmap" section and hand-rolled span shim with the shipped behavior: one llm.invocation span per routed call from GatewayClient.route() and per transport-served GatewayRuntime.routeChatCompletion() call; the tracer option (tracer: null disables, omitted → trace.getTracer("@pleach/gateway") from the optional @opentelemetry/api peer); the attribute list per surface; errors recording only error.type and http.response.status_code with the fixed message llm invocation failed; and RouteChatCompletionInput.callClass, validated against ALL_CALL_CLASSES and used for attribution only. @pleach/gateway drops the "OTEL span emission is not in this release" bullet, lists spans as shipped, and adds tracer to 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 contract routeChatCompletion dispatches through (route(request) → { content, usage, costUsd? }), distinct from the callClass-shaped GatewayTransport. Its first concrete implementation is createOpenAiCompatibleTransport: point baseURL at any OpenAI-Chat-Completions endpoint (OpenAI, OpenRouter, Together, Groq, vLLM) and supply an auth callback. costUsd is 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/next documented as shipped (createGatewayRoute). Migration from core flipped from "roadmap / NOT shipped today" to shipped. The factory is a Web-standard (req) => Response POST handler wrapping GatewayClient; docs carry the real opts (client | clientOptions + tenantId, optional transports / 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.mdx said routing calls the credential store on every route(). It doesn't: your host calls the resolver from createCredentialRoutingMiddleware before dispatch. The Postgres store sample now passes the required cipher. gateway/cost-events.mdx adds the required rootTurnId. It says the cost middleware does catch an emit() error and hands it to onError, and the soft-threshold warning fires only when a threshold is set.

  • BYOK keys are keyed by CredentialSlot (2026-11-16). gateway/byok.mdx showed ProviderFamily as the credential key. The store now takes a CredentialSlot, which adds the "openrouter" aggregator slot. Custom TenantCredentialStore implementations 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 + sameAs for @pleach/gateway corrected in the site's Organization + SoftwareApplication JSON-LD @graph (inlined in <head> on every page). Both fields now point at https://github.com/pleachhq/gateway (was https://github.com/pleachhq, a leftover from when the SKU schemas were drafted against an upstream monorepo). Load-bearing because sameAs is 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

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.0 with 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.