[DIPS] add pending_rca_proposals migration#1173
Closed
MoonBoi9001 wants to merge 3 commits intofeat/dips-supportfrom
Closed
[DIPS] add pending_rca_proposals migration#1173MoonBoi9001 wants to merge 3 commits intofeat/dips-supportfrom
pending_rca_proposals migration#1173MoonBoi9001 wants to merge 3 commits intofeat/dips-supportfrom
Conversation
The indexer-rs v2 DIPs flow stores validated RCA proposals in a pending_rca_proposals table, which the agent will later pick up and accept on-chain. The indexer-service does not run migrations (by convention, the agent owns DDL), so this migration creates the table that indexer-service needs to write to. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
pending_rca_proposals migration
Maikol
reviewed
Mar 3, 2026
packages/indexer-agent/src/db/migrations/23-add-pending-rca-proposals.ts
Outdated
Show resolved
Hide resolved
Replace raw SQL with queryInterface.addIndex using the fields object syntax for DESC ordering, per review feedback. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
Author
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.
Motivation
The indexer-rs DIPs flow stores validated RCA proposals in a
pending_rca_proposalstable for the agent to later pick up and accept on-chain. By convention in this codebase, the indexer-service does not run database migrations -- it defers to the agent to avoid DDL conflicts from two processes sharing a database. Without this migration, indexer-service rejects every valid proposal withrelation "pending_rca_proposals" does not exist.Summary
23-add-pending-rca-proposals.tsthat creates thepending_rca_proposalstable with the schema defined inindexer-rs/migrations/20260302000000_dips_pending_proposals.up.sqlid,signed_payload,version,status,created_at,updated_at. The signed payload blob is the source of truth -- the agent decodes it when accepting on-chainindexing_agreements/dips_receiptstables (the existing agent DIPs code still references them; updating that code is a separate piece of work)Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com