ShtukbaseStandard

Layers

layers · version 0.2.0
Shtukbase Basicin Basic1 norm1 check

What a project layer is and what it consists of, the "Where things lie" map and the norm "one kind of record, one place" with a check.

About the package

The package explains what a layer is and what it consists of, and puts the placement map /base/ontology/placement.md: the kind of record, the only place, who writes, who reads. The check placement compares all collections and records of the project with the map.

Where the boundary is

  • Here: the definition of a layer, the placement map and the norm "one kind, one place".
  • The layers themselves (business, work, norms ...) are installed by their own packages; they depend on this one.
  • The ontology of a project (which layers it consists of) is the package ontology.

The map already has the lines for the kinds of the Basic set: Contour (the collection /base/contours, the contours themselves in <layer>/contours/) and twelve kinds from the packages norms-core, tasks, decisions, owner, bugs. The line of a kind whose package is not installed gets in nobody's way. A package that brings another collection must add the line of its kind to the map, otherwise the check will not pass.

The check s04_placement.ts lies in the package; it takes the shared part of parsing from the package collections (it lies next to it in .shtukbase/packages/).

Norms 1

"Blocks": the enforcer stops a violation. "Observes": it only notes it. Level MUST means required; SHOULD means yes by default.

Actions 1

NameWhat it doesFileWhen
placementEach kind of record lies in one place by the placement map
norm SCH-R04
checks/s04_placement.ts
check

shtuk check runs the checks; shtuk run layers <name> runs any action. "After install" actions run by themselves only if the package comes from a trusted source.

Pages 3

They go into the project at these paths.

Package files 2

They go into .shtukbase/packages/layers/; actions run from there.