Skip to content

0.11.0

Choose a tag to compare

@mathisarends mathisarends released this 02 Nov 11:26
10f526b

Harnessed 0.11.0 adds opt-in session persistence, atomic application-owned message projections, trace content filtering and explicit kit resolution.

Highlights

  • Configure Agent(store=...) and reopen conversations with agent.session(id=...). The bundled JsonSessionStore needs no extra; application repositories can implement SessionStore from harnessed.sessions.
  • Persist SessionCommit.checkpoint and project its ordered changes in the same revision-checked transaction. Background batching retains all new durable events until acknowledgement, including across compaction. Live token deltas remain transient.
  • Recover deliberately paused sessions across closure and process restarts. Reopening repairs interrupted work without automatically repeating external tool actions. Use restore_outputs before resuming pending structured work.
  • Mask registered literal secrets with ContentCapture.redacted(*secrets) and apply synchronous content_filter= transformations to captured OpenTelemetry content. Content capture and exception text remain opt-in.
  • Inspect or flatten reusable kits with Kit.resolve() and KitPromptPolicy.INCLUDE / OMIT, retaining composition provenance in ResolvedKit.

Compatibility and upgrade

Existing 0.10.0 ephemeral agents and explicit SessionState continuation need no API or storage migration. Conversation snapshots remain format 1 and standalone audit envelopes remain version 3. New execution checkpoints and JSON-store envelopes use format 2.

Applications testing unreleased persistence prototypes from main must replace string payloads or checkpoint-only saves with SessionCommit and load via StoredSession.checkpoint. Back up prototype data and start a format 2 store; format 1 execution checkpoints and former JSONL archives have no automatic migration. These prototypes were not part of 0.10.0.

Store revision checks prevent lost updates; applications still coordinate execution per conversation and own their stores and pools. Trace redaction masks registered literal values; application policies handle other sensitive content.

See the upgrade guide, sessions, tracing and full changelog.

Offline examples: examples.38_session_store, examples.39_typed_session_store and examples.40_atomic_session_store.

Harnessed remains alpha software. Python 3.12–3.14 are supported on Linux, Windows and macOS.