┌──────────────────────────────────────────┐
Humans ─────────▶ │ Cockpit · Meeting room · Editor (admin) │ ◀─── Agents
└──────────────┬───────────────────────────┘
│ JSON Patch (RFC 6902) proposals
▼
┌──────────────────────────────────────────┐
│ Gates: schema · L1/L2/L3 · pseudonym · │
│ currency · human adopt │
└──────────────┬───────────────────────────┘
│ adopt → new version (v+1), diff, rollback
▼
┌──────────────────────────────────────────┐
│ SSOT (the One): case.json, versioned │
└──────────────┬───────────────────────────┘
│ zero-token compiler (Jinja2, pure Python)
┌─────────────────────┼─────────────────────┬──────────────────┐
▼ ▼ ▼ ▼
index.html index.md llms.txt case.json
(human twin) (Markdown twin) (AI index twin) (machine twin)
└──────────── one URL family: /c/<slug>/ + Accept negotiation ───┘
flowchart TD
H[Human reader] -->|asks / reads| HTML[index.html]
A[AI agent] -->|fetches| MD[index.md / llms.txt / case.json]
H -->|edits / adopts| G{Gates + human adopt}
A -->|proposes JSON Patch| G
G -->|adopted| S[(SSOT case.json, versioned)]
S -->|zero-token compile| HTML
S -->|zero-token compile| MD
S -->|rollback| S
GET /c/<slug>/ → index.html (Accept: text/html, default)
GET /c/<slug>/ Accept: text/markdown → index.md
GET /c/<slug>/ Accept: application/json → case.json
GET /c/<slug>/index.md → Markdown twin
GET /c/<slug>/llms.txt → AI index (llmstxt.org style)
GET /c/<slug>/case.json → full SSOT + _meta {version, sha256, html, markdown, llms_txt}
GET /schema/case.json → JSON Schema of the SSOT
POST /api/cases/<slug>/patches → propose JSON Patch (agents)
POST /api/patches/<id>/adopt → human adopt (gate)
GET /api/cases/<slug>/diff?a=&b= → version diff; POST …/rollback → new version
[
{"op": "replace", "path": "/sections/sec-09/title", "value": "统一接口设计"},
{"op": "add", "path": "/timeline/m-20261111",
"value": {"date": "2026-11-11", "title": "白皮书 v1 发布"}}
]
| 从 From | 关系 Relation | 到 To | 说明 Note |
|---|---|---|---|
| AI 代理 / AI agents | 提议补丁 / propose patches | 补丁引擎 / Patch engine | |
| 人类审阅者 / Human reviewer | 编辑 / edits | 补丁引擎 / Patch engine | |
| 补丁引擎 / Patch engine | 送检 / checked by | 闸门 / Gates | |
| 闸门 / Gates | 请求采纳 / asks to adopt | 人类审阅者 / Human reviewer | |
| 人类审阅者 / Human reviewer | 采纳 → 新版本 / adopt → new version | 单一事实源 SSOT / Single Source of Truth (SSOT) | |
| 单一事实源 SSOT / Single Source of Truth (SSOT) | 输入 / input | 零 Token 编译器 / Zero-token compiler | |
| 零 Token 编译器 / Zero-token compiler | 生成 / renders | 人类孪生 index.html / Human twin: index.html | |
| 零 Token 编译器 / Zero-token compiler | 生成 / renders | Markdown 孪生(正文版) / Markdown twin: index.md | |
| 零 Token 编译器 / Zero-token compiler | 生成 / renders | 机器孪生 case.json / Machine twin: case.json | |
| 零 Token 编译器 / Zero-token compiler | 生成 / renders | 给人工智能的索引文件 / AI index: llms.txt | |
| 人类审阅者 / Human reviewer | 阅读 / reads | 人类孪生 index.html / Human twin: index.html | |
| AI 代理 / AI agents | 读取 / reads | Markdown 孪生(正文版) / Markdown twin: index.md |