Long-Form Narrative Consistency Engine

Story Engine Long-Form Narrative Consistency Engine · No Plot Holes

STORY-ENGINE keeps characters and plots consistent and logic gap-free across million-word long-form narratives. Two clearly positioned products share one deterministic audit design language — responsibility anchoring, risk grading, and full-chain traceable logs.

deterministic audit hit = verdict SPL 4-stage pipeline zero-dependency · offline v2.1.0
✦ About

What is Story Engine

A consistency-auditing engine that turns an editor's intuition into a reusable, structured pipeline. Two products share the same second-perspective audit design.

Story Engine is the creator-facing engine for million-word novels — it audits characters, motivations, and plot logic. Document Review Engine is the enterprise-facing, zero-dependency, offline compliance reviewer. Both anchor every check to a named responsibility node (ResponsibilityAccount), grade risk, and keep a full-chain traceable log.

✦ Positioning

What it is — and what it is not

✅ It is❌ It is not
A long-form narrative consistency engine for million-word novelsA story generator that writes the plot for you
A deterministic auditor — hit = verdict, no probabilitiesA probabilistic LLM wrapper that guesses OOC
A zero-dependency, offline document compliance reviewerA cloud service that uploads your documents
Full-chain traceable: every verdict is backtraceableA black-box quality scorer
✦ Core Capabilities

Four pillars

1 · CREATOR

Creator EngineCognitive Audit Layer

ResponsibilityAccount anchoring, CognitiveAuditEngine with pluggable AuditPlugin and EmotionalConstraint; CausalNode carries implicit_assumptions and vulnerability_score.

ResponsibilityAccountAuditPluginvulnerability_score
2 · BUSINESS

Business EngineSPL 4-Stage Pipeline

STRIP_NARRATIVE → SCAN_ASSUMPTION → HEDGE_RISK → LOCK_RESPONSIBILITY. Risk grades SAFE / WARNING / CRITICAL / FATAL; node states RAW / STRIPPED / AUDITED / PRUNED / ACTIVE.

4 stagesSAFE…FATAL5 node states
3 · COMPLIANCE

Document Review EngineOffline · Zero-Dependency

Clause-level rule scan plus document-level audit (completeness / consistency / reciprocity / format) across contract, regulation, official document, and common text.

HTML / JSON / Markdownaudit / list-rules / demo
4 · DETERMINISM

Deterministic AuditTraceable · Reproducible

Hit = verdict, no probability output. Word-level world-building extraction, automatic repair of rough transitions, and engine-isolation fingerprints prevent data-class conflicts.

hit = verdictTraceLogengine fingerprint
✦ Quick Start

Run it in one command

# Clone (pure Python 3.8+, no third-party dependencies)
git clone https://github.com/nohn3043-arch/story-engine.git
cd Story-engine

# Creator engine — cognitive audit for novels
python "Story Engine for Creator.py"

# SPL four-stage editing pipeline
python "engine for business.py"

# Enterprise compliance CLI (offline, zero-dependency)
python -m compliance_engine audit --type contract --input contract.txt --output report.html
python -m compliance_engine list-rules --type regulation
python -m compliance_engine demo

Document Review Engine supports four document types — contract / regulation / official document / common text — and emits HTML (visual), JSON (structured), or Markdown (archive) reports.

✦ License & Authorization

Dual-track licensing · not open source

Free for personal, non-commercial research; government / enterprise commercial use requires a paid commercial license.

AudienceTerms
Personal researchersFree for non-commercial research, not for any commercial use
Government / enterprisePrior written authorization required
How to applyGlobal: ai@nohnlins.com · China: lin@as.nohnlins.com