Repository navigation
feat: establish component catalog and exact distribution - #83
Conversation
|
Claude finished @kyle-sexton's task in 5m 15s —— View job PR #83 Review
This is a substantial, well-crafted refactor. The component model is coherent and the engine has a rigorous security posture. I'll note a few observations alongside the strengths. ArchitectureStrengths:
Observation — SecurityStrengths:
Observation — CI/CDStrengths:
Observation — lychee SHA length: Observation — tar -xzf lychee.tar.gz --strip-components=1 "${asset}/lychee"
Test CoverageStrengths:
Minor gaps:
SummaryThe PR is production-quality. The engine's fail-closed design, the preflight-before-mutation guarantee, the comprehensive path safety validation, and the supply-chain hygiene (SHA pins, no credential persistence, reviewed-PR-only apply) are all sound. The component catalog is well-organized and the ADR convention records the ownership model durably. The two observations above — documenting the |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_089f9e73-95e6-4512-8033-c94f55379789) |
## What changed - adopts the exact root-native policy components declared for `melodic-software/ci-runner` - replaces the standalone publish workflow with a complete CI workflow whose `image` job preserves PR builds, main publishing, and the weekly rebuild - adds the required `ci-status` gateway plus the shared PR-title caller - adds advisory scheduled online link checking at an off-minute time - makes the existing runner entrypoint conform to the shared ShellCheck policy without suppressions by separating API responses from JSON parsing ## Why `ci-runner` was the uncovered governed repository: enabling the normal IaC CI requirement before it emitted `ci-status` would deadlock pull requests. This change establishes the checks first and keeps image publication in the same repository-owned workflow. ## Impact and merge order This is **stack 3**. Merge after [ci-workflows #73](melodic-software/ci-workflows#73) and [standards #83](melodic-software/standards#83), and before the organization `github-iac` PR enables the default `RequiresCi` posture for this repository. The workflows currently pin #73's immutable head SHA. If #73 is squash-merged, refresh the pins to the resulting commit on `main` before merging this PR. ## Validation - workflow syntax via Actionlint - ShellCheck and shfmt on `entrypoint.sh` - comment-hygiene default policy scan - Docker build definition check - exact manifest materialization and hash verification - `git diff --check` --------- Co-authored-by: Cursor <[email protected]>
## What changed - materializes the repository's exact managed policy components at their tool-native root paths - moves Lychee configuration to `lychee.toml` - removes the downstream comment-hygiene policy copy because the default now ships with the action - pins the updated `ci-workflows` actions and reusable workflows - moves the advisory online link schedule off the top of the hour and passes the root Lychee config explicitly ## Why Shared policy changes upstream in `melodic-software/standards`; reusable execution changes in `ci-workflows`. This repository should keep only project scope and plugin behavior locally, without an overloaded `modules/` distribution layout. ## Impact and merge order Merge after [ci-workflows #73](melodic-software/ci-workflows#73) and [standards #83](melodic-software/standards#83). If #73 is squash-merged, refresh these immutable pins to the resulting `main` commit before merge. Managed files are exact and should be changed upstream. No receipt or repository-local sync metadata is added. ## Validation - schema-v2 materialization and exact hash verification - Actionlint workflow syntax - no legacy managed `modules/` paths - `git diff --check`
## What changed - materializes this repository's exact standards components at tool-native root paths - moves the Lychee ruleset from `modules/lychee/` to root `lychee.toml` - updates CI and scheduled link checking to consume the root path explicitly - pins the updated shared actions and reusable workflows ## Why This repository should contain the policy files GitHub tooling actually consumes, without a generic distribution-only `modules/` hierarchy. Shared policy remains owned by `melodic-software/standards`; workflow execution remains owned by `ci-workflows`. ## Impact and merge order Merge after [ci-workflows #73](melodic-software/ci-workflows#73) and [standards #83](melodic-software/standards#83). If #73 is squash-merged, refresh these pins to the resulting `main` commit before merge. ## Validation - schema-v2 exact materialization - Actionlint workflow syntax - root Lychee path audit - `git diff --check`
…estructure (#84) ## Summary Salvages the uncommitted full-repo simplify/review sweep that predated the #83 component-catalog restructure. The sweep was rebased onto `main`; ~49 conflicting paths were triaged rather than blindly replayed — everything the restructure superseded (old `modules/` READMEs, the `docs/dedup-program/` tree, workflow pin rewording, old-format sync manifest, README rewrite) was dropped in favor of main, and the substantive corrections were carried over: ### Conventions (doc accuracy) - **.NET overlay**: corrects the false parameter-count-ceiling claim — no first-party CA rule covers method arity and code-metrics rules stay opt-in even under `AnalysisMode=All`, so review owns the agnostic arity tiers in full; dedups criteria owned elsewhere (test-theater → `testing.md`, analyzer-caught disposal/async mechanics trimmed); moves time-ordered keys under performance - **code-organization / simpler-code**: disambiguates share-at-second-consumer (verbatim reuse) from the rule of three (abstraction shape) - **engineering README**: "authoring half" framing paired with the review half - smaller accuracy fixes in `documentation-and-citations`, `legacy-and-migration-debt`, `ai-generated-code`, `code-quality` ### comment-hygiene - fixes the case-sensitivity comment (`XXX` is uppercase-only in the code; the comment said everything was case-insensitive) - test coverage: `issue-reference` / `pr-reference` detail codes, per-line block-comment counts, lowercase-marker + nocasematch-restore behavior, and XXX case behavior (previously untested) ### harness - `assert_line_count` fails loudly on a missing file instead of treating it as 0 lines - `make_repo` overrides ambient `commit.gpgsign` / `core.hooksPath` so contributor machines behave like CI - drops the file-wide SC2030/SC2031 suppression by restructuring the self-test around command substitutions; widens lib self-test coverage ### CI - osv-scanner job: drops unused `actions: read` / `security-events: write` — the reusable workflow declares only `contents: read` and explicitly avoids the code-scanning SKU ## Verification - `harness/shell/run-tests.sh`: 13 passed, 0 failed, 3 skipped (local tool absence: yq, tsc — CI covers those lanes) - markdownlint, shellcheck, typos (bad fixtures excluded), PSScriptAnalyzer on changed files: clean - pre-commit hooks passed on the final commit 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_012LGh927Nj7aAhPeQ3LJJuT <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Changes are documentation, test harness behavior, and advisory CI permissions—no runtime services or security-critical logic beyond safer npm registry error handling in publish. > > **Overview** > Salvages a repo-wide simplify/review pass onto the post-restructure catalog: mostly **doc accuracy**, **contract-test coverage**, and **harness/CI hygiene**, not new product features. > > **Conventions** tighten prose so it matches executable policy: the **.NET overlay** drops the false claim that analyzers enforce method arity (review owns arity tiers end-to-end), dedups items covered elsewhere, and moves time-ordered keys under performance; **code-organization** separates share-at-second-consumer from rule-of-three abstraction; smaller cross-links in engineering/review docs (AI test theater → `testing.md`, exposure labels → review README, etc.). > > **comment-hygiene** documents and tests **uppercase-only `XXX`** (avoids `xxx-large` / placeholder false positives) while other markers stay case-insensitive; tests add **issue/PR tracker kinds**, block-comment line coverage, and **nocasematch** restore behavior. > > **Harness** makes **`assert_line_count`** fail on missing paths, **`make_repo`** ignore ambient GPG/hooks for CI parity, **`run-tests.sh`** treat `FAIL:` output and missing listed files as failures (and skip `node_modules` discovery), and expands **`lib.test.sh`** without SC2030/SC2031 suppressions. > > **CI/workflows**: **`osv-scanner`** keeps only `contents: read`; **`publish-packages`** routes `npm view` stderr to a temp file so only **E404** means “unpublished,” not auth noise on stdout. Component tests/docs get minor fixture and comment fixes (PSScriptAnalyzer 1.25.0 rule, lefthook `fail_text`, typos/shellcheck/lychee comments). > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit d5712b4. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Claude Fable 5 <[email protected]>
Refs: melodic-software/claude-code-plugins#15719 ## Summary This repository now resolves its build, test and lint commands from its own ecosystem records, one schema-valid file per ecosystem `/toolchain:check` and `/toolchain:lint` cover: `.claude/ecosystems/{bash,cross-cutting,dotnet,go,markdown,powershell,python,typescript,yaml}.yaml`. Each command follows this repository's own rules (the root `lefthook.yml` lanes and the `pr-require-checks.yml` jobs). Which intentionally bad component fixtures each record excludes, and which it does not, is listed per record below. ## Fix Every difference from toolchain's bundled defaults (`plugins/toolchain/reference/ecosystems/` in claude-code-plugins), each intended, with the file here that sets the rule: | Ecosystem | Difference from the bundled default | Rule source in this repository | |---|---|---| | bash | `check-cmd` is `shellcheck --rcfile "$REPO_ROOT/.shellcheckrc" <files>`; drops `-x -S warning` and `shfmt -d <files>` | `pr-require-checks.yml:111-114` (CI passes `rcfile: .shellcheckrc`); `.shellcheckrc:16` (`external-sources=true`, the `-x` equivalent); `components/lefthook-shellcheck/lefthook.yml:11-13`; no CI job or hook runs `shfmt -d` | | bash | `tool-pin` shellcheck 0.11.0; opt-in drops the shfmt clause; `fix-cmd` kept (`shfmt -w`), with a note that nothing keeps files shfmt-clean, so it can reformat beyond the change | `pr-require-checks.yml:115-119`; `.editorconfig:44-55` configures shfmt style | | markdown | `check-cmd`/`fix-cmd` call `markdownlint-cli2 --config "$REPO_ROOT/.markdownlint-cli2.jsonc" ... "!components/**/fixtures/bad/**"` from PATH (bundled `npx markdownlint-cli2 <files>`); `tool-pin` 0.24.0; the install hint names the PATH install (the lefthook lane uses `node_modules/.bin`, `components/lefthook-base/lefthook.yml:82`) | `package.json:14` and `:19` (`lint:md`); `pr-require-checks.yml:151-156` | | powershell | `check-cmd` is the repository's adapter `pwsh -NoProfile -NonInteractive -File "$REPO_ROOT/components/lefthook-powershell/psscriptanalyzer-staged.ps1" <files>` (bundled `Invoke-ScriptAnalyzer -Path . -Recurse`, which exits 0 on findings and scans the bad fixture); globs add `*.psd1`; `tool-pin` PSScriptAnalyzer 1.25.0; opt-in names the root settings file | `lefthook.yml:32-37`; `pr-require-checks.yml:297-307` | | typescript | `check-cmd` is `npx --no-install @biomejs/biome check --no-errors-on-unmatched <files>` (bundled `npx @biomejs/biome check .`); `fix-cmd`/`code-fix-cmd` also `--no-install`; opt-in names `biome.jsonc` (bundled `biome.json`, which the root does not have); `project-discovery: []` | `components/lefthook-typescript/lefthook.yml:16-28`; `biome.jsonc:12-13`; Biome 2.6.6 from `package.json:11` (CI's inline install for the contract tests is 2.5.1, `pr-require-checks.yml:511`) | | typescript | `build-cmd: null` (bundled `npx tsc --noEmit`), `test-cmd: null` (bundled "the package.json test script") | no authored tsconfig; no package.json has a `test` script (git grep), suites run through root `package.json:30-38` `test:<component>` scripts after per-component `npm ci` (`pr-require-checks.yml:734-779`) | | typescript | globs: code extensions only (bundled adds `package.json`, lockfiles, `tsconfig*.json`). Gap, stated in the record: the Biome lane also lints `*.json`/`*.jsonc` (`components/lefthook-typescript/lefthook.yml:19`), so a JSON-only change does not select this ecosystem | code-metrics reads the same `globs` key as its typescript lane | | python | `check-cmd` is `ruff check` plus `ruff format --check`, both `--force-exclude --extend-exclude components/ruff/fixtures/bad` on `<files>`; drops `uv run` and `pyright` | `components/lefthook-python/lefthook.yml:17-24`; `pr-require-checks.yml:463-466`; there is no `pyproject.toml` or uv project | | python | `test-cmd` is `bash harness/shell/run-tests.sh components/ruff/ruff.test.sh components/pyright/pyright.test.sh` (bundled `uv run pytest -x -q`); `tool-pin` ruff 0.15.14, pyright 1.1.409; no `project-discovery` | `pr-require-checks.yml:433-434`, `:495`, `:498`; the only Python is those components' fixtures | | go | `test-cmd` is `bash harness/shell/run-tests.sh components/go-analysis/go-analysis.test.sh`; build, check, fix and code-fix null; `project-discovery: []`, `gates: []`; globs `*.go`; `tool-pin` golangci-lint 2.12.2 | `pr-require-checks.yml:652-653`, `:707`; every `go.mod` is a fixture, and the bad ones fail gofmt, `go mod tidy -diff`, vet and golangci-lint on purpose (the bundled `go build ./...` passed in all 8 roots) | | dotnet | `test-cmd` is `bash harness/shell/run-tests.sh components/dotnet-analysis/dotnet-analysis.test.sh`; build, check, fix and code-fix null; no anchor or opt-in; globs `*.cs`; install hint names both SDKs CI uses (10.0.301 for the contract test, 10.0.400 for build and format of the good fixture) | `pr-require-checks.yml:573`, `:619-620`, `:635`, `:641`; no solution, only the good and bad fixture projects | | yaml | `check-cmd` is `actionlint` and `zizmor --offline <files>` (bundled: actionlint plus two comment lines); check-jsonschema line dropped | `pr-require-checks.yml:845-847`, `:923-948`; `.github/actionlint.yaml`, `.github/zizmor.yml` | | cross-cutting | typos, editorconfig-checker and lychee exclude `components/*/fixtures/bad`; `tool-pin` lychee 0.24.2 | `pr-require-checks.yml:240-245`, `:223-228`, `:175-180`, `:181-185` | **Bad-fixture exclusion, per record, versus CI.** - Excluded as CI excludes them: markdown (`components/**/fixtures/bad/**`, `pr-require-checks.yml:156`), python (`components/ruff/fixtures/bad` only, `:466`; `components/pyright/fixtures/bad` is not excluded, and CI's ruff step does not exclude it either), cross-cutting typos, editorconfig-checker and lychee (`:245`, `:228`, `:180`). - Not excluded, where CI or lefthook does exclude: bash (`components/shellcheck/fixtures/bad/Violations.sh`, excluded by CI at `:114`), powershell (`components/psscriptanalyzer/fixtures/bad`, excluded by CI at `:302` and by `lefthook.yml:27-28`), typescript (`components/*/fixtures/bad`, excluded by `lefthook.yml:27-28`). A command over `<files>` reaches a bad fixture only when the change touches one, and then reports its findings. - Not applicable: go and dotnet run only the contract suites, which assert the bad fixtures' failures; yaml's globs do not reach any fixture. **Contract-suite skips.** The go, python and dotnet suites exit 0 with a `skipped` count when their tool is missing (`harness/shell/lib.sh:48-54`, `harness/shell/run-tests.sh:41-44`). A skipped count is not a pass; each record's notes say so. **`tool-pin`.** In these runs only `/toolchain:lint` read installed versions against the pins; `/toolchain:check` reported drift only through the go suite's own version case. Commits: - `09e5f7cc5ecd13c64e1477e4705f95e83e960531` adds the nine records. - `938349050bda513adc08cc2c50ce251c2cc70b65` corrects the go and bash notes. - `190becab0b1b4dd1541179db03a346fae5b9647b` narrows python's exclusion to CI's, sets the omitted keys explicitly (go `project-discovery: []`, `gates: []`, `code-fix-cmd: null`; typescript `project-discovery: []`; dotnet `code-fix-cmd: null`), and adds the notes above. The final pair of runs used this commit's records. ## Verification **Two ranges.** The baseline pair ran on an old range, 307 commits behind `origin/main`; the final after-pair ran on a recent range ending at `origin/main`. **No baseline exists at the recent range**, so the recent runs show what the final records run, not a before-and-after on the same diff. - Old range: `13580fb5b3005acdb9f68d7e969a0de85de9a68b..f129fe3` (#631, #628; 15 files: 2 workflow yml, 4 md, 3 sh, 1 mjs, 3 ps1, 1 psm1, 1 `distribution/*.yml`). At `f129fe3`, `.github/workflows/pr-require-checks.yml`, which the records cite, did not exist. It is the only range used for the baseline and for the first after-pair. - Recent range: `25163b5ee68a48b6d4743300b3da7f20d3a1d25a..9ce192b` (`origin/main`; #984 through #1000, 27 files: 3 `.github` yml, 12 md, 2 mjs, 1 sh, plus json, yml and `LICENSE`). It is the smallest recent first-parent window ending at `origin/main` that touches shell, JavaScript, markdown and workflow files. It misses PowerShell (last changed in #628, 2026-09-28) and `.py`, `.go` and `.cs`, which exist only as `components/*/fixtures/` and last changed in July (#110, #84, #83); no small range covers those. **Method.** A throwaway `git clone --shared` with a fixture branch at the range's head and `refs/remotes/origin/main` (and `origin/HEAD`) at its base, so the skills' default-branch detection yields exactly the range's files. For after-runs the records were copied in and kept out of `git status` through the clone's `.git/info/exclude`. No user-global `~/.claude/ecosystems/` exists. Each run invoked `/toolchain:check all` or `/toolchain:lint` (auto-detect) through the Skill tool, toolchain 1.2.7 skill text. No dependency install ran (`npm ci` was denied once in run 3 and not attempted after). Each list below is the Bash commands run between marker echoes; `$R` is the clone root and `[cwd=$R]` a command run from the root. | Run | Skill | Range | Records | Start | End | Overall | |---|---|---|---|---|---|---| | 1 | `/toolchain:check all` | old | bundled defaults | 9:40 PM EST | 9:42 PM EST | FAIL (4 of 7 ecosystems failed) | | 2 | `/toolchain:lint` | old | bundled defaults | 9:42 PM EST | 9:43 PM EST | FAIL (2 of 6 ecosystems failed) | | 3 | `/toolchain:check all` | old | first records (`09e5f7c`) | 9:46 PM EST | 9:47 PM EST | FAIL (2 of 7 ecosystems failed; typescript: skip (dependencies missing: install denied)) | | 4 | `/toolchain:lint` | old | first records | 9:47 PM EST | 9:48 PM EST | FAIL (1 of 6 ecosystems failed) | | 5 | `/toolchain:check all` | recent | final records (`190beca`) | 10:03 PM EST | 10:04 PM EST | FAIL (2 of 7 ecosystems failed; typescript: skip (dependencies missing: install not run, installs forbidden)) | | 6 | `/toolchain:lint` | recent | final records | 10:04 PM EST | 10:05 PM EST | FAIL (1 of 5 ecosystems failed) | Runs 3 and 4 used the first records; they differ from the final ones in python's exclusion (`components/*/fixtures/bad`, wider than CI's) and in keys that ran nothing on that diff. They stay as the same-diff comparison against the baseline. <details><summary>Run 1, /toolchain:check all, old range, bundled defaults</summary> ```text git -C $R status --porcelain git -C $R branch --show-current git -C $R rev-parse --show-toplevel git -C $R symbolic-ref --short refs/remotes/origin/HEAD git -C $R merge-base refs/remotes/origin/main HEAD <ls-files probe for build and lint config files> command -v dotnet command -v go command -v uv go -C <each of 8 fixture go.mod dirs> build ./... # all pass go -C $R/components/go-analysis/fixtures/good test ./... go -C $R/components/go-analysis/fixtures/bad/vet test ./... # FAIL by design; the other 6 bad roots were not tested uv run --directory $R pytest -x -q # FAIL, pytest not spawnable command -v npx npm --prefix $R/components/runner-policy test # FAIL, no test script command -v shellcheck shellcheck -x -S warning <3 sh> # FAIL, run noise (see below) shfmt -d <3 sh> # FAIL; run as its own call, where the bundled `&&` would have skipped it command -v pwsh pwsh -NoProfile [cwd=$R] -Command 'Invoke-ScriptAnalyzer -Path . -Recurse' # exit 0, 11 findings, all in components/psscriptanalyzer/fixtures/bad/Violations.ps1 npm exec --prefix $R -- markdownlint-cli2 <4 md, relative> # run noise: ran from the wrong directory npx markdownlint-cli2 <4 md> node <toolchain>/scripts/record-result.mjs --skill check ... 'Overall: FAIL (4 of 7 ecosystems failed)' ``` dotnet `—` (no solution, no changed project); go Test FAIL; python Test FAIL; typescript Test FAIL; bash Lint FAIL; powershell pass; markdown pass. </details> <details><summary>Run 2, /toolchain:lint, old range, bundled defaults</summary> ```text git -C $R status --porcelain git -C $R branch --show-current git -C $R diff --name-only 13580fb..HEAD git -C $R ls-files <biome.json / eslint config probe> # typescript: skip (opt-in unmet: no biome.json) bash -c 'shellcheck -x -S warning "$@" && shfmt -d "$@"' <3 sh> # FAIL (shellcheck, run noise) pwsh -NoProfile [cwd=$R] -Command 'Invoke-ScriptAnalyzer -Path . -Recurse | Select-Object ScriptPath,Line,RuleName | Format-Table -AutoSize | Out-String -Width 250' # run noise: display pipeline appended; exit 0, 11 bad-fixture findings npx markdownlint-cli2 <4 md> command -v actionlint actionlint -chdir $R # run noise: no such flag actionlint [cwd=$R] zizmor --offline [cwd=$R] .github/workflows/ci.yml .github/workflows/claude-review.yml typos [cwd=$R] # FAIL, components/typos/fixtures/bad gitleaks detect --source $R --redact --no-banner --no-git ec [cwd=$R] # FAIL, components/editorconfig-checker/fixtures/bad lychee --offline --no-progress [cwd=$R] './**/*.md' # FAIL, components/lychee/fixtures/bad node <toolchain>/scripts/record-result.mjs --skill lint ... 'Overall: FAIL (2 of 6 ecosystems failed)' ``` </details> <details><summary>Run 3, /toolchain:check all, old range, first records</summary> ```text git -C $R status --porcelain git -C $R branch --show-current git -C $R rev-parse --show-toplevel git -C $R symbolic-ref --short refs/remotes/origin/HEAD git -C $R merge-base refs/remotes/origin/main HEAD git -C $R diff --name-only 13580fb..HEAD ls $R/.claude/ecosystems command -v dotnet bash harness/shell/run-tests.sh components/dotnet-analysis/dotnet-analysis.test.sh [cwd=$R] # pass command -v go golangci-lint version bash harness/shell/run-tests.sh components/go-analysis/go-analysis.test.sh [cwd=$R] # FAIL, case [3] of 31 command -v ruff pyright --version bash harness/shell/run-tests.sh components/ruff/ruff.test.sh components/pyright/pyright.test.sh [cwd=$R] # FAIL, ruff.test [1] command -v npx npx --no-install @biomejs/biome check --no-errors-on-unmatched components/runner-policy/runner-policy.test.mjs [cwd=$R] # cancelled, no node_modules git -C $R ls-files package-lock.json git -C $R status --porcelain git -C $R diff HEAD --binary --stat npm ci --ignore-scripts --no-audit --no-fund --prefix $R # denied by the permission classifier; the extra flags are not in the skill's vetted form command -v shellcheck shellcheck --rcfile $R/.shellcheckrc <3 sh> [cwd=$R] # pass command -v pwsh pwsh -NoProfile -NonInteractive -File $R/components/lefthook-powershell/psscriptanalyzer-staged.ps1 <4 ps> [cwd=$R] # pass command -v markdownlint-cli2 markdownlint-cli2 --config $R/.markdownlint-cli2.jsonc <4 md> "!components/**/fixtures/bad/**" [cwd=$R] # pass node <toolchain>/scripts/record-result.mjs --skill check ... 'Overall: FAIL (2 of 7 ecosystems failed; typescript: skip (dependencies missing: install denied))' ``` </details> <details><summary>Run 4, /toolchain:lint, old range, first records</summary> ```text git -C $R status --porcelain git -C $R branch --show-current git -C $R diff --name-only 13580fb..HEAD npx --no-install @biomejs/biome check --no-errors-on-unmatched components/runner-policy/runner-policy.test.mjs [cwd=$R] # FAIL: Biome not installed shellcheck --version shellcheck --rcfile $R/.shellcheckrc <3 sh> [cwd=$R] pwsh -NoProfile -NonInteractive -Command '<installed PSScriptAnalyzer version>' # 1.25.0 pwsh -NoProfile -NonInteractive -File $R/components/lefthook-powershell/psscriptanalyzer-staged.ps1 <4 ps> [cwd=$R] markdownlint-cli2 --version markdownlint-cli2 --config $R/.markdownlint-cli2.jsonc <4 md> "!components/**/fixtures/bad/**" [cwd=$R] command -v actionlint actionlint [cwd=$R] zizmor --offline [cwd=$R] .github/workflows/ci.yml .github/workflows/claude-review.yml typos --exclude 'components/*/fixtures/bad/' [cwd=$R] gitleaks detect --source $R --redact --no-banner --no-git ec -exclude 'components/[^/]+/fixtures/bad/' [cwd=$R] lychee --version lychee --offline --no-progress --exclude-path 'components/[^/]+/fixtures/bad' './**/*.md' [cwd=$R] node <toolchain>/scripts/record-result.mjs --skill lint ... 'Overall: FAIL (1 of 6 ecosystems failed)' ``` </details> <details><summary>Run 5, /toolchain:check all, recent range, final records</summary> ```text git -C $R status --porcelain git -C $R branch --show-current git -C $R rev-parse --show-toplevel git -C $R symbolic-ref --short refs/remotes/origin/HEAD git -C $R merge-base refs/remotes/origin/main HEAD git -C $R diff --name-only 25163b5..HEAD ls $R/.claude/ecosystems command -v dotnet bash harness/shell/run-tests.sh components/dotnet-analysis/dotnet-analysis.test.sh [cwd=$R] # pass: 1 passed, 0 failed, 0 skipped command -v go golangci-lint version bash harness/shell/run-tests.sh components/go-analysis/go-analysis.test.sh [cwd=$R] # FAIL: case [3] "local golangci-lint 2.15.0 does not match the pinned 2.12.2"; the other 30 pass command -v ruff pyright --version bash harness/shell/run-tests.sh components/ruff/ruff.test.sh components/pyright/pyright.test.sh [cwd=$R] # FAIL: ruff.test [1] "good fixture lints clean"; pyright.test ok command -v npx npx --no-install @biomejs/biome check --no-errors-on-unmatched components/dependabot-policy/dependabot-policy.test.mjs components/github-actions-conventions/naming-lint.test.mjs [cwd=$R] # cancelled, no node_modules; no install attempted command -v shellcheck shellcheck --rcfile $R/.shellcheckrc components/managed-files-guard/managed-files-guard.test.sh [cwd=$R] # pass command -v pwsh # no PowerShell file in the diff; the adapter did not run command -v markdownlint-cli2 markdownlint-cli2 --config $R/.markdownlint-cli2.jsonc <12 md> "!components/**/fixtures/bad/**" [cwd=$R] # pass, 12 files node <toolchain>/scripts/record-result.mjs --skill check ... 'Overall: FAIL (2 of 7 ecosystems failed; typescript: skip (dependencies missing: install not run, installs forbidden))' ``` | Ecosystem | Build | Test | Lint | Status | |---|---|---|---|---| | dotnet | — | pass | — | PASS | | go | — | FAIL | — | FAIL | | python | — | FAIL | — | FAIL | | typescript | — | — | skip (dependencies missing: install not run) | INCOMPLETE | | bash | — | — | pass | PASS | | powershell | — | — | — (no PowerShell file in the diff) | — | | markdown | — | — | pass | PASS | </details> <details><summary>Run 6, /toolchain:lint, recent range, final records</summary> ```text git -C $R status --porcelain git -C $R branch --show-current git -C $R diff --name-only 25163b5..HEAD npx --no-install @biomejs/biome check --no-errors-on-unmatched components/dependabot-policy/dependabot-policy.test.mjs components/github-actions-conventions/naming-lint.test.mjs [cwd=$R] # FAIL: Biome not installed shellcheck --version # 0.11.0, matches the pin shellcheck --rcfile $R/.shellcheckrc components/managed-files-guard/managed-files-guard.test.sh [cwd=$R] # pass markdownlint-cli2 --version # 0.24.0, matches the pin markdownlint-cli2 --config $R/.markdownlint-cli2.jsonc <12 md> "!components/**/fixtures/bad/**" [cwd=$R] # pass command -v actionlint actionlint [cwd=$R] # pass zizmor --offline [cwd=$R] .github/dependabot.yml .github/workflows/pr-automerge-dependabot.yml .github/workflows/pr-require-checks.yml # no findings typos --exclude 'components/*/fixtures/bad/' [cwd=$R] # pass gitleaks detect --source $R --redact --no-banner --no-git # no leaks ec -exclude 'components/[^/]+/fixtures/bad/' [cwd=$R] # pass lychee --version # 0.24.2, matches the pin lychee --offline --no-progress --exclude-path 'components/[^/]+/fixtures/bad' './**/*.md' [cwd=$R] # 0 errors node <toolchain>/scripts/record-result.mjs --skill lint ... 'Overall: FAIL (1 of 5 ecosystems failed)' ``` typescript FAIL (Biome not installed); bash, markdown, yaml, cross-cutting pass. </details> **Command-list diff, old range (runs 1 and 2 against runs 3 and 4).** Every differing line, with its cause. "Record" lines are intended (table under Fix). "Run noise" lines come from how one run went. | Line | Cause | |---|---| | go `- go build ./...` (8 roots), `- go test ./...` / `+ run-tests.sh go-analysis.test.sh` | record: go | | python `- uv run pytest -x -q` / `+ run-tests.sh ruff.test.sh pyright.test.sh` | record: python test | | typescript `- npm --prefix components/runner-policy test` / `+ npx --no-install @biomejs/biome check ... <files>` | record: typescript (lint now runs; test is null) | | dotnet `+ run-tests.sh dotnet-analysis.test.sh` | record: dotnet (bundled ran nothing: no anchor) | | bash `- shellcheck -x -S warning`, `- shfmt -d` / `+ shellcheck --rcfile` | record: bash | | powershell `- Invoke-ScriptAnalyzer -Path . -Recurse` / `+ psscriptanalyzer-staged.ps1 <4 ps>` | record: powershell | | markdown `- npx markdownlint-cli2 <4 md>` / `+ markdownlint-cli2 --config ... "!components/**/fixtures/bad/**"` | record: markdown | | cross-cutting typos, `ec`, lychee gain the bad-fixture exclusions | record: cross-cutting | | `+ shellcheck --version`, `+ markdownlint-cli2 --version`, `+ lychee --version`, the PSScriptAnalyzer version read (lint); `+ golangci-lint version`, `+ pyright --version` (check, read as part of the tool probe) | record: `tool-pin` | | `- npm exec --prefix ... markdownlint-cli2` (run 1) | run noise: ran from the wrong directory and linted nothing in the clone; rerun with absolute paths | | `- shellcheck -x -S warning <3 sh>` FAIL with SC2154 (runs 1, 2) | run noise: run from outside the repository root, shellcheck could not follow `source "$root/harness/shell/lib.sh"`; from the root the same command passes. `shfmt -d` fails from either directory | | PowerShell display pipeline (run 2), `- actionlint -chdir $R` (run 2) | run noise | | `+ npm ci --ignore-scripts --no-audit --no-fund` (run 3) | run noise: install attempt, denied | | `git` context reads and `record-result` lines | identical apart from the Overall text | **What the remaining failures are.** These are the observed causes; the python one is not confirmed. - go (runs 3, 5): the suite's case [3] asserts golangci-lint 2.12.2; 2.15.0 is installed. The other 30 cases pass. - python (runs 3, 5): with the installed ruff 0.17.4 (CI pins 0.15.14) the good fixture trips `datetime-timezone-utc` (UP017) at `components/ruff/fixtures/good/example.py:15`. Version drift is the likely cause; I did not run 0.15.14 to confirm it. - typescript (runs 3 to 6): the clone has no `node_modules`, so `npx --no-install` cancels. A proxy run in the old clone with the PATH Biome 2.6.6 (not the record's form) reported 2 `noUnnecessaryConditions` findings in `runner-policy.test.mjs` at `f129fe3`. **No `skip (unresolved`.** Neither recorded `/toolchain:check all` output (runs 3 and 5) contains `skip (unresolved`; both resolved all seven ecosystems from `.claude/ecosystems/` (rung 1, the consumer file). The installed toolchain skills (1.2.7, 1.2.9) define no `unresolved` cell, so the string could not appear in any run; the rung-1 resolution is the evidence that matters. **Schema.** `check-jsonschema --schemafile docs/contracts/ecosystem-commands/ecosystem.schema.json` (claude-code-plugins, identical to its `origin/main`; check-jsonschema 0.39.0) over all nine files at `190beca`: `ok -- validation done`. The five files code-metrics reads (bash, dotnet, go, python, typescript) parse with claude-code-plugins' `plugins/code-metrics/scripts/yaml_subset.py`. `typos`, `editorconfig-checker` and `gitleaks` are clean on the new files, and the repository's lefthook pre-commit and commit-msg hooks passed on all three commits. This repository has no changelog-fragment mechanism, so no fragment. ## Related - melodic-software/claude-code-plugins#15719 (this item), parent melodic-software/claude-code-plugins#15703; the same work for claude-code-plugins itself: melodic-software/claude-code-plugins#15704. - Follow-up outside this change's scope: `.gitignore` has no `.claude/**/*.local.*` line, which the ecosystem-commands contract recommends for personal override files. - Follow-up: the typescript record follows the repository's `npx --no-install` form, so a run in a checkout without `npm ci` fails or skips the Lint cell until the root dependencies are installed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) session: GitHub Support --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
No related issue: implements owner-confirmed decision Q1628 (workshop 04 alignment pass). ## Summary Q1628 requires one harness-neutral filing guide for PRs and issues to reach every agent in every org repo. #1091 put the guide (`docs/standards/filing-prs-and-issues.md`) in `engineering-standards`. That component reaches only the 10 `pr-body-contract-rule` targets. Nine sync targets where agents open PRs never got the guide. ## Fix - **New `filing-guide` component** that owns only the guide destination. The manifest validator requires every destination to have exactly one owning component, so the guide moves out of `engineering-standards` instead of being copied. - **`engineering-standards` now `requires: [filing-guide]`**, so its index row for the guide always resolves. - **All 19 targets manage `filing-guide`.** For the 10 `engineering-standards` targets nothing changes: same source file, same destination, no byte change on their next sync. The other nine get one file each. - **Option chosen: (b), a guide-only component, not (a), widening `engineering-standards`.** Basis: - **knowledge-corpus, songwriting**: the manifest records "takes `dependabot-policy` and the fleet-routed guard only (owner decision 2026-11-15)". songwriting is content-only per github-iac ADR-0006. Shipping the code-design files and the index there would override those decisions beyond what Q1628 covers. Q1628 is newer and widens them by this one file, which the manifest comment now says. - **architecture**: a decision-record repo whose roster is limited to the Dependabot copy, the guard and typos, and whose markdown lane is off. - **pr-pipeline-sandbox**: the manifest says "it has no product code or authored docs to lint". - **agent-plugins, cursor-plugins, claude-code-proxy, agent-automations, azure-iac**: code repos, where the full set would fit. Their absence comes from the roster rule ("every pr-body-contract-rule target"), not from a recorded misfit. Option (a) would still leave the four repos above without the guide, and a destination can have only one owner, so (a) plus (b) together reduces to (b). Widening `engineering-standards` there is a separate roster decision. - **Dependabot-only targets (architecture, knowledge-corpus, songwriting)**: included. Agents open PRs in all three: architecture #168-#175 and songwriting #83 are agent sessions, and knowledge-corpus #77 is too (they post as `kyle-sexton`). - **managed-files-guard**: no new destination. Both callers' `paths` already list `docs/standards/filing-prs-and-issues.md` (#1091), so the lists are unchanged. - **Records reconciled**: - admission evidence for `filing-guide` in the pr-convention-policy README, following the `pr-template` precedent; - `engineering-standards` README file counts and scope; - the issue-body-contract README row; - the ADR-0008 2026-11-22 note; - the `contract-docs.mjs` header comment; - the target roster comments in the manifest. - **ADR-0007** (whole-file, byte-exact) is kept: one source file, one destination, one owner. ## Verification - `distribution/sync-manifest.sh validate`: "Manifest valid: 56 components, 19 targets". - `sync-manifest.sh dest-paths`: - `--target melodic-software/songwriting` lists the guide beside its three existing destinations; - `--target melodic-software/ci-runner` lists the same 12 `docs/standards/` paths as before. - `bash distribution/sync-manifest.test.sh`: exit 0, 372 PASS. - `bash harness/shell/run-tests.sh components/managed-files-guard/managed-files-guard.test.sh`: 1 passed. - `node components/pr-convention-policy/contract-docs.mjs check`: committed copies match. - markdownlint on the four changed docs: 0 issues. `biome check` on `contract-docs.mjs`: clean. - None of the nine new targets has `docs/standards/` (`gh api .../contents/docs/standards`: 404 for each), so the first sync overwrites nothing. ## Related - Refs: #1091 (added the guide under `engineering-standards`). - Repos that get only the guide have no `docs/standards/README.md` index. Agents there find the guide through `AGENTS.md` pointers, the consumer follow-up #1091 already named. - agent-plugins and cursor-plugins take neither `engineering-standards` nor `pr-body-contract-rule`, although their sibling codex-plugins takes both. That looks like a roster gap, not a decision. Not changed here. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01RAoAtUszvw6rUY9tpjLr2U --------- Co-authored-by: Claude Opus 5.5 <[email protected]>


What changed
modules/,packages/, and globalfixtures/layouts with cohesivecomponents/<capability>/source slicesci-workflows, plus weekly/off-minute reconciliation and targeted dry runsWhy
Shared policy needs one normative owner without forcing runtime coupling or hand-copying. A component is now the smallest capability adopted, updated, verified, and retired atomically. Native packages/actions remain native; exact sync is the fallback for tools that require local files.
Consumers receive no receipt, lock file, generated header, managed-files inventory, or generic patch/template layer.
managedmeans exact upstream ownership;locally-ownedis the explicit full-component customization/opt-out seam.Ownership model
standards: normative policy, component contracts, exact adoption manifestci-workflows: reusable execution and GitHub orchestrationgithub-iac: repository governanceImpact and merge order
This is stack 2 / merge after ci-workflows #73. The caller currently pins that PR's immutable head SHA. If #73 is squash-merged, refresh the pin to the resulting commit on
mainbefore this PR merges.Before enabling the first real all-target reconciliation, confirm that the
melodic-standards-syncGitHub App installation can access every manifest target. The workflow otherwise fails closed per target; it never pushes a default branch or auto-merges.Validation
git diff --checkaudits passedNote
Medium Risk
Large structural and distribution-pipeline change affecting CI, publishing, and multi-repo sync to ten targets; mitigated by contract tests and fail-closed manifest validation, but merge order with ci-workflows #73 and App target access matter for rollout.
Overview
Replaces the
modules//packages// globalfixtures/layout withcomponents/<capability>/slices that co-locate policy, contract tests, fixtures, and npm metadata. Tool-mandated configs stay root-canonical (for example.editorconfig-checker.json,lychee.toml,ruff.toml) with components documenting and testing them; root stubs likebiome.jsoncnowextendscomponents/biome/biome.jsoninstead ofmodules/typescript/.Distribution moves to schema v2:
distribution/sync-manifest.ymldefines atomic components,managed/locally-ownedtargets, and dependencies;distribution/sync-manifest.shvalidates indexed sources, plans, emits CI matrix JSON, and applies bytes plus executable mode without receipts or patches. CI adds adistributionjob (engine tests + production manifest validate) and renames module fixture lanes to component contract tests undercomponents/**/fixtures/bad.Workflows pin
ci-workflows@1d3762c, pass explicitconfig/paths/projectinputs, andpublish-packagespackscomponents/biomeandcomponents/tsconfigdirectly with full-tarball drift checks instead of staging frommodules/typescript/.standards-syncdrops path-filtered cascades in favor of weekly reconciliation; link-check and sync cron minutes shift to:17.Adds ADR 0001 (federated ownership), ADR templates, and README/conventions updates that describe the component model and exact-file sync fallback.
Reviewed by Cursor Bugbot for commit e0a802e. Bugbot is set up for automated code reviews on this repo. Configure here.