Skip to content

BReg 1.0 wire cut: align list parameters, record type names, Proposal subjects and client shapes #2104

Open

Description

@jeremi

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 accept limit.
  • Record metadata uses entityTypeIdentifier; migration change targets use entity and entityId. The schema route parameter and binding method/argument names also use the retired noun.
  • Proposal events put a Proposal path and revision into subject.recordReference and subject.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 requestHistoryAfterProposalVersion without a parser; generated project SDKs still advertise the removed terminal recovery 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:

Found while rewriting the BReg docs (#2097).

Activity

  1. added
    1.0-blocker
    area:breg
    triage:needs-design
    on Oct 17, 2026
  2. modified the milestones: v0.52.0, v0.53.0 on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.0-blockerarea:bregtriage:needs-design

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions