ShtukbaseStandard

Contours

contours · version 0.2.0
Shtukbase Basicin Basic3 norms3 checks

What a contour is: the life cycle of one kind of record: states, the moves between them and the conditions of the moves. A collection of all contours of the project and three norms with checks: a state is from the contour, a contour is connected as a whole, a move is only an allowed one.

About the package

A contour is the life cycle of one kind of record: states (phases), the allowed moves between them and the conditions of the moves. The package puts the collection /base/contours, which gathers the contours of all layers, uses it to explain how a contour is written, and brings three norms; their enforcers are the package checks.

Where the boundary is

  • Here: the format of a contour and a phase, the collection of contours, the checks of states, of the integrity of a contour and of moves.
  • The contours themselves (tasks, decisions, bugs ...) are brought by the layer packages: each puts its own in <layer>/contours/.
  • A board by states and a diagram of a contour are lenses; the package does not carry them yet.
  • A state that is computed from data (overdue, done) is never a contour.

All three checks live in this package: c01_states.ts: the state of a record is a phase of its contour (CNT-R01); c02_contour.ts: the contour is whole (CNT-R02); c03_moves.ts: the move is allowed (CNT-R03). The move check looks at one step: from the last git commit to the working copy. The checks take the shared part of parsing from the package collections (it lies next to it in .shtukbase/packages/).

Norms 3

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

Actions 3

NameWhat it doesFileWhen
statesThe state of a record is a phase of its contour
norm CNT-R01
checks/c01_states.ts
check
contourA contour is connected as a whole: collection, phases, entry and exits
norm CNT-R02
checks/c02_contour.ts
check
movesA state changes only by an allowed move
norm CNT-R03
checks/c03_moves.ts
check

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

Pages 4

They go into the project at these paths.

Package files 5

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