Repository navigation
Description
This project is on project-template v0.61.2. The newest version is v0.112.2, 86 versions later.
Plan the update with /plan-issue and this issue's number, which plans it as /plan-template-update v0.112.2 does, or run .\.template\Update-Project.ps1 on a branch of its own.
The template-update workflow keeps this issue current every week: it retitles it and rewrites this text when a newer version comes out, and closes it once the project is on the newest version.
Changes since v0.61.2
[0.112.2] - 2026-11-21
Changed
- This repository's own
.github/workflows/code-review.ymltakes the template's: it pins NCode Review v1.5.0 by its full commit SHA in both jobs, under ADR-0009's commented exception until 2026-11-24, and its review job passesapprove: trueandapprover-private-key, so once an organization owner has installed the NCode Review Approver here, stored its key in thecode-reviewenvironment and runtools/Set-RepositoryBaseline.ps1, the Protect main ruleset requires the approver's approval, of the last push; until then NCode Review approves as its own app, which meets no required approval.AGENTS.mdandCONTRIBUTING.mdsay so (#482, ADR-0036). - The
.github/workflows/code-review.ymla GitHub project gets with NCode Review wraps its header paragraph and the comment aboveapprover-private-keywithin 120 columns, as this repository's own copy does, so the two files are identical again; no word or setting changes, and an existing project's copy, which updates leave alone, keeps its lines (#486). - No change for projects made from the template.
tests/Test-Template.ps1fails when this repository's own.github/workflows/code-review.ymland the template's differ, so a change to one copy, such as the rewrap in #484, can't land without the other (#486).
[0.112.1] - 2026-11-21
Fixed
.template/Update-Project.ps1names the files that reference Nerdbank.GitVersioning themselves, and says to delete that reference, only when the project'sbuild/ProjectTemplate.propsreferences it too, as a .NET library's does onceversion.jsonexists. A project that isn't a library (nuget_packagefalse) and versions itself through aversion.jsonand a Nerdbank.GitVersioning reference of its own no longer gets a note that would remove its only reference, andAdopt-Project.ps1no longer drops such a repository's reference (#477).docs/best-practices-badge.md's test-policy row, and every row ofdocs/best-practices-criteria.mdthat citedCONTRIBUTING.mdby a heading or an item number, say which statement ofCONTRIBUTING.mdthey cite instead. A project whose ownCONTRIBUTING.mdis laid out differently can check that its file makes each one. The badge page is the project's own, so an update shows its new row as a change to it (#478).
[0.112.0] - 2026-11-21
Added
tools/Get-AdoptionChecklist.ps1 -Path <clone>audits an adopted repository in one command: it runs every row ofdocs/adopt.md's Checklist through the clone,ghorglab, and the-WhatIfruns ofSet-RepositoryBaseline.ps1,Dismiss-ScorecardAlerts.ps1andSet-GitLabBaseline.ps1, prints each row as done, not done, unreadable, naming the page that shows a row no command reads, or does not apply, changes nothing, and exits 1 when a row is not done (#471).
Changed
docs/adopt.md's Checklist says how to run it withtools/Get-AdoptionChecklist.ps1, and what the checker reads for a row no script checked before, instead of naming the checker as a planned follow-up (#471).- A GitHub project's
.template/Get-TemplateUpdate.ps1reads a tag as a template version only when the whole tag is an optionalvand up to four dot-separated numbers in ASCII digits, and expands agh:orgl:template address or moves the oldpolewskmone only when the whole answer matches, the patternstools/Get-AdoptionChecklist.ps1shares: a tag with other Unicode digits no longer stops the weekly update notice with a conversion error, and one that ends in a line break is no version (#471).
[0.111.4] - 2026-11-21
Changed
docs/adopt.md's NCode Review steps, 0.3 and section 5 with 5.1, link NCode Review's own runbook, Set Up NCode Review, End to End, at its once-per-organization, once-per-repository and troubleshooting sections, instead of NCodeGroup/code-review's README sections "Using it" and "Opting a repository in", so NCode Review's setup has one procedure (#472).USAGE.md's NCode Review paragraph sends an existing project to.\.template\Update-Project.ps1 -Data @{ code_review = $true },docs/adopt.mdsection 5 and NCode Review's runbook, and names the NCode Review Approver's installation andEnable-CodeReview.ps1's-ApproverPrivateKeyPath, which it left out, so a maintainer who follows it sets up the approval too (#472).- ADR-0028 records that whether a GitHub project's releases are immutable depends on the project, not the template: a project whose releases get files or attestations after they are published keeps mutable releases, as a .NET library does, whose
release-provenance.ymlattaches its packages, their provenance and an SBOM, and every other project gets immutable ones fromtools/Set-RepositoryBaseline.ps1.tag-release.ymlkeeps publishing each release andpublish.ymlkeeps attaching its files afterwards, rather than drafting the release until its files are attached. The record adds that Scorecard v5.7.0'sreleasesAreImmutableprobe scores an immutable release that has assets as high as one with a provenance file, while a release without assets isn't counted, and ADR-0139 says a library's releases stay mutable (#393, ADR-0028). docs/adopt.md's 3.3 Immutable Releases says a .NET library's releases stay mutable by that decision, and that a project whose own workflow runs on areleaseevent only to publish elsewhere can turn them on withgh api -X PUT repos/<owner>/<name>/immutable-releases(#393).- ADR-0020's Signed-Releases rows say that Scorecard counts only the releases with assets among the five newest: a project that isn't a .NET library publishes its releases without assets, so the check is left out of its score, and one whose own workflow attaches files scores 10 with immutable releases or a
*.intoto.jsonlprovenance file and 8 with a signature alone; a .NET library's releases score 10 with their provenance and stay mutable (#393, ADR-0020). /best-practices' Signed-Releases action says that from Scorecard v5.7.0 an immutable release scores 10 and needs no signature or provenance asset, and that Scorecard counts only the releases with assets among the five newest; where releases are mutable though no workflow attaches files after publishing, it namestools/Set-RepositoryBaseline.ps1 -WhatIf, and it looks for*.intoto.jsonlor signature assets only on mutable releases, such as a .NET library's (#393).- ADR-0020 follows the
nuget_publisheranswer: in a .NET library whose own workflow publishes its packages, and which so gets nopublish.yml,release-provenance.ymlorraise-baseline.yml, its Token-Permissions, Signed-Releases and Packaging rows name that workflow instead of those three and its Signed-Releases row promises no provenance, and it cites neither ADR-0139 nor ADR-0151 (#393, ADR-0020). - The
scorecard.ymla GitHub project gets pinsossf/scorecard-actionto the full commit SHA of v2.6.0, with the tag in a comment (it pinned v2.5.0), so it runs Scorecard v5.7.0, whose Signed-Releases check scores an immutable release that has assets 10, as it scores one with a*.intoto.jsonlprovenance file. v2.6.0 is pinned before it is three days old by ADR-0009's commented exception, which goes once 2026-11-22 has passed (#393, #481).
[0.111.3] - 2026-11-21
Fixed
- The template's
code-review.ymlpins NCode Review v1.5.0, released on 2026-11-21, by ADR-0009's commented exception until its three-day cooldown ends on 2026-11-24, and the NCode Review note.template/Update-Project.ps1prints says a project adopts v1.5.0 from that day, or sooner only by such an exception (#464, ADR-0009). .template/Update-Project.ps1andAdopt-Project.ps1name a shallowactions/checkoutof a job that builds with Nerdbank.GitVersioning only when a build step runs in its folder, by the step'sworking-directory:or the job's or workflow'sdefaults:, and give a named checkout'spath:, so a checkout such aspath: currentbeside a build withworking-directory: rebuildis no longer flagged (#465, ADR-0138).
[0.111.2] - 2026-11-21
Added
docs/adopt.md, a runbook that takes a maintainer from nothing to a fully adopted repository, new or existing, on GitHub or GitLab: the organization's one-time setup, protecting the default branch and tags, releases, a .NET library's nuget.org publishing, NCode Review, the other one-time settings and staying current, each step saying who does it, where, how to check it and what usually goes wrong, and a checklist that audits an adopted repository; the README's table of contents links it (#468).
Fixed
-
AGENTS.md'sdraftkey,CONTRIBUTING.md's Make a Change item 6,GOVERNANCE.md's Automation row, the message after a project is made and/best-practices' Branch-Protection row say that where NCode Review's approver is set up, the NCode Review Approver's approval meets the ruleset's required approval, of the last push, with one writer too, as ADR-0036 decided in v0.111.0; they still said that GitHub counts no approval from NCode Review.AGENTS.md,CONTRIBUTING.mdandGOVERNANCE.mdare the project's, so the update shows their changes for the project to take (#466, ADR-0036). -
tools/Dismiss-ScorecardAlerts.ps1's Branch-Protection comment says that with one writer the ruleset can require only the one approval, of the last push, that NCode Review's approver gives where it is set up, and none elsewhere, citing ADR-0036; it said the ruleset requires no approval, which is false where the approver is set up.
[0.111.1] - 2026-11-21
Fixed
publish.ymlgrants the baseline jobcontents: writeandissues: write, the permissionsraise-baseline.ymldeclares, so a library's publishing run starts. A called workflow that asks for more than its caller grants fails the whole run at startup, and in v0.111.0 the grant still named the pull request and Actions permissions, which stopped NCodeGroup/Buffers v5.5.0 from publishing. The template's tests compare each called workflow's grant with what it declares (#460).
[0.111.0] - 2026-11-21
Added
- Where NCode Review's approver app is set up (
code-review.ymlpassesapprover-private-keyand the repository'scode-reviewenvironment holdsNCODE_REVIEW_APPROVER_PRIVATE_KEY),tools/Set-RepositoryBaseline.ps1requires one approval, of the last push, with one writer too, since GitHub counts an approval from a reviewer that can write; the template'scode-review.ymlpins NCode Review v1.5.0 and passes the approver's key, and.template/Update-Project.ps1says when a project'scode-review.ymlpins NCode Review before v1.5.0 or passesapprove: truewithoutapprover-private-key(#460, ADR-0036).
Changed
- Every repository's workflow token is read-only and GitHub Actions can't approve pull requests, also where
raise-baseline.ymlis, andtools/Set-RepositoryBaseline.ps1 -OrganizationPolicysets the organization's defaults the same way (#461, ADR-0036). raise-baseline.ymlpushesbaseline-<version>and opens an issue whose link opens the pull request, which starts CI and NCode Review's review, instead of opening a draft pull request and starting CI itself (#460, ADR-0036).
[0.110.0] - 2026-11-20
Added
tools/Dismiss-ScorecardAlerts.ps1 -Repo <owner>/<name>dismisses, in a repository with one writer, the open OpenSSF Scorecard alerts of Branch-Protection, CII-Best-Practices and Contributors as won't fix with a standard comment, after listing every open Scorecard alert, and leaves the others open;-WhatIfshows it, and with two writers or more it dismisses nothing. (#456, ADR-0035)- For a public repository with one writer,
tools/Set-RepositoryBaseline.ps1ends with a notice namingtools/Dismiss-ScorecardAlerts.ps1. (#456, ADR-0035)
Changed
/best-practicescounts the people with write access, reports a Scorecard check whose alert is dismissed as accepted, with its reason, never recommends a required approval or approval of the last push to a project with one writer, and namestools/Dismiss-ScorecardAlerts.ps1for the checks one person can't clear. (#456, #455, ADR-0035)- ADR-0020's Scorecard table gives the score one writer reaches on Branch-Protection, CII-Best-Practices and Contributors, and points to ADR-0035 for dismissing their alerts. (#456, ADR-0035)
code-review.yml,code-review-auto-merge.yml,AGENTS.md,CONTRIBUTING.md,GOVERNANCE.md, the update's NCode Review note and the message after a project is made say that GitHub counts no approval from NCode Review toward a required approval, and that the ruleset requires one, from someone with write access other than the author, only once a second person has write access. (#455, ADR-0034)- ADR-0034 records that it amends ADR-0005, ADR-0006, ADR-0019 and ADR-0031, and, where a project has it, record 0150, whose text says NCode Review's approval meets a required approval or that the baseline loosens its own ruleset in one way alone; their status lines name it on GitHub. (#455, ADR-0034)
Fixed
tools/Set-RepositoryBaseline.ps1requires no approval and no approval of the last push where one person has write access, also wherecode-review.ymlpassesapprove: true, and turns both off in an earlier "Protect main" that requires an approval, saying so: GitHub counts no approval from the author or from NCode Review, whose app has no write access, so a sole maintainer could merge nothing. It keeps dismissing stale reviews, and names a collaborators list it can't read, adding no approval and keeping those a ruleset has. For a ruleset of the owner's that requires an approval, and when GitHub refuses the change, it prints the command that requires neither. (#455, ADR-0034)
[0.109.0] - 2026-11-20
Added
.template/Test-ReproducibleBuild.ps1packs a library twice and compares the packages entry by entry, ignoring zip timestamps, and a .NETnuget_packageon GitHub runs it as thereproducible-buildjob ofci.yml, whichtag-release.ymlalso runs before it tags a release; on GitLab it runs by hand. (#454, ADR-0154)- A GitLab library's
.gitlab-ci.ymlhas araise-baselinejob: when a stable version tag is pushed, after the project's ownpublishjob when it has one, it runsbuild/Update-Baseline.ps1, pushesbaseline-<version>and opens a draft merge request. It needs a project access token in the protected, masked variableBASELINE_TOKEN, with thev*tags protected so that tag pipelines can read it, and is skipped without the variable. (#389, ADR-0150) tools/Set-GitLabBaseline.ps1 -BaselineTokenprotects thev*tags and creates the project access token and the protected, maskedBASELINE_TOKENvariable that a GitLab library'sraise-baselinejob needs. (#389)tools/Set-RepositoryBaseline.ps1reports the organization's two-factor requirement as required, not required or not available, and never sets it. (#453)
Changed
- The Best Practices criteria map says what shows assertions are enabled while the tests run and when Unmet is honest, makes copyright_per_file, license_per_file and dynamic_analysis Check rows with their commands, has the static_analysis_fixed and regression_tests_added50 checks name each won't-fix alert and each fix with its test, says autofill's two-factor Met is no evidence, keeps roles_responsibilities at
?until the Who column names people, says what to do without agood first issue, adds library guidance for input_validation, internationalization and hardening, and gives hardened_site its justification and command. (#453) - The registration prompt lists the SUGGESTED criteria still
?, waits for the form's radios before reading it, compares ANSWERS with the Security tab and releases before saving, reads the map withget_page_text, and ends with the commands that record the project number and add the badge;/best-practicescompares its answers with the closed code scanning alerts, the fixes and the releases the same way. (#453) code-review.ymlno longer carries the sentence about the NCode Review v1.4.0 cooldown exception. (#392)
Fixed
build/ProjectTemplate.propssetsCopyrightwithout the year of the build machine's clock, so a rebuild of a release's tag in a later year produces the same assemblies and packages. (#454, ADR-0154)
[0.108.0] - 2026-11-20
Added
/best-practicesreads a GitHub project's OpenSSF Scorecard result and, for each check under 10, names the action that raises it and who takes it: property tests for Fuzzing, the two ways to clear old unsigned release assets for Signed-Releases, a ruleset that lacks the approvalscode-review.ymlexpects for Branch-Protection, and the registration for CII-Best-Practices. It finds an existing registration atbestpractices.dev/projects.json?url=, so a project registered beforebest_practices_projectwas recorded gets the update prompt and is never registered twice, and the registration prompt looks a project up there first. It fetches gitleaks, checksum-verified and past the dependency cooldown, when it isn't installed, and ends with an ordered list of next steps. (#451, ADR-0153)
Changed
/best-practicesanswers for the tip of the default branch, the commit Scorecard and bestpractices.dev see, in a temporary worktree when the checkout is elsewhere, and reports evidence that only unmerged commits hold instead of dropping it. (#451, ADR-0153)- ADR-0020's Fuzzing row says the template adds no property tests and what to write, and its Signed-Releases rows name the 14-day backfill limit and the rule never to attest registry packages. (#451, ADR-0020)
Fixed
.template/Test-FileHeaders.ps1skips the fivebuild/scripts the template owns,dod.ps1,Update-PublicApi.ps1,Get-TestRuntimes.ps1,Install-Dotnet.ps1andUpdate-Baseline.ps1, so a .NET project's file header check passes without a header in a file template updates replace. (#449, ADR-0027)
[0.107.0] - 2026-11-20
Added
/run-issues-all-in #42 #43, for Claude Code, Copilot Chat and Copilot CLI, runs/run-issueswith its answers given and its caps lifted, and takes no switches. Every issue the request names, or every ready issue a filter finds, goes into one plan and one draft pull request. It asks nothing. It fixes every follow-up and every NCode Review finding that holds in that pull request, out of scope included, and protected paths too when the request names the issues by number rather than a filter, and lists each protected path it changes in the pull request description. It asks NCode Review for a review after every push, and sets no limit on reviews or replies, stopping a loop only when two reviews in a row add fix steps while the commits between them changed nothing. It ends once the pull request is clean and the merge is recommended: you merge, then run/finish-plan./run-issuesis unchanged. (ADR-0033)
[0.106.1] - 2026-11-19
Fixed
build/Update-Baseline.ps1removes the baseline suppressions from theCompatibilitySuppressions.xmlbeside each project whose baseline it raises to a new major version, the entries marked<IsBaselineSuppression>true</IsBaselineSuppression>and thePKV006andPKV007entries for a dropped target framework, keeps the others, and deletes the file when none is left, so the pull requestraise-baseline.ymlopens passes package validation, which rejects a suppression that matches nothing, without a manual fix; its description names the files. (#447, ADR-0150)
[0.106.0] - 2026-11-19
Added
- Once
version.jsonexists,.template/Update-Project.ps1andAdopt-Project.ps1name each job of the project's own workflows, other thanpublish.yml, that builds, packs, tests or pushes packages with anactions/checkoutstep withoutfetch-depth: 0, on which Nerdbank.GitVersioning fails the build, or with a-p:Versionargument, which it ignores. (#443, ADR-0138) - With NCode Review,
.template/Update-Project.ps1says whatcode-review.ymlandAGENTS.mdstill lack for its approval, also when the project is already up to date: a pin before v1.4.0, noapprove: trueor nodraft: yes, and to runtools/Set-RepositoryBaseline.ps1again afterwards. (#438, ADR-0022)
Changed
- A .NET library whose own workflow pushes its NuGet packages, which already got no
publish.yml, gets norelease-provenance.ymlorraise-baseline.ymleither, since onlypublish.ymlcalls them, and an update deletes the ones an earlier update added.SECURITY.md,GOVERNANCE.md,docs/architecture.md,docs/assurance-case.md,docs/best-practices-badge.md,docs/api-compatibility.mdanddocs/best-practices-criteria.mdname that workflow instead of describingpublish.yml, trusted publishing, thenugetenvironment and provenance. The newnuget_publisheranswer, which the update and the adoption work out from the workflows that runnuget push, records it. (#444, ADR-0151) SECURITY.mdsays how to verify a release tag's gitsign signature only whenAGENTS.md's Landing section tags releases (release: tagortag+release), and the update shows its change that way: the newrelease_policyanswer, never recorded, which the update and the adoption read from that line, writes the line in a new project'sAGENTS.md.docs/best-practices-criteria.md'sversion_tags_signedrow names the same condition. (#444, ADR-0028)
[0.105.0] - 2026-11-19
Added
/plan-docsand/plan-refactorgive a plan that changes how pages present their text, not what they say, a Done-when for each step that proves its pages keep every word of the plan's base commit, with component tags compared as sorted lists;/review-plan-diffbuilds a documentation site whose build commandAGENTS.mdnames and looks at the changed pages at the layout check's widths, or names them for you to look at when the session has no browser tool. (#442)
Changed
- A plan gets a
Release:line only when it changes something a release ships: the product's code, a file its package carries, such as the readme nuget.org shows, or its build output. A plan that changes only documentation-site pages, CI, decision records, tests or repository docs gets none:/ship-planlands it with no tag and no release,.template/Get-PlanState.ps1sends it to/finish-planonce it has landed,tag-release.ymltags and publishes nothing for it once the release before it is tagged and published, and its changelog entries wait under## [Unreleased]for the next release. (#439, ADR-0032) - A command that reaches a sibling repository finds it from the folder that holds the main checkout,
Split-Path -Parent (Split-Path -Parent (git rev-parse --path-format=absolute --git-common-dir)), never through.., which from a plan's worktree is.claude/worktrees/: the template's rules say so, and planning commands write Done-when commands that way. (#441)
Fixed
- A Copilot session passes no relative path to a .NET method, such as
[IO.File]::WriteAllText, which resolves it against the process's folder, the main checkout, and not the plan's worktree thatSet-Locationmoved to: the Copilot plan-folder rules,/finish-plan,/run-issuesand/address-feedbackin Copilot, and the template's rules say so, and a plan whose steps run a script repeats the rule under Context for the executor. (#440)
[0.104.0] - 2026-11-18
Added
- A .NET library whose
docs/site/site.config.json, the NCodeGroup/docs toolchain's config, names a documentation site insite.urlgets that site as its package's project page on nuget.org, unless it setsPackageProjectUrlitself; a library without one still gets its repository. (#434, ADR-0152)
Changed
- The plan format names every writer of a plan's
Completes:line:/ship-plan,/run-issuesafter it pushes fix steps, and a push made without/ship-plan, never a planner or an executor. (#433)
Fixed
.template/Update-Project.ps1no longer lists a file under "Local edits discarded", "Restored" or "Refreshed" when the update leaves it as the project had it, such as a local edit the new version also makes or a deleted file it also deletes; before, it said such an edit was discarded and should move to a project file. (#432)
[0.103.1] - 2026-11-17
Fixed
- With
integrate: direct,/ship-planlooks for the open follow-up issues a plan's work completes before it pushes to the default branch, as it does before it opens a pull request, and once the commits land it comments on and closes each issue on the plan'sCompletes:line, which no pull request closes there; before, such an issue stayed open. The template's rules, the plan format andUSAGE.mdsay so, and the rules also say to comment on and close those issues after a push to the default branch made without/ship-plan. (#430)
[0.103.0] - 2026-11-17
Added
/ship-planadds aClosesline to a plan's pull request description for each open follow-up issue the plan's work completes. Before it opens the pull request, and each time it pushes to an open one, such as after a renumber or merge step, it lists the open issues labelled with the Landing section'sfollow-up-labelthat were created since the plan's branch left the default branch, judges each against the branch's diff from the default branch as a review would, and records each one the work completes on a newCompletes:line ofPLAN.md, which/run-issueskeeps when it rewrites the description after a review round. An issue the work only partly completes stays open: once the plan has landed, it gets anAutopilot:comment naming what the plan did and what remains, and its body is rewritten to describe only what remains. (#428)/run-feedbackruns the same check after each push and adds theCloseslines to the pull request's description, the one edit to the description it makes; an issue the pull request only partly completes goes on aPartly completesline of the description, so a restarted run still finds it, and gets the comment and the rewritten body once the pull request merges. (#428)
Changed
- The template's rules say that a push made without
/ship-planfirst finds the follow-up issues its branch completes the same way, puts them on the plan'sCompletes:line, and drafts the pull request description with aClosesline for each. (#428)
Fixed
- A follow-up issue filed while another plan was still open, such as one
/ship-planfiled from a plan that had just landed, no longer stays open after that other plan's own work completes it and its pull request merges: the pull request now closes it. (#428)
[0.102.2] - 2026-11-17
Fixed
build/Update-Baseline.ps1replaces the baseline entry an earlier run left under## [Unreleased]instead of adding a second one, so a baseline pull request that merges after the next release leaves[Unreleased]naming only the baselinePackageValidationBaselineVersionholds; an entry in a release section stays as it is. (#426)
[0.102.1] - 2026-11-17
Added
- The template's ADR-0030 records that the repository baseline adds the code-scanning rule only where CodeQL's default setup analyzes a language, amending ADR-0005, and a new project's
docs/assurance-case.mdsays static analysis is enforced there. (ADR-0030) - The template's ADR-0031 records that the repository baseline turns off approval of the last push in its own "Protect main" ruleset where no approval is required, amending ADR-0022, which had it print the command and write nothing, and its sentence that the script never loosens a ruleset: this setting of its own ruleset is the one exception. (ADR-0031)
Fixed
tools/Set-RepositoryBaseline.ps1adds the code-scanning rule only where CodeQL's default setup is configured and analyzes a language, which its summary names. GitHub can report a setup as configured with no language, as it did for NCodeGroup/docs and NCodeGroup/brand once their organization's security configuration turned it on: CodeQL ran on no pull request, and the rule blocked every one with every check green. The script leaves the rule out there, says why, and switches no query suite, since the switch sendsquery_suitealone and sets up no language; a later run with-RequireChecksadds the rule once the repository's settings give CodeQL a language. A new project thatNew-Project.ps1 -CreateRemotecreates where an organization's security configuration turns default setup on can get no code-scanning rule that way, and needs that later run. (ADR-0030)- Where a "Protect main" ruleset already has a code-scanning rule that requires CodeQL and the default setup is configured but analyzes no language,
tools/Set-RepositoryBaseline.ps1warns that every pull request stays blocked and names the fix: set up CodeQL's languages in the repository's settings, or remove the rule, which the script never removes. It prints that warning, or its query-suite notice, also for a "Protect main" beside a ruleset of the owner's. (ADR-0030) tools/Set-RepositoryBaseline.ps1turns off approval of the last push in a "Protect main" ruleset that has it on with no required approval, and says so, also with-WhatIf; it never turns it on without one. GitHub then waits for an approval from someone other than the pusher and never lets an author approve their own pull request, so with one maintainer the setting is never met: on 2026-11-16 NCodeGroup/docs, whose ruleset had it on with zero approvals, kept a pull request blocked, with every check green, NCode Review approving, every conversation resolved and auto-merge on, until its owner unticked "Require approval of the most recent reviewable push". A run, with-RequireCheckstoo, had kept the setting, and a plain run only printed the command that turns it off. A ruleset that requires approvals keeps the setting and its count, and a ruleset of the owner's still gets the printed command and is written to nothing. On a plain run, where GitHub refuses the write that turns it off in "Protect main", the run reports it as not available and prints the same command; with-RequireChecks, which writes the whole ruleset, a refused write fails the repository like any other. A project with the setting on and zero approvals gets it turned off the next time it runs the baseline;-All -WhatIflists them first. (ADR-0031)
[0.102.0] - 2026-11-16
Changed
- The Node.js section of the template's rules says that a plan's worktree lies inside the main checkout, so a tool such as Vite can resolve the main checkout's
tsconfig.jsonand the packages it names from the main checkout'snode_modules, and to run the install in the main checkout when a build in a worktree fails to find such a package. (#415)
Fixed
- A Node.js project's build and tests no longer fail in a plan's worktree, such as with
Tsconfig not found astro/tsconfigs/strict, when a tool such as Vite reaches the main checkout'stsconfig.json, whoseextendsnames a package the main checkout has nonode_modulesfor: each planning and analysis command's worktree setup, which/run-issuesand/address-feedbackalso follow, runs the project's install in the main checkout too when it has apackage.jsonand nonode_modules, and the plan says so under Context for the executor. (#415)
[0.101.1] - 2026-11-16
Fixed
.template\Update-Project.ps1andAdopt-Project.ps1name a build script of the project's own as runningdotnet csharpier checkonly when a command in it runs the check, such asdotnet csharpier check ., orcsharpier check .at the start of a statement, withcsharpierin lower case. A script whose comment-based help, comment or string only mentions the check, such as a synopsis sayingbuild/dod.ps1runs the CSharpier check, is no longer named. (#414, ADR-0148)/plan-template-updatecounts a project's build script as repeating a check a template script runs only when a command in it runs that check, not when its comments, help or strings name it. (#414)
[0.101.0] - 2026-11-16
Added
tools/Set-RepositoryBaseline.ps1 -SkipImmutableReleasesleaves a repository's releases mutable, for a project whose releases get files after they are published in a way the script doesn't detect. (#411, ADR-0028)tools/Set-RepositoryBaseline.ps1prints a notice with thegh api -X DELETE repos/OWNER/REPO/immutable-releasescommand where a repository's releases are already immutable and a workflow on its default branch runs on areleaseevent or uploads release assets, whose next release would fail; it never turns them off itself. (#411, ADR-0028).template/Update-Project.ps1says to delete, or leave out of the template's change,SECURITY.md's paragraph that says releases are immutable when a workflow in.github/workflowsruns on a release event or uploads release assets, also when the project is already up to date. (#411, ADR-0028)Adopt-Project.ps1prints the same note when theSECURITY.mdan adoption leaves says releases are immutable and a workflow in.github/workflowsruns on a release event or uploads release assets. (#411, ADR-0028)
Fixed
tools/Set-RepositoryBaseline.ps1no longer turns on immutable releases in a repository where a workflow on the default branch runs on areleaseevent or uploads release assets, such as a project's ownpublish.ymlthat attaches files to a published release, which an immutable release refuses: it read onlyrelease-provenance.yml. Its line names those workflows, or one it can't read. (#411, ADR-0028)
[0.100.0] - 2026-11-16
Added
.template\Update-Project.ps1names each job ofci.yml, or its top-levelpermissions:, that asks for more thancontents: read:tag-release.ymlcallsci.ymlwith onlycontents: read, and GitHub fails that run as it starts when a job asks for more, whatever itsif:says, so no release is tagged or published. Move such a job, such as a Codecov upload withid-token: write, into a workflow of its own. (#413, ADR-0026)Adopt-Project.ps1prints the update's notes on aci.ymlthe repository keeps, word for word: that it has noworkflow_calltrigger, and that it asks for more thancontents: read. (#413, ADR-0026)
Changed
ci.yml's comment on itsworkflow_calltrigger and ADR-0026 say thattag-release.ymlgrants it onlycontents: read, so a job that needs more goes in a workflow of its own. (#413, ADR-0026)
[0.99.2] - 2026-11-16
Fixed
GOVERNANCE.mdanddocs/architecture.mdno longer say a project starts withrelease: none, which was wrong for an existing project that already releases when an update adds them: they say releases are tagged whenAGENTS.md's Landing section setsrelease: tag, and published too withtag+release. Both files are project-owned, so a project that already has them deletes the closing clause that namesrelease: nonefromGOVERNANCE.md's Releases section anddocs/architecture.md's Build and Release section itself. (#412)
[0.99.1] - 2026-11-16
Fixed
- With
file_headers,.template/Test-FileHeaders.ps1checks Astro components, stylesheets and hand-written declaration files, which it skipped: an.astrofile holds the two lines as//comments inside its frontmatter, so they never reach the built page, and-Fixadds them right after the opening---line, or in a---block of their own when the file has none; a.css,.scssor.lessfile holds them as/* */comments; and every tracked.d.tsfile is checked, since generated ones sit in git-ignored folders. Files under avendor/folder, other authors' code, are skipped asnode_modules/is. (#416, ADR-0027) - With
coverage_gate, the Coverage check ofdocs/best-practices-criteria.mdno longer says CI doesn't gate on coverage beside the sentence that names the gate. (#416)
[0.99.0] - 2026-11-16
Added
- A
/best-practicescommand, in Claude Code, Copilot Chat and Copilot CLI, verifies a project's OpenSSF Best Practices answers in its repository: it runs the checks ofdocs/best-practices-criteria.md(coverage, a gitleaks scan of the whole history, cryptography and TLS, outbound addresses, the build, regression tests), resolves each evidence link, compares the answers saved at bestpractices.dev once the project is registered, and writes the prompt that registers the project or updates its answers tobest-practices-prompt.txt, which.gitignoreignores. (#401) - A Node.js project's CI and Landing
gaterun Biome,<package_manager> run lint, with the rules in a project-ownedbiome.json, under the newnode_lintanswer;CONTRIBUTING.mdsays how to pin Biome and add itslintandformatscripts. (#402, ADR-0201) - Under the new
coverage_gateanswer, CI fails below 90% of the statements or 80% of the branches, the gold thresholds, through.template/Test-Coverage.ps1:build/dod.ps1collects .NET's coverage in a Coverage stage, the default Python and PowerShell test commands writecoverage.xml, and a Node.js project'stestscript writeslcov.info. (#403, ADR-0026) - Under the new
file_headersanswer, for every stack but .NET, CI fails on a source file without the copyright line and theSPDX-License-Identifierline, through.template/Test-FileHeaders.ps1, whose-Fixadds them. (#405, ADR-0027) - On GitLab, a Node.js or Python project's CI audits its dependencies on every pipeline, and
tools/Set-GitLabBaseline.ps1schedules a weekly pipeline, "Weekly dependency audit", so the checks also run when nothing is pushed. (#407, ADR-0029) .template\Update-Project.ps1prints the badge line to add whenbest_practices_projectis set andREADME.mddoesn't show the badge, also when the project is already up to date. (#408, ADR-0025)- In a public GitHub repository,
tag-release.ymlsigns each release tag with gitsign, and.template/Publish-Release.ps1 -Signtags withgit tag -s;SECURITY.md's new Verify a Release section says how to check a tag withgitsign verify-tag. (#409, ADR-0028)
Changed
node_lint,coverage_gateandfile_headersare on for a new project and off for an updated or adopted one, ascsharp_formatis: turn one on with.\.template\Update-Project.ps1 -Data @{ <answer> = $true }. (#402, #403, #405)tag-release.ymlrunsci.ymlagain on a release's commit, throughci.yml's newworkflow_calltrigger, and tags the release only once it passes;.template\Update-Project.ps1warns whenci.ymlcan't be called. (#406, ADR-0026)tools/Set-RepositoryBaseline.ps1turns on immutable releases, so GitHub signs an attestation of each release, except in a repository withrelease-provenance.yml; a new GitHub project'sSECURITY.mdsays how to check one withgh release verify. (#404, ADR-0028)docs/best-practices-criteria.mdanswerscoding_standards_enforced,warnings, the coverage criteria,dynamic_analysis,copyright_per_file,license_per_file,signed_releases,version_tags_signedand, on GitLab,dependency_monitoringfrom the checks a project has turned on. (#402, #403, #404, #405, #406, #407, #409)
[0.98.0] - 2026-11-16
Added
- Every project gets
docs/best-practices-criteria.md, which the template owns and updates: all 145 OpenSSF Best Practices criteria of the passing, silver and gold levels, each with its requirement at that level, whether N/A and a URL apply, and the answer to expect, Met, Check, N/A, Gap, Person or Unmet, with its evidence for the project's stack and host; what stops a level, the checks to run before answering and, on GitHub, the prompts that register the project and update its answers in Claude in Chrome. (#398, ADR-0025) - The
best_practices_projectanswer, never asked, records the project's number at bestpractices.dev once it is registered:.\.template\Update-Project.ps1 -Data @{ best_practices_project = '<number>' }.docs/best-practices-criteria.mdthen shows the badge forREADME.mdand the address of the saved answers, and a project created or adopted with the answer gets the badge inREADME.mdanddocs/best-practices-badge.md. (#398, ADR-0025)
Changed
- A new project's
SECURITY.mdpromises an acknowledgement within 14 days, itsCONTRIBUTING.mdhas a Review Requirements section and names thegood first issuelabel, itsdocs/assurance-case.mdhas a Security Reviews section, and itsdocs/best-practices-badge.mdlinks the criteria page, says where the project stands and lists the gold criteria that need a person. These files are project-owned: an update shows the template's changes to them, to take what fits. (#398, ADR-0025) - ADR-0023 and, on GitHub, ADR-0020 name the criteria page and what the gold level needs from people. (#398, ADR-0025)
- On GitHub, a new .NET, Node.js or Python project's
CONTRIBUTING.mdsays that a reformat or a large move brings back dismissed CodeQL alerts, which need dismissing again, and to keep a dismissal's reason that the code doesn't show in a comment beside it. (#398)
[0.97.0] - 2026-11-15
Added
.template\Update-Project.ps1, also when the project is already up to date, andAdopt-Project.ps1warn when the repository has noLICENSEorCOPYINGfile: for a blanklicenseanswer they print the command that adds Apache-2.0,.\.template\Update-Project.ps1 -Data @{ license = 'Apache-2.0' }, in which another SPDX expression can take its place, and for any other answer they say to add that license's text asLICENSE.txt. (#397, ADR-0024)
Changed
- The
licensequestion defaults toApache-2.0, NCode Group's license, so a new project getsLICENSE.txtandCOPYRIGHT.txt; answer another SPDX expression, such asMIT, or blank for none. A project keeps the answer it has, and one from before the question, or adopted without a license the adoption can read, gets a blank answer, never the default. (#397, ADR-0024)
Fixed
- ADR-0020's License row no longer says every GitHub project ships a license file: it names
LICENSE.txtfor an Apache-2.0 or MITlicense, and otherwise the command that adds one. (#397, ADR-0020)
[0.96.0] - 2026-11-15
Added
- Every project gets
GOVERNANCE.md,CODE_OF_CONDUCT.md(Contributor Covenant 2.1),ROADMAP.md,docs/architecture.md,docs/assurance-case.mdanddocs/best-practices-badge.md, the documents the OpenSSF Best Practices silver level asks for, mapped to its criteria. They are project-owned, an update adds missing ones, and prompts say what to write. Theconduct_contactanswer says where conduct reports go; blank, GitHub's private report form or a confidential GitLab issue. (#383, ADR-0023) release-provenance.ymlruns by hand to attest an earlier release while its Publish packages run's artifact is kept (14 days):gh workflow run release-provenance.yml -f tag=<tag> -f run-id=<run id>. (#381, ADR-0151)
Changed
- Breaking: A .NET library's
release-provenance.ymlandraise-baseline.ymlrun as jobspublish.ymlcalls, not onworkflow_run, which never fired for the runtag-release.ymlstarts. Add the template'sprovenanceandbaselinejobs to yourpublish.yml; the update says so until you do. Scorecard averages the last five releases with assets: delete older unsigned assets, or wait five releases. (#381, ADR-0151) - With NCode Review,
code-review.ymlpassesapprove: true(v1.4.0), so a clean review approves; new projects open drafts (draft: yes); andtools/Set-RepositoryBaseline.ps1then requires one approval, dismisses stale approvals and requires approval of the last push. To adopt it, pin v1.4.0, addapprove: true, set- draft: yesand rerun the baseline script. A bot's pull request then waits for a maintainer's approval; after a push by hand, comment/review. (#382, ADR-0022) - ADR-0020 follows Scorecard's source: Code-Review counts any non-author approval, bots included; Branch-Protection scores no tier after tier 2 until tier 2, one required approval, is met; Signed-Releases averages the last five releases with assets; CII-Best-Practices scores silver 7, gold 10. (#386, ADR-0020)
Fixed
tools/Set-RepositoryBaseline.ps1no longer requires approval of the last push without a required approval, which blocked every merge with one maintainer; for a ruleset that does, it prints the command that turns it off, for the maintainer, since it never loosens a ruleset. (#385)
The 56 older section(s) don't fit in an issue; read them in CHANGELOG.md.
Activity
[-]Update to project-template v0.75.6[/-][+]Update to project-template v0.97.0[/+][-]Update to project-template v0.97.0[/-][+]Update to project-template v0.112.2[/+]polewskm commentedon Nov 28, 2026
Part of NCodeGroup/project-template#576.
Record the contribution policy in this update:
curated.What
This repository's contribution policy is
curated, as [ADR-0052](https://github.com/NCodeGroup/project-template/blob/main/template/docs/decisions/project-template/0052-each-repository-states-its-contribution-policy-and-the-baseline-enforces-it.md)defines it. Issues and discussion are welcome, and code is by invitation while the design settles. A library's answer may move toopenonce it is ready, and that is a person's choice.How
In this repository's next template update, to project-template v0.141.0 or newer, record the answer:
Or run
/plan-template-update, which plans the update and its follow-on edits, with the same-Data. Thentools/Set-RepositoryBaseline.ps1in project-template mirrors the answer into thecontribution-policyproperty and enforces it.Until then
The baseline enforces a repository with no answer as
maintainers.Done when
.copier-answers.ymlrecordscontributions: curated, andCONTRIBUTING.mdandREADME.mdstate it.Generated by Claude Code
polewskm commentedon Nov 29, 2026
Plan snapshot. The working copy is
PLAN.mdin the plan's checkout; this comment is not updated as steps run.Plan: Update to project-template v0.145.1 recording the curated policy (14 steps)
Plan: Update to project-template v0.145.1 recording the curated policy
Issue: #25
Goal
Update the repository from project-template v0.61.2 to v0.145.1 and record its contribution policy,
curated(the template's ADR-0052):.copier-answers.ymlrecordscontributions: curated, andCONTRIBUTING.mdandREADME.mdstate it. The update's follow-on work lands in the same pull request: the stale NuGet logistics the update names, Nerdbank.GitVersioning inmain.yml, the template's changes to the project-owned files, a package readme of the package's own, and the README's .NET library layout.Context for the executor
dotnet builddotnet test[IO.File]::ReadAllText,[IO.File]::WriteAllTextor[IO.Directory]::GetFiles: .NET resolves it against the process's folder, whichSet-Locationdoesn't move and which in a Copilot session is the main checkout, not the plan's worktree. UseGet-Content -LiteralPath,Set-Content -LiteralPathorGet-ChildItem, or make the path absolute first withJoin-Path (Get-Location) <path>.build/ProjectTemplate.propsfails the build with PT0155 on thenet9.0target until step 2 setsProjectTemplateLtsCheck.dotnet packfails with NU5026 until step 3 removesGeneratePackageOnBuild.C:\Users\Marcin\.copilot\session-state\6566c0c4-4187-4100-b4db-5e2f6533ba84\files\scratch\render(copier copy --vcs-ref v0.145.1with the answers of step 1).Decisions
contributions = 'curated'(issue Update to project-template v0.112.2 #25),repository = 'NCodeGroup/Extensions.DataProtection',main_project = 'NCode.Extensions.DataProtection/NCode.Extensions.DataProtection.csproj'(the update's default names asrc/folder this repository doesn't have) andproject_description, one sentence from the repository's description, so the README header gets its description, CI, target framework, license and Scorecard badges.docs_urlstays blank: the project has no documentation site.release: nonestays inAGENTS.md, so the plan has noRelease:line and its changelog entries go under## [Unreleased](ADR-0032); moving totag+releaseand topublish.ymlwith trusted publishing is Decisions left after the project-template v0.61.2 and NCode Review v1.1.2 upgrade #24's Publishing decision, which this plan leaves to the maintainer. The update leavespublish.yml,release-provenance.ymlandraise-baseline.ymlout becausemain.ymlpublishes (nuget_publisher).AGENTS.mdtakes the template's Landing text and keys (pre-release: tracked,draft: yes,board: none,planning: none) and the Outside Contributions section;draft: yesbecause the NCode Review Approver's key is now stored in thecode-reviewenvironment, so marking a draft ready is the maintainer's review.net8.0(end of support 2026-11-10) andnet9.0(STS) stay targeted: dropping a target is a breaking change that needs the maintainer's decision, filed as Drop the end-of-support net8.0 and STS net9.0 targets and the LTS check exceptions #32. Until thenDirectory.Build.propssetsProjectTemplateLtsChecktofalseandci.ymlrunsTest-DotnetSupport.ps1 -WarnOnly, as its comment invites.version.jsonkeeps the update'sassemblyVersionof1.0.1withprecision: build, so the 1.x assemblies keep 1.0.1.0, the published 1.0.1's, which settles Decisions left after the project-template v0.61.2 and NCode Review v1.1.2 upgrade #24's AssemblyVersion item; the changelog's[Unreleased]entry that promised1.0.0.0is rewritten to match.code-review.ymltakes the template's v0.145.1 file: NCode Review v1.7.0 withapprove: true, the approver key andreview-forks: true, under ADR-0009's commented cooldown exception until 2026-11-30T21:24Z; Drop NCode Review v1.7.0's cooldown exception #31 removes the exception.NCode.Extensions.DataProtection/README.md, whichbuild/ProjectTemplate.propspacks in place of the root README, so nuget.org never shows the template's HTML header.project.props, which nothing imports, moves into the project file;GeneratePackageOnBuildand the settingsbuild/ProjectTemplate.propsalready makes are deleted; the.slnbecomes.slnx; six files lose their byte order mark.SECURITY.mdtakes the template's changes but keeps its own description ofmain.yml's publish job, and says a package's version comes fromversion.json; it gets no "Verify a Release" section, which needsrelease: tag+release.docs/architecture.mdanddocs/assurance-case.md, which the update adds as placeholders, are written for this library.gh.Out of scope
publish.yml, retiringmain.yml's CI,main.ymlhardening beyond Nerdbank.GitVersioning, and the changelog dates.net8.0ornet9.0(Drop the end-of-support net8.0 and STS net9.0 targets and the LTS check exceptions #32).Steps
[ ] 1. Update from project-template v0.145.1
.copier-answers.yml,.template-version,.template/,.claude/,.github/,.githooks/,.editorconfig,.gitignore,build/,docs/decisions/project-template/,docs/api-compatibility.md,docs/architecture.md,docs/assurance-case.md,docs/best-practices-badge.md,docs/best-practices-criteria.md,docs/replies.md,CLAUDE.md,CODE_OF_CONDUCT.md,GOVERNANCE.md,ROADMAP.md,NCodeGroup.png,version.json,Directory.Packages.props,.githooks/commit-msg(deleted),.template/Test-CommitAttribution.ps1(deleted)https://github.com/NCodeGroup/project-template.gitinto a scratch folder outside the repository and run& .\.template\Update-Project.ps1 -Ref v0.145.1 -NoCommit -TemplateClone <scratch> -Data @{ contributions = 'curated'; repository = 'NCodeGroup/Extensions.DataProtection'; main_project = 'NCode.Extensions.DataProtection/NCode.Extensions.DataProtection.csproj'; project_description = 'Extensions and utilities for ASP.NET Core Data Protection, including a type-safe IDataProtector factory and high-performance span-based protection operations.' }. The trial printedTemplate v0.61.2 -> v0.145.1:with 1 conflict,Directory.Packages.props: keep thebefore updatingside (this project's package versions) and drop the template's empty<ItemGroup></ItemGroup>, thengit add Directory.Packages.props. Delete the scratch folder. Commit note: stage withgit add -A -- . ':!PLAN.md'limited to the update's files;.githooks/commit-msgand.template/Test-CommitAttribution.ps1are already staged as deleted.if ((Select-String -LiteralPath .copier-answers.yml -Pattern '^_commit: v0.145.1$' -Quiet) -and (Select-String -LiteralPath .copier-answers.yml -Pattern '^contributions: curated$' -Quiet) -and -not (git diff --name-only --diff-filter=U) -and -not (git grep -lE '^(<<<<<<<|>>>>>>>) ')) { exit 0 } else { exit 1 }[ ] 2. Keep the net8.0 and net9.0 targets until #32 decides, and set the package validation baseline
Directory.Build.props(edit),.github/workflows/ci.yml(edit)Directory.Build.propsreplace theDocumentationFileline, whichbuild/ProjectTemplate.propsalready sets, with a commented<ProjectTemplateLtsCheck>false</ProjectTemplateLtsCheck>naming ADR-0155 and Drop the end-of-support net8.0 and STS net9.0 targets and the LTS check exceptions #32, and a commented<PackageValidationBaselineVersion>1.0.1</PackageValidationBaselineVersion>naming ADR-0147 andbuild/Update-Baseline.ps1. Inci.ymlrun./build/Test-DotnetSupport.ps1 -WarnOnlyand extend the step's comment: net8.0 reached its end of support on 2026-11-10 and net9.0 is an STS release, and issue Drop the end-of-support net8.0 and STS net9.0 targets and the LTS check exceptions #32 decides their removal, a breaking change.dotnet build; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 }[ ] 3. Fix the stale NuGet project settings
NCode.Extensions.DataProtection/NCode.Extensions.DataProtection.csproj(edit),NCode.Extensions.DataProtection/project.props(delete),NCode.Extensions.DataProtection.Tests/NCode.Extensions.DataProtection.Tests.csproj(edit)DescriptionandPackageTagsfromproject.propsinto the library's project file, in place of its secondPropertyGroup, and deleteproject.props; deleteGeneratePackageOnBuild,ImplicitUsings,Nullable,LangVersion,PublishRepositoryUrl,EmbedUntrackedSources,IncludeSymbols,SymbolPackageFormatand the emptyItemGroup; deleteImplicitUsingsandNullablefrom the test project. Pattern: NCodeGroup/Base64Url'sNCode.Base64Url/NCode.Base64Url.csproj.dotnet pack NCode.Extensions.DataProtection -c Release -o artifacts/plan-pack; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 }[ ] 4. Move the solution to .slnx
NCode.Extensions.DataProtection.sln(delete),NCode.Extensions.DataProtection.slnx(new),NCode.Extensions.DataProtection.sln.DotSettings→NCode.Extensions.DataProtection.slnx.DotSettings(rename)dotnet sln NCode.Extensions.DataProtection.sln migrate, delete the.sln,git mvthe DotSettings file.if ((Test-Path NCode.Extensions.DataProtection.slnx) -and -not (Test-Path NCode.Extensions.DataProtection.sln)) { dotnet build; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 } } else { exit 1 }[ ] 5. Drop the byte order marks
LICENSE.txt,NCode.Extensions.DataProtection/Properties/AssemblyInfo.cs,NCode.Extensions.DataProtection/DataProtectorExtensions.cs,NCode.Extensions.DataProtection/DataProtectorFactory.cs,NCode.Extensions.DataProtection/Registration.cs,NCode.Extensions.DataProtection.Tests/DataProtectorExtensionsTests.cs$bad = 'LICENSE.txt','NCode.Extensions.DataProtection/Properties/AssemblyInfo.cs','NCode.Extensions.DataProtection/DataProtectorExtensions.cs','NCode.Extensions.DataProtection/DataProtectorFactory.cs','NCode.Extensions.DataProtection/Registration.cs','NCode.Extensions.DataProtection.Tests/DataProtectorExtensionsTests.cs' | Where-Object { $b = Get-Content -LiteralPath $_ -AsByteStream -TotalCount 3; $b[0] -eq 0xEF -and $b[1] -eq 0xBB }; if ($bad) { exit 1 } else { exit 0 }[ ] 6. Build main.yml with Nerdbank.GitVersioning
.github/workflows/main.yml(edit)fetch-depth: 0, with the comment# Nerdbank.GitVersioning computes the version from the history and fails on a shallow clone., to theactions/checkoutstep of the build, test and publish jobs; delete theExtract version from tagstep; build with-p:PublicRelease=${PUBLIC_RELEASE}andPUBLIC_RELEASE: ${{ github.event_name == 'release' }}in place of/p:Version="${BUILD_VERSION}", with a comment naming ADR-0138. Pattern: NCodeGroup/Base64Url's.github/workflows/main.yml.if ((Select-String -LiteralPath .github/workflows/main.yml -Pattern 'BUILD_VERSION|get-version-action' -Quiet) -or ((Select-String -LiteralPath .github/workflows/main.yml -Pattern 'fetch-depth: 0').Count -ne 3)) { exit 1 } else { exit 0 }[ ] 7. Take the template's code-review.yml with NCode Review v1.7.0's cooldown exception
.github/workflows/code-review.yml(edit).github/workflows/code-review.yml, then add after the line ending0041-ncode-review-reviews-and-approves-dependabots-pull-requests.md say why.the three lines:# v1.7.0 was released on 2026-11-27T21:24Z, under the three days ADR-0009 waits: it is pinned by that record's/# commented exception, because review-forks needs it, and this sentence goes once 2026-11-30T21:24Z has passed/# (issue #31 removes it).if ((Select-String -LiteralPath .github/workflows/code-review.yml -Pattern 'c88c378ad166b57027bf504526e09585e727c33c # v1.7.0').Count -eq 2 -and (Select-String -LiteralPath .github/workflows/code-review.yml -Pattern 'issue #31 removes it' -Quiet) -and (Select-String -LiteralPath .github/workflows/code-review.yml -Pattern 'approve: true' -Quiet)) { exit 0 } else { exit 1 }[ ] 8. Take the template's changes to AGENTS.md
AGENTS.md(edit)## Outside Contributionssection after the opening paragraphs, as the trial printed it; replace the Landing paragraph with the template's; add- pre-release: trackedafterchangelog, set- draft: yes, add- board: noneand- planning: nonebeforeprelude; keeprelease: noneand the Conventions section.if ((Select-String -LiteralPath AGENTS.md -Pattern '^## Outside Contributions$' -Quiet) -and (Select-String -LiteralPath AGENTS.md -Pattern 'it iscurated' -Quiet) -and (Select-String -LiteralPath AGENTS.md -Pattern '^- planning: none$' -Quiet) -and (Select-String -LiteralPath AGENTS.md -Pattern '^- release: none$' -Quiet)) { exit 0 } else { exit 1 }[ ] 9. Take the template's CONTRIBUTING.md and SECURITY.md changes
CONTRIBUTING.md(edit),SECURITY.md(edit)CONTRIBUTING.mdbecomes the render's copy, which states the curated policy in its first paragraph. InSECURITY.mddelete the maintainer reminder comment about private vulnerability reporting (it is on), takewithin 14 days, and end themain.ymlsentence witheach package's version comes from version.json, which the release's tag matches.if ((Select-String -LiteralPath CONTRIBUTING.md -Pattern 'code is by invitation while the design settles' -Quiet) -and -not (Select-String -LiteralPath SECURITY.md -Pattern 'Maintainers: the button' -Quiet) -and (Select-String -LiteralPath SECURITY.md -Pattern 'within 14 days' -Quiet)) { exit 0 } else { exit 1 }[ ] 10. Take the template's docs changes and describe the components and the assurance case
docs/README.md,docs/decisions/README.md,docs/designs/_template.md,docs/metrics.md,docs/architecture.md,docs/assurance-case.mddocs/architecture.md's Components table and design rules anddocs/assurance-case.md's requirements, threat model, principles, CWEs and evidence for this library, following NCodeGroup/Base64Url's pages and this repository'smain.ymlpublishing.pwsh -NoProfile -File .template/Test-AdrIndex.ps1; if (-not $? -or $LASTEXITCODE -or (Select-String -LiteralPath docs/architecture.md,docs/assurance-case.md -Pattern 'Not (described|written) yet' -Quiet)) { exit 1 } else { exit 0 }[ ] 11. Give the package its own readme
NCode.Extensions.DataProtection/README.md(new)https://github.com/NCodeGroup/Extensions.DataProtection/blob/main/....if ((Test-Path NCode.Extensions.DataProtection/README.md) -and -not (Select-String -LiteralPath NCode.Extensions.DataProtection/README.md -Pattern 'template:readme-header' -Quiet)) { exit 0 } else { exit 1 }[ ] 12. Bring README.md to the .NET library layout
README.md(edit)./.template/Test-Readme.ps1 -Fix, delete the old badges and title the header replaces, add the curated sentence under the header, move the description into place, and order the sections Features,## Installation,## Quick start(the basic setup and factory example),## Usage(the span extensions, requirements and known limitations under it),## Project(with the template's lines for Issues, the Code of Conduct, governance, roadmap, architecture and replies),## Licenseand the release notes../.template/Test-Readme.ps1; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 }[ ] 13. Record the template update in the changelog
CHANGELOG.md(edit)## [Unreleased], rewrite theAssemblyVersionentry to say the 1.x assemblies keep 1.0.1.0, the published 1.0.1's, until the next major version, and add entries for the template update with the curated policy, version.json with Nerdbank.GitVersioning and package validation against 1.0.1, and the package's own readme, description and tags, each ending with([#25](https://github.com/NCodeGroup/Extensions.DataProtection/issues/25)).if ((Select-String -LiteralPath CHANGELOG.md -Pattern 'v0.145.1' -Quiet) -and -not (Select-String -LiteralPath CHANGELOG.md -Pattern '1\.0\.0\.0. for every' -Quiet)) { exit 0 } else { exit 1 }[ ] 14. Pass the gate
./build/dod.ps1 -Fast; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 }Review checklist
gh api repos/NCodeGroup/Extensions.DataProtection/code-scanning/default-setup --jq .languageslistsactionsandcsharp, whichcodeql.ymldetects; thengh api -X PATCH repos/NCodeGroup/Extensions.DataProtection/code-scanning/default-setup -f state=not-configured, and re-run the failed Analyze jobs.Commit attributionrequired check from the "Protect main" ruleset, whose check the update deletes.NCode.Extensions.DataProtection/README.md, the description and the tags.tools/Set-RepositoryBaseline.ps1in project-template mirrorscontributions: curated(the coordinator runs it).