@oimlsmart/primmel-packages 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/iso-iec-17000/evaluation/activity-archetypes.prl +189 -0
  2. package/iso-iec-17025/evaluation/functional-approach.prl +382 -0
  3. package/iso-iec-17065/evaluation/functional-approach.prl +437 -0
  4. package/iso-iec-17067/specification/scheme-types.prl +292 -0
  5. package/oiml-cs/.primmel-allowlist.prl +7 -0
  6. package/oiml-cs/evaluation/abstract-processes.prl +454 -0
  7. package/oiml-cs/framework/declarations.prl +1 -1
  8. package/oiml-cs/framework/documents/cid-01/abstract-processes.prl +112 -0
  9. package/oiml-cs/framework/documents/cid-01/requirements.prl +99 -0
  10. package/oiml-cs/framework/documents/od-01/abstract-processes.prl +157 -0
  11. package/oiml-cs/framework/documents/od-01/requirements.prl +138 -0
  12. package/oiml-cs/framework/documents/od-02/abstract-processes.prl +119 -0
  13. package/oiml-cs/framework/documents/od-02/requirements.prl +75 -0
  14. package/oiml-cs/framework/documents/pd-01/abstract-processes.prl +209 -0
  15. package/oiml-cs/framework/documents/pd-01/requirements.prl +117 -0
  16. package/oiml-cs/framework/documents/pd-02/abstract-processes.prl +217 -0
  17. package/oiml-cs/framework/documents/pd-02/requirements.prl +126 -0
  18. package/oiml-cs/framework/documents/pd-03/abstract-processes.prl +348 -0
  19. package/oiml-cs/framework/documents/pd-03/annex-d032.prl +48 -0
  20. package/oiml-cs/framework/documents/pd-03/requirements.prl +162 -0
  21. package/oiml-cs/framework/documents/pd-04/abstract-processes.prl +295 -0
  22. package/oiml-cs/framework/documents/pd-04/annex-d030.prl +54 -0
  23. package/oiml-cs/framework/documents/pd-04/requirements.prl +140 -0
  24. package/oiml-cs/framework/documents/pd-06/abstract-processes.prl +152 -0
  25. package/oiml-cs/framework/documents/pd-06/requirements.prl +122 -0
  26. package/oiml-cs/framework/documents/pd-07/abstract-processes.prl +99 -0
  27. package/oiml-cs/framework/documents/pd-07/requirements.prl +84 -0
  28. package/oiml-cs/framework/documents/pd-08/abstract-processes.prl +102 -0
  29. package/oiml-cs/framework/documents/pd-08/requirements.prl +82 -0
  30. package/oiml-cs/framework/documents/pd-09/abstract-processes.prl +234 -0
  31. package/oiml-cs/framework/documents/pd-09/requirements.prl +82 -0
  32. package/oiml-cs/package.primmel +1 -1
  33. package/oiml-r129/package.primmel +1 -1
  34. package/oiml-r144/package.primmel +1 -1
  35. package/oiml-r60/package.primmel +1 -1
  36. package/oiml-r91/package.primmel +1 -1
  37. package/package.json +2 -2
@@ -0,0 +1,292 @@
1
+ # ISO/IEC 17067:2013 — PRODUCT-CERTIFICATION SCHEME TYPES (TODO.roadmap/39d)
2
+ # -----------------------------------------------------------------------------
3
+ # The clause-5 scheme-type taxonomy of ISO/IEC 17067:2013 as a STRUCTURED,
4
+ # MACHINE-QUERYABLE REGISTER — the resolution register for the
5
+ # `scheme_type` facet a scheme layer declares in its manifest (today:
6
+ # data/oiml-cs declares `scheme_type: type_1a`, B 18:2025 §1.3). checkUses
7
+ # (the composition registry) resolves a declared type against the register
8
+ # of a layer composed earlier; task 43's oiml-cs→17067 coverage gate reads
9
+ # the facets to discharge type-conditioned provisions (a type-1a scheme
10
+ # carries NO surveillance — the
11
+ # /req/iso-17067/scheme-content/surveillance-procedures provision and the
12
+ # VI-activity content are N/A with the 5.3.1 justification).
13
+ #
14
+ # The register encodes clause 5 INCLUDING Table 1 ("Building a product
15
+ # certification scheme", 5.2):
16
+ # family common Table-1 rows I–IV — X for every scheme type
17
+ # (5.3.1: "All types of product certification schemes
18
+ # involve selection, determination, review, decision
19
+ # and attestation"); row I includes sampling, as
20
+ # applicable.
21
+ # family determination Table-1 row II a)–e) — "as applicable" for every
22
+ # type; the scheme selects per its purpose and scope
23
+ # (6.5.1 c).
24
+ # family attestation Table-1 row V a)–d) — attestation and licensing;
25
+ # the per-type `attestation` list carries the X-marks.
26
+ # family surveillance Table-1 row VI a)–d) — the surveillance menu; the
27
+ # per-type `surveillance.activities` list carries the
28
+ # X-marks.
29
+ # scheme_type the seven named types (5.3.2–5.3.8), each with
30
+ # its defining-subclause anchor, a verbatim-faithful
31
+ # description, the attestation object, the
32
+ # attestation/licensing X-marks, and the SURVEILLANCE
33
+ # facet — `required` is the 5.3.1 machine query ("For
34
+ # scheme types 1a and 1b, no surveillance is required
35
+ # since the attestation relates only to the product
36
+ # items which have been subjected to the
37
+ # determination activities").
38
+ #
39
+ # Table-1 notes carried by the register (5.2): NOTE c — a scheme includes
40
+ # at least the activities I, II, III, IV and V a) (hence issue_statement
41
+ # is on every type's attestation list); NOTE a — the activities can be
42
+ # coupled with initial audit and surveillance audit of the applicant's
43
+ # management system (an example is given in ISO/IEC Guide 53), the order
44
+ # defined within the scheme; NOTE b — ISO/IEC Guide 28 is the often-used,
45
+ # well-tried model corresponding to scheme type 5; NOTE d — the table's
46
+ # "N" column marks an undefined number of possible OTHER schemes based on
47
+ # different activities: a placeholder, deliberately NOT a register entry
48
+ # (a scheme_type value must name one of the seven defined types).
49
+ #
50
+ # X-MARK VERIFICATION: every per-type attestation/surveillance list was
51
+ # transcribed from the Metanorma AsciiDoc Table-1 rows (see layer.yaml
52
+ # editions.source) and cross-checked against the 5.3.x defining
53
+ # subclauses. One divergence from the corpus audit's summary table
54
+ # (analysis/oiml-cs-corpus-audit-2026-07.md, Corpus D §2.2): Table 1's
55
+ # raw V d) row marks X for type 6 (cells: 1a blank, X for 1b/2/3/4/5/6,
56
+ # N absent) — the audit's "type 6 has a)+b)" omits it. The raw table is
57
+ # authoritative; type 6 carries mark_licensing.
58
+ #
59
+ # X for row V d) is conditioned by the standard itself: "granting the
60
+ # right to use marks of conformity (licensing) is based on surveillance
61
+ # (VI) or certification of a batch" — type 1a (no surveillance, no batch)
62
+ # carries no mark licensing, matching the table.
63
+ #
64
+ # Cross-references (the per-type determination/attestation/surveillance
65
+ # ids against the activity-kind menus; a scheme manifest's scheme_type
66
+ # against this register when composed) are checked package-side by the
67
+ # kernel's C122 scheme-type-resolves (per-register gated).
68
+ #
69
+ # This file is the single source of truth; the consumer's
70
+ # data/iso-iec-17067/specification/scheme-types.yaml is its GENERATED YAML
71
+ # twin (cd browser && npm run gen:data; schema data/schemas/scheme-types.yaml).
72
+ scheme_activity_kind selection {
73
+ family common
74
+ row "I"
75
+ label "Selection, including planning and preparation activities, specification of requirements, e.g. normative documents, and sampling, as applicable"
76
+ }
77
+
78
+ scheme_activity_kind determination {
79
+ family common
80
+ row "II"
81
+ label "Determination of characteristics, as applicable, by: a) testing; b) inspection; c) design appraisal; d) assessment of services or processes; e) other determination activities, e.g. verification"
82
+ }
83
+
84
+ scheme_activity_kind review {
85
+ family common
86
+ row "III"
87
+ label "Review — Examining the evidence of conformity obtained during the determination stage to establish whether the specified requirements have been met"
88
+ }
89
+
90
+ scheme_activity_kind decision {
91
+ family common
92
+ row "IV"
93
+ label "Decision on certification — Granting, maintaining, extending, reducing, suspending, withdrawing certification"
94
+ }
95
+
96
+ scheme_activity_kind testing {
97
+ family determination
98
+ row "II a)"
99
+ label "testing"
100
+ }
101
+
102
+ scheme_activity_kind inspection {
103
+ family determination
104
+ row "II b)"
105
+ label "inspection"
106
+ }
107
+
108
+ scheme_activity_kind design_appraisal {
109
+ family determination
110
+ row "II c)"
111
+ label "design appraisal"
112
+ }
113
+
114
+ scheme_activity_kind service_process_assessment {
115
+ family determination
116
+ row "II d)"
117
+ label "assessment of services or processes"
118
+ }
119
+
120
+ scheme_activity_kind other_determination {
121
+ family determination
122
+ row "II e)"
123
+ label "other determination activities, e.g. verification"
124
+ }
125
+
126
+ scheme_activity_kind issue_statement {
127
+ family attestation
128
+ row "V a)"
129
+ label "issuing a certificate of conformity or other statement of conformity (attestation)"
130
+ }
131
+
132
+ scheme_activity_kind grant_use_of_statement {
133
+ family attestation
134
+ row "V b)"
135
+ label "granting the right to use certificates or other statements of conformity"
136
+ }
137
+
138
+ scheme_activity_kind batch_certificate {
139
+ family attestation
140
+ row "V c)"
141
+ label "issuing a certificate of conformity for a batch of products"
142
+ }
143
+
144
+ scheme_activity_kind mark_licensing {
145
+ family attestation
146
+ row "V d)"
147
+ label "granting the right to use marks of conformity (licensing) — based on surveillance (VI) or certification of a batch"
148
+ }
149
+
150
+ scheme_activity_kind market_sampling {
151
+ family surveillance
152
+ row "VI a)"
153
+ label "testing or inspection of samples from the open market"
154
+ }
155
+
156
+ scheme_activity_kind factory_sampling {
157
+ family surveillance
158
+ row "VI b)"
159
+ label "testing or inspection of samples from the factory"
160
+ }
161
+
162
+ scheme_activity_kind production_assessment {
163
+ family surveillance
164
+ row "VI c)"
165
+ label "assessment of the production, the delivery of the service or the operation of the process"
166
+ }
167
+
168
+ scheme_activity_kind management_system_audit {
169
+ family surveillance
170
+ row "VI d)"
171
+ label "management system audits combined with random tests or inspections"
172
+ }
173
+
174
+ scheme_type type_1a {
175
+ label "scheme type 1a"
176
+ clause "5.3.2"
177
+ description "In this scheme, one or more samples of the product are subjected to the determination activities. A certificate of conformity or other statement of conformity (e.g. a letter) is issued for the product type, the characteristics of which are detailed in the certificate or a document referred to in the certificate. Subsequent production items are not covered by the certification body's attestation of conformity. The samples are representative of subsequent production items which could be referred to by the manufacturer as being manufactured in accordance with the certified type. The certification body may grant to the manufacturer the right to use the type certificate or other statement of conformity (e.g. letter) as a basis for the manufacturer to declare that subsequent production items conform to the specified requirements."
178
+ sampling "One or more samples of the product are subjected to the determination activities; the samples are representative of subsequent production items which could be referred to by the manufacturer as being manufactured in accordance with the certified type (5.3.2)."
179
+ attestation_object product_type
180
+ determination { testing inspection design_appraisal service_process_assessment other_determination }
181
+ attestation { issue_statement grant_use_of_statement }
182
+ surveillance {
183
+ required false
184
+ }
185
+ notes {
186
+ "No surveillance is required (5.3.1): the attestation relates only to the product items which have been subjected to the determination activities. Subsequent production items are NOT covered by the certification body's attestation of conformity."
187
+ "The OIML-CS case (B 18:2025 §1.3): the type certificate attests the TYPE — which is precisely why metrological verification exists as a separate pathway for production items, outside the product-certification frame."
188
+ }
189
+ }
190
+
191
+ scheme_type type_1b {
192
+ label "scheme type 1b"
193
+ clause "5.3.3"
194
+ description "This scheme type involves the certification of a whole batch of products, following selection and determination as specified in the scheme. The proportion to be tested, which can include testing of all the units in the batch (100 % testing), would be based, for example, on the homogeneity of the items in the batch and the application of a sampling plan, where appropriate. If the outcome of the determination, review and decision is positive, all items in the batch may be described as certified and may have a mark of conformity affixed, if that is included in the scheme."
195
+ sampling "The proportion of the batch to be tested — which can include testing of all the units in the batch (100 % testing) — is based, for example, on the homogeneity of the items in the batch and the application of a sampling plan, where appropriate (5.3.3)."
196
+ attestation_object batch
197
+ determination { testing inspection design_appraisal service_process_assessment other_determination }
198
+ attestation { issue_statement grant_use_of_statement batch_certificate mark_licensing }
199
+ surveillance {
200
+ required false
201
+ }
202
+ notes {
203
+ "No surveillance is required (5.3.1): the attestation relates only to the product items which have been subjected to the determination activities — here the whole batch."
204
+ }
205
+ }
206
+
207
+ scheme_type type_2 {
208
+ label "scheme type 2"
209
+ clause "5.3.4"
210
+ description "The surveillance part of this scheme involves periodically taking samples of the product from the market and subjecting them to determination activities to check that items produced subsequent to the initial attestation fulfil the specified requirements. While this scheme may identify the impact of the distribution channel on conformity, the resources it requires can be extensive. Also, when significant nonconformities are found, effective corrective measures may be limited since the product has already been distributed to the market."
211
+ sampling "Surveillance samples are taken periodically from the market (5.3.4; Table 1, VI a)."
212
+ attestation_object ongoing_production
213
+ determination { testing inspection design_appraisal service_process_assessment other_determination }
214
+ attestation { issue_statement grant_use_of_statement mark_licensing }
215
+ surveillance {
216
+ required true
217
+ activities { market_sampling }
218
+ }
219
+ notes {
220
+ "May identify the impact of the distribution channel on conformity, but corrective measures can be limited once nonconforming product has already been distributed (5.3.4)."
221
+ }
222
+ }
223
+
224
+ scheme_type type_3 {
225
+ label "scheme type 3"
226
+ clause "5.3.5"
227
+ description "The surveillance part of this scheme involves periodically taking samples of the product from the point of production and subjecting them to determination activities to check that items produced subsequent to the initial attestation fulfil the specified requirements. The surveillance includes periodic assessment of the production process. This scheme does not provide any indication of the impact the distribution channel plays on conformity. When serious nonconformities are found, the opportunity may exist to resolve them before widespread market distribution occurs."
228
+ sampling "Surveillance samples are taken periodically from the point of production (5.3.5; Table 1, VI b)."
229
+ attestation_object ongoing_production
230
+ determination { testing inspection design_appraisal service_process_assessment other_determination }
231
+ attestation { issue_statement grant_use_of_statement mark_licensing }
232
+ surveillance {
233
+ required true
234
+ activities { factory_sampling production_assessment }
235
+ }
236
+ notes {
237
+ "Provides no indication of the distribution channel's impact on conformity, but serious nonconformities may be resolved before widespread market distribution occurs (5.3.5)."
238
+ }
239
+ }
240
+
241
+ scheme_type type_4 {
242
+ label "scheme type 4"
243
+ clause "5.3.6"
244
+ description "The surveillance part of this scheme allows for the choice between periodically taking samples of the product from the point of production, or from the market, or from both, and subjecting them to determination activities to check that items produced subsequent to the initial attestation fulfil the specified requirements. The surveillance includes periodic assessment of the production process. This scheme can both indicate the impact the distribution channel plays on conformity and provide a premarket mechanism to identify and resolve serious nonconformities. Significant duplication of effort may take place for those products whose conformity is not affected during the distribution process."
245
+ sampling "Surveillance samples are taken periodically from the point of production, or from the market, or from both — the choice is defined within the scheme (5.3.6; Table 1, VI a + b)."
246
+ attestation_object ongoing_production
247
+ determination { testing inspection design_appraisal service_process_assessment other_determination }
248
+ attestation { issue_statement grant_use_of_statement mark_licensing }
249
+ surveillance {
250
+ required true
251
+ activities { market_sampling factory_sampling production_assessment }
252
+ }
253
+ notes {
254
+ "Combines the type-2 and type-3 indications (distribution-channel impact AND a premarket mechanism), at the price of possible duplicated effort for products whose conformity is not affected during distribution (5.3.6)."
255
+ }
256
+ }
257
+
258
+ scheme_type type_5 {
259
+ label "scheme type 5"
260
+ clause "5.3.7"
261
+ description "The surveillance part of this scheme allows for the choice between periodically taking samples of the product either from the point of production, or from the market, or from both, and subjecting them to determination activities to check that items produced subsequent to the initial attestation fulfil the specified requirements. The surveillance includes periodic assessment of the production process, or audit of the management system, or both. The extent to which the four surveillance activities are conducted may be varied for a given situation, as defined in the scheme. If the surveillance includes audit of the management system, an initial audit of the management system will be needed."
262
+ sampling "Surveillance samples are taken periodically from the point of production, or from the market, or from both — the extent of the four surveillance activities may be varied for a given situation, as defined in the scheme (5.3.7; Table 1, VI a–d)."
263
+ attestation_object ongoing_production
264
+ determination { testing inspection design_appraisal service_process_assessment other_determination }
265
+ attestation { issue_statement grant_use_of_statement mark_licensing }
266
+ surveillance {
267
+ required true
268
+ activities { market_sampling factory_sampling production_assessment management_system_audit }
269
+ }
270
+ notes {
271
+ "If the surveillance includes audit of the management system, an initial audit of the management system will be needed (5.3.7)."
272
+ "ISO/IEC Guide 28 is the often-used and well-tried model for a product certification scheme corresponding to scheme type 5 (Table 1, Note b)."
273
+ }
274
+ }
275
+
276
+ scheme_type type_6 {
277
+ label "scheme type 6"
278
+ clause "5.3.8"
279
+ description "This scheme is mainly applicable to certification of services and processes. Although services are considered as being generally intangible, the determination activities are not limited to the evaluation of intangible elements (e.g. effectiveness of an organization's procedures, delays and responsiveness of the management). In some situations, the tangible elements of a service can support the evidence of conformity indicated by the assessment of processes, resources and controls involved. For both services and processes, the surveillance part of this scheme should include periodic audits of the management system and periodic assessment of the service or process."
280
+ sampling "Determination activities are not limited to the evaluation of intangible elements — the tangible elements of a service can support the evidence of conformity (e.g. inspection of the cleanliness of vehicles for the quality of public transportation); for processes, determination can include testing and inspection of samples of the resultant product (e.g. welds), if applicable (5.3.8)."
281
+ attestation_object service_or_process
282
+ determination { testing inspection design_appraisal service_process_assessment other_determination }
283
+ attestation { issue_statement grant_use_of_statement mark_licensing }
284
+ surveillance {
285
+ required true
286
+ activities { production_assessment management_system_audit }
287
+ }
288
+ notes {
289
+ "Mainly applicable to certification of services and processes (5.3.8). Table 1's V d) row marks X for type 6 (mark licensing based on the VI surveillance) — the corpus audit's summary table omits this mark; the raw table is authoritative."
290
+ }
291
+ }
292
+
@@ -0,0 +1,7 @@
1
+ # .primmel-allowlist.prl — GENERATED from primmel-allowlist.yaml (TODO.roadmap/17), do not edit.
2
+ allowlist_entry {
3
+ rule C121
4
+ match "*realized_by \"*\" is not a declared process (abstract-process-references-resolve)*"
5
+ reason "The realized_by edges resolve against the COMPOSED model (the rec packages' concrete evaluation/processes.prl processes) by design — C121's merged-model semantics. The corpus's standalone check mode (no resolvePackage locator) cannot see them, and composing trips the pre-existing CASCO C28 (the include-transport migration, primmel-ts task 13). Content-level resolution is proven by the consumer's cs-coverage gate. Dies when the gates check composed (the STALE discipline)."
6
+ audit_ref "TODO.roadmap/42"
7
+ }