Skip to content

chore: adopt the ValueRanges tracking culture; two supported lines - #45

Merged
CaffeinatedCoder merged 1 commit into
mainfrom
claude/tracking-culture-f9bfa8
Oct 18, 2026
Merged

CaffeinatedCoder merged 1 commit into
mainfrom
claude/tracking-culture-f9bfa8

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #40

Problem

Labels, milestones and the pinned Roadmap (#35) existed since this morning, but nothing in the repository made the culture enforceable or stated the two-line policy epic CaffeinatedCoder/CodoMetis.EFCore.SchemaKit#1 decided: a PR with no type label merged like any other, the bug form did not ask whether a failure was silent, and CONTRIBUTING, SECURITY.md and AGENTS.md still described one line whose silent fixes wait for the next major. With majors following EF Core from 10.0.0 on, the LTS line would have had no major left to spend on a silent fix.

The convention tests also read every version with System.Version, which cannot hold 11.0.0-preview.1, so the first preview would have failed the release gate in the test step rather than at the tag check. And SecurityPolicyConsistencyTests compared the supported row with Version, the version being prepared, so opening a version meant promising fixes for a line not yet on NuGet.

Change

Ported from CodoMetis.ValueRanges PR #156, adapted to this repository's labels, changelog form and release mechanics:

  • .github/ISSUE_TEMPLATE/: bug.yml (package and area dropdowns, silent-or-loud question, what you declared / what you got / what you expected, environment incl. runtime wiring), enhancement.yml, epic.yml, config.yml (blank issues off, security advisories link).
  • .github/PULL_REQUEST_TEMPLATE.md: Closes #n, Problem / Change / Tests, the label note.
  • .github/workflows/pr-hygiene.yml and .github/scripts/pr-hygiene.sh: exactly one type label, severity/* on a bug, a closing reference; a silent PR into a patch fails outright, into a minor it needs its issue's row under ### Changed answers in that version's CHANGELOG.md section (matched as ## x.y.0, the heading release.yml reads), into a major it passes as before. Reads only the event payload, CHANGELOG.md and Directory.Build.props; no token; checkout action SHA-pinned as in dotnet.yml.
  • dotnet.yml also runs on release/** and net11, with the branch roles in its header.
  • CONTRIBUTING.md: an Issues section quoting the Roadmap legend verbatim, Pull requests, and "Branches and releases": the two lines, release/5.x until the v10.0.0 tag, net11 merging main forward, release/10.x cut at the tag, main-first then git cherry-pick -x after, additions as 10.x minors until v11.0.0, fixes only after, and "A fix that changes an answer" (a minor with ### Changed answers at the top, never a patch; 10.0.0 the last release under the old rule). A Changelog section states this repository's own entry form and where the section sits in it.
  • SECURITY.md: the table names what is on NuGet (5.4.x), states the transition (10.0.x under the new ids, no row for a preview, a second row once 11.0.0 ships), and gives each line a "N.x targets EF Core M" horizon.
  • AGENTS.md: Issues and Branches in short form; CLAUDE.md gets a Tracking section and the updated table rows.
  • Directory.Build.props: CompanionLineRelease, empty until 11.0.0 ships, the one place a branch records the other line's latest release.
  • Tests: ReleaseVersion (SemVer precedence, previews) replaces System.Version in the changelog, security and packaging tests; SecurityPolicyConsistencyTests holds one row per line (this branch's to PackageValidationBaselineVersion, falling back to the newest stable changelog version below Version when the baseline is empty, as it will be at the rename; the other line's to CompanionLineRelease; at most two rows, adjacent majors, never a preview, the ❌ row meeting the oldest); ChangelogConsistencyTests holds the form (### Changed answers only in a minor, before every other change of its entry, every row linking its issue, rows ending at the next heading); PackagingConventionTests refuses a preview baseline.

Where this repository differs from ValueRanges on purpose: there is no docs/migration.md, so a Changed-answers row links its issue only and carries the Upgrading note the entries already use; the terse one-line changelog form and the "where it returned …" wording detector are not ported, since this changelog is written differently and ValueRanges' detector reads that wording. The one branch name the issue did not spell out is release/5.x, cut when main opens 10.0.0, so a 5.x patch has somewhere to ship until the tag.

Not in this PR: release.yml still lets GitHub pick Latest, so a 10.x tag after 11.0.0 would take it; that is #44. Branch protection for release/** and net11 is a repository setting.

Tests

dotnet test with CI=true (Docker up, integration ran): 345 passed, 0 failed.

Every new or changed guard was seeded and reset after each seed; each fails its own test:

Seed Fails
SECURITY row 5.3.x; an extra 10.0.x row; ❌ row < 5.3; CompanionLineRelease 6.0.0 with no row; companion 7.0.0 (not adjacent); companion 6.0.0-preview.1; baseline 5.4.0-preview.1 Supported_versions_table_names_the_latest_release_of_each_line (the preview baseline also fails PackagingConventionTests)
Horizon sentence removed; **5.x** targets **EF Core 11** Every_supported_line_names_the_ef_core_major_it_targets
Baseline emptied (fallback finds 5.4.0 below 5.4.1) passes, as intended
### Changed answers in 5.4.1 (a patch) Changed_answers_appear_only_in_a_minor
### Changed answers after a bullet in 5.4.0 Changed_answers_lead_their_entry
A row with no issue link Every_changed_answer_links_its_issue
Correct form in 5.4.0 (section, linked row, ### Fixed after) passes, as intended
## 11.0.0-preview.1 ahead of Version 5.4.1 No_changelog_runs_ahead_of_the_package_version
Version 11.0.0-preview.1, documented, baseline 5.4.0 passes, as intended
preview.9 listed above preview.10 Changelog_sections_are_descending

pr-hygiene.sh on fabricated events: no type label, two type labels, a bug without severity, and no closing reference each fail with their own message; chore + Closes CaffeinatedCoder/EFCore.ComplexIndexes#40 and resolves owner/repo#12 pass; Dependabot is skipped; a silent PR against this checkout (5.4.1, a patch) fails "bump the minor"; against a fake 10.1.0 checkout it passes when its issue has a ### Changed answers row and fails when the issue is linked only under ### Fixed; against a fake 10.0.0 it passes under the old rule.

🤖 Generated with Claude Code

Issue forms, a PR template and a PR hygiene check (one type label, severity
on a bug, a closing reference, and a silent fix only as a minor with a
"### Changed answers" row), ported from CodoMetis.ValueRanges. CONTRIBUTING,
SECURITY.md, AGENTS.md and CLAUDE.md state the two lines — 10.x on EF Core 10
(LTS) and 11.x on EF Core 11 — the branches around the v10.0.0 tag, and the
silent-fix rule.

SecurityPolicyConsistencyTests holds one row per supported line, this branch's
to PackageValidationBaselineVersion and the other's to CompanionLineRelease,
instead of one row tied to the version being prepared.
ChangelogConsistencyTests holds the Changed-answers form, and every convention
test reads versions through ReleaseVersion so a preview heading or Version no
longer fails the release gate in the test step.

Closes #40

Co-Authored-By: Claude Fable 5.1 <[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 082aac5 into main Oct 18, 2026
@CaffeinatedCoder
CaffeinatedCoder deleted the claude/tracking-culture-f9bfa8 branch October 18, 2026 13:11
CaffeinatedCoder added a commit that referenced this pull request Oct 18, 2026
Brings in #45 (tracking culture, two supported lines), #48 (Latest handling) and #53
(Dependabot build-only pins).

Conflicts: ChangelogConsistencyTests, PackagingConventionTests and
SecurityPolicyConsistencyTests, all resolved to main. 2085324 added a SemanticVersion
harness type here so the convention tests could read 11.0.0-preview.1; #45 solved the
same problem on main with ReleaseVersion (prerelease parsing, SemVer precedence, the
"## <version>" heading with a suffix) and made the security-policy checks aware of two
lines. SemanticVersion is unused after the merge and is removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

Adopt the ValueRanges tracking culture: issue forms, PR template, hygiene workflow, CONTRIBUTING labels and branches, SECURITY rows

1 participant