Skip to content
pleach
ReferenceChangelog

@pleach/core changelog

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

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

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

Unreleased

Added

  • In-graph planning, word plans, and the next-call auto-dispatch quirk (2026-11-24). content/docs/runtime-strategies.mdx adds planMode and inNodePlannerCallOptions. Under planMode: "in-node" the plan generator makes one awaited planner call (4000 tokens, temperature 0.2, 60-second cap), and only an ok outcome yields a plan. content/docs/plugin-contract.mdx adds "Word plans (experimental)": contributePlanWordDictionary and contributeWordsForTool let a plan be an ordered list of words, a successful call of a tool that owns the word completes the first open word step, and a failed bound job reopens it (PLAN_WORD_STEP_REOPENED). content/docs/turn-lifecycle.mdx adds the disableNextToolCallAutoDispatch quirk. content/docs/event-log.mdx adds the in-node plan origin. Tracks upstream 0f4107b14f, c57226a8a9, 543eea69c0, 669229539a, e09b118c36, f47d7faf2e, d4400ea081, afa3fbad5f, 56ad5d08f0, 6ef44350b9, 3ea1f45018.

  • Truncated tool-call audit, planner tool-name reports, commit stamps and host plumbing (2026-11-23). content/docs/tools.mdx adds "Truncated tool-call arguments": a truncated call is refused, truncatedToolCallAudit on SessionRuntimeConfig writes one guard.decision row per refusal (at most 256 a turn), and TruncatedToolCallAuditConfig.onRefused gets the full argument text. content/docs/plugin-contract.mdx adds "Tool names in the planner's steps": resolveToolAlias, the tool-names-filtered report and its AsyncPlannerToolNameReport fields, capped at ASYNC_PLANNER_TOOL_NAME_REPORT_CAP (8). content/docs/fabrication-detection.mdx adds "Commit stamps after a body rewrite": the narration strip, the honest frame and the alias banner re-stamp the body they ship, so commitStampMatchesBody stays true. content/docs/error-codes.mdx adds registerAsyncContextStore and runOutsideAsyncContextStores. content/docs/memory.mdx says the meta-learning load gets the adapter config with the runtime identity on the graph path. content/docs/server.mdx says authToken and authTokenProvider now reach a root turn's tools. Tracks upstream fa74c8948f, b230ae56e7, bd2c0827be, 151c67e7e4, bdd813b8de, f1651d105c, fd0a57ce8c, 63f7ff335f, 3d4f2c76b7, fe7fab9737, d6cac64c84, 4f0f7d78a9.

  • A name: line names the agent (2026-11-23). content/docs/heartwood.mdx adds "The agent's name". The quickstart agent is Hazel by default. A name: line first in ~/.pleach/heartwood.md or ./HEARTWOOD.md renames it, and the project file's name wins. The page gives the name rules and the reserved labels that are refused. The agentName option sets the default, and null names nobody. Tracks upstream 298960e9b2, 0168deb5f7.

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

  • Graph, turn and gate surface from the last four weeks (2026-11-23). content/docs/graph.mdx adds the model-call node guard (assertModelCallInNode, RuntimeQuirks.modelCallNodeGuardMode), parking and restoring a run (exportSnapshot, restoreFrom), a superstep deadline, stopping at a boundary, and onUnterminatedExit. content/docs/server.mdx adds frame ids and re-attach (handleReattachTurn), SupabaseTurnFrameStore, hardAtMs with segmentRemainingMs(), and keyFailed. content/docs/api-routes.mdx adds createPleachRoute({ agentProvider, agentName }) and the sessionRowsAreEventLogParents storage flag. content/docs/use-remote-turn.mdx adds continueRetry. content/docs/interrupts.mdx says durable gates tell identical calls apart by occurrence and require expiresAt. content/docs/error-codes.mdx adds the failure-code vocabulary (FAILURE_CODES, classifyFailureCode), three typed errors and the truncated-arguments refusal. content/docs/event-log.mdx and content/docs/stream-events.mdx describe the new row fields in plain words: durable park and continue rows, failed-turn detail, the context-input token count, and result.doNotRetry. content/docs/subagents.mdx adds inherited restrictions for background sub-agents, isSubagentSpawnToolName and boundedFanout({ timeoutMs }). Tracks upstream 0a9996e461, 0377051438, beadd6aebe, 85f858b018, d0393ffeb5, d6fe26778a, 1fe0da9d3c, 7f3c3ffa64, 298960e9b2, 00f6a84ff3, 508d577f6a, 6ccd7f80dd, 8a17bea36c, fa74c8948f, 7b55548844, f001a3771b, ce416b613e, 118ebc707c, 2dc13054e9, c8e2b1afc8.

  • Calls made outside a graph node are marked on the audit row (2026-11-23). content/docs/auditable-call-row.mdx adds record version 50 and an "Off-node calls" section: modelCall.offNode: true, and the refused error class in throw mode. Tracks upstream 0a9996e461.

  • Audit rows name the stage of the graph node that made a model call (2026-11-23). content/docs/auditable-call-row.mdx now states how stageId is chosen for a model call: the running graph node's stage first, then a stage the caller names, then the stage its call class maps to. Rows about one attempt, provider-cascade rows included, name the same stage. content/docs/subpath-exports.mdx lists stageIdForModelCall under @pleach/core/instrumentation. Tracks upstream c72f10bff9.

  • condenseSchemas is deprecated; a getTools(ctx) hook replaces it (2026-11-23). content/docs/tools.mdx gains "Budgeting the offer yourself: getTools(ctx)", with a worked example and a table of every ToolOfferContext field. It states that the request's tool policy still filters what the hook returns, and how the hook interacts with condenseTools. It also says the planner still sees every tool, so a withheld tool can cost a billed retry. content/docs/subpath-exports.mdx marks condenseSchemas deprecated. condenseTools stays on by default, so existing routes don't change. The 2026-11-22 digest regains its bullet for this change. Tracks upstream a51fa66f83.

  • Worked examples where pages stated a capability abstractly (2026-11-22). Each adds a situation, the question a reviewer asks, numbered steps naming the record or API that answers it, and what the record doesn't prove. regulated-domain-agent.mdx walks a reply from a diabetes coach shipped as software as a medical device: it reads a glucose monitor, and a reply that nudged an insulin dose got past a pattern guard. It's linked from the Part 11 page. compliance/sec-finra.mdx walks an examiner's request for one client's drafted communications, linked from use-cases/financial-services.mdx. interrupts.mdx covers a supervisor who edits a note before approving it. family-lock.mdx covers an in-family fallback during an outage. customer-support-agent.mdx covers a disputed refund promise. multi-tenant-saas-agent.mdx covers a disputed monthly bill. subagents.mdx covers one question that fanned out and cost $11, linked from swarm-agent.mdx. scrubbers.mdx covers a Social Security number pasted into an HR question, and says the number still reached the provider. compliance/gdpr-erasure.mdx covers an erasure request during a litigation hold, linked from worm.mdx. hash-chain.mdx covers a reply edited in the database. attestation.mdx covers dating a disputed message with a time-stamp token, and an outside auditor checking one month of envelopes. event-log.mdx adds "What a tool row holds": by default a tool row records the tool's name, its duration and any error, and runtimeQuirks.enrichToolEventPreviewsForReplay adds scrubbed, bounded previews of its arguments and result. The homepage's "Regulated work" section adds the diabetes-coach case above the audit table and a one-line example under each answer.

  • wrapTurn on createPleachRoute (2026-11-20). content/docs/api-routes.mdx adds "Running each turn inside your own frame": the hook runs each admitted turn's body inside a host frame, run starts the body at most once, and a hook that never calls it ends the turn with PLEACH_WRAP_TURN_NOT_RUN. content/docs/subpath-exports.mdx names the six new @pleach/core/quickstart exports. Upstream bb96173ee6, 1b37f592a4 (merged in 0715729985); changeset 6d03e035f3 (local).

  • Change approval records and the policy version on refusal rows (2026-11-20). content/docs/config-manifest.mdx adds "Recording who approved a change": pleach audit record-change writes one config.change_approved row on the tenant audit chain linking a manifest hash to its commit and approvers. Approvers are erasable HMAC references. pleach manifest hash prints the hash a configuration produces, and pleach audit changes finds the change behind any row. recordChangeApproval() exports from @pleach/core/audit. content/docs/safety.mdx adds "Which policy refused, on the row": a block_tool_call refusal or block_synthesis veto now records policy: { id, version } on its guard.decision row, with the reason string unchanged. Upstream 1d84b01405, 381c47ff2f (origin/vine 844e49e9a6).

  • Console-text formatter and two keep-list exports (2026-11-20). content/docs/session-runtime.mdx adds "Formatting user and model text in console lines": consoleText, setConsoleTextFormatter and getConsoleTextFormatter from @pleach/core/instrumentation. Core caps no user or model text it logs, and a host formatter can shorten, mask or drop it. The keep-list section adds REDACTION_KEEP_LIST_INCOMPLETE_NOTICE, printed once when the slot holds an incomplete list, and redactResultField(key, value). subpath-exports.mdx names both seams on the instrumentation row. Upstream aff16fa8ec, 98ded7317c, ea4bceba4f; changesets 748a5bed01 (local).

  • Redaction keep-list (2026-11-19). content/docs/session-runtime.mdx adds "Keeping your own ids and sequences": the redactor keeps no domain ids or sequences by default, and setRedactionKeepList (@pleach/core/synthesis) installs one per-process list of signatureIds, signatureValues, sequenceKeyNames, sequenceNameWords and sequence alphabets. The first install wins and returns a token. A list that could release a credential throws a TypeError. Upstream eaacf23faf, b6f3d8539d, 3c7ba45e01, 60e0b73b2c.

  • Access-refusal marker and floor tools (2026-11-19). content/docs/tools.mdx shows ACCESS_REFUSED_KEY and isAccessRefused from the new @pleach/core/graph/predicates/accessRefusal subpath: set _access_refused: true on a result that refuses because of who is asking, and plan reconciliation moves the step to an alternative. plugin-contract.mdx adds contributeFloorTools: a floor of tools at full schema on every turn, plus opt-in families placed by familyMode ("budget-gated" by default, or "floor"). subpath-exports.mdx lists the new subpath and the floor types on @pleach/core/strategies/schemaCondensation. Upstream f8499e6241, 3a95e52817; changesets 179f810526, merged in 7e65a95c55.

  • priorSameModelRetries is documented (2026-11-16). session-runtime.mdx adds it and onSameModelRetryClaimed to the resumeStream input, and a section on carrying the same-model retry budget to a resume on another runtime, with telemetry.sameModelRetriesUsed as the count to pass next. landscape.mdx names the option where it said "you pass the spent retry count".

  • The event log lists the turn_completeness and plan_coverage fields (2026-11-16). event-log.mdx names each row's always-present and optional fields, and says every name array holds at most 32 names.

  • One table of what gates a tool (2026-11-16). interrupts.mdx adds "What gates a tool": requiresApproval, interruptBefore, interruptAfter, interruptOn, the approveFlaggedTools: false waiver and durableGates, read together. It says listByApprovalRequired reads the flag only. Both compliance pages link to it.

  • Durable approval gates are documented as an experimental opt-in (2026-11-16). interrupts.mdx keeps the default: a paused turn doesn't survive a restart. A new section covers interrupt.durableGates. A gate your callback marks durable parks its turn, records the decision, and serves it once when the client re-submits the same message. It doesn't resume a turn by itself.

  • Docs for this week's new core surface (2026-11-16). providers.mdx adds "Serving useChat from a Pleach turn": toUIMessageStreamResponse, its options, and settleToolApprovals before validateUIMessages. subpath-exports.mdx adds the @pleach/core/providers/stream row. session-runtime.mdx adds the initiatedBy turn field and the redaction option, with the limits of a pattern-based redactor. storage.mdx adds SupabaseStore.withOwner, the embedding width and the opt-in SQLite run records. hash-chain.mdx adds wrapWriterWithClockAttestation, which records the clock offset your host reports and doesn't measure it.

  • SSE is the default execute wire, and the event-log page shows the typed chain reader (2026-11-13). The quickstart execute and continue legs now answer SSE unless Accept names application/x-ndjson with a higher q. NDJSON responses carry Deprecation: true, and NDJSON goes away at 1.0. content/docs/api-routes.mdx adds the negotiation rules and an SSE frame example. install, getting-started, react, interrupts, cli, env-vars and use-remote-turn called the body NDJSON and now say SSE or name both. content/docs/event-log.mdx shows passing the SQLite store's typed chainReader to verifyChainForChat. Tracks upstream 190475cf38.

  • The docs name the session-effect routes and the turn-deadline protocol (2026-11-10). content/docs/api-routes.mdx had no table for the session-independent routes a host mounts — GET /models, /providers, /providers/:id, /sessions/:id/diff, /sessions/:id/todo, POST /sessions/:id/revert, POST /sessions/:id/compact — and never named the sidecar-only family (/sidecar/vcs/*, /sidecar/schedules, /sidecar/processes, /sidecar/events/stream, /sidecar/tui/*, /sidecar/permissions, /sidecar/revoke), so a reader building a client had to read the OpenAPI document at GET /doc. A new section lists both and says which route answers from the static catalog and which from live provider lists. A second section documents what a host turnDeadline does: the run stops between supersteps and the stream ends at turn.parked { token, turnId, segment }; the continuation is claimed compare-and-set and refused when already claimed, cancelled, completed, stale or superseded; and both route families continue through POST /sessions/:id/turns/:token/continue and stop by token through POST /sessions/:id/turns/:turnId/stop. content/docs/env-vars.mdx adds PLEACH_TURN_DEADLINE_MS (default 600000; 0 disables it).

  • The CLI page documents headless output formats, the SSH sign-in path and the interactive key map (2026-11-10). content/docs/cli.mdx listed --print and --events but not --output-format text|json|stream-json (alias --json), --login with --provider, or the classed exit codes a wrapper branches on (2 usage, 3 caller or credential, 4 provider, 5 budget, 1 other). It now does, beside a table of the TUI keys and slash commands that carry behaviour a reader would otherwise find by pressing them: Enter queues while a turn runs, Esc arms a quit when a draft exists, Shift+Tab cycles ask → read-only → accept-edits, and @path attaches a file under the same 256 KB limit as /attach. The billed-turn callout now says which commands cost no model turn (--login, --tune, the TUI's own inspection commands) instead of implying that every command does.

  • 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 Architecture group has an index of itself (2026-11-09). content/docs/architecture.mdx closed with four cards out of 33 sibling pages, and two of the four pointed into other nav groups — so the largest group on the site had no way to see its own contents. A new "Every page in this group" table indexes all 33 across eight themes, and says what it is not: Concept clusters is the concept map, which links 13 of the 33 because it names primitives rather than pages. The four cards stay as the usual next reads, now labelled as sitting outside the group.

  • Two diagrams corrected and placed (2026-11-09). The cross-runtime diagram is now on Language-agnostic contract and the compose-underneath diagram on Migrating from Anthropic Enterprise; neither had been registered in components/mdx.tsx, so neither had ever rendered. The cross-runtime diagram drew the Go side writing to a shared ledger and tagged it PROVEN. The Go reference consumer reads SSE frames and checkpoint envelopes and writes no rows, so it now shows one writer and names the two contract shapes it does not cover. The enterprise diagram said per-tenant sums "add back up to" the Admin API total; the two figures are computed independently, so it now says to reconcile against that total. Both placements carry a plain-MDX caption line, and the enterprise one a fenced text equivalent, so each page's .md twin says what the diagram shows rather than carrying a bare component tag.

  • The eight architecture diagrams say what they assert (2026-11-09). Every Mermaid block in the Architecture group was labelled only by the heading above it, with no caption and nothing in the prose restating the shape. Each now opens with a one-line thesis, across architecture.mdx (four), turn-lifecycle.mdx, determinism.mdx, family-lock.mdx and config-manifest.mdx. The determinism chain also states what its diagram leaves out.

  • The glossary now says where a @pleach/core term means less than the word implies (2026-11-09). content/docs/glossary.mdx defined these terms without the limits their own pages already carry. Replay, determinism, the hash chain, the checkpointer and the family-strict cascade gained their limit and a link to the owning page; WORM, the audit ledger and the fingerprint had no entry at all and were added. The audit-ledger entry also repairs a cross-reference the event-log entry already pointed at. Each entry links rather than restates, so no second copy can drift.

  • The glossary says "published" tracks the package source, not a registry release (2026-11-09). content/docs/glossary.mdx had no entry for the word, so a reader meeting a documented surface could read it as installable. The entry states that no @pleach/* package is on npm yet, that some names are reserved with 0.0.1 placeholders, and that several transports are marked private. It links Install rather than restating the status.

Changed

  • A disclosed answer is kept instead of the generic stub (2026-11-24). content/docs/fabrication-detection.mdx adds "A disclosed answer stays". When a turn had no real tool successes and the failed-tool banner already heads the answer, the runtime ships that answer instead of "I wasn't able to complete this request". content/docs/plugin-contract.mdx notes that every tool-loop model call on a loop-owned turn now reads the turn's held capability words. Tracks upstream 59aaa3587e, e4bb444fe1.

  • ProviderStreamEvent gains provider.blocks (2026-11-23). content/docs/providers.mdx says exhaustive switches over provider stream events must handle it. Tracks upstream 64140d5d12.

  • Two breaking shapes on tool and cost callbacks (2026-11-23). A failed tool row's failure class gains not-started, so exhaustive switches need a new arm (content/docs/event-log.mdx, content/docs/error-codes.mdx). onCostEvent(row, owner?) takes a second argument, and cost rows are buffered per turn (content/docs/subagents.mdx). Tracks upstream 1f4f0589bd, 9471a441c7.

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

  • The redactor never withholds less, and fewer numbers read as phone numbers (2026-11-21). content/docs/session-runtime.mdx adds that each new redactor reading runs over the earlier ones and only adds markers, with the shapes it now catches. content/docs/scrubbers.mdx adds that the default phone check leaves a slice of a space-joined integer list alone. Changesets redactor-withholds-at-least-the-floor and scrub-integer-runs-and-decimal-fractions (origin/vine 70c6f81f83).

  • Weak-schema budget deprecated, session-rule crash refusal (2026-11-19). content/docs/tools.mdx marks weakToolSchemaBudgetPlugin and createWeakToolSchemaPredicate deprecated: the runtime gives every model one promotion budget, repetition cap and synthesis request, and no longer reads the predicate. The section is now "Weak-schema tool budget (deprecated)", and providers.mdx and hooks.mdx link the new anchor. The page said a throwing sessionToolAllowed factory or predicate refuses every name; it still does, but as session_predicate_error, which isn't final. Only session_denied is final, and it carries _access_refused: true. Upstream db59f26be6, d0ea9ffb99, 81d034ce15; patch changeset 179f810526.

  • Route slot bound, planner vocabulary, off-turn write limit (2026-11-18). content/docs/event-log.mdx adds route.slot_released, the row an unscoped createPleachRoute writes when a stopped turn's tool outlasts the new abandonedWorkSlotTimeoutMs (default 600000); the route then frees its slot and message claim. session-runtime.mdx links it from hasLiveGraphRuns() and adds the experimental planCode field. plugin-contract.mdx adds "Planner vocabulary (experimental)": contributeSurfacedVocabulary, contributePlannerCatalogSlice and the rankByVocabularyTable / buildVocabularyRankFromTable ranker from @pleach/core/runtime. auditable-call-row.mdx now says a write made outside a turn can't fail one, so the caller must catch it. Upstream f6b98f12db, 13d8b36574.

  • Redacted error lines and self-model write checks (2026-11-18). content/docs/session-runtime.mdx says console lines for a caught error now print a redacted summary (class, code, message length), and that setUnredactedErrorSink receives the original value. It also says the redactor reads escaped, serialized and percent-encoded text. error-codes.mdx says ErrorPropagator stores the redacted shape, and documents setErrorPropagatorTimerRunner. base-tools.mdx says the self-model writers clean text before storing it, and that the identity renders as a fenced # Your identity section (composeIdentitySection). It also lists what a SelfWriteRequest now shows the approval gate, and that only an explicit true approves a write. Upstream dd49262e5a, 3d4f2c76b7, fe7fab9737, 12d7dc9370, 3392bdd749, ffc79b9ab2.

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

  • Four defaults the docs now describe (2026-11-16). A Postgres call-row write that can't be stored now rejects with LedgerWriteError, and createPleachRoute ends the turn with AUDIT_LEDGER_WRITE_FAILED instead of completing it. content/docs/auditable-call-row.mdx adds "When a row can't be stored", including the 30 s wait bound, the "report" opt-out, and the limit that text already streamed may have reached the client. listByApprovalRequired now counts tools the interrupt config names, and approvalCoverage() is new; interrupts.mdx and facets.mdx say so. A self-review is refused unless the interrupt config sets allowSelfReview: true. runChainRetentionPass refuses by default when the disposal check is missing (worm.mdx). The Part 11 and SEC/FINRA pages narrow their audit-trail and gate-coverage sentences to match, and name the quickstart route as the only fail-closed path so far. No grade changed. Tracks upstream 7bb614d037, a63c8d7cb3, 1f1926e5bd and bdc8f5d8e3.

  • SEC and FINRA grades name two trade scenarios, and four more pages split their lists (2026-11-15). content/docs/compliance/sec-finra.mdx now grades against two scenarios. In A, the agent recommends and places an order itself. In B, a registered principal places the order the agent recommended. Grades assume A unless a row shows both. Three grades changed. Verification moves from Partial to Supports, because a change made through a gated tool leaves a chained decision row naming its reviewer, and reconciling rows against the calls that ran is setup. Order records moves from Not provided to Partial under both scenarios, with order terms written to your own table as setup and order-specific fields as the gap. Human review stays Partial under A and is Supports under B. Its gap column drops the review queue and transaction review, because resolveGateReviewer binds a gate to an outside reviewer before execution. The AI-agent oversight gap now says the reasoning text a provider returns isn't kept, only its size and token count. Limiting table ownership and superuser access moves from the gap column to your part, on this page and on content/docs/compliance/part-11-alcoa.mdx. The Part 11 Signatures row now credits chained gate-decision rows and signed permission grants. Its gap is a signature made with the approver's own credential, since signed rows use the install's key. content/docs/use-cases/government.mdx moves SBOM and provenance for your deployment from duties to setup. content/docs/use-cases/financial-services.mdx follows the order-record ruling. content/docs/worm.mdx, content/docs/air-gapped-deployment.mdx, content/docs/region-pinned-agent.mdx and content/docs/cloud-routed-agent.mdx split their lists into duties, setup and "Not in Pleach yet".

  • One sandbox vendor name dropped from the docs (2026-11-09). The pages naming hosted-sandbox vendors now name E2B, Daytona and Vercel Sandbox only. The dropped name is on this site's private-surface reject list, so a weekly digest quoting one of those pages failed CI. The adapters and the wire shapes they cover are unchanged; only the example vendor list is shorter.

  • Family-lock gains the calibration argument (2026-11-09). content/docs/family-lock.mdx argued the lock from provenance alone. A new ## Why the lock matters: comparability section adds the during-the-fact case: a threshold calibrated against one model keeps evaluating after a substitution without meaning what it was set to mean, and nothing raises. The section says plainly that the lock does not freeze calibration — an in-family rung change still moves the model — only that the move is bounded to one family and lands as a fallbackStep row beside modelCall.servedModel and decision.requestedModel. content/docs/faq.mdx links it as the second reason for family-locked routing.

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

  • Compliance mapping pages are topic summaries (2026-11-06). The SEC and FINRA page and the Part 11 and ALCOA+ page now name the regimes once and summarize what Pleach provides by topic, such as the call record, change protection, verification, export, retention and human review. They no longer go rule by rule. Each SEC and FINRA topic carries the weakest grade of the rows it replaced, and every limit stays. Other docs pages and past changelog entries name the regime without citing a rule. More stored column names, event payload keys and a host app's table names now read in plain words, and scripts/check-internal-paths.mjs fails CI on them and on rule citations outside blog posts. query.mdx now says the host chat-message objects are documented with the first published release.

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

  • Summary-level mechanism text (2026-11-06). The SEC and FINRA mapping, the Part 11 mapping, the regulated-domain agent, landscape, the homepage and the finance, government and education landings now describe each mechanism in plain words and link to its canonical page. compliance.mdx, worm.mdx, compliance/gdpr-erasure.mdx and security.mdx keep the API, options and error codes a reader uses and drop internal sequencing. compliance/hashchain-middleware.mdx, a deprecated helper, is now its deprecation note, its limits and a link to the hash chain. No grade or limit changed.

  • Internal names generalized. Docs, blog posts, the homepage, its diagrams and past changelog entries now describe stored tables, columns and internal flags in plain words. Names a reader types stay: exported API, settings and error codes. scripts/check-internal-paths.mjs now fails CI on stored names, and it covers app/ and components/.

  • Schema reference gated. content/docs/schema.mdx, worm.mdx, multi-tenant.mdx and emitted-data.mdx describe what each group of storage answers. Table and column names are documented with the first published release.

Fixed

  • Word steps reach the in-graph plan, so tools bind to them (2026-11-24). Under planMode: "in-node", the copies of a word plan into the graph's planning channel dropped each step's kind and capability. The steps then looked like tool steps with no tool and were discarded, so no call ever completed a word step and no PLAN_STEP_COMPLETED carried a boundTool. All three copies now keep both fields on an unbound word step; a bound step is copied as the tool step it became. content/docs/plugin-contract.mdx states this under "Word plans". Upstream 4612079e7b.

  • Stored table and column names are described in plain words (2026-11-23). content/docs/hash-chain.mdx, content/docs/config-manifest.mdx, content/docs/compliance.mdx and content/docs/subagents.mdx printed stored schema names. They now describe the previous-hash and row-hash fields, the config-manifest table, the tenant column and the parent-turn field in plain words, per the rule scripts/check-internal-paths.mjs enforces. No claim changed. Older changelog rows lose their source-file paths the same way.

  • The two heartwood scopes merge (2026-11-23). content/docs/heartwood.mdx said the project file shadows the global one. The loader merges them: the global body comes first, the project body follows under its own heading and wins on conflict, and an overflow trims the global part first. An explicit path skips the merge.

  • Four turn and event claims corrected (2026-11-23). content/docs/api-routes.mdx showed an old turn.parked payload; it is { turnId, messageId, token, segment, reason, nextStep }. content/docs/event-log.mdx described the answer-sufficiency verdict as post-turn; the judge now runs inside the tool loop, and an insufficient verdict reopens it once. content/docs/async-tasks.mdx said Stop cancels thread-wide; it cancels only the stopped turn's tasks. content/docs/subagents.mdx now shows subagent.failed with a closed failure code and a withheld error line. content/docs/stream-events.mdx says the stream error.code is a string, with the numeric code on codeNum. Tracks upstream 4fc5cb061d, 60a4f7b28d, 2d48341b09, 8a17bea36c.

  • Seven stale claims corrected against the current core source (2026-11-23). content/docs/core.mdx said each subpath ships as a self-contained bundle; the build now emits shared chunks, so two subpaths loaded in one process share the same classes. content/docs/auditable-call-row.mdx stopped at record version 48; it now reads 50. content/docs/base-tools.mdx showed a correct_fact key the fact tools now refuse. content/docs/checkpointing.mdx didn't say prune(threadId, 0) throws PruneZeroKeepLastError, or that a list cursor is a checkpoint id that returns strictly older rows. content/docs/adoption-paths.mdx called recordCall() before init() a no-op; it drops the row and warns once with OBSERVE_RECORD_BEFORE_INIT. content/docs/react.mdx now marks useVercelAISDKCompat, <VercelAISDKCompat> and useVercelChatContext deprecated. Tracks upstream b0fd27363e, 0a9996e461, f51ec78f7a, 7d476ce198, 5c2c332aea, 042b063677.

  • Safety guards are live under enforce mode (2026-11-22). content/docs/safety.mdx said the guards slot "isn't active yet" and that no guard should be relied on. Both kinds fire under safetyEnforcementMode: "enforce". A regex-refusal guard replaces a final answer that matches its pattern, and a tool-call-precondition guard stops a matching tool call. Each writes a guard.decision row naming the policy and its version. The section now gives both definition shapes and says a pattern catches only the phrasings it lists.

  • Change records from a forge need an approvals digest (2026-11-20). content/docs/config-manifest.mdx showed --approvals-digest as optional. A forge record needs it, and a native record refuses it. Upstream a6242b25d7 (origin/vine 844e49e9a6).

  • Error-name and console-roster corrections (2026-11-20). content/docs/session-runtime.mdx said a capitalized-words error class prints when any word marks a failure. Only the last word counts, or the name must be a known real class, so JohnSmithReset prints as custom. The page also adds that console breadcrumbs always add the default redaction roster back, even when a host roster replaces a default or sets privateAddresses: false. Upstream 47c936d8be, 3ccac02b85 (merged in be6c15d672).

  • The keep-list limits are one object (2026-11-20). content/docs/session-runtime.mdx said the keep-list limits are exported as KEEP_LIST_*_MAX constants. They are one frozen KEEP_LIST_LIMITS object, and the page names its fields. Upstream 98ded7317c, ea4bceba4f.

  • Stored errors keep only their shape (2026-11-20). content/docs/error-codes.mdx said ErrorPropagator stores a redacted message capped at 1,000 characters. It now stores <code>:len<N> and never the caught text. A type outside ErrorType is stored as unknown, and a code that isn't a catalog code isn't stored. content/docs/session-runtime.mdx says a class name made only of capitalized words prints only when one word marks a failure, and otherwise prints as custom. Upstream 25920647d6, fd45f5c723, d2d0f84811, dda4439129, 5a727a4e08, 9d6a115b74.

  • Session routes and the server table match the shipped handlers (2026-11-16). api-routes.mdx described a health route with component checks and a 503. The route always answers 200 with status, running, timestamp and features. GET /sessions takes only userId and limit, returns an array, and has no cursor. POST /sessions reads { config } and returns the session itself. Sync takes { force? } and answers 409 on conflict. DELETE removes only the stored session; the checkpointer cascade runs through runtime.sessions.delete. Core reads no auth headers: your resolveUserId and resolveTenantId decide the caller. Route error bodies carry error, not {code, error, recoveryHint}. server.mdx now lists all 24 ROUTES and says HarnessServer serves sync itself.

  • Storage, event-log and stream claims narrowed to the code (2026-11-16). storage.mdx: createSupabaseAdapter takes the client as its first argument and does no registry routing. conditionalUpdate is called only by session import. The cache is write-through and read-through for single sessions, and listing always reads storage. IndexedDB takes databaseName and version. The memory store keeps 10,000 event rows by default, not 5,000. event-log.mdx: hydrateFromEvents rebuilds interrupts, subagents, exports and user cards, not the transcript or jobs. The write sample now passes chatId and a real event type. The type table is complete from HARNESS_EVENT_TYPES, and a failed write retries three times after the first attempt. stream-events.mdx: turn.completed can also end deadline or gate-parked. family-lock.mdx lists nine families, and providerCascade.source names the path that wrote the row. It doesn't flag a family widen, so the alert query the page gave was wrong.

  • Provider, plugin and CLI claims narrowed to the code (2026-11-16). providers.mdx: provider capabilities is declared metadata and doesn't gate tool dispatch or drop thinking events. OpenAINativeProvider declares auditsEveryAttempt. Prompt-cache reads and writes are priced when the rate is known. The slow-start families include qwen, and 1200 ms is only the fallback gate. A tool-call stream can still unwind past its cap. byokResolver lives on SessionRuntimeConfig, not createPleachRuntime (also fixed in runtime-strategies.mdx, which no longer promises an unsupported model never gets a 400). auditable-call-row.mdx gives the current version as 48, not 32. plugin-authoring-standards.mdx: the signature is definePleachPlugin(name, capabilities), the version comes from _raw.version, the wizard emits one plugin per facet, --facets-file split writes no per-facet files yet, and prePlanPrimer runs on every planned turn. cli.mdx: only clear-taint and revoke write a ledger row, signed only when the install requires it. The wizard asks six questions, and the TUI sidecar runs core's own agent instead of your route.

  • Runtime env vars and provider resolution match the code (2026-11-16). env-vars.mdx said @pleach/core reads no feature-flag variables. The quickstart factories read ten PLEACH_* variables, now listed with their defaults. The key-resolution list named an OrchestratorClient that doesn't exist and said a missing key fails at session start. A route with no provider answers each request with a 503 no_provider_detected or no_provider_key. Mistral was said to fall back to OpenRouter; it answers 503 no_provider_key unless you set an OpenRouter key. Google and DeepSeek were marked pending; both stream natively. The page also claimed the core package reads the SUPABASE_* variables; it reads none. The config dir default now names $XDG_CONFIG_HOME/pleach.

  • Reasoning effort, the planner default and the call-row version are current (2026-11-16). runtime-strategies.mdx listed three effort levels; there are seven, and the quickstart default is medium (planner high). The async planner is now on by default in createPleachAgent and createPleachRoute. auditable-call-row.mdx now covers v48, where modelCall.usagePartial: true marks token counts as a minimum.

  • Every event reader treats sinceSeq as a strict boundary (2026-11-13). content/docs/server.mdx said the durable store's reader returns rows at or after sinceSeq, while the in-memory log returns rows strictly after it. Every reader now shares one window contract, which returns rows with a sequence number strictly greater than sinceSeq. The table row and the paragraph now describe that one boundary and tell the caller to pass the last sequence number it holds.

  • The SQLite driver, the memory store and approval gating match the shipped code (2026-11-13). content/docs/storage.mdx and subpath-exports.mdx now say createSqliteDurableStore uses the built-in node:sqlite on Node 22.5 or later and falls back to better-sqlite3. The memory store keeps no row hashes, so its chats cannot be chain-verified. event-log.mdx says both DurableStore bindings supply an event reader. The quickstart says a providerStream alone does not select a provider, and that a requiresApproval tool needs an interrupt config to pause. The same commit corrected the execute leg's request body, and its wire format was then superseded by the SSE default above.

  • Three pages name the shipped identifiers they described (2026-11-10). content/docs/hash-chain.mdx said the event-log chain columns would be named with the first published release; the page now names both and the deferral is gone. use-remote-turn.mdx said a detached-window decline reads as a policy answer, which collapsed three decision fields into one; it now names each field separately. subagents.mdx, config-manifest.mdx and compliance.mdx now name the column or table each one described.

  • Plugin authoring standards said "lint-enforced"; nothing there is (2026-11-09). content/docs/plugin-authoring-standards.mdx carried that phrase in its frontmatter description, but its own class table names the mechanism as npx @pleach/core init plugin scaffolding defaults for two of the seven standards, with the other five left to an author's and reviewer's judgment. A scaffolded default and a lint rule are different guarantees: the first stays correct only until someone edits it. The description now says the wizard scaffolds two of seven, and the page opens by saying plainly that nothing there is lint-enforced. The four-stage lattice is lint-enforced, and those claims on Core and Comparison are unchanged.

  • The edge catalog called an allowed edge forbidden (2026-11-09). content/docs/graph-edge-catalog.mdx told plugin authors that synthesize → tool-loop "sits in the forbidden-edge list". Its own tables two screens up list that edge as allowed row 6, and name synthesize → synthesize — the retired retry self-loop it replaced — as the forbidden one. The bullet now states what actually blocks a plugin: the afterSynthesis router carries the re-entry and is sourced at synthesizer, and a plugin registers a node rather than an edge, so it has no way to declare a router arm. The page description also dropped "cross-stage", since three of the nine allowed rows are intra-stage.

  • The stage-lattice diagram drew the one edge its own prose forbids (2026-11-09). content/docs/architecture.mdx showed a synthesize → synthesize self-loop labelled "messageId-guarded retry", two paragraphs above prose stating that synthesize is the only stage with no intra-stage edge and that this self-loop is retired and forbidden. It also omitted the legal synthesize → tool-loop bounded re-entry, which is what that label belongs to, and two of the three intra-stage chains. The diagram now draws exactly the nine transitions the prose enumerates: six cross-stage and three intra-stage. A reader who trusted the picture over the paragraph had the lattice wrong in both directions.

  • The cascade diagram said the runtime asks the user (2026-11-09). The family-exhausted terminal node in content/docs/architecture.mdx read "runtime stops, asks user". The runtime records the delivery outcome and surfaces the state to the host, which is what the prose beside it and the twin diagram on Family lock both say. Now "runtime surfaces state to host".

  • The self-review guard is disjunctive, and the docs said it wasn't (2026-11-09). content/docs/interrupts.mdx and content/docs/compliance/sec-finra.mdx said a gate is refused when its named reviewer is the turn's own actor. The guard also fires when the named reviewer is the actor that raised the gate, checked disjunctively, so naming either one is a self-review. Both pages now say the same actor the call would be reviewed for, and the self_review_refused row says which two actors that means. Tracks upstream 9a4215c503.

  • The reviewer callback names who may decide, not who may answer (2026-11-09). content/docs/compliance/sec-finra.mdx said "The answer route ships" inside the bullet about naming a different reviewer, where it reads as though that reviewer can use it. The route does ship, and the limit is narrower than either reading: resolveGateReviewer and the route's answer authority are separate seams, so binding a gate to a reviewer doesn't make that reviewer the approver. The one-time credential is issued only on the stream that raised the gate, to the actor approverOf names, and approverOf is where a host says who that is. The page now says that. The grade stays Partial.

  • The agent-facing text expands the package metadata row (2026-11-08). Every docs page's .md twin and the MCP server's page fetch used to serve the metadata row as a raw tag with its props still encoded, so an agent read markup instead of the package, its npm status, the subpath, the source links and the licence. lib/source-meta-text.ts parses the row strictly and states those facts in prose; lib/source.ts runs it for the .md twins and app/api/mcp/route.ts for the MCP fetch, which also now rewrites repo links the way the HTML does. A link whose target is not an http(s) URL or a site-relative path is refused rather than emitted, and an unknown field is refused with it.

  • Family lock: the re-lock and the family-exhausted outcome corrected (2026-11-08). content/docs/family-lock.mdx said sessions.updateProviderModel emits a session-lock-resynced event. It saves the new provider and model as a new session version. The page also said the runtime emits family-exhausted when the in-family cascade runs out; the runtime records it as a delivery outcome on the call row, served and billed as a notice rather than counted as an error. content/docs/architecture.mdx carried the same event claim and now matches, as does the failover section of content/blog/reconstructing-an-agent-decision-for-audit-trail-review.mdx. The in-family-only and no-silent-widening claims are unchanged.

  • Prompt-builder helper signatures and the fragment count corrected (2026-11-08). content/docs/prompt-builder.mdx listed appendPrompt(prompt), prependPersona(persona), replaceCore(replacement), scopedPrompt({ scope, content }) and gatedPrompt({ when, content }). Each takes an id, and the scoped helper takes its scope fields flat rather than nested. A reader who copied the old shapes got a type error. The page also said the bundled core ships "around 30" additive template fragments; it ships 44, and content/docs/prompts.mdx now counts the base contributions and the template scaffolds separately.

  • Skills: the org-tier read, getAll() and derive precedence corrected (2026-11-08). content/docs/skills.mdx said the org and user store tiers each hold up to 50 skills. The org tier reads a page at a time and follows later pages when the store declares stable paging; the user tier reads up to 50. When an org read fails or stops early the loader warns once, user-tier skills still answer lookups, and that load derives no sub-agent. The page also now says getAll() returns one entry per name, which is why it is the wrong input for deriving sub-agents, and documents getLoadedSkills() for that. When a name exists in both the org and user tiers, the org entry wins on derive and the user copy is not a fallback.

  • The waiting state now covers the client's own tool loop, and expectsApproval is documented (2026-11-08). content/docs/interrupts.mdx and content/docs/stream-events.mdx no longer limit the held start to the graph's dispatch. A call the client's tool loop announces before or after its gate is raised also gets tool.awaiting_approval, then tool.started only on approval. The pages now name expectsApproval(toolCall) in the interrupt config. A host whose own executor raises the gate returns true from it to have that call's start held too.

  • A call waiting at an approval gate is documented as waiting, not started (2026-11-08). The runtime now emits tool.awaiting_approval ({ toolCall, interruptId }) when it holds a call at an approval gate. It emits tool.started only once a decision approves the call, and a refused or expired call never gets one. content/docs/stream-events.mdx, turn-lifecycle.mdx, interrupts.mdx and event-log.mdx add the event, its approval-requested fold and its event-log row. They also state the limit: a gate raised by your own tool executor isn't predicted, so that call still emits tool.started first. Before this change the pages said every dispatched call got tool.started, and the runtime wrote one while the approval was still owed.

  • @pleach/core/crypto row on Subpath exports corrected (2026-11-08). content/docs/subpath-exports.mdx said a NOT NULL wrapped-key schema lets getOrCreateDek succeed and makes shred() fail later. The registry's preflight makes getOrCreateDek throw SubjectKeyDdlShapeError before any key is stored, as Erasure limits says. The row now says so and links there.

  • Durable pending interrupts narrowed (2026-11-06). content/docs/interrupts.mdx said the runtime stamps pending interrupts "at every checkpoint write" and that an approval owed when the process died is still owed after a restart. A checkpoint is written at turn milestones, not when a gate is raised, so a gate raised since the last write isn't in any checkpoint. The page now says so, and it says the interrupt.requested row holds argument names only. It also says a restored pre-decision checkpoint reopens a decided gate.

  • Air-gapped rejection timing. content/docs/use-cases/government.mdx said an empty allowlist fails at runtime construction. @pleach/core checks each outbound URL when the call is made, so the first outbound call is rejected with AirGappedHostRejectedError.

  • Multi-slot replace. content/docs/prompts.mdx: multi-slot replace now states that one replace wins per id and that different ids compose in first-registration order.

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

  • No master switch. content/docs/deployment.mdx and api-routes.mdx named a runtime master switch and a mode env var the packages don't have. Wire your own flag at runtime construction.

  • Chain-stamping limit. content/docs/hash-chain.mdx now says that turning off c9PhaseBEnabled is safe only for chats with no chained rows.

  • Skill body limit. content/docs/skills.mdx no longer says a content limit constant is exported from @pleach/core/skills.

Added

  • Raising a gate writes its own checkpoint (2026-11-09). content/docs/interrupts.mdx said a raise doesn't write one, so a gate raised since the last message was lost with the process. It now writes a checkpoint stamped source: "interrupt" with writes: ["interrupt.requested"], carrying the pending interrupts, the pending tasks and the event-log cursor. The page states the four limits: it covers a gate the manager registered, it needs a checkpointer, it is a probe that never throws or delays the gate, and nothing reads it to answer the gate — a resolve looks in memory only, so a restarted process still can't settle an owed gate. Tracks upstream 34836712ed.

  • Replacing a core.* slot, and executor-declared containment (2026-11-08). content/docs/prompts.mdx adds "Replacing a core.* slot": the runtime-aware hook is the one route that replaces a core slot, and a core.* id in a static contribution fails the registry's namespace check, is logged as a warning and dropped, whatever its mode. content/docs/core.mdx, content/docs/devtools.mdx, content/docs/extending.mdx, content/docs/error-codes.mdx, content/docs/plugin-contract.mdx and content/docs/plugins/authoring.mdx state the same route where they mention the slot. content/docs/skills.mdx adds "Executors declare containment": a derived spec runs only on an executor that has declared it enforces the no-nested-spawn and denied-tools fields, and a sub-agent's denied tools apply to every sub-agent it starts.

  • resolveGateReviewer is documented, with its binding-only limit (2026-11-08). content/docs/interrupts.mdx adds "Naming a reviewer". The host callback binds a gate to a named reviewer instead of the turn's actor. A self-review is refused as self_review_refused, and a throw or an unreadable answer is refused as reviewer_unresolved. Both codes join the release table. No shipped route lets a named reviewer answer yet, and the page says so. content/docs/compliance/sec-finra.mdx adds the same limit under human review.

  • Erasure limits (2026-11-08). content/docs/compliance/erasure-limits.mdx is a new page on what a @pleach/core crypto-shred erases and what it doesn't: backups and replicas, plaintext written before or outside encryption, undeclared plaintext copies, session subjects keyed by more than one id, copies outside the event log, unkeyed digests and retired key generations. It also covers rows held in memory during a key outage. The code it describes is experimental, and the page claims nothing about any deployment. It adapts the upstream @pleach/core erasure-limits doc at upstream af25ba80d4. content/docs/meta.json lists it after GDPR right-to-erasure, which now links to it.

  • useRemoteTurn. New page for the browser hook over server-hosted turns, exported by @pleach/core/react and @pleach/react. It covers mounting createPleachTurnRoutes, re-attaching by turn id, approvals, Stop, and the server's limits, including the 15-minute detachedApprovalWindowMs. React now lists the hook, so @pleach/react reads five hooks rather than four.

  • WORM tier covers the call rows. The call ledger gets write-once and no-truncate triggers, and rows leave only through a destroy function, which honours legal holds and writes a disposal record per outcome. runCallLedgerRetentionPass (@pleach/core/audit) is the call-row retention pass; neither pass has a default period. A host that updates or deletes call rows directly fails once the tier is applied.

  • Signed grants from your own host. signPermissionRow (@pleach/core/audit/permission-ledger) signs the permission rows your host writes; the bundled local server already signs its own with Ed25519.

  • Interrupts document headless_refused and approval_unrecorded. A refusal no person gave is written as a policy decision, never under the name of the person whose resolve triggered it.

  • Server and API routes name the turn subpaths. @pleach/core/server/turns exports createPleachTurnRoutes, and @pleach/core/client exports createRemoteTurnSource.

  • API routes → Sharing claims across instances. messageIdempotency.store takes a MessageIdempotencyClaimStore you write over your own Redis, SQL database or KV, so a re-sent message is refused on every instance. The section lists what an adapter must guarantee. A store that throws or misses claimTimeoutMs (default 2000) fails open: the turn runs and the route logs one warning.

  • API routes → Long turns. A claim whose turn is still running is kept past inFlightMaxAgeMs, through the optional renew on a shared store. keepAliveMaxMs (default 30 minutes from the claim) caps that keep-alive. The 409's turnId names the owning turn from the claim on.

  • Interrupts → How a pause works covers config.interrupt(). Four new rules: the call resolves an InterruptOutcome and never throws; payloads must be strict JSON within 16384 bytes; the node is never re-run; a retried node gets earlier answers re-served in call order.

  • Interrupts → When an edit is refused. resume refuses an approval whose modifiedArguments isn't an object, sets a prototype key, or sets an argument outside a closed schema. The receipt carries refused: "edit_not_allowed", the HTTP route answers 422, and the gate stays pending.

  • Interrupts → Reviewing a result covers previews. A result too large to show whole, or with no JSON form, reaches the model only on an approval with acknowledgeIncompleteResult: true. A plain approve of a preview withholds it.

  • Stream events → Part ids. message.delta, reasoning.delta and thinking.delta carry an optional partId, and applyStreamEvent puts it on the text or reasoning part it builds. React notes the optional id on parts.

  • Subagents documents WorkspaceContextTransport. fetchWorkspaceContext(sandbox, { transport }) routes the query through your own endpoint, for code that can't reach the sandbox directly. The connection then needs no tunnelUrl or sessionToken.

  • Tools covers withheld tools on continuation. A tool the session withholds is never counted as still owed. A plan restored on resume is re-filtered against the current restriction.

  • Interrupts → Reviewing a result. interruptAfter pauses after a top-level plugin tool runs. Approve hands the model the real result. Deny, an edit, an expired window or a stopped turn withhold it. The reviewer's copy is capped at 64,000 characters of JSON.

  • Interrupts → Who can decide covers session scope and unresolved owners. A resolve scoped to a session settles only a gate pending on that session. A gate whose owner can't be resolved is released at once with policy code owner_unresolved.

  • Interrupts → Released is not timed out. Gates released by client_detached, bridge_capacity_evicted or owner_unresolved project as resolution: "released", not timeout.

  • React → Tool parts. A table maps each tool event to the part state it produces: tool.delta opens an input-streaming part, and a failed tool settles as output-error. A call a host had already started gets a flat SUPPRESSED: tool.failed, only when its stream finished normally.

  • Turn lifecycle § tool-loop describes the one decider. On the loop path the llmDecision node owns the turn, its decision call runs the client's agentic loop, and per-call overrides travel with each call.

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.
  • DeepSeek and Google keys stream on their own. CLI, install and quickstart list five built-in streams: Anthropic, OpenAI, OpenRouter, DeepSeek and Google. A Mistral or Moonshot key alone still answers 503 no_provider_key, and OPENAI_API_KEY wins over GOOGLE_API_KEY.
  • The fork parent-row link is on by default when the event-log writer uses the v3 chain identity (c9ChainIdentity: true); forkParentRowReader: null turns it off. It stays experimental.
  • Interrupts → Reviewing a result: an edit on an interruptAfter approval is refused, not withheld. Nothing settles and the gate stays pending, so the approver can answer again.

Fixed

  • WORM tier states its limit in the opening. A table owner or superuser can disable the triggers, so the tier constrains application roles. content/docs/worm.mdx said this only near the end of the page.

  • Time travel said nothing wires a parent-row reader by default. A runtime whose EventLogWriter has c9ChainIdentity: true wires one over that writer's own store, and forkParentRowReader: null opts out. TimeTravelAPIOptions.readParentChainRow still has no default.

  • Scrubbers and the audit ledger said the SQLite event log's scrub was opt-in. It is on by default, as on Postgres: createSqliteDurableStore runs the built-in scrubbers before hashing each row, and redaction: "off" is the opt-out.

  • Providers and the tenant facet said the provider tenant header was off by default. It is on: AiSdkProvider, AnthropicSdkProvider and OpenAINativeProvider send the call's tenant under x-tenant-id unless you pass tenantHeader: false. The section anchor moved from #opt-in-tenant-header to #tenant-header, and the egress warning now describes the default.

  • OTel spans cover the tool loop and sub-agents. Each provider request the tool loop sends now gets an llm.invocation span, so the page no longer says the tool loop's requests have none. A sub-agent run by the built-in tool-loop executor gets a subagent.run span, and its model calls nest under it. Comparison also names the Supabase EventLogWriter's metadata-only event.redacted stand-in and the cost rollup's partial flag.

  • Blog posts and weekly digests state release status. Each blog post and weekly digest, and its .md twin, now says no @pleach/* package is on npm yet and links packages. The docs pages already said so; these pages stand alone in search results and didn't.

  • CLI no longer prints npx harness init --apply. harness on npm is an unrelated third-party package, so copying the legacy form ran someone else's code. The page now calls it the CLI's older flag-first form.

  • The call-row hash chain is on by default. schema.mdx, security.mdx and the audit-trail blog post said the AuditableCall chain was opt-in (hashChain: true, or a plug-point you enable). PostgresProviderDecisionLedger stamps it when hashChain is omitted; hashChain: false opts out, and lineageColumns: false leaves it off.

  • GDPR erasure names SubjectKeyRegistry. The page said no per-subject key store ships. SubjectKeyRegistry is exported from @pleach/core/crypto.

  • Interrupts no longer says a paused turn survives reloads. It pointed at Checkpointing, which doesn't cover paused turns. A reloading client records client_detached. After a restart the decision is still owed, but the turn doesn't continue.

  • API routes → Long turns no longer says the keep-alive has no upper bound. keepAliveMaxMs caps it, so with the defaults a turn that never settles holds its message id for about 1.5 hours. The running turn is not aborted.

  • API routes → Re-submitting a message no longer says a turn that outruns inFlightMaxAgeMs loses its claim. A claim whose turn is still running is kept past it.

  • Hash-chain stamping reads "on by default" everywhere. Comparison, Compliance, FAQ, Glossary, Security and Session runtime said writer-side stamping was "in soak" behind c9PhaseBEnabled. The flag defaults to true, as Hash chain and Event log already said; a host opts out by setting it to false.

  • License claims match npm and the FSL clock. /license and /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 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.

  • Docs stop describing a 0.1.0 npm release that hasn't happened. content/docs/index.mdx, architecture.mdx, plugin-contract.mdx, packages.mdx, versioning.mdx, langchain.mdx and /llms.txt said a "first-wave" publish had cut every package at a 0.1.0 floor. 0.1.0 is the source version; npm holds 0.0.1 · UNLICENSED placeholders. The pages now say both, and the changelog index labels those packages 0.1.0 · npm placeholder instead of "published".

  • Links into the private repositories point at each SKU's docs page. Every github.com/pleachhq/* repository, including this site's, returns 404 to readers. While reposPublic in lib/shared.ts is false, a link into a repository, including a deep path, goes to that SKU's page instead (pleachhq/compliance → /docs/compliance), in rendered pages, the .md twins and llms-full.txt alike. The changelog index links each package to its site changelog. The nav, footer and "edit on GitHub" links are hidden. Bug-report copy on /faq, /community, /security and /legal/terms points to the inbox, and JSON-LD drops codeRepository and repository sameAs entries. Flipping the flag restores all of them.

  • Install pages say the packages aren't on npm yet. Install, Quickstart and Getting started carry a callout: the npm names are placeholders, and the commands describe the install once the first release lands. Contributing and Reference apps say there's no public repository to clone yet.

  • Interrupts matches how a pause works. The page said interruptBefore / interruptAfter are debug-only. They are production gates on plugin tools for createPleachRoute, createPleachAgent and createPleachRuntime, and they fail closed. The "five rules" described an exception that unwinds the stack and a node body that re-runs on resume, plus runtime.onAbort and runtime.cache; none of these exist. A gated call awaits its decision, and the engine doesn't catch GraphInterrupt. The page said the runtime emits a HumanInterrupt and rejects a response its config disallows. It emits a PendingInterrupt, and HumanInterrupt, HumanResponse and PerToolApproval are types only. "Deny → skip the action" is now split: a deny before the call means it doesn't run, and a deny after the call (interruptAfter) withholds a result the call already produced. An approval with edits after the call withholds the result too. The timeout walk-through now says the plugin-tool gate refuses the call with a policy decision (approval_window_expired) rather than failing the turn.

  • Stream events and Tools report a failed call the way the runtime does. A dispatched call that fails ends in tool.completed with toolCall.status "failed" or "error", not only in tool.failed. Stream events adds flat terminals and how applyStreamEvent settles each tool part (output-error for a failure). Turn lifecycle says tool.delta always precedes tool.started, and that a round's calls are announced when its model response ends.

  • Stream events → Which message a correction names. content.correction, content.reset and the terminal message.complete carry messageId, the turn's assistant message id. The stale-correction rule now lists both checks: messageId against the turn's assistant id, and sourceMessageId against its user message.

  • The guest interrupt bus takes typed scopes. recordInterruptDecision needs channelInterruptScope(chatId) or sessionInterruptScope(sessionId). A bare-string scope is refused for a typed mark. Interrupts lists the three refusal reasons.

  • Event log corrects the interruptProjection shape to initial / reduce / finalize.

  • Server event query documents limit paging and the 400 responses. The shared interrupt resolver's callback now receives the caller.

  • /llms.txt and the changelog index match the package table. /llms.txt said @pleach/core@1.x and called the per-call audit ledger "append-only". It now says every shipping package sits at the 0.1.0 floor, and calls the ledger tamper-evident. The /changelog package index used three statuses (published · 1.x, pre-1.0 preview · 0.0.x, reserved) that no longer matched Packages. It now lists all twenty packages with the four states that page uses: published at 0.1.0, deprecated re-export shim, 0.1.0 not yet on npm, and reserved. The eval, gateway, replay, MCP and coding-agent rows no longer read "reserved".

  • AuditableCall row lists every status, and the version is 32. The outcome.status list named six values. It now lists degraded, unread and post-settle as well, with the optional degradedReason, and the current auditRecordVersion is 32. A consumer with an exhaustive status enumeration must add the three. The page, the version table and the Core, Observe and recipe pages that cited v31 now agree.

  • Fabrication detection no longer says the guard runs before the user sees the text. applyFabricationGuard rewrites a turn before it is persisted, and a streaming client receives the rewrite as a content.correction after the original deltas. The page now says that, and that a client using the answer hold never shows text a guard corrects before the turn completes.

  • CLI matches the shipped pleach binary. pleach create is the preferred scaffolder verb, and pleach init is its alias. An unknown word prints unknown command and exits 1. A leading flag routes to schema, so the TUI examples now read npx pleach tui --print "…", since npx pleach --print exits 2. pleach init --apply runs the wizard, not schema.

  • CLI → pleach init lists the real wizard. It also asks for a publishing intent and whether to enable subagents, and it asks about the schema only when supabase/ or @pleach/core is present. The detected framework picks the app files whatever the template; the template picks the plugin stub. Next.js App Router also gets the /audit view (app/auditStore.ts, app/api/audit/route.ts, app/audit/page.tsx). Schema copies are named <timestamp>_base__<file>.sql, --facets-file split writes only a facets/README.md placeholder, and an unknown facet exits 2. --template is read only on the --yes / non-TTY path, and the --add-plugin flag never existed.

  • CLI → pleach dev defaults to port 4111, not an automatic port. It has no --help, and it ignores unknown flags. It also accepts --catalog-endpoint <url>.

  • CLI → Sibling-SKU binaries. No sibling package ships a bin yet. The page said @pleach/compliance and @pleach/eval expose pleach-compliance and pleach-eval.

  • HarnessServer → Session handlers said handleCreateSession merges config last. It applies only the title, provider, model and tools keys and refuses any other key with 400. The table adds handleUpdateSession (title only), the optional request?: { userId } argument on every session handler, and userId on ExecuteRequestContext.

  • Getting started and Deployment cited "the 10 SQL files" and the auditable-calls SQL file. The wizard copies the base tier: seven files, including the call-ledger file.

  • Core cited auditRecordVersion = 18. The current version is 31.

  • Model resolution matrix spells out what a fallback implementation promises when it declares auditHooksEveryAttempt: true. It forwards each attempt's events unchanged before advancing that attempt, or the call counts twice.

Added

  • Interrupts → Who can decide. A turn started with executeMessage(..., { actorId }) binds its gates to that actor, and createPleachRoute uses the non-empty resolveUserId value. runtime.interrupts.resolve takes the caller as a fourth argument; another caller gets handled: false. Server documents the caller argument on createInMemorySharedInterruptResolver. Interrupts also documents the interrupt option on createPleachRoute, the arguments and result shown during approval, and interrupt.timeout, which executeMessage now yields with the other interrupt events.

  • Stream events → Discarded tool input. tool.input.discarded { toolCallId, reason, toolName? } with its four reasons, the createStreamedToolInputs tracker, and withoutUnstartedToolInput.

  • API routes → Re-submitting a message. createPleachRoute answers 409 PLEACH_DUPLICATE_MESSAGE to a repeat of a message id whose turn is running or was answered. The section covers which endings free the id, the per-process scope and the messageIdempotency bounds. The code is in Error codes.

  • React → useChat lists clearMessages() (the same function as reset) and UseChatDuplicateMessageError.

  • Sub-agents → Pairing a child call with your cost row. Each child model call carries a fresh auditLinkKey and auditInvocationId on the onModelCall record. A host that records its own cost row should forward both, or that call is counted twice (never zero times).

  • AuditableCall row → Fallback attempts. A fallback implementation that declares auditHooksEveryAttempt: true gets exactly one modelCall row per hooked attempt. An attempt created and never read records unread, and one created after the call settled records post-settle, on both outcome.status and modelCall.errorClass. Neither is a provider failure, cost is omitted (usage-unreported), never $0. degraded is a delivery verdict, counted as served and billed.

  • API routes → Routes on a runtime without AsyncLocalStorage. On such a runtime (a browser), a request from a different route while one is in flight answers 503 PLEACH_ROUTE_OVERLAP with retry-after: 1, and a corrupted gate answers 500 PLEACH_ROUTE_GATE_UNAVAILABLE. Both are in Error codes, with a note in Deployment.

  • SessionRuntime lists the experimental hasLiveGraphRuns() and whenGraphRunsSettled().

  • settledParts on the React hooks. useHarness, useChat and useSessionMessageStream's TurnContext expose the settled message's parts, including the tool parts of the calls that started, since parts empties when the turn settles. The answer hold masks it like parts. React also documents that each useHarness send keeps its own turn state, and that createSession or resumeSession during a turn detaches that turn without stopping it: its pending approvals are released unanswered, recorded as a policy decision (client_detached), not as the user's, so it cannot stall the next send, and abort() must come before the switch to stop it. useHarness.resolveInterrupt now reaches the runtime, or the in-process bridge on a browser runtime.

  • Answer hold: holdAnswerUntilTurnComplete on useChat, useHarness and useSessionMessageStream (default off). It keeps the reply out of view until the turn ends, so text a guard corrects or resets is never shown first. After a Stop, a dropped stream or releaseAfterMs, the text shown may be the uncorrected partial. useSessionMessageStream gains onAnswerReleased(ctx). Documented in Fabrication detection § Holding the answer, React and Troubleshooting. collectStream needs no option.

  • AuditableCall row → Lineage columns. The call ledger gains parent-turn, root-turn, sub-agent-depth (never null, default 0) and tool-name columns, written by default; AuditableCall v31 adds optional toolName. The root turn is the depth-0 turn on every row, so grouping by it rolls a sub-agent tree up to its user turn at any depth. Re-applying the base tier's call-ledger file adds the columns; on an un-migrated table the ledger falls back to the old insert and reports AUDIT_LEDGER_COLUMNS_DOWNGRADED once (upstream 118f2a3445).

  • AuditableCall row → Proving rows weren't edited (opt-in). new PostgresProviderDecisionLedger({ client, hashChain: true }) stamps a chain sequence number, the previous row's hash, and the row hash per tenant and session, and verifyAuditableCallChain walks it. Removed tail rows need an expectedHead; an unkeyed chain can be recomputed by anyone with write access (upstream f5c8dc59ac).

  • Audit ledger → PostgresProviderDecisionLedger documents its options (hashChain, lineageColumns) and the AUDIT_LEDGER_* breadcrumbs.

  • Audit ledger → Anchoring call rows in the event log (opt-in). withAuditRecordedAnchor writes one audit.recorded event per written call into the chained event log; verifyCallAnchors reports missing, mismatched, orphan, and duplicate anchors. No Postgres AuditableCall reader ships yet (upstream 9ce2d0b56b).

Changed

  • createPgEventLogWriter stamps the hash chain by default. Storage and Hash chain said it left the previous-row hash and row hash empty. It now stamps them byte-identically to EventLogWriter (stampChain, chainSigningKey, sequenceAllocator); upgraded chats verify as discontinuous unless firstChainedSequenceNumber is passed (upstream 9df75c970b).
  • Subagent rollups group by the root turn id. The homepage diagram and row-2 card, Subagents, Swarm agent, Research agent, the multi-tenant and regulated-domain agent pages, and Landscape row 4 drop the parent-or-turn-id fallback and recursive CTEs. The recursive CTEs never walked a nested tree: the parent turn id holds the user turn at every depth. Mixed history groups on the root turn id, falling back to the parent turn id, then the turn id.
  • Subagents no longer says the Postgres ledger drops lineage.
  • Chain attribution corrected. AuditableCall row said @pleach/compliance adds the hash-chain columns, and Hash chain said the event-log chain protects the call row. The call-row chain lives in @pleach/core and is opt-in; the replay note now says replay re-serves from a verified chain rather than asserting deterministic re-execution.

Added

  • API routes → Live runtimes per session documents the per-session runtime map. createPleachRoutes keeps one live runtime per session, bounded by sessionRuntimeCapacity (64) and the new per-principal sub-cap sessionRuntimePerPrincipal (16). A single-user host now keeps at most 16 idle live runtimes. Sync and fork with no live runtime rebuild a short-lived runtime from stored state (409 no_live_runtime only with no stored row or no provider; 429 too_many_session_rebuilds past 4 in flight per principal), while interrupts and the ?sessionId= reads of /tools and /inspect still answer 409. Resolvers must be deterministic and not read the body. A runtime the routes release throws SessionRuntimeReleasedError (session_runtime_released) if a host reuses it (upstream f642fe62da, b65b3c2361, 6209046109).
  • API routes → Skills and memory per caller. Under resolveUserId, GET /skills, POST /skills/:name/activate and GET /memory act for the caller and refuse an unusable caller 401. A gated host sets skillOwner.orgId to the runtime's organizationId (DEFAULT_IDENTITY_ORG otherwise). Custom memory / skills / activateSkill closures must take the caller ctx; the server warns once for a closure that can't see it (upstream 0dcd30d4b1).
  • Fork ownership. API routes → Session ownership and Time travel → Who owns the fork: a fork belongs to the gated caller, through TimeTravelForkOptions.ownerUserId (upstream 3e8bcf4b65).
  • CLI → The sidecar's /mcp endpoint. tools/call must name a session in params._meta["pleach/sessionId"] (-32602 without one, -32001 with no live runtime); the sidecar admits only its launching process (upstream 3e8bcf4b65).

Fixed

  • CLI → pleach schema documents the tiered bundle. The section listed only --target, --dry-run, --apply and --timestamped and said re-applying won't migrate column shapes. It now covers --with <tier|package|all> and --list, the <rank>_<tier>__<file>.sql names, identical-file skips, refusal of unknown flags (exit 2), and exit 3 only for a differing file.
  • Schema → Applying the bundle: --with all also adds first-party package schemas, not only core extensions.
  • HarnessServer → Supplying a durable interrupt resolver said the default resolver binds a fresh per-request runtime (404 on a later request) and that sync and fork need no runtime. The default binds the session's live runtime (409 no_live_runtime without one), and sync and fork rebuild one from stored state.

Fixed

  • SessionRuntime runs one turn at a time per runtime. SessionRuntime serializes turns across every session id (sessionTurnQueue, "runtime" scope). Concurrency comes from one runtime per thread or request; awaiting a same-runtime turn from inside a turn waits behind its parent, and the wait fails open after sessionTurnQueueMaxWaitMs (30 minutes). React notes its stream lock is client-side (upstream af09c887c0, a799e26821, 4849fc3b9b).
  • The synthesize cap counts admitted answer-producing calls. Seams, Turn lifecycle, Graph, the FAQ, and the plugin and call-class pages said "one synthesize per turn" and that a same-message re-fire never reaches the provider. TurnSynthesizeCounter spends a slot only for an admitted call that can produce a new answer body; the SynthesisTerminalArbiter short-circuit and the suppress arm spend none. TurnSynthesizeCapExceededError is thrown by the host counter and is not exported by core (upstream 346384c8f7, e1c5a2214e).
  • Audit-row identifiers match the call ledger across the docs. model_id / modelId is model; token_usage / tokenUsage is payload->'tokenCost' (inputTokens, outputTokens, costUsd). SQL examples that queried family, region, call_kind, input_tokens, output_tokens, outcome->>…, or payload->>'tenantId' now use the real tenant column, turn id, session_id, provider, transport, and status columns — across the multi-tenant, observability, troubleshooting, agent-shape, migration, and integration pages, plus the compose-underneath diagram. The audit row doesn't record region; pages that said so no longer do.
  • Hash chain walks in (sequence number, id) order. It told readers to walk by (created_at, id), which breaks links on intact chains. The db/verify-chain.sql recipe makes the same fix and partitions per chat.
  • Hash chain → What gets hashed lists the real CanonicalRowFields. It named record_id, session_id, and raw payload; the payload enters only as payloadHash. The v3 field list is added.
  • Audit ledger uses current identifiers. streamByTimeRange shows its tenantId option, the row field list says model and tokenCost, and the hash-chain note says EventLogWriter stamps the chain by default.
  • WORM: --with all includes the worm tier. The page asked readers to dry-run and check.
  • Base tools → Registration pattern follows resolveBaseToolsProfile. Injecting a capability enables its tool, a code runner selects the workspace profile, and scratchpad drops when a filesystem adapter is set.
  • @pleach/tools is described as a re-export shim. Tools and Base tools no longer present it as a live SKU with a reference catalog; it re-exports @pleach/core/tools/unified.
  • maxPerTurn returns a refusal. Swarm agent and Research agent say an over-cap spawnAgent returns refusal: { kind: "spawnsPerTurn", limit, actual }; only maxSubagentFanOutPerTurn on spawn() throws.
  • Landscape → The short version matches its rows. One row per provider dispatch, retries included, and "replay from the record" naming the first divergence, not "deterministic replay". Row 11 names the turn id and payload.tokenCost.
  • React → useCompliance lists the hook's real return fields and flags that it sits on the deprecated ComplianceExtensionImpl / SupabaseComplianceStorage (upstream 0ee37c5036).

Added

  • New WORM tier page. The opt-in worm schema tier adds a legal-holds table, triggers that refuse UPDATE, DELETE, and TRUNCATE on the event log for every application role, and disposal only through the hold-aware destroy function. The page states its limits: the table owner and superusers are not constrained (upstream 8b0735f38a).
  • Hash chain → Chain identity (v3) documents chains keyed on the tenant column and chain id. It covers the pleach.c9.v3 and pleach.c9.v3.hmac identities, the session chain (session.created, session.bound_chat, writeSessionChainGenesis), and the v1/v2/v3 verifier dispatch. The c9ChainIdentity writer option defaults to false (upstream 5bd3c610f4, bb3da020b9, d155fd0d6e).
  • Hash chain → Detecting a removed tail documents committed-head verification. expectedHead { sequenceNumber, rowHash } catches a deleted tail, not only an edited row; createSupabaseChainReader and ChainReadNotVerifiableError (v3-row-on-chat-read) are covered (upstream d985a6452f, 75efcc01f8, ce28422105).
  • Attestation → V2: DSSE envelopes. signAttestationV2 signs the DSSE PAE through the key-store's optional signBytes, which the file-backed, AWS KMS, and Vault Transit stores implement, and throws RawSigningUnsupportedError rather than fall back to V1. verifyAttestation dispatches on version, returns unsupported-version for anything else, and never throws or echoes attacker text (upstream ff7593811d, 7f43f66984, 0ec3d96e11, be745e5906).
  • Tools → Tool policy. SessionRuntimeConfig.toolPolicy (allow / deny / onWithheld) is narrow-only and enforced by the adapter's applyToolRestriction; an adapter without it is refused with ToolPolicyNotEnforcedError. narrowChildToolSets makes the parent's lists a ceiling for sub-agents, and sessionToolAllowed replaces guestToolAllowed (upstream 430f388cd5, d99868e402, 4faf9ee079, af69f5ab24).
  • Base tools documents the workspace file tools. fs_glob, fs_grep, approval-gated fs_edit, and fs_read offset / limit, with symlink re-confinement through FileSystemAdapter.realpath and the @pleach/core/base-tools/node worker subpath (upstream f040310830).
  • Subagents → The tool-loop executor. createToolLoopSubagentExecutor runs a child bounded by maxSteps (ceiling 40) with narrowed tools, routes through spawnAgent, and prices and budgets every child call (upstream 922aa04353, 19af73a5c1).
  • SessionRuntime → resumeStream. resumeStream(sessionId, { seededCompletedWork, planSnapshot }) seeds settled async jobs and a saved plan, and synthesizes at most once with no user turn. composeResumeGroundedFallback ships at @pleach/core/runtime/resume/resumeGroundedFallback (upstream 78099aa277, 7b7b1bfd3f, 15d044f5be).

Fixed

  • SUBAGENT_LIMITS.maxPerTurn is described as enforced. Subagents said a per-turn breach throws SubagentFanOutExceeded. spawnAgent enforces maxPerTurn through a per-turn ledger and returns a failed result with refusal.kind: "spawnsPerTurn"; the thrown error belongs to maxSubagentFanOutPerTurn on spawn() (upstream bf76bb2d08).
  • The text_search example uses the real parameter. It passed body; the parameter is haystack, and regex mode fails closed unless allowInProcessRegex is set.
  • The AttestationKeyStore interface lists identify() and optional signBytes(). Attestation omitted the required identify(), and its scope note still said the KMS and Vault adapters land in v1.0.

Fixed

  • Audit-row identifiers on the homepage and docs index match the shipped schema. The homepage row diagram named columns the call ledger does not have (tool_name, model_id, prompt_tokens). It now shows the real wrapper columns (record_id, the tenant column, session_id, the turn id, stage_id, the per-turn sequence number, call_class, provider, model, status, latency_ms, created_at) plus the previous-row hash. The two-row rollup diagram's query read SUM(token_usage), a column that doesn't exist; it now sums payload->'tokenCost'->>'costUsd' grouped by the parent turn id (falling back to the turn id). Docs index no longer lists toolName / modelId / tokenUsage as row fields.
  • The verifyChain artifact uses the real signature. It read verifyChain(rows); the function takes verifyChain({ entries, genesisHash }).
  • Landscape row 5 counts rows per dispatch. It said every model invocation writes exactly one AuditableCall row. Since audit v27 every provider dispatch, retries included, writes one modelCall row (upstream c20949c405).
  • Hash chain names which writer stamps the chain. A callout states that createPgEventLogWriter leaves the previous-row hash and row hash empty; only the full EventLogWriter stamps them.
  • Attestation no longer calls the KMS and Vault adapters stubs. AwsKmsAttestationKeyStore and VaultTransitAttestationKeyStore sign through an injected client (KmsSigningClient / VaultTransitHttpClient) and throw NotImplementedError only without one. The KMS signing algorithm is ED25519_SHA_512 with MessageType: "RAW", not EDDSA. Packages makes the same correction.

Added

  • Packages lists the three cloud transports and new subpaths. @pleach/transport-bedrock, @pleach/transport-azure-openai, and @pleach/transport-vertex get matrix rows marked source-complete and not on npm (private). Core's row names OpenAINativeProvider (upstream 3ebb65059c).
  • Landscape row 4 names the durable rollup. Subagent spend is durable today as the cost.rollup event row, read via runtime.getTurnCostRollup().

Fixed

  • The attestation timestamp-authority snippet now runs. Attestation called createSqliteDurableStore({ path: "./agent.db" }) and awaited createPleachAgent. The real signature is createSqliteDurableStore(dbPath, options?), exported from @pleach/core/store, and createPleachAgent is synchronous. The snippet now shows both calls corrected, plus the createSqliteDurableStore and FileBackedAttestationKeyStore imports it was missing (the latter from @pleach/core/attestation/testing).
  • Schema file names in Query and Storage match the tiered layout. content/docs/query.mdx and content/docs/storage.mdx now name the sessions, event-log, outbox and chat-links schema files.

Changed

  • Schema describes the current tiered layout. Schema described a flat 12-file bundle (numbered outbox, auditable-calls and spawn-event-fields files, and a config-manifest file that does not exist). It now documents a base tier plus opt-in extension tiers, each with a manifest.json, the pleach schema --apply --with flow, and pleach schema --list as the source of truth for the tier set, so the page carries no file count. It also documents the identity pin on the sessions table (the id, user and organization columns can't be changed by a client after insert; service_role and RLS-bypassing roles are exempt), warns that the organization id is still client-chosen at insert and must not back authorization unless the insert path is pinned (the org-keyed policy example carries the same warning), says the quickstart sentinel session is excluded from every owner policy that joins sessions, and points existing installs at the proposed upgrade SQL.
  • API routes document the narrowed session config and the HarnessServer owner gate. API routes now lists the only four POST /sessions config keys (title up to 256 characters; provider and model as strings up to 128; tools with enabled up to 256 names, disabled, and maxConcurrent from 1 to 64). Any other key, or the object form of provider or model, returns 400 { error, allowed, rejected }. The example body used the object form and is corrected. A new section describes direct HarnessServer wiring: every session-scoped handler resolves its caller from the per-call userId, else auth.getUserId() (which must be request-scoped), else applies no gate; a foreign or missing session is 404 and an unauthenticated caller is 401. A malformed POST /skills/:name/activate returns 400, not 500. HarnessServer and Language-agnostic contract carry matching one-line updates.
  • Unreported token usage is documented on the seam and provider pages. Seams gains a Reported usage section: a count the provider never reported is undefined, not 0, and usageObserved says whether any usage object arrived. Providers says AnthropicSdkProvider now reports inputTokens as the total prompt (cache reads and writes included), so adding cacheReadTokens or cacheWriteTokens on top double-counts. The AuditableCall row and Model resolution matrix say a streamed call that errors after its provider sent a usage object is usage-unreported, while a pre-stream refusal stays unmarked.

Changed

  • Owner policies are documented as TO authenticated, not as policies for anon clients. Schema → RLS template previously described the owner-scoped policies as "for anon clients". The template now carries TO authenticated, and the page says every owner policy in the base schema and its extension tiers (errors, team, compliance, outbox) is TO authenticated, the model-registry catalog read is the only public policy, anon and other roles match no owner policy, and a plain-Postgres client with its own auth.uid() runs as (or SET ROLE) authenticated. It documents that signed-in users may insert their own session rows with any id except the reserved quickstart audit session id 00000000-0000-4000-a000-000000000001, and that session ids should still be minted on the server. A breaking-change callout covers clients that reached these tables as another role and the upgrade SQL that existing databases need. Multi-tenant → storage scoping and the Security guarantees table make the same correction.

Changed

  • Session ownership and the rename-only PUT are documented, and the old full-state PUT is corrected. API routes gains a "Session ownership" section: with a host resolveUserId, every /sessions route acts for the authenticated user, a session you don't own answers 404 {"error":"Session not found"} exactly like a missing id, execute never resumes another user's session, and a request with no user gets 401 {"error":"unauthenticated"}. It is marked breaking for hosts with a resolver: existing sessions need extensions["pleach.ownerUserId"] and userId backfilled. GET /sessions notes that ?userId= is ignored. PUT /sessions/[id] previously said it took the next SessionState with a version-vector check and a 409; it renames a session, accepts only title, and answers any other key with 400 {"error":"field not updatable","allowed":["title"],"rejected":[…]}. Language-agnostic contract lists the PUT body as { "title": string }.

Added

  • Tenant binding is documented for the routes, the local SQLite store and the sidecar. API routes gains a "Tenant binding" section: GET /sessions/:id/verify and POST /sessions/:id/attest act only for the server's bound tenant, and a ?tenantId= naming another tenant gets 403; createSqliteDurableStore(path, { tenant }) scopes sessions, checkpoints and event-log reads to its tenant and refuses to create a session on an id another tenant owns; the sidecar's /sidecar/replay replays its own tenant. POST /sessions now says the server mints the session id and ignores a client-supplied config.id. Environment variables gains a "Local sidecar" section for PLEACH_TENANT_ID (default default) and PLEACH_CONFIG_DIR, with a warning that setting PLEACH_TENANT_ID on an existing config dir hides the rows written under default.

Added

  • Sub-agent event rows never borrow a chat id. Stream events → Subagents now says that durable subagent.* rows take their chat id only from the spawning turn's session, and that a sub-agent spawned outside a chat turn (for example through the /mcp tools/call endpoint) is written with no chat id rather than attributed to another chat.

Added

  • Unreported usage is documented as a cost marker, and the AuditableCall version is now 30. The AuditableCall row 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 summarises the rule. @pleach/observe 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

  • The AuditableCall version is now 28 across the reference pages. The AuditableCall 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 notes the v28 stamp. @pleach/observe, Adoption paths, Packages, Agent instrumentation and BYOK observability name v28 in place of v19 (and of the leftover v13 on the observe page), and 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 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.

  • No-key turns return a typed 503; the demo stream is unpublished. With a resolved provider but no key, createPleachRoute / createPleachRoutes / createPleachAgent now answer HTTP 503 { error: "no_provider_key", provider, envVar, detail } instead of a 200 stream whose reply was a "Set <PROVIDER>_API_KEY" hint. The @pleach/core/internal/quickstart/demoStream subpath and the x-pleach-placeholder / x-pleach-mode response headers are gone, and no stream can waive the key or bypass a configured durable audit ledger. This supersedes the keyless createPleachRoute({ demo }) first-run described further down. pleach tui renders the typed error as no_provider_key (HTTP 503): <detail>.

Fixed

  • Attestation says what an inclusion proof does and doesn't prove. chainProof was described as locating the leaf "inside the tenant's broader chain", which reads as if a passing verifyInclusionProof(proof) settles membership. It doesn't: the check folds leafHash through proofPath to the proof's own whole-chain merkleRoot. The page now says membership also needs that root to match an independently obtained one, such as the anchorChainSegments root at the same headSequenceNumber and merkleConstruction. That root exists only for a chat with no restarts, because each restart starts a separately anchored segment. Checked against upstream 8ba1a857fd.

  • Runtime strategies counts post-model-hook retries in the same-model retry budget. The page listed the hallucinated-tool, repetition-guard and garbled-output retries as sharing sameModelRetryCap. A post-model hook that rejects the content and asks for a retry draws on the same per-turn budget (SameModelRetryReason: hallucination, repetition, post-model-hook, garble). Stream single turn also refreshes the getHallucinationDetectorFactory read-site anchors. Checked against upstream 8ba1a857fd.

  • Server samples import only from @pleach/core/quickstart. @pleach/core/server isn't a published subpath, and Server taught it in five samples. The createHarnessServer sample is now a createPleachRoutes({ capabilities }) override; the createInMemorySharedInterruptResolver sample imports from @pleach/core/quickstart and passes the resolver as capabilities.interruptResolver; the Next.js, Express, and Hono mounting examples use routes.nextRouteHandlers(), routes.nodeHttp(), and routes.fetch. The bare HarnessServer / ROUTES import block is gone, and the handler sections are labelled as internals reached over HTTP. Two corrections ride along: the durable-resolver sample passed a resolver as capabilities.interrupts instead of capabilities.interruptResolver, and the Next.js catch-all samples on Server and API routes omitted basePath, without which the dispatcher can't match /api/harness/... paths. Interrupts, Turn lifecycle, and SessionRuntime now point at the route factory instead of HarnessServer.

Added

  • Per-call-class model routing is honoured, not recorded-only. Model resolution matrix gains a "Per-call-class overrides" section for SessionRuntimeConfig.perCallClassModelRouting: routes are honoured by createProviderAdapter and the quickstart standard adapter; cross-family routes, routes whose family can't be derived, and routes that arrive before the lock is observable are refused and disclosed ([PerCallClassRouting] override-refused, auditMetadata.perCallClassRouting); a routed call is priced at the matched rung's rates, and a model in no rung is left unpriced; a custom quickstart providerStream must dispatch to ctx.resolvedModel when it is present. Multi-synthesize drops the "forward-compatible, honoured once the core widening ships" framing for createPerCallClassRouting: core now reads the field. Upstream source, not yet published to npm.

  • Sub-agent cost rolls up to the parent turn. Subagents gains a "Cost attribution" section for SessionRuntime#getTurnCostRollup(turnId?), which returns { turnId, self, descendants, total, partial, truncated } and splits the root turn's own calls from every sub-agent's. Each bucket reports callCount, pricedCalls, unpricedCalls, costUsd (omitted when nothing was priced) and four token totals. The section states the limits: background async.spawn tasks are excluded; callCount and costUsd are floors when calls are unpriced; total can differ from the durable cost.rollup row; retention is LRU over 32 turns, and a row arriving after release or eviction is marked truncated. Event log documents the quickstart message.assistant row's payload.cost_rollup snapshot (root turn key, snapshot, as_of, self, descendants, total, partial, truncated). The "Subagent cost attribution to the parent turn" row in content/docs/migrating-from-anthropic-enterprise.mdx now names runtime.getTurnCostRollup(turnId). Upstream source, not yet published to npm.

Changed

  • Turn stop is a client disconnect with a declared intent. SessionRuntime gains a "Stopping a streamed turn from the client" section: the client declares at stream-open what its disconnect means (header x-pleach-on-disconnect or query on_disconnect), the stream handler classifies the abort ("user" for a declared stop, "error" otherwise, "timeout" first when the server closes the stream — first abort wins), and there is no stop route or shared stop flag. Documents parseDisconnectIntent, bindDisconnectToTurnAbort, createTurnAborter, and DISCONNECT_INTENT; notes the intent values may be renamed before publish. Deployment replaces the abortSignal: req.signal route example with a bound disconnect. Server documents the optional third request argument to HarnessServer.handleExecuteMessage and threads it through the Next.js, Express, and Hono adapters. Turn lifecycle, Session lifecycle, and API routes point at the new contract; resume after a stop hydrates from the session store and checkpointer.
  • Edge runtimes are no longer supported. @pleach/core runs on Node.js (server side) or in a browser. Edge servers (Vercel Edge, Cloudflare Workers) and any server runtime without AsyncLocalStorage are refused: tool execution needs per-request isolation, and a shared context slot would let concurrent requests see each other's identity. Entering a tool-execution scope there throws ToolExecutionContextUnsupportedRuntimeError (code PLEACH_TOOL_EXECUTION_CONTEXT_UNSUPPORTED_RUNTIME, runtime of "edge" or "server-without-async-local-storage"; see Error codes), and the quickstart createPleachRoute() answers 501 before any stream starts. Move Edge routes to the Node.js runtime. The install, quickstart, deployment, and FAQ pages drop their Workers / Edge claims accordingly.

Fixed

  • 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.
  • Drifting counts removed or labelled. The package count read 13, 14, 15, or 19 depending on the page, while the packages.mdx table lists 17 entries; overview cards, which-sku.mdx, license-compatibility.mdx, and organization.jsonld now point at the table instead of restating a number. Hook counts are labelled by what they count: 80 total (plugins/authoring.mdx), 71 contribute* hooks (plugin-contract.mdx); the stale 41 in runtime-inspector.mdx is gone. nodes.mdx and graph-node-catalog.mdx disagreed on every node total (44 vs 42); the totals are dropped and the catalog's per-stage counts stay canonical.
  • Node-registry and plugin-hook counts re-derived from the upstream contract. NODE_STAGE_MAP carries 42 names, not 43 — corrected on Graph, Node catalog, Audit gates, and Ownership; the catalog also drops two names that were never nodes (workspaceIndex, toolLoopStream) and re-stages garbledContentGuard / repetitionGuard to post-turn. HarnessPlugin exposes 80 hooks (71 contribute* + 9 lifecycle), not 77 (68 + 9) — corrected on Core and Authoring, with Plugin contract now naming its narrower 70-hook audit denominator. Full detail in the combined view.

Added

  • Heartwood — the loader's two-scope resolution and shadow semantics, previously undocumented. createFileHeartwoodLoader resolves first-non-empty-wins across an explicit path, ./HEARTWOOD.md (the per-project soul), and ~/.pleach/heartwood.md (the user-global soul). The scopes shadow, not merge: the first file found wins entirely, so a project ./HEARTWOOD.md fully overrides the user-global file rather than concatenating with it. The page had named only the path override.

  • Prompt builder — the composition-determinism guarantee stated outright. A static or core contribution's content is a pure function of its PromptContext and does not vary with tool-loop depth or turn recursion. contributeRuntimeAwarePrompts is the only channel that varies per turn, and static contributions are held out of the RuntimeStateSnapshot on purpose. Matching pointer added to Prompts.

  • Skills — the create_skill base-tool for agent-authored skills. An agent can name a repeatable procedure as a reusable skill mid-session. create_skill is opt-in (list it in include) and available when the runtime has a durable store to persist to; authored skills surface through the same progressive-disclosure path as loaded skills — an in-prompt index entry plus an on-demand skill_view body.

  • Defensive patterns — a new Architecture page: six design rules the runtime holds itself to, each paired with the shipped @pleach/core API that embodies it. Includes the first docs coverage of the destroy-quiescence surface — AsyncTaskManager.seal(), awaitQuiescence(timeoutMs) and its AsyncTaskQuiescenceReceipt, and SessionRuntimeConfig.destroyQuiescenceTimeoutMs (default 5 s) — landed upstream in dfbbd6f239 + a3ad79dce1.

  • The *_CALL_CLASS constants from @pleach/core/graph/seams/callClassConstants. The page explained that the callClass lint rejects a bare "synthesize" but never said what to write instead when you need the value rather than the type.

  • Six new subpath rows on Subpath exports: graph/defaultAgentGraph (the only published home for buildDefaultAgentGraph), graph/seams/callClassConstants, eventLog/durableFlush (setWaitUntilImpl / deferFlush / awaitPendingFlushes — the serverless durability seam), strategies/schemaCondensation, skills with its two narrower entries, and the four runtime/facets/* client-facet entries.

  • The site's contract check gains symbol reachability. It already asked whether an import path resolves; it now also asks whether the symbol is exported by that path.

  • Four new @pleach/core subpaths on Subpath exports — attestation/cms, crypto, context, and the corrected wildcard story. @pleach/core/crypto is carried as experimental with its DDL precondition inline: on a schema declaring the wrapped-key column or iv as NOT NULL, shred() raises SQLSTATE 23502 while getOrCreateDek still succeeds — so enabling encryption there mints ciphertext that can never be erased, and GDPR erasure becomes impossible. Verify nullability before the first DEK.

  • The CMS envelope — @pleach/core/attestation/cms emits a detached CMS (RFC 5652) SignedData over an attestation's canonical bytes, Ed25519 per RFC 8419, alongside AttestationV1.signature rather than instead of it. Documents buildAttestationDetachedCms, why certificateDer is effectively required for an independently-checkable artifact, and the RFC 5652 §5.4 re-tag invariant: signedAttrs is encoded [0] IMPLICIT but signed as a universal SET, and getting it wrong yields a structure that verifies nowhere while staying self-consistent. Core re-reads the emitted DER and throws a named signed-attributes-mismatch at emit time. Detect with isCmsAttestationError, never instanceof.

  • Which merkle construction built the root — MerkleConstruction and the merkleConstruction field on ChainProofV1. generateProof(...) defaults to "legacy" deliberately: switching a chat to "rfc6962" changes every root it produces, and existing anchors countersigned the legacy roots. Names both defects RFC 6962 fixes — no domain separation (leaf and internal node are both bare SHA-256, the second-preimage precondition) and odd-node duplication (the CVE-2012-2459 shape, where [A,B,C] and [A,B,C,C] share a root). Absence of the field means the proof predates it. Separate axis from the chain key version.

  • session.ended and HARNESS_EVENT_TYPES. session.ended makes a clean close a positive fact rather than an inference from absence — and its own absence proves nothing, since a session whose process dies never writes one. HARNESS_EVENT_TYPES is the runtime mirror of the HarnessEvent union, pinned by an exhaustive Record<HarnessEventType, true> in production source. Membership means emittable, never persistable.

  • Auth events. AuthEventType, AuthMethodClass, AuthEvent, AuthEventSink, and contributeAuthEventSink. Core owns the vocabulary, the host owns the store: the hash chain is keyed by the tenant column and chat id and an auth event has no chat by nature — measured at 4,269 chatless rows, zero chained — so writing them to the harness event log would produce a trail that looks complete while its integrity guarantee stops short of the access events an auditor reads first. Status stated honestly: no collectAuthEventSink() collector yet and no published exports entry for the vocabulary, so implementing the hook today compiles and does nothing.

  • Optional peer dependencies. @peculiar/asn1-{schema,cms,x509} for CMS attestation, @pleach/rbac-contract for @pleach/core/rbac, @modelcontextprotocol/sdk for MCP, @sigstore/core for RFC 3161 receipt verification. Each fails with a named error identifying the package rather than a module-resolution stack.

  • The RFC 3161 surface is now reachable from the paths consumers actually walk, not only from the primitives. createPleachAgent takes a timestampAuthority — before this the quickstart called attestChainState without one and exposed no way to supply it, so the default path produced claim-only attestations permanently. Both the agent and the runtime now expose evidence (runtime.evidence: timestamped, mintAnchorMs, clockInjected), which reports what was wired and deliberately not what is true of the outside world — a configured-but-unreachable authority still reads timestamped: true, and there is no clockAnchored field because core cannot verify that claim.

  • chainAnchorScheduler in @pleach/recipes composes the scheduled anchor-and-verify pass that every consumer previously wrote by hand. It exposes runOnce() and no loop: a convenience start() was written and removed, because a scheduler with no retries, no at-most-once story and no observability is strictly worse than the one a consumer already runs, while looking like a supported way to do this in production. Also documented in Hash chain.

  • Hash chain now documents the anchor-verification surface, closing a promise the page already made — it ended on "the property is only real if something actually performs that check" without saying how. Covers verifyChainAnchors (re-deriving a witnessed merkle root catches a mid-chain deletion whose rows were re-linked cleanly, and therefore passes a previous-hash walk — a chain that verifies is not the same as a chain that matches its witness), evaluateChainAnchorFreshness (grade liveness on staleness, never on row count; anchorCount and timestampedAnchorCount are separate signals because damage and staleness are independent failures), and classifyChainAnchorAlertLevel. Two decisions are written up as generally applicable: liveness never shares a channel with tamper detection, and damaged evidence may withhold an escalation but must never produce a de-escalation.

  • Attestation documents createAnchoredClock (@pleach/core/runtime) — skew-corrected, monotonic, suspension-aware — and is explicit that it reduces honest clock error only. It does not upgrade issuedAt from a claim to a proof; only the TSA countersignature does that.

  • Comparison adds an agent-forward "usage axis" section, and the homepage "Quick answers" intro is broadened to match. The claim: Pleach's surface is built to be operated by agents — the introspectable facet API (runtime.tenant, runtime.events, runtime.graph.*, CI-gated by the facet-coverage check), TechArticle JSON-LD from one controlled tag vocabulary, per-page Markdown twins, a live MCP server, and an agent-skills index — not a human console with agent access added on. Distinct from the capability differentiators; no existing value prop changed.

  • Comparison adds a governance-control-plane / AI-gateway category. Frames @pleach/core against governed-proxy control planes (Portkey, Cloudflare AI Gateway, and the enterprise control planes above them) as altitude, not timing: a proxy governs the call at the HTTP boundary; core governs the agent's execution graph and writes the AuditableCall row to a database you own. Relatedly, Landscape row 1 now notes that proxy-advertised "tamper-evident audit trails" live on the vendor's side, not as a hash-chained row you own.

  • Five more @pleach/core public exports documented (720a6e8a3 / de4403b6a). Interrupts adds rewriteToolArguments — the natural-language → structured-args rewrite for approval-with-edit flows; it runs on the utility call class and never throws, resolving to the original arguments on every fallback path. Tools adds the standalone createDiscoverToolsTool / DISCOVER_TOOLS_TOOL_NAME factory for hand-rolled servers. Server adds createPluginToolRegistry — the getter-backed registry behind /tools and /tools/:name. Storage adds composeDurableStore (build a DurableStore from adapters you already hold) plus the optional blob member and createMemoryBlobStore / MemoryBlobStore. Adoption paths names the BrownfieldRuntimeMenu options type; Prompts names the optional PromptDescriptor ({ title?, summary? }) surfaced by runtime.prompts.describe(). Upstream trunk, not yet published to npm.

  • New Pricing math page. Documents the @pleach/core/pricing subpath — computeTurnCost, DEFAULT_PRICING_MATRIX, createPricingResolver, the OpenRouter fetch, and resolveCostEventUsd.

  • React lab component kit documented. The full @pleach/core/react/lab surface — PleachLab's composable panels plus useLatticeState / useEventLogCapture / useChannelSnapshot — with @pleach/core/react/lab named as the canonical subpath.

  • Three prompt- and context-management capabilities documented. Orchestrator middleware adds the optional summaryProvider field on SummarizationConfig — a callback supplying a higher-quality (e.g. LLM-generated) rolling summary in place of the default extractive char-slice summary, falling back to the extractive default when it returns an empty value or throws. Prompt builder adds the "Cache-stable prefix" section: the stability: "stable" | "volatile" tag on BudgetedSection and the stableBoundaryIndex field on ComposedPrompt — composeBudgetedPrompt hoists stable sections into a contiguous prefix (untagged input stays byte-identical) and reports where the volatile suffix begins, so a consumer places its provider cache_control breakpoint after included[stableBoundaryIndex - 1]. Prompts adds "Persisting an agent's role" — put durable persona in the core.role-template slot via replaceCore / prependPersona and tag it stability: "stable". Upstream trunk, not yet published to npm.

  • condenseTools.intentPriorityMap given its real type. Tools replaces the intentPriorityMap placeholder with Record<string, readonly string[]> — an intent name mapped to the tool names that keep their full schema when that intent is active. Upstream trunk, not yet published to npm.

  • condenseTools + the discovery meta-tool documented. Tools gains the createPleachRoute option that trims the tools[] array above a threshold — keeping maxSchemaTools full schemas and surfacing the rest as one-line names — plus the discovery meta-tool (metaToolName) the model calls to pull a dropped schema back. Distinct from the prompt-directive weakToolSchemaBudgetPlugin on the same page. Upstream trunk, not yet published to npm.

  • Model-pipeline surface documented — two new pages plus eight section additions. Model hooks documents the @pleach/core/hooks pre/post-model seam (PreModelHook, PostModelHook, ModelProfile + historyTrimmerHook, lazyModelDefaultsHook, toolCallValidatorHook, repetitionDetectorHook, wired via runtime.model.registerPreHook / registerPostHook). Orchestrator middleware documents @pleach/core/middleware (OrchestratorMiddleware, MiddlewareStack, ResultEvictionMiddleware, SummarizationMiddleware, LanguageModelMiddleware, CHARS_PER_TOKEN, wired via setOrchestratorMiddlewareInit). Both join Subpath exports under a new "Model pipeline" category with @pleach/core/synthesis (SynthesisEmitter, enrichOffloadedToolPreviews). Sections added: finalizeAnswer + the { banner } return on postSynthesisGuard (Plugin authoring); ProviderCatalogContract and the SLOW_COLD_START_PLANNER_FAMILIES / isSlowColdStartPlannerFamily gate (Providers); InterruptManager.requestApprovalWithId (Interrupts); runtime.abort(reason) / AbortCoordinator + TURN_ABORT_REASON (Session runtime); the durable subagent.tool_used audit row (Subagents); the event-log owner-select per-user RLS policy + event-log service-role write bypass (Multi-tenant); and MemoryStore as the config.store ship-a-default. Existing published @pleach/core surface; upstream trunk, not yet on npm.

  • Four runtime-behavior sections documented. Each mechanism shipped upstream but had no doc home. Tools gains weakToolSchemaBudgetPlugin (@pleach/core/prompts) plus createWeakToolSchemaPredicate (@pleach/core/modelfamily) — the proactive tool-call budget for weak-tool-schema families (google/deepseek/moonshot, defaults maxBatch: 4 / maxSameTool: 2), gated on PromptContext.family. Turn lifecycle documents the no-first-token dead-air hard-cut (reduceTurnDeadAir; upstream d062ab24d5). Providers documents the stalled-rung cascade pivot, classed SYSTEM_ABORT not USER_ABORT (upstream e1fa3f1487). Fabrication detection documents metadata.uncoveredPlanSteps and the honest "not dispatched" note (upstream bb0f995fce, ca9dc86644). All from published subpaths or documented runtime behavior; upstream tree 8f224cbf42 on trunk, not yet published to npm.

  • Standalone hosted-agent route family — createPleachRoutes, createPleachAgent, DurableStore, MemoryEventLog. @pleach/core now mounts the whole route family from one factory, not just the single execute leg. createPleachRoutes and the three-arm createPleachAgent({ context, tools, db }) façade (both @pleach/core/quickstart) mount sessions CRUD, execute+SSE, interrupts, checkpoints, rollback, events-recall, sync, and fork; createPleachAgent returns { fetch, nextRoutes(), nodeHttp(), store }. DurableStore + createMemoryDurableStore() (@pleach/core/store) unify storage, checkpointer, event-write, event-read, and recall behind one binding, and MemoryEventLog (@pleach/core/query) is the keyless in-memory recall ledger with an asQueryClient() shim — so recall works with no Supabase when db is omitted. createHarnessServer({ runtime, storage, checkpointer?, events? }) is the build-only auto-bind factory over the still- unpublished @pleach/core/server subpath. Known limitation: the default interrupt resolver binds a per-request in-process InterruptManager; a durable multi-request deployment supplies its own via createPleachRoutes(...).capabilities.interrupts. Landed across API routes, Server, Quickstart, Storage, and Query. Upstream: pleachtui Track A, @pleach/core@0.1.0 on trunk (Waves 0b34ab8742, 095d037933, add6562a15, 2b20c9c4be) — on trunk, not yet published to npm.

  • Runtime strategies documents the resolveCallReasoningEffort hook. A new per-call SessionRuntimeConfig strategy slot. The runtime consults it before every provider stream with the resolved { callClass, family, modelId }; the returned ReasoningEffort ("low" | "medium" | "high", "none" to disable the budget, undefined to leave it untouched) threads onto StreamChatOptions.reasoningEffort and the adapter lowers it to the provider request. Capability-gated — a model that doesn't advertise reasoning control ignores the field, so an unsupported model never 400s on the param. ReasoningEffort is opaque to core: the host owns the policy of which call class on which family to cap. Unset ⇒ no field attached, request byte-identical. Fail-soft — a throwing resolver is caught and treated as undefined. Added to the "Newer injection hooks" table plus a per-call cadence note.

  • Comparison gains a category for agent-memory & knowledge-graph substrates (a read-side category). Pins the read-vs-write delineation for @pleach/core: memory layers and knowledge-graph engines (Letta, Mem0, Zep) are a read substrate — the graph exists so the agent can query it to decide; @pleach/core is a write substrate — the ledger exists so every provider call is recorded, then read to account. Shared skeleton (append-only, content-addressed, causal chain, fork/replay); divergent object of record (the agent's knowledge/decisions vs. one provider call with model/tokens/cost). Compose-not-compete — a memory graph reads the same session the AuditableCall row writes.

Changed

  • Replay-determinism claims reconciled from "byte-identical" to "deterministic; divergence-detected." Determinism, Comparison, and Migrating from Anthropic Enterprise no longer claim a recorded turn re-generates a live model call byte-for-byte. Deterministic replay reproduces the recorded response, tool-call sequence, and terminal state, and names any drift with ReplayDivergenceError; a replay re-serves the recorded response, it does not re-run the provider. "Byte-identical" is kept only where it holds by construction — fold-based state hydration and deterministic channel reducers. Corrects a load-bearing over-claim; the property is reproducible control flow + attributable divergence, not byte-equality. Adds the serial-execution caveat to the replay claim: replay determinism holds only under serial graph execution (one node per superstep).

  • Reasoning-only recovery documented as default-on for the packaged surface. Providers already documented the opt-in SessionRuntime reasoningRecovery DI; it now records that createPleachRoute defaults it on (opt out with recoverReasoningOnly: false), so a reasoning model that emits only chain-of-thought gets one same-model re-elicitation instead of a false family-exhausted. Interrupts gains a pointer from "Cross-request approval" to the interruptResolver option (createInMemorySharedInterruptResolver() / a store-backed DurableInterruptResolver).

Fixed

  • The query layer does not read only tables the runtime writes (content/docs/query.mdx). The page claimed it "reads from the same tables the runtime writes to". The host's chat-message table is the exception: it is host-provided, no code in @pleach/core writes it, and no DDL for it ships in the schema bundle — the three query readers (usage, tools, review) only .select(). The table now names the shipped .sql file per row and marks that one No — host-provided. Also recorded: a chat-manifest table and a manifest-refresh function ship in no SKU, so getChatManifest, getManifestJobsByStatus, getConversationState and getSessionReview require consumer-supplied schema.

  • The Graph callout said seven symbols were unreachable; it is now six. Upstream published @pleach/core/graph/defaultAgentGraph the day after the callout was written, giving buildDefaultAgentGraph a home. A documented defect has a shelf life exactly like a documented feature. The six that remain: START, END, DEFAULT_TURN_FLAGS, StateGraphNodeMetadata, AnnotationSchema, InferAnnotationState.

  • The committed export-map snapshot was 32 entries stale one day after being committed. Upstream added 32 named @pleach/core subpaths and removed none between 2026-08-29 and 2026-08-30. Ten carry no previously-unreachable symbol — they narrow an already-reachable surface into a named entry rather than add capability, which is why they get no docs rows.

  • The @pleach/core/* wildcard section described a hatch that no longer exists (Subpath exports, with references on Versioning, Audit gates, and Publishing contract). The bare ./* export was replaced upstream by the scoped ./internal/*, so the page's "It works today" rule of thumb — and both worked examples, @pleach/core/graph/... and @pleach/core/replay/types — named paths that now throw ERR_PACKAGE_PATH_NOT_EXPORTED.

  • Graph and Graph node catalog taught import blocks that cannot compile. Both imported from @pleach/core/graph, which is not a key in the published exports map. Seven of the thirteen symbols in the Graph example had no published import path at all: START, END, buildDefaultAgentGraph, DEFAULT_TURN_FLAGS, StateGraphNodeMetadata, AnnotationSchema, InferAnnotationState. Corrected to import only what resolves, with a callout naming the seven and the workaround. Fixing the path alone would have produced an import that resolves and still fails to bind.

  • Hook-catalogue counts were stale by ~70% (Plugin contract, Runtime inspector). Both cited 41 hooks / 38 wired. Measured from the instrument the claim names, the upstream plugin-contract check: 70 hooks — 66 wired end-to-end, 3 baselined awaiting consumer, 1 declared without a collector (contributeAuthEventSink). HarnessPlugin declares 78 members.

  • AuditRecordVersion cited as 19, now 25 (CI enforcement). Six additive versions landed since: outcome.why.stats.servingProvider, sub-agent attribution (parentTurnId / subagentId / subagentDepth), decision.lockedFamily, the provider-exhausted status, decision.fallbackChain becoming additive-optional so an omission is an admission rather than a fabricated [], and decision.rungOrdinal.

  • @pleach/core/audit-ledger is not a subpath (Attestation) — the published path is @pleach/core/audit. @pleach/observability is not a package (OTel observability) — the SKU is @pleach/observe and the shape is a destination. @pleach/core/schema/postgres (Schema) corrected to @pleach/core/schema/postgres/*.sql, the published .sql asset glob.

  • Subpath exports claimed to snapshot @pleach/core@1.x. No @pleach/* SKU has shipped past 0.1.0 — the same version-epoch error corrected across nine files in the entry below, in a tenth file that pass missed.

  • The site's contract check gained export-map drift. Every @pleach/... specifier the docs teach is resolved against each package's exports map, so a specifier that would throw ERR_PACKAGE_PATH_NOT_EXPORTED on a fresh install fails here.

  • Model-resolution matrix — Google's fast tier was stale. Model resolution matrix listed gemini-3-flash-preview for the Google converse and utility rungs; the live matrix resolves both to gemini-3.5-flash-lite. A reader who saw the old id would have keyed a fingerprint or cost estimate off a model that no longer fires.

  • Off-policy example term scrubbed from Prompts. Two gatedPrompt examples keyed on a "modal" tool; both now key on the neutral "sandbox" capability. Example-only — no API or claim change.

  • @pleach/core doc corrections from a ~200-commit upstream sweep. Graph node catalog: core registry corrected 44 → 43 — two domain plugin nodes were listed as core, and the core node syntheticExpansionDetector was missing. Config manifest: added a partial-coverage caveat (only the plugin surface is content-hashed today). Fabrication detection: documented the ~13-detector grounding/offloaded-data cohort the exports table omitted. Air-gapped deployment: corrected from "v2+ roadmap item" to the shipped fail-closed airGapped enforcement. Adoption paths: createBrownfieldRuntime (@pleach/core/runtime) is shipped, no longer "proposed."

  • Four broken root imports corrected to their real subpath. Five code blocks imported a symbol from @pleach/core that the root barrel does not re-export (verified against the package exports map): SupabaseAdapter / createSupabaseAdapter (Research agent) → @pleach/core/sessions; withTenantHeader (Multi-tenant SaaS agent) → @pleach/core/tenant; computeFingerprint (Testing) → @pleach/core/fingerprint; EventLogWriter (Event log and Recipes) → @pleach/core/eventLog. Each would fail to resolve on copy-paste; the subpaths are public per Subpath exports.

  • Two orphaned pages wired into the sidebar — Install (Get Started) and Cycle-break contract packages (Reference) existed but were reachable only by direct URL.

  • Adoption paths "Host adapters" card corrected — it promised "implement OrchestratorAdapter / StorageAdapter", but Host adapter documents the setHarnessModuleLoader module-loader seam. Reworded to match.

  • Stale AuditRecordVersion claim corrected — 18 → 19. CI enforcement stated the locked row shape was "currently 18"; upstream shipped the additive bump to 19. A version claim is load-bearing — a reader who saw "18" needs this row to know it moved. The package's published value is the source of truth; this tracks the shipped bump.

  • Hash-chain verifier home corrected to @pleach/core/eventLog. Audit ledger (two spots) and Recipes said verifyChainForChat / generateProof "ship in @pleach/replay@0.1.0". They are defined in @pleach/core/eventLog; @pleach/replay consumes them. Corrected across Audit ledger (two spots), Recipes, Which SKU, and Regulated-domain agent; now consistent with Hash chain.

  • Error-code range corrected to 1xxx–11xxx. The authoritative band table in Error codes defines 10xxx (caller-auth) and 11xxx (runtime/infra). Stale 1xxx–9xxx (frontmatter + Troubleshooting ×2) and 1xxx–7xxx (Contributing, Stream events) summaries now match the table.

  • maxConcurrentSubagents clamp claim corrected. Research agent said a maxConcurrentSubagents above SUBAGENT_LIMITS.maxConcurrent is clamped to it. They are separate limits on separate paths (default 4 caps the SubagentManager; 3 caps the imperative spawn path), neither clamped to the other — now consistent with Subagents.

  • Unknown safety-policy ids now throw at construction — even with no plugins. Safety promises "Construction throws UnknownSafetyPolicyError if the config references an id no plugin registered — operator typos surface at boot, not on the first turn." Previously the enable/validate loop was gated behind the plugin block, so a plugin-less createPleachRuntime({ enabledSafetyPolicies: ["typo"] }) silently no-op'd the enable and the typo surfaced (or silently didn't) only at first turn. The enable loop now runs unconditionally (in SessionRuntime); the register() loop stays plugin-gated, so a legitimately plugin-contributed id is registered before the enable finds it and valid constructions are unaffected. The impl now matches the documented guarantee.

  • The chronological error trail (errorCodesChronological) now captures every error class. A completed tool call carrying a structured _error_code (its status looks successful, so it tripped neither the failed-status nor the schema-validation branch) and a caught async-planner throw (AsyncPlannerHandler, previously console-only) now each persist an error.code row. A live turn with these errors previously persisted zero rows; the durable trail is now complete. (Direct-API tool errors were already covered by the host emit path.)

  • Core-concept doc snippets reconciled with shipped signatures. Determinism — the ledger read used a non-existent ledger.list({ sessionId }); the real AuditableCallQuery read is async positional await ledger.getSession(sessionId) (ProviderDecisionLedger from @pleach/core/audit), and the "distinguishes three operating contracts" line corrected to five (the RuntimeMode union — and the page's own table — lists five). OTel observability — executeMessage is positional executeMessage(sessionId, "hello"), not the object form executeMessage({ sessionId, content }) (SessionRuntime). Stream events — the LangGraph "values" mapping used runtime.sessions.get(), which RuntimeSessionsFacet does not expose; corrected to runtime.sessions.resume(sessionId).

Added

  • /docs/gate-failures — what a failed check looks like. A new Reference page maps each failure to its meaning and the fix.

  • AuditRecordVersion corrected 14 → 18 on CI enforcement to match the source (export type AuditRecordVersion = 18;) and the AuditableCall row.

  • Extending Pleach — the gate-paired authoring map. Pairs each extension point with the interface, the registration call, and the audit gate that fails if the addition is wrong — nodes (the lattice check), event types via contributeEventTypes (the event-producer check

    • the scrubber-coverage check), scrubbers, plugin hooks (the plugin-contract check), prompt blocks, and a custom audit field via pluginPayloads (the audit-row shape check — the structural column set is locked). Draws the host-extension vs upstream-contribution line, and adds an "Agent-driven self-extension" section: the gates as an autonomous write → audit:* → read-failure → fix loop, plus injecting the extension contract into the operating agent's prompt via contributeRuntimeAwarePrompts. Nodes, channels, and scrubbers gained a "What CI checks when you add one" footer linking into it.
  • createPleachRoute({ demo }) keyless first-run + demo-first pleach init scaffold documented. Superseded: the demo option, the demo stream and the x-pleach-mode header are no longer published, and a no-key turn returns a typed HTTP 503 (no_provider_key). See the Unreleased "Changed" entry at the top of this page. The entry below is kept as it was written. Getting started, Quickstart, and Install now lead the wizard path with a keyless demo: with no provider key, createPleachRoute({ demo: process.env.NODE_ENV !== "production" }) drives a real graph turn over canned model text and writes real AuditableCall rows, flagged x-pleach-mode: demo. A resolved <PROVIDER>_API_KEY always wins; demo never engages in a production build. The Next.js App Router scaffold adds an /audit view (app/audit/page.tsx + app/api/audit/route.ts) rendering the per-model-family rollup (family · rows · tokens · est. cost). The bare createPleachRoute() no-key contract is unchanged (HTTP 503).

  • engine/ superstep scheduler named as an architecture piece + facets.mdx synced to the shipped facet inventory (pkgclean 06 D7/D9). Architecture and Concept clusters now name the engine/ scheduler (SuperstepRunner + its primitives) as the deterministic superstep executor that runs the compiled graph. Facets gained the two shipped SessionRuntime accessors it omitted — runtime.observe and runtime.probes — plus the four per-stage graph introspection facets graph.anchor / graph.toolLoop / graph.synthesize / graph.postTurn.

  • @pleach/core/skills + @pleach/core/agents/types are real emitted subpaths. Skills updated to import SkillLoader, parseSkillFrontmatter, Skill, and SkillFrontmatter from the @pleach/core/skills barrel (the /loader, /parser, /types sub-subpaths do not exist); Agents prose corrected from "wildcard path" to a real emitted @pleach/core/agents/types subpath.

Changed

  • @pleach/core/internal/… subpaths retired from the public docs surface (pkgclean 06 D8). streamSingleTurn and Subpath exports no longer document @pleach/core/internal/strategies/streamSingleTurn/helpers (+ its four direct helper entries) or @pleach/core/internal/tools/execution/registryResolvedTools as stable public imports. The internal/ segment marks implementation details, not a supported API; the copy-paste helper-barrel import is removed and both paths moved to a "Not a public import surface" section with their public alternatives — ToolDefinition from @pleach/core/types/generic, and @pleach/core/tools/execution (which re-exports the resolved-tools registry functions). No package.json:exports change.

  • core.mdx stale numbers corrected. auditRecordVersion updated 13 → 18 (the real auditRecordVersion), and the HarnessPlugin plugin-hook count updated ~41 → 67 contributeX hooks (counted from the HarnessPlugin type).

Fixed

  • More SKU doc-page snippets reconciled with the shipped signatures. Fabrication detection — the custom-detector example used a non-existent ctx.toolArgs and returned {suspect, tier}; corrected to the real FabricationDetectorContext fields + the FabricationFinding shape ({detectorId, severity, reason, evidence?}), and the tier-routing bullet corrected (routing keys on the tool's safetyTier, not a finding's severity). Multi-tenant — getAggregateUsage is 3-positional ((client, store, filters)), has no groupBy: "tenantId" value (session/agent/model/tool/day/week), nests dates under dateRange, and requires userId (it's single-user scoped; tenant rollups use the raw SQL). Determinism — the fingerprint round-trip read a non-existent .fingerprint audit field (real: fingerprintComposite, a string) and compared a string to a Fingerprint object; corrected to a like-for-like comparison over a real FingerprintInput. These are the ctor-shape / call-arity / field-name classes the new doc-import check doesn't cover (import-resolution only).

  • Event-log read side documented as store-agnostic — eventReader / HarnessEventReader. Event-log projections said runtime.events.iterate / .fold read event-log rows ordered by (chat_id, sequence number) and became live "on the Supabase backend in the first release" — store-specific claims that no longer match the shipped surface. Corrected: both accessors delegate to a HarnessEventReader injected as the runtime's eventReader (the read-side counterpart to eventLogWriter), so the host casts its own store into the reader at construction and @pleach/core itself stays free of backing-store knowledge — Postgres, Supabase, SQLite/pglite, or an HTTP API back the same surface. iterate's options gain tenantId; the reader is required to read the durable log (no built-in reader, no implicit store fallback — a bare runtime yields nothing, matching the MemoryAdapter path) and throws a typed error at the call site when absent. New Backing the reader section shows the one-method contract yielding EventLogRow (the shape reconstructSessionState and the shipped projections fold). Session runtime config table gains eventLogWriter + eventReader rows; Storage grows the SQL test value-prop battery from four durable properties to nine — adding the @pleach/observe postgres() destination, time-travel fork, SQL-queryable audit ledger (the call ledger), tamper-evident hash chain, and @pleach/replay deterministic replay over the injected reader.

  • SKU doc pages reconciled with the shipped import/construction surface. Four doc-site pages drifted from the (correct) package READMEs: Building a chat UI advertised a fabricated @pleach/react chat-hook API (useChat/HarnessProvider from the root, useInterruptDecision, useChatVercelCompat, sendMessage) — corrected to the real surface (useSessionRuntime/useSessionMessageStream/useInterruptUI from @pleach/react; useChat→submit from @pleach/core/quickstart; HarnessProvider from @pleach/react/legacy/@pleach/core/react; useVercelAISDKCompat from @pleach/react/adapters/vercel-ai-sdk). LangChain — LangChainProvider takes a POSITIONAL model arg and wires via the top-level provider: slot (not { model } / host.strategies.provider). Base tools — the scratchpad is per-SESSION (chatId-scoped, not per-turn), its param is operation (not op), and its value is a string. Coding agent — the four sandbox tools register via a contributeTools HarnessPlugin in plugins: (SessionRuntimeConfig has no tools/context field). A new import-surface smoke test in @pleach/core regression-locks the import-path half.

  • Observability + gateway-cost docs corrected to the shipped exporter/cost surface. @pleach/core ships no @opentelemetry/* dependency and never reads the global tracer provider — the documented NodeSDK + OTLP recipe captured zero pleach spans. OTel observability and Observability now show the real path: a host-supplied OtelExporter bridge injected via new SessionRuntime({ otelExporter }) (default is NoopOtelExporter, which drops spans). runtime.spans.snapshot() returns { inFlightCount, isShutdown } (exporter state) — to inspect emitted spans you wire a CapturingOtelExporter and read .captured (real fields startTimeNs/endTimeNs/ parentId). And Gateway cost events + the gateway OTel wiring: computeCost was reading tenantId/family/callClass/byokActive/ routingDecision off RouteChatCompletionOutput, which carries none of them (asTenantId(undefined) threw → zero CostEvents) — the example now reads only real output fields + host-supplied observation context, and flags that routeChatCompletion is currently a slice-2 stub (costUsd: 0).

  • Subagents + async-tasks docs reconciled with the host-completion-required reality. Bare @pleach/core's subagent surface is host-completion-required (the host supplies subagentExecutor / drives SubagentManager); the docs presented it as substrate-delivered. Corrected in Subagents: removed the fabricated spawnsSubagent: true auto-escalation flag; LightweightRuntime → the real LightweightSessionRuntime imported from @pleach/core/subagents (not root) with its real constructor; fetchWorkspaceContext/formatWorkspaceContextPrompt moved to the @pleach/core/subagents subpath; the concurrency model corrected (the runtime spawn path caps on the hard SUBAGENT_LIMITS constant and FAILS over-cap rather than queueing — the SubagentManager queue/DAG is host-driven); context.variables noted as currently inert; plus a host-completion caveat. And Async tasks: the async-task tool-loop bridge is not wired in bare core (ASYNC_TASK_BRIDGE_NOT_WIRED), and the "subagent"/"sandbox_exec" task executors are host/plugin-supplied (the in-tree SubagentTaskExecutor is server-only), not "in-tree defaults".

  • Abort + resume docs synced to the shipped runtime behavior. Aborting an in-flight turn now records outcome.status: "user-aborted" (not "aborted" / not lumped into provider-error) at BOTH the tool-loop decision call and the synthesis terminal, so cost rollups + compliance separate caller cancellation from provider failure — corrected across session lifecycle, SessionRuntime, turn lifecycle, and API routes. And resuming a session now describes the real three-layer rebuild: storage row → version-guarded checkpoint overlay (the crash-recovery path) → server-only event-log hydration of the ephemeral card-lifecycle state (interrupts/subagents/exports/user cards) onto a transient Session.hydratedHarnessState field — correcting the prior claim that hydrateFromEvents rebuilt messages/channel state.

  • Model-resolution-matrix path corrected — it is host-supplied, not a @pleach/core dir (pkgclean 06 D7). The docs cited the family-lock matrix at the fictional modelfamily directory (family-lock) and @pleach/core/ai/modelFamily/matrix.ts (quickstart, provider detection) — neither path exists in the package. The (family × callClass) matrix table is host-supplied and reached through the AgentAdapter.resolveModel<C>() seam; the ProviderFamily set is now pointed at the real @pleach/core/modelfamily export. The routing-decision seam's host-internal path was removed from routing decisions.

  • Docs reconciled with the shipped @pleach/core runtime (value-prop-vs-impl audit). Corrected doc claims that diverged from the implementation:

    • Time travel — fork sets parent_id: source.id (not null).
    • Checkpointing — checkpoints write at message/event boundaries (discriminated by CheckpointMetadata.source), not stamped with a per-stage stageId; SupabaseSaver durability is "replicated"; rollback writes source: "manual" + writes: ["rollback"]; the fork snippet takes a string newSessionId.
    • Session lifecycle — the checkpoint snapshot is authoritative on the live restore path; the event-log canonical reader is a flag-gated shadow today.
    • Sync — interactive conflict resolution (runtime.resolveConflict, the sync.conflict event, the 3xxx code range) is enterprise-tier/planned; open-core uses SyncCoordinator last-writer-wins-on-push with a free-text lastError.
    • Query — dropped the non-existent queryAuditableCalls; corrected getChatUsage / lookupModelCost / getSessionReview / getInterruptChain signatures + return shapes to the real @pleach/core/query surface.
    • Memory — the production extraction path is the graph node (createMemoryExtractionNode), not the memoryExtractionHook → queue pipeline; LearnedFact.source is a provenance string (+createdAt/lastConfirmedAt) on extractor facts, with the object form documented alongside.
    • Lineage — opt-in via config.lineageTracker; the runtime records the session node + a branched_from fork edge, the other relations are host-recorded; completeSession is host-called.

Added

  • Opt-in tool-event preview enrichment for the manifest projection. New runtimeQuirks.enrichToolEventPreviewsForReplay flag (default OFF) lets the host write compact args_preview (tool.started) + output_preview (tool.completed) onto tool events; chatManifestProjection folds them into richer manifest params/output, closing the projection's intentional lossiness vs. the live provider. The previews are scrub-allowlisted (the redaction chain processes them). OFF by default preserves the arguments_hash-only privacy posture. This makes the projection canonical-capable; the projection-canonical flip itself stays gated. See Replay.
  • TimeTravel surfaces the chat manifest (StateSnapshot.manifest). getState / getStateHistory / fork / bulkUpdate now carry the chat-manifest ledger AS-OF a checkpoint, for inspection (it does not feed the next generation — that runs through rollbackToCheckpoint / resumeSession into the live provider). The snapshot rides the checkpoint metadata (round-tripped via SupabaseSaver.metadata_extra; Memory/IndexedDB ride free), mirroring the pendingTasks pattern. See Time travel.
  • ProviderFamilyExhaustedError promoted to the top-level @pleach/core surface. The provider-family cascade terminal (raised when every in-family rung is exhausted) + its isProviderFamilyExhaustedError guard are now public on @pleach/core — previously reachable only via the deep @pleach/core/graph/seams/providerExhaustion path. Catch + narrow it from the top-level import.
  • @pleach/core/cache — content-hash deriver. deriveContentHashKey, canonicalizeKeyInput, and ContentHashKeyInput now have their canonical home in @pleach/core/cache (relocated from @pleach/replay/cache, which re-exports them for back-compat). The move lets @pleach/core derive + stamp a cacheKey into tool.completed / turn.completed events without the forbidden core → replay import. See Subpath exports.
  • @pleach/core/manifest — reload-durability + the manifest as a projection. The chat-manifest ledger (the [Session Manifest] prompt block) now survives a process reload: SessionRuntime.saveSession stamps the live snapshot into the persisted session state and resumeSession rehydrates it (complementing the existing checkpoint rollback restore). New chatManifestProjection / foldChatManifest fold the manifest deterministically from the event log (tool.* / job.* / model.upgraded), replayable via runtime.events.fold and the @pleach/replay stepper — intentionally lossy vs. the live provider (the log carries hashes/sizes, not full params/output), measured by a flag-gated [UXParity:manifest-projection-divergence] shadow probe. See Subpath exports.
  • tool.completed / turn.completed — optional cacheKey payload slot. Lets a deterministic replay consult the provider cache on the row (consumed by @pleach/replay's ReplayHandle). Host- / createCacheMiddleware-populated; core does not derive it (the core → replay boundary forbids importing deriveContentHashKey). See Replay.

Added

  • CI enforcement of the audit contract — new Reference page indexing the audit-gate catalog by the auditability and replayability clause each gate enforces. Covers the @pleach/core event-log gates (the audit-row shape check, the audit-row soak, the manifest-hash check, the three config-manifest checks, the scrubber-coverage check, the hash-chain check) and the CI jobs that carry them (graphnoderef, local-clone, per-SKU consumer-rehearsal). Cross-linked from Audit gates.
  • Contribution namespaces — new page documenting the nine namespaces every HarnessPlugin contribution hook resolves to (prompts, stream, safety, audit, intent, tools, middleware, policy, lifecycle) — the canonical, CI-checked contract layout, with representative hooks per namespace and the rolling-out typed namespaced authoring form. Plugin contract gains a cross-link; Authoring a HarnessPlugin reframes its informal 12-bucket grouping as the scan view of these nine canonical namespaces.
  • Config manifest — new page documenting the content-addressable substrate snapshot the runtime writes to the config manifest table: one row per distinct plugin/prompt/node/channel/filter set, keyed by a SHA-256 Merkle roll-up (pleach.manifest.v1 prefix, 0x1F separator, mirroring the hash chain's pleach.c9.v1 canonicalization). Per-surface child hashes, the nullable config-manifest hash foreign reference on the event log, reference-counted retention (default forever), full-snapshot storage, and the canonical replay/audit query shapes. Marked in-flight — table and event-log column land as additive schema files during rollout.
  • What Pleach writes to your database — new page mapping every @pleach/core table written to a buyer's database, what's default versus opt-in, and the destination-is-yours posture (no phone-home).
  • Config-manifest hash cross-references added to Event log (stamping section + EventLogRow field) and Schema (rolling-out config-manifest table section).
  • OrchestratorClient — new top-level page documenting the per-turn handle the runtime threads through the stream body. Lifted from app-side into the substrate; canonical import path is @pleach/core/runtime/orchestratorClient. Covers the six user-facing facets (config, history, context, tools, model, prompts) and the _internal.graph snapshot consumer code must not touch.
  • streamSingleTurn — new top-level page documenting the canonical per-turn body. Lifted into @pleach/core/strategies/streamSingleTurn/ with a stable helpers barrel re-exporting TurnAccumulator, ToolDefinition, OrchestratorMessage, and ProviderFallbackConfig.
  • Subpath exports — adds two rows to the Runtime + composition table: @pleach/core/runtime/orchestratorClient and @pleach/core/strategies/streamSingleTurn. Both are now named subpath exports rather than wildcard-only reachable.
  • Subpath exports → @pleach/core/quickstart — added under the Wire + tooling cluster. Lists the five LANDED deliverables — createPleachRoute (fetch-handler factory), useChat (Pleach-native React hook), <ChatBox /> (unstyled, accessible), defaultPlugin (empty baseline), providerDetection helpers + constants — plus the benchmark-adjacent createBenchmarkPlugin.
  • Attestation — new top-level page on the Ed25519-signed envelope substrate that sits on top of the hash chain. Documents the @pleach/core/attestation subpath (signer, verifier, key-store interface), the two stub production adapters (AWS KMS, Vault Transit), and the file-backed attestation/testing adapter.
  • Architecture § Boundary rules — adds a sixth row to the gate table: the domain-string check forbids domain-specific literals across the @pleach/core source in five pattern families. Pairs with the existing harness-boundary lint row, which forbids domain imports — the new gate covers domain strings.
  • Core "What you get" — new bullet "Composes under an existing Enterprise contract" after the AuditableCall ledger bullet.

Changed

  • Family-lock page documents the host-internal planner carve-out. family-lock.mdx gains a "Host-internal planner calls" section. The lock governs seam calls — synthesize / converse / reasoning / utility on the provider seam — but a host's anchor-plan planner cold-start can run on a pinned host-configured model that never consults the (family x callClass) matrix, so it sits outside the lock by construction, not as a leak. The row is identifiable by stage: "anchor-plan", callClass: "utility", payload.kind: "planGeneration" and carries no fallbackStep / family-exhausted / providerCascade. Guidance: alert on any other non-locked-family row; allow this planner row.
  • The tool-loop decision call is utility-class on its own seam, not the synthesize seam (singleton-per-call-class). Five pages carried the prior claim that the synthesizer node and the tool-loop llmDecision node share one ProviderSeam<"synthesize"> identity. The tool-loop continuation decision — "call another tool or finish?" — now runs on a dedicated utility seam, so the synthesize cap is structural: the synthesizer (and the recovery path) are the only consumers of the synthesize seam, and the decision node can't reach the TurnSynthesizeCounter. Corrected in Seams (the singleton section + the LangGraph callout's ProviderSeam<"utility"> type), Graph, Graph node catalog (the llmDecision row's acceptsSeam converse→utility, the Stage 2 intro, and the singleton-invariant wire-check), Call classes (the utility row + section now name the tool-loop decision as the canonical utility call), and Multi-synthesize. A reader on the old "shared seam" model would have mis-predicted which node bumps the synthesize counter.
  • Graph lattice docs synced to the current @pleach/core topology across eight pages. The NODE_STAGE_MAP registry is 43 names, not 48. ALLOWED_EDGE_PATTERNS carries nine rows and FORBIDDEN_EDGE_PATTERNS seven, not eight/eight — the tool-loop → post-turn recovery-dispatch edge moved from the forbidden table into the allowed table. Recovery shaping is no longer four synthesize-stage graph nodes (recovery, refusalHint, retryNarration, garbleRecovery) plus a recoveryDispatchPredicate derivation node and a shouldContinueWithGarbleRoute wrapper; it is four post-turn stream filters (refusalHintFilter 100, retryNarrationFilter 200, garbleRecoveryFilter 300, standardRecoveryFilter 400) dispatched via StreamObserverRegistry and locked by the recovery-dispatch check. synthesize is now a true singleton — only synthesizer. Touched Graph, Node catalog, Edge catalog, Nodes, Architecture, Ownership boundaries, Plugin contract, and Audit gates. Node catalog also gains a "How the substrate source is organized" section documenting how the graph source is laid out (one file per node, per-stage registrars, the lattice topology layer, concern-split seams, predicates and strategies), with upstream-contributor steps for adding a node.
  • Config manifest foreign key corrected in Config manifest. The event-log config-manifest hash reference is a real foreign key with ON DELETE SET NULL and a load-bearing DEFERRABLE INITIALLY DEFERRED clause, not gate-only as the page previously claimed. Added the reference_count column to the table DDL and cited the manifest foreign-key check and the manifest-integrity checks.
  • Schema description for @pleach/core amended to name the language-agnostic contract. The description field in the site's Organization + SoftwareApplication JSON-LD graph (inlined in <head> on every page) previously described @pleach/core only in TypeScript terms, contradicting both the marketing surface and the editorial position at /ai.txt. The description now names the wire shapes — HTTP+SSE, StreamEvent, AuditableCall, Checkpoint, version vector — as language-agnostic and clarifies that the npm package is the TypeScript reference distribution. programmingLanguage: ["TypeScript"] stays accurate — the npm package IS TypeScript; the language-agnosticism belongs to the contract, not the publishable artifact. See Language-agnostic contract for the full wire-shape inventory.
  • Cross-docs status-flip pass — rolling correction across ~55 docs pages tracking the alpha-ship of @pleach/compliance, @pleach/gateway, and @pleach/replay. Touched pages include Audit ledger, Event log, Subpath exports, Seams, Prompts, Prompt builder, and Session runtime.

Fixed

  • Family-lock lifetime claim corrected — the page stated "switching family means a new session." The runtime ships a sanctioned in-session re-lock path (sessions.updateProviderModel, emitting a session-lock-resynced event), so switching family is an explicit operation, not a new-session requirement. The lock's real invariant is no silent mid-turn widen, not lifetime immutability.
  • AuditableCall row AuditRecordVersion corrected 13 → 14 — both the literal description and the version-log range (v8 through v14) now match the upstream AUDIT_RECORD_VERSION_HISTORY, whose latest entry is to: 14 (Cluster C: additive rewriteStatus? + tokenCost.callClass).

2026-06-08 — chat-pipeline lift into @pleach/core

Foundational lift bringing OrchestratorClient and streamSingleTurn into the substrate. See the Unreleased section above for the Added/Changed entries. The Pre-Merge Gate the domain-string check landed alongside.

2026-06-08

Added

  • New page Runtime inspector documenting inspectRuntime() from @pleach/core/inspector — the typed read-only introspection surface, the InspectionReport / CapabilityReport / PluginReport / CapabilityDescriptor shapes, and the 38 known capabilities (29 modern + 9 deprecated).
  • definePleachPlugin() factory section in Plugin contract covering the 8-key PluginCapabilities cluster and the _raw escape hatch.
  • contributeFabricationGuard section documenting the typed FabricationGuardImpl hook (7 methods) that retires the orchestratorHotpath.fabricationGuard untyped-bag entry.
  • CreatePleachRuntimeConfig.host.{strategies, modules, raw} section in Host adapter with the 15-key HostExtensionBundle list and the host.modules list (eventLogWriter, store, interrupt).
  • Hash-chain probe section in Tamper-evident hash chain documenting [UXParity:c9-hash-chain-row-stamp] and [UXParity:c9-hash-chain-verify].
  • @pleach/core/inspector row in Subpath exports.

Changed

  • Packages table corrected to real published version — @pleach/core 1.1.0 (was largely stale "Reserved · placeholder" framing).

Fixed

  • Runtime inspector — replaced fictional RuntimeInspection / CapabilityState types with the real InspectionReport / CapabilityReport / PluginReport / CapabilityDescriptor. Corrected the status discriminator to "wired" | "deprecated-wired" | "unwired".
  • Plugin contract — definePleachPlugin capability fields take values, not thunks. Corrected to the real 8 capability keys (prompts, runtimeAwarePrompts, safetyPolicies, fabricationDetectors, tools, streamObservers, intentToolMap, toolCouplingHints).
  • Host adapter — host.modules corrected to { eventLogWriter, store, interrupt }. host.strategies populated with the real 15-key HostExtensionBundle list.
  • Tamper-evident hash chain — subpath corrected from @pleach/core/event-log to @pleach/core/eventLog (camelCase is the real export).
  • Event-log projections — subpath corrected from @pleach/core/event-log/projections to @pleach/core/eventLog (projections export from the ./eventLog barrel; there is no /projections subpath).