ShtukbaseStandard
page/base/ontology/placement.md

Where things lie

The placement map: each kind of record has exactly one place, and it says who writes it and who reads it.

Page fields (2)
icon🗺️
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 recorditemTypeThe only placeWho writesWho readsNote
ContoursContour/base/contours; the contours themselves are in <layer>/contours/layer packagesallthe collection is brought by the package contours
TasksAgentTask/work/tasksallallthe collection is brought by the package tasks
InitiativesInitiative/work/initiativesallallthe collection is brought by the package tasks
DirectionsDirection/work/directionsallallthe collection is brought by the package tasks
Owner tasksOwnerTask/work/owner-tasksallallthe collection is brought by the package owner
BugsBug/work/bugsallallthe collection is brought by the package bugs
DecisionsDecision/knowledge/decisionsallallthe collection is brought by the package decisions
QuestionsQuestion/knowledge/questionsallallthe collection is brought by the package owner
RulesRule/norms/rulesallallthe collection is brought by the package norms-core
PrinciplesPrinciple/norms/principlesallallthe collection is brought by the package norms-core
DefaultsDefault/norms/defaultsallallthe collection is brought by the package norms-core
TenetsTenet/norms/tenetsallallthe collection is brought by the package norms-core
WaiversWaiver/norms/waiversallallthe collection is brought by the package norms-core
The package Layers puts this page at /base/ontology/placement.md.Source text