Skip to content

feat: add pending RCA proposal consumer and migration#1174

Open
Maikol wants to merge 1 commit intofeat/dips-supportfrom
feat/dips-pending-rca-consumer
Open

feat: add pending RCA proposal consumer and migration#1174
Maikol wants to merge 1 commit intofeat/dips-supportfrom
feat/dips-pending-rca-consumer

Conversation

@Maikol
Copy link
Member

@Maikol Maikol commented Mar 3, 2026

Add PendingRcaConsumer to read pending RCA proposals from the shared pending_rca_proposals table (populated by indexer-rs), decode SignedRCA bytes via toolshed, and feed decoded proposals into the agent's reconciliation loop for indexing rule creation.

  • Sequelize model (read-only, defined after sync to avoid schema ownership)
  • PendingRcaConsumer class with getPendingProposals/markAccepted/markRejected
  • DecodedRcaProposal interface with all decoded fields
  • ensureAgreementRules branches between new RCA path and legacy fallback
  • Migration 23 creates pending_rca_proposals table with IF NOT EXISTS guard
  • Threading: start.ts -> client.ts -> actions.ts -> allocations.ts -> dips.ts
  • Unit tests with real ABI encode/decode round-trips

@github-project-automation github-project-automation bot moved this to 🗃️ Inbox in Indexer Mar 3, 2026
@Maikol Maikol force-pushed the feat/dips-pending-rca-consumer branch from 0da4169 to 63c1d69 Compare March 3, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🗃️ Inbox

Development

Successfully merging this pull request may close these issues.

1 participant