Skip to content

feat(schema): migration v18 — canonical 21d returns + log-alpha on score_performance#254

Merged
cipher813 merged 1 commit into
mainfrom
feat/score-perf-21d-schema-v18-260529
May 29, 2026
Merged

feat(schema): migration v18 — canonical 21d returns + log-alpha on score_performance#254
cipher813 merged 1 commit into
mainfrom
feat/score-perf-21d-schema-v18-260529

Conversation

@cipher813
Copy link
Copy Markdown
Owner

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_21d
  • log_alpha_21d — canonical 21d log-domain market-relative alpha

Bumps SCHEMA_VERSION 17 → 18. Pure-additive; existing rows get NULL (treated as "outcome not yet realized" by consumers).

Verified

  • archive tests green (30 passed)
  • Fresh-DB ensure_schema applies through v18 with all 6 columns present
  • Idempotent re-apply confirmed (duplicate-column caught, as for prior migrations)

Pairs with

alpha-engine-data PR (producer-side backfill). Both needed; either order is safe (additive + duplicate-column-tolerant).

🤖 Generated with Claude Code

…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>
@cipher813 cipher813 merged commit a0407b9 into main May 29, 2026
1 check passed
@cipher813 cipher813 deleted the feat/score-perf-21d-schema-v18-260529 branch May 29, 2026 19:01
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