Skip to content

chore: two supported lines, and a silent fix as a minor with Changed answers - #156

Merged
CaffeinatedCoder merged 1 commit into
mainfrom
claude/mystifying-lovelace-0ed54a
Oct 18, 2026
Merged

CaffeinatedCoder merged 1 commit into
mainfrom
claude/mystifying-lovelace-0ed54a

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #151

Problem

Issue #86 settled "one supported version at a time". Epic #147 reverses that: 10.x is the LTS line on .NET 10, and 11.x is the line on .NET 11. Everything that encoded the old policy was now wrong: CONTRIBUTING, AGENTS.md, SECURITY.md and its convention test, which allowed exactly one row.

One rule could not carry over at all. A silent fix took the next major, but once majors follow the platform, the LTS line has no major number left to spend. An LTS line that can't receive silent fixes isn't LTS.

The convention tests also read every version with System.Version. That can't hold 11.0.0-preview.1, so the first preview would have failed the release gate in the Test step.

Change

Policy (CONTRIBUTING.md "Branches and releases", AGENTS.md "Issues"/"Branches")

  • Before the v10.0.0 tag: main is 10.0.0. release/9.x takes 9.x patches. net11 holds the retarget, ships 11.0.0-preview.N and merges main forward after every change.
  • At the tag: cut release/10.x, merge net11 into main, and delete net11.
  • After the tag: changes go into main first and are cherry-picked onto release/10.x with git cherry-pick -x. Additions ship as 10.x minors until v11.0.0. After that, 10.x takes fixes only.
  • New rule: 10.0.0 is the last release under the old rule. After it, a silent fix ships as a minor on every supported line, never as a patch. That minor's changelog entry opens with ### Changed answers: one row per changed answer, linking its issue and its ## Changed answers in x.y.0 section of docs/migration.md. The migration guide's intro says this too.

SECURITY.md: one row per supported line, and no row for a preview, because a preview gets its fix in the next preview. The page states the transition: 9.1.x until 10.0.0 ships, then 10.0.x, then a second row once 11.0.0 ships. Each line's horizon is a "N.x targets .NET M" sentence.

Directory.Build.props: a new CompanionLineRelease property, empty for now. It records the other line's latest release, because no branch can read the other branch's props. CONTRIBUTING says when it moves.

Tests (conventions project)

  • SecurityPolicyConventionTests:
    • This line's row is compared with PackageValidationBaselineVersion, and the other line's with CompanionLineRelease.
    • Rows go newest first, at most two, from adjacent majors, never a preview. The ❌ row meets the oldest supported row.
    • Every supported row has a horizon sentence. The sentence for the line being prepared must name the core TargetFramework.
  • ChangelogConventionTests:
    • Changed answers is a known section and comes first.
    • ChangedAnswers_AppearOnlyInAMinor.
    • EveryChangedAnswer_LinksItsIssueAndItsMigrationEntry: the migration heading must exist.
    • AfterTenZero_AChangedAnswerIsUnderChangedAnswers: after 10.0.0, a "where it returned/wrote/…" clause outside that section fails. "where it threw" is loud and stays under Fixed.
    • Preview headings are versions, not Unreleased.
  • The limit: a test can't see GitHub labels. .github/scripts/pr-hygiene.sh holds the label half instead:
    • A silent PR into a minor fails unless its closing issue's /issues/n link appears under ### Changed answers in that version's section.
    • A silent PR into a patch fails outright.
    • A silent PR into a major or a preview is checked as before.
    • The script reads only CHANGELOG.md and Directory.Build.props. The sparse checkout in cone mode already includes root files.
  • ReleaseVersion (in RepoLayout.cs) gives SemVer precedence. The changelog, packaging and security tests all use it. ReleaseVersionTests covers it.
  • PackageValidationBaseline_…: a preview is never a baseline. The 11 line validates against the latest stable release, which is 10.0.0.
  • ReleaseWiringConventionTests.TheGitHubRelease_KeepsAnOlderLineAndPreviewsOffLatest reads script lines only, not the comment that explains them.

Workflows

  • release.yml:
    • A tag with a prerelease suffix is published as --prerelease --latest=false.
    • An older stable tag (a 10.x tag once 11.0.0 exists) gets --latest=false.
    • The header documents the preview path.
  • dotnet.yml and pr-hygiene.yml run on net11 too, and the dotnet.yml header describes the branches.

Tests

dotnet test test/CodoMetis.ValueRanges.Conventions.Tests: 324 passed (307 before).

I seeded every new or changed guard and reset after each seed. Each one fails its own test with its own message:

Seed Fails
SECURITY row 9.0.x; an extra 10.0.x row; CompanionLineRelease set with no row; a preview companion; companion two majors away; rows oldest first; ❌ row < 9.0 TheSupportedVersionsTable_NamesTheLatestReleaseOfEachLine
Horizon sentence removed; 9.x targets .NET 11 with Version 9.1.1 EverySupportedLine_NamesTheDotNetMajorItTargets (control: the same Version with the right .NET passes)
Changed answers in 10.0.0, and in 10.0.1 ChangedAnswers_AppearOnlyInAMinor
Changed-answer row without an issue link; with a missing migration anchor EveryChangedAnswer_LinksItsIssueAndItsMigrationEntry
"where it returned" under ### Fixed in 10.1.0 AfterTenZero_AChangedAnswerIsUnderChangedAnswers (control: a correct 10.1.0 passes all 14 changelog tests)
preview.9 listed above preview.10 EveryChangelog_ListsVersionsNewestFirst
Preview without --latest=false; older-line guard removed; flags not passed TheGitHubRelease_KeepsAnOlderLineAndPreviewsOffLatest
Baseline 11.0.0-preview.1 for 11.0.0-preview.2 PackageValidationBaseline_… (control: baseline 10.0.0 passes)
ReleaseVersion: numeric identifiers compared ordinally; prerelease ordered after release ReleaseVersionTests.Precedence_IsSemVers

Positive simulations:

  • main after the tag at 11.0.0-preview.1, with baseline 10.0.0, a 10.0.x row and preview sections in every changelog: the whole conventions suite passes (324/324).
  • main at 11.0.1, with baseline 11.0.0, companion 10.1.0 and rows 11.0.x / 10.1.x / < 10.1: the table test passes.

I ran these with --no-build, because restore can't fetch a 10.0.0 baseline from NuGet yet.

pr-hygiene.sh was run on fabricated events:

Not done here:

  • release/10.x is cut at the v10.0.0 tag, which is what the issue's "done when" waits on.
  • If 11.0.0-preview.1 ships before v10.0.0, its ApiCompat baseline (10.0.0) isn't on NuGet yet. That belongs to the retarget's own setup on net11.

🤖 Generated with Claude Code

…answers

Issue #86 settled one supported version; epic #147 opens a second line
(10.x LTS on .NET 10, 11.x on .NET 11). The silent-fix-takes-a-major rule
cannot survive that, so after 10.0.0 a silent fix ships as a minor on every
supported line, opening its changelog entry with "### Changed answers".

- CONTRIBUTING.md and AGENTS.md: the branch plan before, at and after the
  v10.0.0 tag (net11 merge-forward, release/10.x cut, main-first and
  cherry-pick -x), additions as 10.x minors until v11.0.0, and the new rule.
- SECURITY.md: one row per supported line, no row for a preview, and the
  transition stated. SecurityPolicyConventionTests compares this line's row
  with PackageValidationBaselineVersion and the other line's with the new
  CompanionLineRelease property, and each line's horizon with its .NET.
- ChangelogConventionTests: "Changed answers" only in a minor, each row
  links its issue and an existing migration heading, and after 10.0.0 a
  "where it returned ..." change must sit there. pr-hygiene.sh holds the
  label half: a silent PR into a minor needs its issue's row, and into a
  patch it fails.
- Prerelease versions (11.0.0-preview.N) are read by every convention test
  through ReleaseVersion (SemVer precedence); a preview is never the ApiCompat
  baseline. release.yml publishes a preview as a prerelease that is never
  Latest and keeps an older line's tag off Latest; CI and PR hygiene run on
  net11.

Every new or changed guard was seeded and fails for its own reason.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@CaffeinatedCoder CaffeinatedCoder added this to the 11.0.0 milestone Oct 18, 2026
@CaffeinatedCoder CaffeinatedCoder added chore Build, CI, packaging, refactoring with no behaviour change area/release Versioning, changelogs, release wiring labels Oct 18, 2026
@CaffeinatedCoder
CaffeinatedCoder merged commit 78d4a63 into main Oct 18, 2026
@CaffeinatedCoder
CaffeinatedCoder deleted the claude/mystifying-lovelace-0ed54a branch October 18, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/release Versioning, changelogs, release wiring chore Build, CI, packaging, refactoring with no behaviour change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Two supported lines: policy, branch rules, SECURITY rows, and the silent-fix rule as a minor with a changed-answers section

1 participant