# @pleach/observe changelog (/docs/changelog/observe)



This page collects the **site-content changelog entries** that
materially touched the [`@pleach/observe`](/docs/observe) docs
surface or named a `@pleach/observe` symbol. It is not the
runtime changelog — the canonical record of `@pleach/observe`
runtime behavior lives in the upstream package
[`CHANGELOG.md`](https://www.getpleach.com/docs/contributing).
`@pleach/observe` isn't on npm yet, so there's no package page
to link.

See the combined site changelog at
[`/docs/changelog/combined`](/docs/changelog/combined) for the
chronological unified view across every SKU.

## Unreleased [#unreleased]

### Added [#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.

* **The observe-brownfield diagram is corrected and placed (2026-11-09).** It
  now renders on
  [Adoption paths](/docs/adoption-paths#pick-observe-brownfield-when); it had
  never been registered in `components/mdx.tsx`, so it had never rendered
  anywhere. Its embedded sample called a `startTurn()` / `turn.end()` per-turn
  handle API that `@pleach/observe` does not export. It now uses the
  `init` + `recordCall` + `costAttribution` surface the page documents, notes
  that `recordCall` is synchronous, and drops an unverifiable "about fifteen
  lines" count for the two calls a reader actually writes. The four destination
  chips move to the sage data colour, since the destination is the reader's own
  storage. The placement carries a plain-MDX caption line, so the page's `.md`
  twin says what the diagram shows rather than carrying a bare component tag.
  Its 11px labels moved from 55% to 70% opacity: at 55% they measured 3.6:1
  against the card on the light theme, under the 4.5:1 floor for text that size.

### Changed [#changed]

* **Breaking type and construction changes are called out where readers meet them (2026-11-23).**
  `TokenCostRecord.reasoningTokensReported` is now required (record version
  49\); a reported `0` counts as reported. `content/docs/typed-records.mdx`
  and `content/docs/observe.mdx` say how the observe mapping sets it.
  `content/docs/query.mdx` says the sub-agent and export counts on
  `TranscriptJsonResult` are optional, so strict consumers must accept their
  absence. `content/docs/recipes/compliant-chatbot.mdx` says
  `compliantChatbot({ profile: "hipaa" })` without `supabase` now throws at
  construction when the scrubber chain doesn't load. Tracks upstream
  e4c4ec59ce, d60654b506, 333f2cc20d.

* **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.

### Fixed [#fixed]

* **This page no longer links an npm page that doesn't exist.** The opener
  said `@pleach/observe`'s canonical runtime history also lived on npm and
  linked it, but the name isn't on the registry, so the link 404'd. The
  opener now says the package isn't on npm yet.

* **[Observe](/docs/observe) drops "not yet verified" from the OpenAI
  Agents SDK and Mastra rows.** Both integrations run smoke tests against the
  real packages (`@openai/agents` 0.21.0, `@mastra/core` 1.81.0). The Agents
  SDK row adds that a runner retry (`modelSettings.retry`) is a row per
  attempt, a retry inside the OpenAI client is not, and rows from a
  multi-model-call turn carry no tokens and are tagged `unsplit-turn`.

* **License claims match npm and the FSL clock.** [`/license`](/license)
  and [`/pricing`](/pricing) listed `@pleach/core`, `@pleach/tools`,
  `@pleach/base-tools` and `@pleach/compliance` as published `1.x`, and
  `@pleach/react` and `@pleach/langchain` as `0.0.x` previews. On npm,
  every `@pleach/*` name is a `0.0.1 · UNLICENSED` placeholder or
  unregistered. Both pages now say every package is licensed
  FSL-1.1-Apache-2.0 and replaces its placeholder at its first real
  release.

* **The Apache-2.0 conversion runs per release.** Thirteen docs
  and blog files said each package converts "two years after first stable
  publish", including `content/docs/faq.mdx`, `packages.mdx`,
  `versioning.mdx` and `glossary.mdx`. Each release converts two years
  after it ships, as the FSL text states, and the pages now say so.

* **"Is this open source?" answers fair source.** The
  [FAQ](/docs/faq) answered "Yes". FSL isn't OSI-approved, so the
  answer now says fair source, converting to Apache-2.0 per release.

* **The FAQ no longer says the `0.0.1` placeholders carried the FSL
  grant.** They're `UNLICENSED` with no code.

* **Dead LICENSE links removed.** `/license` and `/pricing` linked a
  `pleachhq/core` LICENSE file that returns 404. They now point at the
  FSL specification and the per-package LICENSE.

### Fixed [#fixed-1]

* **`AuditableCall` v31 across the `@pleach/observe` pages.**
  [Observe](/docs/observe), [Adoption paths](/docs/adoption-paths),
  [Packages](/docs/packages), and the
  [BYOK observability](/docs/recipes/byok-observability) and
  [agent instrumentation](/docs/recipes/agent-instrumentation) recipes said
  v30. v31 adds the optional `toolName`, the tool whose execution caused the
  call. `ObserveRow` doesn't populate it and stays a strict subset.

### Added [#added-1]

* **[Packages](/docs/packages) names `@pleach/observe/resource-meter`.**
  `measureResources` meters CPU, memory, event loop, and fetch counts per scope
  (upstream `6c0354f0a8`).

### Added [#added-2]

* **Unreported usage is documented as a cost marker, and the
  `AuditableCall` version is now 30.**
  [The AuditableCall row](/docs/auditable-call-row#unreported-usage)
  documents `costOmitted: "usage-unreported"` in both places core
  writes it: the decision row's top-level `costOmitted` (v28), set on
  a call's only row, such as a quickstart sub-agent's inner call, when
  its stream reported no usage or only one token count; and
  `modelCall.costOmitted` (v30, Unreleased), now set whenever
  `modelCall.costUsd` is absent, including a `0`/`0` usage, except on
  an errored attempt that reported no count at all (a refusal). The
  page adds the v29 `run` stamp and the v30 row to the bump table,
  notes that a strict-enum decoder must widen, lists the usage spellings
  the reader now accepts (snake\_case `input_tokens` / `output_tokens`,
  cache-read and cache-write fields), says a cache write makes the call
  `unpriced`, and tells readers of v29 rows to treat `costUsd: 0`
  beside `0`/`0` tokens as a silent zero.
  [Model resolution matrix](/docs/model-resolution-matrix#per-call-rows)
  summarises the rule. [`@pleach/observe`](/docs/observe#unknown-cost-costomitted)
  documents that every `usage-unreported` (ledger `modelCall`,
  `model.called`, the top-level reason) projects as `unpriced`, so the
  closed `ObserveCostOmitted` set is unchanged. The observe, adoption
  paths, packages, CI enforcement and the two observability recipe
  pages name v30 in place of v28.

### Changed [#changed-1]

* **The `AuditableCall` version is now 28 across the reference pages.**
  [The AuditableCall row](/docs/auditable-call-row) documents the
  identity, decision and outcome fields added or made optional since
  v19 (sub-agent attribution, `parentRecordId`, the decision row's
  `costOmitted`, `lockedFamily`, optional `rungOrdinal` /
  `fallbackChain`, the `provider-exhausted` status), adds the
  `modelCall` per-call slot to the payload table, extends `tokenCost`
  with `costUsd` / `costOmitted` / `priceSnapshot`, replaces the
  version paragraph with a v20–v28 bump table, and adds a
  "Price snapshot" section for the v28 `priceSnapshot` stamp.
  [Model resolution matrix](/docs/model-resolution-matrix#per-call-rows)
  notes the v28 stamp. [`@pleach/observe`](/docs/observe),
  [Adoption paths](/docs/adoption-paths), [Packages](/docs/packages),
  [Agent instrumentation](/docs/recipes/agent-instrumentation) and
  [BYOK observability](/docs/recipes/byok-observability) name v28 in
  place of v19 (and of the leftover v13 on the observe page), and
  [CI enforcement](/docs/ci-enforcement) gives the current version as
  28 instead of 25.

* **Per-call audit rows and the closed `costOmitted` set are
  documented.** [Model resolution matrix](/docs/model-resolution-matrix#per-call-rows)
  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](/docs/family-lock#per-call-rows)
  documents the per-call row's family attribution order and
  `UNRESOLVED_PROVIDER_FAMILY`. [`@pleach/observe`](/docs/observe#unknown-cost-costomitted)
  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](/docs/gateway/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](/docs/recipes/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.

### Fixed [#fixed-2]

* **The `ObserveRow` subset claim named a stale parent-schema version.**
  [`@pleach/observe`](/docs/observe) said `ObserveRow` is a strict subset
  of `AuditableCall` **v13**; the canonical
  [row page](/docs/auditable-call-row) says **19**, verified against the
  upstream core package on 2026-07-02. Corrected here and on the two
  recipe pages that mirrored it.

* **The page claimed the row does not carry "the fingerprint payload".**
  Adding `ObserveRow.fingerprint` falsified the sentence directly beneath
  the shape. Reworded: the row carries its own narrower `fp_v1:` hash over
  `{family, model, callClass, input}`, computed by the SDK rather than
  lifted from the v13 record, while the full `RoutingDecision`, cascade
  walk history, and attestation hashes do stay `undefined`.

* **Subpath count corrected from three to six.** The API-surface table
  said "Three publishable subpaths"; the package exports six, adding
  `@pleach/observe/integrations/{ledger-decorator,cost-emit,cost-event-emit}`
  (`withObserveEmit`, `createCostEmitter`,
  `projectGatewayCostEventToObserveRow`).

* **[`@pleach/observe`](/docs/observe) surface reconciled with the
  shipped recorder.** `getRecorder()`
  returns `ObserveRecorder` and **throws** if called before `init`
  (it never returns `undefined`); a second `init` **throws**
  (singleton-per-process, not a warn-and-return no-op); a `redactor`
  that throws is now documented as **fail-closed** — the SDK
  swallows, warns via `[Observe:redactor-threw]`, and **drops** the
  row (the raw pre-redaction row is never written). The OTel
  destination `Callout` corrected to the real envelope: span name
  `` `<family>.<callClass>` `` (e.g. `anthropic.synthesize`) with
  `gen_ai.*` attributes plus `pleach.observe.{turn_id,provider_id,
  cost_usd}` / `pleach.observe.tag.*` (was the fictional
  `pleach.audit.call` / `pleach.turn_id` set). `BUILT_IN_MATCHERS`
  ships email + phone + SSN only (dropped the "credit card" claim).
  Checked against the shipped recorder, OTel destination and redaction code.

* **Schema `codeRepository` + `sameAs` for
  [`@pleach/observe`](/docs/observe) 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/observe` (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](/docs/changelog/combined) for the full
  cross-SKU pack.

### Added [#added-3]

* **[Reading rows back](/docs/observe#reading-rows-back) — the read side
  was entirely undocumented.** `query(filter)` on the Memory, Postgres,
  and Supabase destinations, with the two boundary rules a consumer needs
  before aggregating: the window is &#x2A;*half-open `[since, until)`** so
  adjacent windows tile without double-counting, and both bounds compare
  against `startedAt` rather than `completedAt`, so a long call is
  attributed to the window it began in. `QueryNotSupportedError` is thrown
  rather than returning `[]`, because an empty array is indistinguishable
  from "no rows matched". Also the opt-in `persistFingerprint` column and
  `isRecorderInitialized()`.

* **`ObserveRow.byokFailureChain` and `ObserveRow.fingerprint` added to
  the documented row shape.** `byokFailureChain` carries a
  four-character `keyHint` and never the key itself, so the row stays safe
  to ship to a dashboard your key-holders don't control.
  `isCostAttributionKey` / `extractCostAttributionTags` added to
  [Cost attribution](/docs/observe#cost-attribution).

* **[`@pleach/observe/testing`](/docs/observe#writing-your-own-destination)
  — the destination conformance harness.**
  `assertObserveDestinationConformance` throws on the first failed
  check; `runObserveDestinationConformance` returns a
  `ConformanceReport` for a suite that wants every failure in one pass.
  The `ObserveDestination` interface constrains shape; the harness
  constrains behaviour. The API-surface table moves from six subpaths to
  seven.

* **[`@pleach/observe`](/docs/observe)** — new top-level page
  for the brownfield audit-row SDK. Documents the five-entry
  facade surface (`init`, `startTurn`, `flush`, `recordCall`,
  `subagent`, `getRecorder`), the `ObserveRow` shape as a strict
  subset of the [`AuditableCall` v7](/docs/auditable-call-row)
  schema, the four destinations (Postgres, Supabase, OTel,
  Memory) on the `./destinations` subpath, the
  custom-destination interface (`write` + optional `flush`),
  the hookable-vs-not-hookable split against the runtime, and
  composition with [`@pleach/core`](/docs/core) when both
  surfaces run in the same process. Status callout
  makes the design-target stance explicit —
  `@pleach/observe@0.1.0-alpha.0` is scoped, not yet on npm;
  publishing is the next step.

* **Per-recipe deep-dive pages** —
  [`BYOK observability`](/docs/recipes/byok-observability),
  [`observableChatbot`](/docs/recipes/observable-chatbot),
  [`instrumentedCodingAgent`](/docs/recipes/instrumented-coding-agent),
  and [`enterpriseAgent`](/docs/recipes/enterprise-agent) all
  compose `@pleach/observe`.

* **[Packages](/docs/packages)** — added the `@pleach/observe`
  matrix row in the Reserved tier with the row note
  `0.0.1 · Reserved · 0.1.0-alpha.0 scoped`, and
  reworked the Reserved bullet to distinguish
  [`@pleach/trust-pack`](/docs/packages) (placeholder, no
  contract published) from [`@pleach/observe`](/docs/observe)
  (contract locked, scoped under
  FSL-1.1-Apache-2.0).

* **[Homepage](/) — new "Keep your stack" block makes
  [`@pleach/observe`](/docs/observe) a top-level surface on the
  marketing home.** The brownfield path now sits between "Should
  you stay where you are?" and "Already paying the lab": wrap an
  existing Vercel AI SDK / LangChain / hand-rolled loop in \~15
  lines. Its diagram (`components/observe-brownfield-diagram.tsx`)
  shows the `init` + per-turn recorder + destination-plug hook
  fanning out to the four destinations — `postgres()`,
  `supabase()`, `otel()`, `memory()` — over the BYOK code shape
  (`init`, `startTurn`, `recordCall`, `end`). The
  `ObserveRow`-is-a-strict-subset-of-`AuditableCall` runway claim
  is the figure caption. Cross-links
  [adoption paths](/docs/adoption-paths) and
  [BYOK observability](/docs/recipes/byok-observability). Block
  states `@pleach/observe` is in alpha; the SDK layer stays free.

### Changed [#changed-2]

* **The proxy comparison's "Adoption cost" row now credits the brownfield
  SDK.** [`/docs/comparison`](/docs/comparison#governance-control-planes-and-ai-gateways-a-proxy-side-category)
  read "model your agent inside the runtime" against a governed proxy's
  one-URL swap — accurate before [`@pleach/observe`](/docs/observe)
  shipped, stale after. The cell now reads \~15 LoC around the loop you
  already run, and a new paragraph bounds the claim: the SDK closes the
  distance on the audit row, not on
  [family-lock](/docs/determinism), [replay](/docs/replay), or
  [checkpoints](/docs/checkpointing), which need the runtime to drive the
  loop.

* **Pricing rewrites** — *audit rows ship where you point them*
  — Postgres, Supabase, OTel collector into Datadog / Honeycomb
  / Grafana / your existing OTLP backend, or a custom
  destination; the enterprise integration is the *bridge* from
  `@pleach/observe` into the review surface your team already
  runs.

* **Pricing — "Hosted Observe at enterprise scope"** named as a
  paid enterprise product alongside Hosted Gateway and
  compliance attestation services.
