Repository navigation
Description
v0.52 scope update
Use the merged 0.51 integration as the baseline. It implements recordId on the covered inputs, canonical problem codes, and limit / cursor across the covered BReg lists, contracts and clients (#2805, #2808, #2809). Earlier work also added Proposal-specific event subjects, object arguments for the principal Node Proposal methods and ordered Python webhook headers. Check the remaining original inventory against current code. Proposal events · Node Proposal methods · Python webhook headers
The 0.51 server reads earlier pagination spellings during upgrades. Record the intended retirement point for those spellings as part of the final contract cut.
Confirmed envelope gap. The shared Registry Record and BReg list/export rows use revisionId. BReg batch results and retained ingestion receipts still use revisionIdentifier. Resolve the public spelling and envelope with #1442. revisionId matches the existing Registry Record contract. Registry Record · Batch response · Ingestion receipt validation
- Carry the BReg HTTP API: response envelopes differ per operation, and errors do not name the field #1442 decision through the runtime responses, generated OpenAPI, Rust client, Node and Python bindings, and generated project SDKs. Check the emitted and decoded shape in the existing contract and client suites.
- Test replay of a retained 0.51 ingestion receipt on the new code using PostgreSQL. Specify the compatibility rule for stored receipts and idempotent responses, and prove that replay preserves the original outcome and performs the mutation only once.
Original inventory
The pre-1.0 BReg contract still has several incompatible names and client shapes:
- Record lists accept
top; Proposal and ingestion lists acceptlimit. - Record metadata uses
entityTypeIdentifier; migration change targets useentityandentityId. The schema route parameter and binding method/argument names also use the retired noun. - Proposal events put a Proposal path and revision into
subject.recordReferenceandsubject.recordRevision; the webhook sample always constructs a record subject. - Three Node Proposal methods take JSON strings, while the surrounding client uses objects. Python webhook verification takes a dictionary, which cannot preserve duplicate header entries.
- PublicSchema/statistics diagnostic codes retain the retired noun; a query allowlist still advertises
requestHistoryAfterProposalVersionwithout a parser; generated project SDKs still advertise the removedterminalrecovery hint. Node and Python independently map refusal codes.
Make the cut before the compatibility policy in #498 takes effect. Agree one list page-size name and align every served list route, OpenAPI and client; use Record type names on covered surfaces; give each event family an accurate subject shape and sample; use objects for the three Node methods and header pairs in Python; remove unsupported query/recovery members and share refusal-code mapping. Remove the superseded forms, with no compatibility shim. The record envelope and batch-member decision remains #1442; settle these related wire choices with that proposal before implementation.
Source references:
- crates/registry-breg/src/query.rs:638
- crates/registry-breg/src/api/proposals.rs:1207
- crates/registry-record/src/lib.rs:34
- crates/registry-breg/src/package.rs:370
- crates/registry-breg/src/proposal_events.rs:93
- crates/registry-bregctl/src/webhook_lifecycle.rs:192
- crates/registry-breg-client-node/client.d.ts:861
- crates/registry-breg-client-py/python/registry_breg_client/init.pyi:176
- crates/registry-breg/src/project_sdk.rs:484
Found while rewriting the BReg docs (#2097).
Activity