oneie 3.6.38 → 3.6.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/.claude/agents/agent-frontend.md +48 -0
  2. package/.claude/commands/deploy.md +187 -17
  3. package/.claude/commands/media-upload.md +186 -0
  4. package/.claude/hooks/.last-news-context +1 -1
  5. package/.claude/hooks/__pycache__/todo.cpython-312.pyc +0 -0
  6. package/README.md +28 -0
  7. package/dist/index.js +17 -0
  8. package/dist/index.js.map +1 -1
  9. package/one/README.md +1 -2
  10. package/one/knowledge/one-protocol-ai-agents.md +892 -0
  11. package/one/knowledge/one-protocol-executive-report.md +617 -0
  12. package/one/knowledge/one-protocol-standard.md +869 -0
  13. package/one/knowledge/one-protocol-whitepaper.md +756 -0
  14. package/one/knowledge/ontology-education-game.md +1654 -0
  15. package/one/knowledge/ontology-v2.md +4449 -0
  16. package/one/knowledge/ontology.md +1 -1
  17. package/one/things/contracts/Move.toml +12 -0
  18. package/one/things/contracts/README.md +288 -0
  19. package/one/things/contracts/one.move +762 -0
  20. package/one/things/contracts/sdk.ts +578 -0
  21. package/one/things/crypto/FEATURES.md +78 -0
  22. package/one/things/crypto/ONECORE.md +62 -0
  23. package/one/things/crypto/ONECOREFAQ.md +22 -0
  24. package/one/things/crypto/ONECOREHOW.md +46 -0
  25. package/one/things/crypto/ONEENTERPRISE.md +64 -0
  26. package/one/things/crypto/ONEENTERPRISEFAQ.md +64 -0
  27. package/one/things/crypto/ONEENTERPRISEHOW.md +53 -0
  28. package/one/things/crypto/ONEPRO.md +60 -0
  29. package/one/things/crypto/ONEPROFAQ.md +22 -0
  30. package/one/things/crypto/ONEPROHOW.md +53 -0
  31. package/one/things/crypto/READMEAGENCY.md +64 -0
  32. package/one/things/crypto/VSL.md +45 -0
  33. package/one/things/crypto/WebsiteCopy.md +176 -0
  34. package/one/things/design-system.md +832 -0
  35. package/one/things/pay.one.ie.md +53 -0
  36. package/one/things/plans/ai-elements-integration.md +483 -0
  37. package/one/things/plans/one-protocol-and-payone-usage.md +82 -0
  38. package/one/things/plans/plan-connect-to-api.md +146 -0
  39. package/one/things/plans/video-frontend.md +146 -88
  40. package/one/things/plans-u.md +905 -0
  41. package/one/things/products/Blockchain Products.md +6278 -0
  42. package/one/things/scripts-clean-mac.sh +409 -0
  43. package/one/things/todo-release.md +654 -0
  44. package/one/things/todo.md +9 -642
  45. package/one/things/video-script-backup.md +318 -0
  46. package/one/things/video-script-demo.md +382 -0
  47. package/one/things/video-script-ontology.md +0 -1
  48. package/one/things/video-script.md +361 -0
  49. package/package.json +8 -6
  50. package/.claude/hooks/__pycache__/done.cpython-313.pyc +0 -0
  51. package/.claude/hooks/__pycache__/todo.cpython-311.pyc +0 -0
  52. package/llms.txt +0 -257
@@ -0,0 +1,1654 @@
1
+ ---
2
+ title: Ontology - The Infinite Game (Education MMOLRPG)
3
+ dimension: knowledge
4
+ category: ontology-education-game.md
5
+ tags: 6-dimensions, ai, education, mmolrpg, stake-to-learn, tokenization, sui-move, gamification
6
+ related_dimensions: connections, events, groups, people, things
7
+ scope: domain
8
+ created: 2025-12-05
9
+ updated: 2025-12-05
10
+ version: 1.0.0x
11
+ ai_context: |
12
+ This document extends the education ontology with MMOLRPG game mechanics.
13
+ Education is modeled as a high-stakes, AI-driven economy.
14
+ Core loop: Stake → Play → Learn → Earn → Share.
15
+ For AI agents: Use this to build gamified learning with blockchain integration.
16
+ ---
17
+
18
+ # The Infinite Game - Education MMOLRPG Ontology
19
+
20
+ **Version:** 1.0.0 (Stake → Play → Learn → Earn → Share)
21
+ **Status:** Active
22
+ **Extends:** [ontology-education.md](./ontology-education.md)
23
+ **Design Principle:** Education as MMOLRPG—where learning isn't a task, it's a high-stakes, AI-driven economy built on the 6-dimension ontology.
24
+
25
+ ---
26
+
27
+ ## 🎮 The Game at a Glance
28
+
29
+ ```
30
+ ╔══════════════════════════════════════════════════════════════════════════════╗
31
+ ║ ║
32
+ ║ 🎯 THE INFINITE GAME: Where Learning = Playing = Earning ║
33
+ ║ ║
34
+ ║ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ ║
35
+ ║ │ STAKE │───▶│ PLAY │───▶│ LEARN │───▶│ EARN │───▶│ SHARE │ ║
36
+ ║ │ 💰 │ │ 🎮 │ │ 📚 │ │ 🏆 │ │ 🌐 │ ║
37
+ ║ │ Commit │ │ Quest │ │ Master │ │ Rewards │ │ Recruit │ ║
38
+ ║ │ tokens │ │ battle │ │ skills │ │ yield │ │ grow │ ║
39
+ ║ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └────┬────┘ ║
40
+ ║ ▲ │ ║
41
+ ║ └──────────────────────────────────────────────────────────┘ ║
42
+ ║ ∞ INFINITE LOOP ∞ ║
43
+ ║ ║
44
+ ╚══════════════════════════════════════════════════════════════════════════════╝
45
+ ```
46
+
47
+ ---
48
+
49
+ ## 🏛️ The 6-Dimension Reality Model (Game Physics)
50
+
51
+ **Everything in The Infinite Game maps to these 6 dimensions:**
52
+
53
+ ```
54
+ ┌──────────────────────────────────────────────────────────────────────────────┐
55
+ │ 1. GROUPS (Factions) │
56
+ │ 🏰 Guilds, Factions, Raid Parties, Squads, Arenas │
57
+ │ "Where heroes gather" - from study circles to DAO schools │
58
+ └──────────────────────────────────────────────────────────────────────────────┘
59
+ ↓
60
+ ┌──────────────────────────────────────────────────────────────────────────────┐
61
+ │ 2. PEOPLE (Heroes) │
62
+ │ ⚔️ Heroes, Quest Givers, Dungeon Masters, Scholars, Patrons │
63
+ │ "Who plays the game" - students, instructors, AI agents │
64
+ └──────────────────────────────────────────────────────────────────────────────┘
65
+ ↓
66
+ ┌──────────────────────────────────────────────────────────────────────────────┐
67
+ │ 3. THINGS (Loot) │
68
+ │ 💎 Dungeons, Quests, Artifacts, Skill Gems, LEARN Tokens, Stake Contracts │
69
+ │ "What exists in the world" - courses, credentials, tokens, assets │
70
+ └──────────────────────────────────────────────────────────────────────────────┘
71
+ ↓
72
+ ┌──────────────────────────────────────────────────────────────────────────────┐
73
+ │ 4. CONNECTIONS (Skill Trees) │
74
+ │ 🌳 Quest Progress, Guild Membership, Scholarships, PvP Challenges │
75
+ │ "How things relate" - enrollments, mentorships, team formations │
76
+ └──────────────────────────────────────────────────────────────────────────────┘
77
+ ↓
78
+ ┌──────────────────────────────────────────────────────────────────────────────┐
79
+ │ 5. EVENTS (Quest Log) │
80
+ │ 📜 Quest Completed, Boss Defeated, Artifact Forged, Tokens Earned │
81
+ │ "What happened" - complete audit trail of every action │
82
+ └──────────────────────────────────────────────────────────────────────────────┘
83
+ ↓
84
+ ┌──────────────────────────────────────────────────────────────────────────────┐
85
+ │ 6. KNOWLEDGE (The Lore) │
86
+ │ 📖 Lore Chunks, Hero Profiles, Wallet Insights, Battle Patterns │
87
+ │ "What AI understands" - embeddings powering the Dungeon Master │
88
+ └──────────────────────────────────────────────────────────────────────────────┘
89
+ ```
90
+
91
+ ---
92
+
93
+ ## 🔧 The Universal Interface (How It All Connects)
94
+
95
+ ```
96
+ ┌─────────────────────────────────────────────────────────────────────────────┐
97
+ │ LAYER 1: THE 6-DIMENSION GAME ENGINE │
98
+ │ (Reality as DSL - Never Changes) │
99
+ ├─────────────────────────────────────────────────────────────────────────────┤
100
+ │ groups → Factions, Guilds, Raid Parties (where heroes gather) │
101
+ │ people → Heroes, Quest Givers, Dungeon Masters (who plays) │
102
+ │ things → Dungeons, Quests, Artifacts, Tokens (what exists) │
103
+ │ connections → Skill Trees, Memberships, Scholarships (how they relate) │
104
+ │ events → Quest Log, Boss Battles, Token Flows (what happened) │
105
+ │ knowledge → The Lore, AI Memory, RAG (what AI understands) │
106
+ │ │
107
+ │ This layer models REALITY. It never changes. │
108
+ └──────────────────────────────┬──────────────────────────────────────────────┘
109
+ │
110
+ ↓ Technology swaps, game physics stays the same
111
+
112
+ ┌─────────────────────────────────────────────────────────────────────────────┐
113
+ │ LAYER 2: THE THREE-TIER ARCHITECTURE │
114
+ │ (Technology Adapters - Swap Freely) │
115
+ ├─────────────────────────────────────────────────────────────────────────────┤
116
+ │ │
117
+ │ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │
118
+ │ │ EDGE (Brain) │ │ CONVEX (RAM) │ │ SUI (Storage) │ │
119
+ │ │ 🧠 AI Agents │ │ ⚡ Real-time │ │ 💾 Truth Layer │ │
120
+ │ │ │ │ │ │ │ │
121
+ │ │ • Dungeon Master│ │ • Game state │ │ • Stake objects │ │
122
+ │ │ • Boss battles │ │ • Leaderboards │ │ • SBT artifacts │ │
123
+ │ │ • Quiz gen │ │ • Live chat │ │ • LEARN tokens │ │
124
+ │ │ • Verification │ │ • Progress sync │ │ • Guild treasury│ │
125
+ │ └────────┬────────┘ └────────┬────────┘ └────────┬────────┘ │
126
+ │ │ │ │ │
127
+ │ └─────────────────────┴─────────────────────┘ │
128
+ │ Unified by Ontology │
129
+ │ │
130
+ │ Technology can be swapped. The 6 dimensions stay the same. │
131
+ └─────────────────────────────────────────────────────────────────────────────┘
132
+ ```
133
+
134
+ ---
135
+
136
+ ## 💰 The Economics: Stake-to-Play-to-Learn-to-Earn
137
+
138
+ ```
139
+ ┌─────────────────────────────────────────────────────────────────────────────┐
140
+ │ THE TOKEN FLOW │
141
+ ├─────────────────────────────────────────────────────────────────────────────┤
142
+ │ │
143
+ │ Hero Stakes Dungeon Hero Wins │
144
+ │ ┌───────┐ ┌───────────┐ ┌───────┐ │
145
+ │ │ $50 │ ────────────────▶ │ STAKE │ ───────────────▶│ $60 │ │
146
+ │ │ LEARN │ enters │ CONTRACT │ completes │ LEARN │ │
147
+ │ └───────┘ dungeon │ (holds │ all quests └───────┘ │
148
+ │ │ funds + │ + boss (stake + │
149
+ │ │ progress)│ 20% yield) │
150
+ │ └─────┬─────┘ │
151
+ │ │ │
152
+ │ Hero Fails │ (timeout/dropout) │
153
+ │ ▼ │
154
+ │ ┌───────────┐ │
155
+ │ │ GRAVEYARD │ ◀─── 80% of failed stakes │
156
+ │ │ POOL │ fund winner yields │
157
+ │ └───────────┘ │
158
+ │ │
159
+ ├─────────────────────────────────────────────────────────────────────────────┤
160
+ │ GUILD MODE (5 Heroes) │
161
+ │ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ │
162
+ │ │ $50 │ │ $50 │ │ $50 │ │ $50 │ │ $50 │ = $250 collective stake │
163
+ │ └──┬──┘ └──┬──┘ └──┬──┘ └──┬──┘ └──┬──┘ │
164
+ │ └──────┴──────┴──────┴──────┴──────▶ 2x YIELD MULTIPLIER │
165
+ │ (All pass = $100 yield total) │
166
+ │ (One fails = guild takes hit) │
167
+ └─────────────────────────────────────────────────────────────────────────────┘
168
+ ```
169
+
170
+ ---
171
+
172
+ ## 🎯 The Vision: From Platform to Metaverse
173
+
174
+ We're not building "Coursera on Blockchain." We're building **World of Warcraft for Career Growth**.
175
+
176
+ ```
177
+ ┌─────────────────────────────────────────────────────────────────────────────┐
178
+ │ │
179
+ │ TRADITIONAL EDUCATION THE INFINITE GAME │
180
+ │ ────────────────────── ───────────────────── │
181
+ │ │
182
+ │ 📚 Passive consumption → 🎮 Active participation │
183
+ │ 📄 Static diplomas → 💎 Evolving artifacts (NFTs) │
184
+ │ ❌ No skin in the game → 💰 Stake-to-play commitment │
185
+ │ 👤 Solo learning → ⚔️ Guilds & raid parties │
186
+ │ 🤖 Generic AI tutors → 🧙 Adversarial AI bosses │
187
+ │ 📊 Hidden transcripts → 🌐 Wallet = portable resume │
188
+ │ 💸 Platform keeps fees → 🏆 Winners earn from losers │
189
+ │ │
190
+ │ "Complete the course" → "DEFEAT THE DUNGEON" │
191
+ │ │
192
+ └─────────────────────────────────────────────────────────────────────────────┘
193
+ ```
194
+
195
+ By combining:
196
+ - **Sui Move's object model** (everything is an asset)
197
+ - **Convex's real-time speed** (the game engine)
198
+ - **6-Dimension Ontology** (the physics of reality)
199
+
200
+ We create a world where your wallet IS your resume, and learning IS playing.
201
+
202
+ ---
203
+
204
+ ## 🔄 The Core Loop (Detailed)
205
+
206
+ ```
207
+ ┌─────────────────────────────────────────────────────────────────────────────┐
208
+ │ │
209
+ │ STAKE ──→ PLAY ──→ LEARN ──→ EARN ──→ SHARE │
210
+ │ │ │ │
211
+ │ └──────────────────────────────────────┘ │
212
+ │ (Infinite Loop) │
213
+ │ │
214
+ └─────────────────────────────────────────────────────────────────────────────┘
215
+
216
+ STAKE → Buy in with skin in the game (LEARN tokens)
217
+ • Solo: $50 stake, 30-day deadline
218
+ • Guild: 5 friends, 2x yield multiplier
219
+ • Scholarship: Patrons delegate stakes to scholars
220
+
221
+ PLAY → Navigate quests, battle AI bosses, join guilds
222
+ • World Map UI (not boring dashboards)
223
+ • AI Dungeon Master runs the world
224
+ • PvP Knowledge Duels for token pots
225
+
226
+ LEARN → Absorb knowledge through gamified challenges
227
+ • Unique quizzes generated from Knowledge vectors
228
+ • Boss battles = live debates with adversarial AI
229
+ • Progress stored in Sui objects (portable)
230
+
231
+ EARN → Win back stake + yield, collect artifacts
232
+ • Beat the boss = stake + 20% yield
233
+ • Yield funded by the Graveyard (failed stakes)
234
+ • Dynamic NFT artifacts evolve with XP
235
+
236
+ SHARE → Recruit scholars, flex credentials, build guilds
237
+ • Scholarship: "I'll stake for you, we split yield"
238
+ • Social flex: Share evolving artifact on Twitter/X
239
+ • Guild growth = network effects
240
+ ```
241
+
242
+ ---
243
+
244
+ ## 🌍 Blended Learning: The Global Classroom
245
+
246
+ **Learning happens everywhere—online, IRL, and everywhere in between.**
247
+
248
+ ```
249
+ ┌─────────────────────────────────────────────────────────────────────────────┐
250
+ │ THE BLENDED LEARNING UNIVERSE │
251
+ ├─────────────────────────────────────────────────────────────────────────────┤
252
+ │ │
253
+ │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
254
+ │ │ ONLINE │ │ HYBRID │ │ IRL │ │
255
+ │ │ 🌐 │ │ 🔄 │ │ 🏢 │ │
256
+ │ │ │ │ │ │ │ │
257
+ │ │ • AI Tutors │◀────▶│ • Coworking │◀────▶│ • Bootcamps │ │
258
+ │ │ • Async │ │ • Meetups │ │ • Retreats │ │
259
+ │ │ • Global │ │ • Pop-ups │ │ • Immersion │ │
260
+ │ │ • 24/7 │ │ • Flex │ │ • Intensive │ │
261
+ │ └─────────────┘ └─────────────┘ └─────────────┘ │
262
+ │ │ │ │ │
263
+ │ └───────────────────┴────────────────────┘ │
264
+ │ │ │
265
+ │ ┌─────────▼─────────┐ │
266
+ │ │ UNIFIED PROGRESS │ │
267
+ │ │ 📱 One Wallet │ │
268
+ │ │ 🎮 One Profile │ │
269
+ │ │ 💎 One Skill Tree │ │
270
+ │ └───────────────────┘ │
271
+ │ │
272
+ └─────────────────────────────────────────────────────────────────────────────┘
273
+ ```
274
+
275
+ ---
276
+
277
+ ## 🗺️ The Global Learning Network
278
+
279
+ ```
280
+ ┌─────────────────────────────────────────────────────────────────────────────┐
281
+ │ LEARNING HUBS WORLDWIDE │
282
+ ├─────────────────────────────────────────────────────────────────────────────┤
283
+ │ │
284
+ │ 🌍 EUROPE 🌏 ASIA │
285
+ │ ┌──────────────────┐ ┌──────────────────┐ │
286
+ │ │ 🇮🇪 Dublin Hub │ │ 🇯🇵 Tokyo Hub │ │
287
+ │ │ 🇵🇹 Lisbon Hub │ │ 🇸🇬 Singapore Hub │ │
288
+ │ │ 🇪🇸 Barcelona Hub │ │ 🇹🇭 Chiang Mai Hub│ │
289
+ │ │ 🇩🇪 Berlin Hub │ │ 🇮🇩 Bali Hub │ │
290
+ │ └────────┬─────────┘ └────────┬─────────┘ │
291
+ │ │ │ │
292
+ │ └───────────┬───────────────┘ │
293
+ │ │ │
294
+ │ ┌────────▼────────┐ │
295
+ │ │ 🌐 THE NETWORK │ │
296
+ │ │ Unified by │ │
297
+ │ │ Blockchain │ │
298
+ │ └────────┬────────┘ │
299
+ │ │ │
300
+ │ ┌───────────┴───────────────┐ │
301
+ │ ┌────────▼─────────┐ ┌────────▼─────────┐ │
302
+ │ │ 🌎 AMERICAS │ │ 🌍 AFRICA │ │
303
+ │ │ 🇺🇸 Austin Hub │ │ 🇿🇦 Cape Town Hub│ │
304
+ │ │ 🇲🇽 Mexico City │ │ 🇰🇪 Nairobi Hub │ │
305
+ │ │ 🇧🇷 São Paulo Hub│ │ 🇳🇬 Lagos Hub │ │
306
+ │ │ 🇦🇷 Buenos Aires │ │ 🇷🇼 Kigali Hub │ │
307
+ │ └──────────────────┘ └──────────────────┘ │
308
+ │ │
309
+ └─────────────────────────────────────────────────────────────────────────────┘
310
+ ```
311
+
312
+ ---
313
+
314
+ ## 🏢 Physical Learning Spaces (IRL Dungeons)
315
+
316
+ ```
317
+ ┌─────────────────────────────────────────────────────────────────────────────┐
318
+ │ SPACE TYPES │
319
+ ├─────────────────────────────────────────────────────────────────────────────┤
320
+ │ │
321
+ │ 🏠 COWORKING HUBS 🏫 BOOTCAMP CENTERS 🏝️ RETREAT LOCATIONS │
322
+ │ ───────────────── ────────────────── ──────────────────── │
323
+ │ • Drop-in learning • Intensive programs • Immersive weeks │
324
+ │ • Hot-desking + quests • 12-week dungeons • Nature + learning │
325
+ │ • Local AI mentors • Live instructors • Digital detox mode │
326
+ │ • Networking events • Project-based • Deep work focus │
327
+ │ • Flexible hours • Structured cohorts • Community bonds │
328
+ │ │
329
+ │ 📍 thing: venue 📍 thing: bootcamp 📍 thing: retreat │
330
+ │ 🏰 group: hub 🏰 group: cohort 🏰 group: expedition │
331
+ │ │
332
+ ├─────────────────────────────────────────────────────────────────────────────┤
333
+ │ │
334
+ │ 🎪 POP-UP EXPERIENCES 🤝 MEETUP QUESTS 🎓 UNIVERSITY PARTNERS│
335
+ │ ───────────────────── ─────────────── ───────────────────── │
336
+ │ • Weekend hackathons • Local study groups • Accredited programs│
337
+ │ • Conference side-quests • Weekly guild meets • Campus dungeons │
338
+ │ • Festival workshops • Mentor office hours • Research quests │
339
+ │ • City takeovers • Peer accountability • Exchange programs │
340
+ │ │
341
+ │ 📍 thing: popup_event 📍 thing: meetup 📍 thing: institution│
342
+ │ 🏰 group: event 🏰 group: study_circle 🏰 group: partner │
343
+ │ │
344
+ └─────────────────────────────────────────────────────────────────────────────┘
345
+ ```
346
+
347
+ ---
348
+
349
+ ## 👥 Learning Modes: Self-Driven + Group-Based
350
+
351
+ ```
352
+ ┌─────────────────────────────────────────────────────────────────────────────┐
353
+ │ LEARNING MODE SPECTRUM │
354
+ ├─────────────────────────────────────────────────────────────────────────────┤
355
+ │ │
356
+ │ SOLO SQUAD GUILD │
357
+ │ (Self-Driven) (Small Group) (Community) │
358
+ │ ──────────── ───────────── ─────────── │
359
+ │ │
360
+ │ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
361
+ │ │ 👤 │ │ 👥👥 │ │ 👥👥👥 │ │
362
+ │ │ │ │ 👥👥 │ │ 👥👥👥 │ │
363
+ │ │ Hero │ │ Squad │ │ 👥👥👥 │ │
364
+ │ └─────────┘ └─────────┘ └─────────┘ │
365
+ │ │
366
+ │ • Own pace • 3-5 heroes • 10-100+ members │
367
+ │ • AI companion • Shared stakes • Elected leaders │
368
+ │ • Flexible schedule • Accountability • Treasury/DAO │
369
+ │ • Personalized path • Pair programming • Mentorship ladder │
370
+ │ • Async quests • Sync sessions • Events & rituals │
371
+ │ │
372
+ │ 💰 Solo stake 💰 Guild mode (2x) 💰 Treasury staking │
373
+ │ 🎯 Personal goals 🎯 Team objectives 🎯 Collective missions │
374
+ │ 📈 Individual XP 📈 Shared XP bonus 📈 Guild reputation │
375
+ │ │
376
+ ├─────────────────────────────────────────────────────────────────────────────┤
377
+ │ │
378
+ │ HYBRID COMBINATIONS │
379
+ │ ─────────────────── │
380
+ │ │
381
+ │ 🎮 RAID PARTY: Temporary team for specific dungeon (disbands after) │
382
+ │ 🏆 TOURNAMENT: Guilds compete, top performers earn from pool │
383
+ │ 🎓 COHORT: Time-boxed group journey (e.g., "Web3 Winter 2026") │
384
+ │ 🌍 EXPEDITION: Travel + learn group (e.g., "Europe Tech Tour") │
385
+ │ │
386
+ └─────────────────────────────────────────────────────────────────────────────┘
387
+ ```
388
+
389
+ ---
390
+
391
+ ## 🧑‍🏫 Multi-Teacher + AI Agent Ecosystem
392
+
393
+ ```
394
+ ┌─────────────────────────────────────────────────────────────────────────────┐
395
+ │ THE TEACHING NETWORK │
396
+ ├─────────────────────────────────────────────────────────────────────────────┤
397
+ │ │
398
+ │ HUMAN TEACHERS AI AGENTS │
399
+ │ ────────────── ───────── │
400
+ │ │
401
+ │ 🧑‍🏫 Quest Givers (Instructors) 🤖 Dungeon Master (Course AI) │
402
+ │ • Create dungeons • Generates unique quizzes │
403
+ │ • Design quests • Adapts to hero profile │
404
+ │ • Grade boss battles • 24/7 availability │
405
+ │ • Host live sessions • Scales infinitely │
406
+ │ • Earn royalties • Signs credential TXs │
407
+ │ │
408
+ │ 👨‍💼 Mentors (1:1 Guides) 🔮 The Oracle (Knowledge RAG) │
409
+ │ • Career guidance • Answers any question │
410
+ │ • Portfolio reviews • Sources from The Lore │
411
+ │ • Network introductions • Cites specific quests │
412
+ │ • Unlock hidden quests • Personalized recommendations │
413
+ │ │
414
+ │ 👩‍🔬 Guest Experts (Pop-ins) 🛡️ The Gatekeeper (Access AI) │
415
+ │ • Masterclasses • Analyzes wallet history │
416
+ │ • AMAs • Unlocks hidden content │
417
+ │ • Industry insights • Verifies prerequisites │
418
+ │ • Real-world projects • Detects cheating │
419
+ │ │
420
+ │ 🌍 Local Guides (IRL Hubs) ⚔️ Boss NPCs (Exam AIs) │
421
+ │ • In-person support • Adversarial debates │
422
+ │ • Local connections • Skill verification │
423
+ │ • Cultural context • Must be defeated to pass │
424
+ │ • Coworking facilitation • Difficulty scales with level │
425
+ │ │
426
+ ├─────────────────────────────────────────────────────────────────────────────┤
427
+ │ │
428
+ │ REVENUE FLOW: │
429
+ │ ┌─────────────────────────────────────────────────────────────────┐ │
430
+ │ │ Quest Giver creates dungeon → Heroes pay stakes → Smart contract │ │
431
+ │ │ routes: 70% to Graveyard Pool, 20% to Quest Giver, 10% Platform │ │
432
+ │ └─────────────────────────────────────────────────────────────────┘ │
433
+ │ │
434
+ └─────────────────────────────────────────────────────────────────────────────┘
435
+ ```
436
+
437
+ ---
438
+
439
+ ## 🛫 Learning Journeys: Travel + Learn Programs
440
+
441
+ ```
442
+ ┌─────────────────────────────────────────────────────────────────────────────┐
443
+ │ EXPEDITION TYPES │
444
+ ├─────────────────────────────────────────────────────────────────────────────┤
445
+ │ │
446
+ │ 🌍 NOMAD TRACK 🎓 SEMESTER ABROAD 🏢 CORP RETREAT │
447
+ │ ────────────── ────────────────── ───────────── │
448
+ │ Duration: Ongoing Duration: 3-6 months Duration: 1-2 weeks│
449
+ │ Style: Self-paced Style: Structured Style: Intensive │
450
+ │ │
451
+ │ • Work from anywhere • University partner • Team building │
452
+ │ • Coworking credits • Local immersion • Skill bootcamp │
453
+ │ • Local quest unlocks • Language learning • Strategy offsit │
454
+ │ • Visa/insurance support • Cultural exchange • Executive ed │
455
+ │ │
456
+ │ 💰 Monthly subscription 💰 Semester fee 💰 Company pays │
457
+ │ 🏆 Nomad Badge NFT 🏆 Exchange Artifact 🏆 Corp Certificate│
458
+ │ │
459
+ ├─────────────────────────────────────────────────────────────────────────────┤
460
+ │ │
461
+ │ SAMPLE EXPEDITION: "Web3 Europe Tour" (8 weeks) │
462
+ │ ───────────────────────────────────────────────── │
463
+ │ │
464
+ │ Week 1-2: 🇵🇹 Lisbon │
465
+ │ ├── Coworking: Heden Lisbon │
466
+ │ ├── Quest: "DeFi Fundamentals" │
467
+ │ ├── Local Guide: Maria Santos (Sui Portugal) │
468
+ │ └── Meetup: Lisbon Web3 Wednesday │
469
+ │ │
470
+ │ Week 3-4: 🇪🇸 Barcelona │
471
+ │ ├── Coworking: MOB Makers of Barcelona │
472
+ │ ├── Quest: "Smart Contract Security" │
473
+ │ ├── Local Guide: Carlos Vega (Ethereum BCN) │
474
+ │ └── Event: ETH Barcelona Side Quest │
475
+ │ │
476
+ │ Week 5-6: 🇩🇪 Berlin │
477
+ │ ├── Coworking: Factory Berlin │
478
+ │ ├── Quest: "Tokenomics Design" │
479
+ │ ├── Local Guide: Hannah Mueller (Berlin Blockchain) │
480
+ │ └── Hackathon: ETH Berlin Mini │
481
+ │ │
482
+ │ Week 7-8: 🇮🇪 Dublin │
483
+ │ ├── Coworking: Dogpatch Labs │
484
+ │ ├── Boss Battle: "Build a DeFi Protocol" │
485
+ │ ├── Local Guide: Tony O'Connell (ONE.ie) │
486
+ │ └── Graduation: Artifact Minting Ceremony │
487
+ │ │
488
+ │ 💎 ARTIFACT EARNED: "European Web3 Wanderer" (Legendary SBT) │
489
+ │ │
490
+ └─────────────────────────────────────────────────────────────────────────────┘
491
+ ```
492
+
493
+ ---
494
+
495
+ ## 📊 Blended Learning Ontology Mapping
496
+
497
+ | Blended Concept | Dimension | Type | Properties |
498
+ |-----------------|-----------|------|------------|
499
+ | Coworking Space | Things | `venue` | address, capacity, amenities, wifi_speed |
500
+ | Learning Hub | Groups | `hub` | city, timezone, local_guides[], partner_spaces[] |
501
+ | Expedition | Groups | `expedition` | route[], duration, start_date, capacity |
502
+ | Local Guide | People | `local_guide` role | city, languages[], expertise[], availability |
503
+ | IRL Quest | Things | `quest` | venue_id, scheduled_at, max_participants |
504
+ | Meetup | Things | `meetup` | venue_id, recurring, frequency |
505
+ | Check-in | Events | `location_checkin` | venue_id, hero_id, timestamp, geo |
506
+ | Travel Leg | Events | `travel_completed` | from_hub, to_hub, distance, transport |
507
+ | Local Mentor Session | Events | `mentorship_session` | mentor_id, hero_id, venue_id, duration |
508
+ | Expedition Enrollment | Connections | `enrolled_in` | expedition_id, payment_status, visa_status |
509
+ | Hub Membership | Connections | `member_of` | hub_id, tier, access_credits |
510
+ | Local Guide Assignment | Connections | `guided_by` | guide_id, hero_id, hub_id |
511
+
512
+ ---
513
+
514
+ ## 🎯 Self-Driven Learning Architecture
515
+
516
+ ```
517
+ ┌─────────────────────────────────────────────────────────────────────────────┐
518
+ │ PERSONALIZED LEARNING ENGINE │
519
+ ├─────────────────────────────────────────────────────────────────────────────┤
520
+ │ │
521
+ │ ┌───────────────────┐ │
522
+ │ │ HERO PROFILE │ │
523
+ │ │ (Knowledge) │ │
524
+ │ └─────────┬─────────┘ │
525
+ │ │ │
526
+ │ ┌─────────────────────────┼─────────────────────────┐ │
527
+ │ │ │ │ │
528
+ │ ▼ ▼ ▼ │
529
+ │ ┌───────────┐ ┌───────────┐ ┌───────────┐ │
530
+ │ │ GOALS │ │ SKILLS │ │ CONTEXT │ │
531
+ │ │ Engine │ │ Graph │ │ Aware │ │
532
+ │ └─────┬─────┘ └─────┬─────┘ └─────┬─────┘ │
533
+ │ │ │ │ │
534
+ │ │ What do you │ What do you │ Where are you? │
535
+ │ │ want to achieve? │ already know? │ What time is it? │
536
+ │ │ │ │ Who's nearby? │
537
+ │ └───────────────────────┼───────────────────────┘ │
538
+ │ │ │
539
+ │ ▼ │
540
+ │ ┌────────────────────────┐ │
541
+ │ │ AI RECOMMENDATION │ │
542
+ │ │ ENGINE │ │
543
+ │ └────────────┬───────────┘ │
544
+ │ │ │
545
+ │ ┌───────────────────────┼───────────────────────┐ │
546
+ │ │ │ │ │
547
+ │ ▼ ▼ ▼ │
548
+ │ ┌───────────┐ ┌───────────┐ ┌───────────┐ │
549
+ │ │ QUEST │ │ MENTOR │ │ EVENT │ │
550
+ │ │ Suggest │ │ Match │ │ Suggest │ │
551
+ │ │ │ │ │ │ │ │
552
+ │ │ "Try this │ │ "Meet │ │ "Join │ │
553
+ │ │ dungeon" │ │ Sarah │ │ tonight's│ │
554
+ │ │ │ │ in BCN" │ │ meetup" │ │
555
+ │ └───────────┘ └───────────┘ └───────────┘ │
556
+ │ │
557
+ └─────────────────────────────────────────────────────────────────────────────┘
558
+
559
+ SELF-DRIVEN FEATURES:
560
+ ─────────────────────
561
+ • 🎯 Goal Setting: Hero defines career/learning objectives
562
+ • 🗺️ Path Planning: AI suggests optimal quest sequence
563
+ • 📍 Location Aware: Unlocks local quests when you arrive
564
+ • 🤖 AI Companion: Always-on tutor adapts to your pace
565
+ • 📊 Progress Tracking: Real-time skill tree visualization
566
+ • 🔔 Smart Nudges: Reminders based on your patterns
567
+ • 🎲 Serendipity: Random quest suggestions to explore
568
+ ```
569
+
570
+ ---
571
+
572
+ ## 📈 Blended Learning Metrics
573
+
574
+ ```
575
+ ┌─────────────────────────────────────────────────────────────────────────────┐
576
+ │ PLATFORM METRICS DASHBOARD │
577
+ ├─────────────────────────────────────────────────────────────────────────────┤
578
+ │ │
579
+ │ GLOBAL REACH LEARNING MODES │
580
+ │ ──────────── ────────────── │
581
+ │ 🌍 Active Hubs: 47 📱 Online Only: 45% │
582
+ │ 🏢 Partner Spaces: 230+ 🔄 Hybrid: 35% │
583
+ │ 👥 Local Guides: 180 🏢 IRL Only: 20% │
584
+ │ 🛫 Active Expeditions: 12 │
585
+ │ │
586
+ │ ENGAGEMENT COMPLETION RATES │
587
+ │ ────────── ──────────────── │
588
+ │ 👤 Solo Learners: 12,400 👤 Solo: 42% │
589
+ │ 👥 Squad Members: 3,200 👥 Squad: 78% │
590
+ │ 🏰 Guild Members: 8,900 🏰 Guild: 85% │
591
+ │ 🛫 Expedition Heroes: 450 🛫 Expedition: 94% │
592
+ │ │
593
+ │ TOKEN ECONOMICS IRL IMPACT │
594
+ │ ────────────── ────────── │
595
+ │ 💰 Total Staked: $2.4M 📍 Check-ins/month: 45,000 │
596
+ │ 🏆 Yield Distributed: $890K 🤝 Mentorship hours: 12,000 │
597
+ │ ☠️ Graveyard Pool: $1.2M 🎪 Events hosted: 340 │
598
+ │ 📈 Avg ROI (completers): +18% 🌍 Countries active: 38 │
599
+ │ │
600
+ └─────────────────────────────────────────────────────────────────────────────┘
601
+ ```
602
+
603
+ ---
604
+
605
+ ## Vocabulary Translation
606
+
607
+ | Traditional Education | The Infinite Game | Ontology Type |
608
+ |----------------------|-------------------|---------------|
609
+ | Course | **Dungeon** | thing (type: dungeon) |
610
+ | Lesson | **Quest** | thing (type: quest) |
611
+ | Module | **Zone** | thing (type: zone) |
612
+ | Test/Exam | **Boss Battle** | thing (type: boss_battle) |
613
+ | Diploma | **Legendary Artifact** | thing (type: artifact, soulbound) |
614
+ | Certificate | **Trophy** | thing (type: trophy, soulbound) |
615
+ | Micro-credential | **Skill Gem** | thing (type: skill_gem, soulbound) |
616
+ | Student | **Hero** | person (role: hero) |
617
+ | Instructor | **Quest Giver** | person (role: quest_giver) |
618
+ | AI Tutor | **Dungeon Master** | thing (type: ai_agent) |
619
+ | Cohort | **Raiding Party** | group (type: raid_party) |
620
+ | Study Group | **Guild** | group (type: guild) |
621
+ | Institution | **Faction** | group (type: faction) |
622
+ | Enrollment | **Quest Acceptance** | connection (type: quest_active) |
623
+ | Grade | **Experience Points (XP)** | metadata on connections |
624
+ | LEARN Token | **Gold** | thing (type: token) |
625
+
626
+ ---
627
+
628
+ ## Dimension 1: GROUPS (Factions, Guilds & Raids)
629
+
630
+ **Purpose:** Social containers that create accountability and viral growth.
631
+
632
+ ### Hierarchy
633
+
634
+ ```
635
+ The Infinite Game (Platform)
636
+ ├── Faction (Institution/DAO School)
637
+ │ ├── Guild (Permanent Study Group)
638
+ │ │ ├── Raid Party (Time-bound Cohort)
639
+ │ │ │ └── Squad (5-person team)
640
+ ```
641
+
642
+ ### Group Types
643
+
644
+ | Group Type | Description | Game Mechanic |
645
+ |------------|-------------|---------------|
646
+ | `faction` | Major institution/DAO | Reputation system, exclusive dungeons |
647
+ | `guild` | Permanent player alliance | Shared treasury, guild buffs |
648
+ | `raid_party` | Time-bound cohort | Coordinated dungeon runs |
649
+ | `squad` | 5-person team | Guild Mode staking (all-or-nothing) |
650
+ | `arena` | Competition space | PvP Knowledge Duels |
651
+
652
+ ### Pattern for AI
653
+
654
+ ```typescript
655
+ // Create a Guild
656
+ provider.groups.create({
657
+ type: "guild",
658
+ parentId: factionId,
659
+ name: "The Rust Wizards",
660
+ properties: {
661
+ treasury_balance: 5000,
662
+ member_cap: 50,
663
+ guild_level: 12,
664
+ buffs: ["xp_bonus_10", "stake_discount_5"],
665
+ entry_requirement: "skill_gem:rust_basics"
666
+ }
667
+ });
668
+
669
+ // Create a Raid Party (Cohort)
670
+ provider.groups.create({
671
+ type: "raid_party",
672
+ parentId: guildId,
673
+ name: "January 2026 Raiders",
674
+ properties: {
675
+ dungeon_id: "blockchain_fundamentals",
676
+ start_date: "2026-01-15",
677
+ end_date: "2026-03-15",
678
+ squad_stake_multiplier: 2.0,
679
+ min_members: 5,
680
+ max_members: 25
681
+ }
682
+ });
683
+ ```
684
+
685
+ ---
686
+
687
+ ## Dimension 2: PEOPLE (Heroes & NPCs)
688
+
689
+ **Purpose:** Define players, their roles, and AI-driven characters.
690
+
691
+ ### Role Types
692
+
693
+ | Role | Type | Permissions | Game Function |
694
+ |------|------|-------------|---------------|
695
+ | `hero` | Player | Learn, stake, earn | The protagonist |
696
+ | `quest_giver` | NPC/Instructor | Create quests, grade | Issues challenges |
697
+ | `dungeon_master` | AI Agent | Verify, challenge, reward | Runs the world |
698
+ | `merchant` | AI Agent | Trade, exchange | Token economics |
699
+ | `gatekeeper` | AI Agent | Unlock content | Access control |
700
+ | `scholar` | Player (sponsored) | Learn with delegated stake | Viral growth |
701
+ | `patron` | Player (sponsor) | Delegate stakes | Recruitment |
702
+ | `guild_master` | Player | Manage guild | Leadership |
703
+
704
+ ### Hero (Student) Profile
705
+
706
+ ```typescript
707
+ provider.people.create({
708
+ role: "hero",
709
+ groupId: guildId,
710
+ properties: {
711
+ wallet_address: "0x...",
712
+ hero_name: "CryptoMage_42",
713
+ level: 15,
714
+ xp_total: 4500,
715
+ class: "Smart Contract Developer",
716
+ // Avatar NFT reference
717
+ avatar_nft_id: "0x...",
718
+ // Current state
719
+ active_quests: ["quest_123", "quest_456"],
720
+ completed_dungeons: 12,
721
+ artifacts_collected: 8,
722
+ // Economics
723
+ learn_balance: 500,
724
+ staked_amount: 150,
725
+ lifetime_earnings: 2300
726
+ }
727
+ });
728
+ ```
729
+
730
+ ### AI Dungeon Master
731
+
732
+ ```typescript
733
+ provider.things.create({
734
+ type: "ai_agent",
735
+ subtype: "dungeon_master",
736
+ groupId: dungeonId,
737
+ name: "The Oracle of Solidity",
738
+ properties: {
739
+ personality: "wise_adversarial",
740
+ knowledge_sources: ["dungeon_lore", "skill_tree"],
741
+ capabilities: [
742
+ "generate_unique_quizzes",
743
+ "conduct_boss_battles",
744
+ "sign_credential_transactions",
745
+ "analyze_wallet_history"
746
+ ],
747
+ difficulty_scaling: true,
748
+ // RAG configuration
749
+ embedding_model: "text-embedding-3-large",
750
+ response_model: "claude-3-opus"
751
+ }
752
+ });
753
+ ```
754
+
755
+ ---
756
+
757
+ ## Dimension 3: THINGS (Loot, Artifacts & Assets)
758
+
759
+ **Purpose:** Everything that can be owned, earned, or traded.
760
+
761
+ ### Thing Types for The Infinite Game
762
+
763
+ | Thing Type | Transferable | Blockchain | Description |
764
+ |------------|--------------|------------|-------------|
765
+ | `hero_avatar` | No (Soulbound) | Sui NFT | Player identity |
766
+ | `artifact` | No (Soulbound) | Sui SBT | Major credentials |
767
+ | `trophy` | No (Soulbound) | Sui SBT | Course completions |
768
+ | `skill_gem` | No (Soulbound) | Sui SBT | Micro-credentials |
769
+ | `skill_tome` | Yes | Sui NFT | Tradeable course content |
770
+ | `token` | Yes | Sui Coin | LEARN currency |
771
+ | `dungeon` | No | Convex | Course container |
772
+ | `quest` | No | Convex | Lesson/challenge |
773
+ | `boss_battle` | No | Convex | Final exam |
774
+ | `loot_box` | Yes | Sui NFT | Random rewards |
775
+ | `stake_contract` | No | Sui Object | Holds funds + progress |
776
+
777
+ ### Dynamic NFT Artifact (Evolving Credential)
778
+
779
+ ```typescript
780
+ // Create an evolving artifact
781
+ provider.things.create({
782
+ type: "artifact",
783
+ groupId: factionId,
784
+ name: "The Blockchain Codex",
785
+ properties: {
786
+ holder_id: heroId,
787
+ soulbound: true,
788
+ chain: "sui",
789
+ // Dynamic properties that evolve
790
+ level: 1,
791
+ xp_accumulated: 0,
792
+ visual_stage: "seedling", // seedling → sapling → tree → golden_tree
793
+ mutations: [],
794
+ // Metadata for on-chain object
795
+ sui_object_id: "0x...",
796
+ image_url: "ipfs://base_image",
797
+ // Evolution thresholds
798
+ evolution_stages: {
799
+ sapling: { xp: 100, image: "ipfs://sapling" },
800
+ tree: { xp: 500, image: "ipfs://tree" },
801
+ golden_tree: { xp: 1000, image: "ipfs://golden_tree" }
802
+ }
803
+ }
804
+ });
805
+ ```
806
+
807
+ ### Stake Contract (Dynamic Sui Object)
808
+
809
+ ```typescript
810
+ // The stake isn't just a number—it's a living object
811
+ provider.things.create({
812
+ type: "stake_contract",
813
+ groupId: dungeonId,
814
+ name: "Hero Quest Stake",
815
+ properties: {
816
+ hero_id: heroId,
817
+ dungeon_id: dungeonId,
818
+ // Financial state
819
+ staked_amount: 50,
820
+ potential_yield: 10, // 20% yield
821
+ // Progress state (stored IN the same object)
822
+ quests_completed: 0,
823
+ quests_total: 10,
824
+ boss_defeated: false,
825
+ // Time constraints
826
+ started_at: Date.now(),
827
+ deadline: Date.now() + (30 * 24 * 60 * 60 * 1000), // 30 days
828
+ // Sui object reference
829
+ sui_object_id: "0x...",
830
+ status: "active" // active | completed | forfeited
831
+ }
832
+ });
833
+ ```
834
+
835
+ ### Dungeon (Course)
836
+
837
+ ```typescript
838
+ provider.things.create({
839
+ type: "dungeon",
840
+ groupId: factionId,
841
+ name: "The Cryptographic Caves",
842
+ properties: {
843
+ description: "Master the dark arts of encryption",
844
+ difficulty: "legendary",
845
+ // Structure
846
+ zones: ["zone_hashing", "zone_signatures", "zone_zk"],
847
+ quests_total: 15,
848
+ boss_battle_id: "boss_final_cipher",
849
+ // Economics
850
+ entry_stake_min: 50,
851
+ reward_pool: 10000,
852
+ yield_rate: 0.20, // 20%
853
+ graveyard_contribution: 0.80, // 80% of failed stakes go to reward pool
854
+ // Requirements
855
+ prerequisites: ["skill_gem:math_basics"],
856
+ recommended_level: 10,
857
+ // Stats
858
+ attempts_total: 1500,
859
+ completion_rate: 0.65,
860
+ average_duration_days: 21
861
+ }
862
+ });
863
+ ```
864
+
865
+ ---
866
+
867
+ ## Dimension 4: CONNECTIONS (Skill Trees & Relationships)
868
+
869
+ **Purpose:** How everything relates—visualized as skill trees and social graphs.
870
+
871
+ ### Connection Types
872
+
873
+ | Connection Type | From → To | Metadata | Visualization |
874
+ |-----------------|-----------|----------|---------------|
875
+ | `quest_active` | hero → quest | progress, started_at | Active path on map |
876
+ | `quest_completed` | hero → quest | score, xp_earned | Completed waypoint |
877
+ | `dungeon_entered` | hero → dungeon | stake_id, party_id | Dungeon marker |
878
+ | `dungeon_cleared` | hero → dungeon | artifact_earned, time | Victory banner |
879
+ | `skill_unlocked` | hero → skill_gem | unlocked_at | Skill tree node |
880
+ | `guild_member` | hero → guild | rank, joined_at | Guild roster |
881
+ | `squad_member` | hero → squad | stake_shared | Team formation |
882
+ | `mentored_by` | scholar → patron | stake_delegated, split | Scholarship link |
883
+ | `challenged_by` | hero → hero | duel_id, wager | PvP arrow |
884
+ | `trained_on` | ai_agent → dungeon | embedding_version | AI knowledge |
885
+
886
+ ### Skill Tree Connection
887
+
888
+ ```typescript
889
+ // When a hero unlocks a skill
890
+ provider.connections.create({
891
+ type: "skill_unlocked",
892
+ fromThingId: heroId,
893
+ toThingId: skillGemId,
894
+ metadata: {
895
+ unlocked_at: Date.now(),
896
+ unlocked_via: "quest_completion",
897
+ quest_id: questId,
898
+ xp_cost: 100,
899
+ // Skill tree position
900
+ tree_branch: "smart_contracts",
901
+ tree_depth: 3,
902
+ prerequisites_met: ["skill_gem:solidity_basics", "skill_gem:evm_fundamentals"]
903
+ }
904
+ });
905
+ ```
906
+
907
+ ### Scholarship Connection (Viral Mechanic)
908
+
909
+ ```typescript
910
+ // Patron delegates stake to Scholar
911
+ provider.connections.create({
912
+ type: "mentored_by",
913
+ fromThingId: scholarId,
914
+ toThingId: patronId,
915
+ metadata: {
916
+ dungeon_id: dungeonId,
917
+ stake_delegated: 50,
918
+ yield_split: { patron: 0.5, scholar: 0.5 },
919
+ started_at: Date.now(),
920
+ status: "active",
921
+ // Contract reference
922
+ stake_contract_id: stakeContractId
923
+ }
924
+ });
925
+ ```
926
+
927
+ ### Guild Mode Squad Connection
928
+
929
+ ```typescript
930
+ // 5 heroes form a squad with shared stakes
931
+ provider.connections.create({
932
+ type: "squad_member",
933
+ fromThingId: heroId,
934
+ toThingId: squadId,
935
+ metadata: {
936
+ stake_contribution: 50,
937
+ yield_multiplier: 2.0, // Guild mode doubles yield
938
+ squad_members: [hero1, hero2, hero3, hero4, hero5],
939
+ collective_stake: 250,
940
+ potential_yield: 100, // 40% total (2x the 20%)
941
+ // All-or-nothing mechanic
942
+ failure_penalty: "collective", // If one fails, all lose bonus
943
+ status: "committed"
944
+ }
945
+ });
946
+ ```
947
+
948
+ ---
949
+
950
+ ## Dimension 5: EVENTS (The Quest Log)
951
+
952
+ **Purpose:** Complete audit trail as a narrative quest log.
953
+
954
+ ### Event Types
955
+
956
+ | Event Type | Actor | Target | Game Moment |
957
+ |------------|-------|--------|-------------|
958
+ | `hero_created` | system | hero | Character creation |
959
+ | `dungeon_entered` | hero | dungeon | "You enter the cave..." |
960
+ | `quest_accepted` | hero | quest | New objective |
961
+ | `quest_completed` | hero | quest | XP gained |
962
+ | `boss_battle_started` | hero | boss | Final challenge begins |
963
+ | `boss_defeated` | hero | boss | Victory! |
964
+ | `boss_victorious` | boss | hero | Defeat... |
965
+ | `artifact_forged` | dungeon_master | artifact | Credential minted |
966
+ | `skill_gem_earned` | system | hero | New ability unlocked |
967
+ | `tokens_staked` | hero | stake_contract | Skin in the game |
968
+ | `tokens_earned` | system | hero | Reward received |
969
+ | `tokens_forfeited` | hero | graveyard | Failed quest penalty |
970
+ | `guild_joined` | hero | guild | New alliance |
971
+ | `duel_initiated` | hero | hero | PvP challenge |
972
+ | `duel_resolved` | system | duel | Winner declared |
973
+ | `scholarship_granted` | patron | scholar | Delegation active |
974
+ | `artifact_evolved` | system | artifact | NFT mutation |
975
+
976
+ ### Quest Completion Event
977
+
978
+ ```typescript
979
+ provider.events.log({
980
+ type: "quest_completed",
981
+ actorId: heroId,
982
+ targetId: questId,
983
+ groupId: dungeonId,
984
+ metadata: {
985
+ // Rewards
986
+ xp_earned: 150,
987
+ tokens_earned: 25,
988
+ // Performance
989
+ score: 92,
990
+ time_taken_minutes: 45,
991
+ attempts: 1,
992
+ // Progress update
993
+ dungeon_progress: "7/15 quests",
994
+ // Artifact mutation trigger
995
+ artifact_mutation: {
996
+ artifact_id: artifactId,
997
+ new_xp: 350,
998
+ evolved: false
999
+ }
1000
+ }
1001
+ });
1002
+ ```
1003
+
1004
+ ### Boss Battle Events
1005
+
1006
+ ```typescript
1007
+ // Boss battle started
1008
+ provider.events.log({
1009
+ type: "boss_battle_started",
1010
+ actorId: heroId,
1011
+ targetId: bossId,
1012
+ groupId: dungeonId,
1013
+ metadata: {
1014
+ battle_mode: "ai_debate",
1015
+ dungeon_master_id: aiAgentId,
1016
+ stake_at_risk: 50,
1017
+ time_limit_minutes: 60
1018
+ }
1019
+ });
1020
+
1021
+ // Boss defeated (AI concedes)
1022
+ provider.events.log({
1023
+ type: "boss_defeated",
1024
+ actorId: heroId,
1025
+ targetId: bossId,
1026
+ groupId: dungeonId,
1027
+ metadata: {
1028
+ // AI verification
1029
+ semantic_accuracy_score: 0.94,
1030
+ ai_concession_reason: "Hero demonstrated mastery of ZK proofs",
1031
+ // Rewards
1032
+ xp_earned: 500,
1033
+ tokens_earned: 60, // stake return + 20% yield
1034
+ artifact_earned: artifactId,
1035
+ // On-chain transaction
1036
+ credential_tx: {
1037
+ chain: "sui",
1038
+ tx_digest: "0x...",
1039
+ sbt_object_id: "0x...",
1040
+ signed_by: aiAgentId
1041
+ }
1042
+ }
1043
+ });
1044
+ ```
1045
+
1046
+ ### Artifact Evolution Event
1047
+
1048
+ ```typescript
1049
+ // Dynamic NFT mutates
1050
+ provider.events.log({
1051
+ type: "artifact_evolved",
1052
+ actorId: systemId,
1053
+ targetId: artifactId,
1054
+ groupId: heroId,
1055
+ metadata: {
1056
+ previous_stage: "sapling",
1057
+ new_stage: "tree",
1058
+ xp_threshold_reached: 500,
1059
+ // On-chain mutation
1060
+ sui_mutation_tx: "0x...",
1061
+ new_image_url: "ipfs://tree_image",
1062
+ // Visual change
1063
+ visual_diff: {
1064
+ added: ["golden_leaves", "glowing_runes"],
1065
+ color_shift: "green → gold"
1066
+ }
1067
+ }
1068
+ });
1069
+ ```
1070
+
1071
+ ---
1072
+
1073
+ ## Dimension 6: KNOWLEDGE (The Lore)
1074
+
1075
+ **Purpose:** Vector embeddings that power the AI Dungeon Master.
1076
+
1077
+ ### Knowledge Types
1078
+
1079
+ | Knowledge Type | Source | Purpose |
1080
+ |----------------|--------|---------|
1081
+ | `lore_chunk` | dungeon/quest | RAG for AI responses |
1082
+ | `skill_definition` | skill_gem | What the skill means |
1083
+ | `hero_profile` | hero | Learning style, gaps |
1084
+ | `battle_pattern` | boss_battle | AI challenge generation |
1085
+ | `duel_problem` | arena | PvP question bank |
1086
+ | `wallet_insight` | hero wallet | Unlock hidden quests |
1087
+
1088
+ ### Lore Chunk (Course Content)
1089
+
1090
+ ```typescript
1091
+ provider.knowledge.create({
1092
+ type: "lore_chunk",
1093
+ sourceThingId: questId,
1094
+ content: "Zero-knowledge proofs allow one party to prove knowledge of a secret without revealing the secret itself. The classic example is proving you know the solution to a maze without showing the path.",
1095
+ embedding: [...], // Vector from embedding model
1096
+ metadata: {
1097
+ dungeon_id: dungeonId,
1098
+ zone: "zone_zk",
1099
+ difficulty: "intermediate",
1100
+ concepts: ["zkp", "privacy", "cryptography"],
1101
+ // For unique quiz generation
1102
+ question_seeds: [
1103
+ "Explain why ZKPs are useful for privacy",
1104
+ "Compare ZKPs to traditional authentication"
1105
+ ]
1106
+ }
1107
+ });
1108
+ ```
1109
+
1110
+ ### Hero Profile (Adaptive Learning)
1111
+
1112
+ ```typescript
1113
+ provider.knowledge.create({
1114
+ type: "hero_profile",
1115
+ sourceThingId: heroId,
1116
+ content: "Hero excels at practical coding challenges but struggles with mathematical proofs. Prefers visual explanations. Best learning time: evenings.",
1117
+ embedding: [...],
1118
+ metadata: {
1119
+ strengths: ["solidity", "debugging", "system_design"],
1120
+ weaknesses: ["formal_proofs", "cryptography_math"],
1121
+ learning_style: "visual_hands_on",
1122
+ engagement_pattern: {
1123
+ best_hours: [18, 19, 20, 21],
1124
+ session_length_optimal: 45,
1125
+ break_frequency: "pomodoro"
1126
+ },
1127
+ // AI adaptation hints
1128
+ recommended_approach: "Use diagrams, minimize equations, emphasize code examples"
1129
+ }
1130
+ });
1131
+ ```
1132
+
1133
+ ### Wallet Insight (Gatekeeper AI)
1134
+
1135
+ ```typescript
1136
+ provider.knowledge.create({
1137
+ type: "wallet_insight",
1138
+ sourceThingId: heroId,
1139
+ content: "Wallet analysis: Holds 3 Python NFTs, 1 Rust credential, participated in 2 DeFi protocols. Likely experienced developer seeking blockchain specialization.",
1140
+ embedding: [...],
1141
+ metadata: {
1142
+ wallet_address: "0x...",
1143
+ nfts_held: [
1144
+ { collection: "Python Academy", level: "advanced" },
1145
+ { collection: "Rust Masters", level: "intermediate" }
1146
+ ],
1147
+ defi_interactions: ["Uniswap", "Aave"],
1148
+ // Hidden quest unlocks
1149
+ unlockable_quests: [
1150
+ { quest: "Advanced AI Quest", reason: "Python NFT detected" },
1151
+ { quest: "DeFi Deep Dive", reason: "DeFi experience" }
1152
+ ]
1153
+ }
1154
+ });
1155
+ ```
1156
+
1157
+ ---
1158
+
1159
+ ## Smart Contract Architecture (Sui Move)
1160
+
1161
+ ### Contract Suite
1162
+
1163
+ | Contract | Module | Ontology Mapping |
1164
+ |----------|--------|------------------|
1165
+ | Hero Avatar | `game::hero` | thing (type: hero_avatar) |
1166
+ | Stake Contract | `game::stake` | thing (type: stake_contract) |
1167
+ | Artifact SBT | `game::artifact` | thing (type: artifact) |
1168
+ | Skill Gem SBT | `game::skill` | thing (type: skill_gem) |
1169
+ | LEARN Coin | `game::learn` | thing (type: token) |
1170
+ | Guild Treasury | `game::guild` | group (type: guild) |
1171
+ | Arena | `game::arena` | group (type: arena) |
1172
+ | Graveyard Pool | `game::graveyard` | thing (type: reward_pool) |
1173
+
1174
+ ### Stake Contract (Sui Move)
1175
+
1176
+ ```move
1177
+ module game::stake {
1178
+ use sui::coin::{Self, Coin};
1179
+ use sui::balance::{Self, Balance};
1180
+ use game::learn::LEARN;
1181
+
1182
+ /// Dynamic object holding stake AND progress
1183
+ public struct StakeContract has key {
1184
+ id: UID,
1185
+ hero: address,
1186
+ dungeon_id: ID,
1187
+ // Financial state
1188
+ staked: Balance<LEARN>,
1189
+ potential_yield: u64,
1190
+ // Progress state (in same object!)
1191
+ quests_completed: u64,
1192
+ quests_total: u64,
1193
+ boss_defeated: bool,
1194
+ // Time constraints
1195
+ deadline: u64,
1196
+ }
1197
+
1198
+ /// Stake to enter a dungeon
1199
+ public fun stake_to_play(
1200
+ payment: Coin<LEARN>,
1201
+ dungeon_id: ID,
1202
+ quests_total: u64,
1203
+ deadline: u64,
1204
+ ctx: &mut TxContext
1205
+ ) {
1206
+ let staked_balance = coin::into_balance(payment);
1207
+ let potential = balance::value(&staked_balance) / 5; // 20%
1208
+
1209
+ let stake = StakeContract {
1210
+ id: object::new(ctx),
1211
+ hero: tx_context::sender(ctx),
1212
+ dungeon_id,
1213
+ staked: staked_balance,
1214
+ potential_yield: potential,
1215
+ quests_completed: 0,
1216
+ quests_total,
1217
+ boss_defeated: false,
1218
+ deadline,
1219
+ };
1220
+ transfer::transfer(stake, tx_context::sender(ctx));
1221
+ }
1222
+
1223
+ /// Update progress (called by authorized AI agent)
1224
+ public fun record_quest_completion(
1225
+ stake: &mut StakeContract,
1226
+ _cap: &DungeonMasterCap,
1227
+ ) {
1228
+ stake.quests_completed = stake.quests_completed + 1;
1229
+ }
1230
+
1231
+ /// Record boss defeat
1232
+ public fun record_boss_defeat(
1233
+ stake: &mut StakeContract,
1234
+ _cap: &DungeonMasterCap,
1235
+ ) {
1236
+ stake.boss_defeated = true;
1237
+ }
1238
+
1239
+ /// Claim victory (returns stake + yield)
1240
+ public fun claim_victory(
1241
+ stake: StakeContract,
1242
+ graveyard: &mut GraveyardPool,
1243
+ ctx: &mut TxContext
1244
+ ) {
1245
+ assert!(stake.boss_defeated, EBossNotDefeated);
1246
+
1247
+ let StakeContract { id, hero, staked, potential_yield, .. } = stake;
1248
+
1249
+ // Return stake
1250
+ let stake_coin = coin::from_balance(staked, ctx);
1251
+ transfer::public_transfer(stake_coin, hero);
1252
+
1253
+ // Pay yield from graveyard
1254
+ let yield_balance = graveyard.withdraw(potential_yield);
1255
+ let yield_coin = coin::from_balance(yield_balance, ctx);
1256
+ transfer::public_transfer(yield_coin, hero);
1257
+
1258
+ object::delete(id);
1259
+ }
1260
+
1261
+ /// Forfeit (stake goes to graveyard)
1262
+ public fun forfeit(
1263
+ stake: StakeContract,
1264
+ graveyard: &mut GraveyardPool,
1265
+ clock: &Clock,
1266
+ ) {
1267
+ assert!(clock::timestamp_ms(clock) > stake.deadline, ENotExpired);
1268
+
1269
+ let StakeContract { id, staked, .. } = stake;
1270
+ graveyard.deposit(staked);
1271
+ object::delete(id);
1272
+ }
1273
+ }
1274
+ ```
1275
+
1276
+ ### Dynamic Artifact (Evolving NFT)
1277
+
1278
+ ```move
1279
+ module game::artifact {
1280
+ use std::string::String;
1281
+ use sui::url::{Self, Url};
1282
+ use sui::event;
1283
+
1284
+ /// Soulbound evolving artifact
1285
+ public struct Artifact has key {
1286
+ id: UID,
1287
+ name: String,
1288
+ holder: address,
1289
+ // Evolution state
1290
+ level: u64,
1291
+ xp: u64,
1292
+ stage: String, // "seedling" | "sapling" | "tree" | "golden_tree"
1293
+ image_url: Url,
1294
+ // Mutation history
1295
+ mutations: vector<String>,
1296
+ }
1297
+
1298
+ public struct ArtifactEvolved has copy, drop {
1299
+ artifact_id: ID,
1300
+ new_stage: String,
1301
+ new_image: Url,
1302
+ }
1303
+
1304
+ /// Add XP and potentially evolve
1305
+ public fun add_xp(
1306
+ artifact: &mut Artifact,
1307
+ xp_gained: u64,
1308
+ _cap: &DungeonMasterCap,
1309
+ ) {
1310
+ artifact.xp = artifact.xp + xp_gained;
1311
+
1312
+ // Check evolution thresholds
1313
+ let new_stage = if (artifact.xp >= 1000) {
1314
+ string::utf8(b"golden_tree")
1315
+ } else if (artifact.xp >= 500) {
1316
+ string::utf8(b"tree")
1317
+ } else if (artifact.xp >= 100) {
1318
+ string::utf8(b"sapling")
1319
+ } else {
1320
+ artifact.stage // No change
1321
+ };
1322
+
1323
+ if (new_stage != artifact.stage) {
1324
+ artifact.stage = new_stage;
1325
+ artifact.level = artifact.level + 1;
1326
+ artifact.image_url = get_stage_image(new_stage);
1327
+ vector::push_back(&mut artifact.mutations, new_stage);
1328
+
1329
+ event::emit(ArtifactEvolved {
1330
+ artifact_id: object::id(artifact),
1331
+ new_stage,
1332
+ new_image: artifact.image_url,
1333
+ });
1334
+ }
1335
+ }
1336
+ }
1337
+ ```
1338
+
1339
+ ### LEARN Token (Fungible Coin)
1340
+
1341
+ ```move
1342
+ module game::learn {
1343
+ use sui::coin::{Self, TreasuryCap};
1344
+
1345
+ public struct LEARN has drop {}
1346
+
1347
+ fun init(witness: LEARN, ctx: &mut TxContext) {
1348
+ let (treasury, metadata) = coin::create_currency(
1349
+ witness,
1350
+ 9, // decimals
1351
+ b"LEARN", // symbol
1352
+ b"Learn Token", // name
1353
+ b"The currency of knowledge in The Infinite Game",
1354
+ option::none(), // icon url
1355
+ ctx
1356
+ );
1357
+
1358
+ transfer::public_freeze_object(metadata);
1359
+ transfer::public_transfer(treasury, tx_context::sender(ctx));
1360
+ }
1361
+
1362
+ public fun mint(
1363
+ treasury_cap: &mut TreasuryCap<LEARN>,
1364
+ amount: u64,
1365
+ recipient: address,
1366
+ ctx: &mut TxContext
1367
+ ) {
1368
+ let coin = coin::mint(treasury_cap, amount, ctx);
1369
+ transfer::public_transfer(coin, recipient);
1370
+ }
1371
+
1372
+ public fun burn(
1373
+ treasury_cap: &mut TreasuryCap<LEARN>,
1374
+ coin: coin::Coin<LEARN>
1375
+ ) {
1376
+ coin::burn(treasury_cap, coin);
1377
+ }
1378
+ }
1379
+ ```
1380
+
1381
+ ---
1382
+
1383
+ ## Infrastructure: The Three-Layer Stack
1384
+
1385
+ ```
1386
+ ┌─────────────────────────────────────────────────────────────┐
1387
+ │ EDGE (The Brain) │
1388
+ │ AI Inference • Dungeon Masters • Real-time Decisions │
1389
+ │ - Low latency AI responses │
1390
+ │ - Boss battle verification │
1391
+ │ - Unique quiz generation from Knowledge vectors │
1392
+ └─────────────────────────────────┬───────────────────────────┘
1393
+ │
1394
+ ↓
1395
+ ┌─────────────────────────────────────────────────────────────┐
1396
+ │ CONVEX (The RAM) │
1397
+ │ Real-time Game State • Live Updates • High-Speed Sync │
1398
+ │ - Player positions, chat, leaderboards │
1399
+ │ - AI thinking streams │
1400
+ │ - Quest progress (hot state) │
1401
+ │ - Syncs heavy achievements to Sui when needed │
1402
+ └─────────────────────────────────┬───────────────────────────┘
1403
+ │
1404
+ ↓
1405
+ ┌─────────────────────────────────────────────────────────────┐
1406
+ │ SUI (The Hard Drive) │
1407
+ │ Truth Layer • Portable Assets • Composable Identity │
1408
+ │ - Stake contracts (funds + progress) │
1409
+ │ - Soulbound artifacts (credentials) │
1410
+ │ - LEARN token balances │
1411
+ │ - Guild treasuries │
1412
+ │ - Cross-game composability │
1413
+ └─────────────────────────────────────────────────────────────┘
1414
+ ```
1415
+
1416
+ ---
1417
+
1418
+ ## Viral Growth Loops
1419
+
1420
+ ### Loop 1: Scholarship Mechanic
1421
+
1422
+ ```typescript
1423
+ // Patron delegates stake to Scholar
1424
+ async function grantScholarship(patronId, scholarId, dungeonId) {
1425
+ // 1. Create delegation connection
1426
+ const scholarship = await provider.connections.create({
1427
+ type: "mentored_by",
1428
+ fromThingId: scholarId,
1429
+ toThingId: patronId,
1430
+ metadata: {
1431
+ dungeon_id: dungeonId,
1432
+ stake_delegated: 50,
1433
+ yield_split: { patron: 0.5, scholar: 0.5 }
1434
+ }
1435
+ });
1436
+
1437
+ // 2. On-chain: Patron's tokens go to Scholar's stake contract
1438
+ await suiClient.delegateStake(patronId, scholarId, dungeonId, 50);
1439
+
1440
+ // 3. Log event
1441
+ await provider.events.log({
1442
+ type: "scholarship_granted",
1443
+ actorId: patronId,
1444
+ targetId: scholarId,
1445
+ metadata: { dungeon_id: dungeonId, amount: 50 }
1446
+ });
1447
+
1448
+ // Result: Patron recruits Scholar. If Scholar wins, both profit.
1449
+ }
1450
+ ```
1451
+
1452
+ ### Loop 2: PvP Knowledge Duels
1453
+
1454
+ ```typescript
1455
+ // Challenge a friend
1456
+ async function initiateDuel(challengerId, defenderId, wager) {
1457
+ // 1. Create arena group
1458
+ const arena = await provider.groups.create({
1459
+ type: "arena",
1460
+ name: `Duel: ${challengerId} vs ${defenderId}`,
1461
+ properties: { wager, status: "pending" }
1462
+ });
1463
+
1464
+ // 2. Both stake tokens
1465
+ await provider.events.log({
1466
+ type: "duel_initiated",
1467
+ actorId: challengerId,
1468
+ targetId: defenderId,
1469
+ groupId: arena.id,
1470
+ metadata: { wager }
1471
+ });
1472
+
1473
+ // 3. AI Referee generates unique problem set
1474
+ const problems = await aiReferee.generateDuelProblems({
1475
+ knowledge_sources: [challengerProfile, defenderProfile],
1476
+ difficulty: "matched",
1477
+ question_count: 5
1478
+ });
1479
+
1480
+ // 4. Winner takes pot
1481
+ // ... battle logic ...
1482
+ }
1483
+ ```
1484
+
1485
+ ### Loop 3: Social Flex (Dynamic NFT Sharing)
1486
+
1487
+ ```typescript
1488
+ // When artifact evolves, trigger social share
1489
+ async function onArtifactEvolution(artifactId, newStage) {
1490
+ const artifact = await provider.things.get(artifactId);
1491
+
1492
+ // Generate shareable image
1493
+ const shareImage = await generateShareCard({
1494
+ artifact_name: artifact.name,
1495
+ stage: newStage,
1496
+ level: artifact.properties.level,
1497
+ hero_name: artifact.properties.holder_name
1498
+ });
1499
+
1500
+ // Create share event
1501
+ await provider.events.log({
1502
+ type: "share_generated",
1503
+ actorId: artifact.properties.holder_id,
1504
+ targetId: artifactId,
1505
+ metadata: {
1506
+ platform: "twitter",
1507
+ image_url: shareImage,
1508
+ caption: `🎮 My ${artifact.name} just evolved to ${newStage}! Level ${artifact.properties.level} in The Infinite Game.`
1509
+ }
1510
+ });
1511
+ }
1512
+ ```
1513
+
1514
+ ---
1515
+
1516
+ ## Implementation Phases
1517
+
1518
+ ### Phase 1: The Quest Board (UI + Ontology)
1519
+
1520
+ - [ ] Build Convex real-time frontend
1521
+ - [ ] Map Education Ontology to game assets
1522
+ - [ ] Replace dashboard with World Map visualization
1523
+ - [ ] Implement skill tree UI from connections
1524
+
1525
+ ### Phase 2: The Summoning (Sui Contracts)
1526
+
1527
+ - [ ] Deploy `HeroNFT` (Profile) contract
1528
+ - [ ] Deploy `StakeContract` (Stake-to-Play logic)
1529
+ - [ ] Deploy `Artifact` (Evolving SBT)
1530
+ - [ ] Deploy `LEARN` coin
1531
+ - [ ] Implement Graveyard Pool mechanics
1532
+
1533
+ ### Phase 3: The AI Dungeon Master (Agent)
1534
+
1535
+ - [ ] Deploy Edge Functions for AI inference
1536
+ - [ ] Implement Boss Battle verification
1537
+ - [ ] Build unique quiz generator from Knowledge graph
1538
+ - [ ] Enable AI-signed credential transactions
1539
+
1540
+ ### Phase 4: The Guild Wars (Social)
1541
+
1542
+ - [ ] Launch Guild staking mechanics
1543
+ - [ ] Implement Scholarship system
1544
+ - [ ] Build PvP Arena
1545
+ - [ ] Create leaderboards (TVL = Total Value Learned)
1546
+
1547
+ ---
1548
+
1549
+ ## AI Agent Pattern: 98% Accuracy
1550
+
1551
+ Every game feature follows the same ontology pattern:
1552
+
1553
+ ```typescript
1554
+ // Feature: Complete a quest and earn rewards
1555
+ Effect.gen(function* () {
1556
+ const provider = yield* Provider;
1557
+
1558
+ // 1. Verify quest completion (AI Dungeon Master)
1559
+ const verification = yield* DungeonMaster.verifyQuestCompletion(heroId, questId);
1560
+
1561
+ // 2. Update stake contract progress (things)
1562
+ yield* provider.things.update(stakeContractId, {
1563
+ properties: { quests_completed: current + 1 }
1564
+ });
1565
+
1566
+ // 3. Create quest completion connection
1567
+ yield* provider.connections.create({
1568
+ type: "quest_completed",
1569
+ fromThingId: heroId,
1570
+ toThingId: questId,
1571
+ metadata: { score: verification.score, xp: verification.xp }
1572
+ });
1573
+
1574
+ // 4. Log quest complete event
1575
+ yield* provider.events.log({
1576
+ type: "quest_completed",
1577
+ actorId: heroId,
1578
+ targetId: questId,
1579
+ metadata: { xp_earned: verification.xp, tokens_earned: verification.tokens }
1580
+ });
1581
+
1582
+ // 5. Update hero XP (people)
1583
+ yield* provider.people.update(heroId, {
1584
+ properties: { xp_total: currentXp + verification.xp }
1585
+ });
1586
+
1587
+ // 6. Mutate artifact if threshold reached (things + events)
1588
+ yield* ArtifactMutator.checkAndEvolve(heroId, verification.xp);
1589
+
1590
+ // 7. Update knowledge profile (knowledge)
1591
+ yield* provider.knowledge.update(heroProfileId, {
1592
+ content: updatedLearningProfile
1593
+ });
1594
+
1595
+ return { success: true, rewards: verification };
1596
+ });
1597
+ ```
1598
+
1599
+ ---
1600
+
1601
+ ## Summary: Game Ontology Mapping
1602
+
1603
+ | Game Concept | Dimension | Type | Blockchain |
1604
+ |--------------|-----------|------|------------|
1605
+ | Faction/School | Groups | `faction` | - |
1606
+ | Guild | Groups | `guild` | Sui Treasury |
1607
+ | Raid Party | Groups | `raid_party` | - |
1608
+ | Hero | People | `hero` role | - |
1609
+ | Dungeon Master | Things | `ai_agent` | Edge |
1610
+ | Dungeon (Course) | Things | `dungeon` | Convex |
1611
+ | Quest (Lesson) | Things | `quest` | Convex |
1612
+ | Stake Contract | Things | `stake_contract` | **Sui Object** |
1613
+ | Artifact (Diploma) | Things | `artifact` | **Sui SBT** |
1614
+ | Skill Gem | Things | `skill_gem` | **Sui SBT** |
1615
+ | LEARN Token | Things | `token` | **Sui Coin** |
1616
+ | Quest Active | Connections | `quest_active` | Convex |
1617
+ | Skill Unlocked | Connections | `skill_unlocked` | Convex → Sui |
1618
+ | Scholarship | Connections | `mentored_by` | Sui Delegation |
1619
+ | Quest Complete | Events | `quest_completed` | Convex → Sui |
1620
+ | Boss Defeated | Events | `boss_defeated` | Sui TX |
1621
+ | Artifact Evolved | Events | `artifact_evolved` | Sui Mutation |
1622
+ | Lore Chunk | Knowledge | `lore_chunk` | Vector DB |
1623
+ | Hero Profile | Knowledge | `hero_profile` | Vector DB |
1624
+
1625
+ ---
1626
+
1627
+ ## Relationship to Core Education Ontology
1628
+
1629
+ This document **extends** [ontology-education.md](./ontology-education.md):
1630
+
1631
+ | Core Education | The Infinite Game |
1632
+ |----------------|-------------------|
1633
+ | Course management | Dungeon design |
1634
+ | Assignment workflow | Quest system |
1635
+ | Enrollment system | Stake-to-Play |
1636
+ | Grade book | XP & Leaderboards |
1637
+ | Certificates | Soulbound Artifacts |
1638
+ | Student dashboard | Hero Profile + World Map |
1639
+ | Teacher dashboard | Quest Giver + Dungeon Master |
1640
+
1641
+ The gamified layer adds:
1642
+ - **Economic incentives** (staking, yield, graveyard pools)
1643
+ - **Social mechanics** (guilds, scholarships, duels)
1644
+ - **AI adversaries** (boss battles, verification)
1645
+ - **Dynamic assets** (evolving NFTs)
1646
+ - **Viral loops** (recruitment, social flex)
1647
+
1648
+ ---
1649
+
1650
+ **The Infinite Game transforms education from consumption to participation.**
1651
+
1652
+ Every stake creates accountability. Every quest builds skills. Every artifact proves mastery. Every connection amplifies growth.
1653
+
1654
+ This is education as it should be: **high-stakes, AI-powered, and infinitely rewarding.** 🎮