Skip to content

feat(risk): AttentionLevel + fix drift Telegram dispatch - #610

Merged
Pigbibi merged 1 commit into
mainfrom
fix/qpk-attention-notify-20260918
Sep 17, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
fix/qpk-attention-notify-20260918

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add evaluate_attention / AttentionLevel (OK→HALT) with mandate-relative drawdown only; missing mandate_dd_budget omits the DD axis (no global 10% Telegram for SOXL/TQQQ).
  • Fix publish_drift_alerts: REVIEW/CRITICAL use real send_telegram_message; WATCH does not page; missing config → observable skipped (no silent pass / missing import).
  • Compact operator copy via operational i18n (zh-CNzh); doc docs/operational_attention_v1.zh-CN.md.

Test plan

  • uv run --with pytest python -m pytest tests/test_attention.py tests/test_drift_alerts.py -q (12 passed)
  • CI green

Out of scope

  • Platform cycle wiring / mandate budget tables
  • combined_scale live sizing, daily-loss fact producer, Kelly, raise RRL

Made with Cursor

Add mandate-relative AttentionLevel evaluation so leveraged-path drawdowns
do not page operators, and wire drift REVIEW/CRITICAL alerts to the real
Telegram sender with observable skip/fail instead of a missing import.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Pigbibi
Pigbibi merged commit 11a3886 into main Sep 17, 2026
1 check passed
@Pigbibi
Pigbibi deleted the fix/qpk-attention-notify-20260918 branch September 17, 2026 23:59
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