From 5b03df68032ac5fb1c3b75fcfccbe3e934ed83a5 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Sun, 6 Dec 2026 10:48:59 -0800 Subject: [PATCH 1/2] Retire CLAUDE.md and Bump the Hub Pins to 2.0.1682 --- .github/workflows/merge-bot-pull-request.yml | 2 +- .github/workflows/publish-release.yml | 6 +++--- .github/workflows/run-periodic-codegen-pull-request.yml | 2 +- .github/workflows/test-pull-request.yml | 4 ++-- AGENTS.md | 2 +- CLAUDE.md | 5 ----- GOVERNANCE.md | 1 - OPERATIONS.md | 2 +- 8 files changed, 9 insertions(+), 15 deletions(-) delete mode 100644 CLAUDE.md diff --git a/.github/workflows/merge-bot-pull-request.yml b/.github/workflows/merge-bot-pull-request.yml index ca2ae9f..57039bf 100644 --- a/.github/workflows/merge-bot-pull-request.yml +++ b/.github/workflows/merge-bot-pull-request.yml @@ -18,7 +18,7 @@ jobs: merge-bot: name: Merge bot pull request job - uses: ptr727/ProjectTemplate/.github/workflows/merge-bot-task.yml@77a5e2d1a2424428c9962ed494f624a19264cb93 # 2.0.1625 + uses: ptr727/ProjectTemplate/.github/workflows/merge-bot-task.yml@ac58eecb52e99e5bf7d3aef6ba18862bdf745a60 # 2.0.1682 # The repository-wide auto-delete stays off, so the task deletes each merged bot head branch instead. with: delete-branch: true diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index b3e14e3..0cfdb29 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -41,7 +41,7 @@ jobs: # Single source of the release-gate decision, publish or not and stable or not, reused by every job below. plan: name: Plan release job - uses: ptr727/ProjectTemplate/.github/workflows/publish-plan-task.yml@77a5e2d1a2424428c9962ed494f624a19264cb93 # 2.0.1625 + uses: ptr727/ProjectTemplate/.github/workflows/publish-plan-task.yml@ac58eecb52e99e5bf7d3aef6ba18862bdf745a60 # 2.0.1682 with: event_name: ${{ github.event_name }} actor: ${{ github.actor }} @@ -52,7 +52,7 @@ jobs: name: Validate job needs: [plan] if: ${{ needs.plan.outputs.publish == 'true' }} - uses: ptr727/ProjectTemplate/.github/workflows/validate-task.yml@77a5e2d1a2424428c9962ed494f624a19264cb93 # 2.0.1625 + uses: ptr727/ProjectTemplate/.github/workflows/validate-task.yml@ac58eecb52e99e5bf7d3aef6ba18862bdf745a60 # 2.0.1682 secrets: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} permissions: @@ -67,7 +67,7 @@ jobs: name: Publish project release job needs: [plan, validate] if: ${{ needs.plan.outputs.publish == 'true' && needs.validate.result == 'success' }} - uses: ptr727/ProjectTemplate/.github/workflows/build-release-task.yml@77a5e2d1a2424428c9962ed494f624a19264cb93 # 2.0.1625 + uses: ptr727/ProjectTemplate/.github/workflows/build-release-task.yml@ac58eecb52e99e5bf7d3aef6ba18862bdf745a60 # 2.0.1682 permissions: contents: write actions: write diff --git a/.github/workflows/run-periodic-codegen-pull-request.yml b/.github/workflows/run-periodic-codegen-pull-request.yml index c2d90ef..0d28b78 100644 --- a/.github/workflows/run-periodic-codegen-pull-request.yml +++ b/.github/workflows/run-periodic-codegen-pull-request.yml @@ -22,7 +22,7 @@ jobs: run-codegen: name: Run codegen and pull request job - uses: ptr727/ProjectTemplate/.github/workflows/run-codegen-pull-request-task.yml@77a5e2d1a2424428c9962ed494f624a19264cb93 # 2.0.1625 + uses: ptr727/ProjectTemplate/.github/workflows/run-codegen-pull-request-task.yml@ac58eecb52e99e5bf7d3aef6ba18862bdf745a60 # 2.0.1682 secrets: CODEGEN_APP_CLIENT_ID: ${{ secrets.CODEGEN_APP_CLIENT_ID }} CODEGEN_APP_PRIVATE_KEY: ${{ secrets.CODEGEN_APP_PRIVATE_KEY }} diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index 460d3ad..7ec5adb 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -58,7 +58,7 @@ jobs: validate: name: Validate job - uses: ptr727/ProjectTemplate/.github/workflows/validate-task.yml@77a5e2d1a2424428c9962ed494f624a19264cb93 # 2.0.1625 + uses: ptr727/ProjectTemplate/.github/workflows/validate-task.yml@ac58eecb52e99e5bf7d3aef6ba18862bdf745a60 # 2.0.1682 permissions: contents: read # Mapped explicitly rather than inherited, since this is a cross-repository call and secrets: inherit would hand the callee every secret this repository holds. @@ -75,7 +75,7 @@ jobs: name: Smoke build job needs: [changes] if: needs.changes.outputs.release == 'true' || github.event_name == 'workflow_dispatch' - uses: ptr727/ProjectTemplate/.github/workflows/build-release-task.yml@77a5e2d1a2424428c9962ed494f624a19264cb93 # 2.0.1625 + uses: ptr727/ProjectTemplate/.github/workflows/build-release-task.yml@ac58eecb52e99e5bf7d3aef6ba18862bdf745a60 # 2.0.1682 permissions: contents: read with: diff --git a/AGENTS.md b/AGENTS.md index 2993d28..982cc33 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,7 +2,7 @@ **LanguageTags** is a C# .NET library for handling ISO 639-2, ISO 639-3, and RFC 5646 / BCP 47 language tags. The library ships as the NuGet package `ptr727.LanguageTags` and is consumed directly from `main`. The repo also contains a CLI codegen tool (`LanguageTagsCreate/`) that refreshes embedded language data from upstream registries, and an xUnit test project (`LanguageTagsTests/`). -This file is the entry point every coding agent reads first (Claude Code reads [`CLAUDE.md`](./CLAUDE.md), which imports this file). Past that description, the sections below are the only three things this file holds: the bootstrap that says where the canonical rules live and which procedure to follow for the state this repository is actually in, the rules for managing context and delegation, which apply to every task, and a map of where every other rule lives. The fleet-wide rule text itself is in [`GOVERNANCE.md`](./GOVERNANCE.md), one section per topic. Code style lives in [`CODESTYLE.md`](./CODESTYLE.md), the CI/CD workflow contract in [`WORKFLOW.md`](./WORKFLOW.md), the library's design and public-API contracts in [`ARCHITECTURE.md`](./ARCHITECTURE.md), and how this repository is run day to day in [`OPERATIONS.md`](./OPERATIONS.md). +This file is the entry point every coding agent reads first. Past the description above, it holds three things. The first is the bootstrap that says where the canonical rules live and which procedure fits the state this repository is in. The second is the rules for managing context and delegation, which apply to every task. The third is a map of where every other rule lives. The fleet-wide rule text itself is in [`GOVERNANCE.md`](./GOVERNANCE.md), one section per topic. Code style lives in [`CODESTYLE.md`](./CODESTYLE.md) and the CI/CD workflow contract in [`WORKFLOW.md`](./WORKFLOW.md). The library's design and public-API contracts live in [`ARCHITECTURE.md`](./ARCHITECTURE.md). How this repository is run day to day lives in [`OPERATIONS.md`](./OPERATIONS.md). Treat this file and `GOVERNANCE.md` as authoritative for cross-cutting rules, and do not restate their rules elsewhere. This project's own public-API and behavioral contracts live in [`ARCHITECTURE.md`](./ARCHITECTURE.md), which the paragraph above routes to, and never in [`.github/copilot-instructions.md`](./.github/copilot-instructions.md), because that file targets GitHub Copilot and VS Code specifically while the docs this file routes to are the agent-agnostic ones every coding agent reads. diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index a2c84a1..0000000 --- a/CLAUDE.md +++ /dev/null @@ -1,5 +0,0 @@ -# Claude Code Entry Point - -@AGENTS.md - -Claude Code reads `CLAUDE.md`, not `AGENTS.md`, so the import line above is what gets this repository's rules into a Claude Code session at all. See `AGENTS.md` for what is authoritative and why. This file carries no rule of its own, and adds none beyond the import line. diff --git a/GOVERNANCE.md b/GOVERNANCE.md index 849a048..3bd09f0 100644 --- a/GOVERNANCE.md +++ b/GOVERNANCE.md @@ -329,7 +329,6 @@ Every repo's GitHub repository details (the About panel) follow a fixed conventi ## Repository Layout - [`AGENTS.md`](./AGENTS.md): the agent entry point, carrying context and delegation rules plus the map to the sections below. -- [`CLAUDE.md`](./CLAUDE.md): imports `AGENTS.md`, since Claude Code reads `CLAUDE.md` and never `AGENTS.md` on its own. Carries no rule of its own. - [`GOVERNANCE.md`](./GOVERNANCE.md), [`CODESTYLE.md`](./CODESTYLE.md), [`WORKFLOW.md`](./WORKFLOW.md): the governance docs. This file is the cross-cutting-rules authority. - [`ARCHITECTURE.md`](./ARCHITECTURE.md): how the library is laid out, and the public-API and behavioral contracts a consumer is entitled to assume. - [`OPERATIONS.md`](./OPERATIONS.md): how this repo is run, day to day, beyond what CI covers. diff --git a/OPERATIONS.md b/OPERATIONS.md index da61997..5957de0 100644 --- a/OPERATIONS.md +++ b/OPERATIONS.md @@ -7,7 +7,7 @@ How this repo is run, day to day, beyond what CI covers. [`AGENTS.md`](./AGENTS. What verifying a change in this repo requires, and which part of the repo's contract CI structurally cannot exercise. - **Clean-compile.** Run the `.NET Format` VS Code task (chains `CSharpier Format` -> `.NET Build` -> `dotnet format style --verify-no-changes`) after every code change; see [`.vscode/tasks.json`](./.vscode/tasks.json) for the exact command sequence, and [`CODESTYLE.md`](./CODESTYLE.md) "Clean-Compile Verification" for why it must match exactly. -- **Tests.** `dotnet test --coverage --coverage-output-format cobertura --results-directory ./coverage` (native Microsoft.Testing.Platform mode, per `global.json`, driving `Microsoft.Testing.Extensions.CodeCoverage`). This is also the invocation CI's `Validate job / Unit test job` runs, so a local pass predicts the CI result. +- **Tests.** `dotnet test --coverage --coverage-output-format cobertura --results-directory ./coverage` (native Microsoft.Testing.Platform mode, per `global.json`, driving `Microsoft.Testing.Extensions.CodeCoverage`). CI's .NET unit-test leg, `Validate job / Unit test job (.NET X.Y)`, runs the same command plus `--framework` for its line, so a local pass predicts the CI result. - **Codegen drift.** `dotnet run --project ./LanguageTagsCreate/LanguageTagsCreate.csproj -- --codepath . --skip-download` then `dotnet tool restore && dotnet csharpier format .` regenerates the embedded language data offline from the committed `LanguageData/` (no network) and reformats it. CI runs exactly this as `Validate job / Validate repository job`, which invokes this repository's own hook at [`.github/actions/validate/action.yml`](./.github/actions/validate/action.yml), and fails if the tree drifts from what is committed. Run this whenever you change a codegen emitter (`SaveCodeAsync` / `SaveJsonAsync` / `GetCodeGenString` in `LanguageTags/*Data.cs` or `LanguageTags/LanguageSchema.cs`) or the committed `LanguageData/` source, and commit the regenerated `LanguageTags/*DataGen.cs` and `LanguageData/*.json` in the **same PR**. `--skip-download` never fetches upstream. A full refresh from the official ISO 639-2/3, RFC 5646, and UN M.49 registries is the scheduled codegen workflow's job, not something to run in a feature PR. - **Linters.** See "Tool Usage" below for the known-working invocations; CI is the authoritative run, a local run is only for fast feedback. - **Workflow changes.** [`WORKFLOW.md`](./WORKFLOW.md) is a machine-followable rulebook, not just documentation: it defines a static audit (5A), end-to-end trace scenarios (5B), a live probe (5C), and a repository-configuration audit (5D) that together yield a binary **operational / not-operational** verdict. When asked to check, change, or troubleshoot the CI/CD workflows, drive that methodology, audit the workflow files and repository configuration against the section-4 contract, trace the affected scenarios, and report the verdict with `file:line` citations, rather than reasoning about the YAML ad hoc. A workflow change is not done until it has been re-validated this way (probe without publishing). From 72e4547e562816480217da6e49f755637af54a26 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Sun, 6 Dec 2026 10:52:48 -0800 Subject: [PATCH 2/2] State How CI Selects the Unit Test Projects in OPERATIONS.md --- OPERATIONS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OPERATIONS.md b/OPERATIONS.md index 5957de0..abb5e65 100644 --- a/OPERATIONS.md +++ b/OPERATIONS.md @@ -7,7 +7,7 @@ How this repo is run, day to day, beyond what CI covers. [`AGENTS.md`](./AGENTS. What verifying a change in this repo requires, and which part of the repo's contract CI structurally cannot exercise. - **Clean-compile.** Run the `.NET Format` VS Code task (chains `CSharpier Format` -> `.NET Build` -> `dotnet format style --verify-no-changes`) after every code change; see [`.vscode/tasks.json`](./.vscode/tasks.json) for the exact command sequence, and [`CODESTYLE.md`](./CODESTYLE.md) "Clean-Compile Verification" for why it must match exactly. -- **Tests.** `dotnet test --coverage --coverage-output-format cobertura --results-directory ./coverage` (native Microsoft.Testing.Platform mode, per `global.json`, driving `Microsoft.Testing.Extensions.CodeCoverage`). CI's .NET unit-test leg, `Validate job / Unit test job (.NET X.Y)`, runs the same command plus `--framework` for its line, so a local pass predicts the CI result. +- **Tests.** `dotnet test --coverage --coverage-output-format cobertura --results-directory ./coverage` (native Microsoft.Testing.Platform mode, per `global.json`, driving `Microsoft.Testing.Extensions.CodeCoverage`). CI's .NET unit-test leg, `Validate job / Unit test job (.NET X.Y)`, instead runs `dotnet test --framework` over each tracked `*Tests*.csproj`. A local pass predicts it only while every such project is in `LanguageTags.slnx`. - **Codegen drift.** `dotnet run --project ./LanguageTagsCreate/LanguageTagsCreate.csproj -- --codepath . --skip-download` then `dotnet tool restore && dotnet csharpier format .` regenerates the embedded language data offline from the committed `LanguageData/` (no network) and reformats it. CI runs exactly this as `Validate job / Validate repository job`, which invokes this repository's own hook at [`.github/actions/validate/action.yml`](./.github/actions/validate/action.yml), and fails if the tree drifts from what is committed. Run this whenever you change a codegen emitter (`SaveCodeAsync` / `SaveJsonAsync` / `GetCodeGenString` in `LanguageTags/*Data.cs` or `LanguageTags/LanguageSchema.cs`) or the committed `LanguageData/` source, and commit the regenerated `LanguageTags/*DataGen.cs` and `LanguageData/*.json` in the **same PR**. `--skip-download` never fetches upstream. A full refresh from the official ISO 639-2/3, RFC 5646, and UN M.49 registries is the scheduled codegen workflow's job, not something to run in a feature PR. - **Linters.** See "Tool Usage" below for the known-working invocations; CI is the authoritative run, a local run is only for fast feedback. - **Workflow changes.** [`WORKFLOW.md`](./WORKFLOW.md) is a machine-followable rulebook, not just documentation: it defines a static audit (5A), end-to-end trace scenarios (5B), a live probe (5C), and a repository-configuration audit (5D) that together yield a binary **operational / not-operational** verdict. When asked to check, change, or troubleshoot the CI/CD workflows, drive that methodology, audit the workflow files and repository configuration against the section-4 contract, trace the affected scenarios, and report the verdict with `file:line` citations, rather than reasoning about the YAML ad hoc. A workflow change is not done until it has been re-validated this way (probe without publishing).