Repository navigation
Registry Stack v0.52.0
Registry Stack v0.52.0 is the beta-64 release.
You can export a checked service preview for the business-registration Compose example and let applicants follow a BReg Proposal filed on their behalf. Before upgrading from v0.51.0, update BReg pagination, Batch readers and access grants. Check PostgreSQL transport settings and migrate production Render callers to OIDC. Registry Stack v0.51.0
Compatibility and upgrade
Use matching runtimes, tools and clients for the cutover. Back up the deployment and rehearse the cutover on a restored copy. Upgrade and retire a deployment
Base Registry Engine
- Breaking paging changes. Use
limitandcursoron routes that declare them. Replace the v0.51.0 native read aliases$topand$skiptoken. BReg reports400 query.invalidatfieldPath: "query"for those spellings after the affected route's admission checks. This covers native Record reads (including related Records, GeoJSON, temporal reads and lookup), external-view Record reads and root refresh, GIS items and statistics releases. Access-profile selection errors follow each route's rules. Unknown parameters and malformed queries can reportqueryor omit the location, depending on the route. Proposal List already usedlimitand ingestion-run List already usedcursorin v0.51.0. Their refusals fortopandafternow reportquery. On the new Proposal Thread List, passnextCursorascursor, including in Node and Python. If you used the development thread client, replace itsafteroption. Treat cursor values as opaque. Restart saved continuations that use the retiredskiptokenmember from the first page. Start native Record paging again after package activation, which changes the cursor's package binding. BReg API query options - Breaking Batch and ingestion result changes. Read
record.recordId,record.revisionIdandrecord.domainDatain each Batch result. These replace the flatrecordId,revisionIdentifieranddomainDatain v0.51.0. Keep the revision ID as a decimal string and the exact quotedetagbesiderecord. Results follow request order. Chunk submission returns{run, receipt}, with results inreceipt.batch.results. Receipt GET returns the receipt directly, with results inbatch.results. Node and Python expose the nested fields. In Rust,receipt.batch().results()now returns&[BRegBatchResult]. Replace per-item JSON indexing withrecord_identifier(),revision_identifier(),domain_data()andetag(). BReg Batch and ingestion API - Ingestion contracts and diagnostics. Regenerate clients from the matching OpenAPI and use
x-registry-record-typein place ofx-registry-entityon ingestion operations. Send an empty body withoutContent-Typeto cancel a run. Ingestion POSTs refuse a caller-suppliedIdempotency-Key. After admission,400 request.invalidcan name a fixed member such as/prefixDigest, a malformed item such as/items/0, or a writable field such as/items/0/data/quantity. Branch oncodeand treatfieldPathas optional. A row-boundary or unavailable-reference refusal remains a value-free412 precondition.failed. BReg Problem documents - PATCH discovery. Read the selected profile's capabilities at
GET /v1/registryand regenerate clients from the matching project and profile OpenAPI. PATCH schemas describe allowed/data/…paths per operation. The combined OpenAPI can describe paths across profiles. An unencrypted, stored field can qualify fortestwhen current disclosure rules allow the caller to read it. The patch also needs a mutation. When a temporal read requiresasOf, supply it on the first page and continue with the returned cursor. BReg API reference - Breaking Immediate Action Create refusals. Handle
403 write.outside-boundarywhen an immediate Action can construct a valid Create from the request alone and its early target row-boundary check fails. Keep handling412 precondition.failedfor effect-dependent or generated-field boundaries, Evidence-computed plans, immediate Patch target refusals and timer firings. BReg API reference - Breaking Proposal grant changes. Replace
ownership: callerwithparty: ownerinpermissions.proposals. Use a separateparty: subjectgrant for subject rights. SetsubmitsFor: anyoneon the intended Submit grant when a filer may submit for others. If the Proposal reads its subject from a Record field, review direct Create, Batch, Import and Patch, plus immediate Action targets. Forreview.type: nonewith automatic application, review both the Action target and the Proposal Submit target. Forbreg.proposal.subject-field-write, bind the field to the writer's verified principal, use a reviewed or manually applied Proposal, or reserve the write for an unrestricted administrator. Owners and subjects - Breaking membership changes. Declare
membership: {key, principal, active}on the source Record type. Move eachmembershipBoundariesentry torowBoundariesas{field, membership}. Set the boundary on Proposal Start and lifecycle targets wherever both must be restricted. A boundary on the protected Record's ownidrequires a matching reference key and serves reads and referenced-only targets. Forbreg.access.membership-source-writeorbreg.access.membership-source-key-write, review the source writers and grant membership administration separately or through a correctly scoped Action. Before activation, deactivate or tombstone all but one live membership for each key and principal. Activation refuses duplicates withbreg.membership.duplicate-live-rows. If apply has pinned the target in maintenance, follow operator recovery to repair the duplicates and retry that exact package. Configure membership boundaries · Recover a failed activation - Breaking reference authority changes. Run
bregctl checkon the authored project. Forbreg.access.reference-target-ungranted, give the same writing profile agetor standalonereferencegrant for the referenced Record type, covering the Records it may name. The standalone grant authorises references only. Actions use their own target grants. Handle409 mutation.conflicton direct Create, Patch or Batch and412 precondition.failedon ingestion when a reference is unavailable. On direct Batch and Batch-backed ingestion, sendRegistry-Access-Reasonas unpadded base64url UTF-8 when the selected grant requires it. This includes a chunk naming a Record whose target grant requires a reason. Forbregctl data import,bregctl data runs listandbregctl data runs cancel, pass--access-reason-filewhen the selected grant requires it. Use an absolute path to a regular UTF-8 file without a line terminator or symlink components. Name referenced Records
Keep the sealed active v0.51.0 package and its matching runtime and tools. Build and apply a successor package to migrate the Proposal store. If bregctl check reports breg.field.api-name-invalid for a reserved Record member such as meta, choose an allowed API name in the successor. Keep the field ID and SQL name when the field continues to represent the same data. Rehearse the successor with the v0.52.0 tools in this order.
- Run
bregctl checkon the migrated project. - Run
bregctl testwith the active--baseline-packageand a--runtime-configfor a disposable schema-test database. Supply the schema-test--credentialsfor production posture and write the receipt with--output. - Run
bregctl packagewith the same--baseline-package, the--test-receiptand a new--outputdirectory. Pass the same--reviewed-migrationsto test and package when the successor requires reviewed migrations. - Run
bregctl planagainst the successor with--packageand the restored deployment's--runtime-configstill pointing at the active package. Review the plan and prepare any backup bindings it requires. Rehearsebregctl applywith the same target, the reviewed--expected-digestand any required--backupbindings. - Schedule a coordinated restart because predecessor processes lose readiness on activation. Set
package.rootto the successor, runbregctl verifyand confirm theappliedoutcome withbregctl status. Restart and check readiness before opening traffic. Change an active registry
Resolve uncertain direct Batch outcomes before activation where possible. Retry the original request with its original key while the original activation and request binding still apply. Recovery requires current authority and a retained response. After activation, an admitted request that reuses a key spent by a successful ordinary mutation for the same caller and scope receives 409 idempotency.key-reused. A request with an unspent key can execute. If recovery is unavailable, reconcile the outcome with an authorised read before issuing a write with a fresh key and, where required, the current ETag. BReg idempotency
To recover a committed ingestion receipt, read it directly or replay the exact chunk under the run's bound profile and access context. Recovery checks current authority and projects the original outcome to currently readable fields. The receipt carries the original snapshot, Record and revision IDs, and item ETags in the nested shape, including for supported older receipts. An exact replay commits no additional Records and leaves the checkpoint in place. If BReg erased the receipt with the Record history, admitted reads and replays return 410 ingestion.receipt-erased. Continue the uncommitted remainder in a successor run if the original run is blocked. Recover a committed chunk
If the exact BReg context contract changes, regenerate and re-pair the Casework policy before deploying Casework. Pair a current-source provider
Update automation that matches these BReg authoring diagnostics.
| Previous code | Replacement code |
|---|---|
breg.manifest.entity-id-collision |
breg.manifest.record-type-id-collision |
breg.manifest-entity.duplicate-title |
breg.manifest-record-type.duplicate-title |
breg.manifest-projection.entity-primary-dataset-required |
breg.manifest-projection.record-type-primary-dataset-required |
breg.manifest-projection.entity-dataset-dangling |
breg.manifest-projection.record-type-dataset-dangling |
breg.manifest-projection.dataset-entities-empty |
breg.manifest-projection.dataset-record-types-empty |
breg.manifest-projection.entity-duplicate |
breg.manifest-projection.record-type-duplicate |
breg.manifest-projection.entity-not-visible |
breg.manifest-projection.record-type-not-visible |
breg.access.membership-entity-unknown |
breg.access.membership-record-type-unknown |
PostgreSQL, provisioning and Render
- PostgreSQL transport. For verified TLS, set
database.transport: verified-tlson product runtimes andstore.transport: verified-tlson Adapter jobs. For Coordinator, explicitly setsslmode=verify-fullorsslmode=requirein both runtime and migration URLs. Either verifies the certificate chain and hostname. A plaintext transport rejects those two URL options. Remove the conflictingsslmodeoption if you intend to keep a supported plaintext transport. For provisioners andrstack devwith a TLS administrator URL, replacesslmode=verify-cawithsslmode=verify-full. Deploy Registry Coordinator · Operate the Adapter - Provisioning diagnostics. Update database secret and CA error matchers to use the shared
platform.provision.*codes and member pointer. Both apply and--print-sqlreport bundle errors at/database/caBundleRef, including forevidencectl provision. Foradapterctl job provision, use/store/caBundleRef. Once the reference resolves, PEM parsing can reportplatform.provision.ca-bundle-no-certificate,platform.provision.ca-bundle-invalid-pemorplatform.provision.ca-bundle-unusable-certificate. Keep handling shared secret and public-document diagnostics at the same member pointer for failures before PEM parsing. For example, a value that exceeds the public-document size limit returnsplatform.provision.secret-value-invalidthere. Casework emits a plain member pointer. Match production posture notices bycode, usepointerto locate the setting and showsummaryto operators. If you match RustSecretErrorexhaustively, removePublicDocumentNotTextand handle CA parse failures through the caller's CA diagnostics. Platform changelog - Render authentication. Replace production
authentication.apiKeyRefwithauthentication.oidcand list the allowed clients. Have callers acquire and refresh an access token for the Render audience and send it as a bearer token. Use the configuredrenderScopefor render and document routes andsealScopefor sealing. The defaults arerender:renderandrender:seal. Seal callers also need client authorisation for the selected seal. For local shared-key use, pass--posture developmentto bothregistry-render checkandregistry-render serveand setlistener.bindto loopback. The OpenFn example takesrenderAccessTokenin place ofrenderApiKey. Deploy Registry Render
SDK response compatibility
The native BReg, Casework, Evidence and Discovery SDKs accept additional members in ordinary successful response objects. Rust, Node and Python still validate required fields and reject duplicate members, including inside additional fields. Use matching runtimes for BReg, Casework and Evidence. Use the v0.52.0 unified SDK with the Discovery server from the same Stack release. Unified SDK compatibility metadata
Classify Problems by machine-readable identifiers and HTTP status. Keep a fallback for unfamiliar well-formed codes. The native Discovery client can classify a Problem without trace data. It attaches a trace ID to an unrecognised Problem only when the header and body correlate. The generated Discovery TypeScript client accepts a known type with a valid future code. It requires trace correlation for known types and for unfamiliar types that supply either trace field. Registry Stack TypeScript clients
In Rust, add .. to exhaustive field patterns for BaseRegistryClientError::UnrecognizedProblem, DiscoveryClientError::UnrecognizedProblem and CaseworkClientError::Problem if you only need existing fields. Casework's validation is an Option<Box<ReviewValidationError>>. Use validation.as_deref() to borrow it.
The shared Review client accepts additions to ordinary provider responses. Keep exact request validation and retain the accepted Review binding and submission digest for progress and result reads. The BReg Review-context producer contract rejects requestId, result, handoff and progressCode, even when they are null. Evidence's fetched key set is discovery data. Use the exact pinned key document for pinned verification and validate the frozen Evidence envelopes and signed formats against their own contracts. Persisted Discovery selections keep their closed shape. Explicitly accept a selection locally before using it. Read HTTP responses in v0.52.0
Applicant workflows
- Follow a Proposal filed on your behalf. An Action can declare its subject from an input or a field on a referenced Record. BReg binds the subject on the first successful Submit with that declaration. A verified person acting for themselves can follow the Proposal under a matching subject grant and current target boundaries. An authorised filer can Rebase an eligible Proposal submitted before the declaration while it is in
awaiting-partyorin-review, then Submit again. The filer needs current Start and Rebase authority to rebase the Proposal and Submit authority to resubmit it. When submitting for another person, use a Submit grant withsubmitsFor: anyone. - Answer with a form. Answer a Casework ask through BReg. With required review and a declared form, the applicant can add a typed entry while review is open. The
addgrant must list the form inwritableForms. Cite an uncited current-submission entry ID in the BReg Answer request'sformEntries. Casework's answer response projects form entries separately. An authorised human reviewer acting for themselves can read the form values live through a configured review-context field. The submission version, frozen effects and effect digest stay fixed. After admission, visibility and checks forIf-MatchandIdempotency-Key, a missing or non-object Add Forminputreports/input. Answer reports/textfor non-string text and/formEntriesfor an invalid form-entry list. Use the matching project and profile OpenAPI for theproposals.add-formshape. The corresponding configuration determines whether the operations appear. Ask for an additional form · Author a Casework policy - Exchange messages with the office. A plain-text Proposal thread opens on first Submit when enabled. Thread access requires an explicit
messagegrant and a verified person acting for themselves. Send a message withIf-MatchandIdempotency-Key. Mark Read takes{"through":"<message-id>"}without those headers. Mark Read advances the Proposal revision only when it moves the read position on an open Proposal. After either call, refetch the Proposal ETag before the next conditional command. Review unfiltered transition hooks forproposal.messaged. The event identifies the sender side inmessageFromand omits the text. On each authorised human inbox read, Casework can expose a positiveunreadMessagescount from the live office-side read. It omits the member once that count is zero. Operate BReg webhooks
Service previews and the Compose example
A page-only rstack dev preview can exercise declared BReg routes, including Actions, with zero functions. Function handlers using defineFunction receive the authenticated page or coordinator caller kind. Use preview.coordinatorFunctions to restrict calls to Coordinator. A Coordinator caller gets a Registry client with no credential that refuses Registry operations before dispatch. Run a project with rstack dev
Run rstack dev export-preview PROJECT --output DIRECTORY to check and build a preview without starting services. Choose an output path that does not yet exist. The export contains the manifest, static output and any compiled functions. Pin the bundle digest to verify every exported file. The declaration digest identifies the checked service.yaml. Run a project with rstack dev
The holder-function SDK subpath @registrystack/client/holder-function shipped in v0.51.0. The v0.52.0 Compose recipe uses it in the reference host. The reviewed function prepares only the two Action input fields and receives no credential argument. It runs in the host process. The host invokes the declared Action with the signed-in registrar's token through a generated client. The browser uses a Session cookie. Compose stages its own sealed BReg package and database. Business registration on the Compose reference host
Use synthetic data on a disposable Linux amd64 Docker host. Use Node.js 24 and install the locked client with npm ci. Generate and check the host client for the sealed project with matching bregctl. Use the Session image digest when it appears in the verified release manifest. An optional Casework profile uses the same Session sign-in with separate BReg and Casework audiences. Product, Session and database connections use verified TLS. A deployment across hosts needs TLS on both internal issuer hops. Compose recipe prerequisites and host client
Release artifacts
The v0.52.0 roster is intended to add the first numbered Registry Coordinator and Registry Session container images for Linux amd64. The standalone Session binary first shipped in v0.51.0 and is acquired separately from rstack install. Coordinator binaries and the unified SDK's Coordinator namespace first shipped in v0.44.0. Document Store, the Adapter image and the Render unified SDK bindings remain outside the staged roster. Render has an existing image. Confirm the published inventory and image digests against the verified release manifest before installing. Verify a Registry Stack release