feat(spot): add --rag-only mode (skip DataPhase1, run RAG alone)#63
Merged
Conversation
…lone) When DataPhase1 completes cleanly but RAG fails downstream (e.g. 2026-04-17 Saturday SF: DataPhase1 OK at 03:47 UTC, RAG hung on .env-sourced RAG_DATABASE_URL truncation — PR #60 root-fix), rerunning the whole Saturday SF burns ~30 minutes of spot time + polygon API quota on idempotent DataPhase1 overwrite. New mode skips DataPhase1 entirely: ./infrastructure/spot_data_weekly.sh --rag-only Fetches the 4 RAG secrets from SSM (same Phase 2 SSM path as the full run), invokes rag/pipelines/run_weekly_ingestion.sh (real, non-dry-run), emits only the rag-ingestion CloudWatch heartbeat so alarm state reflects what actually ran. Use-case: post-incident surgical re-run that unblocks Research (the SF's next downstream step) without re-executing already-successful upstream work. Co-Authored-By: Claude Opus 4.7 (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.
Summary
Modes (now 4)
Test plan
🤖 Generated with Claude Code