Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ptr727/ProjectTemplate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.617
Choose a base ref
...
head repository: ptr727/ProjectTemplate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.0.618
Choose a head ref
  • 2 commits
  • 6 files changed
  • 2 contributors

Commits on Sep 11, 2026

  1. Record the Release Gate's Branch-Name Refusal in the D2 Contract (#1550)

    ## Summary
    
    Fixes #1531. The release task's `validate-release` gate refuses, ahead
    of its smoke exit, any `branch` input that `git check-ref-format
    --branch` rejects (`build-release-task.yml:139-142`). That refusal
    landed with the fix for the version step logging the branch unsanitized,
    and `WORKFLOW.md` D2 never recorded it, so the contract listed less than
    the gate asserts at entry. Nothing reachable trips it, since a
    documented caller passes `github.ref_name` or `github.base_ref ||
    github.ref_name`, but D2's validate-at-entry guarantees exist to record
    exactly what the gate asserts.
    
    - `WORKFLOW.md`: a new D2.5 states the input (a release task taking a
    `branch` input, on any run), the output (the gate runs `git
    check-ref-format --branch` over that value and fails when git rejects
    it, ahead of D2.2's smoke exit, with an error echoing no part of the
    value), and what it prevents (a `::` or `##[` in a caller's value
    forming a workflow command wherever a later step prints the branch, on a
    smoke run as much as on a publish).
    - The `workflow-ci-contract` Skill carries section 4 whole as a
    generated include, so `scripts/build_dist.py` refreshed
    `d-guarantees.md` in the source tree and in both generated
    distributions.
    - `reports/canonical-review.json`: the whole-unit pass over the two
    canonical units this change moves.
    
    D2.5 is its own item rather than a clause of D2.2, which keeps each item
    asserting one thing and leaves D2.1 through D2.4 numbered as the audit
    reports and `publish-release.yml` already cite them. The S1, S4, and S10
    rows of section 5 are unchanged: each describes a run whose branch value
    is a real ref name, which the refusal never reaches.
    
    ## Verification
    
    - `python3 scripts/build_dist.py --check`: generated skill distributions
    are current.
    - `python3 spec/validate.py`: 22 cataloged repos classify cleanly.
    - `python3 scripts/prose_lint.py . --diff HEAD` and `python3
    scripts/repo_gate.py --check eol`: clean.
    - `python3 scripts/docker_lint.py`: 7 linters clean, markdownlint over
    185 files and editorconfig-checker over 352.
    - Local strict review pass over the branch diff, and a carried-content
    pass over both canonical units, recorded.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    https://claude.ai/code/session_012u4N7gEcqT9QwTusr1qtUc
    
    
    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    
    ## Summary by CodeRabbit
    
    - **Documentation**
    - Added a workflow contract requirement to validate release branch names
    before proceeding.
    - Invalid branch names are rejected without exposing the submitted value
    in errors.
    
    - **Chores**
      - Updated recorded workflow contract review metadata and statuses.
    
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    
    Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
    ptr727 and claude authored Sep 11, 2026
    Configuration menu
    Copy the full SHA
    4486984 View commit details
    Browse the repository at this point in the history
  2. Record the Release Gate's Branch-Name Refusal in the D2 Contract (#1551)

    Promotes `develop` to `main`, carrying #1550. #1550 records in
    `WORKFLOW.md` D2 the branch-name refusal the release gate already
    performs, as a new D2.5: `validate-release` runs `git check-ref-format
    --branch` over the `branch` input and fails when git rejects it, ahead
    of D2.2's smoke exit, with an error echoing no part of the value. That
    stops a `::` or `##[` in a caller's value forming a workflow command
    wherever a later step prints the branch, on a smoke run as much as on a
    publish. The `workflow-ci-contract` Skill's generated include carries
    the same text.
    
    Closes #1531
    
    ## Adopter impact
    
    Documentation only. No workflow, action, or script change, so no fleet
    repository's build or publish behavior moves. A repository whose release
    task takes no `branch` input reads D2.5 as N/A under section 1's
    applicability rule, the way `reports/homeassistant-purpleair/audit.md`
    already records D2.2.
    
    ## Verification
    
    - Copilot reviewed #1550 at full coverage on its head with no findings,
    no threads, and no suppressed findings, and CodeRabbit reported no
    actionable comments between the merge base and that same head.
    - A local strict-review pass over the whole diff, and a carried-content
    pass over both canonical units this change moves, recorded in
    `reports/canonical-review.json`.
    - `build_dist.py --check`, `spec/validate.py`, the prose and EOL gates,
    and `docker_lint.py`'s seven linters are green.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    https://claude.ai/code/session_012u4N7gEcqT9QwTusr1qtUc
    ptr727 authored Sep 11, 2026
    Configuration menu
    Copy the full SHA
    6e85973 View commit details
    Browse the repository at this point in the history
Loading