This is not a model-architecture MoE. It’s a product pipeline: route → experts → synthesize → verify → export. The goal is to ship usable artifacts (code packages or book chapters), not just transcripts.
What “MOE” Means Here
Two Labs (Same Shell)
Web/Game Builder Lab: produce a working single-file app (default) or small bundle, plus QA and a final “package”.
Chapter Book Lab: produce long-form chapters with continuity (bible + outline + summaries + open loops) and repeatable revision.
Assume no browsing. Everything is derived from the user’s spec + internal consistency checks.
Strict JSON Contract (Recommended)
When enabled, every expert returns machine-parseable JSON so the UI can merge outputs into a single Project Ledger.
{
"meta": { "schemaVersion": 1, "kind": "web", "step": "build", "role": "implementer" },
"summary": "What changed",
"updates": { "ledgerPatch": {}, "artifacts": {} },
"checks": { "passed": false, "failures": [] },
"requests": { "needFromUser": [], "needFromOtherExperts": [] }
}
If JSON is invalid, run a quick “repair JSON” pass using a fast model and retry parsing.
Web/Game Builder Step Flow
Route → Plan → Build → QA → Fix → Package → Judge
Acceptance criteria: return a package JSON with files[], run_instructions, and known_limitations, with no placeholders.
Chapter Book Step Flow
Bible → Outline → Draft Chapter → Continuity Check → Revise → Serialize
Critical rule: don’t stuff the whole book into every model context. Keep a ledger and inject only bible + outline + last chapters + summaries + open loops.
Recommended “Big Free” Roles
Web/Game: Qwen3 Coder (implementer), Devstral 2 (architect), DeepSeek R1T2 (edge cases/bugs),
Gemini Flash (glue/repair), Gemini 2.5 Pro (judge).
Book: Sherlock Think (continuity vault), Gemini 2.5 Pro (editor/writer), DeepSeek R1T2 (plot logic),
Llama 3.3 70B (voice pass), Gemini Flash (serialize).
Next: Implementation Checklist
This repo’s baseline app is in this folder. The build steps are:
1) Add two new modes in app.js (web_builder_lab, book_builder_lab)
2) Add two Quick Start templates to prefill the spec
3) Add a “Lab Stepper” UI card under the topic box
4) Add a Project Ledger object (persist to localStorage)
5) Enforce Strict JSON + auto-repair invalid JSON
6) Add Export: files bundle (web) or book bundle (book)
For the full spec, see ../GUIDE.md and ../MOE.md.