diff --git a/AUDIT.md b/AUDIT.md index d41f5912a..9e962a771 100644 --- a/AUDIT.md +++ b/AUDIT.md @@ -88,7 +88,7 @@ A check with `intentRef`/`workflowRef` points at the prose section that owns the - **verbatim-tree** - every applicable `trees[]` declaration in [`spec/files.json`][files] owns its target tree. The audit reports missing files as letter findings, stale or modified bytes as drift, and extra files under a pruned target as drift. An unreadable or truncated repository tree is undecided and produces drift rather than a clean result. - **repo-setup** - every required secret for the repo's publish mechanisms is configured, and no forbidden secret is present (per [`spec/secrets.json`][secrets]). - **runtime-secrets** - a repo-scoped runtime-secrets directory, when present, is named `.secrets/` (dotted, not a bare `secrets/`), a single opaque credential file carries no extension, and every real secret file has a tracked `.example` beside it cataloged in `.secrets/README.md`. N/A for a repo with no such directory. See [GOVERNANCE.md "Repo-Scoped Secrets"][governance-repo-scoped-secrets]. -- **linter-parity** - one config per linter (`.markdownlint-cli2.jsonc`, `cspell.json`, ruff/pyright, editorconfig/csharpier, actionlint) drives the editor extension, the CLI, and CI, and CI runs each. That count is of the root config, so a nested `.markdownlint-cli2.jsonc` is not a second one. A local hook exists and runs at minimum the diff-scoped prose gate and the eol check via `hub-fetch-run.py`, or the hub's own local script copies for the hub repo itself (`parity.hooks`, intent). A repo with none wired is a defect, and one mid-convergence on the language-formatting half stays operational. +- **linter-parity** - one config per linter (`.markdownlint-cli2.jsonc`, `cspell.json`, ruff/pyright, editorconfig/csharpier, actionlint) drives the CLI, CI, and the editor extension where the workspace recommends one, and CI runs each. That count is of the root config, so a nested `.markdownlint-cli2.jsonc` is not a second one. A local hook exists and runs at minimum the diff-scoped prose gate and the eol check via `hub-fetch-run.py`, or the hub's own local script copies for the hub repo itself (`parity.hooks`, intent). A repo with none wired is a defect, and one mid-convergence on the language-formatting half stays operational. - **recurring-violations** - comments concise and non-narrative, ASCII only (no em-dash, no smart quotes), US spelling, line endings per `.editorconfig`. These are frequent regressions, so this dimension is high priority and always runs, and each check is grep-able (see below). - **readme-structure** - the README follows [`spec/readme-structure.md`][readme-structure] (applicable sections, in order). Mechanically checked against the declared model in [`spec/readme-sections.json`][readme-sections]: required sections present, declared sections in their relative order, `License` last, the shields each deliverable implies, the license shield in the closing License section, and the tagline and its mirrors. A heading the model does not name is dropped before the order comparison, so a repo-specific section is never a finding. diff --git a/GOVERNANCE.md b/GOVERNANCE.md index 7708e7abe..a45fa63e7 100644 --- a/GOVERNANCE.md +++ b/GOVERNANCE.md @@ -315,7 +315,7 @@ Contributors commit to this repo with signed commits. The SSH-signing setup live ## Editor and Tasks - **VS Code is the primary IDE, and the experience favors it.** Prefer VS Code tasks and launch configurations for building, running, and testing over ad-hoc shell scripts. A script is the fallback, not the default. -- The `.code-workspace` file carries the shared editor settings and the recommended-extension set. **All VS Code settings and extension recommendations live only here, never in a standalone `.vscode/settings.json` or `.vscode/extensions.json`** (`.vscode/` holds only `tasks.json` and `launch.json`). A **standard set** of extensions applies to every repo (markdownlint, cspell, editorconfig, markdown-all-in-one, better-todo-tree, github-actions, actionlint, shellcheck, claude-code); **language-specific** extensions are added per project (.NET: csdevkit, csharpier; Python: python, pylance, ruff, mypy; Docker: the Docker extension). +- The `.code-workspace` file carries the shared editor settings and the recommended-extension set. **All VS Code settings and extension recommendations live only here, never in a standalone `.vscode/settings.json` or `.vscode/extensions.json`** (`.vscode/` holds only `tasks.json` and `launch.json`). A **standard set** of extensions applies to every repo (markdownlint, cspell, editorconfig, markdown-all-in-one, better-todo-tree), kept to extensions that work without a separately installed tool. A repo shipping a language adds that language's **defaults** (.NET: csdevkit, csharpier. Python: python, pylance, ruff, mypy. Docker: the Docker extension). **Any repo can add further extensions** of its own on top of both. - The Table of Contents is maintained by the Markdown All in One extension, and `markdown.extension.toc.levels` in the workspace sets which heading levels it includes (see the Markdown rules for the authoring convention and the `` exclusion marker). - **Agents: editing a `.code-workspace` that a VS Code window has loaded as its workspace can reload that window and drop an agent session running in it.** "Verification Discipline" holds the rule: leave that edit to the maintainer (a maintainer edit does not reload), and edit directly a workspace file that no window has loaded. Opening the folder rather than the workspace is what keeps a checkout's own file editable. diff --git a/ProjectTemplate.code-workspace b/ProjectTemplate.code-workspace index 75cc60357..f38afba67 100644 --- a/ProjectTemplate.code-workspace +++ b/ProjectTemplate.code-workspace @@ -17,18 +17,14 @@ }, "extensions": { "recommendations": [ - "anthropic.claude-code", - "arahata.linter-actionlint", "charliermarsh.ruff", "davidanson.vscode-markdownlint", "editorconfig.editorconfig", "fanaticpythoner.better-todo-tree", - "github.vscode-github-actions", "ms-python.mypy-type-checker", "ms-python.python", "ms-python.vscode-pylance", "streetsidesoftware.code-spell-checker", - "timonwong.shellcheck", "yzhang.markdown-all-in-one" ] } diff --git a/catalog/snippets/devcontainer/dotnet/devcontainer.json b/catalog/snippets/devcontainer/dotnet/devcontainer.json index 781ce9b70..5b57ed63a 100644 --- a/catalog/snippets/devcontainer/dotnet/devcontainer.json +++ b/catalog/snippets/devcontainer/dotnet/devcontainer.json @@ -42,18 +42,14 @@ "customizations": { "vscode": { - // Mirror of `recommendations` in ProjectTemplate.code-workspace. "extensions": [ - "arahata.linter-actionlint", "csharpier.csharpier-vscode", "davidanson.vscode-markdownlint", "editorconfig.editorconfig", - "github.vscode-github-actions", - "gruntfuggly.todo-tree", + "fanaticpythoner.better-todo-tree", "ms-azuretools.vscode-docker", "ms-dotnettools.csdevkit", "streetsidesoftware.code-spell-checker", - "timonwong.shellcheck", "yzhang.markdown-all-in-one" ] } diff --git a/catalog/snippets/devcontainer/python/devcontainer.json b/catalog/snippets/devcontainer/python/devcontainer.json index 25c0d1faa..0b8ef2bbe 100644 --- a/catalog/snippets/devcontainer/python/devcontainer.json +++ b/catalog/snippets/devcontainer/python/devcontainer.json @@ -42,18 +42,16 @@ "customizations": { "vscode": { - // Mirror of `recommendations` in ProjectTemplate.code-workspace. "extensions": [ - "arahata.linter-actionlint", "charliermarsh.ruff", "davidanson.vscode-markdownlint", "editorconfig.editorconfig", - "github.vscode-github-actions", - "gruntfuggly.todo-tree", + "fanaticpythoner.better-todo-tree", "ms-azuretools.vscode-docker", + "ms-python.mypy-type-checker", "ms-python.python", + "ms-python.vscode-pylance", "streetsidesoftware.code-spell-checker", - "timonwong.shellcheck", "yzhang.markdown-all-in-one" ] } diff --git a/catalog/snippets/vscode/README.md b/catalog/snippets/vscode/README.md index 06fe1ac72..1cbfc9815 100644 --- a/catalog/snippets/vscode/README.md +++ b/catalog/snippets/vscode/README.md @@ -1,6 +1,6 @@ # VS Code Workspace Catalog -The shared `.code-workspace` set for the fleet: the standard extensions every repo recommends, the language-specific additions, and the settings that go with them. Each piece is a copyable JSON fragment in this directory. `base.jsonc` carries the standard set, and `dotnet.jsonc`, `python.jsonc`, and `docker.jsonc` carry the per-type additions. A repo's `.code-workspace` composes `base.jsonc` plus the fragments for the languages and targets it ships. Discovered from the fleet's workspace files. +The shared `.code-workspace` set for the fleet: the standard extensions every repo recommends, the language-specific additions, and the settings that go with them. Each piece is a copyable JSON fragment in this directory. `base.jsonc` carries the standard set, and `dotnet.jsonc`, `python.jsonc`, and `docker.jsonc` carry the per-type additions. A repo's `.code-workspace` composes `base.jsonc` plus the fragments for the languages and targets it ships. ## Standard Extensions (every repo) @@ -9,10 +9,8 @@ The shared `.code-workspace` set for the fleet: the standard extensions every re - **`editorconfig.editorconfig`** - applies `.editorconfig`. - **`yzhang.markdown-all-in-one`** - Markdown editing and the auto-generated Table of Contents. - **`fanaticpythoner.better-todo-tree`** - surfaces TODO/FIXME markers. -- **`github.vscode-github-actions`** - GitHub Actions authoring. -- **`arahata.linter-actionlint`** - actionlint for workflow YAML. -- **`timonwong.shellcheck`** - shellcheck for shell scripts. -- **`anthropic.claude-code`** - the coding agent. + +The standard set holds only extensions that work without a separately installed tool. A repo can recommend any further extension it finds useful by adding it to its own workspace. ## Language and Target Additions @@ -29,4 +27,4 @@ The shared `.code-workspace` set for the fleet: the standard extensions every re ## Composing a Workspace -A repo's `.code-workspace` is a single-folder workspace (`"folders": [{ "path": "." }]`) that merges `base.jsonc` with the per-type fragments for the languages and targets it ships: the merged `extensions.recommendations` is the standard set plus each type's additions, and the merged `settings` are the shared editor defaults plus each type's formatter block. This repo's own `ProjectTemplate.code-workspace` carries `base.jsonc` only, since it ships no application language. +A repo's `.code-workspace` is a single-folder workspace (`"folders": [{ "path": "." }]`) that merges `base.jsonc` with the per-type fragments for the languages and targets it ships: the merged `extensions.recommendations` is the standard set plus each type's additions, and the merged `settings` are the shared editor defaults plus each type's formatter block. This repo's own `ProjectTemplate.code-workspace` carries `base.jsonc` plus `python.jsonc`'s extensions and formatter block, for its Python scripts tree. diff --git a/catalog/snippets/vscode/base.jsonc b/catalog/snippets/vscode/base.jsonc index 3a95e2e05..a4d5c1f35 100644 --- a/catalog/snippets/vscode/base.jsonc +++ b/catalog/snippets/vscode/base.jsonc @@ -14,14 +14,10 @@ }, "extensions": { "recommendations": [ - "anthropic.claude-code", - "arahata.linter-actionlint", "davidanson.vscode-markdownlint", "editorconfig.editorconfig", "fanaticpythoner.better-todo-tree", - "github.vscode-github-actions", "streetsidesoftware.code-spell-checker", - "timonwong.shellcheck", "yzhang.markdown-all-in-one" ] } diff --git a/cspell.json b/cspell.json index 641c7ff79..b4db6d1f5 100644 --- a/cspell.json +++ b/cspell.json @@ -13,7 +13,6 @@ "accessibilities", "Allman", "apikey", - "arahata", "astral", "autoremove", "buildcache", @@ -57,7 +56,6 @@ "Genericize", "gpgsign", "gpgv", - "gruntfuggly", "HACS", "hass", "hatchling", @@ -127,7 +125,6 @@ "sshconfig", "stdlib", "subsetting", - "timonwong", "Triaging", "tzdata", "unbuilt", diff --git a/docs/devcontainer.md b/docs/devcontainer.md index 00431d40e..8f703b15e 100644 --- a/docs/devcontainer.md +++ b/docs/devcontainer.md @@ -17,11 +17,11 @@ Prerequisite: complete [host setup][host-setup] first. Without git config, an SS | --------- | ------ | ------- | | `gh` CLI | `ghcr.io/devcontainers/features/github-cli:1` | Issue/PR/release management from inside the container | | Common utilities | `ghcr.io/devcontainers/features/common-utils:2` | bash, curl, wget, sudo, `vscode` user | -| VS Code extensions | `customizations.vscode.extensions` in each `devcontainer.json` | Mirrors the matching workspace's `recommendations` so the container has the same tooling | +| VS Code extensions | `customizations.vscode.extensions` in each `devcontainer.json` | The standard set, the container's language defaults, and the Docker extension | The .NET container additionally ships the `csharpier`/`dotnet-outdated` local tools (restored by `catalog/snippets/devcontainer/dotnet/post-create.sh`). The Python container additionally ships `uv` (installed by `catalog/snippets/devcontainer/python/post-create.sh` from a version-pinned URL) and pre-syncs the Python package venv where one is present. -Each devcontainer's extension list and the matching workspace's `recommendations` are kept identical, so when you add an extension to one, add it to the other. +Each devcontainer's extension list is the workspace catalog's `base.jsonc` set plus that container's own language fragment and `docker.jsonc`, and a repo carrying one drops the Docker extension where it ships no Docker target. ## Bind Mounts (Both Containers)