Skip to content

feat(risk): resolve production_drift_status from store for NEW_RISK - #590

Merged
Pigbibi merged 1 commit into
mainfrom
feat/store-drift-status-for-new-risk
Sep 7, 2026
Merged

feat(risk): resolve production_drift_status from store for NEW_RISK#590
Pigbibi merged 1 commit into
mainfrom
feat/store-drift-status-for-new-risk

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add production_drift_status_from_probe_summary and resolve_production_drift_status_from_store as Policy A bridge helpers for NEW_RISK gate injection.
  • Parked / unavailable / missing / probe errors omit status (fail-soft); never invent CRITICAL. Zero optimize / live grant.
  • Export from risk/__init__.py and document platform inject path in account_new_risk_gate.zh-CN.md.

Test plan

  • pytest tests/test_production_drift_new_risk.py — 9 passed
  • Confirm parked/unavailable summaries map to None
  • Confirm healthy/watch/review/critical inject as normalized status strings
  • Confirm empty profile/domain skips probe; probe exceptions return None

Made with Cursor

Policy A bridge: read-only PerformanceStore probe → status inject helper.
Parked/errors omit status (no invented CRITICAL). Zero optimize/live.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@Pigbibi
Pigbibi merged commit d51bb79 into main Sep 7, 2026
1 check passed
@Pigbibi
Pigbibi deleted the feat/store-drift-status-for-new-risk branch September 7, 2026 17:41
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