Quality
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.mdand 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 withRun, the agent run log of therunspackage), 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 sensorgoals-coverage(shtuk run quality goals-coverage). - On install and update the action
placementadds the layer's six kinds to the placement map; without it the placement check of thelayerspackage will not pass. It removes the lineRun → /quality/runsthat 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/risksis theriskspackage. Tests, risk coverage and check runs are thetestingpackage. - 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
movesfield on initiatives,indicatoron 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
testingpackage, the second needs themovesfield on initiatives (a proposal for thetaskspackage).
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
| ID | Norm | Level | Mode | Enforcer |
|---|---|---|---|---|
| QLT-R01 | MUST | blocks | check |
|
| QLT-R02 | MUST | blocks | check |
|
| QLT-R03 | MUST | blocks | check |
|
| QLT-R04 | MUST | blocks | check |
|
| QLT-R05 | SHOULD | blocks | check |
|
| QLT-R06 | SHOULD | blocks | check |
|
| QLT-R07 | SHOULD | blocks | check |
|
| QLT-R08 | SHOULD | blocks | check |
|
| QLT-R09 | SHOULD | observes | sensor |
"Blocks": the enforcer stops a violation. "Observes": it only notes it. Level MUST means required; SHOULD means yes by default.
Actions 10
| Name | What it does | File | When |
|---|---|---|---|
| placement | Add the layer's kinds to the placement map | actions/place.ts | after install after update |
| indicator-method | An 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-counted | A measurement counts: indicator, date, value, sample, source norm QLT-R03 | checks/q03_measurement.ts | check |
| contract-indicator | A contract indicator links to an acceptance criterion norm QLT-R04 | checks/q04_contract.ts | check |
| assumption-checkable | An assumption is checkable norm QLT-R05 | checks/q05_assumption.ts | check |
| outcome-described | Work benefit past the hypothesis is fully described norm QLT-R06 | checks/q06_outcome.ts | check |
| dataset-described | A received dataset is described norm QLT-R07 | checks/q07_dataset.ts | check |
| agent-correctness | A professional agent has a correctness indicator with a dataset and a frequency norm QLT-R08 | checks/q08_agent_correctness.ts | check |
| goals-coverage | Sensor: 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.
- /
- Quality page
- /norms/rules/quality/
- An indicator has a measurement method QLT-R01
- "Measuring" only with a baseline and a fresh measurement QLT-R02
- A measurement counts only if it has an indicator, a date, a value, a sample and a source QLT-R03
- A contract indicator links to an acceptance criterion QLT-R04
- An assumption is checkable QLT-R05
- Work benefit past the hypothesis is fully described QLT-R06
- A received dataset is described QLT-R07
- A professional agent has a correctness indicator with a dataset and a frequency QLT-R08
- Every goal has a work benefit and a potential indicator QLT-R09
- /quality/
- Assumptions collection
- Datasets collection
- Indicators collection
- Measurements collection
- Quality ontology page
- Work benefit collection
- Runs collection
- /quality/contours/
- Assumptions contour
- Datasets contour
- Indicators contour
- Work benefit contour
- /quality/contours/assumptions/
- Accepted contour phase
- Checking contour phase
- Confirmed contour phase
- Refuted contour phase
- /quality/contours/datasets/
- Approved contour phase
- Labeled contour phase
- Received contour phase
- Requested contour phase
- Stale contour phase
- /quality/contours/indicators/
- Defined contour phase
- Instrumented contour phase
- Measuring contour phase
- Retired contour phase
- /quality/contours/outcomes/
- Defined contour phase
- Handed over contour phase
- Hypothesis contour phase
- Instrumented contour phase
Package files 13
They go into .shtukbase/packages/quality/; actions run from there.