引入上下文片段、固定槽与投影排序,并完善机遇裁定与游玩期 UI。

把创作产物收敛为可挂载片段与 play_slots/context_order,同步修订世界模拟器模块与运行时拼装。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-03 01:36:32 +08:00
parent 00dfcb6615
commit 94f67fa744
69 changed files with 7786 additions and 1283 deletions

View File

@@ -3,30 +3,46 @@
## 定位
**不是** play 时加载的 `workers/*/SKILL.md`
**是** 谈【剧本】、`设计.worker集` 时合并的 **默认建议**context、outputs、职责摘要。
**是**`设计.worker集` 时合并的 **默认建议**context、outputs、职责摘要。
| 层 | 权威来源 |
|----|----------|
| 本局 play 怎么跑 | 用户 accept 的 **`设计.worker集`** |
| 本局 play 怎么跑 | 用户 accept 的 **`设计.worker集`**(优先 `play_slots` + workers |
| 可选模板 | 本目录 `{ref}.yaml` — 未写全 `context`/`outputs` 时合并 |
Runtime 执行时读 Worker 集条目,不直接读本目录。
## 文件
## 世界模拟固定槽(推荐)
规格里写 `play_slots`,由程序展开为 workers
```json
{
"play_slots": { "gm": true, "narrator": true, "perspective": false, "chance": false },
"workers": []
}
```
| 槽 | 默认 ref | 模板 |
|----|----------|------|
| gm | `world-simulator` | `world-simulator.yaml` — 裁决包 settlement.v1 |
| narrator | `narrator` | `narrator.yaml` — 只读裁决包写正文 |
| perspective | `role-decide` | `role-decide.yaml` — 可选知密视角 |
| chance按需 | `chance` | `chance.yaml` — 程序骰子/抽签/比点;不进每轮管线 |
变量 / Progressive**不是**独立 LLM 模板;见 `docs/progressive-data-design.md`(真值 + side_effects
## 其它文件
| 文件 | 说明 |
|------|------|
| `world-simulator.yaml` | 世界推进 / 裁决 |
| `narrator.yaml` | 转述 / 展示 |
| `role-decide.yaml` | 单角色决策 |
| `round-present.yaml` | 结构化回合陈述 |
| `chance.yaml` | 机遇裁定(按需程序工具) |
| `round-present.yaml` | 结构化回合陈述(可选) |
| `opening-generator.yaml` | 开局生成器(创作末尾) |
| `outline.yaml` | 大纲 / 细纲 |
| `chapter-writer.yaml` | 章节正文 |
| `outline.yaml` / `chapter-writer.yaml` | 扩写路径固定槽 |
## 用法
1. 按用户意图选 `ref`
2. `{ref}.yaml` 填默认字段
3. 用户特殊需求覆盖后写入 Worker 集
4. accept 后声明即实例规格
1. 世界模拟:勾选 `play_slots`,按需覆盖某 ref 的 context/outputs
2. 扩写等:仍可用自由 `workers[]` 或另一套槽约定
3. accept 后声明即实例规格