Released docs. You are viewing the documentation published with v0.34.0. Development docs are available at Latest.
Review changes before updating a registry
For the data publisher
Base Registry Engine (BReg) owns the proposal, its frozen effects, source authorization, application guards, and the application receipt. Registry Casework owns reviewer stages and the review result. This tutorial checks the BReg half of that boundary before you connect the two services.
Copy the maintained example
Section titled “Copy the maintained example”From a Registry Stack checkout, copy the asset placement example:
mkdir -p tutorial-workcp -R products/breg/acceptance/asset-site-placement-change-requests \ tutorial-work/asset-correctionsbregctl check tutorial-work/asset-correctionsThe request entity declares the effect BReg will freeze and the logical review authority and policy Casework will evaluate:
changeRequest: effects: - target: {fromField: placement} operation: patch set: site: {fromField: proposed-site} review: authority: casework policyId: asset-placement-correction onApproved: mode: manual retention: mode: operator_erasereview is part of the immutable proposal binding. It is not a local BReg stage declaration.
onApproved.mode: manual means an ordinary caller must still hold the current apply_request
grant and every required applyTargets grant after BReg has reconciled an exact approved result.
Inspect the compiled boundary
Section titled “Inspect the compiled boundary”bregctl --format json explain change-requests tutorial-work/asset-corrections \ > tutorial-work/change-requests.jsonInspect tutorial-work/change-requests.json. The request has only four source lifecycle actions:
submit_request, revise_request, cancel_request, and apply_request. It also carries the
frozen review requirement, approved-application mode, effects, target entities, and application
grants. It has no BReg reviewer action or stage route.
Submission freezes request values, target identities and revisions, the effect digest, the review requirement, and application preconditions. A later package cannot silently change that proposal.
Check source roles
Section titled “Check source roles”The example separates these BReg roles:
- The submitter creates and edits its own draft, then submits, revises, or cancels it.
- A request reader may receive
review_statewhen itsreadableRequestFieldsgrants that disclosure. Reading review state does not grant a Casework decision or BReg application. - The applier holds
apply_requestand the requiredapplyTargets. BReg rechecks both at use.
Casework policy defines reviewer eligibility, stages, approval counts, and independence. Configure that policy in Casework rather than adding reviewer operations to BReg access profiles.
To use an automatic source application, change the authored binding to:
onApproved: mode: automatic executor: corrections-applierThe BReg runtime must separately bind corrections-applier to an ordinary credential and source
profile. Automatic application follows the same authenticated HTTP action and guards as manual
application. A completion notification is never authority to write the target.
Continue with the combined journey
Section titled “Continue with the combined journey”Follow Review Base Registry Engine changes in Casework to configure the authority client, submit a proposal, decide it under Casework policy, and apply it at the source. Use Declare change requests and actions for the complete authoring shape and Base Registry Engine API reference for the four source actions and review projection.