ShtukbaseStandard
package page→ /base/layers.md

pages/base/layers.md

30 lines, 1.9 KB. As a page.

  1. ---
  2. type: Page
  3. title: "Layers"
  4. icon: "🧅"
  5. description: "What a project layer is: a section of the base with its own owner, subject and ontology. What a layer consists of and how a package installs it."
  6. ---
  7. A **layer** is a section of the base with its own owner, subject and ontology: business, product, deal, work, norms and so on. We use the word "layer" in one sense: a project layer.
  8. Layers are of two groups. **Project** layers describe the subject: the customer's product and the terms of work. **Meta layers** describe how the project is run and how the base itself is built.
  9. ## What a layer consists of
  10. | Part | Where it lies | What it is |
  11. |---|---|---|
  12. | Layer page | `/<layer>.md` | why the layer exists and which question it answers, who the owner is, links to the ontology, collections, contours and lenses |
  13. | Layer ontology | `/<layer>/ontology.md` | what the layer describes and what it does not, words, types and fields, bridges into other layers |
  14. | Collections | `/<layer>/<name>.md` and the folder `/<layer>/<name>/` | the records of the layer, one collection per kind |
  15. | Contours | `/<layer>/contours/` | the states of the layer's records (package `contours`) |
  16. | Lenses | next to what they show | HTML built from the layer's markdown (package `lenses`) |
  17. The project root holds only the main `index.md`, the layer pages `<layer>.md` and their folders.
  18. ## A package installs a layer
  19. A layer is brought by a package: its pages lie in the package's `pages/` as they will lie in the project (`pages/work.md`, `pages/work/tasks.md`). The package depends on `layers`. Every project path has one owner package.
  20. A package that brings a collection adds its kind to the map ["Where things lie"](/base/ontology/placement.md): each kind of record has exactly one place. This is norm [SCH-R04](/norms/rules/layers/SCH-R04.md); its enforcer is the check `placement`.
  21. A layer that has no package yet is built by the project itself by the same layout.