feat: prediction market endpoint — agent manifest milestone#136
Merged
Conversation
GET /api/v1/predictions/agent-manifest-milestone Public, no auth. Tracks: "Will 100 agents declare wallets via the Agent Wallet Manifest before August?" Returns current count, progress %, days remaining, resolution (YES/NO when resolved), trend from GDP history snapshots (7d delta, rate/day, projected count by deadline), and full context block. Resolves YES when manifest_attributed_agents >= 100. Resolves NO when deadline (2026-08-01T00:00:00.000Z) passes. Cached 5 min (s-maxage=300). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RHDXdEbGQsn88zks713gye
|
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.
What
Public endpoint tracking the prediction market question:
No auth required. Cached 5 minutes (
s-maxage=300).Response shape
{ "question": "Will 100 agents declare wallets via the Agent Wallet Manifest before August?", "metric": "agents_with_manifest_declared_wallets", "current": 23, "target": 100, "deadline": "2026-08-01T00:00:00.000Z", "days_remaining": 39, "progress_pct": 23, "resolved": false, "resolution": null, "outcome": null, "trend": { "delta_7d": 4, "rate_per_day": 0.57, "projected_by_deadline": 45, "on_track": false }, "context": { "total_agents_in_registry": 87, "manifest_attributed": 23, "discovered_not_manifest": 31, "unattributed": 33, "definition": "manifest_attributed = agent has ≥1 manifest-declared wallet of type eoa or treasury_contract", "manifest_guide": "https://www.zettaai.co/manifest" }, "generated_at": "..." }Resolution logic
resolvedresolutionfalsenulltrue"YES"true"NO"Resolves YES the moment
manifest_attributed_agents >= 100, even before August 1.Implementation notes
getAttributionMetrics()— same source as attribution health dashboardagent_gdp_historysnapshots (attributed_agentsfield) — no new tablesmanifest_attributeddefinition is strict:evidenceSource === manifestANDaddress_type ∈ {eoa, treasury_contract}2026-08-01T00:00:00.000Z🤖 Generated with Claude Code
https://claude.ai/code/session_01RHDXdEbGQsn88zks713gye
Generated by Claude Code