ShtukbaseStandard

Quality

quality · version 0.2.0
Quality and tests9 norms8 checks

The Quality layer: work benefit, potential indicators, assumptions between them, datasets, runs and measurements — collections with schemas and contours, the layer ontology and nine norms with enforcers.

About the package

The Quality layer answers the question: how well can the product deliver benefit, and how do we measure and improve that while we build. Two planes: potential (we measure it ourselves on datasets and in runs) and work benefit (the effect at the customer; we describe it, instrument it and hand it over). Between them stand explicit assumptions. The page Quality ontology holds the words, types, links and rules.

The layer was invented and tried in an earlier product (26.11.2026) and is generalized here: sales specifics remain only in examples.

What it installs

  • The layer page /quality.md and the ontology /quality/ontology.md.
  • Six collections with schemas: work benefit (Outcome), indicators (Indicator), assumptions (Assumption), datasets (Dataset), runs (QualityRun: the kind is named so that it does not clash with Run, the agent run log of the runs package), measurements (Measurement).
  • Four contours with phases: benefit, indicators, assumptions, datasets. Runs and measurements have no contour: they are history.
  • Nine norms QLT-R01…R09. Eight are held by the package's checks (check: true); QLT-R09 is observed by the sensor goals-coverage (shtuk run quality goals-coverage).
  • On install and update the action placement adds the layer's six kinds to the placement map; without it the placement check of the layers package will not pass. It removes the line Run → /quality/runs that versions before 0.2.0 left behind.

The shared part of the checks is checks/lib/qlib.ts: it adds the layer's types to the type map of the collections package library. The risks and testing packages use it.

Where the boundary is

  • The risk register /quality/risks is the risks package. Tests, risk coverage and check runs are the testing package.
  • Bridge fields into the Business, Product, Deal and Knowledge layers stand in the schemas and sleep until those layers exist.
  • The package adds no bridges from other layers into this one (the moves field on initiatives, indicator on hypotheses): the package does not change other packages' schemas.
  • The source layer's rules "change a model or a prompt only after a run without regression" and "a P0–P1 initiative moves an indicator" are not norms here: the first is in the testing package, the second needs the moves field on initiatives (a proposal for the tasks package).

Which lenses are needed

The package carries no lenses. Needed: an indicator board by health (green, yellow, red, no data) with the last value and the target; a chart of an indicator's measurements over time; a map "goal → benefit → assumptions → indicators"; a gallery of runs with results.

Norms 9

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

Actions 10

NameWhat it doesFileWhen
placementAdd the layer's kinds to the placement mapactions/place.ts
after install after update
indicator-methodAn indicator has a measurement method
norm QLT-R01
checks/q01_indicator_method.ts
check
indicator-fresh"Measuring" needs a baseline and a fresh measurement
norm QLT-R02
checks/q02_indicator_fresh.ts
check
measurement-countedA measurement counts: indicator, date, value, sample, source
norm QLT-R03
checks/q03_measurement.ts
check
contract-indicatorA contract indicator links to an acceptance criterion
norm QLT-R04
checks/q04_contract.ts
check
assumption-checkableAn assumption is checkable
norm QLT-R05
checks/q05_assumption.ts
check
outcome-describedWork benefit past the hypothesis is fully described
norm QLT-R06
checks/q06_outcome.ts
check
dataset-describedA received dataset is described
norm QLT-R07
checks/q07_dataset.ts
check
agent-correctnessA professional agent has a correctness indicator with a dataset and a frequency
norm QLT-R08
checks/q08_agent_correctness.ts
check
goals-coverageSensor: goals without benefit and indicator
norm QLT-R09
checks/q09_goals_coverage.ts
shtuk run

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

Pages 38

They go into the project at these paths.

Package files 13

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