Repository navigation
chore: two supported lines, and a silent fix as a minor with Changed answers - #156
Merged
Merged
Conversation
…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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 hold11.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")
v10.0.0tag:mainis 10.0.0.release/9.xtakes 9.x patches.net11holds the retarget, ships11.0.0-preview.Nand mergesmainforward after every change.release/10.x, mergenet11intomain, and deletenet11.mainfirst and are cherry-picked ontorelease/10.xwithgit cherry-pick -x. Additions ship as 10.x minors untilv11.0.0. After that, 10.x takes fixes only.### Changed answers: one row per changed answer, linking its issue and its## Changed answers in x.y.0section ofdocs/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 newCompanionLineReleaseproperty, 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:PackageValidationBaselineVersion, and the other line's withCompanionLineRelease.ChangelogConventionTests:Changed answersis 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.Unreleased..github/scripts/pr-hygiene.shholds the label half instead:silentPR into a minor fails unless its closing issue's/issues/nlink appears under### Changed answersin that version's section.silentPR into a patch fails outright.silentPR into a major or a preview is checked as before.CHANGELOG.mdandDirectory.Build.props. The sparse checkout in cone mode already includes root files.ReleaseVersion(inRepoLayout.cs) gives SemVer precedence. The changelog, packaging and security tests all use it.ReleaseVersionTestscovers it.PackageValidationBaseline_…: a preview is never a baseline. The 11 line validates against the latest stable release, which is 10.0.0.ReleaseWiringConventionTests.TheGitHubRelease_KeepsAnOlderLineAndPreviewsOffLatestreads script lines only, not the comment that explains them.Workflows
release.yml:--prerelease --latest=false.--latest=false.dotnet.ymlandpr-hygiene.ymlrun onnet11too, and thedotnet.ymlheader 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:
CompanionLineReleaseset with no row; a preview companion; companion two majors away; rows oldest first; ❌ row< 9.0TheSupportedVersionsTable_NamesTheLatestReleaseOfEachLine9.x targets .NET 11with Version 9.1.1EverySupportedLine_NamesTheDotNetMajorItTargets(control: the same Version with the right .NET passes)Changed answersin 10.0.0, and in 10.0.1ChangedAnswers_AppearOnlyInAMinorEveryChangedAnswer_LinksItsIssueAndItsMigrationEntry### Fixedin 10.1.0AfterTenZero_AChangedAnswerIsUnderChangedAnswers(control: a correct 10.1.0 passes all 14 changelog tests)preview.9listed abovepreview.10EveryChangelog_ListsVersionsNewestFirst--latest=false; older-line guard removed; flags not passedTheGitHubRelease_KeepsAnOlderLineAndPreviewsOffLatest11.0.0-preview.1for11.0.0-preview.2PackageValidationBaseline_…(control: baseline 10.0.0 passes)ReleaseVersion: numeric identifiers compared ordinally; prerelease ordered after releaseReleaseVersionTests.Precedence_IsSemVersPositive simulations:
mainafter the tag at11.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).mainat 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.shwas run on fabricated events:silentPR closing Clone sweep goes quiet when two new siblings share a divergence #200 into 10.1.0, with Clone sweep goes quiet when two new siblings share a divergence #200's row under### Changed answers, passes.### Fixed, fails.Not done here:
release/10.xis cut at thev10.0.0tag, which is what the issue's "done when" waits on.11.0.0-preview.1ships beforev10.0.0, its ApiCompat baseline (10.0.0) isn't on NuGet yet. That belongs to the retarget's own setup onnet11.🤖 Generated with Claude Code