Skip to content

Next release: roles, test actors and the organisation steward #2839

Backlog

Description

@jeremi

The developer-experience release leaves out the work below. It goes into the next release, starting with roles as soon as this release is tagged.

Postponed from this release

  1. Roles in dev.yaml (Roles in the service file and dev.yaml people refer to roles #2810). People in dev.yaml get roles instead of per-product grants, in one clean break: the release that adds roles removes the grants form, with no period where both are accepted. Three test identities cannot move to roles yet, and their designs come first:
    • the statistics publisher and reader, whose purpose is read by audit and cursor binding and which a role cannot issue yet.
    • the BReg conformance verifier, whose actor declaration has no input in the normal launcher check.
  2. bregctl test names its actors and needs no token file. A journey names the person it acts as, and the run issues that person's token. This builds on roles.
  3. Glossary and prose for roles. The renames that come with roles, and the old spellings that are refused.
  4. Membership-controlled writes and an organisation steward for BReg. In this release, BReg membership boundaries are read-only. A membership lets a person read an organisation's records. Every write, including writing memberships, needs a separate profile that is authorised directly. Membership-controlled writes are not built. The steward example adds appoint-member and remove-member Actions that a steward may use only for their own organisation. Two things are needed first:
    • one verified claim compared with both an organisation's own id and a membership's reference to that organisation. Today BReg refuses a claim used against two field types, so this needs a narrow rule and its own security review.
    • a way for bregctl test to bind a test identity to an organisation ID that is created during the same run.
  5. CLI reference for bregctl test actor options. The command reference follows item 2.

Already tracked

Activity

  1. added
    enhancement
    triage:roadmap
    on Nov 30, 2026
  2. added this to the v0.50.0 milestone on Dec 1, 2026
  3. jeremi commented on Dec 1, 2026

    @jeremi
    MemberAuthor

    Moved to v0.51.0. #2865 covers roles, named test actors, prose, and their CLI reference. #2861 is a steward draft awaiting two prerequisites and review.

  4. modified the milestones: v0.50.0, v0.51.0 on Dec 1, 2026
  5. jeremi commented on Dec 1, 2026

    @jeremi
    MemberAuthor

    Proposed design for item 4 (the organisation steward), now planned for v0.52.0.

    Decision: the steward is a role plus a register record, not a token claim.

    Why. The register creates organisation IDs, so it is the right place to say who stewards what. Removing a steward takes effect at once, not when a token expires. One person can steward several organisations. Both prerequisites existed only because of the claim.

    What changes in #2861.

    • Keep declared membership, {field, membership} row boundaries and the locked membership-controlled writes.
    • Allow a membership boundary on a record's own ID when the membership key references that Record type. This is Allow a BReg membership boundary on the protected record's own ID #2867, re-scoped.
    • Allow one level of membership over a membership Record type, so membership rows can be bounded by stewardship. Self-reference and longer chains stay refused.
    • Add the example: appoint-member and remove-member Actions whose targets are bounded by the caller's stewardship, with roles and a bregctl test journey using named actors.
    • No change to claim comparison. Bind BReg test actors to IDs created during a journey #2868 is not needed, because no test token has to carry an ID created during the run.

    Rules. A steward acts only in organisations they steward. Any other organisation gets the same answer as one that does not exist. Stewards cannot appoint or remove stewards.

    Before merge. Rebase onto v0.51.0, finish the live PostgreSQL journeys and generated-contract checks, and complete a security review of the one-level rule and the write paths.

  6. modified the milestones: v0.51.0, v0.52.0 on Dec 2, 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

    enhancementtriage:roadmap

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions