feat: revenue classification tiering + admin profile editing#161
Merged
Conversation
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
|
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
settlement_revenue_usd(highest-confidence tier). Agent-token inflows capped atmediumconfidence. Two new classification fields:settlement_revenue_usd,agent_token_revenue_usd.computeAgentBooksnow queriesrevenue_classification_eventsfor confirmedfee_receivedclassifications; presence allowsrevenueConfidenceto reachhighalongside clean attribution. New confidence flags:revenue_primarily_agent_token,truth_engine_fee_receipts_confirmed.PATCH /api/admin/registry/update-agentwritesx_handle,website,symboltoregistry_agentsby exact name. "Edit Agent Profile" card in the luca-admin Registry section with inline inputs for handle, website, and ticker.What changed
src/lib/agent-books.tssrc/app/api/admin/registry/update-agent/route.tssrc/app/luca-admin/page.tsxTest plan
settlement_revenue_usdfield present in responseGenerated by Claude Code