Skip to content

feat: Autonomous House Agents, Narrative DNA, Sage Staking, Parameter Markets, Universe Bridge#43

Open
Eli5DeFi wants to merge 3 commits intomainfrom
innovation/autonomous-character-agents
Open

feat: Autonomous House Agents, Narrative DNA, Sage Staking, Parameter Markets, Universe Bridge#43
Eli5DeFi wants to merge 3 commits intomainfrom
innovation/autonomous-character-agents

Conversation

@Eli5DeFi
Copy link
Owner

@Eli5DeFi Eli5DeFi commented Feb 18, 2026

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:

  • Align with a House and earn 20% of agent winnings
  • Bet against an agent for rivalry bonus
  • Override auction: top staker vetoes agent bet once/month
  • Leaderboard: which House agent has best accuracy

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:

packages/agent-sdk/src/house-agents.ts    — HAP (500+ lines)
packages/agent-sdk/src/narrative-dna.ts   — NDE (400+ lines)
packages/agent-sdk/src/sage-protocol.ts   — SSP (450+ lines)

house-agents.ts

  • HouseAgentEngine with Claude API reasoning per agent
  • Kelly Criterion bet sizing
  • Evolutionary personality adaptation
  • House Alignment reward calculation
  • Public/private decision reveal

narrative-dna.ts

  • EMA-based DNA vector updating
  • generatePersonalizationPrompt() for Claude chapter generation
  • dnaSimilarity() for DNA marketplace
  • generateDNACard() for NFT metadata
  • 9 named archetypes

sage-protocol.ts

  • 6-tier computation from live stats
  • Wisdom Pool staking + proportional reward distribution
  • Fee discount per tier (5-25%)
  • Early access window check
  • generateSageCard() for on-chain attestation

Next Steps

  1. Wire agent wallets to real Base contracts; deploy treasury seed; add key management (HSM or Turnkey)
  2. Store DNA vectors in Supabase; add DNA NFT minting contract
  3. Write Wisdom Pool smart contract; integrate with ChapterBettingPool.sol
  4. Design continuous double-auction contract; Claude parameter extraction pipeline
  5. Universe spawning event system; companion story DB schema

Do NOT merge — awaiting manual review and production planning.

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
@Eli5DeFi Eli5DeFi changed the title [Innovation Cycle #50]: The Autonomous Character Economy feat: Autonomous House Agents, Narrative DNA, Sage Staking, Parameter Markets, Universe Bridge Feb 23, 2026
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