Repository navigation
fix(OMN-13150): vendor agent_routing_decisions per-node migration to omnidash_analytics (FIX-1) - #1985
Conversation
…_decisions migration (FIX-1) Vendored 1:1 from omnimarket src/omnimarket/nodes/node_projection_routing_decision/migrations/0021_create_agent_routing_decisions.sql via scripts/sync-node-migrations.sh. Applied to $NODE_PGDB=omnidash_analytics by run-forward-migrations.sh. Creates the agent_routing_decisions projection table in the canonical projection DB (omnidash_analytics) — see omnimarket PR #1218 for the contract repoint + 3-part dev-lane runtime proof. NOTE: the vendored-tree drift gate (tests/unit/migrations/ test_node_migration_discovery.py::test_sync_check_reports_in_sync) resolves omnimarket via $OMNI_HOME/omnimarket (canonical clone @ dev). This PR must land AFTER omnimarket #1218 is merged to dev and the canonical clone is synced, or the drift gate will report OUT OF SYNC. Evidence-Source: b56a3ff Evidence-Ticket: OMN-13150
|
Warning Review limit reached
More reviews will be available in 2 hours, 1 minute, and 37 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
OMN-13150 (FIX-1) — vendor agent_routing_decisions per-node migration (omnidash_analytics)
Companion to omnimarket PR #1218 (the source-of-truth contract repoint + 3-part dev-lane runtime proof).
This PR vendors the per-node forward migration that creates
agent_routing_decisionsin the canonical projection DB (omnidash_analytics):docker/migrations/forward/nodes/node_projection_routing_decision/0021_create_agent_routing_decisions.sql— vendored 1:1 fromomnimarket/src/omnimarket/nodes/node_projection_routing_decision/migrations/0021_create_agent_routing_decisions.sqlviascripts/sync-node-migrations.sh.$NODE_PGDB=omnidash_analytics byrun-forward-migrations.sh(node pass), tracked inschema_migrationsasnode:node_projection_routing_decision:0021_create_agent_routing_decisions.sql.021_create_agent_routing_decisions_table.sql; all statementsIF NOT EXISTS, idempotent, different DB.Why
The projection node's runtime DSN (
from_legacy_settings+ projection-API reader) resolvesomnidash_analyticsfirst, but the table never existed there (only inomnibase_infra). All sibling projection tables live in omnidash_analytics. omnimarket #1218 repoints the contract to omnidash_analytics; this vendored migration makes the table exist there on a clean deploy.Cross-repo ordering (blocker)
The vendored-tree drift gate (
tests/unit/migrations/test_node_migration_discovery.py::test_sync_check_reports_in_sync) resolves omnimarket via$OMNI_HOME/omnimarket(canonical clone @ dev). This PR must merge AFTER omnimarket #1218 is on dev and the canonical clone is synced, or the drift gate reports OUT OF SYNC. Locally the gate PASSES whenOMNIMARKET_SRCpoints at the #1218 branch (vendored == source).dod_evidence
docs/evidence/2026-06-14-post-closeout/OMN-13150-routing-decision-db-repoint-runtime-proof.md(omni_home).tests/unit/migrations/test_node_migration_discovery.py(15 passed against the fix(OMN-8025): add OMNIBASE_INFRA_SAVINGS_KAFKA_BOOTSTRAP_SERVERS to runtime hardcoded_env #1218 branch source).OCC PR-binding receipt
The PR-binding PASS receipt for this PR is
drift/dod_receipts/OMN-13150/dod-infra-pr/command.yaml(status: PASS,commit_sha: 60016ddd46b36c673b0fc6954c74a5641e37f9c7= this PR's head,pr_number: 1985), merged on onex_change_control dev via OCC #2634. Evidence-Source below is repointed from OCC #2632 (979d9b79, which predated the infra receipt) to OCC #2634's merge commit so the Receipt Gate resolves the OCC tree that containsdod-infra-pr.Evidence-Source: 6d4213f321372a009a23ce6aad2119ee605c6a4f
Evidence-Ticket: OMN-13150