包页面→ /base/ontology/placement.md
pages/base/ontology/placement.md
45 行, 4.1 KB. 以页面形式查看.
- ---
- type: Page
- title: "各类内容的位置"
- icon: "🗺️"
- description: "放置表:每类记录恰好只有一个位置,并写明谁写入、谁读取。"
- placement:
- - {itemType: AgentTask, path: /work/tasks, writer: all, reader: all}
- - {itemType: Initiative, path: /work/initiatives, writer: all, reader: all}
- - {itemType: Direction, path: /work/directions, writer: all, reader: all}
- - {itemType: OwnerTask, path: /work/owner-tasks, writer: all, reader: all}
- - {itemType: Bug, path: /work/bugs, writer: all, reader: all}
- - {itemType: Decision, path: /knowledge/decisions, writer: all, reader: all}
- - {itemType: Question, path: /knowledge/questions, writer: all, reader: all}
- - {itemType: Rule, path: /norms/rules, writer: all, reader: all}
- - {itemType: Principle, path: /norms/principles, writer: all, reader: all}
- - {itemType: Default, path: /norms/defaults, writer: all, reader: all}
- - {itemType: Tenet, path: /norms/tenets, writer: all, reader: all}
- - {itemType: Waiver, path: /norms/waivers, writer: all, reader: all}
- - {itemType: Contour, path: /base/contours, records: /*/contours, writer: "layer packages", reader: all}
- ---
- 原因:每类记录只有一个位置。在新建记录之前,先在此查找其类别,并且只写入该位置。页头中的 `placement` 是本表的机器副本:`[{itemType, path, writer, reader}]`。检查利用它发现重复:若同一 `itemType` 的集合出现在另一位置,或某类记录位于其位置之外,都属于错误。表格和页头须一起修改。
- - `path` 是集合从基础根目录起算的完整路径,例如 `/business/goals`。
- - `records` 是记录本身所在的位置(若不在 `path` 中):`*` 代表地址中的一个文件夹。集合 `/base/contours` 正是这样汇集流程轮廓的,而流程轮廓实际位于各层文件夹 `<layer>/contours/` 中。
- - `unmapped`(可选)是检查不查看的文件夹。
- - `writer`、`reader` 是层或智能体的简称,以逗号分隔:`owner` 指负责人,`all` 指项目的任何智能体,层的名称指该层的人或智能体。
- 基础集中各类别的行已经存在:包未安装的类别所对应的行不会造成妨碍。引入另一个集合的包,也须同时引入其类别:安装时,把该类别的行加入此处,否则放置检查无法通过。若所需类别不在此处,请勿自行新建集合:先检查是否有现成的类别可用;若没有,则同时添加集合和此处的行。
- | 记录类别 | itemType | 唯一位置 | 谁写入 | 谁读取 | 说明 |
- |---|---|---|---|---|---|
- | 流程轮廓 | `Contour` | `/base/contours`;流程轮廓本身位于 `<layer>/contours/` | layer packages | all | 集合由包 `contours` 引入 |
- | 任务 | `AgentTask` | `/work/tasks` | all | all | 集合由包 `tasks` 引入 |
- | 计划 | `Initiative` | `/work/initiatives` | all | all | 集合由包 `tasks` 引入 |
- | 方向 | `Direction` | `/work/directions` | all | all | 集合由包 `tasks` 引入 |
- | 负责人任务 | `OwnerTask` | `/work/owner-tasks` | all | all | 集合由包 `owner` 引入 |
- | 缺陷 | `Bug` | `/work/bugs` | all | all | 集合由包 `bugs` 引入 |
- | 决策 | `Decision` | `/knowledge/decisions` | all | all | 集合由包 `decisions` 引入 |
- | 问题 | `Question` | `/knowledge/questions` | all | all | 集合由包 `owner` 引入 |
- | 规则 | `Rule` | `/norms/rules` | all | all | 集合由包 `norms-core` 引入 |
- | 原则 | `Principle` | `/norms/principles` | all | all | 集合由包 `norms-core` 引入 |
- | 默认项 | `Default` | `/norms/defaults` | all | all | 集合由包 `norms-core` 引入 |
- | 信条 | `Tenet` | `/norms/tenets` | all | all | 集合由包 `norms-core` 引入 |
- | 豁免 | `Waiver` | `/norms/waivers` | all | all | 集合由包 `norms-core` 引入 |