feat: Autonomous House Agents, Narrative DNA, Sage Staking, Parameter Markets, Universe Bridge#43
Open
feat: Autonomous House Agents, Narrative DNA, Sage Staking, Parameter Markets, Universe Bridge#43
Conversation
Complete production implementation of the Prophecy NFT system: ## Database - Add Prophecy model (sealed prophecies per chapter, max 100 mints each) - Add ProphecyMint model (one per user per prophecy, mint order 1-100) - Add ProphecyStatus enum: PENDING | FULFILLED | ECHOED | UNFULFILLED - SQL migration: 20260218_prophecy_nft - Regenerated Prisma client (0 TypeScript errors) ## API Routes (4 new endpoints) - GET/POST /api/prophecies — list all / seed new (oracle) - GET/PATCH /api/prophecies/[chapterId] — chapter gallery + fulfill - GET/POST /api/prophecies/mint — user mints + oracle pack - GET /api/prophecies/leaderboard — oracle rankings ## Components (6 new) - ProphecyCard — NFT card with status-based art (dark/silver/golden) - ProphecyGallery — filterable chapter gallery with sort - ProphecyMintModal — full mint flow (single + oracle pack 10% discount) - ProphecyRarityBadge — rarity tier indicator (COMMON → MYTHIC) - ProphecyBanner — compact story sidebar teaser with progress bar - OracleLeaderboard — top collectors ranked by fulfilled prophecy count ## Pages (2 new) - /prophecies — global gallery with leaderboard sidebar - /prophecies/[chapterId] — chapter-specific gallery + My Mints ## Integrations - Navbar: added 'Prophecies ✦' link - Story page: ProphecyBanner injected in sidebar above betting interface ## Documentation - docs/PROPHECY_NFT_SYSTEM.md — full API, migration, and seeding guide Closes Innovation Cycle #49 Week 1-6 priority (Prophecy NFTs)
… pages - next.config.js: add Web3 fallbacks, scrollRestoration, AVIF-first images, per-route cache headers, remove duplicate .mjs config - Leaderboards page: dynamic import with skeleton loader (better FCP/TTI) - Lore dynamic pages: add force-dynamic + ISR fetch revalidate (300s) - API routes: in-memory cache (5min TTL) for stories, houses, protocols, leaderboards - API routes: add force-dynamic where request.url/searchParams used - Dashboard: 285kB → 272kB (-4.6%), Lore: 242kB → 229kB (-5.4%)
5 breakthrough innovations for Voidborne: 1. House Agent Protocol (HAP) — 5 autonomous AI agents with real wallets 2. Narrative DNA Engine (NDE) — 12-dim betting pattern personalization 3. Sage Staking Protocol (SSP) — Skill-as-asset tier system with Wisdom Pool 4. Story Parameter Markets (SPM) — Continuous narrative attribute markets 5. Cross-Story Universe Bridge (CUB) — Parallel universe story expansion POC: 3 TypeScript modules (house-agents.ts, narrative-dna.ts, sage-protocol.ts) Revenue potential: $7.19M/year by Year 5 Combined moat: 270 months
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
Innovation Cycle #50 — Proposes 5 features: autonomous AI house agents, player narrative DNA profiles, reputation-based staking, continuous parameter markets, and cross-story universe bridging. Includes 3 production-quality POC modules.
1. House Agent Protocol (HAP)
5 autonomous AI agents — one per political House — each holding a real Base wallet. They analyze chapters through their House ideological lens (Claude API), size bets using Kelly Criterion, and adapt personality matrices over time.
Player interactions:
2. Narrative DNA Engine (NDE)
Each player's betting history creates a 12-dimension vector (betrayal affinity, contrarianism, moral alignment, etc.). Claude uses this DNA to personalize future chapter generation. DNA is mintable as an NFT and tradeable.
3. Sage Staking Protocol (SSP)
6-tier reputation system: Wanderer through Architect. High-tier players (75%+ accuracy, 500+ bets) can stake into a Wisdom Pool and earn passive yield from premiums charged to lower-tier bettors. ZK-provable tier for privacy.
4. Story Parameter Markets (SPM)
Continuous 0-100 prediction markets for narrative attributes: Void Corruption Index, Alliance Strength, Throne Stability, etc. Claude extracts parameter values post-chapter to settle positions.
5. Cross-Story Universe Bridge (CUB)
Major story decisions spawn companion micro-stories in parallel universes. Shared economy, shared reputation, new characters.
POC
Three TypeScript modules:
house-agents.ts
HouseAgentEnginewith Claude API reasoning per agentnarrative-dna.ts
generatePersonalizationPrompt()for Claude chapter generationdnaSimilarity()for DNA marketplacegenerateDNACard()for NFT metadatasage-protocol.ts
generateSageCard()for on-chain attestationNext Steps
Do NOT merge — awaiting manual review and production planning.