NarrativeOS version history from v0.1 to v1.0
Find a file
zuchenglong c8276fdc9e refactor: let harness own dialogue/scene structure, model only writes content
Register dialogue_plan and scene_plan deterministic fields so relax_output_schema
makes structural fields optional at the LLM boundary -- the model omits IDs,
hashes, dramatic_turn_id, response_to_action_ids, voice/knowledge provenance,
candidate_id, source hashes -- and the deterministic assemblers
(_seed_action_draft_from_scene / _materialise_action_lines / scene assembly)
materialize them after generation. Final validators stay strict post-assembly.

Cuts the 140 structured-validation failures (weak LLM fills bad structural
fields it can't produce reliably) by moving structure ownership to the harness.
Dialogue(66)/scene(79)/semantic(8) tests pass.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-10 16:38:54 +08:00
.narrativeos Make v2.3 generation quality controls enforceable 2026-07-21 18:37:07 +08:00
benchmarks Advance NarrativeOS to v2.0 2026-07-14 08:51:23 +08:00
comparison-archive-2026-07-27 feat: baseline evidence for v2.3/v2.4 reconstruction 2026-08-10 13:21:27 +08:00
config Move Provider selection to user-level configuration 2026-07-16 18:37:36 +08:00
docs feat: reconstruction pilot, metrics, and delivery docs 2026-08-10 13:35:14 +08:00
engine refactor: let harness own dialogue/scene structure, model only writes content 2026-08-10 16:38:54 +08:00
evals Advance NarrativeOS to v2.0 2026-07-14 08:51:23 +08:00
examples feat: reconstruction pilot, metrics, and delivery docs 2026-08-10 13:35:14 +08:00
kernel Advance NarrativeOS to v2.0 2026-07-14 08:51:23 +08:00
narrativeos-reader-edition feat: reconstruction pilot, metrics, and delivery docs 2026-08-10 13:35:14 +08:00
prompts perf: adaptive, larger max_tokens budgets for dialogue robustness 2026-08-10 16:13:41 +08:00
release Advance NarrativeOS to v2.0 2026-07-14 08:51:23 +08:00
reports Make v2.3 delivery quality-gated and provider-real 2026-07-16 13:31:54 +08:00
schema feat: reconstruction pilot, metrics, and delivery docs 2026-08-10 13:35:14 +08:00
templates/minimal_project feat: baseline evidence for v2.3/v2.4 reconstruction 2026-08-10 13:21:27 +08:00
tests refactor: let harness own dialogue/scene structure, model only writes content 2026-08-10 16:38:54 +08:00
.gitignore feat: baseline evidence for v2.3/v2.4 reconstruction 2026-08-10 13:21:27 +08:00
AGENTS.md feat: reconstruction pilot, metrics, and delivery docs 2026-08-10 13:35:14 +08:00
CHECKSUMS.sha256 Advance NarrativeOS to v2.0 2026-07-14 08:51:23 +08:00
CLAUDE.md feat: reconstruction pilot, metrics, and delivery docs 2026-08-10 13:35:14 +08:00
CONTRIBUTING.md Advance NarrativeOS to v2.0 2026-07-14 08:51:23 +08:00
legacy_debt_report.json Advance NarrativeOS to v2.0 2026-07-14 08:51:23 +08:00
LICENSE Advance NarrativeOS to v1.0 2026-07-12 19:42:18 +08:00
MANIFEST.json Advance NarrativeOS to v2.0 2026-07-14 08:51:23 +08:00
narrativeos.py Advance NarrativeOS to v2.0 2026-07-14 08:51:23 +08:00
pyproject.toml Make v2.3 delivery quality-gated and provider-real 2026-07-16 13:31:54 +08:00
QUICKSTART.md Move Provider selection to user-level configuration 2026-07-16 18:37:36 +08:00
README.md Move Provider selection to user-level configuration 2026-07-16 18:37:36 +08:00
SECURITY.md Advance NarrativeOS to v2.0 2026-07-14 08:51:23 +08:00
uv.lock Make v2.3 delivery quality-gated and provider-real 2026-07-16 13:31:54 +08:00
VERSION Make v2.3 delivery quality-gated and provider-real 2026-07-16 13:31:54 +08:00

NarrativeOS 2.3

NarrativeOS 是一个图原生、审批门控、内容寻址、可审计的 LLM 叙事生产系统。

Creative Brief
→ Concept
→ Truth Architecture
→ Model Graph
→ Question Graph
→ Dynamic Season Plan
→ Episode IR
→ Scene IR
→ Character Voice / Dialogue
→ Repair / Selective Recompile
→ Evaluation / Security / Recovery / Release Audit

统一的 2.0 基线

Product Version: 2.3.0
Protocol Version: 2.0.0
Package Version: 2.3.0
Release Channel: stable

本发行包只有一套 2.0 协议、一条 Canonical 链路、一个 Prompt 根目录和一套 Release Audit。项目不会猜测或静默转换其他协议的数据。

核心原则

  • LLM 只生成 Candidate IR
  • Candidate 必须通过 JSON Schema 与语义合同;
  • Human Approval 是进入 Canonical State 的唯一入口;
  • Canonical 采用 Merkle DAG父节点只引用子节点 Hash
  • 审批日志采用独立 Hash Chain
  • 上游变化按依赖图精确失效下游;
  • Repair 只能提交受限 Patch先 Dry-run、Diff、验证再审批
  • 云端适配器存在不等于真实云端已经验证;
  • 没有真实评审响应时,不宣称人工偏好已经成立。

安装

pip install narrativeos-2.3.0-py3-none-any.whl
narrativeos init my-story
cd my-story

随后从 QUICKSTART.md 开始。

目录

engine/
├── architecture/
├── canonical/
├── cli/
├── core/
├── dialogue/
├── operations/
├── planning/
├── providers/
└── repair/

prompts/       统一的 2.0 Prompt Packages
schema/        2.0 JSON Schema 唯一源
config/        Provider 与 Release Audit 配置
benchmarks/    100 Brief 基准语料
evals/         盲测评审模板
examples/      完整 Merkle Canonical 与 Repair 示例
docs/          产品文档
reports/       当前发行证据
release/       当前发行说明与 Wheel

Canonical Merkle DAG

Production provider boundary (v2.3.0)

narrativeos workflow run requires at least one configured real provider. A provider with type: "mock" is never accepted by the production workflow and cannot be used as a silent fallback. Mock providers remain available only to unit tests and offline release benchmarks. Configure credentials in the user-level Provider config using api_key_env before starting generation. On Windows the default path is %USERPROFILE%\\.narrativeos\\providers.json; set NARRATIVEOS_PROVIDER_CONFIG to use another global file. Project-local llm-config.json settings remain the base configuration and global providers are overlaid without copying credentials into the project.

Canonical 不再由一个巨型状态文件承载。磁盘结构为:

canonical/
├── root.json
├── project.json
├── brief.json
├── architecture/
├── season/
├── episodes/
├── scenes/
├── dialogue/
├── repairs/
├── audit/
└── objects/

每个节点包含 node_hashdata_hashrefspayload。修改单场对白只改变该对白、对应场景、对应单集组合节点与根节点Architecture、Season 和无关单集 Hash 保持不变。

验证:

narrativeos canonical verify --project-dir .

正式输出

Architecture Package
Season Package
Episode Package
Story Package
Dialogue Package
Dialogue Draft
Repair Approval
Selective Recompile Plan
Editorial Quality Report
Revision Tasks
Release Audit

零债务门禁

narrativeos release debt-audit --project-dir .

正式发行要求:

Historical Debt Findings = 0
Flat Engine Modules = 0
Monolithic Canonical Nodes = 0
Schema Drift = 0
Prompt Root Drift = 0
Merkle Verification Errors = 0

文档入口

  • docs/architecture.md
  • docs/canonical-merkle.md
  • docs/planning.md
  • docs/dialogue.md
  • docs/repair.md
  • docs/providers.md
  • docs/evaluation.md
  • docs/security-recovery.md
  • docs/operations.md
  • docs/schema-index.md