Skip to content

[codex] Sync TQQQ risk diagnostics#157

Merged
Pigbibi merged 1 commit into
mainfrom
codex/tqqq-risk-sync
Jun 12, 2026
Merged

[codex] Sync TQQQ risk diagnostics#157
Pigbibi merged 1 commit into
mainfrom
codex/tqqq-risk-sync

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Sync TQQQ risk-control diagnostics across snapshot, mapper, and notification paths.
  • Preserve 5-day annualized volatility deleveraging, macro-risk, crisis-defense, and market-regime audit fields.
  • Align dependency pins for QuantPlatformKit / UsEquityStrategies where applicable.

Validation

  • Targeted py_compile checks passed for modified Python files.
  • Targeted signal snapshot tests passed for all four platform repos.
  • Targeted mapper tests passed where dependencies were available; LongBridge mapper field pass-through was verified with a lightweight strategy_registry stub because local pandas is not installed.
  • git diff --check passed for all four repos.
  • Cross-platform critical field audit passed.

@Pigbibi Pigbibi merged commit de94a49 into main Jun 12, 2026
1 check passed
@Pigbibi Pigbibi deleted the codex/tqqq-risk-sync branch June 12, 2026 04:58

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 309f0b2cb6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

timing_lines = _build_timing_audit_lines(metadata, translator=translator)
snapshot_line = _format_signal_snapshot_line(metadata.get("signal_snapshot"), translator=translator)
audit_lines = [*timing_lines, *([snapshot_line] if snapshot_line else [])]
audit_lines = [*risk_control_lines, *timing_lines, *([snapshot_line] if snapshot_line else [])]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include risk diagnostics in compact notifications

When run_strategy_cycle publishes trade/no-op notifications, the user-facing Telegram copy comes from compact_text, whose dashboard_text is the separately computed application/rebalance_service._strategy_dashboard_text (application/rebalance_service.py lines 647 and 778/718), not this updated renderer helper; NotificationPublisher sends compact_text to Telegram. As a result, with dual_drive_volatility_delever_applied true, the new TQQQ risk line is present only in the detailed log dashboard and is omitted from the actual Telegram message, so the diagnostics this change is meant to surface still do not reach users in the main cycle path.

Useful? React with 👍 / 👎.

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