Long-Form Narrative Consistency Engine
STORY-ENGINE is a narrative consistency checking engine for long-form fiction, performing automated audits on character settings, causal timelines, and memory threads to ensure million-word works remain coherent across characters, plots, and worldbuilding. It transforms an editor's intuitive checks into a reusable, structured pipeline.
— ✦ —
git clone git@github.com:NOHN-AI/STORY-ENGINE.git
cd STORY-ENGINE
# Pure Python ≥3.8. Engine files use spaces in their names by design.
python "Story Engine for Creator.py" # creator-facing cognitive audit engine
# or: python "engine for business.py" # SPL four-stage editorial pipeline— ✦ —
STORY-ENGINE audits long-form fiction for narrative consistency, turning an editor's intuition into a reusable, structured pipeline. It works in two layers:
- Creator engine (
Story Engine for Creator.py) — a cognitive-audit layer for storytelling:ResponsibilityAccount— every check is anchored to a named accountable node (who / role / stage).CognitiveAuditEngine+ pluggableAuditPlugins — composable audit dimensions.CausalNodewith implicit assumptions and avulnerability_score— traces because → so logic and grades fragility.
- Business engine (
engine for business.py) — the SPL four-stage native reasoning pipeline:STRIP_NARRATIVE— identify story elements (foreshadow / turn / climax / setup).SCAN_ASSUMPTION— verify character motive & plot-logic soundness.HEDGE_RISK— flag OOC, logic holes, pacing problems.LOCK_RESPONSIBILITY— emit a quality score with traceable optimizations.
- Risk levels:
SAFE/WARNING/CRITICAL/FATAL; node states:RAW/STRIPPED/AUDITED/PRUNED/ACTIVE.
import importlib.util
def load(name, path):
spec = importlib.util.spec_from_file_location(name, path)
m = importlib.util.module_from_spec(spec); spec.loader.exec_module(m); return m
biz = load("biz", "engine for business.py")
print([s.name for s in biz.SPLStage]) # STRIP_NARRATIVE … LOCK_RESPONSIBILITYOr run the bundled engines directly:
python "Story Engine for Creator.py"
python "engine for business.py"STORY-ENGINE/
├── Story Engine for Creator.py # creator-facing cognitive audit engine
├── engine for business.py # SPL four-stage editorial reasoning pipeline
├── assets/ # banner.svg, overview.svg
└── LICENSE
This repository is not open-source. It uses a dual-track model: free for individual non-commercial research, paid commercial authorization required for government / enterprise. See LICENSE.
NOHN-AI · nohnlins.com · ai@nohnlins.com
NOHN AI · STORY-ENGINE