← Back to Pull requests

feat(policy-engine)!: remove the deprecated Decision.applies_effects #4058

Open
unknown opened this pull request with 154 lines diff across 1 files
View on GitHub
unknown unknown commented on Sep 22, 2026 02:02 UTC
Author

Refs #4048, item (c).

Decision.applies_effects has been a deprecated alias of applies_transform since the AGT D1 effects removal, and it emitted a DeprecationWarning on every access. Any consumer suite run with -W error (common in CI) fails on the first code path that still touches it, including third-party code the host does not control; emitting once per process would not change that. The issue offered "drop it" or "warn once"; this PR drops it.

Removed the property and its deprecation test, reworded the two comments that referred to it, and recorded the removal in BREAKING_CHANGES.md (date TBD, as the other entries) and the changelog. applies_transform and permits remain the two questions it conflated. python -W error -c "import agent_control_specification" is clean; the full pytest sdk/python run is unchanged apart from the removed test.

This is a Python-only removal. The Node appliesEffects (JSDoc @deprecated) and .NET AppliesEffects ([Obsolete]) aliases are unchanged: neither warns at runtime, so neither can fail a host through code it does not control the way the Python DeprecationWarning does under -W error. Dropping them for cross-SDK parity is a separate maintainer call.

Diff: 154 lines (+115 / -39) across 1 files Reviewer: david-long1 Review duration: 88906m
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.40) × (1 − Review Confidence (0.41)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 154 lines diff across 1 files
0.40
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
40%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.302
Real PR Conversation Timeline
1 comments
"Review active on #4058"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 40.9% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 40.2% (MEDIUM) · Higher = larger blast radius
40.2%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 40.9% · Lower = rushed or shallow review
40.9%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 23.7% · Safe to merge
23.7%