fix: type errors, AEON wallet cleanup, and seed-registry wallet fields#158
Merged
Conversation
seed-registry was inserting wallets without evidence_source, chain, role, or confidence, leaving those fields NULL in the DB. The books eligibility check requires evidence_source = 'manifest' so agents seeded this way were always skipped by the books snapshot. Also fixes the conflict target from 'id' (unusable for upsert) to 'agent_name,address'. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RjpGP3kYKnQuQAUoK6RZky
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
"treasury"and"deployer"toWalletLabel, and"Manifest submitted"toOutreachStatus— types hadn't kept up with confirmed-wallet state, causing a TypeScript build failure."treasury"/"deployer", confidence to"confirmed", and outreachStatus to"Manifest submitted".seed-registrywas upserting wallet rows withoutevidence_source,chain,role, orconfidence, leaving those fields NULL. Books eligibility requiresevidence_source = 'manifest'so all agents seeded this way were silently skipped by the books snapshot. Also fixes the upsert conflict target fromidtoagent_name,address.Post-merge production checklist
Run these in order after merging:
POST /api/admin/seed-registry— re-seeds with full wallet fields (fixes NULL evidence_source)POST /api/admin/books/snapshot{"slug":"aeon"}— should returnsnapshotted:1/registry/aeonshows booksGenerated by Claude Code