Repository navigation
RegistryStack v0.47.0
Registry Stack v0.47.0
Registry Stack v0.47.0 is the beta-59 release. rstack dev runs BReg,
Casework, Evidence, and Messaging projects on your workstation, alone or
together, and replaces the per-product development sessions. Base Registry
Engine (BReg) adds read-only external views over records another registry
keeps, Polygon and MultiPolygon fields, and date helpers for Action plans. An
applicant can see where a submission is in review. Registry Coordinator adds
monthly calendar starts, a service deadline, and a failure route for reads,
and is now promised at Registry Stack 1.0. Every private_key_jwt client now
states its client assertion audience. The standalone registry-language-server
ships as a release asset for the first time.
Configuration formats are aligned before 1.0, so some keys are renamed and the
old names are refused. Lists of entries that each carry an id become mappings
keyed by that id in BReg, Messaging, Scheduling, and Discovery files, and the
shared project block accepts a label and description. Read the upgrade
section before you start the new binaries. BReg and Scheduling start on a fresh
database, and the Coordinator starts on a fresh namespace. A metrics listener
can now bind to every interface of a container whose network is private to the
deployment, and more products report their background work.
BReg statistics gain sum, mean, distinct-count, ratio, and percentile
measures, exact reads for a named consumer, and exact public releases.
BReg access profiles can require a filter on every list, withhold a record or
its fields from profiles that are not exempt, and require a stated reason for
each request. The repository gains a K3s and Helm reference deployment for
v0.46.0 images, outside the release.
Compatibility and upgrade
Use matching v0.47.0 runtimes, tools, and clients. Back up each deployment and
follow upgrade and retire.
BReg and Scheduling start on a fresh database, and the Coordinator on a fresh namespace:
- BReg starts on a fresh database.
bregctl planandbregctl applyrefuse a
database whose active package was built before this release.
bregctl test --baseline-packageandbregctl diff --runtime-configrefuse
a baseline package built before this release. The refusal names the way
forward: recreate the database, build a package with this release, then run
bregctl apply --package DIR --initial. This release no longer reads the
entityIdmember that packages compiled by v0.38.0 to v0.41.0 wrote in
place ofrecordType, so a database whose active package was compiled by
v0.41.0 or earlier cannot be upgraded in place. The refusal namesentityId
and the fresh-database path. - Scheduling starts on a new database. This release does not read Scheduling
state stored by an earlier release. A stored policy that holds one of the
id-keyed collections in the list form is refused with a message that names
the member, for exampleservices[*].id. - The Coordinator starts on a fresh namespace, as described below.
- Evidence and Messaging keep the database state v0.46.0 stored. Their project
files need the edits listed below, and Messaging needs its package rebuilt. - Casework keeps its database. No changelog asks it to start fresh, but its
upgrade is not rehearsed, so back up its database first.
The release upgrade rehearsal starts from the v0.46.0 state and covers Evidence
and Messaging only. For Evidence, it moves the retained project's id into a
project block with a version and turns its functions list into a map. For
Messaging, it renames the database CA bundle key, rewrites providers,
senderProfiles, and accessProfiles in map form, rebuilds and checks the
package, and applies it over the previous activation. It then fails unless the
state is still served unchanged. It does not exercise BReg, Casework,
Scheduling, or the Coordinator.
BREAKING for BReg statistical datasets. See
BReg statistics.
- Add
type: minimum-count-and-roundingto every dataset'sdisclosure
block.minimumCountandroundingBasebehave as before. A block without
typeis refused. - Every statistical cell now names its measure. In JSON,
dataset.measureis
replaced by thedataset.measuresarray, and each cell carriesmeasure.
CSV gains ameasurecolumn beforevalue. Update readers of both
formats. - A sum or mean cell's
valuecan be a decimal string, and a mean over no
values has a nullvaluewith statusnot-applicable. Treat an unknown
status as no usable value. Datasets that declare only counts serve the same
values. - A dataset declares at most 12 dimensions.
- The definition digest now covers the disclosure method and the measures, so
every dataset's digest changes once on upgrade. Releases published before
the upgrade stay stored but are no longer served. Republish the periods you
still need.
BREAKING: every private_key_jwt client states its client assertion audience,
with no default. The assertion carries that audience as its only value, with
the header typ: client-authentication+jwt (RFC 10070 section 4). A
configuration without the member fails to load and names it. Set each member
to the authorization server's issuer identifier, exactly as its metadata
publishes it:
- BReg:
evidenceProviders.<id>.privateKeyJwt.assertionAudiencein the
runtime configuration. - The BReg MCP gateway (
breg-mcp):assertionAudienceon its token
exchange. - Casework:
clientAssertionAudienceon eachcontextProvidersbinding and
on itsdelegatedDisplayExchange. Casework refuses a file without it with
config.missing-key. - Coordinator:
clientAssertionAudienceon every connectionauthorization
andobservationAuthorizationinruntime.yaml. An
observationAuthorizationstates the same audience as its primary
authorization. See the Coordinator entry below before you upgrade. - Evidence:
clientAssertionAudienceon anoauth2-private-key-jwtsource
credential in the runtime configuration and the bundle, and on an
oauth2-private-key-jwtconnection in the authored target. Also
oauth.clientAssertionAudiencein an Evidence client profile, and
tokenClient.clientAssertionAudiencein theevidence-oid4vci
configuration.evidencectl client profile createrequires
--client-assertion-audience. - Adapter:
clientAssertionAudienceon anoauth2-private-key-jwtruntime
credential, and on an ingestion job'sdirect-bregdestination. - Saved CLI connections:
assertionAudience. The tools refuse
--private-key-jwtwithout--assertion-audience. - Node.js and Python clients:
audienceinprivateKeyJwt
(private_key_jwt), in the exchangeclient, and in the remote
bootstrap. A client without it is refused at construction with kind
configuration. A progressive Evidence client also requires the
discovered issuer to equal this audience. - Rust platform crate users:
registry-platform-httputil's
PrivateKeyJwt::newrefuses aPrivateKeyJwtConfigwithout
with_audience, andPrivateKeyJwtConfig::check_identitytakes the
audience as&str.
BREAKING: the Coordinator starts on a fresh namespace. Protected state schema
version 6 adds a durable calendar cursor and an optional service deadline on
each Run. It refuses version 5 namespaces. The connection audience above is
also part of each connection's binding, so a Run admitted without it no longer
matches. Settle open Runs with the v0.46.0 binaries. Then apply v0.47.0 to a
fresh namespace and database identity. While a live Run remains,
coordinatorctl deployment-status with the upgraded configuration reports
live-binding-conflict. coordinator --recovery-only inspects it with
admissions and dispatch disabled.
BREAKING: configuration keys are renamed before 1.0 so that the products
agree. Each old key is refused as an unknown key, so the product fails to start
until you change it. Values do not change. Edit these files before you start
the v0.47.0 binaries:
- The TLS trust anchor of the shared
databaseblock:
database.trustedRootCertificateRefis nowdatabase.caBundleRef. It is
still a secret reference to the PEM CA bundle the connection trusts. This
applies to the runtime configuration of BReg, Casework, Coordinator,
Scheduling, Messaging, the Document Store, and the Adapter facade. In the
Adapter job runtime configuration,store.trustedRootCertificateRefis now
store.caBundleRef. A Messagingsmtpprovider's
providers.*.trustedRootCertificateRefis now
providers.*.caBundleRef.rstack devwrites the new key in the runtime
files it generates. - Discovery
origins.yaml(DiscoveryOrigins):origins[].originIdis now
origins[].id. See the Discovery entry below for the new id rules and the
record-id effect of renaming an origin. - Evidence
EvidenceProject: the top-levelidis nowproject.id, and the
newproject.version(a human release label) is required. The top-level
labelanddescriptionare nowproject.labelandproject.description.
A top-levellabelordescriptionis refused withconfig.removed-key.
functionsis a map keyed by the Function id, so
functions: [{id: X, ...}]becomesfunctions: {X: {...}}. The Evidence
starter fragmentevidence/starter/definitions.yaml.fragmentnow writes that
shape. - Coordinator
CoordinatorProject: the top-levellabelanddescriptionare
nowproject.labelandproject.description. A top-levellabelor
descriptionis refused withconfig.removed-key. The compiled presentation
and the workflow's identity do not change. - Render: the deprecated bare hex digest members and headers are removed. See
the Render entry below for the names and the upgrade order.
Run each product's check command on the edited files before you restart.
BREAKING: collections that were lists of entries with an id member are
mappings from each id to the rest of the entry. This is a pre-1.0 cleanup, so
an item has one name and a duplicate cannot be written. In every file below, the
old list shape is refused, and so is an id member inside an entry, with a
message that names the mapping. A repeated key is refused at the repeating key.
Items are held sorted by id. Check findings and the source pointers in
bregctl explain name the id in place of the position, for example
/senderProfiles/reminders-sms/onUncertain. An entry with nothing else to say
is written registry: {}.
- BReg project and modules:
datasets,vocabularies,statisticalDatasets,
reviewAuthorities,evidenceProviders,externalRecordTypes,
externalProjections,externalViews,actions,functions,
accessProfiles, andrecordTypes. Write
datasets: {registry: {display: ...}}in place of
datasets: [{id: registry, display: ...}], and the same for each of the
others. A module'saccessProfileson its Record types and on its
extendRecordTypesentries are mappings too. - BReg
extendRecordTypesis a mapping from the extended Record type to the
extension, with no innerrecordType, so a module extends a type once. Write
extendRecordTypes: {entry: {fields: ...}}in place of
extendRecordTypes: [{recordType: entry, fields: ...}]. - BReg
moduleslock: write
modules: {core: {version: 0.1.0, digest: sha256:...}}in place of
modules: [{id: core, version: 0.1.0, digest: sha256:...}]. - After converting a BReg module, run
bregctl project lock. Every module
digest changes, even a module that declares no action or function, because an
empty list is now an empty mapping. Registry revisions change with them.
Compiled output, explanations, and the manifest metadata keep their shapes.
Commands that listeddatasets,reviewAuthorities, or a module's actions
in the order the project wrote them now list them in id order. - Two default access profiles may no longer share an operation on one Proposal
action. BReg refuses them withbreg.proposal.default-multiple. bregctl module add consentrefuses a project that already declares an access
profile the module would generate, withmodule.consent.profile-clash
naming the profile.- Messaging
messaging.yaml:providers,senderProfiles, and
accessProfiles. Writeproviders: {mail-relay: {type: smtp}}in place of
providers: [{id: mail-relay, type: smtp}], and likewise for the other two.
templatesstays a list, because a template is named by its id and version.
The authoring schema states each mapping's size asminPropertiesand
maxProperties. Rebuild packages withmessagingctl package, because the
package digest changes. - Scheduling
scheduling.yaml:services,offerings,holidaySets,
openings, andhooks. Write
services: {registry-update: {label: Registry record update}}in place of
services: [{id: registry-update, label: Registry record update}], and
likewise for the other four. Thelocations,pools,windows, and
exceptionslists inrecords.yamland the fixture files are unchanged.
Findings read like/offerings/registry-update-30/exactTime/durationMinutes,
and theschedulingctl checkreport lists ids in sorted order. Rebuild
packages withschedulingctl package, because the policy digest changes.
Scheduling then starts on a new database, as the upgrade section says. - Discovery
origins.yaml:originsis a mapping from each origin id to the
rest of its entry, held in id order, with theidmember gone. Write
origins: {evidence-one: {catalogUrl: ...}}. A repeated key is a
yaml.duplicate-keyfinding at the repeat, which replaces
discovery.origins.duplicate-origin-id. Findings read like
/origins/evidence-one/catalogUrl. The schema bounds the mapping at 128
entries. The published provider-publication profile does not change. caseworkctl provider addprints the BReg project fragments it proposes in
the keyed form:accessProfiles,reviewAuthorities, andactionsentries
are keyed by id, with no innerid. Change paths and failure locations in
the BReg project name the id as a path segment, for example
actions/correct-address/execution/proposal/reviewContextin place of
actions[id=correct-address].execution.proposal.reviewContext. A location in
bregctl explainoutput, which keeps its list shape, keeps the selector form.
The shared project block of Adapter, Casework, Coordinator, Evidence, Messaging
and Scheduling also accepts an optional label and description, as display
text for people. They change no behaviour or compiled output. A Messaging or
Scheduling package digest covers the authored files, so adding or changing one
changes it. BReg is the exception: its display text stays under
project.display, which is part of the registry revision, and a BReg project
that sets project.label or project.description fails to parse.
BREAKING for Render callers: upgrade every product and binding that calls
Render with or before the Render server. A v0.46 client still requires
pdfSha256 and dataSha256, and fails every render with a protocol error
when the server no longer sends them. Read pdfDigest and dataDigest
instead. Every v0.46.0 server already sends them.
BREAKING for Discovery consumers: an origin keeps its record ids when its id
already fits the new local identifier pattern. An origin you rename to fit the
pattern publishes its new id as originId, so its record ids change. Tell
every consumer that pins that originId to pin it again.
BREAKING for Coordinator clients: upgrade the Rust, Python, and Node clients
with the server, once. Clients from before this release refuse response
members they do not recognise. They refuse every run status that carries the
new stepLabel, even when it is null. From this release the clients ignore
unrecognised members, so a later minor release can add members without
another client upgrade. Rust code that builds the client RunStatus as a
struct literal must set step_label.
BREAKING for Evidence, OID4VCI, and OID4VP metrics: the metrics listeners
refuse link-local and IPv4-mapped IPv6 addresses. If you bound metrics to an
address such as 169.254.1.1:9090, move it to a loopback or private address.
You can also set metricsListener.networkExposure: container-private, as
described under operator metrics below.
BREAKING: BReg holds task grants to their stated limits. See
BReg task grants.
- A bearer token that carries a Casework task grant (
registry_grant_*
claims) must carryiatandexp. Its lifetime,exp - iat, must be at
most 900 seconds. Itsiatmust not be later than BReg's clock plus
authentication.oidc.leewayMilliseconds. BReg refuses any other such token
with401 authentication.refused, whatever time it has left. - Confirm that your exchange issuer issues task-grant tokens for at most 900
seconds, and that its clock agrees with BReg's within the leeway. Casework's
documented exchange step uses 300 seconds. Tokens without a task grant keep
theauthentication.oidc.maximumTokenLifetimeSecondsceiling. - Record reads, read paths, statistics, and the Proposal review-record read
admit a task grant only before its deadline. The grant must also name the
request's principal and purpose, read from
authentication.authorityClaims.principaland
authentication.authorityClaims.purpose. A mismatch answers the ordinary
404read refusal. Immediate Actions and Proposals already required this. - Nothing changes if your principal claim is
suband your purpose claim is
the contextual purpose claim. Otherwise, issue the exchanged token with the
profile's principal and purpose claims.
BREAKING: the BReg subject access log keeps the access reason and the access
kind in their own columns, and the managed schema fingerprint changes with
them. Install this release on a fresh database. See
BReg access log.
BREAKING: Scheduling appointment detail (GET /v1/appointments/{id}) depends
on how the caller was admitted. A token that holds the reads scope reads the
appointments it owns, as before. A token admitted only through an
appointment.read task grant is held to that grant's service, location, and
current status. This holds even for an appointment its own subject booked. A client that
reads its own bookings with a grant-only token must also carry the reads
scope. See Scheduling task grants.
BREAKING for Evidence:
acquisitionDeadlineMillisecondshas a maximum of 300000 (300 seconds). The
limit applies in the authored target
(sourceAcquisition.acquisitionDeadlineMilliseconds) and in the runtime
configuration. A longer deadline fails to load with a range error that
names the field. Nothing is clamped, so write a value of at most 300000.- Evidence does not release an acquisition result after the caller's task
grant has expired, even inside the acquisition deadline. The caller
receives403 evidence.denied, and the audit records the safe error
categorygrant-expired. Issue grants that outlast the source round trip
and signing. evidence-oid4vcirefusesoffers.allowedClients: unrestrictedand
offers.requiredScopes: unrestrictedwith
evidence.oid4vci.offer-gate-unrestricted, unlessvalidationModeis
supervised-local-development. This replaces the v0.46.0 advice to write
requiredScopes: unrestrictedwhere the member was absent. List the clients
that may request an offer and the scopes they must hold.
BREAKING: Casework refuses a casework.yaml whose access profiles for people
name different principalClaim values. People's profiles are staff,
supervisor, administrator, an initiator profile, and any other requester
profile. The refusal is casework.access-profile.mixed-principal-claims.
Profiles that a trusted producer uses are compared only with each other. Set
the same principalClaim on every person's profile, and issue that claim in
every person's token.
BREAKING: the Adapter facade polls an asynchronous write only at the source
origin it was sent to. Before the send, the write's store row pins the
configured baseUrl of every endpoint its write, status, and uncertainty
routes reach. Rotating a credential changes nothing. After a baseUrl change,
an unfinished write is held and never polled. Its status link answers the
stored 202, and a retry answers 409 without Retry-After. This lasts until
you restore the original baseUrl or the write expires. Let asynchronous
writes settle before upgrading. Rows written by an earlier version are
quarantined and expire.
BREAKING for Adapter ingestion jobs (adapter-job), which you build from the
tagged source:
- An item counts as possibly admitted when its BReg or Coordinator answer was
lost and the retry was then refused. A later source edit orrescanof the
item goes to the job's revised trigger. Without one, it is held as
adapter.job.revised-item. An item whose first attempt never arrived is
held the same way. No Adapter command releases a held item. - Store schema 104 applies this rule to every refused revised event with a
frozen receiver, and to a refused first registration with a recorded retry.
Some legacy refused items have earlier attempts the store did not record.
Before you runinit-storeand resume ingestion, check BReg or the
Coordinator for admissions of those items. See operate the Adapter. - The direct BReg receiver identity now includes
clientAssertionAudience. A
direct BReg item left pending by an earlier binary stops the pass as
adapter.job.breg-receiver-changed, and no configuration releases it.
Before upgrading, take a database backup. Then run passes with the previous
binary untiladapter-job statuslists no pending items. init-storemoves the store to schema 104, which the previous binary
refuses. If pending items remain, restore the backup, settle them with the
previous binary, then upgrade and runinit-storeagain.
BREAKING: rstack dev replaces the per-product development sessions:
api --clientis removed frombregctl,caseworkctl,coordinatorctl,
discoveryctl,evidencectl,messagingctl, andschedulingctl. Pass
--url URL --header @FILEwith the header file that
rstack dev token RUN --as PERSONwrites, or use a saved--connection.caseworkctl devand itsdev-clients.yamlformat,evidencectl dev, and
bregctl examples revieware removed. Run the project withrstack dev.evidencectl check --filenow checks the ThunderID task-connection and
session files thatevidencectl dev checkchecked. The
evidence/dev-stateformat is gone.evidencectl access client add|list|revokeandevidencectl audit showare
removed with the local session they managed. A run's people and grants live
indev.yaml.evidencectl source addis removed. Prepare the BReg side with
bregctl dev prepare-source, and write the source handoff with
bregctl generate evidence-source. Then add it to the Evidence project with
evidencectl source import.evidencectl request prepareno longer takes--client. Pass the Evidence
origin with--evidence-urland the runtime configuration with
--runtime-config FILE. Pass the caller's bearer token as an owner-only
header file with--header @FILE, asrstack dev tokenwrites it.bregctl devandmessagingctl devremain.
BREAKING: evidencectl tooling language-server and the VS Code and Zed
extensions are removed. No desktop editor integration replaces them. Studio is
the only editor with Registry Stack navigation. Schema validation through a
stock YAML language server is unchanged, as evidencectl tooling editor
writes it. To check a project outside Studio, run the product's check
command.
BREAKING: bregctl explain access emits v1alpha9, and
bregctl explain model emits v1alpha8. Access adds the required
claimContract.requesterClients and now requires
claimContract.purposeRequired. Model adds the required requiresPostgis. A
consumer that pins the earlier versions must accept the new apiVersion
values. See explain schemas and compatibility.
BREAKING for BReg client code: a GeoJSON Feature's geometry is a union of
Point, Polygon, and MultiPolygon, where it was always a Point. The wire format
of a Point is unchanged.
- Rust:
geometryisOption<BRegGeoJsonGeometry>instead of
Option<BRegGeoJsonPoint>. MatchBRegGeoJsonGeometry::Point(point)before
you readcoordinates. - TypeScript:
GeoJsonGeometryreplacesGeoJsonPointon a feature. Narrow
ongeometry.type === "Point"before you readcoordinates. - Python: the
.pyistubs describe the union, so a type checker flags code
that assumes a Point.
Local development with rstack dev
rstack dev is an alpha developer tool and may change. See
Run a project with rstack dev.
rstack dev check,start,status,token, andstoprun a checkout's
BReg, Casework, Evidence, and Messaging projects, alone or together. The
plan is anrstack/devdocument indev.yaml.rstackhands the plan to
the CLI of the first product it lists, so install only the products the
plan names.- Each run starts its own PostgreSQL in Docker, on loopback with TLS. To use
a server you already run, pass--database-urlor set
RSTACK_DEV_DATABASE_URL. The PostGIS image that spatial BReg projects need
is linux/amd64 only, so it runs emulated on Apple Silicon. - A plan defines up to 256 synthetic people.
rstack dev token RUN --as PERSONwrites a bearer header file for one of
them. - An optional loopback browser issuer signs a synthetic person in to a
declared, already-built Node application. Start it with
rstack dev start --application-root DIRECTORY. Your project's access
profiles must admit the browser client explicitly. - A Messaging run sends
smtpmail to a Mailpit container andhttpSMS to
a mock gateway. The run report lists them undersinks, and each product's
runtime configuration underruntimeConfigs.messagingctl initnow points
atrstack dev start. - An Evidence project with its own
local-target.yamlruns on that target.
The run generates the development secrets the target references. - A BReg project with encrypted fields runs without extra setup. Each run
draws its own development data key into its run directory, readable only by
you, and removes the key with the run. - In a paired BReg and Casework run, a reviewer can send a separate source
credential for BReg beside the Casework token. scenarioFileindev.yamlnames anRStackScenariosv1alpha1 file inside
the project. It holds 1 to 16 named scenarios, each of 1 to 32 steps, with
at most 64 steps in total. The run report lists each result under
scenarioswith the file's hash.- A plan with an inline
journeykey is refused with the fix to move its
steps into a scenario file. A tool that wrote an inlinejourney, or read
journeyfrom the run report, must write a scenario file and read
scenariosinstead. - A failed step keeps the product's public problem code and trace ID. An
exact JSONnullassertion is accepted. - With
--format json, refusals and startup failures print a
registry.rstack.error.v1object. Itserror.classisdomain(exit 1),
usage(exit 2), oroperational(exit 3). When the run still holds
resources, the object names itsrun_idand any knownrecoverydetails. - A failed journey exits 1 with the regular run report and leaves the run
available for you to inspect. rstack dev stop RUN_ID --recoverreleases a run whose supervisor is gone.
It waits for the process guards, drops the run's databases and roles, and
removes its containers and run directory. You can retry it after a partial
failure. It retries a database drop that another backend still holds, until
the cleanup deadline.- The plan and scenario schemas are published under
products/platform/generated/dev/, and the error object under
products/platform/schemas/rstack-dev-error.v1.schema.json.
BReg
- Statistical datasets declare
measures:count,distinct-countover a
referencefield,sumandmeanover integer or decimal fields,ratio
of two additive measures, andpercentile. Live reads serve every measure
type. - A new
read-exactoperation serves exact statistics of ended periods to one
named machine consumer, through
GET /v1/statistics/{dataset}:exact?from=<period>&to=<period>. The dataset
names the visibility it computes under withexactReads. An exact read is
as sensitive as the records, so grant it only to a named service under a
data-sharing agreement. - A new disclosure method,
exact-public-values, releases exact values when
the unit record type and every field the dataset reads are classified
public. - A
minimum-count-and-roundingrelease can carry distinct counts. Sum
releases under that method have contributor and dominance rules, but stay
refused withbreg.statistical-dataset.sum-release-helduntil a
statistician has reviewed them. Serve sums through live reads, exact reads,
or an exact public release until then. - A publisher can dry-run a publication with
POST /v1/statistics/{dataset}/releases/{period}/versions:dry-run. It
returns the document a publication would store and the suppressed cells,
and stores nothing. The clients gainstatistics_release_dry_run,
statisticsReleaseDryRun,statistics_exact, andstatisticsExact. - The BReg security model adds BREG-SEC-211 and BREG-SEC-212 and residuals
BREG-RES-24 to BREG-RES-26 for exact reads and releases.
Read-only external views let a registry show a person or business held in
another registry beside its own Record. BReg does not copy the other
registry's data into the Record. See
external projections.
- Declare
externalRecordTypes,externalProjections(mode: liveor
indexed), andexternalViewsin the project. GrantexternalViewsand
refreshExternalProjectionsin an access profile. - Only a service profile with explicit clients, scopes, and purposes may hold
refreshExternalProjections. - In the runtime file, bind each source under
externalSources. Its
allowedFieldsis your approval of the outside fields BReg may copy. Give
each indexed link a refresh plan underexternalRefresh. - Readers use
GET /v1/external-views/{view}/{link}/recordsand
.../records/{root}. A staff application's service client can ask for one
root to be refreshed withPOST .../records/{root}/refresh. - A source notifier posts to
/v1/external-refresh-plans/{plan}/source-changes. An Adapter projection
operation serves the outside values. - BReg runs refresh plans in process, each as its configured worker identity.
bregctl checkrefuses a plan whose worker its access profile would refuse,
withbreg.external-refresh.worker-not-admitted. - A plain indexed list marks a record whose outside copy is missing as
unavailableand keeps serving the rest. A filtered, sorted, or counted
list returnsregistry-breg/external_view/incompleteuntil every record it
reads has a current copy. bregctl external-projection inspectandpurgeoperate the cached
values.bregctl generate external-source-factswrites the source facts.- An indexed projection keeps its cache in four store tables and two refresh
queue tables inregistry_internal. It needs separate migration and
runtime database roles. - Exclude the cached data from logical backups with
--exclude-table-data='registry_internal.registry_external_*'. Physical
backups, WAL archives, and replicas still carry the cached values. See
back up and restore.
Access profiles gain three controls. See
BReg access.
- A record permission can set
requiredFilters, a list of alternativefields
sets that alistmust pin with top-leveleqpredicates carrying a
non-null value. A list or$countthat does not is refused with
400 query.filter_requiredbefore any query runs. The problem carries a
requiredFiltersmember that names the acceptable sets as API field names,
and a fixeddetail. A continuation page cannot drop the criteria, because
the signed cursor binds the first page's filter. bregctl checkrefuses arequiredFiltersthat has an empty alternative,
repeats an alternative, has more than eight alternatives or an alternative of
more than 32 fields, names a field outside the same grant's
filterableFieldsor one that cannot takeeq, or sits on a grant without
listor withallowDataExport, whose pages carry no filter
(breg.access-profile.required-filters-export-unsupported). An emptyrequiredFiltersis refused when the file is read, with
config.invalid-value, so omit the key to put no criteria on lists. A field
repeated within one alternative is refused withconfig.duplicate-item.- Runtime metadata lists the alternatives beside
filterableFields. The Rust
client exposesBRegQueryDescriptor::required_filtersand
BRegProblemCode::QueryFilterRequired. The OpenAPI problem enum gains
query.filter_required, and the Problem schema gains a bounded
requiredFiltersmember, so a package's revision changes on rebuild. The
OpenAPI declares that400on a list operation only where an admitted
profile requires a filter. The ODRL export omits a list grant under
requiredFilters, with the reasonrequired-filters, and still exports its
get. The key governslistonly. Lookups, get, read paths, andsnapshotare
unchanged. - A Record type can declare
disclosureConditions, a mapping from each
condition id to the condition. Each is a conjunction of one to four literal
tests on the record's current values. It withholds the whole record
(withhold: record), its revisions and snapshots (history), or named
optional fields (fields) from every access profile that does not list it
underexemptProfiles. A profile that writes the type only through an Action
or Proposal permission can be listed. The record timer is never withheld
from. - A withheld record answers as an absent one. A withheld member is
nullon
reads and revisions and absent from write responses. A JSON Patchteston a
withheld field is refused. A direct write, immediate Action, or Proposal
applied by hand is refused withwrite.outside-boundarywhen arecord
condition would hide its result from the writer. It is also refused when a
condition that binds the applying profile matches the record and the write
names a field it withholds, changes a field a constraint checks together with
one, or would lift the mark. A bound profile cannot tombstone a record that a
fieldsorhistorycondition binding it matches. An import item the write
rule refuses answers the generic412 precondition.failed. - A Proposal applied automatically is checked against the profile that
submitted the version being applied. An exempt submitter's Proposal can make
that change, and one whose submitting profile was removed or lost its
exemption is refused. An automatic Proposal still reads and writes under
system-proposal-apply, which no condition can exempt. So even for an exempt
submitter it cannot change a record arecordcondition matches or set a
recordmark. It endsblockedwith no retry scheduled and the record
unchanged. Use an immediate Action, or apply the Proposal by hand under an
exempt profile. - PostgreSQL enforces a
recordcondition as a restrictive row policy.
bregctl checkrefuses a bound profile whose filters, sorts, lookups,
export, hook projections, read paths, row, membership, or consent boundaries,
derived fields, spatial queries, Evidence facts, external view links, or
statistical datasets reach a withheld value (breg.disclosure.*). A read path
grant whosefilterableFieldsorsortableFieldsnames a field withheld on
the path'stoRecord type is refused
(breg.disclosure.read-path-withheld-field), because the filter and sort run
before the field is withheld. It refuses a read path grant that reads,
filters or sorts a derived field when the derived SQL reads a withheld field
(breg.disclosure.derived-reads-withheld-field). It refuses arecord
condition on a consent Record type that arequireConsentnames
(breg.disclosure.consent-record-condition), because the consent check reads
that type under the gated profile and a hidden revocation would let an earlier
consent stand. Afieldsorhistorycondition there stays allowed. It also
refuses a Record timer that reads a withheld field, and a Record timer on a
hidden record that creates a record a bound profile reads. bregctl checkwarns when a field afieldscondition withholds is in a
uniqueness constraint or a partial one'swhen, a unique encrypted lookup, or
a temporal non-overlap. A Create, or a Patch of another record, that repeats
the value answers409and confirms that it exists on a hidden record
(breg.disclosure.withheld-field-probe). It also warns when arecord
condition on a view's root binds a profile that may refresh the view, because
the refresh then skips the records the condition matches and still succeeds
(breg.disclosure.external-refresh-withheld-root).- Runtime metadata flags
mayBeWithheldand lists the bound conditions without
their literals.bregctl explain accesslists them in full, the access
preview names the ids that bind a profile, and the ODRL export omits a grant a
condition binds (disclosure-condition). Proposal inputs stay visible to
reviewers, and a uniqueness or reference conflict on a Create or Patch can
reveal that a withheld record exists. The
BReg security model gains
obligation 22 and BREG-RES-27 for these limits. Packages that use the new key
change revision, and the metadata, OpenAPI, and Explain documents gain members that
earlier clients ignore. - An access profile can set
requireAccessReason: true. A request under it
without a validRegistry-Access-Reasonheader (unpadded base64url UTF-8, at
most 512 bytes) is refused with400 request.access_reason_required. The
reason is stored on the subject access log entry and returned as
accessReason. - On a Record type with
accessLog, each record a direct Create, Patch, Batch
item, or Tombstone changes gets an entry with the reason and
accessKind: write, written in the same transaction and raising no read
alert. Action and Proposal writes record none. A read entry carries
accessKind: read. - A hook with
trigger: readandprofilesraises a value-free event for each
logged read by those profiles, carrying anaccessobject. The event is
written with the access log entry, sobregctl checkrefuses a read hook on
a Record type withoutaccessLog
(breg.disclosure.read-hook-access-log-required). bregctl checkrefusesrequireAccessReasonon a profile that grants import,
invoke, start,allowDataExport, or an action, proposal, dataset, external
view, or projection-refresh permission, which do not check the reason
(breg.access-profile.access-reason-operation-unsupported). The ODRL export
omits each grant of such a profile (access-reason).
Other BReg changes:
- A
crs84-polygonfield stores a boundedPolygonorMultiPolygonin WGS
84 longitude and latitude. It takesprecision,maximumPositions, and an
optionalbbox. The compiler validates it with PostGIS and generates a
stored geometry column with a GiST index. A bbox grant filters Polygon and
MultiPolygon fields by bounding-box intersection, as it does for a Point. - A Rhai Action plan can call
today(),add_days(date, days), and
add_months(date, months). A registry that callstoday()must set
project.timezone. A Proposal plan evaluatestoday()when the Proposal
starts, and its guards compare again at Apply. - A date guard in
commitGuardsacceptscurrentDateOffsetDays, a signed
whole-day offset.bregctl project action-testtakes
--evaluation-date YYYY-MM-DD, which a handler that callstoday()
requires. See Actions. - An applicant can see where a submission is in review. Set
readableReviewProgress: trueon the caller-owned Proposal grant that
includesget-review-status. Then read the Proposal'sreviewStatuslink
withinclude=progress. - The progress response can add a
progressCodefrom the review provider,
and omits the Proposal ETag. The clients expose
read_proposal_review_status_with_progressand
readProposalReviewStatusWithProgress. See
Proposals. - Fix reading back an encrypted field on PostgreSQL. A read failed with
503 source.unavailableonce a stored value's encrypted envelope exceeded
57 bytes. A reviewed migration whose history capture read such a value
failed its apply. - The encrypted-field fault was in every release from v0.33.0 through v0.46.0.
No stored data changes, and nothing needs migrating. - Runtime Action metadata (
GET /v1/registry,metadata/registry.json, and
the OpenAPIx-registry-actionextension) carriesexecution.review
(noneorrequired) andexecution.application(manualor
automatic) for each Proposal Action. A host can use them to explain what
follows Submit. Immediate Actions carry neither. The review authority,
source, policy, and attempt limit stay in the build-time Action contracts.
The members are additive withinmetadataVersion: "2", and earlier clients
ignore them. - The Rust client exposes
BRegActionDescriptor::review()and
application(). They returnBRegActionReviewandBRegActionApplication,
each with anUnknownvariant for a value the client does not recognise. The
registry-stack-clientfacade re-exports both. The Node.js and Python
clients exposereviewandapplicationon each Action as the served
string. They arenull(Nonein Python) when an older server sends none. - Request audit records include a keyed
clientReferencewhen the bearer
verifier matches an allowed OAuth client. It uses the same pseudonym as
authorization.clientPseudonym. Client identifiers and tokens stay out of
the journal. - The Node.js client's record, list, continuation, metadata, contract,
schema, revision, and lookup reads accept a final{ signal: AbortSignal }
argument. Aborting rejects with aBaseRegistryClientErrorof kind
cancelled, and no read is retried. - The Node.js and Python clients expose the ETag observed on each Proposal
response, asresponseEtagandresponse_etag.
Casework
- A review stage can offer a subset of the policy's outcomes with
stages[].outcomes. A stage that omits the list offers every outcome.
caseworkctl checkrefuses a stage that offers no advancing outcome. - A stage can show the applicant a coarse progress code with
publicProgressCode. The code is part of the frozen policy digest. The
admitted producer reads it with
GET /v1/review-requests/{requestId}?include=progress. - Before you activate a policy that sets a progress code, upgrade clients that
decode the full policy. An older client may reject the added stage field. A
policy that omits the field keeps its earlier digest. - A human reviewer's request can carry a separate credential for the source
registry. SethumanSourceAuthentication: {audience: ...}on a
contextProvidersbinding, with an audience that differs from Casework's
own. - The request then sends one
Registry-Source-Authorization: Bearer ...
header. Both tokens must be human, with a scalar audience and the same
issuer andsub. The source registry still enforces its own client,
profile, and disclosure. See
Casework configuration. - The Rust, Node.js, and Python clients take a
HumanSourceCredentialper
call and reporthumanSourceCredentialContract()
(human_source_credential_contractin Python). caseworkctl explainadds a top-levelaccessProfileslist with each
profile'sidandprincipalClaim.caseworkctl check --runtime-configrefuses acontextProvidersbinding
that startup would refuse, without resolving a secret. The diagnostic is
casework.runtime.invalid-context-provider.rstack devruns Casework projects through the installedcaseworkctl, so
a plan with only Casework projects needs nobregctl.
Coordinator
- A workflow can start on a reviewed monthly calendar. Write
MIN HOUR 1 * *
orMIN HOUR L * *with a named IANA timezone. Admission supplies only
scheduledAtand catches up with the latest due occurrence. It records how
many occurrences it skipped. - A new Workflow revision keeps an occurrence already due, unless the
trigger's cron or timezone changed. A changed schedule runs nothing the
previous one left due, and audits the skipped count as
calendar-reschedule. workflow.serviceDeadlineSecondssets an optional service deadline with a
separateonDeadlinepath. It counts from Run admission and caps wait
wake-ups. A still-pending wait takesonDeadlineonce, including after a
restart.- Read and evaluation call steps take an optional
onFailureroute. A
definite availability failure takes it once the retry limit is exhausted. It
is also taken when the next retry would not fit before the run deadline. - The
onFailureedge carries no call output. Mutations, refusals, invalid
answers, and uncertain outcomes remain operational failures. - Every run status carries
stepLabel. It appears in start, status, list, and
cancel answers and in therunmember of an inspection. It is the authored
label of the current step, read from the workflow definition the run was
admitted on, so a later package that only relabels the step does not change
it. It isnullwhen the step has no label and after retention erases the
run's stored payload. The protected state schema does not change. - The Coordinator is now promised at Registry Stack 1.0, as the sixth promised
product, instead of an experimental surface. The promise covers the
workflow.yaml,runtime.yaml, andscenarios.yamlformats, the HTTP API,
and thecoordinatorclient namespace. Operations that call Registry
Scheduling or Registry Messaging stay experimental with those products. The
state baseline and thev1alpha1version strings do not change.
Registry Adapter
- A reviewed projection operation serves BReg's read-only external views. A
projection pack whosefieldsSchemaconstrains which fields are present is
refused when the projection compiles. Describe each field only. - An ingestion job can receive a governed offline QField submission. The
qfield-postgisexample reads a site point, its boundary polygon, and
repeated contact rows from the collection database QFieldSync returns to.
It starts a BReg Action or Proposal from them. - PostgreSQL job sources can project bounded JSONB values, such as that
geometry and its related rows. Item keys and query parameters stay scalar. - The
adapter-jobhost is still not released. Build it from the tagged
source to use these job features.
Evidence
- A
requestNoncethat is not 32 random bytes in unpadded base64url (43
characters), or that repeats within a batch, is refused as
request.nonce-invalid(400) instead ofevidence.invalid-request. The
problem detail states the expected format and never carries the value sent.
A client that branches onevidence.invalid-requestfor this case must also
accept the new code. The Evidence clients already classify it as
invalid-request. - The check, explain, and inspect reports show the project's version under
projectPresentation. The compiledEvidenceBundlestill carries only the
project id, so bundle bytes and definition revisions do not change. - A reader refuses a duplicate Function id as a duplicate key, so the
evidence.project.function-uniquefinding is gone. Diagnostic paths name the
Function by id, for example/functions/derive-status/sourceinstead of
/functions/0/source. - A relying party can test its own verification of an Evidence answer. The
synthetic vector infixtures/conformance/consumer-verification/gives a
signed response, the key to pin, the expectations, and the cases to accept or
refuse. See
Verify an Evidence answer.
Render
- The render route and
compile --format jsonsend only the labelled digests.
The bare hex members and headers are removed:pdfSha256is now
pdfDigest,dataSha256is nowdataDigest,X-Registry-Pdf-Sha256is now
X-Registry-Pdf-Digest, andX-Registry-Data-Sha256is now
X-Registry-Data-Digest. The OpenAPI document no longer declares the old
names. - Audit entries rename
pdfSha256topdfDigestanddataSha256to
dataDigest. Their values are labelledsha256:<hex>, like the seal digests
beside them. Update any reader of the audit journal. - In
registry-render-client,RenderedDocumentdropspdf_sha256and
data_sha256. The Node and Python bindings droppdfSha256anddataSha256.
The client checkspdf_digestagainst the bytes and checks that
data_digestis labelled. - The OpenFn example
integrations/openfn/receipt-job.jspostspdfDigest
(labelledsha256:<hex>) to the delivery endpoint in place ofpdfSha256.
It returnsreceipt.pdfDigestin place ofreceipt.sha256.
Discovery
- The id of an origin is a local identifier: a lowercase letter, then up to 63
lowercase letters, digits,_, or-. Uppercase letters,., a leading
digit, and ids longer than 64 characters were accepted before. They are now
refused at/origins/N/id. Thediscovery.origins.invalid-origin-idfinding
is gone, and the shared local identifier check reports instead. origins[].enabledis optional and defaults totrue.enabled: false
still leaves an origin out ofdiscoveryctl package.- For an origin whose id already fits, the index, the resolve API, and record
ids do not change. The published member staysoriginId, and a record id
hashes the same inputs as before.
Operator metrics
- Registry Scheduling, the Document Store, Render, and the Adapter facade and
job can serve Prometheus metrics on an optional operator-private listener.
SetmetricsListener.bindto a loopback or private address, distinct from
the serving listener. It is off by default, and the serving listener never
answers/metrics. Render refuses a link-local address, and the Adapter
refuses an address equal to its serving or hook listener when it reads the
document. A metrics listener closes within 10 seconds of a stop signal, even
with a stalled client. - Scheduling reports outbox and observer-hook work by state, including
dead-lettered, how far the oldest pending item is past its due time, the
last success of the hold-expiry and retention workers, and requests by route
and status class. - The Document Store reports content verification, erasure, and hook delivery
jobs by state, the age of the oldest overdue item of each, the last success
of the cleanup pass, and requests by route and status class. - Render reports documents by operation and result, audit write failures, and
the seconds until each configured seal certificate expires. - The Adapter facade reports requests by route template and status class,
upstream failures by class, journal write failures, and retention sweep
failures. The job reports items by state, includingheldandrefused, the
age of its last settled pass, pass failures, hook refusals, and failed item
samples. Held items stay read-only, and the owning product resolves them. - BReg adds
breg_hook_deliveriesby state, includingdead-lettered, and
breg_ingestion_runsby state, includingblocked. Its monitor page now
lists all seven background workers, includingrecord-timer. - Casework adds
casework_completion_deliveriesby state, including
dead-lettered, andcasework_completion_oldest_undelivered_age_seconds.
Review counts and the backlog are sampled separately, so one failing read
does not hide the other or setcasework_database_upto 0. - Coordinator adds
coordinator_runs_attentionby reason,
coordinator_runs_restore_review_required,coordinator_hold_activefor the
restore and admissions holds, andcoordinator_oldest_due_age_secondsfor
the oldest pending step a worker can claim. The counts cover every run, not
the capped list incoordinatorctl doctor. - Every metrics listener accepts
metricsListener.networkExposure. The default,
private-address, keeps the loopback-or-private rule. Set
metricsListener.networkExposure: container-privateto also allow the
unspecified address (for example0.0.0.0), for a container whose network is
private to the deployment. This covers BReg, Casework, Coordinator,
Scheduling, Messaging, the Document Store, Render, Evidence, the OID4VCI and
OID4VP services, and the Adapter facade and job. - Database-backed gauges in BReg, Casework, Coordinator, Scheduling,
Messaging, and the Adapter job are read under one 5 second scrape deadline.
The server cancels a slow read with a statement timeout set to the time left.
The product logs a failed read by error class. - A failed sample does not stop the other samples. BReg, Coordinator,
Messaging, Scheduling, Casework, and the Document Store count failures in
breg_metrics_sample_failures_total,
coordinator_metrics_sample_failures_total,
messaging_metrics_sample_failures_total,
scheduling_metrics_sample_failures_total,
casework_metrics_sample_failures_total, and
documents_metrics_sample_failures_total. A failed gauge is left out and is
never reported as zero.
Language server and editors
registry-language-serveris now a standalone binary and a release asset
of its own. It ships for macOS arm64 and Linux amd64 only, as a plain
two-file archive covered by the release'sSHA256SUMS.rstack installdoes not install it. Download it from the release assets.rstack updatefrom an earlier installation (v0.44.0 to v0.46.0) refuses
this release, because thoserstackversions do not recognise the language
server asset. Run the v0.47.0rstackinstaller as for a first
installation, naming the components you use. Later updates work from
v0.47.0.- It runs on stdio by default.
--workspace-analysisserves Studio, where
definitionandreferencestake atargetor a cursorposition. Each
returned location carries arange.--versionreports the Stack version. - The bundled VS Code and Zed extensions are retired, as the compatibility
section describes.
K3s and Helm reference deployment
The repository holds a K3s and Helm reference for BReg, Casework, Evidence, and
an App Kit host, in its deploy/ folder. It is not a supported product or a
release asset. It is tested against v0.46.0 images, and its example values pin
those. Use it from the commit that carries the guide. Start with the
deployment guide
and the
operations guide.
Other changes
-
Messaging's SMTP client moves to lettre 0.11.24. It fixes RUSTSEC-2026-0560
to RUSTSEC-2026-0565: STARTTLS reply injection, missing dot-stuffing after a
bare CR or LF, and misaddressed quoted local parts. It also fixes two panics
on hostile input and unbounded buffering of a server reply. -
rusqlitemoves to 0.41.1, with a newer bundled SQLite, for
RUSTSEC-2026-0459.rmcpmoves to 3.9.0 for RUSTSEC-2026-0462. -
RustSec marks every
chronoandchrono-tzrelease unmaintained
(RUSTSEC-2026-0543 and RUSTSEC-2026-0555). Neither is a vulnerability
report, and the workspace keeps both for now. -
chrono-tzbundles IANA tzdata 2025b. Working days, weekly windows, and
Evidence local dates miss later rule changes, such as Morocco and parts of
Canada. A local date near midnight in an affected zone can be off by one
hour. -
Render logs a warning that names a worker's exit status or signal when the
worker exits before it answers. On Linux it also names the configured
address-space cap. The HTTP answer keeps fixed problem details and never
carries worker output. -
Every runtime image moves to a newer Distroless Debian 13 base pin, and the
image advisory baselines are renewed for it. The runtime images'libc6
overlay moves to 2.41-12+deb13u5, which fixes CVE-2026-5435 and
CVE-2026-19499. -
Adopter and operator documentation moved from
products/to the docs site.
This adds Adapter pages and a security model page for each product at
docs.registrystack.org/security.
The productSECURITY-MODEL.mdfiles are gone. -
BReg's WASM action handler executor moves to Wasmtime 48.0.9 for
RUSTSEC-2026-0566 to RUSTSEC-2026-0573. In 48.0.8, a handler module that
checked a function subtype at run time could abort the BReg process. -
Every image advisory baseline records eight High findings in the
libssl3t643.5.7-1~deb13u3 overlay as accepted risk: CVE-2026-124709,
CVE-2026-95691, CVE-2026-95692, CVE-2026-88823, CVE-2026-107496,
CVE-2026-107493, CVE-2026-84786, and CVE-2026-121482. Debian has no fix
yet. No shipped executable loads libssl or libcrypto: the products use
rustls, and none links OpenSSL or serves QUIC. Each exception lapses when
Debian publishes a fix.
Registry Document Store remains source-only in v0.47.0, as do the Adapter's
adapter-job host and evidence-oid4vp. The Coordinator image stays held,
while its binaries, installer, and clients ship as before.
See the changes since v0.46.0
and the principal changes in
#2630,
#2634,
#2637,
#2644,
#2648,
#2650,
#2655,
#2659,
#2665,
#2666,
#2667,
#2669,
#2672,
#2674,
#2684,
#2689,
#2690,
#2693, and
#2705.