Repository navigation
Conversation
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
The completed identity facts report schema sits beside the BReg tool schemas but is an output an adopter reads, not configuration they write. Name it as a report schema so the inventory check still requires every other committed tool schema to be a documented contract. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
The secret scan's generic API key rule read the fixed attempt UUID, assigned to a constant named after the idempotency key, as a credential. It is a synthetic attempt identifier, so name it for what it is instead of widening the scan allowlist. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…schema The report schema joined the BReg v1alpha1 tool schemas without a regenerated catalog, so the reference closure refused its identifier. Regenerated with products/identifiers/scripts/generate.py --write. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
| return error.code, json.load(error) | ||
|
|
||
| status, result = check(number, checkCode=code) | ||
| assert status == 200 and result.pop("observedAt"), (status, result) |
The ctl-report registration's example is the completed identity facts report, which shares the explain report's apiVersion and kind. Read the explain example directly and keep the registration check for apiVersion and kind. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
The shared review test support signs tokens with TokenSigner and TokenFixture, which registry-platform-testing exposes only under token-fixtures. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
An offline dev check requires the owning tool's complete report for identity facts. The fake now prints the report real caseworkctl emits under the development posture, counting the facts it wrote. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
This was referenced Dec 2, 2026
Member
Author
|
Replaced by #2928, the one v0.51.0 pull request (all three lanes replayed onto v0.50.0 and folded). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #2887; rebased on main after v0.50.0 (700e8ea).
Status
Draft. This branch carries the same reviewed changes as #2887, replayed onto current
mainafter the v0.50.0 documentation and release notes landed. Only one rebase conflict needed a decision: the Platform changelog entry stays under Unreleased, above the new 0.50.0 section. Every other commit replayed unchanged.v0.51 pull requests do not merge before the v0.50.0 release source is cut. This draft is open so hosted CI can run the full workspace gate on the rebased tree.
Hosted CI on the rebased tree found six problems that local targeted checks did not cover. This branch fixes them:
bregctlreport schema as a report format, not configuration.bregctlexplain contract test reads the explain report example directly, because the registeredctl-reportexample is now the identity facts report.breg-mcpcitizen journey test enables the token fixtures that the shared Review test support now uses.caseworkctlin therstackDev tests prints the complete owner report that the offline check requires, as realcaseworkctldoes.Expected CI red:
Validate release manifest(registry-release validate-current). The current release manifest is the v0.50.0 source, and it pins the identifier catalog's hash and entry count. This branch adds one catalog entry, so the check fails until a v0.51 manifest exists. The v0.50.0 manifest is deliberately left untouched.Expected CI red until v0.50.0 is tagged:
Immutable docs archives. Without the tag, the archive check builds the v0.50.0 docset from this branch's source, and the documentation changes here move its hash away from the lock. Once the tag exists, the check builds from the tag. The archive lock is deliberately left untouched.Summary
v0.51.0 BReg and Casework journeys. This branch collects reviewed fixes and features for eight issues, plus the native and client handoffs for holder-authorized BReg Actions (#2835).
Closes #2828, #2874, #2881, #2869, #2879, #2875, #2877, #2823.
Part of #2835 (the operated proof and the public holder export are in #2911, and the shipped reference host follows in #2910, see below).
Applicant flows (#2800, #2801, #2802) and organisation stewardship (#2839, #2861, #2867, #2868) moved to v0.52.0 and are not in this branch.
What each issue delivers
#2828 Casework lease observation (test only)
crates/registry-casework/tests/review_postgres.rsnow reads fresh PostgreSQL activity with a bounded wait when it observes the dispatcher lease. It covers a stalled activity query timing out, a held row lock refused and rolled back, and stale-owner dispatch fencing. No runtime change.#2874 Missing array claim fixture (test only)
The
multi-reference-array-claimjourney expected 404 forrefuse-missing-array-claim. Both released v0.49.0 and the role baseline refuse earlier, at profile admission, with 403profile.not-authorized. The fixture now expects the observed refusal. The two 412 wrong-array cases are unchanged.#2881 Synthetic licence public check on released binaries (test only)
products/breg/evidence/tests/verify-composition.pygains a served mode that runs a synthetic licence public check against checksum-pinned released v0.49.0bregctland Evidence binaries. It exercises five public HTTP cases (success, missing input, wrong code, missing stored code, absence) and compares two exports against nine reviewed hash pins. The harness lets the released launcher cancel startup and cleans up both managed services and the disposable database. Because the role baseline changed two authoring fixtures, the harness pins the exact v0.49.0 Dev plan and BReg journeys it runs against (products/breg/evidence/public-check/*-v0.49.0.yaml). No product runtime change.#2869 Classification ceilings for stored BReg fields
Record permissions and read paths can select readable fields with
readableFields.upToClassificationinstead of an explicit list.requireConsentmust use explicit lists for its direct reads and read paths. A ceiling there is refused withbreg.consent.readable-fields-explicit-required(BREG-SEC-245).#2879 Generated BReg role inventory read-back
bregctl generate identity-factsnow reports the exact YAML bytes it wrote: length and SHA-256 are taken from the written artifact. It refuses to overwrite an existing output (identity-facts.output-exists). A new generated tool schema,products/breg/generated/tools/ctl-report.v1alpha1.schema.json, describes the completedBRegCtlReportfor this command. It is registered inproducts/platform/config-formats.yamlwith a positive example and listed in the public identifier catalog. The existingexplainreport example keeps its own byte-for-byte check against currentbregctl explainoutput. Tests compare the native writer's facts with an independently compiled authority inventory. The saved-report reader (#2878) and the conformance witness (#2880) live in other changes.#2875 Product references in unassigned service roles
An unassigned role in
service.yamlcould name an unknown product and passrstack dev checkand hostedrstack identity check. The shared role checker now resolves product names in unused roles against the recognized product vocabulary, or against supplied identity facts. An unknown name returnsidentity.deployment.unknown-productat the exact product key. Assigned roles still require facts for every referenced product, as before. Dev diagnostics point todev.yamlandservice.yaml. Hosted diagnostics keep the "supply identity facts" remedy.#2877 Offline verification of product role assignments
rstack dev checknow verifies each owner tool's offline report: exact report kind, format version, command and status, unique JSON members, the exact output path, profile and claim counts against the typed facts file, and the issuer and audience pair. For Messaging, whose admission comes from the package, it pins the tool bytes, the projected runtime bytes and the verified package digest before and after generation. A non-ignored test checks all nine owners' typed facts, role reference refusal, stale facts context and report format drift against the maintained owner artifacts.rstack dev startbehaviour is unchanged. Runtime token issuance and executable custody are unchanged. Platform changelog updated.#2823 Token corpus
products/platform/conformance/tokens/browser-callback-expected.json).No production verifier, product caller policy, bearer expectation or token fixture changes.
#2835 Holder-authorized BReg Actions (handoffs only)
products/breg/fixtures/holder-authorized-action/: a native fixture that proves own renewal, same-key replay, foreign condition lookup refusal (404), crossed-target write refusal (412) and wrong-profile refusal (403), and checks that the foreign record is unchanged.clients/typescript/holder-function.ts: an internal holder Function helper that binds preparation to one BReg Action on one existing Record. It keeps the holder credential and the write on the host side. In this branch it adds no package export, gateway route or token acquisition.The follow-on landed in #2911, the v0.51 dev runtime pull request. It carries the reviewed cancellation and preparation deadline supplement, a create-shaped binding for Actions that make a new Record, the public
@registrystack/client/holder-functionexport, and the operated overlay proof (38 cases). The shipped reference host follows in v0.52 (#2910).Security review notes
#2869: disclosure ceiling, consent rule, operator obligation
accessProfilesto widen a grant. A later field addition or reclassification at or below the ceiling widens the compiled grant under the same authored permission. The compiled grant is still explicit, so every runtime check is unchanged.bregctl diff --packageaswideningon the Record type. A widened read path appears on the root Record type asreview-required, with the nested readable set. A changedlistor read-path projection needs a reviewed migration and is never applied automatically. A widenedget-only grant follows the existing access-change policy (BREG-RES-03).requireConsent(breg.consent.readable-fields-explicit-required,BREG-SEC-245, negative testa_consent_scope_requires_explicit_fields_on_direct_reads_and_read_paths). The refusal fires only when a ceiling is authored, and the ceiling has not been released, so no existing profile breaks.requireConsent. TheBREG-RES-03mitigation points to it.#2823: token cells
breg-mcptest dependency now enables the shared token fixtures. This is test-only and changes no runtime crate.Other changes
#2875 only tightens authoring acceptance of unknown product names. #2877 only adds refusals to the offline check. #2879 adds a structural report contract and a writer-to-artifact correlation, which carries no grant or file trust by itself. None of them widens role resolution, grants, token issuance or product disclosure. Independent review found no P1 or P2 in #2879 and #2875. Its P2 for #2877 (acceptance matrix only in local evidence) is fixed by the committed nine-owner test.
Verification
On the rebased tree, before hosted CI:
git diff --check.For the hosted CI fixes:
bregctlexplain contract tests (34) pass, and thebreg-mcpcitizen journey test compiles.rstack,rstack-dev,rstack-serviceand CLI docs tests pass with no failures (65 native Dev tests among them). The syntheticcaseworkctlreport was compared with realcaseworkctloutput under the development posture.Targeted suites on a fresh build of the pre-rebase head:
bregctlidentity facts tests, including the native writer, the completed report and overwrite refusal (Verify generated BReg role inventory read-back #2879).rstack-devlibrary tests, including the nine-owner offline matrix (Verify product role assignments and retained authority offline #2877).rstackDev diagnostic tests (Validate product references in unassigned service roles #2875).Other checks on the pre-rebase head: the #2881 harness tests (5) and the full served v0.49.0 public-check run, the generated report schema hash and its positive and invalid examples, ShellCheck and shfmt.
Earlier per-issue runs on the original commits:
$select, and a packed predecessor/successorbregctl diff. Authoring schemas were generated twice and matched.service.yamlproduct key, and ten native subprocess controls for report and package drift.The root workspace gate (
cargo test --workspace, full Clippy,cargo deny) was not run locally. Hosted CI runs it.Not verified
breg-mcpcitizen journey test was compiled locally, not run. It needs the BReg PostgreSQL lane's binaries and database, so the next hosted run is its proof.