Skip to content

v0.16.0

Latest

Choose a tag to compare

@dgenio dgenio released this 23 Jun 06:48
· 10 commits to main since this release
d7627ba

contextweaver 0.16.0 — consolidation, primitives, and DX hardening.

Highlight: Memory Consolidation Engine

Distill episodic memory into durable facts with contextweaver.context.consolidate(...). Deterministic clustering, provenance tracking, max-sensitivity inheritance, and an optional LLM-assisted canonicalizer — all pure stdlib, zero new dependency. Includes contextweaver consolidate CLI and �valuate_consolidation offline quality harness.

Gateway: Resources & Prompts

PrimitiveGatewayRuntime extends bounded-choice routing and context-firewall treatment from tools to MCP resources and prompts. Unified cross-primitive identity via
outing.primitive_id, four gateway meta-tools, and complete upstream adapters.

Developer Experience

  • HTTP sidecar — language-agnostic POST /v1/route and /v1/compact over stdlib HTTP, no new dependency
  • contextweaver verify — fast, deterministic smoke test for library-first adoption
  • Stable error codes — every ContextWeaverError carries a machine-readable code + hint`n- Deprecation machinery@deprecated decorator, registry, and upgrade guide
  • Persistent routing cache — RoutingIndexCache + CachedRetriever for warm-start routing

Action Required

Three pre-1.0 APIs now emit DeprecationWarning (behavior unchanged; removal in 1.0):

  • RouteResult.debug_trace → use .trace`n- RouteTrace.to_legacy_dicts() → use structured fields
  • Router(scorer=...) → use
    etriever= or scorer_backend=`n
    See CHANGELOG.md for the full list.