Release v4.2.0: Canonical governance loop, expanded HealingIntent, DPT thresholds, and backward‑compatible event model#15
Open
petter2025us wants to merge 39 commits intomainfrom
Open
Release v4.2.0: Canonical governance loop, expanded HealingIntent, DPT thresholds, and backward‑compatible event model#15petter2025us wants to merge 39 commits intomainfrom
petter2025us wants to merge 39 commits intomainfrom
Conversation
Replace event.py with canonical ReliabilityEvent (dataclass version) This establishes the single source of truth for reliability events. The previous model's additional classes (HealingAction, ForecastResult) will be moved to separate files in a follow‑up commit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This release introduces a mathematically rigorous governance loop, significantly expands the
HealingIntentmodel, adds Deterministic Probability Thresholds (DPT), and makes the event model fully backward‑compatible.🔍 What’s new
governance_loop.py) – a single entry point that orchestrates policy evaluation, cost estimation, reliability signals, and Bayesian risk scoring into a comprehensiveHealingIntent.HealingIntent(v2.1.0) – adds 30+ optional fields for:posterior_mean,credible_interval,epistemic_uncertainty)evidence_lift,contradiction_score,evidence_sources)ambiguity_score,operator_attention_required,explanation_depth)feedback_expected,replay_key,experiment_tags)DPT_LOW = 0.2andDPT_HIGH = 0.8for transparent approve/deny/escalate decisions.ReliabilityEventnow accepts legacy fields (component,latency_p99,error_rate, etc.) and maps them into the canonicalmetricsdictionary. Existing code that readsevent.latency_p99continues to work via property aliases.resolve_metric(event, name)safely retrieves numeric values even when the attribute is a property, eliminating type errors in comparisons and formatting.requirements.txt– lists all core dependencies for easy installation.CITATION.cff) added for academic use.🧪 Testing
All 71 tests pass (including previously failing ones). The CI pipeline is green.
📦 Version
Bump to
4.2.0.📝 Documentation
Updated
README.mdwith a “What’s New” section and addedCHANGELOG.md.🔗 Related