A quality and lifecycle vocabulary MUST give the kinds quality.pattern, quality.range, quality.retention and quality.deprecated; quality.default (the value an attribute takes where none is given), quality.unique (attributes or relationships of a concept that are unique together), quality.differs (a named rule that two attributes or relationships of a concept must differ), quality.audited (a domain or a concept keeps who made, changed and removed each record and when, and removes by marking or for good) and quality.openness (a code list is open, the business adds codes of its own, or closed, only the model changes it); its rules find a pattern that is not a regular expression, a range whose minimum is above its maximum, a retention that is not a positive number of days, a default that does not fit its datatype or is not a code of its list, and a member named in unique or differs that the concept lacks (each an error), and an element deprecated with no replacement (a warning).
Enforced (check): .github: cd commons/data && bun run verify — suite/governance-vocabularies.test.ts: the quality kinds go where they say, and the rules find a bad pattern, an inverted range, a bad retention and a deprecation with no replacement; suite/governance-vocabularies.test.ts: unique, differs, audited, openness and default go where they say, and a member the concept lacks or a default that does not fit is found; suite/governance-vocabularies.test.ts: a default is held to its datatype: text, whole numbers, true or false, and a code of its list
Proved by: data/suite/governance-vocabularies.test.ts
Written in: data/governance/vocabularies/mod.ts, data/governance/vocabularies/quality.ts
Tests: passed: suite/governance-vocabularies.test.ts a default is held to its datatype: text, whole numbers, true or false, and a code of its l; passed: suite/governance-vocabularies.test.ts the quality kinds go where they say, and the rules find a bad pattern, an inverted range, ; passed: suite/governance-vocabularies.test.ts unique, differs, audited, openness and default go where they say, and a member the concept
Cited by: governance/vocabularies/quality, Data