Skip to content

Infra RL9: release command accepts a commit on a protected public release branch #964

Closed

Description

@jparker2006

Parent

Ticket RL9 of infra spec #437 (was ClosedWiz #2183). No version milestone. It blocks #18 (RL5).

What to build

v0.0.12 ships from a public release-0.0.12 branch: c1c191d plus only #954 (the new-thread receipt fix) and #915 (the smoke receipt's not-live gaps), cherry-picked. Main has since retired features the approved v0.0.12 notes describe, so main can't be the release source. The release command (tools/release/candidate.py) refuses any candidate commit that isn't on public main (not_on_public_main). Make it also accept a commit on a protected public release branch, without weakening anything else.

  1. Accept a release branch. A candidate commit is accepted when it is an ancestor of public main (unchanged), or when it is the head or an ancestor of a public branch named release-<version>, exactly the candidate's version (here release-0.0.12).
  2. Only a protected branch. That branch must be covered by an active ruleset that requires ci and privacy, has no bypass actors, and blocks force-pushes and deletion. This is read back the same way D3 reads main's ruleset (default-branch resolution, include and exclude patterns, fail closed on anything unreadable).
  3. Refusals. It refuses a branch whose name doesn't match the candidate's version, a branch without that protection, a commit not reachable from it, and an unreadable branch or ruleset. The new refusal reasons are named.
  4. Contract. One matching line in contracts/release-candidate.v1.md names the accepted sources: public main, or a protected public release-<version> branch.

Owned paths

  • tools/release/candidate.py
  • tools/release/test_candidate.py
  • tools/release/README.md
  • contracts/release-candidate.v1.md (the one source line)

Relies on: contracts/release-candidate.v1.md

Links

none

Acceptance criteria

  • Red first: a candidate on a protected release-0.0.12 branch, not on main, is refused today and accepted after the fix.
  • Each refusal (wrong name, unprotected, not reachable, unreadable) has a test and names its reason.
  • Main candidates behave exactly as before.
  • The contract line matches the code.
  • No live step and no branch is created by this ticket. The branch is Infra RL5: first public-path release and ship-to-install timing (reused #285) #18's.

Activity

  1. added
    ready-for-agent
    on Nov 16, 2026
  2. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch room/964-release-branch-source

  3. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: archived

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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions