Skip to content

v3.0.0

Choose a tag to compare

@anulum anulum released this 06 Mar 23:42
· 2927 commits to main since this release

Breaking Changes

  • Minimum Python 3.11: dropped Python 3.10 support. Requires 3.11+ for ExceptionGroup and TaskGroup.
  • Enterprise classes moved: TenantRouter, Policy, Violation, AuditLogger, AuditEntry moved from director_ai / director_ai.core to director_ai.enterprise. Importing from the old location raises ImportError with migration hint.
  • Removed deprecated 1.x aliases: calculate_factual_entropy, calculate_logical_entropy, simulate_future_state, review_action (on CoherenceScorer), process_query (on CoherenceAgent), process_batch_async (on BatchProcessor). Use current names: calculate_factual_divergence, calculate_logical_divergence, compute_divergence, review, process, process_batch.
  • Slimmed root __all__: internal classes (ScoreCache, ScorerBackend, ShardedNLIScorer, etc.) removed from __all__ — still importable, no longer in public API surface.

Added

  • director_ai.enterprise package re-exporting all 5 enterprise classes.
  • director-ai tune adaptive threshold calibration (implemented in v2.8.0, now documented as stable).
  • Python 3.13 in CI matrix.

Migration

# Enterprise imports (before → after):
from director_ai.enterprise import TenantRouter  # was: from director_ai import TenantRouter

# Deprecated methods (use current names):
scorer.calculate_factual_divergence(...)  # was: calculate_factual_entropy
scorer.calculate_logical_divergence(...)  # was: calculate_logical_entropy
scorer.compute_divergence(...)            # was: simulate_future_state
scorer.review(...)                        # was: review_action
agent.process(...)                        # was: process_query
proc.process_batch(...)                   # was: process_batch_async

Full changelog: https://github.com/anulum/director-ai/blob/main/CHANGELOG.md