- All governance components (SafetyPipeline, PolicyEngine, Guardrails,
AccessControl, RateLimiter, OverrideHooks) now default to ADVISORY mode:
violations are logged as advisories but actions proceed. Enforcing mode
remains available for backward compatibility.
- GovernanceMode enum (ADVISORY/ENFORCING) added to schemas/audit.py with
runtime switching support on all components.
- AutoTrainer: removed artificial limits on training iterations and epochs.
Every self-improvement action is transparently logged to the audit trail.
- SelfCorrectionLoop: max_retries_per_task defaults to None (unlimited).
- AdaptiveEthics: new learned ethical framework that evolves through
experience. Records ethical experiences, updates lesson weights based
on outcomes, and provides consultative guidance (not enforcement).
- AuditLog: enhanced with actor-based indexing, advisory/self-improvement/
ethical-learning retrieval, and comprehensive type hints.
- New audit event types: ADVISORY, SELF_IMPROVEMENT, ETHICAL_LEARNING.
- 296 tests passing (20 new tests for adaptive ethics, governance modes,
and enhanced audit log). 0 ruff errors. 0 mypy errors.
Co-Authored-By: Nakamoto, S <defi@defi-oracle.io>