Skip to content

fix: aggregate product caps and reject duplicate return dates - #598

Merged
Pigbibi merged 1 commit into
mainfrom
fix/portfolio-caps-daily-returns-20260910
Sep 9, 2026
Merged

fix: aggregate product caps and reject duplicate return dates#598
Pigbibi merged 1 commit into
mainfrom
fix/portfolio-caps-daily-returns-20260910

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Repeated same-symbol targets could bypass product caps because the generic evidence gate checked each row separately. Apply those caps to existing aggregated symbol weights while preserving decision identity, account limits, and TQQQ rules. Reject duplicate normalized daily-return dates before lifecycle metrics can count or compound them twice.

Validation:

  • Existing-source RED and focused regression: 159 passed, 406 subtests passed.
  • Full contributor check: 939 unittest tests, 1 skipped; Ruff and diff checks passed.
  • Actual temporary CSV → collector → monitor tests reject duplicate strategy/benchmark dates and save no snapshot.

This changes the shared library only. Consumer dependency adoption and historical-performance recalculation are not part of this PR; research assessments still grant no execution authority.

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit 7363011 into main Sep 9, 2026
1 check passed
@Pigbibi
Pigbibi deleted the fix/portfolio-caps-daily-returns-20260910 branch September 9, 2026 18:42
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