Repository navigation
Registry Stack v0.51.0
Registry Stack v0.51.0 is the beta-63 release. It gives bounded product logic
its own name in each product. Base Registry Engine (BReg) Action Plans,
Evidence Derivations and Coordinator Transforms replace the earlier
functions keys, so a function is always a service function. BReg Record
lists and the generated clients share one pagination and route parameter
vocabulary. A Coordinator workflow can call a named service function, and a
trusted host can run one BReg Action for a signed-in person while its function
only prepares the input. Registry Session joins the numbered release as a
standalone binary, with a Compose reference host for the business-registration
preview. Read the upgrade section before you replace binaries, generated
contracts or clients.
Compatibility and upgrade
Use matching v0.51.0 runtimes, tools and clients. Back up each deployment and
follow upgrade and retire.
Reinstall rstack
- Numbered releases now ship
registry-sessionfor Linux amd64, Linux arm64
and macOS arm64. It is a standalone release asset:rstack installdoes not
install it, and it has no installer or container image. Download it from the
release assets. rstack updatefrom an earlier installation (v0.44.0 to v0.50.0) refuses
this release, because thoserstackversions do not recognise the
registry-sessionasset. Run the v0.51.0rstackinstaller as for a first
installation, naming the components you use. Later updates work from
v0.51.0. v0.47.0 handled the language server asset the same way.
Development plans
- BREAKING:
dev.yamldeclares products with the same inventory as
service.yaml.rstack devrefuses the earlier list form with
rstack.dev.products-list. Replace each
- {product: KIND, project: PATH, audience: AUDIENCE}entry with
products.KIND.projects.KIND.path: PATHfor BReg, Coordinator and Evidence,
orproducts.KIND.path: PATHfor other products. Move each audience to
audiences.KIND: AUDIENCE. Whenservice.yamldeclaresproducts, keep
onlyaudiencesindev.yaml. A directory holds exactly one inventory, and
rstack dev checkreports a refusal at the authored location.
service.yamlalso acceptsadapter,discovery,documents,renderand
schedulingprojects. rstack dev checktakes either a project directory or
--owner-report FILE --owner-report-format ..., not both.
Base Registry Engine
- BREAKING: BReg calls scripted Action logic an Action Plan. In
registry.yaml
andmodule.yaml, renamefunctionstoactionPlans. In an Action's
plan, changetype: functiontotype: scriptedand renamefunctionto
actionPlan. Keep the existing IDs, script or Wasm sources, input and write
declarations, and theregistry.action-plan/v1ABI. Updatebregctl
explanation consumers to readplan.type: scriptedandplan.actionPlan. - BREAKING: Action Plan diagnostics are renamed. Match
breg.action-plan.id-collisionandbreg.action-plan.contract-invalidin
place ofbreg.function.*, andbreg.action.plan-unknown,
breg.action.plan-contract-invalid,breg.action.plan-input-unknownand
breg.action.plan-unavailablein place of thebreg.action.function-*and
breg.action.plan-function-unavailablecodes. Diagnostic paths sit under
/actionPlans/, and the human explanation saysAction Plan. - BREAKING: v0.51.0
bregctl check --packagerefuses a sealed package from an
earlier release whose generated OpenAPI uses$top, with
breg.package.generated-artifacts-refused. Packages built by v0.49.0 and
v0.50.0 tools are affected, because both generate$top, which the
pagination change in this release replaces withlimit. Strict checks also refuse a sealed source that
still uses the earlier Action Plan spelling with the same code, even when its
generated artifacts match. To upgrade:- Keep the old package intact, and keep serving it with its matching tools
and runtime until cutover. - Update the authored Action Plan keys.
- Run v0.51.0
bregctl teston a disposable database andbregctl package
to build the successor. Pass the active old package as
--baseline-packageto both commands. - Check the new package, run
bregctl planand the reviewed
bregctl apply, then serve the successor with the matching v0.51.0
runtime.
- Keep the old package intact, and keep serving it with its matching tools
- BREAKING: a generated artifact that was changed and then resealed with
matching digests reportsbreg.package.generated-artifacts-refusedinstead
ofbreg.package.integrity-refused. A sealed source file can mix the
earlier and current Action Plan spellings, or declare both for one key. No
release writes such a file, so it is refused as
breg.package.integrity-refused. Update alerts for both refusals. - Record, history, relationship and External View lists use
limitand
cursor. Sendlimiton the first page, then continue on the same route
with the returned cursor and the same access profile. The server still reads
$topand$skiptoken. They are deprecated and planned for removal in
v0.52.0, so move every caller before then. Rust and Node list clients use
limit, Python takeslimit=, and clients writecursorin saved
continuations while still reading earlierskiptokenones. - A generated project SDK's
related()takeslimitin place oftop, and
the generated TypeScript and Python SDKs sendlimitto the client.
Regenerate the SDK, and rename the argument where a caller passes it by
name. - The Evidence provider key set at
trustedJwksRefis read as a public
document. BReg refuses it when it holds a private or symmetric key member.
Registry Evidence
- BREAKING: rename EvidenceProject
functionstoderivationsand each
derive.functionreference toderive.derivation. Read the same names in
evidencectl checkandexplainJSON reports. Existing Rhai
assertion-derive/v1scripts and their asset paths carry over. Run
evidencectl check PROJECTafter you update the project. Regenerate
TypeScript and Python withevidencectl typesand replace imports of
FunctionBindingswithDerivationBindings. - BREAKING: match
evidence.project.derivation-*in place of
evidence.project.function-*, and
evidence.project.duplicate-derivation-labelin place of
evidence.project.duplicate-function-label. Editor asset checks use
evidence.derivation.*, for exampleevidence.derivation.compile, and
editor reference codes sayderivationandderivation-file.
Registry Coordinator
- BREAKING: the bounded Rhai computations in a workflow are Transforms. Rename
functionstotransformsand usetype: transformwith atransform
member in mappings. Usecoordinatorctl explain transformsfor the
interpreter helpers, and matchcoordinator.transform.*in place of
coordinator.function.*. Retained definition snapshots keep their reader and
revision format.
Generated clients
BREAKING: generated clients name every route parameter after the resource it
identifies. Operation names and concrete HTTP URLs stay the same. Replace the
path arguments as follows:
- Adapter
breg-recordsv1:record_idbecomesrecordIdin generated client
and MCP arguments. Refresh the Live Effective Contract and its pinned digest
together. - Casework:
policy_id,request_id,ask_id,task_id,grant_id,
event_id,team_idandabsence_idbecomepolicyId,requestId,
askId,taskId,grantId,eventId,teamIdandabsenceId. On the
holiday revision route,idandrevisionbecomeholidayIdand
holidayRevision. - Coordinator:
runbecomesrunIdon the run routes,workflowbecomes
workflowIdon the workflow and event routes, andtriggerbecomes
triggerIdon the event route. - Messaging:
message_id,provider_idandtemplate_idbecomemessageId,
providerIdandtemplateId, andversionbecomestemplateVersionon
template previews. - Render:
typebecomesdocumentTypefor rendering and sealing. - Scheduling:
hold_idandappointment_idbecomeholdIdand
appointmentId. - Evidence OID4VP:
referencebecomessessionReferencefor session status,
andrequest_idbecomesrequestIdfor wallet requests and responses.
Registry Render timestamp authority
- BREAKING: Render reaches a seal's timestamp authority only at the
destination the shared outbound selector chooses for its URL. Render
resolves only the authority's own host. It refuses a loopback answer for a
host name, and link-local, multicast, unspecified and cloud metadata
addresses. Private addresses, the namelocalhostand loopback address
literals stay accepted. - A refused address literal fails
registry-render checkand stopsserve
at startup withrender.runtime.timestamp-address-refused. A refused answer
for a host name fails each seal astimestamp-failedwith reason
destination-refused. AcaBundleRefon anhttpURL is reported as
render.runtime.seal-timestamp-ca-bundle-requires-https. - To upgrade, point
timestampAuthority.urlat a name that does not resolve
to loopback, or uselocalhost,127.0.0.1or[::1]for a test authority
on the same machine. UsehttpswithcaBundleRef.
Registry Adapter
- BREAKING: payment problems carry canonical Adapter HTTPS type URIs. Upgrade
strict payment clients before or together with the payment host. Updated
clients still read the matching enumerated earlier Payment URNs. adapter-job checkapplies the signed-event destination policy that
activation already applied. A signed eventbaseUrlthat is not a bare
origin, or a loopback range inallowedPrivateCidrs, now failscheckas
it already failed at startup.checkalso refuses a TLS trust profile on a
destination that does not use verified TLS.
Compose secret mounts
- Production keeps refusing the Docker Compose native secret mount shape by
default. To accept it, opt in with
secretProviders.file.mountPolicy: compose-native. The setting admits a
root-owned, single-link regular file with mode exactly0444under the
declared root. Startup andcheckreport
platform.posture.compose-native-secret-mountwhile it is set. Writable
files, other owners, extra links and paths outside the root stay refused.
With the setting, every user in the container can read the mounted
secrets. Use it only in a container that runs one service under one runtime
identity. - Every runtime reads a static JWKS (
jwksSource.documentRef) and every CA
bundle (caBundleRef, MessagingtlsTrustProfiles.*.bundleRef) as a public
document, with no setting: group and other may read the file. Owner, link,
write and walk checks still apply, and the document is still parsed before
use. - BREAKING: a public document (a static JWKS or a CA bundle, including the
caBundleReftheprovisiontools read) that holds an armored private key
block (PEM, OpenSSH or OpenPGP) is refused, even when the file is
owner-only. IfcaBundleRefnamed a combined certificate and key file,
move the key into its own secret file and pointcaBundleRefat the
certificates alone. - Every
provisiontool refuses a CA bundle that is not UTF-8 text at its
caBundleRefmember when it reads the runtime file, so--print-sqlno
longer prints a plan for a binary bundle. Theprovisiontools,
registry-mcp checkandregistry-session checkprint the explicit
compose-nativesetting notice. - Registry Evidence, its OID4VCI delivery service and its OID4VP verifier
refusemountPolicy, keeping the Version 1 rule that a key file is never
readable by other users.evidencectl doctorreports the same refusal.
Saved CLI connections and task connection files do not accept the member,
and the published wallet adapter schemas do not offer it. - A runtime that runs as root gains only the
0444shape. A root-owned
0440file is still refused, so stage the runtime's own files at0400or
0600. - BREAKING for Rust callers of
registry-platform-config:SecretErrorgains
UnsafePublicDocument,PrivateKeyInPublicDocumentand
PublicDocumentNotText, andProvisionInputgainsexplicit_settings. Add
arms for the three variants to exhaustive matches, and fill
explicit_settingsfromPostureReport::explicit_setting_notices.
Registry Render
- Render calls
authentication.apiKeyRefthe shared API key instead of the
legacy API key. It is a supported mode for one trusted caller with no OIDC
issuer. It never seals, and every request carries the same key, so its audit
entries share one fingerprint. The key name and behaviour are unchanged. - The
render.forbiddendetail on the seal route, the
render.runtime.authenticationaction and the
render.runtime.signing-requires-oidcmessage now say shared API key. Codes
are unchanged. Update only a reader that matches the earlier text exactly.
Base Registry Engine
Select readable fields by classification
Record permissions and read paths can select readable stored fields with
readableFields.upToClassification instead of an explicit list. The compiler
resolves the ceiling to concrete field IDs, so the runtime only ever sees an
explicit list, and an unresolved ceiling selects nothing. A ceiling selects
only BReg-owned stored fields on the direct Record type or the declared
read-path target. External View links and permissions with requireConsent
keep explicit lists, and a ceiling there is refused.
A later field addition or reclassification at or below the ceiling widens the
compiled grant under the same authored permission. bregctl diff --package
reports a widened direct grant as widening and a widened read path as
review-required. Review the effective fields of each affected grant before
you apply a successor. The BReg security model records this as an operator
obligation.
Check role inventories offline
bregctl generate identity-facts reports the exact bytes it wrote, with their
length and SHA-256, and refuses to overwrite an existing output. A published
report schema describes the completed report.
Registry Session
registry-sessiongenerates one checked, loopback-only Envoy configuration
with stable routes and filters and exact numeric upstreams.- A versioned, checked Session route inventory and a strict exporter record
the selected routes and their projection digests. The exporter refuses
stale, swapped, aliased or mismatched inputs before it writes any file. The
inventory is routing data only: Session and each product keep their checks
at request time.
Business registration reference host
deploy/examples/business-registration runs the business-registration
preview's compiled function and static page with Registry Session, Envoy,
ThunderID, BReg and PostgreSQL under Docker Compose, in production posture on
loopback host bindings. It is a reference recipe, not a supported deployment.
- The browser holds only an opaque Session cookie. Envoy checks it and
supplies the registrar's access token on the private function and registry
routes. BReg applies its own access profile, issuer, scope and row rules. - Product, Session and database connections use verified TLS. Two issuer hops
on internal Docker networks carry issuer traffic as plain HTTP, and the
README lists that and every other residual reach. A deployment across hosts
needs TLS on both hops. - The README covers preparing, running, checking and removing the instance,
with a smoke test and a two-registrar browser check that verifies sign-out. - In this release the reference host still passes the signed-in registrar's
bearer to the compiled function. The holder binding below is not yet used
by the shipped recipe (#2910).
Holder-authorized BReg Actions
This release is part of #2835. @registrystack/client/holder-function is a
pre-1.0 subpath export of the existing @registrystack/client package, with no
new package name. A trusted host uses createHolderActionHandler to invoke one
generated BReg Action for a signed-in person. The declared function only
prepares the input: it receives one projected value and a signal, never the
Request, the bearer or a product client. Preparation runs under a deadline
and can be cancelled, and the binding also covers Actions that create a new
Record. The function runs in the host's process, so the binding keeps
credentials away from trusted, reviewed code but does not isolate it. BReg
tests cover holder renewal and refusals of crossed authority. The shipped
reference host adopts the binding in v0.52.0 (#2910).
Shared platform and development
rstack dev checkverifies each owner tool's offline report against the
typed identity facts. It checks the exact report kind, command and output
path, the profile and claim counts, and the issuer and audience pair. For
Messaging it also checks the staged package, runtime input and tool around
facts generation. It also reads saved Casework and BReg identity-facts
reports structurally, with bounded, redacted diagnostics.- A service role in
service.yamlthat no one is assigned must still name a
known product. An unknown name returnsidentity.deployment.unknown-product
at the exact product key. rstack devcan attach to PostgreSQL on an isolated development network
when the administrator URL selectstransport=private-network-plaintext.
Verified TLS remains the default, and production andprovisionkeep their
existing transport rules.- A service preview's function handler receives a copy of the request without
theAuthorization,CookieandProxy-Authorizationheaders. The typed
Registry client keeps the caller's credential for that request. - A Coordinator workflow can call a named service function as a recorded step
withservice.invoke-function/v1. The workflow names it with
serviceFunction, and atype: service-functionruntime connection binds
the function host, that one function and one credential for the host alone:
an OAuthauthorizationor ahostKeyRefkey.checkrefuses a missing
function name and a name the connection does not bind. Calls follow external
command recovery and require aninterpretTransform. The call carries no
product authority. The runtime refuses a function
credential that matches a product, external or task authority credential or
the Coordinator's own audience.rstack devissues the function host key for
each run and never passes it to a product. - The permit-review preview runs a multi-product service with two actors. One
Coordinator run waits for a Casework officer's decision and calls a named
function as a recorded step. It then records the BReg decision under the
Coordinator's grant. In the preview, one run key admits both the gateway and
the Coordinator as callers of the function host, and each actor has its own
gateway origin holding only that actor's credential. A preview function bound
to the Coordinator can also be called from the page (#2901). - A preview's generated binding reaches bounded BReg revision routes.
- An external BReg connection in
rstack devthat binds only a hook keeps the
managed issuer. Other external bindings still need an external issuer. - Managed
rstack devjourneys cover strict promotion for BReg, Adapter and
Evidence, and signed product hooks for Documents and Scheduling. evidencectl provisionprepares an Evidence store with split roles. It adds
no serving mode.- Discovery catalogue fetches, BReg signed webhooks, Messaging, the Evidence
OID4VCI configuration, Coordinator outbound, external command, decision and
token calls, Adapter signed event destinations, and Adapter source checks,
engine data and token egress choose
outbound transport through the shared selector. Coordinator plain HTTP stays
limited to numeric loopback, and Adapter sources stay HTTPS or loopback
only. - Managed journeys count first-hour reader steps, Messaging writes startup-read
receipts, and Casework names a missing scope in its diagnostics. The
first-hour targets are not met (#2902). - The configuration conventions list retired spellings once. The convention
lint and the docs vocabulary check refuse them in format files and pages,
outside migration notes. Retired Evidence and Casework terminology fails on
every page. - The token conformance corpus adds the BReg Review sign-in callback in both
postures. It also asserts the Coordinator ID-token cells as refusals in both
postures.
Other changes
- The hosted strict configuration conformance matrix passed the required BReg
warning and duplicate-key cases (#2880). - The first BReg tutorial now uses the
dev.yamlanddev-journeys.yaml
thatrstack breg initwrites, without replacing them. A tutorial that
previews a business registration service from BReg Start follows after this
release is published and verified. - Fresh Scheduling starters take their dates from initialisation, so starters
and examples stay usable after their fixture dates. - The generated Casework starter keeps its files, and the tutorial staffs the
starter queue through the administrator bootstrap. - The configuration reference has a generated lookup table for posture
diagnostic codes. - BReg names the replacement when it refuses a retired import, ingestion or
batch record key. - Exported problem codes follow one grammar, and the identifier catalogue
refuses a malformed code. - OpenAPI problem responses declare the development
diagnosticmember on
each response where a product returns it in development. bregctl,caseworkctlandevidencectlname production closure checks
the same way.- Coordinator client refusals name the
Idempotency-Keyheader. - A scheduled and opt-in CI job runs the TypeScript live suite under Node,
Deno and Chromium against products built from source. A check refuses
unpublished route parameter names before publication. - The hosted TypeScript client gate ran the installed medical-renewal,
business-registration and permit-review previews in Chromium. The BReg
ingestion client also preserves its item filters and limit when following
a pagination cursor. - The developer guide explains when a service needs a Coordinator flow and
when a service function is enough.
Not built in this release
- Applicant flows (#2800, #2801, #2802) and organisation stewardship (#2839,
#2861, #2867, #2868). They move to v0.52.0. - The holder binding in the shipped business-registration reference host
(#2910). The binding, its export and the native fixture ship in this
release. The operated browser, Session and gateway path ran only on a proof
overlay of the reference host. - A managed preview that serves a service through Registry Session. The route
inventory and Envoy configuration are built, and the managed preview still
refuses a service with Session. - The remainder of the onboarding first-hour work, moved to v0.52.0 (#2902).
The first-hour targets are not met. - A hosted CI job for the reference host, release-candidate smoke wiring,
published Session and Coordinator container images, and anrstack dev
route-parity test. They move to v0.52.0. - A reference host variant where one Session sign-in reaches both BReg and
Casework, gated in CI (#2918). It moves to v0.52.0. - A service preview that declares no functions, for example a page that calls
a BReg Action directly. It cannot start yet (#2917, v0.52.0). - The remaining outbound transport migrations to the shared selector (#2817).
- Generated clients called against running products across every product and
Chromium, and a generated MCP client (#2822). - A failed check required at compile time in every product (#2824).
- Credential comparison for a function host configured as
type: external-httpis planned for v0.52.0. Bind every function host as
type: service-functionand give it a dedicated credential. That binding
already checks for shared credentials. - A maintained package-diff test for a widened read-path ceiling, and a
visible diff when a ceiling is adopted with an unchanged effective grant.
They are tracked for v0.52.0.
Not verified end to end
- The real numbered install of
registry-sessionon Linux arm64 and macOS
arm64. The release tooling covers both paths only with fixtures. - The paired preview and production business-registration run with published
assets. The two postures were exercised outside CI with source-built tools. - The two-audience Session sign-in on the reference host. It was shown once
outside CI (#2918). - The managed Scheduling leg in CI (#2898).
- The full TypeScript live run and the full Evidence gate in CI.
- The public-document path for a static JWKS in a running Messaging process.
Messaging reads it after the database connects, so unit and filesystem tests
cover it. - The operated holder-authorized Action path on the shipped reference host
(#2835, #2910). The browser, Session, private gateway and preparation path
ran only on a proof overlay of the reference host (38 cases), not on the
shipped recipe. - The native Messaging owner check in CI. It runs only as an opt-in test and is
tracked for v0.52.0. - The BReg Review sign-in callback in a browser over TLS. The corpus harness
runs over loopback and does not independently verify PKCE, client
assertions or live issuer interoperability. bregctl planandapplyover an active package that still uses the
earlier Action Plan spelling, and package bytes from a real earlier release
through the predecessor path. Tests stop atcheckof the successor and use
a current package resealed with the earlier spelling.- The first tutorial timed on a clean Mac (#2873). It does not gate this
release and has not run. - The first-hour targets (#2902). In the managed journeys, the nine protected
products reach their first authenticated read within the measured first
limit. No product has a complete first-hour verdict.
Release sources
This release follows v0.50.0.
Integration pull request #2938.
Compare the tagged release sources.