Skip to content
pleach
ReferenceChangelog

@pleach/replay changelog

Release history for @pleach/replay — site-docs entries that materially touched the @pleach/replay surface, newest-first. Canonical runtime history lives upstream.

This page collects the site-content changelog entries that materially touched the @pleach/replay docs surface or named a @pleach/replay symbol. It is not the runtime changelog — the canonical record of @pleach/replay runtime behavior lives in the upstream package CHANGELOG.md and on npmjs.org/package/@pleach/replay.

See the combined site changelog at /docs/changelog/combined for the chronological unified view across every SKU.

Unreleased

Added

  • A Redaction page, and per-call pricing on the Pricing page (2026-11-23). New content/docs/redaction.mdx covers the runtime's credential and infrastructure redactor: what it withholds, where it applies, how SessionRuntimeConfig.redaction and assertRedactionOptions configure it, and how it differs from compliance scrubbers. content/docs/session-runtime.mdx corrects the redacted error summary to an id-shaped token such as TypeError:len12. content/docs/pricing.mdx adds "Per-call pricing and the cost table": priceCallUsd, buildModelRateIndex, cache-read and cache-write rates, dearest-row pricing for ambiguous upstreams and servedPriceAt. Tracks upstream b923261864, 85212d24dd, 877c3bec23, d15a40b65d, 58c1b7834e, c1603d7210, 79432adb04, 9478e439b8, fc47d1bbc8.

  • Provider, storage, prompt and compliance surface from the last four weeks (2026-11-23). content/docs/providers.mdx adds passing your own Anthropic or OpenAI client, round-end tool-call announcements, and per-endpoint reasoning-effort fields. content/docs/runtime-strategies.mdx names snapReasoningEffort, says reasoningEffort: null sends no field, and gives the planner's new 4000-token default. content/docs/quickstart.mdx gives the OpenRouter default model and the agent name. content/docs/storage.mdx adds keyset paging (SearchOptions.after). content/docs/prompts.mdx adds the harness base additions. content/docs/memory.mdx says stored text is quoted as data. content/docs/compliance/gdpr-erasure.mdx and content/docs/compliance/erasure-limits.mdx add per-scope KEKs, key generations and held rows (onHeldRows). content/docs/eval-and-replay.mdx says replayRecordedTurn stays refused until abandoned work settles. content/docs/devtools.mdx adds consoleProbeFormatter, and content/docs/family-lock.mdx says a new turn clears only its own session's circuits. Tracks upstream 64140d5d12, b758925491, 978c2cc334, 60a4f7b28d, b0fd27363e, 298960e9b2, cdb0b62c4e, 459bbb7745, 86419217f6, 6a10b49e4c, 4ef2ae8519, 45e683cbdc, 358d6edc82, 61e6a7827e, 404dd2bf73.

  • The glossary states the replay limit (2026-11-09). content/docs/glossary.mdx defined "replay" and "determinism" without it. Both entries now say a replay re-serves the recorded response rather than re-running the provider, that bit-for-bit re-execution against a hosted model provider is not achievable, and that the strict gate checks determinism rather than fidelity to the record. Each links to Replay rather than restating it.

Fixed

  • Replay wording. content/docs/regulated-domain-agent.mdx said a replay returned the same final text. Replay re-serves the record and doesn't run the model again.
  • runtimeMode values. content/docs/eval-and-replay.mdx and deployment.mdx listed production, replay and eval-noncached. The runtime config takes interactive and deterministic. determinism.mdx now says its five values belong to the fingerprint. customer-support-agent.mdx, internal-knowledge-agent.mdx and cache.mdx no longer name modes that don't exist.

Fixed

  • Hash chain → Verifying a chain documents verification as live. The "preview" pleach-replay verify-chain CLI and its session_id / record_id SQL are replaced by verifyChainIntegrity and verifyChainForChat. Replay no longer promises a CLI wrapper; the package ships no binary.

Fixed

  • Landscape row 2 describes strict replay as it ships. It said strict mode throws ReplayDivergenceError. Strict mode returns { deterministic: false, firstDivergenceAt }; only a request the record can't serve throws, as ReplayCacheMissError with its sequenceNumber.

Fixed

  • Replay no longer promises byte-identical output. A live model can't guarantee it. Eval and replay renames "Verifying byte-identical replay" to "Checking a replay for divergence", and deterministic: true now reads as "no step diverged in this check". The glossary, FAQ, and comparison tables say what ships: replay re-serves the recorded stream and drift raises ReplayDivergenceError.
  • Audit-record claims now match what the code enforces. The homepage pillar, components/session-manifest-diagram.tsx, content/docs/security.mdx, replay.mdx, ci-enforcement.mdx, audit-ledger.mdx, and compliance/gdpr-erasure.mdx said rows are "written once and never edited or deleted" or "immutable". The ledger API has no update or delete primitive, but that does not stop a writer with direct database access. The pages now say so, and say what the hash chain adds: edits, deletions, and reordering become detectable after the fact.

Fixed

  • Region-pinned agent replay snippet corrected to the shipped ReplayRuntime shapes. createReplayRuntime takes sessionRuntime, not liveRuntime (ReplayRuntimeConfig = { tenantId (required), sessionRuntime?, cacheReadMode?, clock?, eventSource? }). replayTurn input is { chatId, tenantId, messageId } — turnId → messageId, mode is not a field, and tenantId is required (ReplayTurnInput). Its output is { chatId, tenantId, messageId, state, sequenceNumberRange } — there is no .diff field, so the cross-family parity read was rewritten to compare the returned state yourself, with a pointer to the hash-chain verifyIntegrity verdict ({ valid, brokenAt? }) for tamper-evidence.

  • @pleach/replay eval-coupling snippet corrected. The DI example constructed new EvalSuite({ replay }), but EvalSuiteOptions has no replay field and requires suiteId; the real cross-wire is suite.setReplayClient(client). Corrected to new EvalSuite({ suiteId, runtime }) + suite.setReplayClient(replay) (the source doc comment was likewise corrected).

Added

  • Replay Cache adapters section. Documents createDiskCacheProvider, createRedisCacheProvider, and createS3CacheProvider (@pleach/replay/cache/adapters/*) — the backing stores for createCacheMiddleware.
  • /docs/replay — createStrictHandleReplay determinism gate. New @pleach/replay/strict export (re-exported at the root) that walks N independent handles over the same (chatId, tenantId, window) and byte-compares the folded per-step state, returning { deterministic, steps, firstDivergenceAt? }. Documented in the Status section, a new "Determinism gate" subsection, and the Roadmap. Sibling of createStrictReplay (which gates the ReplayRuntime.replayTurn surface).
  • /docs/replay — cacheKey replay slot. @pleach/core's tool.completed / turn.completed events gained an optional cacheKey payload field; the ReplayHandle consults a wired cacheBackend for rows that carry it (per cacheReadMode). The "What's NOT" list notes core does not populate it (the core → replay boundary forbids importing deriveContentHashKey) — host- / createCacheMiddleware- populated.

Changed

  • /docs/replay — ReplayHandle stepper documented as wired. step() / seek() / replayTurn() no longer throw NotImplementedError; they walk the event log via runtime.events.iterate and fold through hydrateFromEvents. Updated the Status section, the ReplayHandle member table (all six members Live), the step()/seek()/replayTurn() behavior section, the determinism contract (one shared reducer → seek(N) == N steps == a full fold), the error-hierarchy note on NotImplementedError, and the "What's NOT in this package" list (now: no StrictReplay diff over the handle, no automatic cache-key derivation from rows). Mirrored the one-line status flip on /docs/eval-and-replay.

Added

  • <StatusBadge> reference adoption — /docs/replay adopts an in-flight status badge under its Status heading as the reference adoption of the new first-party enterprise-shape component.

Changed

  • /docs/replay error hierarchy diagram — the ASCII tree rendering ReplayError / ReplayDivergenceError / ReplayCacheMissError / ReplayUnknownEventError / NotImplementedError is now a mermaid classDiagram with inheritance arrows and per-class fields. Matches the established mermaid idiom used on /docs/overview and elsewhere.
  • Cross-docs status-flip pass — @pleach/replay's ReplayRuntime invokes the @pleach/core/eventLog hash-chain verifier (verifyChainForChat / generateProof live in @pleach/core/eventLog), with writer-side stamping in @pleach/core/eventLog behind c9PhaseBEnabled. Touched the Replay and Hash chain pages.

2026-06-08

Changed

  • Packages table corrected to real published version — @pleach/replay 0.7.0 (was largely stale "Reserved · placeholder" framing).
  • @pleach/replay note now distinguishes the landed replayTurn body from the still-throwing fromSnapshot / fork / multiTenantAggregate.