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
4 changes: 3 additions & 1 deletion .agents/skills/standup-a-repo/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ maintainer can supply what section 0A lists.
`AGENTS.md`, `GOVERNANCE.md`, `CODESTYLE.md`, `WORKFLOW.md` and `AUDIT.md`, adapted rather
than cloned for the ones that describe a repo, plus `.markdownlint-cli2.jsonc` and
`cspell.json`. A downstream `AUDIT.md` is the short, repository-scoped form that says how the
repository reaches the hub for its audit and configuration check. `CLAUDE.md` is the fixed, verbatim `@AGENTS.md`-import file that gets
repository reaches the hub for its audit and configuration check. Write it from
`catalog/snippets/configs/AUDIT.md`, filling each placeholder `spec/files.json` declares for it.
`CLAUDE.md` is the fixed, verbatim `@AGENTS.md`-import file that gets
`AGENTS.md` into a Claude Code session's context at all. It is a separate baseline entry from
`AGENTS.md` itself, so carrying one without the other still leaves that provider unconfigured.
Read `CODESTYLE.md` and the `GOVERNANCE.md` documentation-style rules before writing any repo
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/fleet-skills/.source-digests/standup-a-repo
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8a38eeb99188b8c4
f97623ea61aaf400
4 changes: 3 additions & 1 deletion .claude-plugin/fleet-skills/skills/standup-a-repo/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ maintainer can supply what section 0A lists.
`AGENTS.md`, `GOVERNANCE.md`, `CODESTYLE.md`, `WORKFLOW.md` and `AUDIT.md`, adapted rather
than cloned for the ones that describe a repo, plus `.markdownlint-cli2.jsonc` and
`cspell.json`. A downstream `AUDIT.md` is the short, repository-scoped form that says how the
repository reaches the hub for its audit and configuration check. `CLAUDE.md` is the fixed, verbatim `@AGENTS.md`-import file that gets
repository reaches the hub for its audit and configuration check. Write it from
`catalog/snippets/configs/AUDIT.md`, filling each placeholder `spec/files.json` declares for it.
`CLAUDE.md` is the fixed, verbatim `@AGENTS.md`-import file that gets
`AGENTS.md` into a Claude Code session's context at all. It is a separate baseline entry from
`AGENTS.md` itself, so carrying one without the other still leaves that provider unconfigured.
Read `CODESTYLE.md` and the `GOVERNANCE.md` documentation-style rules before writing any repo
Expand Down
4 changes: 3 additions & 1 deletion .github/skills/standup-a-repo/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ maintainer can supply what section 0A lists.
`AGENTS.md`, `GOVERNANCE.md`, `CODESTYLE.md`, `WORKFLOW.md` and `AUDIT.md`, adapted rather
than cloned for the ones that describe a repo, plus `.markdownlint-cli2.jsonc` and
`cspell.json`. A downstream `AUDIT.md` is the short, repository-scoped form that says how the
repository reaches the hub for its audit and configuration check. `CLAUDE.md` is the fixed, verbatim `@AGENTS.md`-import file that gets
repository reaches the hub for its audit and configuration check. Write it from
`catalog/snippets/configs/AUDIT.md`, filling each placeholder `spec/files.json` declares for it.
`CLAUDE.md` is the fixed, verbatim `@AGENTS.md`-import file that gets
`AGENTS.md` into a Claude Code session's context at all. It is a separate baseline entry from
`AGENTS.md` itself, so carrying one without the other still leaves that provider unconfigured.
Read `CODESTYLE.md` and the `GOVERNANCE.md` documentation-style rules before writing any repo
Expand Down
2 changes: 1 addition & 1 deletion AUDIT.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ A check with `intentRef`/`workflowRef` points at the prose section that owns the
- **carried-scope** - the repo carries no file the hub hosts rather than carries. The set is derived, not listed: the hub's git-tracked paths minus the [`spec/files.json`][files] baseline and every hub path a `trees` entry covers. A `trees` entry covers only the hub paths below its `source` that its `include` patterns match. A file dropped from the manifest is therefore reported on the next run, with no retirement list to remember to edit. The manifest's `repoOwnedTrees` entries name hub directories no repo carries, such as `tests`, and every hub path below one is left out of the set. The remedy is the opposite of every other file finding, a **deletion**, since the repo reaches the hub's copy per [GOVERNANCE.md "Hub-Hosted Tooling"][governance-hub-hosted-tooling]. The match is on path alone, so a hit is a candidate and not a verdict. A repo's own content at a path the hub also uses matches while carrying nothing of the hub's. The first fleet run showed such a match twice, a KiCad tooling doc at `scripts/README.md` and per-repo formatting hooks at `.husky/pre-commit`. A [`spec/divergences.json`][divergences] `gaps` disposition decides which case a hit is. So only `retire` asserts a deletion, `accepted` closes a collision or a repo-owned file, and an untriaged hit is read before it is acted on.
- **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/`), and a single opaque credential file carries no extension. Every real secret file has a tracked `<name>.example` beside it cataloged in `.secrets/README.md`. Those parts are N/A for a repo with no such directory. See [GOVERNANCE.md "Repo-Scoped Secrets"][governance-repo-scoped-secrets]. Every env and secret file the repo names, tracked or not, follows the env and secret file rule of [CODESTYLE.md "Script and Utility File Names"][codestyle-file-names]. `spec/audit.py` reports a tracked name that breaks the rule's form at **drift**. It reads each file directly in a `.secrets/` directory and each `.env` file elsewhere whose name does not open on a dot. It sets a trailing `.example` aside first, and the directory's own `README.md`, `.gitignore`, and `.gitkeep` are not secret files. The rest is judged by hand. A hyphen joins words only inside a host field, which takes the DNS label form. The check passes a hyphenated word in any field, since it cannot tell which field it is. A host field is a short name, never a fully qualified one. The check cannot tell an extension from a dot-joined last field of an extensionless name, a two-label host included. A consumer limit applies only where a name is used as a Docker secret or maps to a variable. A host-side name is judged where the repo's docs and scripts spell it out, never by reading a host. An `ENV_FILE` path and a compose `env_file` are such places. Renaming a file on a host is the maintainer's step, listed in the resync pull request.
- **runtime-secrets** - a repo-scoped runtime-secrets directory, when present, is named `.secrets/` (dotted, not a bare `secrets/`), and a single opaque credential file carries no extension. Every real secret file has a tracked `<name>.example` beside it cataloged in `.secrets/README.md`. Those parts are N/A for a repo with no such directory. See [GOVERNANCE.md "Repo-Scoped Secrets"][governance-repo-scoped-secrets]. Every env and secret file the repo names, tracked or not, follows the env and secret file rule of [CODESTYLE.md "Script and Utility File Names"][codestyle-file-names]. `spec/audit.py` reports at **drift** a name that breaks the rule's form, and a `.txt` extension on a file in a secrets directory. It judges each tracked file directly in a `.secrets/` directory and each `.env` file elsewhere whose name does not open on a dot. It sets a trailing `.example` aside first, and the directory's own `README.md`, `.gitignore`, and `.gitkeep` are not secret files. It also reads each tracked `.gitignore`, compose file, and editor config file, meaning a `.vscode/*.json`, a `.devcontainer` config, and a `.code-workspace` file. From those it reports a secrets directory not named `.secrets/`, in any letter case. It also judges each secret file the tree does not track that a compose file names. So does each such file with an extension that a `.vscode/*.json` or `.code-workspace` file names. A bare `secrets/` directory's own tracked `.gitignore`, `.gitkeep`, or `.example` template reports it as well. So does any tracked file directly in a `.secrets/` directory spelled in another letter case. A compose file's paths resolve against its own directory, or against the first file of a devcontainer's `dockerComposeFile` set. The rest is judged by hand. A hyphen joins words only inside a host field, which takes the DNS label form. The check passes a hyphenated word in any field, since it cannot tell which field it is. A host field is a short name, never a fully qualified one. The check cannot tell an extension from a dot-joined last field of an extensionless name, a two-label host included. A consumer limit applies only where a name is used as a Docker secret or maps to a variable. A host-side name is judged where the repo's docs and scripts spell it out, never by reading a host. An `ENV_FILE` path and a compose `env_file` are such places. Renaming a file on a host is the maintainer's step, listed in the resync pull request.
- **file-naming** - each script file takes the stem its extension sets, per [CODESTYLE.md "Script and Utility File Names"][codestyle-file-names]. A `.py` stem is lowercase snake_case. A `.sh`, `.ps1`, `.cmd`, or `.bat` stem is lowercase-hyphenated, and so is the name of an extensionless executable with a shebang. The extension is lowercase too. The text after a name's last dot is its extension, matched whatever its case. A name with a dot and none of those extensions is not judged here, whatever its mode. So an executable dotfile with no such extension, such as `.Hidden_Hook`, and a dotted name such as `Run_Me.v2` go unjudged. A launcher with an extension beside a `.py` of the same stem keeps that stem. `spec/audit.py` reports a name that breaks its pattern at **drift**. It reports a file the patterns cannot decide for judgment instead. One is a launcher whose `.py` sits in another directory. Another is an extensionless launcher beside its `.py`, which may be an installed command named `fetch-report` rather than `fetch_report`. A third is an extensionless executable with no shebang or no readable text. Pester's `.Tests.ps1` suffix is the one tool-fixed name the patterns know. Check a reported break against the externally fixed exemption before renaming it. Record any other tool-fixed name as a registry `driftNote` naming `(filenaming.scripts)` and each exempt path as a code span, such as `` `tools/Install.ps1` ``. The audit then skips each named path and no other. It reports a named path it no longer flags, or a note naming no path, as a stale exemption. The carried hook helper still under its former name `hub-fetch-run.py` is a break here. The names kept for Python-type discovery are no naming exemption.
- **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. 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` (`parity.hooks`, intent). For the hub repo itself it uses the hub's own local script copies instead. The helper's former name `hub-fetch-run.py` counts too. 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) apart from the letters of a recorded name. These checks also include US spelling and 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).
Expand Down
3 changes: 2 additions & 1 deletion STANDUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ This is the same shape as step 0. Signing has to be live before the first commit
Carry these before writing any repo content of your own:

- [`CLAUDE.md`][claude-md], [`AGENTS.md`][agents], [`GOVERNANCE.md`][governance], [`CODESTYLE.md`][codestyle], [`WORKFLOW.md`][workflow] and [`AUDIT.md`][audit], adapted rather than cloned for the ones that describe a repo.
- **A downstream `AUDIT.md` is the short, repository-scoped form.** It says how the repository reaches the hub for its audit and configuration check. A near-whole copy of the hub's file only drifts from it.
- **A downstream `AUDIT.md` is the short, repository-scoped form.** It says how the repository reaches the hub for its audit and configuration check. Write it from [`catalog/snippets/configs/AUDIT.md`][audit-snippet], filling each placeholder [`spec/files.json`][files] declares for it. A near-whole copy of the hub's file only drifts from it.
- **`CLAUDE.md` is not optional decoration.** Claude Code reads `CLAUDE.md`, not `AGENTS.md`. So a repo carrying `AGENTS.md` alone never gets it into a Claude Code session's context at all. `AGENTS.md` alone gets only into whatever an agent chooses to read on its own initiative mid-task. That is exactly the reliability gap that motivates carrying this file. It is a fixed, `verbatim`, whole-file carry with no repo-specific content. See `CLAUDE.md` itself for what belongs in it and what does not.
- **`.markdownlint-cli2.jsonc` and `cspell.json`**, which are the mechanical half. A rule nothing checks drifts silently, so a repo that carries the prose authorities without the linter configs has guidance and no gate. Scope a linter's **file set in the workflow** rather than relaxing either config, since `.markdownlint-cli2.jsonc` is carried `verbatim`.

Expand Down Expand Up @@ -247,6 +247,7 @@ The same [`AUDIT.md`][audit] run is the on-demand audit for any known repo, and

[agents]: ./AGENTS.md
[audit]: ./AUDIT.md
[audit-snippet]: ./catalog/snippets/configs/AUDIT.md
[claude-md]: ./CLAUDE.md
[codestyle]: ./CODESTYLE.md
[content-import]: ./docs/content-import.md
Expand Down
31 changes: 31 additions & 0 deletions catalog/snippets/configs/AUDIT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# AUDIT.md

How this repository audits itself against its committed baseline and reports drift. The fleet hub's own `AUDIT.md` is the fleet-wide audit, and it stays authoritative. General settings, rulesets, and secret names are hub-hosted ground truth in `repo-config/` and `spec/secrets.json`. They are checked from a hub checkout rather than carried here, per [GOVERNANCE.md "Hub-Hosted Tooling"][governance-hub-hosted-tooling]. The prose authorities are [`GOVERNANCE.md`][governance], [`CODESTYLE.md`][codestyle], and [`WORKFLOW.md`][workflow].

The audit is read-only. It diffs live state against the committed baseline and reports findings, and it never applies changes. The verdict vocabulary is [`WORKFLOW.md`][workflow]'s: **operational / not operational**, **N/A**, **defect**, and the applicable/absent rule.

## Scope

This is a `<model>`-model repository. The self-audit covers the `main` and `develop` rulesets, general repository settings, and secret names. Code-project conformance is the job of CI and of the hub's fleet-wide audit, not of this self-audit. See [GOVERNANCE.md "Branching Model"][governance-branching-model] for the model this baseline encodes.

## General Settings and Rulesets

Fetch the hub and check out `main`. Check out `develop` instead while this repository's registry entry has not yet reached `main`. Run `repo-config/configure.sh check <owner>/<repo> <model>` from that checkout. The command checks what `repo-config/configure.sh apply` writes, and the deployment environments the registry declares. It reports each ruleset's `bypass_actors` without asserting them, since who may bypass a ruleset is a human decision no payload declares. The token needs project access as well as admin on the repository, since the command reads the fleet project link through GraphQL.

The result must be exactly two rulesets named `develop` and `main`. A missing ruleset or a divergent payload is a **defect**, and a duplicate or stray ruleset is a **drift finding**.

## Secrets

From the same hub checkout, run `uv run --no-project --script spec/audit.py <Repo>` and read its secret findings. It resolves the required set from the hub's `spec/secrets.json` plus this repository's registry entry. It confirms each required name exists in the stores its mechanism claims, by name only and never by value. `repo-config/configure.sh check <owner>/<repo> <model>` asserts the same names per store. `repo-config/configure.sh apply <owner>/<repo> <model>` writes each one from the host's `~/.secrets/` directory.

## Verdict and Follow-Up

A missing required item or a divergent payload is a **defect** (not operational). An equivalent outcome in a non-standard form is a **drift finding**. N/A items are excluded, never counted as failures. Surface findings as repository issues, each naming the hub commit its run read.

<!-- Repo -->

[codestyle]: ./CODESTYLE.md
[governance]: ./GOVERNANCE.md
[governance-branching-model]: ./GOVERNANCE.md#branching-model
[governance-hub-hosted-tooling]: ./GOVERNANCE.md#hub-hosted-tooling
[workflow]: ./WORKFLOW.md
Loading
Loading