Skip to content

docs/releasing.md's reuse instructions miss check_version_order.py and the hooks.json hard-failure requirement #889

Closed

Description

@fdaviddpt

Filed from the v0.39.0 release's gate-3 security audit (release-auditor, round 1, token f67574e3469850b7), delta v0.38.0..HEAD. Row: misreports (composition).

docs/releasing.md:515 ("Reusing this...", written in #866 / 25d0c05) tells an adopter of the release-branch tooling to copy only .github/scripts/{build,check,smoke}_release_tree.py. Two gaps, both from commits in this delta:

  1. Missing script. release-branch workflow: three small hardening follow-ups from the #853 review #856 (3cbe1dc) made .github/workflows/release-branch.yml:184-188's publish job call .github/scripts/check_version_order.py. An adopter who follows the current docs and copies only the three named scripts gets a publish step that fails with "file not found" the first time they cut a release that has a release parent (i.e. their second release onward).
  2. Missing requirement. release-branch build/check/smoke pipeline silently passes a tree with no hooks/hooks.json (or zero command hooks) #858 makes a missing hooks/hooks.json, or one with zero command hooks, a hard failure in both check_release_tree.py and smoke_release_tree.py. The reuse docs never state this, so a plugin with no hooks of its own cannot reuse the tooling at all, and the docs give no warning or workaround.

Suggested fix (not applied here): add check_version_order.py to the reuse copy-list, and either document the hooks.json requirement or gate it behind a config flag.

Not a blocking-row finding; reasoned from reading the workflow file, the two scripts' current behavior, and docs/releasing.md's current text -- not independently reproduced by actually attempting a reuse here.

[AI-generated]

Activity

  1. added
    priority:low
    filed-by-loop
    lane-other
    cohort-17
    cohort-18
    cohort-19
    cohort-20
    on Oct 3, 2026
  2. self-assigned this
    on Oct 7, 2026
  3. added a commit that references this issue on Oct 7, 2026
  4. removed their assignment
    on Oct 7, 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

    cohort-17cohort-18cohort-19cohort-20filed-by-looplane-otherpriority:low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions