Skip to content

refactor(changelog-incident-mirror): smoke test migrates to alpha_engine_lib.alerts CLI#277

Merged
cipher813 merged 1 commit into
mainfrom
refactor/changelog-incident-mirror-lib-alerts
May 20, 2026
Merged

refactor(changelog-incident-mirror): smoke test migrates to alpha_engine_lib.alerts CLI#277
cipher813 merged 1 commit into
mainfrom
refactor/changelog-incident-mirror-lib-alerts

Conversation

@cipher813
Copy link
Copy Markdown
Owner

Summary

  • L146 (P2) — alpha-engine-data half of the inline-alerts → lib.alerts migration. Sibling PR: alpha-engine feat(daily_closes): skip_if_canonical optimization for windowed yfinance pass (PR 2/5) #200 (health_checker.sh).
  • infrastructure/lambdas/changelog-incident-mirror/deploy.sh smoke path: raw aws sns publishpython -m alpha_engine_lib.alerts publish --severity info --no-telegram --source alpha-engine-data/changelog-incident-mirror/deploy.sh. SNS target topic unchanged (default alpha-engine-alerts resolution); Lambda receives the message; smoke test still validates end-to-end.
  • --no-telegram + severity=info keep the per-deploy smoke off the operator channel (this is a deliberate test injection, not a failure event).
  • Lib pin v0.20.0 → v0.21.0 in BOTH requirements.txt AND Dockerfile (lockstep — the test_lib_pin_lockstep regression test enforces this). v0.21.0 is the alerts-module floor.

Why

ROADMAP L146 / SOTA sub-sub-rule (lift-to-lib for ≥2 consumers). First consumer was alpha-engine-backtester #231; this and PR #200 complete the two-site pass.

Test plan

  • Suite: 1401 passed (vs 1400 baseline; test_lib_pin_lockstep validates Dockerfile/requirements.txt agree).
  • Lib v0.21.0 installs cleanly in data venv; alpha_engine_lib.alerts imports.
  • CLI dry-run with --no-sns --no-telegram returns the expected status string.
  • Operator validation: next deploy.sh --smoke lands a record in s3://alpha-engine-research/changelog/entries/{date}/ within ~3s with no Telegram ping.
  • Acceptance (post-merge fleet check): grep -rE "aws sns publish.*alpha-engine-alerts|api.telegram.org/bot" infrastructure/ --include="*.sh" across alpha-engine + alpha-engine-data returns zero hits.

🤖 Generated with Claude Code

…ine_lib.alerts CLI

Per ROADMAP L146 (SOTA / institutional-approach sub-sub-rule). Second
inline-alerts site named in the ROADMAP — sibling PR alpha-engine #200
migrates the alpha-engine/infrastructure/health_checker.sh half.

infrastructure/lambdas/changelog-incident-mirror/deploy.sh: raw `aws
sns publish` → `python -m alpha_engine_lib.alerts publish`. SNS target
stays identical (default `alpha-engine-alerts` topic resolution), so
the changelog-incident-mirror Lambda still receives the message and
the smoke test still verifies end-to-end. `--no-telegram` keeps the
deliberate-per-deploy noise off the operator channel; `severity=info`
matches the smoke-test semantics.

Lib pin v0.20.0 → v0.21.0 in BOTH requirements.txt AND Dockerfile
(lockstep, per the test_lib_pin_lockstep regression test). v0.21.0 is
the alerts-module floor; v0.20 → v0.21 is additive (just the alerts
module).

Suite: 1401 passed (vs 1400 baseline — lib v0.21 doesn't break any
existing consumer).

Closes alpha-engine-data half of ROADMAP L146 (P2). After both PRs
merge, `grep -rE "aws sns publish.*alpha-engine-alerts|api.telegram.org/bot" infrastructure/ deploy/ --include="*.sh"`
returns zero hits across both alpha-engine and alpha-engine-data.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cipher813 cipher813 merged commit a54271a into main May 20, 2026
1 check passed
@cipher813 cipher813 deleted the refactor/changelog-incident-mirror-lib-alerts branch May 20, 2026 20:21
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