feat(schema): migration v18 — canonical 21d returns + log-alpha on score_performance#254
Merged
Merged
Conversation
…ore_performance Adds price_21d/return_21d/spy_21d_return/beat_spy_21d/eval_date_21d + log_alpha_21d (canonical 21d log-domain market-relative alpha) to score_performance. Mirrors the producer-side columns written by alpha-engine-data signal_returns._backfill_score_returns. Bumps SCHEMA_VERSION 17 → 18. Powers the judge outcome-IC validation (ROADMAP L480 re-scope). Pairs with alpha-engine-data feat/score-perf-21d-canonical-alpha-260529. archive/test_archive.py green; fresh-DB apply + idempotent re-apply verified. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prereq (2 of 2) for the judge outcome-IC validation (2026-05-29 L480 re-scope, config #372). Canonical schema migration mirroring the producer-side columns written by alpha-engine-data
feat/score-perf-21d-canonical-alpha-260529.Change
Migration v18 adds to
score_performance:price_21d,return_21d,spy_21d_return,beat_spy_21d,eval_date_21dlog_alpha_21d— canonical 21d log-domain market-relative alphaBumps
SCHEMA_VERSION17 → 18. Pure-additive; existing rows get NULL (treated as "outcome not yet realized" by consumers).Verified
archivetests green (30 passed)ensure_schemaapplies through v18 with all 6 columns presentPairs with
alpha-engine-data PR (producer-side backfill). Both needed; either order is safe (additive + duplicate-column-tolerant).
🤖 Generated with Claude Code