King Klown Logo
King Klown& KOA

Schema Outline

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

outline.json is the canonical story plan for a project. It defines:

File location:

Story scaffold overview: Story Scaffold


1) Design Goals

The outline MUST support:

The outline SHOULD:


{
  "version": 1,
  "template_id": "novel.default",

  "settings": {
    "parts_per_chapter": 3
  },

  "chapters": [
    {
      "chapter_id": "CH01",
      "title": "The World in Turmoil",
      "summary": "Global crisis exposes systemic failure.",
      "part_ids": ["P001", "P002", "P003"]
    }
  ],

  "parts": {
    "P001": {
      "chapter_id": "CH01",
      "title": "Part 1",
      "order_index": 1,

      "contract": {
        "goal": "Show the world failing in a concrete, personal way.",
        "obstacle": "Institutions deny and deflect responsibility.",
        "turn": "A specific event forces the truth into the open.",
        "outcome": "King Klown realizes the crisis is structural, not isolated."
      },

      "beats": {
        "Plot": "The World in Turmoil: global crisis exposes systemic failure.",
        "Character Development": "King Klown feels helpless and isolated.",
        "Conflict": "External disaster + internal doubt collide.",
        "Themes": "Collapse and urgent need for change.",
        "World-Building": "Introduce fractured institutions and scarcity.",
        "Emotion": "Despair and urgency.",
        "Symbolism and Imagery": "Fractured world as collective neglect.",
        "Structure": "Open with stakes and central conflict.",
        "Relationships": "King Klown is disconnected from others."
      },

      "locks": {
        "beats": false,
        "contract": false,
        "manuscript": false
      }
    }
  }
}

Notes:


3) Field Semantics

3.1 version (required)

Schema version for migration and validation.

3.2 template_id (required)

Must match an existing template file in:

Template schema: Schema Templates

User override of parts/chapter within template bounds.

If omitted, the engine may use the template default.

3.4 chapters[] (required)

Ordered list of chapters.

Each chapter SHOULD contain:

3.5 parts{} (required)

Map of Part IDs to Part objects.

Each Part MUST contain:


4) Part Contract (Strict Slice Anchor)

The contract is the minimum “what must happen” spec for a Part.

Recommended fields:

The orchestrator uses the contract to:

Related:


5) Beat Keys and Template Compatibility

Beat keys MUST align with the active template’s threads.

Validation SHOULD ensure:


6) Locks (Manual Edit Protection)

Locks prevent automation from overwriting human edits.

Recommended lock scopes:

Planner rule:

Matrix mapping:

Matrix: Central Matrix


7) ID Stability Rules (Critical)


8) Relationship to Grid and CSV

The outline is projected into a grid for human editing:

Round-trip rules:

See: Outline Grid CSV Round-Trip


9) Relationship to Manuscripts and Matrix

See: