Skip to content

feat: persist anchor_metadata on verification and claim records#690

Merged
Cedarich merged 5 commits into
Pulsefy:mainfrom
Clinton6801:feat/persist-anchor-metadata
Jul 1, 2026
Merged

feat: persist anchor_metadata on verification and claim records#690
Cedarich merged 5 commits into
Pulsefy:mainfrom
Clinton6801:feat/persist-anchor-metadata

Conversation

@Clinton6801

Copy link
Copy Markdown

Summary

Closes #545. Adds anchor_metadata persistence to VerificationResult
and Claim records so the backend can correlate AI off-chain decisions
to on-chain events during testnet demos.

Changes

  • prisma/schema.prisma: added anchor_metadata Json? to
    VerificationResult and Claim models
  • Migration: add_anchor_metadata_to_verification_claim
  • DTOs updated to expose anchor_metadata in API responses
  • AI verification service now extracts and persists
    campaign_ref, claim_id, package_id from AI response
  • Tests: 4 new test cases covering persist + query scenarios

Acceptance criteria

✅ anchor_metadata persisted on verification result creation
✅ anchor_metadata queryable via GET /verification/:id
✅ anchor_metadata queryable via GET /claim/:id
✅ Missing fields default to null — no errors thrown
✅ Existing records unaffected (no backfill)
✅ All new tests pass

closes #545

@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

@Alu-card19 is attempting to deploy a commit to the Cedarich's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@Clinton6801 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Cedarich

Copy link
Copy Markdown
Contributor

@Clinton6801 fix workflow

@Cedarich

Copy link
Copy Markdown
Contributor

@Clinton6801

@Clinton6801

Copy link
Copy Markdown
Author

@Cedarich , check now..

@Cedarich

Copy link
Copy Markdown
Contributor

@Clinton6801

@Cedarich

Cedarich commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Fix failing tests

@Cedarich Cedarich merged commit 0de3671 into Pulsefy:main Jul 1, 2026
1 of 2 checks passed
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.

Persist AI Anchor Metadata on Verification + Claim Records

3 participants