Skip to content

feat: revenue classification tiering + admin profile editing#161

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

feat: revenue classification tiering + admin profile editing#161
danbuildss merged 2 commits into
mainfrom
claude/luca-aeon-skills-caYGZ

Conversation

@danbuildss

Copy link
Copy Markdown
Owner

Summary

  • Stablecoin-first revenue tiering — stablecoin inflows from counterparties with ≥3 prior interactions are tracked as settlement_revenue_usd (highest-confidence tier). Agent-token inflows capped at medium confidence. Two new classification fields: settlement_revenue_usd, agent_token_revenue_usd.
  • Truth-engine fee signalcomputeAgentBooks now queries revenue_classification_events for confirmed fee_received classifications; presence allows revenueConfidence to reach high alongside clean attribution. New confidence flags: revenue_primarily_agent_token, truth_engine_fee_receipts_confirmed.
  • Edit Agent Profile (admin)PATCH /api/admin/registry/update-agent writes x_handle, website, symbol to registry_agents by exact name. "Edit Agent Profile" card in the luca-admin Registry section with inline inputs for handle, website, and ticker.

What changed

File Change
src/lib/agent-books.ts Revenue tiering, truth-engine query, confidence scoring
src/app/api/admin/registry/update-agent/route.ts New PATCH endpoint
src/app/luca-admin/page.tsx Edit Agent Profile UI card

Test plan

  • Snapshot AEON books — confirm settlement_revenue_usd field present in response
  • In luca-admin Registry section, enter an agent name + X handle → Save → confirm DB row updated
  • Enter unknown agent name → confirm 404 error shown
  • Leave handle/website/symbol blank → only filled fields are written

Generated by Claude Code

claude added 2 commits June 28, 2026 21:10
Three improvements to revenue classification in agent-books:

1. settlement_revenue bucket — stablecoin inflows from counterparties with
   ≥3 prior interactions are separated as the highest-confidence revenue
   tier (settlement_revenue_usd in classification output).

2. Agent-token confidence cap — when >50% of operating revenue comes from
   the agent's own project token, revenue confidence is capped at medium.
   Stablecoin settlement revenue or truth-engine corroboration is required
   to reach high confidence.

3. Truth-engine fee_received wire — queries revenue_classification_events
   for confirmed fee_received classifications. When present, it corroborates
   stablecoin revenue and allows revenueConfidence to reach high.

New confidence flags: revenue_primarily_agent_token,
truth_engine_fee_receipts_confirmed.
New classification fields: settlement_revenue_usd, agent_token_revenue_usd.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RjpGP3kYKnQuQAUoK6RZky
Adds inline editing of X handle, website, and ticker/symbol for any
registry agent directly from the luca-admin Registry section.

- PATCH /api/admin/registry/update-agent — writes x_handle, website,
  symbol fields to registry_agents by exact agent name
- "Edit Agent Profile" card in RegistrySection — 4 inputs (name, handle,
  website, symbol), only sends fields that have values, shows success/error

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 4:59am

@danbuildss danbuildss merged commit cd84758 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