v2.0.0 — Deep Hardening Sprint
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 SafetyKernelvalidateshard_limitin [0, 1] on constructionsetup_otel()thread-safe viathreading.Lockcase-studies.md— all 5 phantom symbols fixed (wrong constructors, nonexistent methods)docs-site/changelog.mdsynced (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.typedPEP 561 marker- Non-root
appuserin Dockerfiles - New tests:
test_kernel_validation.py,test_ingest.py, expandedtest_knowledge.pyandtest_cache.py - Histogram
bucket_counts()optimized O(n·b) → O(n log n) viabisect
Changed
- 12 fragile
inspect.getsourcetests replaced with behavioral equivalents - Version bump: 1.9.0 → 2.0.0
Install
pip install director-ai==2.0.0Full Changelog: v1.9.0...v2.0.0