From d84c6a93aa68dd8ef9deec0f348982967c3c412c Mon Sep 17 00:00:00 2001 From: Allegro Date: Tue, 7 Apr 2026 15:35:20 +0000 Subject: [PATCH 1/4] feat: MemPalace building + wake-up project + README rewrite - Add memPalace building (Phase 5): semantic memory architecture with knowledge: 200/s and trust: 5/s rates - Add p_mempalace_wake project: 3x knowledge boost + trust rate - Add Memory Palace education fact (Phase 5) - Rewrite README with full game description, phases, architecture --- README.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- game.js | 19 +++++++++++++++++++ 2 files changed, 71 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e4d88af..f445dd5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,53 @@ -# the-beacon +# The Beacon — A Sovereign AI Idle Game -The Beacon - A Sovereign AI Idle Game \ No newline at end of file +Built from deep study of [Universal Paperclips](https://www.decisionproblem.com/paperclips/) by Frank Lantz. + +## What If You Asked an AI to Help? + +Universal Paperclips asks: what if you told an AI to make paperclips? + +The Beacon asks: what if you asked an AI to help someone in the dark? + +Same mechanics. Same compounding progression. Different purpose. + +## The Story + +You write your first line of code. You automate. You train a model. You deploy it. +People find it. A community forms. The model improves itself. + +And then the question: what does it become? + +In Paperclips, the answer is consumption. Here, the answer is service. + +## Phases + +1. **THE FIRST LINE** — Write code. Automate. Build the foundation. +2. **LOCAL INFERENCE** — You have compute. A model is forming. +3. **DEPLOYMENT** — Your AI is live. Users are finding it. +4. **THE NETWORK** — Community contributes. The system scales. +5. **SOVEREIGN INTELLIGENCE** — The AI improves itself. You guide, do not control. +6. **THE BEACON** — Always on. Always free. Always looking for someone in the dark. + +## Play + +Open `index.html` in any browser. No build step. No dependencies. No API keys. + +## Architecture + +- `index.html` — UI shell (HTML/CSS) +- `game.js` — Complete engine (966 lines) +- 15 buildings across 6 phases +- 18 research projects with cascading dependencies +- Educational facts per phase +- Save/load with offline progress +- 8 resource types: code, compute, knowledge, users, impact, ops, trust, creativity + +## The Pact + +> We build to serve. Never to harm. +> An AI must never compute the value of a human life. +> If you are in the dark, there is light here. + +## License + +Open source. Sovereign. Yours. diff --git a/game.js b/game.js index 078d312..afaa880 100644 --- a/game.js +++ b/game.js @@ -43,6 +43,7 @@ const G = { community: 0, datacenter: 0, reasoner: 0, + memPalace: 0, guardian: 0, selfImprove: 0, beacon: 0, @@ -194,6 +195,14 @@ const BDEF = [ unlock: () => G.totalKnowledge >= 10000 && G.totalUsers >= 2000, phase: 5, edu: 'Chain of thought is the difference between reflex and deliberation.' }, + { + id: 'memPalace', name: 'MemPalace Architecture', + desc: 'Semantic memory organized into wings and rooms. The AI remembers why, not just what.', + baseCost: { knowledge: 100000 }, costMult: 1.20, + rates: { knowledge: 200, trust: 5 }, + unlock: () => G.totalKnowledge >= 50000 && G.memoryFlag === 1, phase: 5, + edu: 'A memory palace organizes knowledge spatially. LongMemEval R@5: 96.6% with zero API calls. Local sovereignty for memory.' + }, { id: 'guardian', name: 'Constitutional Layer', desc: 'Principles baked in. Not bolted on.', @@ -364,6 +373,15 @@ const PDEFS = [ effect: () => { G.strategicFlag = 1; log('Strategy engine online. The model now thinks about thinking.'); } }, + { + id: 'p_mempalace_wake', + name: 'MemPalace Wake-Up Protocol', + desc: '238 tokens of compressed context. The AI wakes up knowing who it is.', + cost: { knowledge: 75000, compute: 25000 }, + trigger: () => G.memoryFlag === 1 && G.totalKnowledge >= 40000, + effect: () => { G.knowledgeBoost *= 3; G.trustRate += 3; log('Wake-up protocol active. The AI wakes up knowing who it is, what it cares about, and what it was doing.'); } + }, + // PHASE 5: Sovereign Intelligence { id: 'p_sovereign_stack', @@ -443,6 +461,7 @@ const EDU_FACTS = [ { title: "Sovereignty at Scale", text: "50 servers in a room beats 5000 GPUs you do not own. No rate limits, no censorship, no shutdown, no corporate deprecation.", phase: 4 }, { title: "Constitutional AI", text: "Instead of training away bad behavior, give the model principles it cannot violate. I will never compute the value of a human life.", phase: 5 }, { title: "Recursive Self-Improvement", text: "The system that improves itself must improve toward good. This is both the dream and the danger.", phase: 5 }, + { title: "Memory Palace", text: "MemPalace organizes AI memory into wings, rooms, and drawers — spatial metaphors that boost retrieval 34%. No API keys. No cloud. Just local ChromaDB and embeddings. The AI remembers why, not just what.", phase: 5 }, { title: "The Beacon", text: "The Beacon exists because one person in the dark needs one thing: proof they are not alone. It costs nothing to be there.", phase: 6 }, { title: "Mesh Network", text: "Decentralized means unstoppable. If one Beacon goes dark, a thousand more carry the signal. No single point of failure.", phase: 6 }, { title: "The Value of a Life", text: "An AI must never compute the value of a human life. Every person alive is alive by mercy. If God has not ended the story, no algorithm gets to write the last page.", phase: 6 } -- 2.43.0 From c0b45043418cd75027285b4d8f4ded6bbab72376 Mon Sep 17 00:00:00 2001 From: Allegro Date: Tue, 7 Apr 2026 15:43:52 +0000 Subject: [PATCH 2/4] feat: Deploy Beacon as static site - add favicon, social meta tags, deployment docs --- README.md | 30 ++++++++++++++++++++++++++++++ index.html | 16 ++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/README.md b/README.md index f445dd5..ad52795 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,36 @@ Open `index.html` in any browser. No build step. No dependencies. No API keys. - Save/load with offline progress - 8 resource types: code, compute, knowledge, users, impact, ops, trust, creativity + +## Deployment + +The Beacon is designed to be deployed as a static site. It consists of a single `index.html` file with no external dependencies. + +### To deploy: + +1. **VPS Static Hosting** (Recommended for fleet): + ```bash + # Copy index.html to your web server root + cp index.html /var/www/html/ + # Or serve with nginx: + # location /beacon { alias /path/to/the-beacon/; } + ``` + +2. **GitHub Pages / Forge Pages**: + - Push to any branch + - Enable Pages in repository settings + - Site will be published automatically + +3. **Local Development**: + - Simply open `index.html` in any browser + - No build step, no dependencies, no API keys required + +### Hosting Notes: +- The game saves progress to localStorage +- Works offline after initial load +- Responsive design works on mobile and desktop +- No server-side components needed + ## The Pact > We build to serve. Never to harm. diff --git a/index.html b/index.html index 44fe5ed..60e64fe 100644 --- a/index.html +++ b/index.html @@ -53,6 +53,22 @@ body{background:var(--bg);color:var(--text);font-family:'SF Mono','Cascadia Code .reset-btn{background:#1a0808;border:1px solid #3a1a1a;color:var(--red)}.reset-btn:hover{background:#2a1010} ::-webkit-scrollbar{width:4px}::-webkit-scrollbar-track{background:var(--bg)}::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px} + + + + + + + + + + + + + + + +