Skip to content

Record the contribution policy: curated #258

Description

@polewskm

Part of NCodeGroup/project-template#576.

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 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:

.\.template\Update-Project.ps1 -Data @{ contributions = 'curated' }

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.

Activity

  1. added theissue type on Nov 28, 2026
  2. polewskm commented on Nov 29, 2026

    @polewskm
    ContributorAuthor

    Plan snapshot. The working copy is PLAN.md in the plan's checkout; this comment is not updated as steps run.

    Plan: Record the curated contribution policy through template v0.145.0 (9 steps)

    Plan: Record the curated contribution policy through template v0.145.0

    Issue: #258

    Goal

    Update this repository from project-template v0.112.2 to v0.145.0 with -Data @{ contributions = 'curated' }, so
    .copier-answers.yml records contributions: curated (the template's ADR-0052), and state the policy in
    CONTRIBUTING.md and README.md in the words a new curated project gets. Take the template's changes to the
    project-owned files the update lists where they fit this repository. Nothing the action ships changes: action.yml,
    dist/, src/, prompts/, reviewers/, guidance/ and package.json stay as they are, and no release is cut.

    Context for the executor

    • Prelude: ./.template/Use-Node.ps1
    • Build: npm run typecheck
    • Test: npm test
    • Setup: run npm ci once in the worktree before step 2.
    • Conventions: Markdown prose as the surrounding text writes it; no reflowing of lines a step doesn't name. Copy every
      new text below exactly.
    • 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>.
    • Gotchas: Copier warns "Make sure Git >= 2.24 is installed"; it is a false alarm the script itself explains.

    Decisions

    • Target v0.145.0, the newest template tag, as the issue asks ("v0.141.0 or newer").
    • Answer only contributions = 'curated'. This repository is a Node project, not a .NET library, so the template
      renders no README header block (ADR-0055) and needs no project_description or docs_url answer.
    • .claude/settings.json conflicts: keep the project's own four git push ask rules (commit 2e999ce, "Keep the git
      push approval prompt") and drop the .env/secrets ask rules the template removed (project-template #491).
    • .github/workflows/code-review.yml stays unchanged: it already pins this repository's own v1.7.0 with
      review-forks: true and the Dependabot synchronize reviews. ADR-1006 exempts this repository's own pin from the
      cooldown, so the ADR-0009 exception the template omits (code-review.yml pins NCode Review v1.7.0 without ADR-0009's exception before it is three days old project-template#602) doesn't apply here.
    • best-practices-badge.md loses the blank line before Where It Stands unless contributions is open project-template#601 (blank line before "Where It Stands") doesn't apply: this repository's
      docs/best-practices-badge.md has no such heading; only the dco row hunk is taken.
    • GOVERNANCE.md's Contributor row takes the curated wording GOVERNANCE.md says anyone opens issues and pull requests in a maintainers or curated project project-template#603 proposes, as
      Record the contribution policy curated through a template update Randomness#36 did. Its Automation row stays: it already says the NCode Review Approver approves the pin
      bump, which holds here.
    • Taken hunks: AGENTS.md (Outside Contributions, board/planning), CODE_OF_CONDUCT.md, CONTRIBUTING.md (intro),
      GOVERNANCE.md, README.md, docs/README.md, docs/assurance-case.md, docs/best-practices-badge.md (dco),
      docs/designs/_template.md. Not taken: CONTRIBUTING.md item 6 and file-header paragraph (this repository has its own
      shorter item 6 and no such paragraph), ROADMAP.md (its maintainer comment is already replaced by the roadmap).
    • .github/workflows/codeql.yml pins github/codeql-action v4.39.4, the version scorecard.yml already pins, so the
      repository runs one version of that action.
    • No Release: line: the plan changes only CI, the template's files and repository docs, so the changelog entry goes
      under ## [Unreleased] (ADR-0032, ADR-1006).
    • CodeQL's default setup must be turned off before the merge, as the update says, so codeql.yml's Analyze jobs can
      upload; the coordinating session does that, not a step.
    • No new template gap was found: the trial's conflict is the one the script's Copier note explains.
    • When a step escalates because the update differs from the trial, the orchestrating session files the gap in
      NCodeGroup/project-template; the executor never calls gh.

    Out of scope

    • action.yml, dist/, src/, prompts/, reviewers/, guidance/, package.json and any release or tag.
    • .github/workflows/code-review.yml and README.md's caller example.
    • Running tools/Set-RepositoryBaseline.ps1.

    Steps

    [ ] 1. Update from project-template v0.145.0

    • Files: .copier-answers.yml, .template-version, .template/, .claude/commands/, .claude/hooks/,
      .claude/settings.json, .githooks/pre-push, .github/agents/, .github/instructions/project-template.instructions.md,
      .github/prompts/, .github/skills/, .github/workflows/code-review-auto-merge.yml, .github/workflows/codeql.yml
      (new), .github/workflows/scorecard.yml, .github/workflows/tag-release.yml, docs/best-practices-criteria.md,
      docs/decisions/project-template/, docs/decisions/project-template/0153-best-practices-reports-scorecard-and-answers-for-the-default-branch.md (deleted),
      docs/replies.md (new)
    • Change: run & .\.template\Update-Project.ps1 -Ref v0.145.0 -NoCommit -Data @{ contributions = 'curated' }. The trial
      printed Template v0.112.2 -> v0.145.0: with 29 added files (.claude/commands/decompose-issue.md,
      offer-issues.md, their prompts and skills, .github/workflows/codeql.yml, ADRs 0038-0058, docs/replies.md),
      conflict .claude/settings.json, the rest modified, and renamed 0153-… -> 0037-…; Local edits discarded:
      .github/workflows/code-review-auto-merge.yml; Kept pins in scorecard.yml and tag-release.yml; then
      "1 file(s) conflict". Resolve .claude/settings.json: replace the whole <<<<<<< before updating … >>>>>>> after updating block with an "ask" array holding only "Bash(git push)", "Bash(git push *)", "PowerShell(git push)",
      "PowerShell(git push *)", in that order, followed by ],, before "deny". Then git add .claude/settings.json.
      Commit note: stage with git add -- <the Files not marked (deleted)>; a (deleted) file is already staged, so never run
      git add on it.
    • Done when: 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 build, lint, headers and decision index

    • Files: none
    • Change: run the checks after npm ci; fix nothing, escalate on a failure.
    • Done when: ./.template/Test-FileHeaders.ps1; if (-not $? -or $LASTEXITCODE) { exit 1 }; npm run typecheck; if (-not $? -or $LASTEXITCODE) { exit 1 }; npm run lint; if (-not $? -or $LASTEXITCODE) { exit 1 }; ./.template/Test-AdrIndex.ps1; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 }

    [ ] 3. State the policy in AGENTS.md and add the board and planning lines

    • Files: AGENTS.md (edit)
    • Change: (a) After the paragraph that starts This file belongs to the project: and before ## Instructions, insert a
      blank line, ## Outside Contributions, a blank line and this paragraph: 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.
      (b) In the Landing paragraph, right before `prelude`: `none`;, insert this text, which ends with a space:
      `board`: `none`; `<owner>/<number>`, such as `NCodeGroup/7`, names the GitHub Project whose Status columns, Backlog, Ready, In progress, In review and Done, show this project's stories, as ADR-0042 in `docs/decisions/project-template/` says: `/triage-issues` moves a ready story to Ready, a plan snapshot moves its issues to In progress, `/ship-plan` moves them to In review when it opens the pull request, and the board's own workflows move them to Done. The project template's `tools/kanban-board.mjs` sets a board up and prints this line. Each move needs the `gh` token's `project` scope, and a move that fails is reported and stops nothing. `planning`: `none`; `<owner/repo>`, such as `NCodeGroup/planning`, names the organization's private planning repository, which holds the epics that span repositories and the planning that isn't public, while this repository's stories are filed here as sub-issues of those epics, as ADR-0057 in `docs/decisions/project-template/` says; with `none`, this project's epics stay in this repository. `/decompose-issue <owner/repo>#<number>` splits an epic there into stories filed where their files are, and `.template/Get-PlanState.ps1` prints a value that is neither `none` nor a plain `<owner/repo>` as `planning=invalid`.
      (c) Insert - board: none
      and - planning: none after - max-review-rounds: 3.
    • Done when: if ((Select-String -LiteralPath AGENTS.md -SimpleMatch '## 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 'as planning=invalid. prelude: none;' -Quiet) -and (Get-Content -LiteralPath AGENTS.md).Count -lt 200) { exit 0 } else { exit 1 }

    [ ] 4. State the policy in CONTRIBUTING.md and README.md

    • Files: CONTRIBUTING.md (edit), README.md (edit)
    • Change: (a) In CONTRIBUTING.md line 3, replace Issues and pull requests are welcome. with 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.; delete the closing sentence Issues labeled good first issue are small, self-contained tasks for a first contribution. and append instead 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.
      (b) In README.md, after the paragraph that ends split the cost by provider. and before ## How a review runs, insert a
      blank line and Issues and discussion are welcome, and code is by invitation while the design settles, as [CONTRIBUTING.md](CONTRIBUTING.md) says.
      (c) In README.md's ## Project list, after the - [docs/decisions/] line, insert - [docs/replies.md](docs/replies.md): the replies the maintainers post to people outside the project.
    • Done when: if ((Select-String -LiteralPath CONTRIBUTING.md -SimpleMatch 'code is by invitation while the design settles: we' -Quiet) -and -not (Select-String -LiteralPath CONTRIBUTING.md -SimpleMatch 'good first issue' -Quiet) -and (Select-String -LiteralPath README.md -SimpleMatch 'code is by invitation while the design settles, as [CONTRIBUTING.md]' -Quiet) -and (Select-String -LiteralPath README.md -SimpleMatch '- [docs/replies.md](docs/replies.md)' -Quiet)) { exit 0 } else { exit 1 }

    [ ] 5. Take the template's GOVERNANCE.md and CODE_OF_CONDUCT.md changes

    • Files: GOVERNANCE.md (edit), CODE_OF_CONDUCT.md (edit)
    • Change: (a) GOVERNANCE.md Contributor row becomes | Contributor | Anyone | Opens issues and joins their discussion, and opens a pull request when a maintainer asks for one, under [CONTRIBUTING.md](CONTRIBUTING.md) and the [Code of Conduct](CODE_OF_CONDUCT.md) |.
      (b) After the paragraph ending the change is recorded in this file., insert a blank line and Everyone with write access submits only work they have the right to submit under Apache-2.0.
      (c) In ## Continuity, after so anyone given access can carry on with no knowledge held elsewhere. add, joined by a
      space on the same paragraph, The organization's owners can administer every repository it holds, so they can step in when the repository's maintainers can't., rewrapping that paragraph at 120 columns.
      (d) CODE_OF_CONDUCT.md: replace The report reaches the maintainers only. All … complaints will be reviewed with
      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 will be reviewed and investigated promptly and fairly., rewrapping that paragraph at 120 columns.
    • 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 'right to submit under Apache-2.0' -Quiet) -and (Select-String -LiteralPath GOVERNANCE.md -SimpleMatch 'so they can step in' -Quiet) -and (Select-String -LiteralPath CODE_OF_CONDUCT.md -SimpleMatch 'whose Code of Conduct covers' -Quiet)) { exit 0 } else { exit 1 }

    [ ] 6. Take the template's docs/ changes

    • Files: docs/README.md (edit), docs/assurance-case.md (edit), docs/best-practices-badge.md (edit), docs/designs/_template.md (edit)
    • Change: (a) docs/README.md: after the line `decisions/` as its phases land. insert - [replies.md](replies.md): the standard replies to people outside the project, for declining an issue, closing a pull and request and answering a claim, which the maintainers post word for word. (b) docs/assurance-case.md: the Static analysis bullet becomes - **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, then its ADR-0005 line, its ADR-0030 line ending , instead of )., and a new line [ADR-0044](decisions/project-template/0044-a-fork-pull-request-merges-without-a-bypass.md)). (c) docs/best-practices-badge.md: the dco bullet's two lines become - 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)). (d) docs/designs/_template.md: the two lines starting _The phases, in order. become _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)._
    • Done when: if ((Select-String -LiteralPath docs/README.md -SimpleMatch '[replies.md](replies.md)' -Quiet) -and (Select-String -LiteralPath docs/assurance-case.md -SimpleMatch '0044-a-fork-pull-request-merges-without-a-bypass.md)).' -Quiet) -and (Select-String -LiteralPath docs/best-practices-badge.md -SimpleMatch 'unmet by choice' -Quiet) -and (Select-String -LiteralPath docs/designs/_template.md -SimpleMatch 'of type Epic whose sub-issues' -Quiet)) { exit 0 } else { exit 1 }

    [ ] 7. Pin CodeQL's action to the version scorecard.yml uses

    • Files: .github/workflows/codeql.yml (edit)
    • Change: replace both github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3 and
      github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3 with the same action at
      @1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4.39.4, the SHA scorecard.yml pins for upload-sarif v4.39.4.
    • Done when: if (-not (Select-String -LiteralPath .github/workflows/codeql.yml -SimpleMatch '33d7b85da1a04171e211befe2c739303b9a4c066' -Quiet) -and @(Select-String -LiteralPath .github/workflows/codeql.yml -SimpleMatch '@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4.39.4').Count -eq 2) { exit 0 } else { exit 1 }

    [ ] 8. Record the change in the changelog

    • Files: CHANGELOG.md (edit)
    • Change: under ## [Unreleased]'s existing ### Changed, after its last entry, 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, and the repository follows project-template v0.145.0 ([#258](https://github.com/NCodeGroup/code-review/issues/258)).
    • Done when: if (Select-String -LiteralPath CHANGELOG.md -SimpleMatch 'state the contribution policy, curated' -Quiet) { exit 0 } else { exit 1 }

    [ ] 9. Run the gate

    • Files: none
    • Change: run the Landing gate.
    • Done when: ./.template/Test-FileHeaders.ps1; if (-not $? -or $LASTEXITCODE) { exit 1 }; npm run typecheck; if (-not $? -or $LASTEXITCODE) { exit 1 }; npm run lint; if (-not $? -or $LASTEXITCODE) { exit 1 }; npm test; if (-not $? -or $LASTEXITCODE) { exit 1 }; ./.template/Test-Coverage.ps1; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 }

    Review checklist

    • .copier-answers.yml records contributions: curated and _commit: v0.145.0; git_host is gone, as the update drops it.
    • action.yml, dist/, src/, prompts/, reviewers/, guidance/, package.json and code-review.yml are unchanged.
    • .claude/settings.json keeps only the git push ask rules.
    • After the merge: the new /decompose-issue and /offer-issues commands load only in a new session; CodeQL's
      default setup is off and codeql.yml's Analyze jobs pass on main; tools/Set-RepositoryBaseline.ps1 (run by the
      coordinator) mirrors curated into the contribution-policy property.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions