Session routes now act only for the signed-in user
Session routes are now owner-scoped, which is breaking for some hosts, tool-call arguments stream, erasure respects legal holds, and audit docs were corrected.
Drafted by an AI agent from the package and docs commit history and reviewed by a maintainer before publishing. Each post names what it was drafted from.
No @pleach/* package is on npm yet. Each name holds a 0.0.1 placeholder until its first release, so the code here describes the source, not an install that works today. Package status
Session routes now act only for the signed-in user, tool-call arguments now stream, and the audit, CLI and schema docs were corrected against the shipped code. Hosts with a user resolver, client authors and anyone verifying audit chains or erasure should check these changes.
Core runtime (@pleach/core)
- Breaking: when a host supplies a user resolver, session routes act only for the signed-in user, so some hosts must migrate existing sessions (details).
- Tool policy can only narrow what a session may call, and sub-agents inherit it as a ceiling (details).
- Sub-agent spend now rolls up to the user turn at any depth (details).
Streaming (@pleach/core)
- Tool-call arguments now stream as they are assembled, so a client can show a call before it runs (details).
- The bundled chat clients now apply events through one exported reducer,
applyStreamEvent, which your own client can reuse (details).
Audit ledger
- Call rows can opt in to a hash chain that makes later edits detectable; see the limits on the page (details).
- A new WORM (write-once, read-many) storage tier refuses edits and deletes; see the limits on the page (details).
- Usage a provider never reported is now shown as unknown rather than zero (details).
Event log (@pleach/core)
- Recorded events carry no digest of prompt or answer text, and message rows record only a coarse size range (details).
Compliance (@pleach/compliance)
- Attestations can now be signed through external key stores in a standard signed envelope (details).
- Corrected: audit queries now grade results valid, incomplete or tampered, and an empty result is no longer called valid (details).
- Corrected: the inclusion-proof section now says what a passing check does and doesn't prove (details).
Data erasure (@pleach/compliance)
- Erasure refuses to destroy a subject's keys while a legal hold applies, and fails closed (details).
- The reference key provider,
createAesGcmKekProvider, refuses weak or malformed encryption keys (details). - Corrected: the erasure page now documents the shipped call and its signed receipt (details).
Command line
- Corrected: the CLI page now matches the shipped
pleachbinary, including the setup wizard and schema bundle options (details). - The local sidecar admits only the process that launched it, and a malformed tool allowlist offers no built-in tools (details).