King Klown Logo
King Klown& KOA

Story Bible (Creative Intent)

Architectural Lineage (Credits):
SwarmCraft is an architectural fork and deep rewrite of the multi-agent swarm engine created by Mojomast in mojomast/swarmussy.
SwarmCraft’s deterministic “Architect-style” layering is also derived from the meta-structure of Abstract Wiki Architect (AWA).
Full details: Credits & Lineage

POWERED BY GROK

The Story Bible is SwarmCraft’s home for creative intent: the canonical narrative plan, constraints, and reference material that guide drafting and revision.

It is designed to be:

The Story Bible is distinct from:


1) Location and Project Isolation

Recommended per-project location:

Single-project setups MAY use:

The Story Bible is project-scoped. Each project has its own Bible and must not share it implicitly.

See: Multi-Project Management


2) What Lives in the Story Bible

SwarmCraft treats the Story Bible as the canonical source for:

2.1 Canonical references

These may be stored in Markdown or JSON, depending on preference and tooling.

2.2 The Story Scaffold (New)

The scaffold is part of the Story Bible because it is creative intent, not runtime state:

Scaffold entry point:


Example:

projects/<project_id>/data/story_bible/
├── README.md
├── outline.json
├── templates/
│   ├── children.picturebook.json
│   ├── novel.default.json
│   └── screenplay.default.json
├── characters/
│   ├── king_klown.md
│   └── ...
├── locations/
│   ├── cosmic_council_hall.md
│   └── ...
├── lore/
│   ├── world_rules.md
│   └── ...
├── constraints/
│   ├── hard_rules.md
│   └── style_guide.md
└── glossaries/
    └── terms.md

This is a recommendation, not a constraint—projects may reorganize, but the engine must be able to find outline.json and the selected templates/<template_id>.json.


4) Bible vs Matrix vs Memory (Key Separation)

Story Bible (Intent)

Matrix (Runtime)

See: Central Matrix

RAG Memory (Evidence)

See: RAG Memory System


5) How the Bible Is Used in Prompts (Slice-by-Slice)

SwarmCraft never dumps the whole Story Bible into the LLM.

Instead, the orchestrator hydrates prompts by selecting only:

This reduces repetition, keeps cost stable, and prevents “prompt sprawl.”

See: Orchestration Slice-by-Slice Prompt Hydration


6) Editing Workflows

The Story Bible supports three editing modes:

  1. Wizard-generated scaffold A guided LLM workflow creates the first template selection + outline draft.

  2. Grid editing (human-friendly) Outline beats are displayed as a grid (threads × parts), with optional CSV round-trip.

  3. Direct file edits Writers can edit Markdown/JSON files directly, then SCAN reconciles changes.

Grid + CSV:


The scanner/orchestrator SHOULD validate: