Skip to content

revert: remove Global ETF research contract - #305

Closed
Pigbibi wants to merge 1 commit into
mainfrom
codex/qsl-p3-global-etf-pr303-exact-revert-019fd89e
Closed

revert: remove Global ETF research contract#305
Pigbibi wants to merge 1 commit into
mainfrom
codex/qsl-p3-global-etf-pr303-exact-revert-019fd89e

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Verification

  • focused risk gate: 46 passed, 71 subtests passed
  • full suite: 932 passed, 1 skipped, 131 subtests passed
  • Ruff, compile, lock/dependency, package/import, scope2, secret, provider URL, and diff gates: passed
  • full resulting tree equals 4fee4d9
  • exact reverted blobs:
    • gate.py: d60c0ba17f6d20a0f2b90b1c4cd87bb07450cde6
    • test_risk_gate.py: de6cecf5c77d768a799054eeb3e5f08e9432ab92

No remediation is authorized on this revert PR. Any material exact-head blocker will close this PR unmerged and terminally park the Global ETF research contract.

…obal-etf-static1-qpk-019fd89e"

This reverts commit c96728d, reversing
changes made to 4fee4d9.

Co-Authored-By: Codex <noreply@openai.com>

@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: e9c0a95c8c

ℹ️ 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".

Comment on lines +395 to +399
exact_mandate_errors = _exact_tqqq_mandate_errors(
mandate_provenance,
effective_at=effective_at,
expires_at=expires_at,
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Reject the removed mandate instead of treating it as generic

When a caller continues submitting global_etf_rotation_etf_only_research_v1 provenance, this now passes the generic mandate checks rather than being revoked: an otherwise valid former Global ETF payload with risk_control_state=None receives APPROVE, retains its positions, and has no stop-loss or risk-control-state digest. Because _risk_control_fields also ignores every mandate except TQQQ, removing the dedicated validator silently bypasses the former position-count, aggregate loss-budget, stop-intent, drawdown, and breaker checks. Explicitly reject this retired mandate ID instead of allowing it to fall through as an arbitrary generic mandate.

Useful? React with 👍 / 👎.

@Pigbibi Pigbibi closed this Aug 8, 2026
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