Skip to content

Derive feed mapping; add startup preflight - #19

Merged
maxkuttner merged 1 commit into
mainfrom
refactor/derive-feed-mapping
Jul 21, 2026
Merged

Derive feed mapping; add startup preflight#19
maxkuttner merged 1 commit into
mainfrom
refactor/derive-feed-mapping

Conversation

@maxkuttner

@maxkuttner maxkuttner commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Delete feed_instrument — it was a persisted cache of a pure function. candidates() + to_feed_symbol() fully determine it, so the subscription set is derived at subscribe time instead of stored.

This removes two failure modes rather than managing them:

  • stale rows — a delisted instrument's mapping stayed forever
  • not retroactive — instruments added by a later sync-broker had no mapping until someone re-ran map-feed

map-feed (subcommand, make target, seed step) and the seeding-order rule go with it.

Delete feed_instrument — it was a persisted cache of a pure function.
candidates() + to_feed_symbol() fully determine it, so derive the
subscription set at subscribe time instead. Removes two failure modes
(stale rows, non-retroactive) rather than managing them, and drops the
map-feed step and its ordering rule.

Add preflight: refuse to boot on an empty catalog/FK targets; log loud
(but boot) when a held position cannot be priced or routed. Make
sync-broker exit non-zero on FK skips unless --allow-skips. Stop logging
the DB password on boot.
@maxkuttner
maxkuttner merged commit 58cc6b1 into main Jul 21, 2026
1 check passed
@maxkuttner
maxkuttner deleted the refactor/derive-feed-mapping branch July 21, 2026 05:36
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