You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 to open once 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. Then tools/Set-RepositoryBaseline.ps1 in project-template mirrors the answer into the contribution-policy property and enforces it.
Until then
The baseline enforces a repository with no answer as maintainers.
Done when
.copier-answers.yml records contributions: curated, and CONTRIBUTING.md and README.md state it.
Update the project from project-template v0.114.0 to v0.145.0, recording the contributions: curated answer that
ADR-0052 asks every repository to state, so the baseline enforces curated rather than maintainers. README.md and CONTRIBUTING.md state the policy in the words a new project gets, and the project-owned files the template changed
since v0.114.0 take the template's changes, so they describe the template the project is now on.
Context for the executor
Build: dotnet build
Test: dotnet test
Gate: ./build/gate.ps1 -Fast
Conventions: Markdown prose in this repository wraps at 120 columns, except the long single-line paragraphs the
template renders, which stay on one line as the template writes them. Keep every file's line endings as they are.
Gotchas:
A script or command never passes a relative path to a .NET method, such as [IO.File]::ReadAllText, [IO.File]::WriteAllText or [IO.Directory]::GetFiles: .NET resolves it against the process's folder, which Set-Location doesn't move and which in a Copilot session is the main checkout, not the plan's worktree. Use Get-Content -LiteralPath, Set-Content -LiteralPath or Get-ChildItem, or make the path absolute first with Join-Path (Get-Location) <path>.
.template/Update-Project.ps1 needs copier on PATH and network access to github.com; it hands the update over
to the v0.145.0 script and prints Copier's "Make sure Git >= 2.24 is installed", a false alarm.
The step 1 update exits 1 because .github/workflows/ci.yml conflicts; that is expected and the step resolves it.
README.md's header block between <!-- template:readme-header --> and <!-- /template:readme-header --> is
rendered by ./.template/Test-Readme.ps1 -Fix from .copier-answers.yml; never edit inside the markers by hand.
Decisions
Target v0.145.0, the template's newest tag on 2026-11-29. It is under three days old; ADR-0009 covers dependencies and
CI actions, and the template's own update workflow and Record the contribution policy: curated #35 ask for the newest release, so the update takes it.
-Data also sets docs_url = 'https://randomness.ncode.io/' and project_description to the README's current,
longer description, so the header block the template now renders (ADR-0055) shows the README's existing header with
its documentation badge; project_description is used only by AGENTS.md's first render and the README header.
ci.yml conflict: keep the template's new Check the README layout step and the project's own gate comment and ./build/gate.ps1 command.
code-review.yml takes the template's changes (ADR-0041 Dependabot reviews, ADR-0043 fork reviews, synchronize), pinning NCodeGroup/code-review v1.7.0 by its commit. v1.7.0 was published 2026-11-27T21:24Z, so
until 2026-11-30T21:24Z the pin carries ADR-0009's commented exception, as the template's v0.121.0 file did; the
template dropped that comment early in v0.125.0, which code-review.yml pins NCode Review v1.7.0 without ADR-0009's exception before it is three days old project-template#602 tracks. Removing the comment
once the date has passed is a follow-up, since it can't be done in this pull request before then.
The other project-owned files the trial named take the template's hunks: AGENTS.md (Outside Contributions section, board and planning lines), CODE_OF_CONDUCT.md, CONTRIBUTING.md, GOVERNANCE.md, docs/api-compatibility.md, docs/assurance-case.md, docs/best-practices-badge.md (its dco row; not the dropped blank line before ## Where It Stands, best-practices-badge.md loses the blank line before Where It Stands unless contributions is open project-template#601), docs/designs/_template.md and docs/README.md. ROADMAP.md's hunk changes a prompt comment this project already replaced, so it is skipped.
docs/best-practices-badge.md names small_tasks as unmet while the answer isn't open, as the template's
criteria now answer it.
AGENTS.md's secret-material convention names ADR-0156, the template's current rule (NCode.Buffers' pinned pools),
as the rule ADR-1012 overrides, instead of the ArrayPool<T>.Shared rule ADR-0156 replaced.
CONTRIBUTING.md's paragraph on the Copier template says the update renders README.md's header block again, as the
template's README now says.
No Release: line: nothing a package carries changes. build/ProjectTemplate.props gains only the PT0155 LTS check,
which net10.0 passes, and the packages' readmes are src/*/README.md, which this plan doesn't touch. The changelog
entry goes under ## [Unreleased].
The changelog step comes before the gate step: the template-update plan ends with the gate.
The protected paths this plan changes (.copier-answers.yml, .template/, .claude/, .github/, .githooks/, build/, AGENTS.md) are allowed because /run-issues-all-in names Record the contribution policy: curated #35 by number.
Out of scope
Running tools/Set-RepositoryBaseline.ps1 or changing repository settings from a step.
Any change to the product's code, tests, src/*/README.md or the site pages.
Editing inside README.md's header markers by hand.
Change: run & .\.template\Update-Project.ps1 -Ref v0.145.0 -NoCommit -Data @{ contributions = 'curated'; docs_url = 'https://randomness.ncode.io/'; project_description = 'Cryptographically secure random numbers for .NET, strengthened by public randomness beacons such as CURBy, the NIST Randomness Beacon and drand, and reproducible draws that anyone can check against a beacon pulse.' }.
The trial printed Template v0.114.0 -> v0.145.0: with 31 files added (the commands, prompts and skills decompose-issue and offer-issues, codeql.yml, .template/Test-Readme.ps1, build/Test-DotnetSupport.ps1,
ADRs 0039–0058, 0155 and 0156, docs/replies.md), conflict .github/workflows/ci.yml, 115 files modified, none
deleted; "Kept" the upload-sarif v4.39.4 and setup-gitsign v1.8.3 pins; the project-owned diffs for code-review.yml, AGENTS.md, CODE_OF_CONDUCT.md, CONTRIBUTING.md, docs/api-compatibility.md, docs/assurance-case.md, docs/best-practices-badge.md, docs/designs/_template.md, docs/README.md, GOVERNANCE.md, README.md and ROADMAP.md; the CodeQL default-setup note; the README layout note; and 1 file(s) conflict. Any other difference is an escalation. Resolve .github/workflows/ci.yml: replace the block
from <<<<<<< before updating to >>>>>>> after updating with these six lines, then git add .github/workflows/ci.yml:
# A library's README opens with the header the template renders and follows its section layout (ADR-0055). -WarnOnly
# for this template release; the next one makes a gap fail.
- name: Check the README layout
run: ./.template/Test-Readme.ps1 -WarnOnly
# The gate checks the sample keys, the README samples and the API map (ADR-1014, ADR-1016), then runs the
# Definition of Done, which builds, tests and, for a library, packs, as build/dod.ps1 says.
Commit note: stage with git add -- the Files above; no file is deleted.
[ ] 3. Put README.md's header in the template's block and state the policy
Files: README.md (edit)
Change: insert the line <!-- template:readme-header --> above line 1 (<p align="center">), and the line <!-- /template:readme-header --> right after the </p> that closes the badge row (old line 20), before the blank
line. Then run ./.template/Test-Readme.ps1 -Fix, which renders the block (only the icon's alt becomes NCode Group). Below the closing marker, after its blank line, insert this paragraph and a blank line, before the
paragraph starting CURBy, the [University of Colorado Boulder's: Issues and discussion are welcome, and code is by invitation while the design settles, as [CONTRIBUTING.md](CONTRIBUTING.md) says.
In ## Project, after the line starting - [docs/decisions/](docs/decisions/README.md), add - [docs/replies.md](docs/replies.md): the replies the maintainers post to people outside the project.
Done when: ./.template/Test-Readme.ps1; if (-not $? -or $LASTEXITCODE) { exit 1 }; if ((Select-String -LiteralPath README.md -SimpleMatch 'code is by invitation while the design settles, as [CONTRIBUTING.md](CONTRIBUTING.md) says.' -Quiet) -and (Select-String -LiteralPath README.md -SimpleMatch '- [docs/replies.md](docs/replies.md)' -Quiet)) { exit 0 } else { exit 1 }
[ ] 4. State the policy in CONTRIBUTING.md and take the template's changes
Files: CONTRIBUTING.md (edit)
Change: replace line 3, which starts Issues and pull requests are welcome., with the template's line: Issues and discussion are welcome, and code is by invitation while the design settles: we don't assign issues, and a pull request from outside the maintainers is merged only when a maintainer asked for it. [README.md](README.md) explains the project, and [AGENTS.md](AGENTS.md) holds the rules every change follows, for people and coding agents alike. Report a vulnerability privately instead, as [SECURITY.md](SECURITY.md) says. Everyone taking part follows the [Code of Conduct](CODE_OF_CONDUCT.md); [GOVERNANCE.md](GOVERNANCE.md) says who decides what, and [ROADMAP.md](ROADMAP.md) where the project is going. When the maintainers decline an issue, close a pull request or answer a request to be assigned an issue, they post the reply [docs/replies.md](docs/replies.md) holds for it. This file, [SECURITY.md](SECURITY.md), the Code of Conduct and [GOVERNANCE.md](GOVERNANCE.md) take precedence over the defaults in the .github repository of the organization that owns this one, which cover the organization's repositories that have none of their own.
In item 6 of the workflow list, replace NCode Review reviews a draft too, and the maintainer with NCode Review reviews a draft too, except one from a fork, which it reviews once you mark it ready, and the maintainer,
and replace its last sentence, NCode Review skips a pull request from a fork or one a bot opened, such as Dependabot's: a maintainer approves it., with NCode Review never approves a pull request from a fork and skips one a bot other than Dependabot opened: a maintainer approves either ([pull requests from forks](docs/decisions/project-template/0043-ncode-review-reviews-a-forks-ready-pull-request-and-never-approves-it.md)). When a pull request from a fork falls behind the default branch, its author brings it up to date, with Update branch on the pull request or by merging the default branch into it and pushing, and a maintainer approves it again: GitHub counts a maintainer's update as their push, which approval of the last push would leave waiting for a second person with write access. CodeQL analyzes a fork's pull request too, once its workflows run ([forks](docs/decisions/project-template/0044-a-fork-pull-request-merges-without-a-bypass.md)). NCode Review reviews Dependabot's when it opens and after each push Dependabot makes, and approves a clean one ([Dependabot's pull requests](docs/decisions/project-template/0041-ncode-review-reviews-and-approves-dependabots-pull-requests.md)).
In the paragraph starting The workflow files come from a Copier template, replace and never touches AGENTS.mdorREADME.md. with and never touches `AGENTS.md`, and in `README.md` renders again only the header between `<!-- template:readme-header -->` and `<!-- /template:readme-header -->`, from the answers: change it with `.\.template\Update-Project.ps1 -Data`, never by editing inside the markers.
Done when: if ((Select-String -LiteralPath CONTRIBUTING.md -SimpleMatch 'code is by invitation while the design settles: we don''t assign issues' -Quiet) -and (Select-String -LiteralPath CONTRIBUTING.md -SimpleMatch '0043-ncode-review-reviews-a-forks-ready-pull-request-and-never-approves-it.md' -Quiet) -and (Select-String -LiteralPath CONTRIBUTING.md -SimpleMatch 'renders again only the header between' -Quiet) -and -not (Select-String -LiteralPath CONTRIBUTING.md -SimpleMatch 'Issues and pull requests are welcome.' -Quiet)) { exit 0 } else { exit 1 }
[ ] 5. Take the template's AGENTS.md changes and name ADR-0156
Files: AGENTS.md (edit)
Change: between the paragraph ending put anything longer in a listed file. and ## Instructions, insert: ## Outside Contributions, a blank line, then For an agent working for someone without write access to this repository. First read the contribution policy at the top of [CONTRIBUTING.md](CONTRIBUTING.md); it is curated. Code is by invitation: open no pull request unless a maintainer asked for it on its issue, and post no comment that only claims an issue. A person may file an issue in their own words.
and a blank line. In the Landing paragraph starting How `/ship-plan` lands, insert before `prelude`: `none`;
the text of c:\Users\Marcin\.copilot\session-state\6566c0c4-4187-4100-b4db-5e2f6533ba84\files\landing-insert.txt
(the board and planning sentences, ending with a space). After - max-review-rounds: 3 add - board: none and - planning: none, each on its own line. In the secret-material convention, replace This overrides the template's rule to rent transient buffers from / `ArrayPool<T>.Shared` for secret material; public data, such as a pulse or a response body, still rents from it. The
with these lines, keeping the two-space indent: array, which the garbage collector can copy. This overrides the template's rule, ADR-0156 in / `docs/decisions/project-template/`, to rent secret material from NCode.Buffers' pinned pools; public data, such as a / pulse or a response body, still rents from `ArrayPool<T>.Shared`. The.
[ ] 6. Take the template's code-review.yml with ADR-0009's exception for v1.7.0
Files: .github/workflows/code-review.yml (edit)
Change: git apply c:\Users\Marcin\.copilot\session-state\6566c0c4-4187-4100-b4db-5e2f6533ba84\files\code-review.patch.
It brings the file to the template's v0.145.0 render (synchronize, Dependabot's reviews, review-forks: true in
both steps, the fork if: lines, both pins NCodeGroup/code-review@c88c378ad166b57027bf504526e09585e727c33c # v1.7.0)
and adds, after the line ending 0041-ncode-review-reviews-and-approves-dependabots-pull-requests.md say why., the
comment # v1.7.0 was released on 2026-11-27 at 21:24 UTC, 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-30 21:24 UTC has passed.
Change: in GOVERNANCE.md's Contributor row, replace Opens issues and pull requests, under with Opens issues and joins their discussion, and opens a pull request when a maintainer asks for one, under. In the
Automation row, replace the ending where the ruleset requires an approval, a maintainer approves it | with where the ruleset requires an approval, it is approved: by ncode-review-approver[bot] after a clean review where NCode Review's approver is set up ([ADR-0041](docs/decisions/project-template/0041-ncode-review-reviews-and-approves-dependabots-pull-requests.md)), else by a maintainer |.
After the paragraph ending the change is recorded in this file., add a blank line and Everyone with write access submits only work they have the right to submit under Apache-2.0. Under ## Continuity, replace on with no knowledge held elsewhere. nuget.org with on with no knowledge held elsewhere. The organization's owners can administer every repository it holds, so they can step in / when the repository's maintainers can't. nuget.org (two lines). In CODE_OF_CONDUCT.md, replace "Conduct:". The report reaches the maintainers only. All complaints with "Conduct:". The report reaches the maintainers only. A report about behavior elsewhere in the organization that owns / this repository goes the same way to that organization's `.github` repository, whose Code of Conduct covers the / organization's repositories that have none of their own. All complaints (three lines).
Done when: if ((Select-String -LiteralPath GOVERNANCE.md -SimpleMatch 'opens a pull request when a maintainer asks for one' -Quiet) -and (Select-String -LiteralPath GOVERNANCE.md -SimpleMatch '0041-ncode-review-reviews-and-approves-dependabots-pull-requests.md' -Quiet) -and (Select-String -LiteralPath GOVERNANCE.md -SimpleMatch 'only work they have the right to submit' -Quiet) -and (Select-String -LiteralPath GOVERNANCE.md -SimpleMatch 'organization''s owners can administer' -Quiet) -and (Select-String -LiteralPath CODE_OF_CONDUCT.md -SimpleMatch 'behavior elsewhere in the organization' -Quiet)) { exit 0 } else { exit 1 }
[ ] 8. Take the template's changes to the assurance case, API compatibility and badge pages
Change: in docs/assurance-case.md, replace the Static analysis bullet's first two lines and its ADR-0030 line
(- **Static analysis:** with CodeQL's default setup configured and analyzing at least one language, the repository / ruleset blocks a pull request that adds a CodeQL alert at warning level or above, or a security alert of any severity /
… / [ADR-0030](…)).) with - **Static analysis:** with .github/workflows/codeql.yml, which runs CodeQL on every pull request, a fork's too, or / else CodeQL's default setup configured and analyzing at least one language, the repository ruleset blocks a pull / request that adds a CodeQL alert at warning level or above, or a security alert of any severity, keep the ADR-0005
line, end the ADR-0030 line with , instead of )., and add [ADR-0044](decisions/project-template/0044-a-fork-pull-request-merges-without-a-bypass.md)).. In docs/api-compatibility.md, replace The package version and target framework in the path are the ones this example's restore resolved; use
with The package version in the path is the one this example's restore resolved, and netN.0 stands for the target framework; use,
and 17.13.61/lib/net8.0/ with 17.13.61/lib/netN.0/. In docs/best-practices-badge.md, replace the dco bullet's
two lines with - dco(silver SHOULD): unmet by choice. The project asks forSigned-off-byonly once itscontributions answer is / open ([ADR-0053](decisions/project-template/0053-an-open-repository-asks-outside-contributors-to-sign-off-their-commits.md)).,
and replace `small_tasks` (no open issue is labeled `good first issue`) with `small_tasks` (unmet while the `contributions` answer isn't `open`: the project takes no outside code yet, so it / offers no small tasks to new contributors), rewrapping that paragraph at 120 columns.
Change: in docs/designs/_template.md, replace _The phases, in order. Each phase is shippable on its own, passes the project's full gate, and is one or more plans / with their issues. Say what each phase enables and how it is rolled out (flags, migrations, compatibility windows)._
with _The phases, in order. Each phase is shippable on its own, passes the project's full gate, and is an epic: an issue / of type Epic whose sub-issues are its stories, one plan each. Link each phase's epic and list none of its stories. / Say what each phase enables and how it is rolled out (flags, migrations, compatibility windows)._. In docs/README.md, after the line `decisions/` as its phases land., add - [replies.md](replies.md): the standard replies to people outside the project, for declining an issue, closing a pull / request and answering a claim, which the maintainers post word for word.
Done when: if ((Select-String -LiteralPath docs/designs/_template.md -SimpleMatch 'of type Epic whose sub-issues are its stories' -Quiet) -and (Select-String -LiteralPath docs/README.md -SimpleMatch '[replies.md](replies.md)' -Quiet)) { exit 0 } else { exit 1 }
[ ] 10. Record the contribution policy in the changelog
Files: CHANGELOG.md (edit)
Change: under ## [Unreleased] → ### Changed, after the existing bullet, add: - README.mdandCONTRIBUTING.mdstate the contribution policy,curated: issues and discussion are welcome, and / code is by invitation while the design settles;docs/replies.md holds the replies the maintainers post / ([#35](https://github.com/NCodeGroup/Randomness/issues/35)).
Before the pull request merges: CodeQL's default setup is on (configured, languages actions, csharp,
javascript-typescript), so codeql.yml's Analyze jobs fail until it is off: run gh api -X PATCH repos/NCodeGroup/Randomness/code-scanning/default-setup -f state=not-configured, then re-run the
failed Analyze jobs. codeql.yml's detect step picks actions, csharp and javascript-typescript (the .mjs launcher).
After it merges: tools/Set-RepositoryBaseline.ps1 -Repo Randomness -Owner NCodeGroup from the template's clone
mirrors curated into the contribution-policy property and sets the fork approval policy.
The new commands (/decompose-issue, /offer-issues) and changed agents load only in a session started after the
merge.
README.md's header renders the same as before apart from the icon's alt, and the README samples check in the gate
still passes.
code-review.yml's exception comment names the date it goes.
Follow-ups
Remove the NCode Review v1.7.0 cooldown exception: once 2026-11-30T21:24Z has passed, delete the two-line ADR-0009 exception comment from the header of .github/workflows/code-review.yml, keeping the v1.7.0 pin, since ADR-0009 says the exception goes once the version ages.
Autopilot: Follow-ups filed from this plan: #37 Remove the NCode Review v1.7.0 cooldown exception. The template gap NCode Review found is filed as NCodeGroup/project-template#636. This landed in #36 (merge commit 47ff0fe), with no release, since nothing a package carries changed.
Autopilot: two steps of the curated policy need a person, so this run left them:
tools/Set-RepositoryBaseline.ps1 (run after the merge; it set the contribution-policy property to curated) reports that the interaction limit collaborators_only, set by an earlier run while the repository had no answer, still blocks the issues and comments curated welcomes, until 2027-05-29. Lifting it opens issues and comments to everyone, so it is left to you: gh api -X DELETE repos/NCodeGroup/Randomness/interaction-limits.
No REST API sets pull request creation: in Settings > General, under "Pull request permissions", set "Creation allowed by" to "Collaborators only".
CodeQL's default setup was turned off before the merge, as the update's note asks, so the new .github/workflows/codeql.yml analyzes every pull request.
Activity
polewskm commentedon Nov 29, 2026
Autopilot: Plan snapshot. The working copy is
PLAN.mdin the plan's checkout; this comment is not updated as steps run.Plan: Record the contribution policy curated through a template update (11 steps)
Plan: Record the contribution policy curated through a template update
Issue: #35
Goal
Update the project from project-template v0.114.0 to v0.145.0, recording the
contributions: curatedanswer thatADR-0052 asks every repository to state, so the baseline enforces
curatedrather thanmaintainers.README.mdandCONTRIBUTING.mdstate the policy in the words a new project gets, and the project-owned files the template changedsince v0.114.0 take the template's changes, so they describe the template the project is now on.
Context for the executor
dotnet builddotnet test./build/gate.ps1 -Fasttemplate renders, which stay on one line as the template writes them. Keep every file's line endings as they are.
[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>..template/Update-Project.ps1needscopieronPATHand network access to github.com; it hands the update overto the v0.145.0 script and prints Copier's "Make sure Git >= 2.24 is installed", a false alarm.
.github/workflows/ci.ymlconflicts; that is expected and the step resolves it.README.md's header block between<!-- template:readme-header -->and<!-- /template:readme-header -->isrendered by
./.template/Test-Readme.ps1 -Fixfrom.copier-answers.yml; never edit inside the markers by hand.Decisions
CI actions, and the template's own update workflow and Record the contribution policy: curated #35 ask for the newest release, so the update takes it.
-Dataalso setsdocs_url = 'https://randomness.ncode.io/'andproject_descriptionto the README's current,longer description, so the header block the template now renders (ADR-0055) shows the README's existing header with
its documentation badge;
project_descriptionis used only byAGENTS.md's first render and the README header.ci.ymlconflict: keep the template's newCheck the README layoutstep and the project's own gate comment and./build/gate.ps1command.code-review.ymltakes the template's changes (ADR-0041 Dependabot reviews, ADR-0043 fork reviews,synchronize), pinning NCodeGroup/code-review v1.7.0 by its commit. v1.7.0 was published 2026-11-27T21:24Z, sountil 2026-11-30T21:24Z the pin carries ADR-0009's commented exception, as the template's v0.121.0 file did; the
template dropped that comment early in v0.125.0, which code-review.yml pins NCode Review v1.7.0 without ADR-0009's exception before it is three days old project-template#602 tracks. Removing the comment
once the date has passed is a follow-up, since it can't be done in this pull request before then.
AGENTS.md(Outside Contributions section,boardandplanninglines),CODE_OF_CONDUCT.md,CONTRIBUTING.md,GOVERNANCE.md,docs/api-compatibility.md,docs/assurance-case.md,docs/best-practices-badge.md(itsdcorow; not the dropped blank line before## Where It Stands, best-practices-badge.md loses the blank line before Where It Stands unless contributions is open project-template#601),docs/designs/_template.mdanddocs/README.md.ROADMAP.md's hunk changes a prompt comment this project already replaced, so it is skipped.GOVERNANCE.md's Contributor row says a contributor opens a pull request only when a maintainer asks for one, tomatch
curated(GOVERNANCE.md says anyone opens issues and pull requests in a maintainers or curated project project-template#603 tracks the template's wording).docs/best-practices-badge.mdnamessmall_tasksas unmet while the answer isn'topen, as the template'scriteria now answer it.
AGENTS.md's secret-material convention names ADR-0156, the template's current rule (NCode.Buffers' pinned pools),as the rule ADR-1012 overrides, instead of the
ArrayPool<T>.Sharedrule ADR-0156 replaced.CONTRIBUTING.md's paragraph on the Copier template says the update rendersREADME.md's header block again, as thetemplate's README now says.
Release:line: nothing a package carries changes.build/ProjectTemplate.propsgains only the PT0155 LTS check,which net10.0 passes, and the packages' readmes are
src/*/README.md, which this plan doesn't touch. The changelogentry goes under
## [Unreleased].best-practices-badge.md loses the blank line before Where It Stands unless contributions is open project-template#601, #602 or #603. When a step escalates because the update differs from the trial, the
orchestrating session files the gap in NCodeGroup/project-template, and the executor never calls
gh..copier-answers.yml,.template/,.claude/,.github/,.githooks/,build/,AGENTS.md) are allowed because/run-issues-all-innames Record the contribution policy: curated #35 by number.Out of scope
tools/Set-RepositoryBaseline.ps1or changing repository settings from a step.src/*/README.mdor the site pages.README.md's header markers by hand.Steps
[ ] 1. Update from project-template v0.145.0
.copier-answers.yml,.template-version,.template/,.claude/commands/,.githooks/pre-push,.github/actions/install-dotnet/action.yml,.github/agents/,.github/instructions/,.github/prompts/,.github/skills/,.github/workflows/ci.yml,.github/workflows/codeql.yml(new),.github/workflows/code-review-auto-merge.yml,.github/workflows/raise-baseline.yml,.github/workflows/scorecard.yml,.github/workflows/tag-release.yml,build/Get-TestRuntimes.ps1,build/Install-Dotnet.ps1,build/ProjectTemplate.props,build/Test-DotnetSupport.ps1(new),docs/best-practices-criteria.md,docs/decisions/project-template/,docs/replies.md(new)& .\.template\Update-Project.ps1 -Ref v0.145.0 -NoCommit -Data @{ contributions = 'curated'; docs_url = 'https://randomness.ncode.io/'; project_description = 'Cryptographically secure random numbers for .NET, strengthened by public randomness beacons such as CURBy, the NIST Randomness Beacon and drand, and reproducible draws that anyone can check against a beacon pulse.' }.The trial printed
Template v0.114.0 -> v0.145.0:with 31 filesadded(the commands, prompts and skillsdecompose-issueandoffer-issues,codeql.yml,.template/Test-Readme.ps1,build/Test-DotnetSupport.ps1,ADRs 0039–0058, 0155 and 0156,
docs/replies.md),conflict .github/workflows/ci.yml, 115 filesmodified, nonedeleted; "Kept" the
upload-sarif v4.39.4andsetup-gitsign v1.8.3pins; the project-owned diffs forcode-review.yml,AGENTS.md,CODE_OF_CONDUCT.md,CONTRIBUTING.md,docs/api-compatibility.md,docs/assurance-case.md,docs/best-practices-badge.md,docs/designs/_template.md,docs/README.md,GOVERNANCE.md,README.mdandROADMAP.md; the CodeQL default-setup note; the README layout note; and1 file(s) conflict. Any other difference is an escalation. Resolve.github/workflows/ci.yml: replace the blockfrom
<<<<<<< before updatingto>>>>>>> after updatingwith these six lines, thengit add .github/workflows/ci.yml:if ((Select-String -LiteralPath .copier-answers.yml -Pattern '^_commit: v0.145.0$' -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. Check the update builds and passes the template's checks
git commit --allow-empty)dotnet build; if (-not $? -or $LASTEXITCODE) { exit 1 }; ./build/Test-DotnetSupport.ps1; if (-not $? -or $LASTEXITCODE) { exit 1 }; ./.template/Test-AdrIndex.ps1; if (-not $? -or $LASTEXITCODE) { exit 1 }; ./.template/Test-FileHeaders.ps1; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 }[ ] 3. Put README.md's header in the template's block and state the policy
README.md(edit)<!-- template:readme-header -->above line 1 (<p align="center">), and the line<!-- /template:readme-header -->right after the</p>that closes the badge row (old line 20), before the blankline. Then run
./.template/Test-Readme.ps1 -Fix, which renders the block (only the icon'saltbecomesNCode Group). Below the closing marker, after its blank line, insert this paragraph and a blank line, before theparagraph starting
CURBy, the [University of Colorado Boulder's:Issues and discussion are welcome, and code is by invitation while the design settles, as [CONTRIBUTING.md](CONTRIBUTING.md) says.In
## Project, after the line starting- [docs/decisions/](docs/decisions/README.md), add- [docs/replies.md](docs/replies.md): the replies the maintainers post to people outside the project../.template/Test-Readme.ps1; if (-not $? -or $LASTEXITCODE) { exit 1 }; if ((Select-String -LiteralPath README.md -SimpleMatch 'code is by invitation while the design settles, as [CONTRIBUTING.md](CONTRIBUTING.md) says.' -Quiet) -and (Select-String -LiteralPath README.md -SimpleMatch '- [docs/replies.md](docs/replies.md)' -Quiet)) { exit 0 } else { exit 1 }[ ] 4. State the policy in CONTRIBUTING.md and take the template's changes
CONTRIBUTING.md(edit)Issues and pull requests are welcome., with the template's line:Issues and discussion are welcome, and code is by invitation while the design settles: we don't assign issues, and a pull request from outside the maintainers is merged only when a maintainer asked for it. [README.md](README.md) explains the project, and [AGENTS.md](AGENTS.md) holds the rules every change follows, for people and coding agents alike. Report a vulnerability privately instead, as [SECURITY.md](SECURITY.md) says. Everyone taking part follows the [Code of Conduct](CODE_OF_CONDUCT.md); [GOVERNANCE.md](GOVERNANCE.md) says who decides what, and [ROADMAP.md](ROADMAP.md) where the project is going. When the maintainers decline an issue, close a pull request or answer a request to be assigned an issue, they post the reply [docs/replies.md](docs/replies.md) holds for it. This file, [SECURITY.md](SECURITY.md), the Code of Conduct and [GOVERNANCE.md](GOVERNANCE.md) take precedence over the defaults in the.githubrepository of the organization that owns this one, which cover the organization's repositories that have none of their own.In item 6 of the workflow list, replace
NCode Review reviews a draft too, and the maintainerwithNCode Review reviews a draft too, except one from a fork, which it reviews once you mark it ready, and the maintainer,and replace its last sentence,
NCode Review skips a pull request from a fork or one a bot opened, such as Dependabot's: a maintainer approves it., withNCode Review never approves a pull request from a fork and skips one a bot other than Dependabot opened: a maintainer approves either ([pull requests from forks](docs/decisions/project-template/0043-ncode-review-reviews-a-forks-ready-pull-request-and-never-approves-it.md)). When a pull request from a fork falls behind the default branch, its author brings it up to date, with Update branch on the pull request or by merging the default branch into it and pushing, and a maintainer approves it again: GitHub counts a maintainer's update as their push, which approval of the last push would leave waiting for a second person with write access. CodeQL analyzes a fork's pull request too, once its workflows run ([forks](docs/decisions/project-template/0044-a-fork-pull-request-merges-without-a-bypass.md)). NCode Review reviews Dependabot's when it opens and after each push Dependabot makes, and approves a clean one ([Dependabot's pull requests](docs/decisions/project-template/0041-ncode-review-reviews-and-approves-dependabots-pull-requests.md)).In the paragraph starting
The workflow files come from a Copier template, replaceand never touchesAGENTS.mdorREADME.md.withand never touches `AGENTS.md`, and in `README.md` renders again only the header between `<!-- template:readme-header -->` and `<!-- /template:readme-header -->`, from the answers: change it with `.\.template\Update-Project.ps1 -Data`, never by editing inside the markers.if ((Select-String -LiteralPath CONTRIBUTING.md -SimpleMatch 'code is by invitation while the design settles: we don''t assign issues' -Quiet) -and (Select-String -LiteralPath CONTRIBUTING.md -SimpleMatch '0043-ncode-review-reviews-a-forks-ready-pull-request-and-never-approves-it.md' -Quiet) -and (Select-String -LiteralPath CONTRIBUTING.md -SimpleMatch 'renders again only the header between' -Quiet) -and -not (Select-String -LiteralPath CONTRIBUTING.md -SimpleMatch 'Issues and pull requests are welcome.' -Quiet)) { exit 0 } else { exit 1 }[ ] 5. Take the template's AGENTS.md changes and name ADR-0156
AGENTS.md(edit)put anything longer in a listed file.and## Instructions, insert:## Outside Contributions, a blank line, thenFor an agent working for someone without write access to this repository. First read the contribution policy at the top of [CONTRIBUTING.md](CONTRIBUTING.md); it iscurated. Code is by invitation: open no pull request unless a maintainer asked for it on its issue, and post no comment that only claims an issue. A person may file an issue in their own words.and a blank line. In the Landing paragraph starting
How `/ship-plan` lands, insert before`prelude`: `none`;the text of
c:\Users\Marcin\.copilot\session-state\6566c0c4-4187-4100-b4db-5e2f6533ba84\files\landing-insert.txt(the
boardandplanningsentences, ending with a space). After- max-review-rounds: 3add- board: noneand- planning: none, each on its own line. In the secret-material convention, replaceThis overrides the template's rule to rent transient buffers from/`ArrayPool<T>.Shared` for secret material; public data, such as a pulse or a response body, still rents from it. Thewith these lines, keeping the two-space indent:
array, which the garbage collector can copy. This overrides the template's rule, ADR-0156 in/`docs/decisions/project-template/`, to rent secret material from NCode.Buffers' pinned pools; public data, such as a/pulse or a response body, still rents from `ArrayPool<T>.Shared`. The.if ((Select-String -LiteralPath AGENTS.md -Pattern '^## Outside Contributions$' -Quiet) -and (Select-String -LiteralPath AGENTS.md -Pattern '^- board: none$' -Quiet) -and (Select-String -LiteralPath AGENTS.md -Pattern '^- planning: none$' -Quiet) -and (Select-String -LiteralPath AGENTS.md -SimpleMatch 'planning:none;' -Quiet) -and (Select-String -LiteralPath AGENTS.md -SimpleMatch 'ADR-0156 in' -Quiet) -and (@(Get-Content -LiteralPath AGENTS.md).Count -lt 200)) { exit 0 } else { exit 1 }[ ] 6. Take the template's code-review.yml with ADR-0009's exception for v1.7.0
.github/workflows/code-review.yml(edit)git apply c:\Users\Marcin\.copilot\session-state\6566c0c4-4187-4100-b4db-5e2f6533ba84\files\code-review.patch.It brings the file to the template's v0.145.0 render (
synchronize, Dependabot's reviews,review-forks: trueinboth steps, the fork
if:lines, both pinsNCodeGroup/code-review@c88c378ad166b57027bf504526e09585e727c33c # v1.7.0)and adds, after the line ending
0041-ncode-review-reviews-and-approves-dependabots-pull-requests.md say why., thecomment
# v1.7.0 was released on 2026-11-27 at 21:24 UTC, 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-30 21:24 UTC has passed.if (((Select-String -LiteralPath .github/workflows/code-review.yml -SimpleMatch 'NCodeGroup/code-review@c88c378ad166b57027bf504526e09585e727c33c # v1.7.0').Count -eq 2) -and (Select-String -LiteralPath .github/workflows/code-review.yml -SimpleMatch 'under the three days ADR-0009 waits' -Quiet) -and ((Select-String -LiteralPath .github/workflows/code-review.yml -SimpleMatch 'review-forks: true').Count -ge 2)) { exit 0 } else { exit 1 }[ ] 7. Take the template's GOVERNANCE.md and CODE_OF_CONDUCT.md changes
GOVERNANCE.md(edit),CODE_OF_CONDUCT.md(edit)GOVERNANCE.md's Contributor row, replaceOpens issues and pull requests, underwithOpens issues and joins their discussion, and opens a pull request when a maintainer asks for one, under. In theAutomation row, replace the ending
where the ruleset requires an approval, a maintainer approves it |withwhere the ruleset requires an approval, it is approved: byncode-review-approver[bot]after a clean review where NCode Review's approver is set up ([ADR-0041](docs/decisions/project-template/0041-ncode-review-reviews-and-approves-dependabots-pull-requests.md)), else by a maintainer |.After the paragraph ending
the change is recorded in this file., add a blank line andEveryone with write access submits only work they have the right to submit underApache-2.0.Under## Continuity, replaceon with no knowledge held elsewhere. nuget.orgwithon with no knowledge held elsewhere. The organization's owners can administer every repository it holds, so they can step in/when the repository's maintainers can't. nuget.org(two lines). InCODE_OF_CONDUCT.md, replace"Conduct:". The report reaches the maintainers only. All complaintswith"Conduct:". The report reaches the maintainers only. A report about behavior elsewhere in the organization that owns/this repository goes the same way to that organization's `.github` repository, whose Code of Conduct covers the/organization's repositories that have none of their own. All complaints(three lines).if ((Select-String -LiteralPath GOVERNANCE.md -SimpleMatch 'opens a pull request when a maintainer asks for one' -Quiet) -and (Select-String -LiteralPath GOVERNANCE.md -SimpleMatch '0041-ncode-review-reviews-and-approves-dependabots-pull-requests.md' -Quiet) -and (Select-String -LiteralPath GOVERNANCE.md -SimpleMatch 'only work they have the right to submit' -Quiet) -and (Select-String -LiteralPath GOVERNANCE.md -SimpleMatch 'organization''s owners can administer' -Quiet) -and (Select-String -LiteralPath CODE_OF_CONDUCT.md -SimpleMatch 'behavior elsewhere in the organization' -Quiet)) { exit 0 } else { exit 1 }[ ] 8. Take the template's changes to the assurance case, API compatibility and badge pages
docs/assurance-case.md(edit),docs/api-compatibility.md(edit),docs/best-practices-badge.md(edit)docs/assurance-case.md, replace the Static analysis bullet's first two lines and its ADR-0030 line(
- **Static analysis:** with CodeQL's default setup configured and analyzing at least one language, the repository/ruleset blocks a pull request that adds a CodeQL alert at warning level or above, or a security alert of any severity/… /
[ADR-0030](…)).) with- **Static analysis:** with.github/workflows/codeql.yml, which runs CodeQL on every pull request, a fork's too, or/else CodeQL's default setup configured and analyzing at least one language, the repository ruleset blocks a pull/request that adds a CodeQL alert at warning level or above, or a security alert of any severity, keep the ADR-0005line, end the ADR-0030 line with
,instead of)., and add[ADR-0044](decisions/project-template/0044-a-fork-pull-request-merges-without-a-bypass.md)).. Indocs/api-compatibility.md, replaceThe package version and target framework in the path are the ones this example's restore resolved; usewith
The package version in the path is the one this example's restore resolved, andnetN.0stands for the target framework; use,and
17.13.61/lib/net8.0/with17.13.61/lib/netN.0/. Indocs/best-practices-badge.md, replace thedcobullet'stwo lines with
-dco(silver SHOULD): unmet by choice. The project asks forSigned-off-byonly once itscontributionsanswer is/open([ADR-0053](decisions/project-template/0053-an-open-repository-asks-outside-contributors-to-sign-off-their-commits.md)).,and replace
`small_tasks` (no open issue is labeled `good first issue`)with`small_tasks` (unmet while the `contributions` answer isn't `open`: the project takes no outside code yet, so it/offers no small tasks to new contributors), rewrapping that paragraph at 120 columns.if ((Select-String -LiteralPath docs/assurance-case.md -SimpleMatch '0044-a-fork-pull-request-merges-without-a-bypass.md' -Quiet) -and -not (Select-String -LiteralPath docs/api-compatibility.md -SimpleMatch 'lib/net8.0/' -Quiet) -and (Select-String -LiteralPath docs/best-practices-badge.md -SimpleMatch 'unmet by choice. The project asks for' -Quiet) -and (Select-String -LiteralPath docs/best-practices-badge.md -SimpleMatch 'takes no outside code yet' -Quiet)) { exit 0 } else { exit 1 }[ ] 9. Take the template's changes to the design template and the docs index
docs/designs/_template.md(edit),docs/README.md(edit)docs/designs/_template.md, replace_The phases, in order. Each phase is shippable on its own, passes the project's full gate, and is one or more plans/with their issues. Say what each phase enables and how it is rolled out (flags, migrations, compatibility windows)._with
_The phases, in order. Each phase is shippable on its own, passes the project's full gate, and is an epic: an issue/of type Epic whose sub-issues are its stories, one plan each. Link each phase's epic and list none of its stories./Say what each phase enables and how it is rolled out (flags, migrations, compatibility windows)._. Indocs/README.md, after the line`decisions/` as its phases land., add- [replies.md](replies.md): the standard replies to people outside the project, for declining an issue, closing a pull/request and answering a claim, which the maintainers post word for word.if ((Select-String -LiteralPath docs/designs/_template.md -SimpleMatch 'of type Epic whose sub-issues are its stories' -Quiet) -and (Select-String -LiteralPath docs/README.md -SimpleMatch '[replies.md](replies.md)' -Quiet)) { exit 0 } else { exit 1 }[ ] 10. Record the contribution policy in the changelog
CHANGELOG.md(edit)## [Unreleased]→### Changed, after the existing bullet, add:-README.mdandCONTRIBUTING.mdstate the contribution policy,curated: issues and discussion are welcome, and/code is by invitation while the design settles;docs/replies.mdholds the replies the maintainers post/([#35](https://github.com/NCodeGroup/Randomness/issues/35)).if ((Select-String -LiteralPath CHANGELOG.md -SimpleMatch '[#35](https://github.com/NCodeGroup/Randomness/issues/35)' -Quiet) -and ((Select-String -LiteralPath CHANGELOG.md -Pattern '^### Changed$').Count -ge 1)) { exit 0 } else { exit 1 }[ ] 11. Pass the gate
git commit --allow-empty)./build/gate.ps1 -Fast; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 }Review checklist
configured, languages actions, csharp,javascript-typescript), so
codeql.yml's Analyze jobs fail until it is off: rungh api -X PATCH repos/NCodeGroup/Randomness/code-scanning/default-setup -f state=not-configured, then re-run thefailed Analyze jobs.
codeql.yml's detect step picks actions, csharp and javascript-typescript (the.mjslauncher).tools/Set-RepositoryBaseline.ps1 -Repo Randomness -Owner NCodeGroupfrom the template's clonemirrors
curatedinto thecontribution-policyproperty and sets the fork approval policy./decompose-issue,/offer-issues) and changed agents load only in a session started after themerge.
README.md's header renders the same as before apart from the icon'salt, and the README samples check in the gatestill passes.
code-review.yml's exception comment names the date it goes.Follow-ups
.github/workflows/code-review.yml, keeping the v1.7.0 pin, since ADR-0009 says the exception goes once the version ages.polewskm commentedon Nov 29, 2026
Autopilot: Follow-ups filed from this plan: #37 Remove the NCode Review v1.7.0 cooldown exception. The template gap NCode Review found is filed as NCodeGroup/project-template#636. This landed in #36 (merge commit 47ff0fe), with no release, since nothing a package carries changed.
polewskm commentedon Nov 29, 2026
Autopilot: two steps of the
curatedpolicy need a person, so this run left them:tools/Set-RepositoryBaseline.ps1(run after the merge; it set thecontribution-policyproperty tocurated) reports that the interaction limitcollaborators_only, set by an earlier run while the repository had no answer, still blocks the issues and commentscuratedwelcomes, until 2027-05-29. Lifting it opens issues and comments to everyone, so it is left to you:gh api -X DELETE repos/NCodeGroup/Randomness/interaction-limits.CodeQL's default setup was turned off before the merge, as the update's note asks, so the new
.github/workflows/codeql.ymlanalyzes every pull request.