Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,19 @@ put a release-bump magnitude in the title. The full contract is in

Follow the fidelity declared for the file. A byte-locked reference to shared infrastructure that
this repository does not carry is intentional, not a broken link. Raise substantive defects in
canonical content, but locate the fix at its canonical source instead of proposing a local edit
that its fidelity rejects.
canonical content, but locate the fix at its canonical source instead of proposing a local edit.

`.github/skills/`, and in the hub `.claude-plugin/fleet-skills/`, are generated by the hub's
`scripts/build_dist.py` from its `.agents/skills/`, so a defect in either is fixed in the source or
the generator and never in the copy. A defect inside an include region, the text between the
marker lines `<!-- include: <path> > <heading> -->` and `<!-- /include -->` that every copy
carries as its authored source does, is fixed in the hub under the heading that key names, since
the region is generated from that heading's body and the key's path resolves against the hub's
root rather than this repository's copy of the same file. Where that heading's body is itself a
region, the fix sits one hop further, under the heading its own key names. Post no review comment
on a file under `.github/skills/` or, in the hub, `.claude-plugin/fleet-skills/`. When the pull
request changes the file the fix belongs in, comment on that file instead, and otherwise state
the finding in the review summary.

## GitHub Copilot Review Runbook

Expand Down
91 changes: 68 additions & 23 deletions .github/skills/agent-conduct/SKILL.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .github/skills/audit-a-repo/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ The audit is the fleet's measurement procedure, and the two failure shapes it gu

## Measuring

- **Resolve the repo's types from `registry/repos.json`** and classify a `classificationPending` entry from the tree (`AUDIT.md` section 2). The applicability gate is `WORKFLOW.md` section 1: a check governing an absent construct is N/A, excluded from the verdict, and never a defect (`AUDIT.md` section 3).
- **Resolve the repo's types from `registry/repos.json`** and classify a `classificationPending` entry from the tree (`AUDIT.md` section 2). The applicability gate is `WORKFLOW.md` section 1, extended to `AUDIT.md`'s own checks: an item or check governing an absent construct is N/A, excluded from the verdict, and never a defect (`AUDIT.md` section 3).
- **Know what the runner does and does not prove.** `spec/audit.py` mechanizes the deterministic subset only: settings, rulesets, secret names, file and section presence, verbatim hashing, interface wiring, Dependabot coverage, branch facts. It evaluates no check under a type in `spec/project-types.json`, so every per-type check is judged by hand, and a clean run is no evidence for them (`AUDIT.md` section 4). Silence from a tool that was never looking reads exactly like a pass.
- **Judge letter and intent per check** and keep the vocabulary: letter miss with intent satisfied is a drift finding, both missing is a defect, and operational is binary over the applicable set (`AUDIT.md` sections 4 and 7). Do not invent a parallel scheme.
- **Assert the Actions implement `WORKFLOW.md`** by outcome, not by matching catalog snippets byte for byte: the 5A static audit with a `file:line` citation per applicable guarantee, then the 5B trace scenarios (`AUDIT.md` section 5). The `workflow-ci-contract` skill summarizes that contract.
- **Assert the Actions implement `WORKFLOW.md`** by outcome, not by matching catalog snippets byte for byte: the 5A static audit, each applicable guarantee cited in the form 5A sets out, then the 5B trace scenarios (`AUDIT.md` section 5). Read a workflow the repo only calls at the SHA it pins, for both. The `workflow-ci-contract` skill summarizes that contract.
- **Check live settings, rulesets, and secrets from a hub checkout at `main`** with `AUDIT.md` section 6. Run `repo-config/configure.sh check` with the target repository and model for settings and rulesets, and `spec/audit.py [RepoName]` for secrets, rather than constructing a local comparison. The hub payloads are the only repository-configuration source.

## Reporting
Expand Down
513 changes: 513 additions & 0 deletions .github/skills/backlog-burndown/SKILL.md

Large diffs are not rendered by default.

32 changes: 25 additions & 7 deletions .github/skills/comment-and-doc-style/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,24 @@ Use each tool's official casing in task labels, docs, and prose: `.NET` (not `.N
disables (for example `MD013` line length) stays disabled, do not "fix" it. `MD033` inline HTML
stays enabled: HTML comments, and `details`/`summary` (no Markdown equivalent for a
collapsible), are allowed, everything else with a native Markdown equivalent uses the Markdown.
- **A repo-local exclusion goes in a nested config, never in the root one.** The shared
`.markdownlint-cli2.jsonc` at the repo root is fleet-fixed, and its `ignores` list covers only
what every repo has, third-party Markdown under `node_modules`. A repo excluding a subtree of
its own that it does not treat as authored prose, a committed data archive, a vendored theme,
or a hand-maintained record, puts a `.markdownlint-cli2.jsonc` carrying its own `ignores`
beside that content. A config inside a
tree that is re-imported or re-vendored wholesale is deleted by the next refresh, so it is
re-added with the import. Excluding through the CI workflow's negated glob input instead is a
CI-only fix, and leaves those same files flagged for anyone who runs the linter locally.
- **What decides whether a nested config works.** It applies to the directory it sits in and to
every subdirectory below it, and it filters those files even when a run names them explicitly
as arguments, so a bare local run and the CI step honor it alike. Its `ignores` patterns
resolve against that directory rather than against the repo root, so an entry written
repo-root-relative matches nothing and reports no error saying so. Its settings
merge with those above it rather than replacing them, so the fleet rule block still governs
the files it does not exclude. And the exclusion has to be expressed as `ignores`: the `globs`
and `gitignore` keys are read only from the config in the directory the linter is run from, so
a nested copy of either is inert.
- **Spelling is US English**, checked by CSpell against the shared `cspell.json`
(`"language": "en-US"`, so a British spelling is flagged). Add a project term to `cspell.json`'s
`words` list, never to a `.code-workspace`'s own `cspell.words` block.
Expand All @@ -65,15 +83,15 @@ boundary before repository mounts begin. Each Docker command has a timeout and v
Lint containers disable networking and mount the checkout read-only. Persist approval only when
the executor constrains that whole shape. Never allow an unconstrained `docker run` prefix.
PSScriptAnalyzer downloads its pinned module in a separate container that has network access and
no repository mount. `GOVERNANCE.md` "Running the Linters Locally (Known-Working Invocations)"
owns the exact invocation and full authorization model.
no repository mount. `GOVERNANCE.md`'s hub-only "Running the Linters Locally (Known-Working
Invocations)" section owns the exact invocation and full authorization model.

Agent-specific authorization stays in provider-labeled bullets so one agent's configuration does
not read as a shared requirement:

- **Codex:** rules cannot safely cover changing worktree paths and digests. Smart Approvals can
prompt per task. No-prompt operation is supported only inside an external sandbox because it
removes command-wide protection.
- **Codex:** execution rules match exact argument prefixes, so they cannot safely cover changing
worktree paths and digests. Smart Approvals can prompt per task. No-prompt operation is
supported only inside an external sandbox because it removes command-wide protection.

## Markdown formatting

Expand Down Expand Up @@ -230,7 +248,7 @@ hub-hosted tool the reader runs, are in `references/carried-doc-references.md`.
- **Rules**: no vague titles (`update stuff`, `wip`). Dependabot's default `Bump X from Y to Z`
titles are fine as-is. No `Co-Authored-By:` lines unless the developer explicitly asks. No
release-bump magnitude in the title ("minor", "patch", "release v0.2.0"), Nerdbank.GitVersioning
computes the next version from `version.json` and git history, a dependency version in a
computes the next version from `version.json` and git history. A dependency version in a
dependency-bump title is fine and expected. US English spelling, and title case with lowercase
short bind words (a, an, the, and, but, or, of, in, on, at, to, by, for, from), a hyphenated
compound capitalizes both parts unless the second is a short preposition (*Built-in*,
Expand All @@ -241,7 +259,7 @@ Add Structured Logging Extensions to Library
Pin softprops/action-gh-release to Commit SHA
Drop net8.0 Multi-Targeting from Console Project
Bump xunit.v3 from 3.2.2 to 3.3.0
Clarify devcontainer Setup Steps in README
Clarify Devcontainer Setup Steps in README
```

## Quantitative claims
Expand Down
26 changes: 19 additions & 7 deletions .github/skills/dotnet-codestyle/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,17 @@ All builds must complete without warnings, enforced three ways:
surfaced as a warning fails the build and must be fixed or deliberately suppressed at the
narrowest scope that fits (see Analyzer suppressions below), never left to accumulate.
- **CI lint backstop.** CI runs the clean-compile checks on every PR as the authoritative gate.
A working local hook is strongly suggested, not optional: wire Husky.Net from the canonical
`catalog/snippets/husky/` config. See GOVERNANCE.md "Running the Linters Locally" for what the
hook must cover and what its absence means.
Husky.Net is wired from the canonical `catalog/snippets/husky/` config in the hub, hub-local
and not carried into every fleet repo. Its hook needs a .NET tool manifest declaring
Husky.Net, which the snippet does not ship. A repo keeping no such manifest takes the other
canonical shape, `catalog/snippets/pre-commit/`, and so does a repo that simply prefers the
`pre-commit` framework. Each shape carries whichever language checks its own repo keeps. A repo may also wire an equivalent hook of its own at `.husky/pre-commit`,
enabled with `core.hooksPath` and sourcing nothing, since the husky snippet's own hook sources
a file only `dotnet husky install` generates. That path and `.pre-commit-config.yaml` are the
two the audit reads.
GOVERNANCE.md's hub-only "Running the Linters Locally (Known-Working Invocations)" section
carries the obligation itself, what the hook must cover, its audit treatment, and the
per-clone enablement steps.

**A new port is not a license to silence diagnostics.** Brownfield or just-ported status never
justifies relaxing analyzer severities or muting newly surfaced warnings. Fix them. (The only
Expand Down Expand Up @@ -79,7 +87,7 @@ in place.
### Build tasks

Run these from VS Code's task runner (Terminal -> Run Task) or an agent's task-running tool. The
three clean-compile tasks are carried verbatim, and a repo adds its own convenience tasks (tool
three clean-compile tasks are carried unchanged, and a repo adds its own convenience tasks (tool
updates, dependency upgrades, benchmarks) on top:

- `.NET Build`: build with diagnostic verbosity *(clean-compile)*
Expand All @@ -95,8 +103,12 @@ updates, dependency upgrades, benchmarks) on top:
`dotnet format style --verify-no-changes --severity=info --verbosity=detailed`.
- **`dotnet-outdated-tool`** checks for dependency updates, and Nerdbank.GitVersioning owns
version management.
- CI is the authoritative lint backstop. A local pre-commit hook is strongly suggested: wire
Husky.Net from `catalog/snippets/husky/` for local enforcement, including the shared doc gates.
- CI is the authoritative lint backstop. A repo already keeping a .NET tool manifest declaring
Husky.Net wires its local pre-commit hook from `catalog/snippets/husky/` in the hub, hub-local
and not carried into every fleet repo. A repo keeping none, or one preferring the `pre-commit`
framework, takes `catalog/snippets/pre-commit/` instead. Either shape covers the shared doc
gates alongside the language checks. Each snippet's own README names the per-clone steps and
the second file to copy alongside it.
- **Required VS Code extensions**: CSharpier, markdownlint, CSpell. Use the workspace settings
without overrides.

Expand Down Expand Up @@ -198,7 +210,7 @@ The .NET mechanics, narrowest first:

xUnit v3 (`xunit.v3`, not the legacy `xunit`) + AwesomeAssertions (`.Should()` API, never native
asserts). Arrange-Act-Assert pattern, descriptive underscore names, `[Theory]`/`[InlineData]` for
parameterized tests. See `references/testing.md` for the framework setup template.
parameterized tests. A test project on `xunit.v3` 4.0.0 or later is MTP-based, and also carries a `global.json` runner declaration, a `Microsoft.Testing.Extensions.CodeCoverage` floor, and no `xunit.runner.visualstudio`. See `references/testing.md` for the framework setup template and that configuration.

## Project configuration

Expand Down
16 changes: 16 additions & 0 deletions .github/skills/dotnet-codestyle/references/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,19 @@
2. **Organization**: Arrange-Act-Assert pattern.
3. **Naming**: descriptive names with underscores.
4. **Theory tests**: use `[Theory]` with `[InlineData]`.

## Microsoft.Testing.Platform and coverage

A test project on `xunit.v3` 4.0.0 or later is MTP-based, and the .NET 10 SDK and later refuse to run one through the VSTest target, so such a project also carries:

- a root **`global.json`** declaring `{"test": {"runner": "Microsoft.Testing.Platform"}}`, which is what selects the driver `dotnet test` runs the project through,
- **`Microsoft.Testing.Extensions.CodeCoverage`** at **18.9.0 or later**, in place of `coverlet.collector`, whose VSTest data collector MTP ignores without failing,
- no **`xunit.runner.visualstudio`**, the VSTest adapter MTP replaces.

A project not yet MTP-based keeps the VSTest collector, and that lagging state is a migration owed rather than drift, until its own `xunit.v3` bump forces the move.

**The version floor is load-bearing rather than cautionary.** Below 18.1.0 the extension is built against Microsoft.Testing.Platform 1.x, and an 18.0.x resolution, which is what a `>= 18.0.0` range picks, throws a `TypeLoadException` against the 2.x platform `xunit.v3` 4.0.0 carries, runs zero tests, and **still writes a well-formed Cobertura file reporting full coverage**, so only the non-zero exit says the run reported nothing. 18.9.0 is the first release on Microsoft.Testing.Platform 2.3.x, where every test project writes into the one shared `--results-directory` the invocation names rather than resolving that relative path per project.

The CI invocation `WORKFLOW.md` D1.6 requires is `dotnet test --coverage --coverage-output-format cobertura --results-directory ./coverage`. Two further details of it are equally load-bearing, and neither failure reds the job on its own. `--coverage-output` stays unset, because pinning one filename gives every test project in the solution the same path and a solution with more than one then keeps only whichever ran last. Leaving it unset produces the default name `<guid>.cobertura.xml`, which `codecov-cli`'s own file finder does not match, so the report is renamed before the upload reads the directory, per `WORKFLOW.md` D1.6.

**Diagnosing a local run.** `dotnet test` under the CI configuration reports zero tests on some machines where CI reports the full suite on the same SDK, which reads as a broken repository and is a broken driver. The target string the run prints separates the two: `net10.0` with no architecture means the driver resolved none, and `net10.0|<arch>` with no tests means the tests did not register, which is the case that points back at the three requirements above.
Loading