Skip to content

fix: doctrine live-data rule + wallet type override case-insensitive match#165

Merged
danbuildss merged 1 commit into
mainfrom
claude/luca-aeon-skills-caYGZ
Jun 29, 2026
Merged

fix: doctrine live-data rule + wallet type override case-insensitive match#165
danbuildss merged 1 commit into
mainfrom
claude/luca-aeon-skills-caYGZ

Conversation

@danbuildss

Copy link
Copy Markdown
Owner

Summary

  • luca-x-doctrine.ts — hard doctrine rule added to SHARED_DOCTRINE (baked into every Luca prompt): Luca must call agent-books or revenue-analysis before emitting any per-agent revenue/expense/GDP figure. If no live call has been made, Luca must say "I don't have a current figure for [agent] — let me check." Closes the stale-report truth leak where Luca surfaced the corrected $3.4M Aeon figure from memory or a prior published report.

  • update-wallet-type/route.ts — switched .eq("address", address) to .ilike("address", address) for case-insensitive matching. Fixes "no wallet found" error when the DB stores checksummed mixed-case addresses (EIP-55) but the input is lowercased.

Root cause of the stale figure

The suppression system (agent-books.ts under_review check) works correctly for live API calls. The leak path was: a weekly report published before the suppression migration still existed in research_reports with Aeon's $3.4M figure in its prose body. Luca on Hermes could surface that figure from context/memory without making a fresh skill call. The doctrine rule closes this permanently.

Post-merge action required

Force-regenerate the weekly report via admin endpoint to overwrite the stale prose:

POST /api/admin/research/generate
{ "type": "weekly", "force": true }
x-internal-secret: <ZETTA_INTERNAL_SECRET>

Generated by Claude Code

…match

- luca-x-doctrine: hard rule forbidding agent-specific figures from memory;
  Luca must call agent-books or revenue-analysis before emitting any per-agent
  revenue/expense/GDP figure — closes stale-report truth leak
- update-wallet-type: switch .eq to .ilike for address matching so mixed-case
  checksummed addresses (e.g. Skopos) resolve correctly

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RjpGP3kYKnQuQAUoK6RZky
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
zetta Ready Ready Preview, Comment Jun 29, 2026 7:30am

@danbuildss danbuildss merged commit faf22fa into main Jun 29, 2026
3 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.

2 participants