Skip to content

feat(sql): merge_staging_to_episodes.py — guarded staging -> app.episodes merge - #536

Draft
ElmoPA wants to merge 1 commit into
mainfrom
elmo/episode-merge
Draft

feat(sql): merge_staging_to_episodes.py — guarded staging -> app.episodes merge#536
ElmoPA wants to merge 1 commit into
mainfrom
elmo/episode-merge

Conversation

@ElmoPA

@ElmoPA ElmoPA commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Dry-run by default. A staged row merges only if (1) sufficient columns filled
(--required-columns non-null) and (2) no conflicting episode_hash already in
app.episodes (never overwritten). Preserves staged created_at (recording time);
updated_at defaults to merge time; eval/flag cols get standard defaults. ON
CONFLICT DO NOTHING safety net. --apply to actually insert.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com

…odes merge

Dry-run by default. A staged row merges only if (1) sufficient columns filled
(--required-columns non-null) and (2) no conflicting episode_hash already in
app.episodes (never overwritten). Preserves staged created_at (recording time);
updated_at defaults to merge time; eval/flag cols get standard defaults. ON
CONFLICT DO NOTHING safety net. --apply to actually insert.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

ElmoPA commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

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