Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Introduction

Veredictum is a conformance instrument for openEHR clinical data repositories. Point it at a running CDR and it reports, with citations, which parts of the openEHR specification that server implements.

Status: Veredictum is on 0.x and is not yet approved by the openEHR SEC. Version 1.0.0 will mark that approval.

It drives a catalogue of 1912 spec-cited test cases over the server’s own wire, records every exchange, and computes verdicts as pure functions over the recording. It also measures performance, for one server or two on one host. The released openEHR specifications are its only authority: every expectation names the section it comes from. The repository publishes no results about anybody’s product.

console.veredictum.eu runs functional conformance against a publicly reachable CDR (The hosted instrument). For performance or private deployments, see Installation.

Two products over one engine

  • The instrument CLI: veredictum, from crates.io or a signed release binary.
  • The web console: the image ghcr.io/vernum-projecten/veredictum, a browser frontend over the same pinned CLI. docker run <image> test … runs any CLI subcommand given as the first argument.

The command surface

QuestionCommands
Does it conform?validate checks the catalogue before any server is involved; zero findings is the only pass. test drives the cases your statement selects, records every exchange as HAR, and writes results.json; --rejudge reproduces the results from the recording alone. export renders results for a CI system.
How does it hold up under clinical traffic?perf offers a declared workload as Poisson arrivals and walks a load ladder to the knee in at most ten minutes after seeding, writing a perf-result that perf-judge re-derives. perf-compare aligns records, and runs two CDRs, or one against itself, interleaved on one host. perf-workloads checks a workload document offline. A performance record earns no class and is never a conformance verdict.

Also: show, verify (certificates), emit-schemas, perf-assets and identify. The command reference is generated from veredictum --help. Running the instrument walks a live run.

Who this is for

  • Evaluators and procurement teams: a claim about a CDR that anyone holding the recording can re-judge to the same bytes.
  • CDR vendors and maintainers: each failing row carries its exchange and the section it violates.
  • The openEHR community: a machine-readable conformance test suite. Where the specification is silent or contradicts itself, no case asserts the behaviour; it becomes an upstream report with a proposed patch.

What is in the box

The counts are what veredictum validate prints; a CI guard fails the build if they drift.

The cataloguecatalogue/cases/: 1912 spec-cited cases as Arazzo 1.1.0 workflows over the released openEHR REST API OpenAPI documents, in 275 Arazzo documents. One case per behaviour; each invalid shape is its own refusal case; every criterion carries the sentence it enforces
15 capability foldersEHR, EHR status, composition, content, contribution, directory, item tags, query, definition, demographic, admin, security, simplified formats, SMART, system. A statement claims folders
The optionscatalogue/capabilities.yaml: behaviours the release leaves to the implementation. A statement picks one arm of each; other arms are skipped
The id mapcatalogue/id-map.yaml: every former case-core id, mapped to its workflows or the reason none exists
The performance workloadsperf/: workloads, host prescriptions and payloads
The published schemasschemas/: JSON Schema for every artifact family, drift-tested
The verification packverification-pack/arazzo/: recorded HAR exchanges the evaluator must re-judge into their adjudicated results
The specification oraclespecs/openehr/: the released text, vendored verbatim, with the released XSD, JSON Schema and OpenAPI bundles

Coverage is machine-checked

A gate enumerates the wire surface from the released OpenAPI documents and fails on any operation or response branch with neither a case nor a recorded gap. Cases are never removed to go green. See the conformance method.

Note

openEHR® is the registered trademark of the openEHR Foundation. Veredictum is an independent, community-driven instrument that names openEHR to say what it tests. It is not an official openEHR Foundation product, not the Foundation’s CNF program, and not endorsed by or affiliated with the Foundation.

Installation

To install nothing, use the hosted instrument at console.veredictum.eu: it browses the catalogue and runs functional conformance against a publicly reachable CDR. Install locally to reach private deployments, run the measured instruments, or work offline.

What you need, and why a clone is part of it

The instrument reads three paths at run time: the catalogue, the vendored specification oracle, and your declaration of the deployment under test. The catalogue and oracle are over 300 MB, too large for a package registry, so the crate and the image carry the code and a clone carries the data:

git clone https://github.com/Vernum-Projecten/Veredictum
cd Veredictum

Every install path below runs against that clone.

With cargo

cargo install veredictum --locked
veredictum validate --root catalogue --specs specs/openehr

--locked builds against the release’s tested Cargo.lock; without it cargo resolves fresh dependency versions. The crate also publishes a library target with the typed artifact model and the JSON Schemas.

With Docker: the web console

The image is the web console. The CLI ships as release binaries, not an image. The operator compose file pins the image version and binds the console to loopback on port 3210:

curl -LO https://raw.githubusercontent.com/Vernum-Projecten/Veredictum/main/deploy/docker/docker-compose.yml
docker compose up

Open http://127.0.0.1:3210. Releases after v0.1.1 attach the same file, pinned to that release’s image, to the release page. Without compose:

docker run --rm -p 127.0.0.1:3210:3000 -v "$PWD:/work" \
    ghcr.io/vernum-projecten/veredictum:<tag>

Take <tag> from the package page. The image is multi-architecture and pushed by digest; tags apply only after a smoke run and a vulnerability scan of that digest pass.

The image carries the release’s catalogue and oracle at /work/catalogue and /work/specs, so it works in an empty directory. Bind-mount your own checkout over those paths to grade against it. The console has no login, so both commands bind loopback; exposing it is the operator’s decision. The console chapter shows what it does.

From a release binary

Every release attaches x86_64 and aarch64 Linux binaries, each tarball with a sha256sum, a CycloneDX SBOM and a Sigstore bundle. Verify before running; --signer-workflow asserts the file was built by this repository’s workflow:

gh attestation verify veredictum-<tag>-<target>.tar.gz \
    -R Vernum-Projecten/Veredictum \
    --signer-workflow Vernum-Projecten/Veredictum/.github/workflows/release-build.yml

A release stays a draft until every asset is attached. Tags are signed and a repository rule refuses their deletion, so a tag never moves; a bad cut is fixed by the next version.

From source

rust-toolchain.toml pins the toolchain:

cargo run -- validate --root catalogue --specs specs/openehr

The minimum supported Rust version is 1.98, checked in CI. cargo-nextest is needed only to run the project’s own tests.

Checking that the install works

validate needs no server:

veredictum validate --root catalogue --specs specs/openehr

An intact clone prints one line and exits zero:

275 document(s), 1912 workflow(s), 376 rows file(s), 15 capability folder(s), 0 finding(s)

A finding count above zero is a catalogue failure, not a setup problem; the findings printed above the line name the document at fault.

What the instrument touches

Verify the binary first

gh attestation verify veredictum-<tag>-<target>.tar.gz \
    -R Vernum-Projecten/Veredictum \
    --signer-workflow Vernum-Projecten/Veredictum/.github/workflows/release-build.yml

If it fails, do not run the file.

What each command reaches

  • test: the base URL you give; it creates and deletes data there, so use a test system. With --rejudge it sends nothing.
  • perf: the IXIT’s base URL, where it creates its corpus. With a containers block, also the Docker Engine API (container statistics), plus read-only queries and one vacuumdb --analyze in the database container.
  • perf-compare --ab / --aa: as perf, per side. --with-baselines also pulls and runs two pinned reference images (ghcr.io, Docker Hub) on loopback through your docker CLI, then removes them and their volumes.
  • validate, export, show, verify, perf-judge, perf-compare --result, perf-workloads, perf-assets: offline.
  • The console image: loopback by default, no login; reaches a CDR only through runs you start.

No command sends telemetry. Credentials come only from environment variables (Logging in to the CDR). Any record can be re-checked without trusting the operator: test --rejudge for a recording, perf-judge for a performance record.

Verifying a certificate

A certificate is an Ed25519-signed JWS (RFC 7515) naming the server, catalogue revision, engine version, verdict summary, and the SHA-256 digests of the run’s results.json and HAR recording. The JWK Set is at https://console.veredictum.eu/.well-known/jwks.json and in deploy/hosted/jwks.json:

veredictum verify certificate.jws --jwks jwks.json
sha256sum results.json recording.har

verify exits 0 and prints the certificate’s statements, or 1 naming the refusal: payload or header changed, unknown key, algorithm other than EdDSA, revoked key, or key expired before issue. Its two digests must match sha256sum’s.

A JOSE library verifies the same signature but ignores the set’s expires_at and revoked_at members; check revoked_at yourself.

The hosted instrument runs in trial mode and issues no certificate yet, so the set holds no key.

The hosted instrument

console.veredictum.eu drives the catalogue against the endpoint you name and shows the full results and verdicts. Functional conformance only; perf and perf-compare run locally, since a latency measured from Falkenstein includes the network path. Nothing is published, and the record stays with whoever drove the run. You chose the endpoint, and the record says so. Delivery pipeline: deploy/hosted/README.md.

Results and certificates

A test report is not a certificate. Certificates are issued by the hosted instrument (#593), which runs in trial mode for now: full results and verdicts, no certificate.

Where it runs

ProviderHetzner Cloud
LocationFalkenstein, Germany, network zone eu-central
MachineCAX21: 4 vCPU Arm (Ampere Altra), 8 GB RAM, 80 GB local disk
Price€10.49 per month, from the account’s own record on 2026-10-23
Paid byThe maintainer, out of pocket. No vendor funds the instrument that grades them
Concurrent runsTwo

The cap fits 8 GB, since each engine loads the whole catalogue (#388). It is VEREDICTUM_MAX_CONCURRENT_RUNS in the box’s environment file and changes with a redeploy, not a release.

The host holds no signing credential. Its one secret is the token for /metrics: runs by outcome, refusals by reason, queue depth, error classes, container memory and CPU. No server, target or result is named.

The box is disposable. Past a restart it keeps one journal line per run (id, outcome, wait and drive time, cases completed). Its cloud-init, compose file and proxy configuration are under deploy/hosted/.

Who can change the thing that judges

Every change to main is a pull request, with its diff, CI run and audit-log entry. The maintainer may merge their own pull request without a second reviewer or with failing checks, but cannot push to main. Signed commits, no force-pushes and no branch deletion apply to everyone.

Running the instrument

1. Check the catalogue

veredictum validate --root catalogue --specs specs/openehr

Zero findings is the only pass; any finding exits 1, and test refuses to start. Gates.

2. Declare your deployment

The repository commits no declaration about any product: under ISO/IEC 9646-7 the supplier answers the ICS proforma (the capability folders and catalogue/capabilities.yaml). Put your answers in mine/ beside the clone; fixtures/declaration/ is a filled-in template for a fictional product.

  • statement.json (schemas/statement.schema.json): product, version, claimed folders in claims.capabilities, and one arm per option in options.
  • ixit.json (schemas/ixit.schema.json): values for rows’ declared inputs, and the environment block a measured run reads.

Neither file holds credentials (Logging in to the CDR).

3. Review your claim

veredictum validate --root catalogue --specs specs/openehr \
    --statement mine/statement.json

Checks the statement against its schema, every claimed capability against the folders, and one arm per option.

4. Drive the catalogue

export VEREDICTUM_CDR_USER=… VEREDICTUM_CDR_PASSWORD=…
veredictum test --base-url https://cdr.example/openehr/v1 --auth basic \
    --statement mine/statement.json --ixit mine/ixit.json --out out/
Skip reasonWhen
not-claimedthe document’s folder is not in your statement
option-not-selectedthe document belongs to an option arm you did not pick
not-declaredthe workflow has an administrative step and no --admin-auth was given

Without a statement, everything runs and no arm is selected. A SMART on openEHR Platform also needs --platform-url and scoped tokens in the IXIT (test).

Outputs:

  • out/results.json: one row per workflow row, passed, failed, errored or skipped; a red row states what was checked, the quoted sentence, the expectation and what came back (Reading a result).
  • out/recording.har: every exchange as HAR 1.2, response bodies verbatim. Keep it private.
ExitMeaning
0every row passed or was skipped (warning rows, an unfollowed SHOULD, included)
1a row counts against the server
3none does, but at least one is inconclusive: the instrument could not judge it, and the row says so
2the run could not start

export writes JUnit XML, CTRF and a Markdown summary. --document <ID> narrows a run for debugging; never submit a narrowed result. veredictum identify --base-url <URL> reads the server’s solution, solution_version, vendor and restapi_specs_version.

Re-judging a recording

veredictum test --rejudge out/recording.har \
    --statement mine/statement.json --ixit mine/ixit.json --out rejudged/

Answers every request from the recording and writes a byte-identical results.json. Pass the run’s own statement, IXIT and --document list, or the replay is refused. The verification pack’s partial recordings are re-judged by cargo nextest run -p veredictum arazzo_pack instead.

The container image

Mount a directory uid 65532 can write as --out:

docker run --rm -v "$PWD/out:/work/out" \
    -e VEREDICTUM_CDR_USER -e VEREDICTUM_CDR_PASSWORD \
    ghcr.io/vernum-projecten/veredictum:<tag> \
    test --base-url https://cdr.example/openehr/v1 --auth basic --out /work/out

Any Arazzo 1.1.0 runner can smoke-run the documents. Only veredictum gives a verdict: citations, judges, statement selection and attribution live in the x-veredictum-* extensions.

Measured performance

A performance record reads the workloads under perf/, earns no class and enters no conformance verdict. No openEHR specification governs performance (the CNF guide: “Non-functional conformance (performance, etc) is not addressed by this guide”), so this is the instrument’s own design.

What a run does, phase by phase

veredictum perf offers one workload as Poisson arrivals, chart reviews as short sessions on one EHR. Latency counts from the instant a request was due (wrk2’s correction for coordinated omission).

  1. Seeding, before the clock: closed-loop bulk load, reported apart. --corpus reuse reuses a stored corpus, refusing one whose counts or digest moved.
  2. Posture canaries, first bracket.
  3. Settle, 15 s: vacuumdb --all --analyze in the database container, then idle.
  4. Warm-up, 20 s, discarded.
  5. Scout, 60 s: exponential ramp in 2 s windows; the first breach gives the knee estimate K̂.
  6. Drain, at most 10 s.
  7. Ladder: plateaus at 0.5, 0.75, 0.9 and 1.05 × K̂, each a 5 s ramp-in and a hold of clamp(5,000 / rate, 30 s, 90 s); 0.25 × K̂ only if the lowest fails.
  8. Closing: the second posture bracket.

At most ten minutes after seeding, about five when the knee is above 150 operations per second; perf-workloads prints the plan offline.

A plateau qualifies when every operation holds p99 ≤ 1 s (≤ 5 s for a population AQL query) at its judged quantile, errors ≤ 0.1 %, achieved ≥ 95 % of offered, and the generator kept up. Any 429 voids the record.

From IXIT to show

The IXIT’s environment block is required in full. The optional containers block names the server and database containers and database; without it server-side readings are recorded as absent.

veredictum perf \
  --root perf \
  --ixit mine/ixit.json \
  --workload perf/workloads/clinical-mix.yaml \
  --posture minimal \
  --host-prescription reference-8cpu-8gb \
  --out runs/perf-result.json

veredictum perf-judge --result runs/perf-result.json
veredictum show runs/perf-result.json
veredictum export --results runs/perf-result.json --markdown runs/perf.md
veredictum perf-assets --results runs/perf-result.json --out runs/charts

perf-judge recomputes every number from the histograms and exits 1 naming each differing field. The synthetic example app/veredictum/examples/perf-result.example.json:

PhasePlannedTookExchanges
settle15.0 s15.0 s0
warm-up20.0 s20.0 s160
scout60.0 s34.0 s, halted at the knee3,870
drain10.0 s1.2 s0
ladder174.0 s165.9 s25,310
closing10.0 s0.4 s1
Plateaus (operations/s; latency ms)
    offered  achieved     p50     p95     p99   p99.9     max  errors
✓     100.4     100.4     7.9    41.7     100     n/r     615   0.00%
✓     150.6     150.6     8.1    44.1     125     n/r     750   0.00%
✓     180.8     180.7    15.7     232     795     n/r  12,091   0.00% unsteady
✕     210.9     210.3    16.0   2,370   7,246     n/r  30,015   0.22%

Knee: between 180.8/s offered, the highest plateau that qualifies with every one
below it (achieved 180.7/s), and 210.9/s, the first plateau that fails.
Peak: 246.0/s achieved, in scout window 16, whatever its latency.
Population: 241,024 to 1,390,524 people at their peak, at 13 to 75 peak
arrivals/s per 100,000, read only at corpus scale S (100,000 EHRs) on example
8-vCPU VM, 8 cores, 8 GiB, NVMe storage, single node.

How to read a record

  • Percentiles: p50, p90, p95, p99, p99.9 and max with 95 % binomial order-statistic intervals (Le Boudec, Performance Evaluation of Computer and Communication Systems, 2010, §2.2), from summed histograms.
  • n/r: fewer than 10 samples above the quantile (not_resolvable).
  • judged_at: the highest of p99, p95, p90, p50 that resolves.
  • Knee: the highest offered rate whose plateau and all below qualify (Jain, The Art of Computer Systems Performance Analysis, 1991, ch. 3): a bracket, a lower bound if all qualify, or below the ladder.
  • Peak: the highest achieved throughput, whatever its latency.
  • USL fit: throughput against mean in flight (Gunther, Guerrilla Capacity Planning, 2007): α, β, predicted maximum, R². Never a verdict.
  • Population: the knee over 13 to 75 peak arrivals per second per 100,000 people (methodology), beside the corpus scale (POC, S, L or R: 10,000 to 10,000,000 EHRs).
  • Server-side readings: per-container CPU, memory and I/O, database sizes, top pg_stat_statements entries, PostgreSQL settings. Context only; read-only sampler.
  • Scope: steady-state capacity only; nothing about growth or behaviour over hours.

What one pass does not measure

Between-run noise: two hosted runs of the same code have read 156 % apart, so a record says between_run_noise: unmeasured until an A/A floor from perf-compare --aa is attached with --floor. A ratio then counts only when it clears --tolerance and the floor and the 95 % intervals do not overlap. Nor: a p99 for a rare operation, a knee finer than the ladder, anything past ten minutes.

Posture

--posture declares minimal (spec surface, commits validated against the template), minimal-signed-digest, minimal-signed-pgp or clinical-default (with an audit trail). Canaries check it after seeding and after the last plateau: version signing, commit validation via the workload’s invalid twin, authentication, Accept-Encoding compression, and TLS. Audit and tenancy stay declared-only. A contradicting or inconsistent reading refuses the run.

Declaring a workload of your own

YAML against schemas/perf-workload.schema.json: id, version, seed, corpus recipe (scale, compositions per EHR, template mix from perf/payloads.yaml), interactions with shares and a derivation, and AQL query classes.

veredictum perf-workloads --root perf --catalogue catalogue --workload mine/workload.yaml

Loading refuses a document unless:

  • shares at every level sum to exactly 100 %;
  • operations are released ITS-REST operations, payloads are in the manifest, queries parse with the released AQL grammar;
  • the mix reads 10 to 50 times per write, unless it reproduces a published harness;
  • no qualification limit is looser than the ruled default;
  • the run stays within ten minutes after seeding.

An unpinned document runs labelled custom. --statement drops unclaimed interactions, and the record says so. The pinned workloads are listed in Performance workloads; community-vitals reproduces the openEHR community’s vital-signs harness, and aql-mix offers six AQL classes.

Comparing two CDRs on one host

veredictum perf-compare --ab mine/a.ixit.json mine/b.ixit.json \
  --root perf --workload perf/workloads/clinical-mix.yaml \
  --floor runs/aa/perf-compare.json --out runs/ab

Both targets are seeded alike and stay resident. The shared ladder comes from the larger knee estimate, and each rung runs in ABBA order. Writes both records, perf-compare.json and perf-compare.md, in about twice a single run’s time. --with-baselines <IXIT> compares against pinned EHRbase and FerroEHR images composed locally.

perf-compare --result a.json --result b.json aligns existing records and names every mismatch (workload digest, corpus recipe, posture, host prescription, generator fingerprint, network leg), exiting 1 if any.

Why a hosted CI runner never publishes an absolute figure

Shared runners vary too much; on one, compare A/B and read the ratio. A published figure names a host prescription, such as --host-prescription reference-8cpu-8gb (perf/hosts/); a host that does not match reads unmatched, with each difference.

Where to look when something goes wrong

A red row means the specification, the catalogue and the server disagree; which one is wrong is settled before anything changes. See the conformance method.

Logging in to the CDR

Your CDR wantsPassSet
no login--auth none (the default)nothing
a username and password--auth basicVEREDICTUM_CDR_USER and VEREDICTUM_CDR_PASSWORD
a bearer token--auth bearerVEREDICTUM_CDR_TOKEN

test and identify read these; perf and perf-compare read the variables the IXIT names. The GitHub Action takes the same values as auth and admin-auth.

The administrative principal

Workflows that delete EHRs through the administrative API need:

The administrator logs in withPassSet
no login--admin-auth none (the default)nothing
a username and password--admin-auth basicVEREDICTUM_CDR_ADMIN_USER and VEREDICTUM_CDR_ADMIN_PASSWORD
a bearer token--admin-auth bearerVEREDICTUM_CDR_ADMIN_TOKEN

With none, those workflows are skipped as not-declared. SMART scoped tokens come from VEREDICTUM_SCOPED_TOKEN_<NAME> (test).

Rules

  • Files: every variable has a _FILE form, such as VEREDICTUM_CDR_PASSWORD_FILE=/run/secrets/cdr-password. Setting both stops the run. One trailing line ending is dropped.

  • Empty means unset: a missing CI secret stops the run with exit 2:

    --auth basic needs VEREDICTUM_CDR_USER and VEREDICTUM_CDR_PASSWORD (or their _FILE forms), and VEREDICTUM_CDR_PASSWORD is not set, nor is VEREDICTUM_CDR_PASSWORD_FILE (an empty value counts as unset)
    
  • Never an argument, never recorded: arguments leak into the process list and logs. Results carry no credential, and the HAR shows [not recorded] for every Authorization value.

Examples

# no login
veredictum test --base-url https://cdr.example/openehr/v1 --out out/

# username and password
export VEREDICTUM_CDR_USER=… VEREDICTUM_CDR_PASSWORD=…
veredictum test --base-url https://cdr.example/openehr/v1 --auth basic --out out/

# bearer tokens for client and administrator, from files
export VEREDICTUM_CDR_TOKEN_FILE=/run/secrets/cdr-token
export VEREDICTUM_CDR_ADMIN_TOKEN_FILE=/run/secrets/cdr-admin-token
veredictum test --base-url https://cdr.example/openehr/v1 \
    --auth bearer --admin-auth bearer --out out/

In the container, pass each variable by name with -e:

docker run --rm -v "$PWD/out:/work/out" \
    -e VEREDICTUM_CDR_USER -e VEREDICTUM_CDR_PASSWORD \
    ghcr.io/vernum-projecten/veredictum:<tag> \
    test --base-url https://cdr.example/openehr/v1 --auth basic --out /work/out

Command reference

Each code block is the binary’s own veredictum <command> --help, rendered by scripts/render/commands-md.sh, in the order veredictum --help lists them. The notes under each are hand-written in website/book/commands/.

CommandDoes
validatechecks the catalogue
testdrives the catalogue, or re-judges its recording
exportrenders a results document as JUnit XML, CTRF and a Markdown summary
perfmeasures a workload against a live server
perf-comparecompares performance records, or runs two servers interleaved
perf-judgere-derives a performance record
verifychecks a conformance certificate offline

The rest render or explore.

emit-schemas

Write the published JSON-Schema set (byte-deterministic)

Usage: veredictum emit-schemas --out <OUT>

Options:
      --out <OUT>  Output directory (created if missing)
  -h, --help       Print help

Byte-deterministic. The repository’s schemas/ directory is this command’s output, drift-tested against it. Author against these schemas when writing your own catalogue or harness.

test

Drive the Arazzo catalogue against a server under test, or re-judge the recording of an earlier run, and write `results.json` and the HAR recording.

The whole catalogue is gated first, as `validate` gates it, and nothing runs while the gate has a finding. Every document under `cases/` runs, in path order, except the shared setups under `cases/_setup/`, which run only where a case names them in `dependsOn`. A workflow whose rows file says `server: exclusive` runs in a final phase, after every other workflow, and a re-judgement replays in the same order. Every row is printed, and a failed or errored row with its four-part explanation. The run ends with the view `show` prints, coloured only when standard output is a terminal and `NO_COLOR` is unset or empty.

The results record, under `server`, what the server stated through ITS-REST System OPTIONS: the run's own exchange when a workflow sent one, otherwise one read after the catalogue ran, which the recording keeps, so a re-judgement never asks the server. A member the server did not state stays absent. When the statement declares `spec_versions.its_rest` and the server states a different `restapi_specs_version`, the results carry a `review` note and the run prints it; the note changes no row and no exit status.

A credential is read from the environment, never from an argument: from the variables `--auth` and `--admin-auth` name, or from the file named by the same variable with `_FILE` appended. Neither credential is recorded. The recording holds the server's response bodies verbatim, so it belongs where the operator keeps the run.

Exit status follows whose problem each red row's record names. `1` when any row counts against the server: it failed (a warning row excepted) or errored with the server named, whatever else the run holds. `3` when no row counts against the server and at least one is inconclusive: it failed or errored with the instrument named, because the instrument could not judge it. `0` when every row passed or was skipped, or failed only as a warning (a SHOULD, which never counts against a capability). `2` when the run could not start or finish: a usage error, a gate finding, an unreadable file, a missing credential, or a recording that does not replay. The line before the exit names both counts. `--rejudge` exits the same way.

Usage: veredictum test [OPTIONS]

Options:
      --root <ROOT>
          The catalogue root, holding `capabilities.yaml` and `cases/`. Without `--specs`, its parent holds the vendored `specs/` tree its citations and OAS sources resolve against. The container image sets it to the catalogue it ships
          
          [env: VEREDICTUM_CATALOGUE]
          [default: catalogue]

      --base-url <BASE_URL>
          The server's base URL, up to and including the openEHR REST base (for example `https://cdr.example/openehr/v1`)

      --platform-url <PLATFORM_URL>
          The SMART Platform base URL (for example `https://platform.example`), which SMART on openEHR serves its discovery document relative to and which can differ from the openEHR REST base. Without it, every workflow with a step sent to it is skipped as `not-declared`

      --auth <AUTH>
          How the CDR wants the client to log in: `none`, `basic` or `bearer`.
          
          `none`: the CDR needs no login.
          
          `basic`: a username and password, from `VEREDICTUM_CDR_USER` and `VEREDICTUM_CDR_PASSWORD`.
          
          `bearer`: a token, from `VEREDICTUM_CDR_TOKEN`.
          
          [default: none]

      --admin-auth <ADMIN_AUTH>
          How the CDR wants the administrative principal to log in: `none`, `basic` or `bearer`. With `none`, every workflow with an administrative step is skipped as `not-declared`.
          
          `basic`: a username and password, from `VEREDICTUM_CDR_ADMIN_USER` and `VEREDICTUM_CDR_ADMIN_PASSWORD`.
          
          `bearer`: a token, from `VEREDICTUM_CDR_ADMIN_TOKEN`.
          
          [default: none]

      --statement <STATEMENT>
          The party's statement (JSON), which decides what runs.
          
          Its `claims.capabilities` names the capability folders under `cases/` it claims, at least one; every workflow of a document in another folder is skipped as `not-claimed`, while a setup a claimed document depends on still runs. Its `options` list selects one arm of each option in `capabilities.yaml`, and the documents of every other arm are skipped as `option-not-selected`. A document whose `applies` range in `capabilities.yaml` excludes a version its `spec_versions` declares is skipped as `version-out-of-range`, and one needing a wire format its its-rest `tech_profiles` entry does not list as `format-not-claimed`. A name that is not a folder or an arm stops the run. Without a statement, every capability runs, in every version and format, and no arm is selected.

      --ixit <IXIT>
          The party's IXIT (JSON), which the `declared` inputs of a rows file read. A row whose declared value is missing is skipped as `not-declared`.
          
          Its `scoped_tokens` member declares the tokens a step that names a SMART scope set presents: `issued` maps a scope set to the variable (`VEREDICTUM_SCOPED_TOKEN_<NAME>`, or the file its `_FILE` names) holding a token issued for it, and `mint` declares a test issuer the deployment trusts, whose RSA key is read from `VEREDICTUM_SCOPED_TOKEN_KEY`. A row whose scope set neither covers is skipped as `not-declared`; a declared variable that is not set stops the run before any request.

      --document <ID>
          Run only this document, by its id (`ehr` for `cases/ehr/ehr.arazzo.yaml`). Repeat the flag once per document; without it, every document runs

      --out <OUT>
          Where `results.json` and `recording.har` are written. Required for a live run; a re-judgement writes only `results.json`, and only when this is given

      --rejudge <RECORDING>
          Re-judge this HAR recording instead of driving a server: every request is answered from the recording, so the results are the bytes the recorded run wrote. Pass the root, statement, IXIT and documents the recorded run was given

      --profile <PROFILE>
          The specification text the case citations are read against.
          
          `development` (the default): the pinned `master` of each openEHR specification repository under `specs/openehr-development/`, the line that carries the newest text. A case citing text the snapshot lacks is skipped as `cited-text-absent`, naming what is missing, and a case whose cited text the snapshot contests is skipped as `contested-in-development`, naming its upstream report. The results name the profile and every snapshot commit, and a development result never builds a certificate and is never compared with or counted toward a released result.
          
          `released`: the frozen release under `specs/openehr/`. Only a released result backs a released claim or a certificate. A case resting on development text alone, a citation under `specs/openehr-development/`, is skipped as `development-only`.
          
          The catalogue is gated against the release under either profile. A re-judgement takes the profile the recorded run was given.

          Possible values:
          - development: The pinned `master` of each openEHR repository: the newest text
          - released:    The frozen release: the oracle of every released claim
          
          [default: development]

      --specs <SPECS>
          The vendored openEHR spec tree; citations resolve against the directory two levels above it, and the development snapshot sits at `specs/openehr-development/` beside it. Without it, the tree is `specs/openehr` in the parent of `--root`

  -h, --help
          Print help (see a summary with '-h')

test drives the Arazzo catalogue under catalogue/. (The removed run subcommand exists under no name.)

What runs. Every document under cases/<capability>/, in path order. Setups under cases/_setup/ are not cases; they run where a case names them in dependsOn, and each workflow runs its own, so nothing set up carries over. --document <ID> narrows the run for re-driving one family during a fix; a narrowed results.json is never the record you submit.

What runs last. A workflow whose rows file says server: exclusive changes state it did not create, such as deleting every EHR. It runs only when the IXIT declares environment.exclusive_server: true, in a final phase after every other workflow. Within a phase, documents keep path order and workflows document order; results.json lists rows in run order, and a re-judgement follows it. A workflow with no inputs carries the marker in a rows file with no rows and runs once. No openEHR specification governs this order; it is this instrument’s own design.

The IXIT. test reads exclusive_server alone (the other environment members are for perf and perf-compare) and no instances, since --base-url names the server: { "environment": { "exclusive_server": true } } is a whole IXIT. It must pass the published IXIT schema first, or the run stops with exit status 2 naming file and violation (a misspelled member, say).

Which text. --profile development (default) reads citations against the pinned master snapshot under specs/openehr-development/; --profile released reads the frozen release under specs/openehr/. A case whose cited file, section or sentence the snapshot lacks is skipped as cited-text-absent, naming the profile and what is missing. A case resting on development text alone (a citation under specs/openehr-development/) runs under development only; released skips it as development-only. results.json records the profile under specification with the repository, branch and commit of every snapshot directory, and every view names them. A development result never builds a certificate and is never compared with or counted toward a released result. The catalogue is gated against the release under either profile. Re-judge with the recorded run’s profile.

The claim. A statement claims at least one capability folder under cases/ (ehr, demographic, admin, …) in claims.capabilities.

StatementEffect
folder not claimedits documents skip as not-claimed, citing the statement schema’s claims clause; setups a claimed document needs still run
optionsone arm per option in capabilities.yaml; other arms’ documents skip as option-not-selected
a name that is no folder, a token that is no arm, two arms of one optionthe run stops
no statementevery capability runs, no arm selected

No openEHR specification governs the claim mechanism; it is this instrument’s own design.

{
  "claims": { "capabilities": ["ehr", "ehr_status", "composition", "query"] },
  "options": ["ehr-xml-unsupported", "authentication-required"],
  "spec_versions": { "its_rest": "1.1.0" },
  "tech_profiles": [{ "its": "its-rest", "formats": ["canonical-json", "wt-flat"] }]
}

Versions and formats. capabilities.yaml says under documents: what a document needs:

  • applies: an inclusive min, max or both (MAJOR.MINOR.PATCH) on one component’s version (rm, base, am, aql, its_rest, term: the keys of spec_versions), citing the sentence setting the bound. A declared version outside it skips the document as version-out-of-range. An undeclared component decides nothing; a malformed version for a ranged component stops the run.
  • formats: wire formats the server must serve or process (canonical-json, canonical-xml, wt-flat, wt-structured, wt). One missing from the statement’s its-rest profile skips the document as format-not-claimed, citing the schema’s tech_profiles clause. No its-rest profile claims every format.

Documents pinning a refusal of XML (406 or 415) carry no format and run for every party, decided by the selected arm. So selecting ehr-xml-supported without claiming canonical-xml runs nothing of ehr_xml, and validate --statement refuses that arm (arm-format) and any claimed folder left with nothing to run. Every document sending application/json needs canonical-json, so a statement claiming only canonical XML runs the documents that need no JSON.

Declared inputs. The IXIT answers a rows file’s declared inputs. Skipped as not-declared: a workflow with an administrative step without --admin-auth, one sent to the SMART Platform base URL without --platform-url, and a row whose SMART scope set has no token.

Credentials. --auth and --admin-auth take none, basic or bearer, with the variables Logging in to the CDR lists. A secret comes from the variable or from the file its _FILE twin names (setting both is refused). An empty variable counts as unset, since CI expands a missing secret to empty. The HAR records [not recorded] for every Authorization value, plus whether the administrative principal was supplied, the Platform base URL and the covered scope sets, so a re-judgement skips the same rows.

SMART on openEHR. The smart folder; the specification is DEVELOPMENT in Release-1.1.0, so a statement may leave it unclaimed.

  • --platform-url: SMART serves discovery “relative to the Platform base URL”, which can differ from --base-url (for example https://platform.example). The route is in catalogue/sources/smart-platform.openapi.yaml, Veredictum’s own document with root x-veredictum-base: platform; no released OpenAPI document declares it.

  • Scoped tokens: a step with x-veredictum-scope presents a token whose scope claim is the named set, usually per row. The instrument never asks an Authorization Server; the IXIT’s scoped_tokens supplies them:

    {
      "scoped_tokens": {
        "issued": {
          "system/template-*.r": "VEREDICTUM_SCOPED_TOKEN_TEMPLATE_READ",
          "system/template-*.crud": "VEREDICTUM_SCOPED_TOKEN_TEMPLATE_CRUD"
        },
        "mint": {
          "issuer": "https://issuer.example",
          "subject": "veredictum",
          "audience": "cdr",
          "kid": "test-issuer",
          "ttl_seconds": 300,
          "claims": { "roles": ["clinician"] }
        }
      }
    }
    
    • issued: scope set to a variable (or its _FILE) holding a token your Authorization Server issued. Names must be VEREDICTUM_SCOPED_TOKEN_<NAME>, so an IXIT cannot reach other secrets.
    • mint: a test issuer your deployment trusts. For a set with no issued token, the instrument signs RS256 with iss, sub, aud, iat, exp, the space-delimited scope and any claims, using the RSA private key in VEREDICTUM_SCOPED_TOKEN_KEY or VEREDICTUM_SCOPED_TOKEN_KEY_FILE. Never give it key material a production deployment trusts.

    Scope sets compare as sets ("openid user/x.r" equals "user/x.r openid"). An unset declared variable stops the run before the first request with exit status 2. A row neither member covers skips as not-declared, citing the SMART sentence that has the Platform evaluate scopes when issuing tokens. No openEHR specification governs how a test instrument obtains tokens; this is the instrument’s own design.

The SMART text does not say what a request outside its granted scopes receives, or which operation a scope grants (upstream report #758), so only the granted side is tested.

The server’s identity. results.json records under server what the ITS-REST System OPTIONS operation (OPTIONS <base>/) returned, classified as veredictum identify prints it. If a workflow sent it, server.read is exchange and server.entry names the recording entry. Otherwise the run reads it once after the catalogue with the ordinary credential (read, or unanswered without a response), and the recording keeps it for re-judgement. The stated release is server.answer.options.restapi_specs_version, absent if none. Services SHOULD answer, so nothing here counts toward conformance. When it differs (as written) from the statement’s spec_versions.its_rest, a review note of kind restapi-version-differs names both and prints after the row counts, changing no row or exit status. No openEHR specification governs this comparison; it is this instrument’s own design.

Re-judging. --rejudge <RECORDING> answers every request from the recording and reuses every recorded input, so results.json comes out byte-identical. Pass the recorded run’s root, statement, IXIT and --document list; a replay that does not line up is refused.

In the container image. The entry point passes any argument but healthcheck to the engine, and VEREDICTUM_CATALOGUE points --root at the shipped catalogue. The image runs as uid 65532, so the mount must be writable by it.

docker run --rm -v "$PWD/out:/work/out" \
    -e VEREDICTUM_CDR_TOKEN \
    ghcr.io/vernum-projecten/veredictum:<tag> \
    test --base-url https://cdr.example/openehr/v1 --auth bearer --out /work/out

Other Arazzo tools read the documents and can smoke-run them. The verdict is test’s alone: citations, judges, statement-driven selection and attribution live in the x-veredictum-* extensions, which a generic runner ignores.

identify

Read a server's identity from the ITS-REST System OPTIONS operation and print it as one JSON document.

Sends `OPTIONS <base>/` with `Accept: application/json`. The document's `outcome` is `offered` (a 200 `Options` document), `not_offered` (any other status from 100 to 599 outside 2xx, which the operation's SHOULD permits), `not_options_document` (a 2xx that is not that document) or `invalid_status` (a code from 600 to 999, which RFC 9110 §15 makes invalid). Nothing is judged and nothing counts toward conformance.

Usage: veredictum identify [OPTIONS] --base-url <BASE_URL>

Options:
      --base-url <BASE_URL>
          The server's base URL, up to and including the openEHR REST base

      --auth <AUTH>
          How the CDR wants the client to log in: `none`, `basic` or `bearer`. The secret never rides argv: each variable can instead name a file through its `_FILE` form.
          
          `none`: the CDR needs no login.
          
          `basic`: a username and password, from `VEREDICTUM_CDR_USER` and `VEREDICTUM_CDR_PASSWORD`.
          
          `bearer`: a token, from `VEREDICTUM_CDR_TOKEN`.
          
          [default: none]

  -h, --help
          Print help (see a summary with '-h')

Prints what the server states about itself through the ITS-REST System OPTIONS operation. Run it before test to see which product and version a run against that base URL will grade.

  • Exit 0: whatever the server answered, since the specification says services SHOULD answer and a server may decline.
  • Exit 2: no answer arrived, or the credential --auth names is not supplied. Credentials are read as test reads them (Logging in to the CDR), _FILE forms included.

The printed document’s outcome is offered, not_offered, not_options_document or invalid_status, and schemas/identity.schema.json describes it.

validate

Validate the Arazzo catalogue through every gate, and review one supplied statement against it

Usage: veredictum validate [OPTIONS] --root <ROOT>

Options:
      --root <ROOT>
          The catalogue root, holding `capabilities.yaml` and `cases/`

      --specs <SPECS>
          The vendored openEHR spec tree; enables citation resolution and the surface gate

      --profile <PROFILE>
          The specification profile to report the case citations against, beside the gates.
          
          `released` (the default): the gates alone, against the frozen release. Zero findings is the only passing result.
          
          `development`: the gates as under `released`, then every case citation read against the snapshot under `specs/openehr-development/` beside `--specs`. A citation whose file, section or quote the snapshot lacks is printed as `[info]` and counted per component; it is never a finding. A citation refused for any other reason is a `profile-citation` finding. One more line counts the development-only workflows, the released cases whose cited text the snapshot rewords or removes, and the released cases whose cited text it contests. Needs `--specs`.
          
          A development-only citation, one under `specs/openehr-development/`, is checked against the snapshot under both profiles, and a bad one is a finding.

          Possible values:
          - development: The pinned `master` of each openEHR repository: the newest text
          - released:    The frozen release: the oracle of every released claim
          
          [default: released]

      --statement <STATEMENT>
          A submitted declaration (`statement.json`) to hold to the static review: its published schema, the capability folders it claims, the option arms it selects, and that every claimed folder holds a workflow its declarations let run.
          
          ISO/IEC 9646-7 assigns an ICS proforma's support and supported-values columns to the supplier of the implementation, so no declaration is committed here and none is swept from the tree.

  -h, --help
          Print help (see a summary with '-h')

Every gate over the Arazzo catalogue: the official Arazzo 1.1 schema, source and parameter resolution, citation resolution against the vendored specifications, the condition profile, requirement levels, unknown keys, rows files, surface coverage, identity and links, and the AQL parser check. It prints one line per finding and a summary naming the documents, workflows, rows files and capability folders read, and exits 1 on any finding.

capabilities.yaml gates.

  • floors (arazzo-floor): each folder’s minimum workflow count. Refused: a folder without a floor, a floor naming no folder, a folder below its floor. The test suite re-derives every floor, so adding workflows raises the floor.
  • extension-only (arazzo-realization-scope): the folders verified only over Veredictum’s own sources (documents under catalogue/sources/ whose info carries x-veredictum-non-openehr: true, which no openEHR OAS describes). Refused: a listed folder with a step calling an unmarked source, and an unlisted folder whose every step calls a marked one.
  • documents: refused are an applies range or formats entry naming no document, a range starting after its end, a format the document never sends in Accept or Content-Type, and a document that sends application/json (itself or through a dependsOn setup) without stating canonical-json.

Development setups (arazzo-development-setup). A case that rests on released text and depends, through dependsOn at any depth, on a workflow citing development text alone is refused: the setup would run under the released profile and the released verdict would rest on development text. A development-only case may depend on anything.

dependsOn cycles (arazzo-depends-on-cycle). A workflow whose dependsOn leads back to itself, directly, through other workflows of its document, or through $sourceDescriptions of other documents, can never start. Each workflow on the cycle is refused, and the finding names the chain.

Extension sources (arazzo-extension). A source description carrying x-veredictum-extension stands for a route the party declares in its statement. Refused: an extension the catalogue does not define, an extension source that is not type: openapi, a call to one from any workflow outside cases/_setup/, a call by another operation name than the extension key, a citation on the extension step or its criteria, a judge on its criteria, and a rows file feeding its workflow.

chapters.yaml (arazzo-structure) is the reading structure every view follows: it places each capability folder in one chapter and declares each folder’s BASE sections. A document no option arm names is BASE and names its section with x-veredictum-section on its info; one an arm names is OPTION and names none. Refused: a folder in no chapter or two, a BASE document with no or an unknown section, an unused section, an OPTION document with a section, an option with no theme and tier, a spec-boundary option whose citation names no report, and a reports.yaml out of step with the reports citations name. A citation into a document the release marks RETIRED is refused (arazzo-citation).

--statement adds the static review of one declaration. It must pass the published statement schema (at least one claimed capability folder), claim only catalogue folders, and select only arms of options in capabilities.yaml, one per option. Each claimed folder needs a document the statement lets run: its arm selected, its applies ranges containing the declared versions, its formats claimed. Refused:

  • claim-completeness: a claim nothing can run for.
  • arm-format: a selected arm with a document needing a format the statement does not claim, since the run would skip it and nothing would verify the arm.

No openEHR specification governs the floors, the realization scope or the claim gates; they are this instrument’s own design.

--profile development keeps every gate above against the release, then reads every case citation against the snapshot under specs/openehr-development/ beside --specs. A citation whose file, section or sentence the snapshot lacks prints as an [info] line naming the case, followed by per-component counts; neither is a finding, and the exit status stays 0. A profile-citation finding is a citation the snapshot refuses for any other reason, a development wording the snapshot does not hold, or one whose released quote still occurs there unchanged. A last line counts the development-only workflows and the released cases whose cited text the snapshot rewords or removes. A citation under specs/openehr-development/ names development text alone; both profiles check it against the snapshot, and a bad one is a finding. The repository’s own gate runs --profile released, where zero findings is the only pass, and a second --profile development pass that reports the absences.

perf

Run a workload document against a live server and write one `perf-result`.

The corpus is seeded (or reused with `--corpus reuse`) before the clock, closed-loop and reported apart. The posture canaries then take their first bracket, and the run after seeding takes at most ten minutes: a 15 s settle, a 20 s warm-up, a 60 s scout ramp judged in 2 s windows, a drain, a ladder of four plateaus at 0.5, 0.75, 0.9 and 1.05 times the knee estimate (a fifth at 0.25 only when the lowest fails), and the closing canaries. The planned duration is printed before the first measured request. A server that answers any exchange `429` gets no record, and a canary that contradicts the declared posture refuses the run.

Usage: veredictum perf [OPTIONS] --root <ROOT> --ixit <IXIT> --workload <WORKLOAD> --out <OUT>

Options:
      --root <ROOT>
          The performance root, `perf/` in this repository (workloads/, payloads.yaml, payloads/, hosts/)

      --ixit <IXIT>
          The ixit topology file (JSON); its environment block is mandatory for a measured run

      --workload <WORKLOAD>
          The workload document to run, an embedded one under `perf/workloads/` or the evaluator's own (labelled `custom`)

      --out <OUT>
          Where the `perf-result` record is written

      --catalogue <CATALOGUE>
          The catalogue root a workload's `requires` resolve against
          
          [default: catalogue]

      --statement <STATEMENT>
          A statement whose claims keep the interactions it covers and drop the rest, with the drop recorded

      --corpus <CORPUS>
          Seed the workload's corpus, or reuse the stored one: a reuse is refused before the warm-up when the server's read-back counts or the stored digest differ

          Possible values:
          - seed:  Seed the workload's recipe before the clock
          - reuse: Reuse the stored corpus when its read-back counts and digest match
          
          [default: seed]

      --corpus-state <CORPUS_STATE>
          The stored corpus state a seeding writes and a reuse reads; defaults to the record's path with the extension `corpus.json`

      --seed-workers <SEED_WORKERS>
          Parallel closed-loop seeding workers
          
          [default: 16]

      --start-rate <START_RATE>
          The warm-up's rate and the scout's starting rate, operations per second
          
          [default: 8]

      --scout-end-rate <SCOUT_END_RATE>
          The scout ramp's end rate, operations per second
          
          [default: 4096]

      --host-prescription <HOST_PRESCRIPTION>
          The id of the host prescription under `perf/hosts/` the run claims to have run on; the record reads the generator's measured fingerprint against it

      --network-leg <NETWORK_LEG>
          Where the load generator sits relative to the server

          Possible values:
          - same-host:    The generator and the server share one host
          - same-zone:    Different hosts in one zone of one provider
          - cross-region: Different regions
          
          [default: same-host]

      --posture <POSTURE>
          The posture profile the run declares: `minimal`, `minimal-signed-digest`, `minimal-signed-pgp` or `clinical-default`. The canaries check it after seeding and after the last plateau, and a contradiction refuses the run
          
          [default: minimal]

  -h, --help
          Print help (see a summary with '-h')

Latency is measured from the planned arrival instant under open-loop Poisson arrivals, so a stall shows up as latency. The run has one shape and no flag lengthens it: the ladder finds the knee in at most ten minutes after seeding, and the record states what such a run cannot show. Measured performance walks a run phase by phase and explains the record.

  • --root: perf/ in this repository: workloads, the payloads they send, and host prescriptions.
  • --workload: one workload document, embedded or your own (labelled custom).
  • --catalogue: read only for the capability folders and option arms a workload’s requires tokens name.
  • --statement: drops the interactions your claims do not cover, and records the drop.
  • --corpus-state: where the seeded corpus listing is stored (default: the record’s path with extension corpus.json). Seeding runs before the clock, closed-loop.
  • --corpus reuse: reuses that corpus; refused before the warm-up when the server’s read-back counts, the stored digest or the recipe moved.
  • --posture: the posture profile the canaries check after seeding and after the last plateau. A contradiction refuses the run.
  • --host-prescription: a prescription under perf/hosts/, embedded in the record and read against the generator’s measured fingerprint.
  • --network-leg: where the generator sat.

The IXIT’s environment block is mandatory, because a latency number is a claim about a deployment. Every member is required here (hardware_class, cores, memory_gb, storage_class, topology), and a missing one stops the run before any request, naming it. A conformance run reads only exclusive_server. The optional containers block names the server and database containers and the database the server-side readings query.

perf-workloads

Load the performance workloads through their gates and print, for each, the expanded per-operation mix, its read:write ratio and the planned run range after seeding. With --out, write the byte-deterministic manifest of the pinned workloads with their digests and the page generated from it; with --workload, check one document instead, labelled custom unless it matches a pinned digest

Usage: veredictum perf-workloads [OPTIONS] --root <ROOT> --catalogue <CATALOGUE>

Options:
      --root <ROOT>            The performance root, perf/ in this repository (workloads/, payloads.yaml, payloads/)
      --catalogue <CATALOGUE>  The catalogue root a workload's requires tokens resolve against (catalogue/ in this repository)
      --out <OUT>              Output directory for perf-workloads.json and perf-workloads.md (created if missing)
      --workload <WORKLOAD>    One workload document to check and summarize
  -h, --help                   Print help

A workload is the traffic a measured run offers: a versioned document under perf/workloads/, published as schemas/perf-workload.schema.json. This command loads every workload through its gates and prints, per workload, the expanded per-operation mix, the read:write ratio and the planned run range after seeding. A defect is reported against file and field, with exit 1.

  • --out: writes perf-workloads.json, the byte-deterministic manifest of the workloads this binary pins by sha256, and perf-workloads.md, the page generated from it (every interaction, operation, query class and payload with its share and source). The book’s Performance workloads page is written with --out website/book/src and held to the pins by a test. A committed workload whose bytes match no pin is refused, so a workload’s version and pin change together. perf/payloads.yaml is held to what the workloads read: an unread entry or a pinned payload whose bytes moved is refused.
  • --workload: checks one document of your own. One matching no pinned digest is labelled custom.

perf-compare

Compare performance records: align committed `perf-result` files, or run two targets (`--ab`) or one target against itself (`--aa`) interleaved on one host.

With `--result`, two or more records are read into one table, one column per file. Every field on which they describe different things is named above it: the workload digest, the corpus recipe, the posture, the host prescription, the generator's fingerprint and the network leg. Two records also get a ratio per plateau, operation and metric, with both values beside it; plateaus offered different rates are shown and not judged.

With `--ab`, both targets are seeded from the same recipe and seed and stay resident on one host. Each gets its settle, warm-up and scout; the shared ladder is built from the larger knee estimate, so both sides are offered the same rates and holds; and on each rung the plateaus alternate in ABBA order. `--aa` runs the same interleaving with one target on both sides and attaches its floor, the largest A/A ratio per metric, to both records. A difference counts only when its ratio exceeds the tolerance and the attached floor and the two sides' 95 % intervals do not overlap. Both write `a.perf-result.json`, `b.perf-result.json`, `perf-compare.json` and `perf-compare.md` under `--out`, in about twice a single run.

Exit status: `0` when the records align; `1` when any mismatch applies; `2` when a record cannot be read or a run cannot finish.

Usage: veredictum perf-compare [OPTIONS]

Options:
      --result <RESULTS>
          A committed `perf-result`. Repeat the flag once per file; at least two are needed

      --ab <IXIT_A> <IXIT_B>
          Side A's and side B's IXIT, for an interleaved A/B run

      --aa <IXIT>
          The IXIT of the one target an A/A run puts on both sides

      --with-baselines <IXIT>
          The IXIT of a target to run against every pinned reference CDR (EHRbase and FerroEHR), each composed on this host from its own digest-pinned images with the docker CLI and torn down with its volumes afterwards. Each comparison, the target's index relative to that reference, is written under `--out/<reference>/`

      --root <ROOT>
          The performance root, `perf/` in this repository (workloads/, payloads.yaml, payloads/, hosts/). Needed by `--ab` and `--aa`

      --workload <WORKLOAD>
          The workload document both sides are offered. Needed by `--ab` and `--aa`

      --catalogue <CATALOGUE>
          The catalogue root a workload's `requires` resolve against
          
          [default: catalogue]

      --statement <STATEMENT>
          A statement whose claims keep the interactions it covers and drop the rest

      --corpus <CORPUS>
          Seed both corpora, or reuse the ones stored under `--out`

          Possible values:
          - seed:  Seed the workload's recipe before the clock
          - reuse: Reuse the stored corpus when its read-back counts and digest match
          
          [default: seed]

      --seed-workers <SEED_WORKERS>
          Parallel seeding workers
          
          [default: 16]

      --start-rate <START_RATE>
          The warm-up's rate and the scout's starting rate, operations per second
          
          [default: 8]

      --scout-end-rate <SCOUT_END_RATE>
          The scout ramp's end rate, operations per second
          
          [default: 4096]

      --host-prescription <HOST_PRESCRIPTION>
          The id of the host prescription under `perf/hosts/` the run claims

      --network-leg <NETWORK_LEG>
          Where the load generator sits relative to the servers

          Possible values:
          - same-host:    The generator and the server share one host
          - same-zone:    Different hosts in one zone of one provider
          - cross-region: Different regions
          
          [default: same-host]

      --posture <POSTURE>
          The posture profile both sides declare
          
          [default: minimal]

      --tolerance <TOLERANCE>
          The declared tolerance: a ratio within it either way is never a difference
          
          [default: 0.05]

      --floor <FLOOR>
          A `perf-result` or `perf-compare.json` carrying an A/A floor, which the ratios are judged against and an A/B run attaches to both records

      --out <OUT>
          Output directory: the comparison for `--result`, and the records, corpora and comparison for `--ab` and `--aa`

  -h, --help
          Print help (see a summary with '-h')

Two GitHub-hosted runs of the same code have read up to 156 % apart, so numbers from separate runs say little about two systems. An interleaved run puts both sides on one host in one window: each rung of the shared ladder runs A then B, the next B then A, so host drift lands on both sides.

  • --aa: the same target on both sides, measuring what interleaving leaves. Its floor, the largest ratio per metric, is attached to both records and turns their between_run_noise from unmeasured into the floor.
  • --ab with --floor: pass an A/A record or its perf-compare.json, and a ratio must clear the floor as well as --tolerance to read as a difference.
  • --result: records measured apart were offered different rates. The table still lines them up, with ratios shown as different rates, unjudged.

perf-assets

Render the charts of a `perf-result` as SVG, deterministically: the same record always draws the same bytes.

Three charts: `perf-saturation.svg` (p50, p95 and p99 against achieved throughput over the scout windows and the plateaus, the knee bracket shaded, the Universal Scalability Law fit dashed), `perf-throughput.svg` (achieved against offered with the identity line) and `perf-operations.svg` (each operation's latency at the knee at its judged quantile, beside its budget). A quantile that does not resolve is marked below the plot and never joined to its neighbours.

Usage: veredictum perf-assets [OPTIONS] --results <RESULTS> --out <OUT>

Options:
      --results <RESULTS>
          The committed `perf-result.json`

      --out <OUT>
          Output directory for the SVG files

      --summary <SUMMARY>
          Also write the `export --markdown` view of the record to this path, the book's build-time include

  -h, --help
          Print help (see a summary with '-h')

perf-judge

Re-derive every number of a `perf-result` record from its recorded histograms, and compare the result with the record byte for byte.

The record is checked against `perf-result.schema.json`, its `derived` part is computed again from its `raw` part, and every derived field that differs is printed with its JSON pointer, the recorded value and the re-derived one. The file must also equal the canonical rendering of the re-derived record, so a number written in a different form counts as a difference.

Exit status: `0` when the record reproduces byte for byte; `1` when a derived field differs or the file is not in canonical form; `2` when the file cannot be read, is not JSON, breaks the schema, or its raw part does not re-derive.

Usage: veredictum perf-judge --result <RESULT>

Options:
      --result <RESULT>
          The record (`perf-result.json`)

  -h, --help
          Print help (see a summary with '-h')

export

Write the views of a result document a vendor's CI shows, each a byte-deterministic function of the document.

An Arazzo results document has three views: JUnit XML, CTRF 0.2.0 JSON and a Markdown summary. A `perf-result`, told apart by its `family`, has the Markdown summary only, so `--junit` and `--ctrf` refuse it.

A result judged under the development profile names the profile and every snapshot commit in each view: a `profile` property on every JUnit suite, a `specification` member in the CTRF environment, and a `Specification` row with a warning in the Markdown summary.

Usage: veredictum export [OPTIONS] --results <RESULTS>

Options:
      --results <RESULTS>
          The `results.json` the Arazzo evaluator wrote, or a `perf-result.json`

      --junit <JUNIT>
          Write the JUnit XML view here

      --ctrf <CTRF>
          Write the CTRF JSON view here

      --markdown <MARKDOWN>
          Write the Markdown summary here. Without this flag and without a job summary file, the summary is printed to standard output

      --step-summary <STEP_SUMMARY>
          The GitHub Actions job summary file the Markdown summary is appended to. GitHub sets the variable in every job step
          
          [env: GITHUB_STEP_SUMMARY]

      --annotations <ANNOTATIONS>
          Write the GitHub Actions annotations here: one `::error` workflow command per failed or errored row and one `::warning` per warning row, titled with the case id and carrying what was checked, the cited sentence and what was expected and received. GitHub shows at most 10 of each kind per step, so at most 10 of each are written and a closing `::notice` names how many more rows the summary lists. An Arazzo results document only

  -h, --help
          Print help (see a summary with '-h')

export renders the Arazzo results.json as the views a CI system shows. Each is a pure function of that document, so the same results write the same bytes, with no clock reading the results do not carry.

StatusJUnit XMLCTRF 0.2.0
passeda bare <testcase>passed
failed<failure>failed
warning<system-out>, no <failure>other, with rawStatus: warning
errored<error>other, with rawStatus: errored
skipped<skipped>skipped

A warning is a SHOULD the server did not follow and never counts against it, so no view counts it as failed and a CI job does not fail on it. In JUnit it is the four-part explanation in <system-out>, opened by a line naming it a warning, outside every failures count. In CTRF it is other, outside summary.failed.

JUnit XML. A workflow is a <testsuite>; a row is a <testcase> named <case> row <n>.

  • <failure> and <error>: text is the four-part explanation, message a one-line summary, type whose problem it is (server or instrument).
  • <skipped>: the skip reason and the citation that makes the case not apply.
  • <properties>: on a suite the results place, named eu.veredictum.<name>: part, chapter, band, capability, section or option and arm, formalism, TRIAL mark and upstream reports.
  • time: always 0, since the results carry no timing.

JUnit XML has no single owner, so the view is held to two published schemas: the document to the Jenkins xUnit plugin’s junit-10.xsd (which defines the <testsuites> root), each <testsuite> to Apache Maven Surefire’s test report schema. Both are vendored, and a CI gate validates the pinned views against them with xmllint.

CTRF. Every test has type conformance, a suite path (the document, then part, chapter, band and section or option) and labels naming where it sits. A red row’s message is the four-part explanation. Everything CTRF does not define sits in extra under the key eu.veredictum, as CTRF §4.6.1 asks: case id, row, skip reason, citation and, where the citation names one, the upstream report link. The document validates against the CTRF project’s schema for specVersion 0.2.0, its latest release.

The Markdown summary, for a person reading it on GitHub:

  • A table naming the server and the instrument, and a summary table counting BASE and OPTIONS rows.
  • ## BASE, chapter by chapter: each chapter a table of its bands, each band a table of its sections.
  • ## OPTIONS, by the same chapters and bands: each band a table of its options with their kind (Recommended (SHOULD), Optional (MAY), or @SpecDiverge for an option that exists only because the released text is unclear), the selected arm, and a collapsed note on what the option decides. Cases resting on TRIAL text sit in their band here.
  • Passed rows are only counted. Each failed, warning or errored row is a collapsed block naming outcome, case and place; open, it shows the step, what was checked, expected against received, the exchange, whose problem it is, the row’s inputs as a table, and the cited sentence.
  • Warning rows with their citations, then skipped rows counted by reason, with the full list collapsed.
  • A case resting on text an upstream report records as unclear or contradictory is tagged @SpecDiverge, and a closing note counts those cases and links their reports. JUnit carries the tag as the eu.veredictum.tag property, CTRF in the test’s standard tags.

Where the summary goes. export appends it to GITHUB_STEP_SUMMARY when GitHub Actions sets it, so the job summary shows it with no third-party action. --markdown <file> writes it to a file too. With neither, it goes to standard output and every other line to standard error, so it can be piped.

A vendor’s GitHub Actions job. The GitHub Action runs test and then export in one step, with its release’s image:

      - uses: Vernum-Projecten/Veredictum@<commit-sha> # vX.Y.Z
        env:
          VEREDICTUM_CDR_USER: ${{ secrets.CDR_USER }}
          VEREDICTUM_CDR_PASSWORD: ${{ secrets.CDR_PASSWORD }}
        with:
          base-url: ${{ vars.CDR_BASE_URL }}
          statement: conformance/statement.json
          auth: basic
          out-dir: conformance

The step writes junit.xml, ctrf.json and summary.md into conformance/, appends the summary to the job summary, annotates the rows that need attention, and fails the job when a row counts against the server. Its page has a complete workflow, and GitLab CI has a template.

--annotations <file> writes those annotations as workflow commands: one ::error per failed or errored row and one ::warning per warning row, at most 10 of each, then a ::notice counting the rows the summary lists beyond them.

GitLab (artifacts:reports:junit), Jenkins (the JUnit plugin) and most other CI systems read the JUnit file. conformance/recording.har holds response bodies verbatim, so it stays with the operator, never in a public artifact.

A perf-result.json has one view, the Markdown summary, holding what show prints as tables. --junit, --ctrf and --annotations refuse it with exit status 2, since a performance record has no test cases.

badge

Draw the static badges of a result document, for a README.

Each badge is written as `<name>.svg`, a flat badge drawn without a font or the network, and as `<name>.json`, a Shields.io endpoint document (<https://shields.io/badges/endpoint-badge>), and each is a byte-deterministic function of the document. Every badge reports the vendor's own run, and none is a certificate.

Each badge carries one fact: the label names the subject and the message gives one short value. The SVG title and `aria-label` carry the full text.

An Arazzo results document draws four: `base` (the BASE rows), `options` (the rows of the selected option arms and of the cases resting on TRIAL text), `profile` (the specification profile) and `instrument` (`self-run` and the version). A counting badge reads passed out of the rows that bear on the verdict (passed, failed, errored), then the failed and errored counts. A warning row, a SHOULD the server did not follow, changes no colour and shows on no badge; the results carry it. A counting badge of a development result says `dev` in its label, so a development tally never reads as a released one. A counting badge is green only when no row failed or errored: red when a row counts against the server (it failed, or errored with the server or no one named), orange when none does but an errored row is inconclusive, grey when nothing passed. A warning changes no colour.

A `perf-result` draws three: `perf` (the workload in the label, the knee in whole requests per second, rounded outward), `noise` (whether an A/A floor is attached) and `instrument`. A knee is a reading and never a pass or a failure, so it is drawn in a neutral colour.

Exit status: `0` when every badge was written; `2` when the document cannot be read or a file cannot be written.

Usage: veredictum badge --results <RESULTS> --out <OUT>

Options:
      --results <RESULTS>
          The `results.json` the Arazzo evaluator wrote, or a `perf-result.json`

      --out <OUT>
          Output directory for the badges (created if missing)

  -h, --help
          Print help (see a summary with '-h')

badge draws a vendor’s static README badges from a result document. Each badge is a pure function of that document, so the same input writes the same bytes. Text is measured with a fixed width table, so no font or network is read.

DocumentFiles written
an Arazzo results.jsonbase, options, profile and instrument, each .svg and .json
a perf-result.jsonperf, noise and instrument, each .svg and .json
veredictum badge --results conformance/results.json --out conformance/badges

The .json file is a Shields.io endpoint document, so Shields can serve the badge from wherever the file is published. Every badge reports the vendor’s own run and is never a certificate. Badges covers what each says, the colour rules, and publishing from GitHub, GitLab or any other CI.

show

Show a result document in the terminal: an Arazzo results document one line per chapter, band and option, each with its counts and a bar, or a `perf-result` one line per plateau.

A result reads in two parts. BASE comes first, chapter by chapter and band by band, in the order the catalogue declares. OPTIONS follows by the same chapters and bands, one line per option naming its selected arm and its kind (Recommended (SHOULD), Optional (MAY), or `@SpecDiverge` for an option that exists only because the released text is unclear), with the cases resting on TRIAL text in their band. A closing note counts the cases tagged `@SpecDiverge` and links the reports they are judged by. Every mark is a glyph as well as a colour: ✓ passed (green), ✕ failed (red), ? errored (yellow), ! warning and ○ skipped (grey). A warning row is a SHOULD the server did not follow and is never shown as a failure. A result judged under the development profile opens with a line naming the profile and every snapshot commit, and saying it is never a released result.

A `perf-result` reads as a header naming the target, environment, host, workload (a `custom` one named so), corpus, the knee estimate, the between-run noise and the record's scope; one line per plateau with offered and achieved rates, p50 to max, the error share and a ✓ or ✕ qualification mark, with `unsteady` where recorded; the operations at the knee and at the lowest plateau with the quantile each is judged at (`n/r` where a quantile does not resolve); the knee, peak, population and fit sentences; a sparkline of p99 against the offered rate; and the server-side readings as context. It fits 80 columns. `--failed` does not apply to it.

Exit status: `0` when the view was printed; `2` when the document cannot be read.

Usage: veredictum show [OPTIONS] <RESULTS>

Arguments:
  <RESULTS>
          The `results.json` the Arazzo evaluator wrote, or a `perf-result.json`

Options:
      --failed
          Expand every failed and errored row with its four-part explanation, then list the warning rows apart

      --color <COLOR>
          When to colour the view. `auto` colours when standard output is a terminal and `NO_COLOR` is unset or empty (<https://no-color.org/>)

          Possible values:
          - auto:   Colour on a terminal unless `NO_COLOR` is set
          - always: Always colour
          - never:  Never colour
          
          [default: auto]

  -h, --help
          Print help (see a summary with '-h')

show prints a results.json in the terminal, the same view test prints when a run finishes.

Each line is one group of rows: a 24-cell bar and the count of each mark. Every mark with a row gets at least one cell, so one failure among a thousand passes still shows. Cells differ in shape as well as colour: █ passed, ▓ failed, ▒ errored, ░ warning, · skipped.

BASE
  Every BASE case                           ████████████▓▓▓▓▓▓▓▓░░░░  ✓   3  ✕   2  ?   0  !   1  ○   0
  EHR                                       ████████████▓▓▓▓▓▓▓▓░░░░  ✓   3  ✕   2  ?   0  !   1  ○   0
    COMPOSITION                             ████████████▓▓▓▓▓▓░░░░░░  ✓   2  ✕   1  ?   0  !   1  ○   0
    DIRECTORY                               no cases
  • BASE: each chapter and band in catalogue order.
  • OPTIONS: the same chapters and bands, one line per option with the selected arm and its kind: Recommended (SHOULD), Optional (MAY), or @SpecDiverge for an option that exists only because the released text is unclear or contradictory. An option with no arm selected is listed once and its rows count nowhere. Cases citing text the release marks TRIAL are listed in their band here, never in a BASE count.
  • Closing note: counts the @SpecDiverge cases and names the upstream reports they are judged by. Report numbers come from the catalogue’s committed snapshot; nothing is fetched.

Warning rows are counted apart from failures, and --failed lists them under their own heading after the failed and errored rows.

Colour. --color auto, the default, colours only when standard output is a terminal and NO_COLOR is unset or empty (https://no-color.org/). --color always and --color never override both, so veredictum show results.json --color always | less -R keeps colour.

A performance record. Given a perf-result.json (it names its family), show prints, within 80 columns and only from the record:

  • a header: target, environment, workload and digest, corpus, between-run noise and the scope of one run;
  • a line per plateau: offered and achieved rates, p50 to max, error share, ✓ when it qualifies and ✕ when it fails, unsteady where the halves disagree;
  • the operations at the knee and at the lowest plateau, with each one’s judged quantile (n/r, not resolvable, below 10 samples above it);
  • the knee, peak, population and fit sentences;
  • a sparkline of p99 against offered rate, and the server-side readings.

verify

Verify a conformance certificate offline against a JWK Set, and print what it states.

A certificate is a JWS in the compact serialization, signed with Ed25519 (`EdDSA`), whose header names its key by `kid`. It is refused when the header or the payload changed after signing, when the set holds no key under its `kid`, when its algorithm or type is another, when the set marks the key revoked, and when the key expired before the certificate's `issued_at`. Nothing is fetched: the set is the file you name.

The payload carries the SHA-256 digests of the run's `results.json` and HAR recording, so `sha256sum` over the two files checks that they are the exchanges the certificate covers.

Exit status: `0` when the certificate verifies; `1` when it is refused; `2` when a file cannot be read or the JWK Set itself is refused.

Usage: veredictum verify --jwks <JWKS> <CERTIFICATE>

Arguments:
  <CERTIFICATE>
          The certificate (`certificate.jws`)

Options:
      --jwks <JWKS>
          The JWK Set holding the verifying keys: the published `jwks.json`, or a copy of it

  -h, --help
          Print help (see a summary with '-h')

The offline check of a conformance certificate. It reads the two files you name and no network, so the published JWK Set is enough: the copy at https://console.veredictum.eu/.well-known/jwks.json, or deploy/hosted/jwks.json in this repository. Any JOSE library verifies the signature; this command also refuses a key the set marks revoked_at and a certificate issued after its key’s expires_at, which a generic library ignores.

A verified certificate prints the server with who supplied each identity field, the base URL, the catalogue digest, the engine version and its approval status, the verdict summary, and the SHA-256 digests of the run’s results.json and HAR recording. Run sha256sum over the two files a vendor supplied to check they are the ones the certificate covers. The payload’s schema is schemas/certificate.schema.json; the key set’s is schemas/jwks.schema.json.

The GitHub Action

This repository is a GitHub Action, versioned by the same vX.Y.Z tags as the binary and image. It needs Docker on the runner (every GitHub-hosted Linux runner has it).

A complete workflow

Pin every uses: to a full commit SHA with the tag in a trailing comment.

name: openEHR conformance
on: [pull_request]

permissions: {}

jobs:
  conformance:
    runs-on: ubuntu-latest
    permissions:
      contents: read # the checkout below, and nothing else
    services:
      cdr:
        image: registry.example/our-cdr:1.4.2
        ports: ["8080:8080"]
        options: >-
          --health-cmd "curl -fsS http://127.0.0.1:8080/health"
          --health-interval 5s --health-retries 30
    steps:
      - uses: actions/checkout@<commit-sha> # vN
        with:
          persist-credentials: false

      - id: veredictum
        uses: Vernum-Projecten/Veredictum@<commit-sha> # vX.Y.Z
        # Only for a CDR that wants bearer tokens; see "Credentials" below for
        # a CDR that wants a username and password, or no login.
        env:
          VEREDICTUM_CDR_TOKEN: ${{ secrets.CDR_TOKEN }}
          VEREDICTUM_CDR_ADMIN_TOKEN: ${{ secrets.CDR_ADMIN_TOKEN }}
        with:
          base-url: http://127.0.0.1:8080/openehr/v1
          statement: conformance/statement.json
          ixit: conformance/ixit.json
          auth: bearer
          admin-auth: bearer
          out-dir: conformance-results

      - uses: actions/upload-artifact@<commit-sha> # vN
        if: ${{ !cancelled() }}
        with:
          name: conformance-views
          path: |
            conformance-results/results.json
            conformance-results/junit.xml
            conformance-results/ctrf.json
            conformance-results/summary.md
            conformance-results/badges/

Leave recording.har out of uploads: it holds response bodies verbatim, which can include patient data. The CTRF view feeds reporters such as ctrf-io/github-test-reporter (a pull request comment needs pull-requests: write).

What the step does

  1. Pulls the image and records its ID.
  2. Runs test, writing results.json and recording.har into out-dir.
  3. Runs export (junit.xml, ctrf.json, summary.md), appends the summary and image to the job summary, and writes annotations.
  4. Runs badge into out-dir/badges/ and pushes to badge-branch if set (badges).
  5. Exits with the run’s status.
Exit statusMeaningThe step
0no row counts against the server and none is inconclusive: every row passed or was skipped, or failed only as a warningpasses
1a row counts against the server: it failed (a warning row excepted), or errored with the server named, whatever else the run holdsfails
2the run could not start or finish: a usage error, a catalogue gate finding, an unreadable file, a missing credentialfails
3no row counts against the server, and at least one is inconclusive: the instrument could not judge it, so it does not count against the vendorfails, or passes with fail-on-inconclusive: false

With exit 3 and fail-on-inconclusive: false, exit-code still reads 3 and the job summary lists each inconclusive row. The action clears its own files from out-dir first, so stale results are never exported.

Inputs

InputDefaultMeaning
base-urlrequiredthe server’s base URL, up to and including the openEHR REST base
statementnonepath to the party’s statement, which decides what runs (test)
ixitnonepath to the party’s IXIT, which answers the declared inputs
authnonenone, basic or bearer
admin-authnonethe same, for the administrative principal; with none the administrative workflows are skipped
documentsnonedocument ids separated by white space; a narrowed run is a working tool, never the record you submit
profiledevelopmentthe specification text the citations are read against: development (the pinned master of each openEHR repository) or released (the frozen release); only a released run backs a released claim or a certificate
platform-urlnonethe SMART Platform base URL (below); without it every workflow sent to the Platform is skipped as not-declared
out-dirveredictum-resultswhere the five files and the badges/ directory are written
imagethe release imagethe image to run (below)
pulltruefalse runs an image already on the runner, such as one built earlier in the job
networkhostthe container network the run joins
badge-branchnonea branch of your repository to push the badges to (below); with none, nothing is pushed
fail-on-inconclusivetruefalse lets exit status 3, a run whose only red rows are inconclusive, pass the step (above)
annotationstruefalse writes no annotations

With network: host, a service container is at 127.0.0.1 on its published port.

Outputs: exit-code, results, junit, ctrf, summary, badges, image-id and image-digests.

Credentials

Never an input; set them as env: on the step.

Your CDR wantsInputenv: on the step
no loginauth: none (the default)nothing
a username and passwordauth: basicVEREDICTUM_CDR_USER, VEREDICTUM_CDR_PASSWORD
a bearer tokenauth: bearerVEREDICTUM_CDR_TOKEN

admin-auth uses VEREDICTUM_CDR_ADMIN_USER and VEREDICTUM_CDR_ADMIN_PASSWORD, or VEREDICTUM_CDR_ADMIN_TOKEN. A _FILE variable is mounted read-only into the container; an empty variable counts as unset and stops the run with exit 2 (Logging in to the CDR).

      - uses: Vernum-Projecten/Veredictum@<commit-sha> # vX.Y.Z
        env:
          VEREDICTUM_CDR_USER: ${{ secrets.CDR_USER }}
          VEREDICTUM_CDR_PASSWORD: ${{ secrets.CDR_PASSWORD }}
        with:
          base-url: http://127.0.0.1:8080/openehr/v1
          statement: conformance/statement.json
          auth: basic

With no login, omit env: and auth:

      - uses: Vernum-Projecten/Veredictum@<commit-sha> # vX.Y.Z
        with:
          base-url: http://127.0.0.1:8080/openehr/v1
          statement: conformance/statement.json

SMART on openEHR

A server claiming smart adds platform-url (the SMART Platform base URL, which can differ from base-url) and the IXIT’s scoped_tokens (test):

The IXIT declaresenv: on the step
a test issuer under mintVEREDICTUM_SCOPED_TOKEN_KEY, the RSA private key in PEM
a token under issuedthe VEREDICTUM_SCOPED_TOKEN_<NAME> variable it names
      - uses: Vernum-Projecten/Veredictum@<commit-sha> # vX.Y.Z
        env:
          VEREDICTUM_CDR_TOKEN: ${{ secrets.CDR_TOKEN }}
          VEREDICTUM_SCOPED_TOKEN_KEY: ${{ secrets.SMART_TEST_ISSUER_KEY }}
        with:
          base-url: http://127.0.0.1:8080/openehr/v1
          platform-url: http://127.0.0.1:8080
          statement: conformance/statement.json
          ixit: conformance/ixit.json
          auth: bearer

A mint issuer signs a token per scope set; use only a key a test deployment trusts. Only VEREDICTUM_SCOPED_TOKEN_<NAME> variables reach the container. Working example: deploy/docker/e2e-ferroehr-smart.yml and deploy/docker/smart/.

Which image runs

By default ghcr.io/vernum-projecten/veredictum:X.Y.Z, the action’s own version; an image reporting another version is refused. To pin bytes, pass a digest:

        with:
          image: ghcr.io/vernum-projecten/veredictum@sha256:<digest>
docker buildx imagetools inspect ghcr.io/vernum-projecten/veredictum:X.Y.Z

The step runs by resolved image ID and reports it as image-id.

Annotations

An error per failed or errored row, a warning per warning row:

Error: ehr/create_ehr-same_ehr_twice-with_id row 1
Failed: counts against the server.
Checked: Create an EHR with the same ehr_id again.
Cited: "Can happen when the supplied `ehr_id` is already used by an existing EHR." (specs/openehr/ITS-REST/specifications/responses/409_EHR_with_id.yaml, description)
Expected: status 409
Received: status 201

GitHub shows at most 10 of each kind per step (limits); the step writes the first 10 in row order, then one notice counting the rest.

Badges

Four badges per run go to out-dir/badges/. With badge-branch: <branch> they are pushed there, only from a non-pull-request run on the default branch. See Badges.

Permissions

Without badge-branch: no GitHub API and no token; the job needs only contents: read. With it: set GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} in the step’s env: and grant contents: write.

GitLab CI

ci/gitlab/veredictum.yml is a GitLab CI template, versioned by the same vX.Y.Z tags as the binary and image. It needs a runner that can run Docker-in-Docker, as GitLab.com’s hosted Linux runners can.

Including the template

include:
  - remote: https://raw.githubusercontent.com/Vernum-Projecten/Veredictum/vX.Y.Z/ci/gitlab/veredictum.yml
    inputs:
      base-url: https://cdr-test.example/openehr/v1
      statement: conformance/statement.json
      ixit: conformance/ixit.json
      auth: bearer
      profile: released

Name a release tag, never a branch (includes, inputs).

The two jobs

  1. <job-name> (default veredictum) runs test, export and badge with ghcr.io/vernum-projecten/veredictum:X.Y.Z, keeping results.json, junit.xml (also the merge request’s test report), ctrf.json, summary.md and badges/ as artifacts. It always succeeds, so its badges stay servable.
  2. <job-name>-verdict fails on the saved exit status:
Exit statusMeaningThe verdict job
0no row counts against the server and none is inconclusivepasses
1a row counts against the serverfails
2the run could not start or finishfails
3no row counts against the server, and at least one is inconclusive: the instrument could not judge itfails, or passes with fail-on-inconclusive: false

The run uses a digest-pinned Docker CLI image and Docker-in-Docker service. The instrument image has no shell, so files move in and out with docker cp. base-url must be reachable from that service’s network (a review environment works; a server started as another service of the job does not).

Inputs

InputDefaultMeaning
base-urlrequiredthe server’s base URL, up to and including the openEHR REST base
statementnonepath to the party’s statement in the repository, which decides what runs (test)
ixitnonepath to the party’s IXIT in the repository, which answers the declared inputs
authnonenone, basic or bearer
admin-authnonethe same, for the administrative principal; with none the administrative workflows are skipped
documentsnonedocument ids separated by spaces; a narrowed run is a working tool, never the record you submit
profiledevelopmentdevelopment (the pinned master of each openEHR repository) or released (the frozen release); only a released run backs a released claim or a certificate
platform-urlnonethe SMART Platform base URL; without it every workflow sent to the Platform is skipped as not-declared
out-dirveredictum-resultswhere the files and badges/ are written, relative to the project directory
keep-recordingfalsetrue keeps recording.har as an artifact
fail-on-inconclusivetruefalse lets exit status 3 pass the verdict job
allow-failurefalsetrue leaves the pipeline passed with warnings when the verdict job fails, so the badges keep showing the newest run
stagetestthe stage both jobs run in
job-nameveredictumthe run job’s name; the verdict job is this name with -verdict appended

Leave keep-recording off for a public project: the recording holds response bodies verbatim.

CI/CD variables

Credentials are masked CI/CD variables, never inputs:

Your CDR wantsInputCI/CD variables
no loginauth: none (the default)nothing
a username and passwordauth: basicVEREDICTUM_CDR_USER, VEREDICTUM_CDR_PASSWORD
a bearer tokenauth: bearerVEREDICTUM_CDR_TOKEN

admin-auth reads VEREDICTUM_CDR_ADMIN_USER and VEREDICTUM_CDR_ADMIN_PASSWORD, or VEREDICTUM_CDR_ADMIN_TOKEN. SMART reads VEREDICTUM_SCOPED_TOKEN_KEY for a mint issuer and each VEREDICTUM_SCOPED_TOKEN_<NAME> an issued entry names. For a File-type variable append _FILE (for example VEREDICTUM_SCOPED_TOKEN_KEY_FILE). An empty variable stops the run with exit 2.

Badges

See Badges for the artifact URL and README snippet.

The template’s own checks

scripts/release/check-gitlab-template.sh pins the template’s image tag to the engine version and refuses undeclared, unread or credential-named inputs. The test suite validates the template against GitLab’s CI schema.

Badges

veredictum badge draws static badges from a run’s result, for the vendor to publish; no badge service is involved. Every badge is the vendor’s own run (self-run) and never a certificate. Link each badge to the run that drew it.

What they look like

Drawn from test fixtures (instrument version 0.3.1), each with its Markdown.

A passing result judged against the release, with one BASE warning, which no badge shows:

![openEHR BASE: 3/3 passed](badges/passing/base.svg)
![openEHR OPTIONS: 1/1 passed](badges/passing/options.svg)
![specification: released](badges/passing/profile.svg)
![veredictum: self-run v0.3.1](badges/passing/instrument.svg)

A failing result: one BASE row failed, one BASE and one option row errored:

![openEHR BASE: 2/4 passed, 1 failed, 1 errored](badges/failing/base.svg)
![openEHR OPTIONS: 0/1 passed, 1 errored](badges/failing/options.svg)
![specification: released](badges/failing/profile.svg)
![veredictum: self-run v0.3.1](badges/failing/instrument.svg)

The passing result judged against the development snapshot:

![openEHR BASE dev: 3/3 passed](badges/development/base.svg)
![openEHR OPTIONS dev: 1/1 passed](badges/development/options.svg)
![specification: development (master)](badges/development/profile.svg)
![veredictum: self-run v0.3.1](badges/development/instrument.svg)

The committed example performance record, with a bracketed knee and no A/A floor:

![perf custom: knee 180.8–210.9/s](badges/perf/bracket/perf.svg)
![A/A floor: not measured](badges/perf/bracket/noise.svg)
![veredictum: self-run v0.3.1](badges/perf/bracket/instrument.svg)

A lower-bound knee on a pinned workload, every plateau qualified, with an A/A floor attached:

![perf ehr-mix@2: knee ≥ 1,250.0/s](badges/perf/lower-bound/perf.svg)
![A/A floor: attached](badges/perf/lower-bound/noise.svg)
![veredictum: self-run v0.3.1](badges/perf/lower-bound/instrument.svg)

Published (GitHub, GitLab) and linked to its run, the first badge becomes:

[![openEHR BASE: 3/3 passed](https://raw.githubusercontent.com/<owner>/<repo>/veredictum-badges/base.svg)](https://github.com/<owner>/<repo>/actions/workflows/conformance.yml?query=branch%3Amain)

scripts/render/book-badges.sh redraws this gallery; scripts/checks/book-badges.sh fails CI on drift.

One design for every badge

One fact per badge: a label of at most three words, one short value. The SVG title and aria-label carry the full text, such as openEHR BASE: 2/4 passed, 1 failed, 1 errored.

The four conformance badges

BadgeLabelMessage
baseopenEHR BASE, or openEHR BASE devpassed out of the BASE rows and the rows the outline places nowhere that bear on the verdict (passed, failed and errored), then the failed and errored counts when there are any: 318/318 passed, 312/318 passed, 6 failed, 310/318 passed, 6 failed, 2 errored. A warning shows on no badge
optionsopenEHR OPTIONS, or openEHR OPTIONS devthe same count over the option arms the statement selected and the cases resting on TRIAL text, which are read with the options
profilespecificationreleased, or development (master) with the branch the snapshot was taken from
instrumentveredictumself-run v<version>

Warnings and skipped rows stay out of the ratio. Without an outline, both counting badges read no outline. Counts match show.

Colourbase and optionsprofile
greenrows passed, none failed or errored
redat least one row counts against the server: it failed, or errored with the server (or no one) named in its record
orangenone counts against the server, and at least one errored row is inconclusive (the instrument could not judge it)
greynothing passed: no rows, or every row skipped
bluereleased
purpledevelopment

The instrument badge is deep teal. A warning never changes a colour and shows on no badge.

The performance badges

BadgeLabelMessage
perfperf <workload>knee 180–211/s for a bracket, knee ≥ 1,250/s when every plateau qualified, below ladder when the lowest plateau failed, no plateau when the run had none
noiseA/A floorattached when the record carries an A/A floor, not measured when it does not
instrumentveredictumself-run v<version>, the version that wrote the record

<workload> is <id>@<version> when pinned, else custom. Rates round outward to whole numbers; the title keeps one decimal. perf is always slate grey-blue; noise is slate when attached, grey when not.

The icon

The Veredictum mark sits at the left (also logoSvg in the .json). The openEHR logo is never used: it is openEHR’s trademark.

Drawing the badges

veredictum badge --results conformance/results.json --out conformance/badges

Writes an .svg (self-contained) and a .json Shields.io endpoint per badge: https://img.shields.io/endpoint?url=<the published URL of base.json>.

GitHub

With badge-branch, the GitHub Action pushes the badges as a single replacing commit, only from a non-pull-request run on the default branch and only when they changed. It needs GITHUB_TOKEN and contents: write:

name: openEHR conformance
on:
  push:
    branches: [main]
  pull_request:

permissions: {}

jobs:
  conformance:
    runs-on: ubuntu-latest
    permissions:
      contents: write # the badge push; contents: read without badge-branch
    steps:
      - uses: actions/checkout@<commit-sha> # vN
        with:
          persist-credentials: false

      - uses: Vernum-Projecten/Veredictum@<commit-sha> # vX.Y.Z
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          VEREDICTUM_CDR_TOKEN: ${{ secrets.CDR_TOKEN }}
        with:
          base-url: ${{ vars.CDR_BASE_URL }}
          statement: conformance/statement.json
          auth: bearer
          profile: released
          badge-branch: veredictum-badges

In the README:

[![openEHR BASE](https://raw.githubusercontent.com/<owner>/<repo>/veredictum-badges/base.svg)](https://github.com/<owner>/<repo>/actions/workflows/conformance.yml?query=branch%3Amain)
[![openEHR OPTIONS](https://raw.githubusercontent.com/<owner>/<repo>/veredictum-badges/options.svg)](https://github.com/<owner>/<repo>/actions/workflows/conformance.yml?query=branch%3Amain)
[![specification](https://raw.githubusercontent.com/<owner>/<repo>/veredictum-badges/profile.svg)](https://github.com/<owner>/<repo>/actions/workflows/conformance.yml?query=branch%3Amain)
[![veredictum](https://raw.githubusercontent.com/<owner>/<repo>/veredictum-badges/instrument.svg)](https://github.com/<owner>/<repo>/actions/workflows/conformance.yml?query=branch%3Amain)

GitHub caches raw files for five minutes.

GitLab

The GitLab CI template keeps the badges as artifacts, served from a branch’s latest successful pipeline. With the default out-dir and job-name:

https://gitlab.com/<namespace>/<project>/-/jobs/artifacts/<branch>/raw/veredictum-results/badges/<name>.svg?job=veredictum

In the README:

[![openEHR BASE](https://gitlab.com/<namespace>/<project>/-/jobs/artifacts/main/raw/veredictum-results/badges/base.svg?job=veredictum)](https://gitlab.com/<namespace>/<project>/-/pipelines?ref=main)

Or under Settings → General → Badges, with %{default_branch} for the branch. A failed pipeline leaves the URL on the last successful run; set allow-failure: true to keep the badges on the newest run.

Any other CI

Run veredictum badge --results <results.json> --out <dir> after every run, passed or failed, and publish the directory.

Reading a result

For a buyer holding a vendor’s result: what each kind of row means for a purchase, and what a result cannot tell you.

A result is the results.json a run wrote (schemas/arazzo-results.schema.json) or a view of it: veredictum show, the Markdown summary of export, the console or the badges. Every view counts the same rows the same way.

BASE and options

The views report BASE and options apart, chapter by chapter (catalogue/chapters.yaml).

  • BASE: what every platform CDR must do over the released openEHR REST API, such as create an EHR, commit a COMPOSITION or run a query. A case is BASE when no option arm names its document.
  • Option: a behaviour the release leaves to the implementation, such as serving canonical XML; both answers are conformant. catalogue/capabilities.yaml names each option, its arms and the sentence leaving the choice open. The vendor’s statement picks an arm, and only its cases run. Cases resting on TRIAL text are read with the options.

The kinds of row

Rows end passed, failed, errored or skipped; a failed row may be a warning. The examples are cut to the members that matter. Case ids and quotes are real; other texts are abridged, and the failed option row is illustrative.

A failed BASE row

{
  "case": "ehr/create_ehr-same_ehr_twice-with_id",
  "status": "failed",
  "explanation": {
    "step": "create-again",
    "what": "The second create with an ehr_id already in use is refused.",
    "why": {
      "source": "specs/openehr/ITS-REST/specifications/responses/409_EHR_with_id.yaml",
      "quote": "Can happen when the supplied `ehr_id` is already used by an existing EHR."
    },
    "expected": "status 409",
    "received": "status 201",
    "whose": "server"
  }
}

The server accepted a second EHR under an identifier in use, where the specification assigns 409 Conflict. whose: server counts it against the server, and the row carries the exchange it was judged on.

For a purchase: a core defect. Ask for a fix and a fresh run, or a reason grounded in the cited sentence. The chapter names the affected area.

A failed option row

{
  "case": "ehr_xml/get_ehr-xml",
  "status": "failed",
  "explanation": {
    "step": "read",
    "expected": "status 200, Content-Type application/xml",
    "received": "status 406",
    "whose": "server"
  }
}

The statement picked ehr-xml-supported and the server did not serve XML. Declining XML is conformant (Resources.md, Data representation: “Services MUST support at least one of the openEHR XML or JSON canonical formats for resource representation.”); claiming it and not serving it is not.

For a purchase: the product does not do what its statement says. As serious as a BASE failure if you need XML; otherwise, the statement is still inaccurate.

A warning

{
  "case": "ehr_status_update/update-stale_if_match-etag_latest",
  "status": "failed",
  "explanation": {
    "why": {
      "source": "specs/openehr/ITS-REST/specifications/docs/overview/Requests_and_responses.md",
      "quote": "SHOULD return also latest `version_uid` in the `ETag` response headers.",
      "level": "should"
    },
    "whose": "warning"
  }
}

Every failing check quotes a SHOULD, which RFC 2119 (adopted by the ITS-REST preface) lets an implementation skip for a valid reason. A warning is reported in full, never counts against the server, keeps exit status 0 and changes no badge colour. Here the server answered a stale update with 412 but left the latest version out of its ETag.

For a purchase: a question for the vendor, never on its own grounds to call the product non-conformant.

A skipped row

{
  "case": "ehr_xml/get_ehr-xml",
  "status": "skipped",
  "skip": {
    "reason": "option-not-selected",
    "why": {
      "source": "specs/openehr/ITS-REST/specifications/docs/overview/Resources.md",
      "section": "Data representation"
    }
  }
}

The row did not run; it names its reason and the citation that makes the case not apply.

ReasonMeaning
not-claimedthe statement does not claim the case’s capability, for example demographics
option-not-selectedthe statement picked the other arm of the option
format-not-claimedthe case needs a wire format the statement does not list
version-out-of-rangethe case applies to specification versions the statement does not claim
extension-not-offereda setup of the case calls an extension route the statement does not declare
not-declaredthe vendor did not supply a value or login the case needs, such as an administrator account
cited-text-absentthe cited text is absent from the profile the run used
development-onlythe case rests on text only the development snapshot holds, and the run used the released profile
contested-in-developmentthe development snapshot keeps the cited text but contradicts it elsewhere, as an upstream report records, and the run used the development profile

For a purchase: a fact about the claim, not the server. Read the skipped count and the not-claimed capabilities beside the passed count: everything passing because almost nothing was claimed proves little.

An errored row

The instrument could not judge: the connection dropped, or the response was unreadable. Unless the record names the server, it is inconclusive and counts against nobody. A run whose only red rows are inconclusive exits 3, and the badges show orange. Ask for a re-run.

No severity beyond MUST and SHOULD

A broken MUST is a failure, an unmet SHOULD a warning; there is no “critical”, “major” or “minor”. The released texts grade with RFC 2119 keywords and nothing finer. The ITS-REST preface (specs/openehr/ITS-REST/specifications/docs/overview/Preface.md, Requirements): “The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “NOT RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in BCP 14“. Every check states its quote’s level, and validate refuses a mismatch (docs/ARCHITECTURE.md §15.9, the level gate). A finer grade would rest on a judgement no released sentence makes (the method). Weigh failures by chapter (EHR, COMPOSITION, Query, Demographic and so on) against what your project needs.

Is this a real CDR?

A result can showA result cannot show
The API: each passed BASE row is one behaviour done as a released sentence requires, at the result’s base_url. Passes across EHR, COMPOSITION, CONTRIBUTION and Query mean the core of a platform CDR is thereAnother version or deployment: a new product version needs a new statement and run (docs/ARCHITECTURE.md §9, validity and supersession)
Refusals: every required refusal has an invalid twin, so an accept-anything server fails (the method)An untuned run: a vendor’s run is a first-party attestation; every badge says self-run, and instrument_status reads pre-approval for every 0.x version, which the openEHR SEC has not approved. Run it yourself with the vendor’s IXIT (Running the instrument) or ask for a witnessed re-run
The claim: capabilities, option arms, wire formats and specification versions; rows outside it are skipped with a reasonSpeed or scale: conformance rows carry no timing; measured performance is a separate record, never pass or fail (Measured performance)
The text: specification names the released or development profile; only a released result backs a released claimSecurity: security cases check behaviour such as refusing an unauthenticated request; attack resistance and cryptographic strength are security evaluation (docs/ARCHITECTURE.md §6.3)
The uncovered: every uncovered operation branch is a recorded gap with its tracker issue (catalogue/cases/surface.yaml); only platform CDRs are in scope
Clinical fitness: suitability for your workflows, templates and data is outside any conformance test

The web console

The console is the instrument in a browser, shipped as its own container image. It reads the catalogue and the vendored specification text from mounted paths and reaches the engine only through the published veredictum crate, so every number it shows the command line prints too. It runs functional conformance; perf and perf-compare stay on the command line.

The screenshots come from the console’s browser journeys (scripts/ui-e2e.sh with UI_E2E_DOCS_SHOTS=1), 1440×900, light and dark, refreshed in the pull request that changes the interface. Capture mode fixes the per-run facts on screen (clock 00:00, run id, fixture server address) so an unchanged interface gives identical images; what a run writes is unaffected. The sidebar names engine 0.3.1 in every capture, whatever version is current, so a release changes no image. Captures read a frozen excerpt (fixtures/console/catalogue/: four capability folders, 166 cases), so their counts are the excerpt’s.

The landing

Four counts: cases (one per Arazzo workflow), Arazzo documents, capability folders and gate findings. Findings above zero mean the catalogue needs work before any server is graded.

The catalogue explorer

Capability folders with their case counts. Search and page state live in the URL, so a view can be shared and survives a refresh.

A capability lists its cases by Arazzo document, each with its id and summary.

One case in full

The description, the specification citation, the option arm its document tests (if any), and every step with its operation. Only a better reading of the cited text can refute the expectation.

The run wizard

Connect: the CDR base URL, the display identity, the authentication choice from the ixit’s vocabulary, and a probe whose answer renders verbatim. An administrative credential is optional; the run gets it through --admin-auth and VEREDICTUM_CDR_ADMIN_* (Logging in to the CDR). Without it, workflows with an administrative step skip as not-declared and the IXIT names no administrative principal. Display name and version stay editable after the probe; editing the address or a credential withholds Continue until you probe again.

Scope: paste the vendor’s own statement.json (the ICS: claimed capabilities and selected option arms). The console ships no declaration, since ISO/IEC 9646-7 assigns an ICS proforma’s support and supported-values columns to the implementation’s supplier.

  • Compose on screen: pick capability folders (each shows its documents and cases); the claim is written into the same box with product identity from Connect. Options stay undeclared, since only the server’s party knows its arm.
  • Save: checks the published statement schema, then shows the claim overview (product, capability count) beside the selection preview.
  • Empty box: an honest no-claim run; every capability runs, no arm is selected.
  • Document-id filter: runs only documents whose id contains it.

Run: the engine’s own veredictum test, credentials only in the spawned process’s environment. The live screen shows server and version, the elapsed clock and the engine’s output tail, then links to the results.

The results

Failed rows first, then errored rows (the instrument could not judge; the detail names why). A row’s detail is the four-part explanation (what was checked, why with the cited sentence, expected against received, whose problem), which the attribution turns on; Reading a result explains each kind for a buyer. It ends with the exchange, verbatim from recording.har. That recording can hold real patient data and stays in the operator’s output directory.

Certificates, and trial mode

VEREDICTUM_CERTIFICATESBehaviour
issuereads the Ed25519 key in VEREDICTUM_SIGNING_KEY_FILE with key id VEREDICTUM_SIGNING_KID; refuses to start unless the JWK Set at /.well-known/jwks.json publishes it unrevoked and unexpired; writes certificate.jws beside each finished run’s results, offered as a download
unset, trial or anything elsetrial mode (default): every page’s banner says so, results say no certificate is issued, no signing key is read

Verifying a certificate is the reader’s side.

Running it in public

console.veredictum.eu is this console served publicly. Its settings are documented in deploy/hosted/.

VariableEffect
VEREDICTUM_POSTUREhosted resolves the name first, then refuses loopback, private, link-local, unique-local, unspecified, multicast, carrier-shared and broadcast addresses in both families before any socket opens. local (default) refuses nothing, for a CDR at localhost. Any other value refuses to start
VEREDICTUM_CLIENT_IP_HEADERthe header carrying the real client address behind a proxy, which the per-visitor caps key on. Only the named header is read, never an unconditional X-Forwarded-For. Unset: the socket peer
VEREDICTUM_METRICS_TOKEN/metrics serves Prometheus text to a bearer of this token: runs by outcome, refusals by guard and reason, server-function answers by status class, the queue, container memory and CPU. Labels are fixed words, never visitor input. Unset: 404. An unusable token refuses to start

Each run also writes a JSON line to standard error at engine start and end: id, outcome, durations and case counts.

An address the console does not serve

A path outside the route tree answers 404 in the same chrome, names the missed path and offers two ways on. Nothing was run or judged.

Two real servers, side by side

The catalogue’s EHR documents, through the same wizard, against FerroEHR’s quickstart and EHRbase’s official pairing at their latest images. Every difference traces to a case id and its citation. Captured by the harness that gates the console (UI_E2E_REAL_SUTS=1 scripts/ui-e2e.sh).

FerroEHR (latest)EHRbase (latest)

The conformance method

Why an independent instrument

A vendor’s own suite shares the server’s reading of the specification, and when the two disagree the suite usually gets adjusted. Veredictum accepts one authority, the released specifications: every expectation names its section, and only a better reading of that text refutes it. No server behaviour, vendor documentation or stalled upstream suite sets an expected value. Silences get no case (below), and every failure is attributed before anything changes, with the instrument suspected ahead of the server (below).

What the instrument does not test

Veredictum tests platform CDRs over ITS-REST: servers holding openEHR EHRs and demographic records behind the released openEHR REST API. Every case is an Arazzo workflow calling operations of the released ITS-REST OpenAPI documents (docs/ARCHITECTURE.md §15.2); the capability folders under catalogue/cases/ are what a statement can claim.

Out of scopeWhy
Integration brokers and middlewareno openEHR platform service, and no released text defines a broker’s wire behaviour
Analytics platformsAQL is tested where the release places it, a CDR’s Query API (the query capability); a separate analytics product has no released wire contract
Clinical applicationsthey are CDR clients; judging a client needs a server that grades requests, a different instrument
CKM and other knowledge repositoriestheir API is not in the released specifications; a CDR’s Definition API is tested (the definition capability)
Archetypes and templates as filesADL and OPT validity is for modelling tools under the AM; templates here are test material, and the CDR’s handling of them is what is judged
Protocols other than RESTuntil a second ITS has its own Arazzo documents (docs/ARCHITECTURE.md §15.2)

Reading a result lists what a result can and cannot say.

The oracle is the released specification text

The vendored openEHR specification text is the oracle and is never a suspect.

  • ITS-REST binds each operation to the wire; the Reference Model, AQL and the other released components define what it carries.
  • The released OpenAPI bundle grounds an expectation where the ITS-REST prose is silent, cited as the OpenAPI document. The prose wins any conflict.
  • Not authority: the openEHR Conformance component never reached a stable release. Its Platform Conformance Test Schedule and Robot suites say what to cover, not the correct answer, and the released component wins any disagreement.

Two specification profiles

ProfileTextRole
development (default)pinned snapshot of each openEHR repository’s master under specs/openehr-development/, one directory per repository, PROVENANCE.md naming repository, branch and committhe latest text; every upstream patch is written against it
releasedthe frozen release under specs/openehr/, never patchedthe oracle of every released claim

A case cites the same section under both. Where the snapshot rewords a sentence and the requirement is unchanged in substance, the citation’s development member quotes the snapshot, read only by that profile. A development run computes real verdicts. A case whose cited text the snapshot lacks is skipped as cited-text-absent, naming the profile and what is missing. Where the snapshot keeps the cited sentence and contradicts it in another text, the development member is { contested: <report> }, naming the upstream report, and the development profile skips the case as contested-in-development. The results, show, every export and the console name the profile and every snapshot commit.

Released results alone back a released claim or a certificate. A development result is never mixed with, compared as, or counted toward a released result, a certificate or the released BASE and OPTIONS tally; certificate issuance refuses it, so a certificate needs a --profile released run. validate gates the catalogue against the release, zero findings the only pass; --profile development adds the snapshot’s absences as information.

Keeping the pinned text current

scripts/vendor/spec-docs-development.sh pins each master by commit in its COMPONENTS table; scripts/vendor/spec-docs.sh pins each released component at its Release-* tag. The daily upstream-watch workflow opens an upstream-change issue when either moves:

  • openEHR <repository>: master moved past the development snapshot
  • openEHR <repository>: <tag> released

The body lists commits since the pin and their files, those a citation or an upstream/ patch names first. A later move rewrites it and comments; the issue closes when the pin catches up. Components pinned to a frozen commit (CNF, ITS-JSON, ITS-XML) get no release issue. The workflow writes only to this repository.

To act on one:

  1. Read the listed commits, citation and patch files first.
  2. Move the pin and re-vendor: the development table and scripts/vendor/spec-docs-development.sh, or the released table and scripts/vendor/spec-docs.sh. A released move changes the oracle and takes the care of an expectation change.
  3. Run validate under both profiles and re-read every moved citation first-hand. An unchanged requirement gains or updates its development member; a changed one goes through the attribution law.
  4. Re-apply upstream/<repository>/ (scripts/checks/upstream-patches-apply.sh). A patch that no longer applies means upstream touched the text: record the fixing commit on the upstream-report issue, or rewrite the patch.

The catalogue’s shape: one behaviour, one case

Every check carries the released sentence assigning its expected value, quoted verbatim and resolved against the vendored text by validate. That sentence is the authority, never the operation’s OpenAPI fragment alone. One behaviour per case, so a red row names one defect.

Positive and negative testing carry equal weight

A server that accepts everything passes every positive test. So every invalid shape is its own refusal workflow, naming its defect and reference, beside a valid twin that proves acceptance. A lenient server fails the invalid twin, and deleting one would silently narrow the claim.

  • Content negotiation: an unsatisfiable Accept gets 406, an unsupported payload media type 415.
  • Identity and state conflicts: duplicate identifier, stale preceding version, missing version precondition, deleting the already deleted.
  • Content validity: missing mandatory attributes, empty lists the Reference Model requires filled, structurally wrong documents, the wrong template.
  • Scope negatives: a format applied where the specification does not define it.
  • Authentication: every platform route refuses an unauthenticated request.

Invalid fixtures are raw bytes, since a typed model cannot build them; that also catches codec bugs.

When a run goes red

A red row means the specification, catalogue and server disagree. Which one is wrong is decided before anything changes. Two reflexes are refused:

  1. “The catalogue must be wrong, the server is right.” An expectation traces to a citation, so only a better reading refutes it.
  2. “The server must be wrong, the instrument is right.” The instrument is what people trust, so it is suspected first. The first live triage attributed 7 of 7 diagnosed defects to the instrument, none to the server.
SuspectWhat it meansWhat happens
The server under testit violates the released specificationthe attribution, with the reproduced exchange and the decisive sentence quoted; the catalogue does not change
The instrumentthe server was correct; the runner misdrove or misjudgedthe runner is fixed; the rows were inconclusive, never server failures
The cataloguethe expectation is wrong against the specificationthe artifact is fixed, with a new cited source

Per row: read what was sent and received, read what the workflow expects and why, derive first-hand what a conformant server must return, and compare. A transport fault or an unresolvable step is inconclusive, never a server failure.

Warning

A catalogue expectation is never adjusted to match observed server behaviour. A server response is evidence in the comparison, never the reference.

Where the specification does not say

Where the released text is silent or two documents disagree, no workflow asserts the behaviour. It becomes one of:

  • An upstream report: an upstream-report issue here with the released text, a proposed patch and the resolution sought. A citation resting on that text names it in report:.
  • An option: where the release leaves the choice to the implementation (such as serving canonical XML), both answers are conformant. capabilities.yaml names the option, its arms and the sentence leaving it open; the statement picks an arm, and only that arm’s workflows run.

And:

  • A silence has to be proven: a claimed silence the specification defines is a catalogue defect, and its workflow becomes gating.
  • Nothing is absorbed: every carried divergence has an outbound report, and CI refuses a report: naming no upstream-report issue.
  • A private resolution is non-conformant: a harness deciding a silence for itself is not implementing this catalogue.

Verdicts are computed, never asserted

A verdict is a pure function of the statement (claimed capabilities, selected arms), the IXIT, the catalogue and the recorded exchanges. Two independent runners must compute identical verdicts from them, which the verification pack checks. A hand-typed certificate row is a defect. Recording and judging are separate, so anyone holding the files can re-derive the documents.

Two machineries share this (docs/ARCHITECTURE.md §8):

  • Conformance by assertion: the statement selects documents, criteria judge each exchange, and each row ends passed, failed, errored or skipped. A skip names its reason (not-claimed, option-not-selected, not-declared) so a thin claim shows. A red row carries what was checked, why, expected and received.
  • Measured performance: a declared clinical workload climbs a load ladder to the knee, and every number is re-derived from the record’s embedded HDR histograms, so a stored summary is tamper-checked. It earns no class and enters no conformance verdict. Servers are compared interleaved on one host: an A/A run of one target against itself sets the noise floor, and an A/B difference counts only above it.

Load is open-loop: seeded Poisson arrivals at planned instants, latency measured from the planned instant, so coordinated omission cannot hide a stall.

The knee is read against population: about 46 clinical documents per person per year, a busy hour about eight times the average, and 10 to 50 reads per write give 13 to 75 peak API arrivals per second per 100,000 people (derivation from OECD, Eurostat and NHS statistics in docs/ARCHITECTURE.md §8.14). The corpus scale is a size, never a pass or fail:

ScaleCorpus
POC10,000 EHRs
S100,000 EHRs
L1,000,000 EHRs
R10,000,000 EHRs

Coverage is a mandate

A gate enumerates the released operations, response branches and negotiation headers from the released ITS-REST OpenAPI documents, and fails on any without a covering step or a recorded gap naming its tracker issue. Cases are added, never removed to make a run go green.

Procurement

For a tendering authority requiring openEHR conformance in a call for tenders: a clause to paste, its five parameters, and the equivalence duty that comes with naming any conformance scheme. The clause comes from the design record (docs/ARCHITECTURE.md §10).

The clause

The offered product must demonstrate openEHR conformance to [CNF schedule release ≥ R, capabilities C and option arms O, technology profile including canonical JSON], evidenced by a published openEHR Conformance Statement at attestation rung ≥ 1 for the product version offered, or by equivalent means of proof (including a manufacturer’s technical dossier or an equivalent conformance report) demonstrating conformity to the same test cases. The awarding authority will accept any evidence that objectively establishes equivalent conformance, and reserves the right to require a witnessed re-run (rung 2) of the published or submitted results prior to acceptance.

The five parameters

Each maps to a field of the vendor’s statement (schemas/statement.schema.json), so a submission can be checked field by field.

ParameterWhat you chooseWhere the vendor answers it
R, the releasethe catalogue release to judge against, and the openEHR specification versions you requireschedule_release, and spec_versions (for example "its_rest": "1.1.0")
C, the capabilitiesthe parts of the REST API the product must cover, by folder under catalogue/cases/: ehr, ehr_status, composition, contribution, directory, query, definition, demographic and the othersclaims.capabilities
O, the option armsfor each option in catalogue/capabilities.yaml that matters to you, the arm you need; for example composition-xml-supported for canonical XMLoptions
The technology profilethe ITS and wire formats the product must serve; canonical JSON at the leasttech_profiles, for example its-rest with canonical-json
The runghow much independent checking stands behind the claimthe attestation the vendor supplies

The rungs (docs/ARCHITECTURE.md §9):

RungNameWhat stands behind the claim
0Published statementthe vendor publishes its statement and results itself
1Self-declaredrung 0 plus a signed declaration of conformity by an authorised officer, under ISO/IEC 17050-1
2Community-verifieda named witness reproduces the results by re-running the instrument against the vendor’s deployment
3Certifiedan accredited laboratory runs the instrument and an accredited body certifies; not offered until surveillance is funded

Only a result whose specification member reads released counts toward a released claim (the method). Ask for the statement and the results.json it was run with, and check them with veredictum validate --statement and veredictum show (Command reference). No certificate is issued before the openEHR SEC approves the instrument, and every 0.x result is marked pre-approval.

An example requirement

For a hospital that needs EHRs, compositions, contributions, folders, templates and AQL over canonical JSON, and no XML:

The offered product must demonstrate openEHR conformance to the Veredictum catalogue release named in its statement, judged against the released openEHR specifications with openEHR REST API 1.1.0, capabilities ehr, ehr_status, composition, contribution, directory, definition and query, and a technology profile its-rest including canonical-json, evidenced by a published openEHR Conformance Statement at attestation rung ≥ 0 for the product version offered, together with the results.json of the run behind it, or by equivalent means of proof (including a manufacturer’s technical dossier or an equivalent conformance report) demonstrating conformity to the same test cases. The awarding authority will accept any evidence that objectively establishes equivalent conformance, and reserves the right to require a witnessed re-run (rung 2) of the published or submitted results prior to acceptance.

It names no option arm, so either answer to every option is acceptable. To require XML, add composition-xml-supported and the other *-xml-supported arms you need. It asks for rung 0, which is what a vendor can supply today; raise it once higher rungs are operated.

The equivalence duty

An authority bound by Directive 2014/24/EU on public procurement must keep “or by equivalent means of proof”. Naming one scheme’s statement or certificate as the only acceptable proof is open to challenge as discriminatory:

  • Technical specifications (Article 42(3)(b)): a specification set by reference to a standard or technical reference system “shall be accompanied by the words ‘or equivalent’”.
  • Labels (Article 43(1)): “Contracting authorities requiring a specific label shall accept all labels that confirm that the works, supplies or services meet equivalent label requirements.” Where an operator demonstrably could not obtain the label in time for reasons not its own, the authority “shall accept other appropriate means of proof, which may include a technical dossier from the manufacturer”.
  • Test reports and certificates (Article 44): certificates from “equivalent other conformity assessment bodies shall also be accepted”, and the authority “shall accept other appropriate means of proof than those referred to in paragraph 1, such as a technical dossier of the manufacturer” where the operator had no access to them.

The requirement stays objective: the instrument, catalogue and schemas are public and free under Apache-2.0, so any vendor can produce the evidence and any authority can check it, and the witnessed re-run tests a doubtful submission.

The Directive is quoted from https://www.legislation.gov.uk/eudr/2014/24/contents as it stood on 31 December 2020; the authoritative version is on EUR-Lex (https://eur-lex.europa.eu/eli/dir/2014/24/oj). This page is not legal advice: check the clause with your procurement counsel against the national law that transposes the Directive.

Comparing submissions

Statements and results have published schemas, so two submissions compare field by field: capability, option and chapter. The instrument publishes no comparison and keeps no registry (docs/ARCHITECTURE.md §15.10). Reading a result explains each row for the decision.

Performance workloads

Generated by veredictum perf-workloads from the pinned workload documents; do not edit by hand. No openEHR specification governs measured performance: the shares are our own derivation.

aql-mix v1 (Provisional)

Query speed over one population, one set of percentiles per query class rather than one blended query number: the indexed point lookup, the single-EHR scan, the value filter, the cross-EHR population filter, the population COUNT, and the ordered page a paged interface reads.

  • File: aql-mix.yaml (sha256 122d18faa1f183fa8ffc5c5e6e0821c334a063a72bd0c500023d6b164dc6cba1)
  • Seed: 4706627057783240704; arrivals: Poisson; samples per plateau: 5000
  • Corpus: POC (50 EHRs), 20 compositions per EHR
  • Planned run after seeding: 255 to 590 s (limit 600 s)
  • Reads per write: reads only; operations per interaction: 1.00
  • Reproduces: The aql-mix bench pack, version 1.1.0: 50 EHRs each holding the community harness’s Vital signs composition 20 times, seeded on 8 workers, and six AQL classes offered open-loop at equal shares. Its mix is the harness’s, so the population read band does not gate it.

Interactions of aql-mix

InteractionShareStagesSource
aql_aggregate16.6666%aql:aql_aggregateThe pack’s aggregate class, at an equal sixth.
aql_ehr_scan16.6667%aql:aql_ehr_scanThe pack’s EHR-scan class, at an equal sixth.
aql_filtered16.6667%aql:aql_filteredThe pack’s filtered class, at an equal sixth.
aql_ordered_page16.6666%aql:aql_ordered_pageThe pack’s ordered-page class, at an equal sixth.
aql_point_lookup16.6667%aql:aql_point_lookupThe pack’s point-lookup class, at the equal share it gives each of six.
aql_population16.6667%aql:aql_populationThe pack’s population class, at an equal sixth.

Operations of aql-mix

OperationShare of operationsKindReleased operation
aql:aql_aggregate16.67%readquery_execute_adhoc_query_body (POST /query/aql)
aql:aql_ehr_scan16.67%readquery_execute_adhoc_query_body (POST /query/aql)
aql:aql_filtered16.67%readquery_execute_adhoc_query_body (POST /query/aql)
aql:aql_ordered_page16.67%readquery_execute_adhoc_query_body (POST /query/aql)
aql:aql_point_lookup16.67%readquery_execute_adhoc_query_body (POST /query/aql); query_execute_adhoc_query (GET /query/aql)
aql:aql_population16.67%readquery_execute_adhoc_query_body (POST /query/aql)

Queries of aql-mix

QueryShare of operationsScopeTransportSource
aql_aggregate16.67%Populationadhoc_post 100%The aql-mix bench pack’s aggregate class, one row that reads every value behind it.
aql_ehr_scan16.67%SingleSubjectadhoc_post 100%The aql-mix bench pack’s EHR-scan class, whose cost follows how much the EHR holds.
aql_filtered16.67%SingleSubjectadhoc_post 100%The aql-mix bench pack’s filtered class, the value index with a drawn threshold.
aql_ordered_page16.67%Populationadhoc_post 100%The aql-mix bench pack’s ordered-page class, the shape a paged user interface issues (QUERY AQL master03-syntax.adoc §ORDER BY).
aql_point_lookup16.67%SingleSubjectadhoc_post 50%, adhoc_get 50%The aql-mix bench pack’s point-lookup class, the indexed-read floor.
aql_population16.67%Populationadhoc_post 100%The aql-mix bench pack’s population class, the cross-EHR planner.

Payloads of aql-mix

PayloadBytesSource
community.vital_signs223110openEHR CKM cid 1013.26.380 (Vital signs), the operational template the openEHR community’s vital-signs benchmark harness uploads (https://discourse.openehr.org/t/17224); the CKM export vendored verbatim, pinned at the digest the community-vitals bench pack pinned
community.vital_signs.example22637the composition attached to post 8 of the openEHR community’s vital-signs benchmark thread (https://discourse.openehr.org/t/17224), vendored byte-identically: eight OBSERVATION entries under openEHR-EHR-COMPOSITION.encounter.v1, rm_version 1.0.2, template id ‘Vital signs’

clinical-mix v2 (Provisional)

A hospital front end at its busy hour: clinicians opening charts (a partly-open session of subject lookup, summary query, document reads and an observation trend), ward boards and problem lists polling AQL, the monitoring, order, result and correction writes of ward work, and the definition, folder, tag, demographic and bootstrap traffic around them. Carried over from the 24 class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892) without their minute-scale offsets. Provisional, for SEC ratification.

  • File: clinical-mix.yaml (sha256 451becd97b546915f35ef74eb7b40c39c80931b0d53d9e29e44e1a686ed4f517)
  • Seed: 20261030; arrivals: Poisson; samples per plateau: 5000
  • Corpus: S (100000 EHRs), 10 compositions per EHR
  • Planned run after seeding: 263 to 598 s (limit 600 s)
  • Reads per write: 14.79:1; operations per interaction: 2.95

Interactions of clinical-mix

InteractionShareStagesSource
admission0.8%ehr_createFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): admission (0.8%), its EHR create: 0.128 inpatient discharges per capita per year (OECD Health at a Glance 2023).
admission_summary0.5%composition_commitFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): admission and discharge (0.8% each), their summary commit: 0.128 inpatient discharges per capita per year at about 10 documents per stay (OECD Health at a Glance 2023).
aql_aggregate1%aql:aql_aggregateThe aql-mix bench pack’s aggregate class, at an equal sixth of 6%.
aql_ehr_scan1%aql:aql_ehr_scanThe aql-mix bench pack’s EHR-scan class, at an equal sixth of 6%.
aql_filtered1%aql:aql_filteredThe aql-mix bench pack’s filtered class, at an equal sixth of 6%.
aql_ordered_page1%aql:aql_ordered_pageThe aql-mix bench pack’s ordered-page class, at an equal sixth of 6%.
aql_point_lookup1%aql:aql_point_lookupThe aql-mix bench pack’s point-lookup class, at the equal share that pack gives each of its six classes, scaled to 6% of interactions in all.
aql_population1%aql:aql_populationThe aql-mix bench pack’s population class, at an equal sixth of 6%.
case_investigation0.2%composition_commitFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): case_investigation (0.3%), the rare structured-form write.
chart_review48.8%ehr_read_by_subject, aql:patient_summary, composition_read, composition_read_current, aql:observation_trendFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): chart_review (52.6% of journey arrivals in the class cases), reshaped into a session: ~597 EHR interactions per inpatient encounter, overwhelmingly reads (Rule, Chiang and Hribar, JAMIA 2020; PMC10148376). The share is what remains after every other interaction, so it rests on derivation.
cohort_count1%aql:cohort_countFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): analytics_review (1.5%), its population analytic read (PMC10148376: the read bulk includes analytic access).
confirmed_case_report0.2%composition_commitFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): public_health_notification (0.3%), its confirmation stage.
contribution_read1.5%contribution_readFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): audit_review (4%) and registry_submission, their contribution reads.
correction2%composition_updateFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): correction (3%): about one amendment event per patient-day (PMC10148376), its update stage.
deletion0.3%composition_deleteFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): deletion (0.3%): logical deletes are rare governance events (RM common change_control, the deleted lifecycle state).
directory_read1%directory_readFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): discharge and chart_review, their directory reads.
directory_update0.4%directory_updateFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): discharge (0.8%), its directory update, held at half.
ehr_read1.5%ehr_readFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): audit_review (4%), its EHR read.
flat_commit0.5%composition_commit_flatFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): simplified_formats_exchange (0.5%): the declared FLAT share of composition commits, run only where Simplified Formats are claimed; the remaining commits are canonical JSON.
imaging_report0.5%composition_commitFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): imaging_pipeline (1%), its report stage (NHS DID 2023/24: 0.82 imaging tests per capita per year).
lab_order1%composition_commitFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): lab_pipeline (1.5%) and imaging_pipeline (1%), their order stage: 15 laboratory results per capita per year (RCPath) and 0.82 imaging tests per capita per year (NHS DID 2023/24).
lab_result1.5%contribution_commitFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): lab_pipeline (1.5%), its result stage (RCPath pathology activity).
medication_order1.5%composition_commitFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): medication_round (1.5%): 21.8 prescription items per capita per year (NHS BSA Prescription Cost Analysis 2024/25).
medicines_reconciliation1%composition_updateFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): medicines_reconciliation (1.5%): reconciliation on admission and transfer (NICE NG5), its update stage.
party_create0.2%party_createFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): demographic_admission (0.4%), its registration: a person is registered once and admitted repeatedly.
party_read0.2%party_readFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): demographic_admission (0.4%), its read.
party_update0.1%party_updateFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): demographic_admission (0.4%), its update, held at half.
problem_list4%aql:problem_listFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): ward_dashboard (12%), its stored-query half, as the per-patient list a ward front end shows beside the board.
problem_list_terminology0.5%aql:problem_list_terminologyFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): analytics_review (1.5%), its terminology-expanded filter, held at a third of that journey’s share because it runs only where the aql-terminology option arm is claimed.
public_health_notification0.2%composition_commitFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): public_health_notification (0.3%), its notification stage (UKHSA notifiable diseases reporting duty).
registry_submission0.5%contribution_commitFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): registry_submission (1.5%), its commit stage; its contribution read is part of audit_review here.
revision_history2%composition_revision_historyFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): correction, specialist_report and signature_review, their revision-history stages.
specialist_report0.5%composition_commitFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): specialist_report (1.5%), its commit stage (RCPA cancer reporting protocols), held at a third because its revision history read is its own interaction here.
status_read0.8%ehr_status_readFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): admission and discharge (0.8% each), their status reads.
status_update0.8%ehr_status_updateFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): admission and discharge (0.8% each), their status updates.
system_options0.5%system_optionsFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): platform_probe (0.5%): every integration client reads the service options before its first clinical call.
tags_put1%tags_putFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): tagging (2%), its write half.
tags_read1%tags_readFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): tagging (2%), its read half.
template_adl2_list0.75%template_adl2_listFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): integration_poll (4%), a quarter.
template_example0.75%template_exampleFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): integration_poll (4%), a quarter.
template_get0.75%template_getFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): integration_poll (4%), a quarter.
template_list0.75%template_listFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): integration_poll (4%), a quarter each to its four released reads.
version_read1.5%composition_version_readFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): signature_review (2%), its version read (RM common change_control, the version signature’s carrier).
vitals_round5%composition_commitFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): vitals_round (6%): ward observation cadence of 4 to 6 observation sets per patient-day (RCP NEWS2 monitoring guidance), held slightly below the journey share so the expanded mix stays read-heavy.
ward_board8%aql:ward_boardFrom the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): ward_dashboard (12%), its cross-EHR worklist query; busy-hour polling per the ITU-T E.500 convention the population model’s peak factor cites.

Operations of clinical-mix

OperationShare of operationsKindReleased operation
aql:aql_aggregate0.34%readquery_execute_adhoc_query_body (POST /query/aql)
aql:aql_ehr_scan0.34%readquery_execute_adhoc_query_body (POST /query/aql)
aql:aql_filtered0.34%readquery_execute_adhoc_query_body (POST /query/aql)
aql:aql_ordered_page0.34%readquery_execute_adhoc_query_body (POST /query/aql)
aql:aql_point_lookup0.34%readquery_execute_adhoc_query_body (POST /query/aql); query_execute_adhoc_query (GET /query/aql)
aql:aql_population0.34%readquery_execute_adhoc_query_body (POST /query/aql)
aql:cohort_count0.34%readquery_execute_adhoc_query_body (POST /query/aql)
aql:observation_trend16.53%readquery_execute_adhoc_query_body (POST /query/aql); query_execute_stored_query (GET /query/{qualified_query_name}); query_execute_stored_query_body (POST /query/{qualified_query_name})
aql:patient_summary16.53%readquery_execute_adhoc_query_body (POST /query/aql); query_execute_stored_query (GET /query/{qualified_query_name}); query_execute_stored_query_body (POST /query/{qualified_query_name})
aql:problem_list1.36%readquery_execute_adhoc_query_body (POST /query/aql); query_execute_stored_query (GET /query/{qualified_query_name})
aql:problem_list_terminology0.17%readquery_execute_adhoc_query_body (POST /query/aql)
aql:ward_board2.71%readquery_execute_stored_query (GET /query/{qualified_query_name}); query_execute_stored_query_body (POST /query/{qualified_query_name})
composition_commit3.25%writecomposition_create (POST /ehr/{ehr_id}/composition)
composition_commit_flat0.17%writecomposition_create (POST /ehr/{ehr_id}/composition)
composition_delete0.10%writecomposition_delete (DELETE /ehr/{ehr_id}/composition/{uid_based_id})
composition_read16.53%readcomposition_get (GET /ehr/{ehr_id}/composition/{uid_based_id})
composition_read_current16.53%readcomposition_get (GET /ehr/{ehr_id}/composition/{uid_based_id})
composition_revision_history0.68%readversioned_composition_revision_history (GET /ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/revision_history)
composition_update1.02%writecomposition_update (PUT /ehr/{ehr_id}/composition/{uid_based_id})
composition_version_read0.51%readversioned_composition_version_get_by_id (GET /ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/version/{version_uid})
contribution_commit0.68%writecontribution_create (POST /ehr/{ehr_id}/contribution)
contribution_read0.51%readcontribution_get (GET /ehr/{ehr_id}/contribution/{contribution_uid})
directory_read0.34%readdirectory_get_at_time (GET /ehr/{ehr_id}/directory)
directory_update0.14%writedirectory_update (PUT /ehr/{ehr_id}/directory)
ehr_create0.27%writeehr_create (POST /ehr)
ehr_read0.51%readehr_get_by_id (GET /ehr/{ehr_id})
ehr_read_by_subject16.53%readehr_get_by_subject (GET /ehr)
ehr_status_read0.27%readehr_status_get_at_time (GET /ehr/{ehr_id}/ehr_status)
ehr_status_update0.27%writeehr_status_update (PUT /ehr/{ehr_id}/ehr_status)
party_create0.07%writeperson_create (POST /demographic/person)
party_read0.07%readperson_get (GET /demographic/person/{uid_based_id})
party_update0.03%writeperson_update (PUT /demographic/person/{uid_based_id})
system_options0.17%readoptions (OPTIONS /)
tags_put0.34%writecomposition_tags_update (PUT /ehr/{ehr_id}/composition/{uid_based_id}/tags)
tags_read0.34%readcomposition_tags_get (GET /ehr/{ehr_id}/composition/{uid_based_id}/tags)
template_adl2_list0.25%readdefinition_template_adl2_list (GET /definition/template/adl2)
template_example0.25%readdefinition_template_adl1.4_example_get (GET /definition/template/adl1.4/{template_id}/example)
template_get0.25%readdefinition_template_adl1.4_get (GET /definition/template/adl1.4/{template_id})
template_list0.25%readdefinition_template_adl1.4_list (GET /definition/template/adl1.4)

Queries of clinical-mix

QueryShare of operationsScopeTransportSource
aql_aggregate0.34%Populationadhoc_post 100%The aql-mix bench pack’s aggregate class, one row that reads every value behind it.
aql_ehr_scan0.34%SingleSubjectadhoc_post 100%The aql-mix bench pack’s EHR-scan class, whose cost follows how much the EHR holds.
aql_filtered0.34%SingleSubjectadhoc_post 100%The aql-mix bench pack’s filtered class, the value index with a drawn threshold.
aql_ordered_page0.34%Populationadhoc_post 100%The aql-mix bench pack’s ordered-page class, the shape a paged user interface issues (QUERY AQL master03-syntax.adoc §ORDER BY).
aql_point_lookup0.34%SingleSubjectadhoc_post 50%, adhoc_get 50%The aql-mix bench pack’s point-lookup class, the indexed-read floor.
aql_population0.34%Populationadhoc_post 100%The aql-mix bench pack’s population class, the cross-EHR planner.
cohort_count0.34%Populationadhoc_post 100%QUERY AQL master03-syntax.adoc §COUNT (“COUNT([DISTINCT] expression|*)”) over the population, the cohort question a service-line dashboard asks.
observation_trend16.53%SingleSubjectadhoc_post 50%, stored_get 25%, stored_post 25%QUERY AQL_examples master04-single_subject.adoc, the latest blood pressure values of one patient, over the blood_pressure.v2 archetype the vital-signs template carries.
patient_summary16.53%SingleSubjectadhoc_post 50%, stored_get 25%, stored_post 25%The summary list a chart opens on; the ordered, limited shape of QUERY AQL master03-syntax.adoc §LIMIT. The transport split follows ITS-REST docs/query/Request.md §GET vs POST, which recommends POST for long queries, with the stored half of a front end’s registered queries.
problem_list1.36%SingleSubjectadhoc_post 50%, stored_get 50%The problem list a front end shows, over the problem_diagnosis.v1 archetype the IPS and GP data set templates carry.
problem_list_terminology0.17%SingleSubjectadhoc_post 100%QUERY AQL master03-syntax.adoc §TERMINOLOGY and AQL_examples master03-syntax-function.adoc §TERMINOLOGY Example 1 (expand a value set); the release leaves the terminology server to the implementation, which catalogue/capabilities.yaml records as the aql-terminology option.
ward_board2.71%Populationstored_get 50%, stored_post 50%From the class-run journeys of perf/journeys.yaml at commit 20864091 (removed in #892): ward_dashboard, the registered stored query a dashboard polls; a list of EHRs is a multi-patient query, so it carries no EHR scope (ITS-REST docs/query/Request.md §About the ehr_id parameter).

Payloads of clinical-mix

PayloadBytesSource
cnf.ckm.breast_cancer_report502491openEHR CKM cid 1013.26.199 (British Columbia Cancer agency Breast Cancer Synoptic Report, status INITIAL, modified 2018-11-12T12:27:58+01:00) — CKM’s own OPT 1.4 export vendored verbatim by scripts/vendor/ckm-templates.sh 2026-07-22; journey role: specialist_report (cancer synoptic report)
cnf.ckm.breast_cancer_report.example71223example skeleton generated once from the SUT example endpoint (detail_level=medium) by scripts/generate-ckm-examples.sh 2026-07-22 and committed byte-identical — the deterministic payload ground every SUT receives at measurement time
cnf.ckm.ccta_report1949739openEHR CKM cid 1013.26.386 (CCTA report, status INITIAL, modified 2021-08-02T07:29:55+02:00) — CKM’s own OPT 1.4 export vendored verbatim by scripts/vendor/ckm-templates.sh 2026-07-22; journey role: imaging_pipeline (report)
cnf.ckm.ccta_report.example256558example skeleton generated once from the SUT example endpoint (detail_level=medium) by scripts/generate-ckm-examples.sh 2026-07-22 and committed byte-identical — the deterministic payload ground every SUT receives at measurement time
cnf.ckm.covid19_report779262openEHR CKM cid 1013.26.282 (openEHR confirmed COVID-19 infection report.v0, status DRAFT, modified 2020-08-07T07:19:11+02:00) — CKM’s own OPT 1.4 export vendored verbatim by scripts/vendor/ckm-templates.sh 2026-07-22; journey role: public_health_notification (confirmed-case follow-up)
cnf.ckm.covid19_report.example86966example skeleton generated once from the SUT example endpoint (detail_level=medium) by scripts/generate-ckm-examples.sh 2026-07-22 and committed byte-identical — the deterministic payload ground every SUT receives at measurement time
cnf.ckm.eprescription361431openEHR CKM cid 1013.26.80 (ePrescription (FHIR), status DRAFT, modified 2016-05-23T23:01:02+02:00) — CKM’s own OPT 1.4 export vendored verbatim by scripts/vendor/ckm-templates.sh 2026-07-22; journey role: medication_round (order + administrations)
cnf.ckm.eprescription.example38252example skeleton generated once from the SUT example endpoint (detail_level=medium) by scripts/generate-ckm-examples.sh 2026-07-22 and committed byte-identical — the deterministic payload ground every SUT receives at measurement time
cnf.ckm.ereferral699972openEHR CKM cid 1013.26.2 (eReferral, status DRAFT, modified 2010-03-25T07:26:15+01:00) — CKM’s own OPT 1.4 export vendored verbatim by scripts/vendor/ckm-templates.sh 2026-07-22; journey role: lab_pipeline / imaging_pipeline (order)
cnf.ckm.ereferral.example96293example skeleton generated once from the SUT example endpoint (detail_level=medium) by scripts/generate-ckm-examples.sh 2026-07-22 and committed byte-identical — the deterministic payload ground every SUT receives at measurement time
cnf.ckm.gp_data_set459031openEHR CKM cid 1013.26.191 (GP data set, status INITIAL, modified 2018-10-15T02:11:04+02:00) — CKM’s own OPT 1.4 export vendored verbatim by scripts/vendor/ckm-templates.sh 2026-07-22; journey role: correction target (ward-seeded, amended)
cnf.ckm.gp_data_set.example34888example skeleton generated once from the SUT example endpoint (detail_level=medium) by scripts/generate-ckm-examples.sh 2026-07-22 and committed byte-identical — the deterministic payload ground every SUT receives at measurement time
cnf.ckm.ips1924324openEHR CKM cid 1013.26.376 (International Patient Summary, status DRAFT, modified 2020-08-18T04:28:14+02:00) — CKM’s own OPT 1.4 export vendored verbatim by scripts/vendor/ckm-templates.sh 2026-07-22; journey role: admission / discharge summary
cnf.ckm.ips.example201558example skeleton generated once from the SUT example endpoint (detail_level=medium) by scripts/generate-ckm-examples.sh 2026-07-22 and committed byte-identical — the deterministic payload ground every SUT receives at measurement time
cnf.ckm.lab_result74104openEHR CKM cid 1013.26.408 (Generic lab test result example simple, status DRAFT, modified 2021-10-18T11:28:46+02:00) — CKM’s own OPT 1.4 export vendored verbatim by scripts/vendor/ckm-templates.sh 2026-07-22; journey role: lab_pipeline (result contribution)
cnf.ckm.lab_result.example5452example skeleton generated once from the SUT example endpoint (detail_level=medium) by scripts/generate-ckm-examples.sh 2026-07-22 and committed byte-identical — the deterministic payload ground every SUT receives at measurement time
cnf.ckm.medicines_list10714openEHR CKM cid 1013.26.357 (Medicines list item R1, status INITIAL, modified 2020-07-22T09:13:37+02:00) — CKM’s own OPT 1.4 export vendored verbatim by scripts/vendor/ckm-templates.sh 2026-07-22; journey role: medicines_reconciliation (ward-seeded, updated)
cnf.ckm.medicines_list.example1570example skeleton generated once from the SUT example endpoint (detail_level=medium) by scripts/generate-ckm-examples.sh 2026-07-22 and committed byte-identical — the deterministic payload ground every SUT receives at measurement time
cnf.ckm.poisoning_investigation2729651openEHR CKM cid 1013.26.988 (Accidental poisoning case investigation form, status INITIAL, modified 2024-12-30T03:35:42+01:00) — CKM’s own OPT 1.4 export vendored verbatim by scripts/vendor/ckm-templates.sh 2026-07-22; journey role: case_investigation
cnf.ckm.poisoning_investigation.example257482example skeleton generated once from the SUT example endpoint (detail_level=medium) by scripts/generate-ckm-examples.sh 2026-07-22 and committed byte-identical — the deterministic payload ground every SUT receives at measurement time
cnf.ckm.problem_list10862openEHR CKM cid 1013.26.360 (Problem/Diagnosis list item R1, status INITIAL, modified 2020-07-22T09:15:48+02:00) — CKM’s own OPT 1.4 export vendored verbatim by scripts/vendor/ckm-templates.sh 2026-07-22; journey role: admission (problem list)
cnf.ckm.problem_list.example1580example skeleton generated once from the SUT example endpoint (detail_level=medium) by scripts/generate-ckm-examples.sh 2026-07-22 and committed byte-identical — the deterministic payload ground every SUT receives at measurement time
cnf.ckm.sars_notification1391422openEHR CKM cid 1013.26.377 (SARS event notification, status DRAFT, modified 2020-10-13T06:36:16+02:00) — CKM’s own OPT 1.4 export vendored verbatim by scripts/vendor/ckm-templates.sh 2026-07-22; journey role: public_health_notification (statutory notification)
cnf.ckm.sars_notification.example136244example skeleton generated once from the SUT example endpoint (detail_level=medium) by scripts/generate-ckm-examples.sh 2026-07-22 and committed byte-identical — the deterministic payload ground every SUT receives at measurement time
cnf.ckm.treat_registry_report1842607openEHR CKM cid 1013.26.40 (TREAT Registry report, status DRAFT, modified 2015-02-18T21:32:34+01:00) — CKM’s own OPT 1.4 export vendored verbatim by scripts/vendor/ckm-templates.sh 2026-07-22; journey role: registry_submission (registry export)
cnf.ckm.treat_registry_report.example209072example skeleton generated once from the SUT example endpoint (detail_level=medium) by scripts/generate-ckm-examples.sh 2026-07-22 and committed byte-identical — the deterministic payload ground every SUT receives at measurement time
cnf.ckm.vital_signs223110openEHR CKM cid 1013.26.380 (Vital signs, status DRAFT, modified 2021-03-08T13:30:44+01:00) — CKM’s own OPT 1.4 export vendored verbatim by scripts/vendor/ckm-templates.sh 2026-07-22; journey role: vitals_round (full observation round)
cnf.ckm.vital_signs.example19872example skeleton generated once from the SUT example endpoint (detail_level=medium) by scripts/generate-ckm-examples.sh 2026-07-22 and committed byte-identical — the deterministic payload ground every SUT receives at measurement time
cnf.demographic.person.v11063authored 2026-07-21 from the RM demographic class model (§PERSON; §PARTY Identities_valid: identities non-empty) — first content state
cnf.demographic.person.v21073authored 2026-07-21 from the RM demographic class model (§PERSON; §PARTY Identities_valid) — updated content state (amended identity value)
cnf.flat.vitals.minimal_ctx1003openEHR CNF Robot corpus (vendored specs/openehr/CNF/tests/platform/robot @ the CNF pin); re-adjudicated 2026-07-21 to spec-text-only evidence

community-vitals v1 (Provisional)

The community harness’s population and read walk, labelled closed-loop as the harness runs them, followed by the same seven reads at equal shares as Poisson arrivals on the load ladder, which is where latency is measured from the instant each read was due. Carried over from the community-vitals bench pack, version 1.1.0.

  • File: community-vitals.yaml (sha256 482fac30fbe1a75270b427074860e9fdc6014de8e68deeda4308752002396fad)
  • Seed: 4859222839474415988; arrivals: Poisson; samples per plateau: 5000
  • Corpus: POC (100 EHRs), 1000 compositions per EHR
  • Planned run after seeding: 255 to 590 s (limit 600 s)
  • Reads per write: reads only; operations per interaction: 1.00
  • Reproduces: The openEHR community’s vital-signs benchmark harness (https://discourse.openehr.org/t/17224): 100 EHRs, the Vital signs composition of post 8 committed 1,000 times into each on one worker, then a sequential walk of seven reads over every committed composition. Its mix is the harness’s, so the population read band does not gate it.

Interactions of community-vitals

InteractionShareStagesSource
read_at_time14.2857%composition_read_at_timeThe harness’s second read, at an equal seventh.
read_latest14.2858%composition_read_currentThe harness’s first read, at the equal share its walk gives each of seven.
read_revision_history14.2857%composition_revision_historyThe harness’s seventh read, at an equal seventh.
read_version_at_time14.2857%composition_version_read_at_timeThe harness’s fifth read, at an equal seventh.
read_version_by_id14.2857%composition_version_readThe harness’s sixth read, at an equal seventh.
read_version_latest14.2857%composition_version_read_latestThe harness’s fourth read, at an equal seventh.
read_versioned14.2857%versioned_composition_readThe harness’s third read, at an equal seventh.

Operations of community-vitals

OperationShare of operationsKindReleased operation
composition_read_at_time14.29%readcomposition_get (GET /ehr/{ehr_id}/composition/{uid_based_id})
composition_read_current14.29%readcomposition_get (GET /ehr/{ehr_id}/composition/{uid_based_id})
composition_revision_history14.29%readversioned_composition_revision_history (GET /ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/revision_history)
composition_version_read14.29%readversioned_composition_version_get_by_id (GET /ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/version/{version_uid})
composition_version_read_at_time14.29%readversioned_composition_version_get_at_time (GET /ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/version)
composition_version_read_latest14.29%readversioned_composition_version_get_at_time (GET /ehr/{ehr_id}/versioned_composition/{versioned_object_uid}/version)
versioned_composition_read14.29%readversioned_composition_get (GET /ehr/{ehr_id}/versioned_composition/{versioned_object_uid})

Queries of community-vitals

QueryShare of operationsScopeTransportSource

Payloads of community-vitals

PayloadBytesSource
community.vital_signs223110openEHR CKM cid 1013.26.380 (Vital signs), the operational template the openEHR community’s vital-signs benchmark harness uploads (https://discourse.openehr.org/t/17224); the CKM export vendored verbatim, pinned at the digest the community-vitals bench pack pinned
community.vital_signs.example22637the composition attached to post 8 of the openEHR community’s vital-signs benchmark thread (https://discourse.openehr.org/t/17224), vendored byte-identically: eight OBSERVATION entries under openEHR-EHR-COMPOSITION.encounter.v1, rm_version 1.0.2, template id ‘Vital signs’

Authoring the catalogue

The catalogue is data in Arazzo 1.1.0: you can read, diff and extend it without touching the runner, and any Arazzo tool reads it. A case is a workflow whose steps call operations of the released openEHR REST API OpenAPI documents by operationId. The formats Veredictum adds are JSON Schemas in schemas/, emitted by veredictum emit-schemas and drift-tested. The full design is docs/ARCHITECTURE.md §15.

The layout

Everything lives under catalogue/.

PathWhat it holds
cases/<capability>/<topic>.arazzo.yamlThe workflows, one Arazzo document per topic. The folder is the capability a statement claims
cases/<capability>/<workflowId>.rows.yamlA data-driven workflow’s rows, beside its document
cases/_setup/Shared setups. A setup is not a case: it runs only where a case names it in dependsOn
capabilities.yamlThe options: behaviour the released text leaves to the implementation, each with the arms a statement picks from
sources/The routes no openEHR OpenAPI document describes, in one document of our own
keys/Test signing material: the OpenPGP pair a server signs VERSIONs with, and the SMART test issuer the runner mints tokens with. Public by design, never for real use
id-map.yamlEvery case id of the former case-core catalogue, mapped to the workflows that carry it

There are 15 capability folders: ehr, ehr_status, composition, content, contribution, directory, item_tags, query, definition, demographic, admin, security, simplified_formats, smart and system.

A workflow

One workflow, one behaviour. A case id is <document>/<workflowId>, for example ehr/create_ehr-same_ehr_twice-with_id, and is never reused.

  • Steps: call an operation by its qualified $sourceDescriptions.<name>.<operationId> with the parameters and body the behaviour needs, and name the outputs a later step reads.
  • dependsOn: the shared setups the workflow needs, such as an EHR to commit into. Nothing set up carries over between workflows.
  • successCriteria: the checks. Status codes and counts use simple, field values jsonpath or regex. xpath is refused until a vetted XPath engine judges it.
  • x-veredictum-cite: the citation, on a workflow, step or criterion: the vendored file, the section, and the sentence quoted verbatim. validate refuses a criterion with no resolving citation and a quote absent from the named file. The file may be a released ITS-JSON or ITS-XML schema; a JSON Pointer to a number, boolean or null in JSON or YAML is quoted as that value. Levels:
    • level: should for a recommending quote. A row failing only such criteria is a warning and never counts against a capability.
    • level: may for a quote that only permits.
    • A quote with a lower-case “should”, “can” or “may” and nothing that requires must state its level.
  • x-veredictum-check: a judge a plain condition cannot express: result_set (AQL result equality), equivalent (two RM documents equal apart from named server-assigned fields), signature, schema and json_type (the JSON type of a value).
  • x-veredictum-derive: takes part of a version identifier, such as the versioned object id out of a version uid, which no Arazzo expression can.

Rows files

A workflow with inputs runs once per row of its rows file. The expected outcome belongs to the workflow, so rows sharing an outcome share a workflow. A rows file may write cells in the decision-table literal grammar, build request bodies with a named recipe, bind an input to a value the party’s IXIT declares (declared), and state a property of the whole run (aggregate). A row whose declared value is missing is skipped as not-declared.

Options

Where the released text lets a server choose, such as serving canonical XML, both answers are conformant and neither may be asserted unconditionally. capabilities.yaml names each option, its arms, the documents testing each arm, and the sentence that leaves the choice open. A statement picks one arm per option; the other arms’ documents are skipped as option-not-selected.

The rules an author works under

  1. Cite the released specification. An expectation without a resolving citation is a finding. The Conformance component’s test schedule guides coverage, never the correct answer.
  2. One behaviour per workflow. If a failure could mean two defects, split.
  3. Add cases; never remove one to go green.
  4. Never fit an expectation to an observed response. Change it only with a new citation showing the old reading was wrong.
  5. Record a silence, never resolve it. No workflow asserts it: it becomes an upstream-report issue with a proposed patch, or an option where the release leaves the choice open. A private resolution makes a harness non-conformant.
  6. Keep the invalid twin. A shape a server is right to refuse stays as its own refusal workflow beside the accepting one, so a lenient server fails. Removing it narrows the claim without changing any visible count.

Checking your work

veredictum validate --root catalogue --specs specs/openehr

Zero findings is the only passing result; the gates are in the command reference. Run it before driving any server: it finds a catalogue defect in a second that a server run makes expensive to diagnose.

Glossary

Terms from ISO conformance testing (ICS, IXIT, SDoC) and the openEHR specifications (RM, AQL, the component names).

The parties and the claim

  • Party: the vendor whose product is graded and who makes the claim. Its ICS and IXIT travel with its submission; this repository commits neither.
  • ICS (Implementation Conformance Statement): the claim, statement.json: claimed capability folders and the arm of each option. It decides what a run selects.
  • ICS proforma: the blank form an ICS fills in: the folders under catalogue/cases/ and the options of catalogue/capabilities.yaml. ISO/IEC 9646-7 gives the support and supported-values columns to the supplier and every other cell to the test author, so the proforma is published here and the answers never are.
  • IXIT (Implementation eXtra Information for Testing): the deployment facts that drive the claim, ixit.json: values for declared inputs and, for a measured run, the environment. From ISO/IEC 9646.
  • SDoC (Supplier’s Declaration of Conformity): the statement’s self-declaration half, per ISO/IEC 17050: the supplier declares, the instrument checks.
  • SUT (System Under Test): the running server a campaign drives, always a CDR over its own REST wire.
  • CDR (Clinical Data Repository): a server storing and serving openEHR clinical data, such as EHRbase or FerroEHR.

The catalogue and the run

  • Catalogue: the machine-readable test schedule under catalogue/: Arazzo workflows over the released openEHR REST API OpenAPI documents, in capability folders, with options in capabilities.yaml. validate holds it to zero findings.
  • Case: one spec-cited behaviour as one Arazzo workflow, so a red row names one defect.
  • Case id: <document>/<workflowId>, such as ehr/create_ehr-same_ehr_twice-with_id. Stable.
  • Rows file: the rows a data-driven workflow runs once each, beside its document.
  • Option: a behaviour the release leaves to the implementation, with arms. A statement picks one arm; the others’ documents are skipped.
  • Recording: recording.har, every exchange of a run as HAR 1.2. A re-judgement answers from it and writes the same results.
  • Upstream report: an upstream-report issue here recording a silence or defect in the released text, with a proposed patch. No case asserts the silent behaviour.

The verdict

  • Row status: passed, failed, errored or skipped. A row passes when every criterion holds.
  • Errored: could not be judged (a transport fault, an unevaluable criterion). Never a server failure; a runner or catalogue defect until adjudicated.
  • Skipped: not run, with a printed reason such as not-claimed, option-not-selected or not-declared (all reasons).
  • Warning: a failed row whose failing criteria all quote a SHOULD. Never counted against a capability.
  • Capability: a folder under catalogue/cases/, the unit a statement claims.

Measured performance

  • Workload: a versioned document under perf/workloads/: corpus recipe, interactions with shares, AQL query classes. Labelled custom when it matches no pinned digest.
  • Open loop: arrivals fire at planned instants regardless of the server, latency counts from the planned instant, so a stall shows as latency. Seeding and a reproduced harness’s read walk are closed loop, and labelled so.
  • Scout: the 60 s exponential ramp estimating the knee K̂: the rate of the first 2 s window that breaches the qualification.
  • Plateau: one ladder rung, a fixed rate held for about 5,000 samples. It qualifies when every operation holds its latency budget, errors stay at or below 0.1 % and achieved throughput is at least 95 % of offered.
  • Knee: the highest offered rate whose plateau and all lower ones qualify; a bracket up to the first failing plateau, or a lower bound when all qualify.
  • judged_at: the highest of p99, p95, p90 and p50 with at least 10 samples above it. With fewer, not_resolvable, printed n/r.
  • Population reading: the knee divided by 13 to 75 peak API arrivals per second per 100,000 people, as a population band at the run’s corpus scale (POC, S, L or R).
  • A/A floor: the largest per-metric ratio between two sides of one target interleaved against itself. A two-server difference counts only above it.
  • Posture canary: a black-box probe of the declared posture (signing, commit validation, authentication, compression, TLS) after seeding and after the last plateau; a contradiction refuses the run.
  • Host prescription: a versioned machine description under perf/hosts/, read against the generator’s measured fingerprint.

The authorities

  • Oracle: the released openEHR specification text under specs/. The only authority an expectation may cite, never a suspect.
  • CNF: openEHR’s conformance component. Its Platform Conformance Test Schedule names what to cover; the released components give the answer.
  • Spec components: RM (Reference Model, the data structures), AQL (Archetype Query Language), AM (Archetype Model), BASE (foundation types and identifiers), TERM (terminology), ITS (Implementation Technology Specifications for REST, JSON and XML: the wire).
  • Attribution law: every red row belongs to exactly one suspect (server, runner or catalogue), decided before anything changes by comparing spec-required, catalogue-expected and observed.

About the project

Lineage

ISO/IEC 9646 standardized this architecture in 1991, and ETSI, the Bluetooth SIG and USB-IF still use it: a supplier’s conformance statement (ICS) selects cases from an Abstract Test Suite, the supplier’s IXIT supplies instance parameters, and verdicts land in a standardized report. Here the catalogue is the ATS, statement.json the ICS and ixit.json the IXIT.

openEHR’s conformance component defined the right concepts and stalled: last content amendment March 2022, no assessment layer, zero AQL test cases. It guides which behaviours to cover; the released specifications decide correctness.

Origin of the name

Veredictum is medieval Latin for “truly spoken”, vere dictum, the word that became verdict. The instrument runs the catalogue against a CDR and speaks a verdict on what it observed; the front-page seal marks it.

Design record

docs/ARCHITECTURE.md holds the reasoning: the Arazzo catalogue with its extensions, condition profile and gates, the party documents, the verdict computation, and the population-anchored performance-class model with its hospital-simulation journey decomposition. It also records the evidence for this shape: the state of the openEHR CNF component, how other standards run conformance, and the ISO/IEC 9646 and CASCO vocabulary.

Credits

  • The openEHR SEC and the CNF authors: the Conformance component. Its Conformance Guide and Platform Conformance Test Schedule set the SUT model, profile matrix and certificate shape, and name what a platform product must be tested for. The schedule’s amendment record names T Beale, B Naess, I McNicoll, C Chevalley, H Frankel, S Iancu, B Lah and W Wagner, beside P Pazos. 349 of the 1146 case cores of the former case-core catalogue cited a Test Schedule chapter.
  • Pablo Pazos (CaboLabs): the fleshed EHR, COMPOSITION, CONTRIBUTION and DIRECTORY chapters, the schedule’s usable core, raised as Test Schedule revisions 0.8.0 (23 Nov 2021) through 0.8.6 (24 Mar 2022); co-author with T Beale of the Conformance Guide’s initial writing. He wrote the original 2019 EHRbase conformance tests at Hannover Medical School, continued in his openEHR conformance verification framework with its own conformance testing specification, and has argued for openEHR conformance testing on the community forums for years. 127 of the 1146 former case cores cited the four chapters those revisions wrote.
  • The EHRbase and vitasystems team: the executable battery. The 223 Robot files the CNF component vendored name Wladislaw Wagner (Vitasystems GmbH), Pablo Pazos and Jake Smolka (Hannover Medical School) in their copyright headers; the team maintains them as its integration tests. 156 of the 462 provenance records of the former corpus named that set as the source of the entry’s bytes or template skeleton, each re-adjudicated against the released specifications.
  • The openEHR Foundation: the released specifications every expectation cites, and the ITS-XML and ITS-JSON schema bundles and ITS-REST OpenAPI documents the workflows resolve against.

The Test Schedule chapters are cited as a coverage guide. The correctness authority is always the released specification a case cites.

Licence

Apache-2.0. Attribution travels with every copy and derivative through the licence and the NOTICE file, as its section 4 requires. Vendored specification text and clinical models keep their upstream terms, recorded per tree in PROVENANCE.md and machine-readably in REUSE.toml.

What the front-page badges read

Every badge is a live reading except SLSA.

  • SonarQube Cloud: the analysis lane in .github/workflows/sonar.yml, coverage included.
  • OpenSSF: the weekly Scorecard analysis and Best Practices project 14252. The Scorecard workflow’s header explains each check below its ceiling. Fuzzing reads low because Scorecard detects only OSS-Fuzz and integrations it knows; the fuzz/ harnesses (#11) compile on every pull request and campaign weekly.
  • Registries: crates.io, docs.rs and GHCR, read directly: the published version, docs.rs red on a failed build, the package’s own pull count.
  • SLSA: static. Binaries and images build in reusable workflows (release-build.yml, build-image.yml) per GitHub’s documented SLSA Build L3 construction, each artifact carries a signed provenance attestation on its digest, and Installation shows the gh attestation verify check.