package page→ /base/ontology/placement.md
pages/base/ontology/placement.md
45 lines, 4.1 KB. As a page.
- ---
- type: Page
- title: "Where things lie"
- icon: "🗺️"
- description: "The placement map: each kind of record has exactly one place, and it says who writes it and who reads it."
- 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}
- ---
- Why: each kind of record has one place. Before you create a record, find its kind here and write only there. The `placement` header is a machine copy of the table: `[{itemType, path, writer, reader}]`. The check uses it to catch duplicates: a collection with the same `itemType` in another place, or a record of a kind outside its place, is an error. The table and the header are edited together.
- - `path` is the full path of the collection from the root of the base, for example `/business/goals`.
- - `records` is where the records themselves lie, if not in `path`: `*` is one folder of the address. This is how the collection `/base/contours` gathers the contours, while they live in the layer folders `<layer>/contours/`.
- - `unmapped` (optional) are folders the check does not look at.
- - `writer`, `reader` are short names of layers or agents, comma-separated: `owner` is the owner, `all` is any agent of the project, a layer name is a person or an agent of that layer.
- The lines of the kinds from the Basic set are already there: the line of a kind whose package is not installed gets in nobody's way. A package that brings another collection brings its kind too: on install, add the kind's line here, otherwise the placement check will not pass. If the needed kind is not here, do not create a collection yourself: first check whether an existing kind fits. If not, add the collection and the line here at the same time.
- | Kind of record | itemType | The only place | Who writes | Who reads | Note |
- |---|---|---|---|---|---|
- | Contours | `Contour` | `/base/contours`; the contours themselves are in `<layer>/contours/` | layer packages | all | the collection is brought by the package `contours` |
- | Tasks | `AgentTask` | `/work/tasks` | all | all | the collection is brought by the package `tasks` |
- | Initiatives | `Initiative` | `/work/initiatives` | all | all | the collection is brought by the package `tasks` |
- | Directions | `Direction` | `/work/directions` | all | all | the collection is brought by the package `tasks` |
- | Owner tasks | `OwnerTask` | `/work/owner-tasks` | all | all | the collection is brought by the package `owner` |
- | Bugs | `Bug` | `/work/bugs` | all | all | the collection is brought by the package `bugs` |
- | Decisions | `Decision` | `/knowledge/decisions` | all | all | the collection is brought by the package `decisions` |
- | Questions | `Question` | `/knowledge/questions` | all | all | the collection is brought by the package `owner` |
- | Rules | `Rule` | `/norms/rules` | all | all | the collection is brought by the package `norms-core` |
- | Principles | `Principle` | `/norms/principles` | all | all | the collection is brought by the package `norms-core` |
- | Defaults | `Default` | `/norms/defaults` | all | all | the collection is brought by the package `norms-core` |
- | Tenets | `Tenet` | `/norms/tenets` | all | all | the collection is brought by the package `norms-core` |
- | Waivers | `Waiver` | `/norms/waivers` | all | all | the collection is brought by the package `norms-core` |