Skip to content

v2.0.0 — Deep Hardening Sprint

Choose a tag to compare

@anulum anulum released this 02 Mar 12:42
· 3001 commits to main since this release

What's New

Director-AI v2.0.0 is a hardening release focused on correctness, test reliability, and repo hygiene.

Fixed

  • Case-sensitivity bug in GroundTruthStore.retrieve_context() — mixed-case keys now match lowercase queries
  • LLM judge error handling: bare except (ImportError, Exception) replaced with structured try/except
  • SafetyKernel validates hard_limit in [0, 1] on construction
  • setup_otel() thread-safe via threading.Lock
  • case-studies.md — all 5 phantom symbols fixed (wrong constructors, nonexistent methods)
  • docs-site/changelog.md synced (was frozen at v1.2.0, missing 17 releases)

Added

  • Named constants for LLM judge blending formula (LLM_JUDGE_*)
  • .editorconfig, .pre-commit-config.yaml, py.typed PEP 561 marker
  • Non-root appuser in Dockerfiles
  • New tests: test_kernel_validation.py, test_ingest.py, expanded test_knowledge.py and test_cache.py
  • Histogram bucket_counts() optimized O(n·b) → O(n log n) via bisect

Changed

  • 12 fragile inspect.getsource tests replaced with behavioral equivalents
  • Version bump: 1.9.0 → 2.0.0

Install

pip install director-ai==2.0.0

Full Changelog: v1.9.0...v2.0.0