VC4QI
Contents

Use cases#

VC4QI's examples cover six base QI situations and an experimental product passport, each on signed fixtures in an experimental binding. All parties, keys and grants are fictional.

Use case Label What it shows Binding and profile Tests (TS / Python)
reference-material-recursive E An RM certificate under an operational scope within an accreditation, supported by an independently authorized homogeneity study RM v1, rm-verifier-1 (two-route variant rm-verifier-two-routes-1) rm-v1-*.test.ts / test_rm_v1_*.py
calibration-direct-accreditation A A calibration certificate (DCC) under the laboratory's accreditation; each measurement group is a claim Calibration v1, cal-verifier-1 cal-v1.test.ts / test_cal_v1.py
calibration-capability B The laboratory's own bounded capability scope within its accreditation, with no widening Calibration v1, cal-verifier-capability-1 same
nmi-legal-mandate C A national metrology institute authorized by a statutory mandate, with no accreditation root Calibration v1, cal-verifier-nmi-1 same
test-report-supported-dcc F A test report supported by its instrument's own authorized calibration Calibration v1, cal-verifier-test-report-1 same
gs-scheme-authorization GS A GS mark needing competence AND scheme permission, and a type examination and factory inspection GS v1, gs-verifier-1, gs-verifier-dpp-1 gs-v1.test.ts / test_gs_v1.py
gs-product-passport (experimental) DPP A unit's product passport, shaped after the EU DPP (ESPR), whose compliance information lists the GS mark, supported by the unit's GS-mark credential (same unit, operator and model), which keeps its own route to the GS certificate. Other passport sections are not interpreted. Not ESPR conformance; today's GS scheme has no per-unit credential GS v1, gs-verifier-dpp-1 same

Labels (A–F, GS, DPP) are display names, not governed profile identifiers.

Run them#

After setup:

pnpm -C packages/core-ts exec vitest run tests/rm-v1-claims.test.ts tests/cal-v1.test.ts tests/gs-v1.test.ts
.venv/bin/python -m pytest packages/core-py/tests/test_rm_v1_claims.py packages/core-py/tests/test_cal_v1.py packages/core-py/tests/test_gs_v1.py

Negative cases are built by re-signing edited copies of the fixtures with the fixture keys, so each is decided on its meaning, not a broken signature; protection tests break signatures on purpose.

Walkthrough: the reference-material witness#

The RM binding carries the complete witness from the model: the accreditation ACC-RMP of the RM producer (As, Cu, Zn, Pb, 0.1 mg/kg to 997 g/kg, M1 and M2, shaped after a flexible-scope annex row), the producer's own flexible scope list LIST-RMP within it (As, [50, 500] mg/kg, M1 only), the certificate RM178 (CuZn39Pb3 brass, arsenic, U = 5 mg/kg, k = 2), the homogeneity study HOM-LOT1 and the laboratory's accreditation ACC-LAB. The verifier asks for x + U <= 200 mg/kg (guarded-acceptance-expanded-u). As in the DRMD, every certified value is a PTB D-SI 2.2.1 real (QUDT MassFraction, unit \milli\gram\kilogram\tothe{-1} or \percent, expanded uncertainty with k = 2); see bindings.

Signed certificate Scope Conformity Decision
RM178.json established 183 ≤ 200 accept
RM197.json established 202 > 200 reject (authorization established)
RM520.json contradicted not run reject

520 mg/kg lies inside A but outside O. The certificate draws its authority from O, and the parent never rescues the child.

The demonstrator runs exactly these cases in the browser with the same evaluator, and adds a tamper test and a withheld study. Its DCC, GS and DPP tabs do the same for the calibration and GS bindings, and the GS story puts the GS chain on an actor board. The RM story draws this chain top to bottom and plays scenarios on it: verifiers with different roots, a suspended accreditation asked about today or at issuance, an expired certificate, a withdrawn study, an edited value, and certificates you sign yourself.

For the accepted case the claim witnesses are the route operational-scope, D, O, A and the record O#scope-as-m1; support names D, S and H. An authorization-only request for 197 does not run conformity and is accepted. Other controls cover the 195 boundary (exactly 200 passes), a missing or wrong-batch study, M2 without a succession rule, a suspended accreditation and historical questions, which are refused. The same scenarios are checked byte-for-byte across languages by the parity vector.

Walkthrough: the calibration and GS use cases#