Archived docs.You are viewing v0.13.0. For current guidance, useLatest. Report archive issues onGitHub.
This page defines the compatibility promise for Registry Stack releases: which surfaces are
covered, what counts as a breaking change, and which surfaces stay exempt. The promise takes
effect at v1.0.0. Until then, Registry Stack is a pre-1.0 technical release and the
pre-1.0 rule applies.
Versioning scheme
Section titled “Versioning scheme”Registry Stack releases carry one stack-wide version, tagged vMAJOR.MINOR.PATCH. Every
released artifact of a release (binaries, container images, the docs snapshot, the release
manifest under release/manifests/) shares that version.
Before v1.0.0:
- A minor release may contain breaking changes. Each one is announced in the affected
CHANGELOG with a
BREAKING:entry and concrete migration steps. - A patch release is backward compatible with the latest minor line.
From v1.0.0:
- A major release is the only release that may break a covered surface.
- A minor release may add surface (new routes, new optional config keys, new CLI flags, new error codes) and may deprecate surface, but not remove or change it incompatibly.
- A patch release contains fixes only.
Covered surfaces
Section titled “Covered surfaces”The promise covers the surfaces in this table. For each, the contract artifact is the source of truth: if this page and the artifact disagree, the artifact wins.
The enforcement column names the repository CI checks so the mechanism is auditable.
| Surface | Contract artifact | Enforcement today |
|---|---|---|
| Registry Relay HTTP API (approved stable public and admin listener surface) | Committed OpenAPI document crates/registry-relay/openapi/registry-relay.openapi.json, scoped by the authoritative 1.0 support roster | just openapi-contract checks byte-for-byte generation, filters only roster entries declared included_unstable, then runs oasdiff breaking against the base ref |
| Registry Notary HTTP API (public and admin listeners) | Committed OpenAPI document products/notary/openapi/registry-notary.openapi.json plus the route inventory products/notary/security/exposure-manifest.json | just openapi-contract compares against the base reference; just openapi-check and just exposure-check detect generated-contract drift |
| Error contract and stable identifiers | RFC 9457 problem shape with the stable code member, the error registry, the pdp.* denial codes, and the https://id.registrystack.org/ identifier space | release/scripts/check-stable-surface-compatibility.py permits additions and rejects removal or changed meaning; product tests pin runtime rendering and status mappings |
| Configuration formats and documented environment variables | The committed Draft 2020-12 schemas schemas/registry-relay.config.schema.json and schemas/registry-notary.config.schema.json, plus the environment variable reference | Product config-schema-check commands reproduce the schemas from the typed config graphs; strict parsers and the deprecated-field guard reject unknown or retired fields |
| Signed config bundle format and verification semantics | registry.platform.config_bundle.v1 manifests, registry.platform.config_bundle_signatures.v1 signature envelopes, and registry.platform.config_trust_anchor.v1 trust anchors. Normal signed verification requires a valid, non-empty trust anchor and checks signature acceptance, file closure, product/environment/stream binding, optional instance pinning, and anti-rollback sequence. The hash-pinned registry.platform.config_break_glass.v1 accept_rollback mode keeps signature, binding, closure, hash, and product checks but waives the monotonic sequence rejection for a signed bundle whose config hash matches the override. Its accept_unsigned mode skips signature, binding, and sequence checks while retaining exact hash pinning and product config validation. | Shared verifier tests in registry-platform-config; break-glass consumption, restart-pin, and sequence tests in registry-platform-ops; product CLI coverage in crates/registry-relay/tests/config_verify_bundle_cli.rs and crates/registry-notary/tests/config_verify_bundle_cli.rs |
| Registry Manifest schema and rendered artifacts | registry-manifest/v1 and the rendered artifact schema versions, governed by RS-DM-MANIFEST | validate_manifest accepts only registry-manifest/v1; REQ-DM-MANIFEST-013 requires strict unknown-key rejection at parse time |
| Source-adaptation integration surfaces | Registry Relay’s compiled http, script, and snapshot consultation plans, including the Rhai consult(ctx) host API and versioned protocol helpers | Registry Stack project-authoring schemas and fixtures; Relay source-plan compiler and consultation contract tests |
| Command-line interfaces | Documented commands and flags of registryctl, registry-relay, registry-notary, and registry-manifest, and their machine-readable output modes (--format json, openapi, schema) | CLI reference pages; registryctl version test |
| Release artifacts and verification interface | Released binary and image names (ghcr.io/registrystack/registry-relay, ghcr.io/registrystack/registry-notary), signature and provenance layout per release/VERIFY.md | Release workflow; signed assets verified as documented in SECURITY.md |
| Selected Prometheus metrics | Family name, type, label keys, and label meaning in release/contracts/selected-metrics.json | release/scripts/check-stable-surface-compatibility.py permits additive families and rejects incompatible changes; product tests verify bounded labels and rendering |
Metric help text, output ordering, and corrections to observed values are not covered. New families and new values for an existing bounded label are additive changes.
The Relay support roster, not mere presence in the default OpenAPI, decides whether a Relay
surface enters the 1.0 compatibility promise.
Only roster entries declared stable and canonical are covered.
Feature-gated experimental adapters and roster entries declared included_unstable remain
outside the promise even when they ship or appear in OpenAPI.
This specifically keeps CSV and SDMX-JSON aggregate output experimental and feature-frozen while
JSON aggregate output and the core protected entity record routes remain stable.
The compatibility filter reads the roster’s machine selectors; it does not maintain another
format list.
What counts as a breaking change
Section titled “What counts as a breaking change”For HTTP APIs:
- Removing or renaming a route, parameter, request field, or response field
- Changing the type, meaning, or optionality of an existing field
- Removing or renaming a stable error
code - Changing the stack-wide meaning of a released error code, or changing an existing product-and-operation HTTP mapping for that code
- Tightening authentication or scope requirements on an existing route, except as a security fix announced in the release notes
For configuration:
- Removing or renaming a config key or documented environment variable
- Narrowing the accepted values of an existing key
- Changing the semantics or the default of an existing key (see Defaults are part of the contract)
For CLIs:
- Removing or renaming a documented command or flag
- Changing the schema of a machine-readable output mode incompatibly
For selected metrics:
- Removing or renaming a family
- Changing a family type, label key, or label meaning
Additive changes (new routes, new optional fields, new optional config keys, new error codes, new commands and flags) are minor-release material and are not breaking.
Compatibility direction
Section titled “Compatibility direction”The promise is backward compatibility: a new binary within a major line reads the wire data, config files, manifests, and persisted state written for any earlier release of that line. Every release documents a forward state path from its immediate predecessor. An upgrade that skips releases follows each sequential hop unless the target release explicitly certifies a direct path.
The reverse is not promised. Both products parse config with deny_unknown_fields, so a
config file that uses keys introduced in a newer release fails to load on an older binary.
Pin your config to the release you deploy.
Registry Notary state upgrades are forward-only. An older Registry Notary binary must never start against a schema installed or changed by a newer release. The supported combined topology pairs exactly one Notary authority with each Relay authority; replicas may share an authority only when they serve the same authority configuration.
Defaults are part of the contract
Section titled “Defaults are part of the contract”A default value is behavior an operator relies on without writing it down. Changing a covered default incompatibly requires a major release, except for a documented security removal under the deprecation policy.
Exempt surfaces
Section titled “Exempt surfaces”The following are not covered by the compatibility promise, at any version:
- Rust crate APIs. Every workspace crate is
publish = false; nothing is published to crates.io. Consumers who pin the repository by tag or commit get exactly what they pinned, and crate-level APIs may change in any release. - Human-readable CLI output, log message text, and problem
detailstrings. Machine consumers must use the JSON output modes, the structured log format, and thecodemember. - Hidden commands and internal protocols, including
registryctl __update-check-refresh,registry-notary cel-worker, and the worker-harness line protocols. - The layout of the repository, the
products/export trees, the docs site internals, and the lab tooling. - Descriptions, summaries, and ordering inside generated OpenAPI documents. The contract is the paths, operations, schemas, and status codes, not the prose.
Route version namespaces
Section titled “Route version namespaces”The HTTP surface carries several independent version prefixes: /v1 (data plane),
/admin/v1 (admin plane, separate listener on Registry Relay), /ogc/v1 and /ogc/edr/v1
(standards adapters), and /federation/v1 (Registry Notary federation). Each namespace
versions independently; a /v2 in one namespace does not imply a /v2 in another.
Two Registry Notary routes are permanently unversioned by protocol necessity:
/credentials/{vct_path} and /.well-known/vct/{vct_path} must exactly match the vct
dereference URL of issued credentials, per SD-JWT VC and RFC 8615 semantics. Discovery and
operational routes (/.well-known/*, /oid4vci/*, /healthz, /ready, /metrics,
/docs) follow their upstream protocol or operational conventions and are also unversioned.
Enforcement
Section titled “Enforcement”The promise is machine-checked where a checker exists:
- Relay:
crates/registry-relay/scripts/check-openapi-contract.shregenerates the OpenAPI document from the reference config, requires a byte-for-byte match with the committed file, removes only the aggregate representations markedincluded_unstableby the authoritative Relay roster, and runsoasdiff breakingagainst the base ref. - Notary:
just openapi-contractcompares the regenerated OpenAPI document against the base reference;just openapi-checkandjust exposure-checkkeep the document and exposure manifest in lockstep with the code. - Errors and metrics:
release/scripts/check-stable-surface-compatibility.pycompares the released registry and selected metric contract against the base reference while permitting additions. - Config: each product reproduces its committed schema from its typed config graph;
registry-platform-configrejects removed or renamed keys with a pointer to the migration note instead of silently ignoring them.
A change that a gate flags as breaking lands only in a release whose version number permits it, together with the deprecation and migration steps required by the deprecation policy.