Skip to content

feat(risk): ban new risk on actionable production drift - #589

Merged
Pigbibi merged 1 commit into
mainfrom
feat/production-drift-bans-new-risk
Sep 7, 2026
Merged

feat(risk): ban new risk on actionable production drift#589
Pigbibi merged 1 commit into
mainfrom
feat/production-drift-bans-new-risk

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Wire injected production_drift_status (REVIEW/CRITICAL) into evaluate_new_risk_admission as NEW_RISK_PROHIBITED only (Policy A).
  • No optimize, live grant, breaker reset, or account enablement side effects.
  • Absent drift status is not invented; invalid status fails closed.

Test plan

  • PYTHONPATH=src python3 -m unittest tests.test_account_new_risk_gate -v
  • PYTHONPATH=src pytest tests/test_production_drift_new_risk.py
  • CI green
  • After merge: platform consumers inject production_drift_status + pin bump (separate PRs)

Made with Cursor

Wire injected production_drift_status REVIEW/CRITICAL into
evaluate_new_risk_admission as NEW_RISK_PROHIBITED only — no
optimize, live grant, or breaker reset (Policy A).

Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@Pigbibi
Pigbibi merged commit d5f3723 into main Sep 7, 2026
2 checks passed
@Pigbibi
Pigbibi deleted the feat/production-drift-bans-new-risk branch September 7, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant