Repository navigation
feat(ecosystems): add this repository's ecosystem records and the command-list baseline - #15927
Conversation
One schema-valid record per ecosystem the toolchain check and lint skills cover, following this repository's own rules where a bundled default differs: Python lint through the pinned ruff wrapper, shellcheck with the root .shellcheckrc, markdownlint-cli2 with the root config, and .NET and Go turned off because the repository builds neither. Refs: #15704 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
…xtures Turning the two records off made code-metrics drop 13 fixture files from its dotnet and go lanes. The records now stay on with no command to run and globs equal to code-metrics' own map, so no reader's lane assignment changes. Refs: #15704 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
Nine packages carry a tsconfig.json, so the typescript record keeps the bundled npx tsc --noEmit build step. The python note now says what scripts/affected-tests.sh does with Python suites: it selects them and leaves them to their own CI lane. Refs: #15704 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
The ruff wrapper, .shellcheckrc and .markdownlint-cli2.jsonc are named through $REPO_ROOT, so the commands no longer depend on the working directory. The python note now says what CI does with the Python suites, one pinned pytest process per module, as the reason test-cmd is null. The tsc build step guards on a tsconfig.json in each package. markdownlint-cli2 and zizmor carry the versions package.json and requirements-ci.txt pin. Refs: #15704 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 340dd07346
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-security-review reviewed Security review: PR #15927, incremental (340dd07 → acc176e)No security issues found. Scope. This is an incremental review, and it was blocking only, because this lane already reviewed head What changed and what it gates.
Trust controls. No trusted-actor list, token request, kill switch, merge hold, plugin manifest, PR context. It describes this change accurately, and I found no embedded instructions aimed at the review. Spend. None. critical-findings: 0 |
|
claude-review reviewed Code review, incremental (340dd07 → acc176e): blocking findings onlyI read the whole change in What changed
Both threads are settled by owner replies that state the fix ( Findings: none blocking. Not raised again this round
Closing issue #15704
No embedded instructions found in the PR context, settled threads or prior findings. No plugin manifest changed. Nothing here spends money or credits. Verifier dropped 0 of 0 candidates. |
npm test fails with "Missing script" in a package that defines none, the root package among them, so a change under lib/ or scripts/ gave a false FAIL. The command now runs the script only when present. The note names the three packages the build step type-checks instead of nine. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
|
Hold released by the hub session (session: GitHub Support). The five items under "Choices for the owner" are settled by the closing issue's recorded decision D26 ("the records follow this repository's own rules where a bundled default differs, each difference listed as intended"), checked against the code on
Nothing here changes a gate: the pre-push check and CI are untouched. |
Closes #15704
session: GitHub Support
Summary
This repository now resolves its build, test and lint commands from its own ecosystem records,
one schema-valid file per ecosystem
/toolchain:checkand/toolchain:lintcover:.claude/ecosystems/{bash,cross-cutting,dotnet,go,markdown,powershell,python,typescript,yaml}.yaml.A command-list baseline on one fixed diff is recorded below so later items can compare against it.
Fix
Every difference from toolchain's bundled defaults (
plugins/toolchain/reference/ecosystems/),with the rule each follows (decision D26):
check-cmdis$REPO_ROOT/scripts/run-ruff.sh check --force-exclude <files>; it dropsuv run ruff format . --checkanduv run pyright.claude/rules/ruff-pin.md:9-11;scripts/check-affected.sh:482runs only ruff check, through the wrapperfix-cmdandcode-fix-cmdgo through the same wrapper.claude/rules/ruff-pin.md:9-11test-cmd: null(bundleduv run pytest -x -q).github/workflows/pr-require-checks.yml:3836-3842, the per-module loop at:3977-3979,pytest==9.2.0at.github/requirements-ci.txt:17); no single command reproduces thatproject-discoverydropped; globs*.py,*.pyi(bundled addspyproject.toml,uv.lock,pyrightconfig.json); opt-in namesruff.tomlonlypyproject.toml; globs equal code-metrics' map (plugins/code-metrics/scripts/detect-lanes.sh:41-50)check-cmdisshellcheck --rcfile "$REPO_ROOT/.shellcheckrc" <files>; drops-x -S warningandshfmt -d <files>scripts/check-affected.sh:446; CIlint-shellpassesrcfile: .shellcheckrc(.github/workflows/pr-require-checks.yml:2369-2374);.shellcheckrc:16setsexternal-sources=true(the-xequivalent); no CI job runsshfmt -d(CI installs shfmt only for--to-jsonparsing,pr-require-checks.yml:2894,:3609-3610)check-cmdandfix-cmdcallmarkdownlint-cli2 --config "$REPO_ROOT/.markdownlint-cli2.jsonc"from PATH (bundlednpx markdownlint-cli2);tool-pinmarkdownlint-cli2: 0.24.0; install hint names that versionscripts/check-affected.sh:395probescommand -v markdownlint-cli2and:437-438runs it with that config;package.json:17pins0.24.0; the baseline'snpxfetched an unpinned 0.24.1build-cmdistest ! -f tsconfig.json || npx tsc --noEmit(bundlednpx tsc --noEmitwith the condition in a comment)package.jsondirectory; 9tsconfig.jsonfiles are tracked and 3 sit beside apackage.json(plugins/miro/serverand the twoplugins/knowledgeextraction packages), so the build step type-checks those 3; the other 6 plugins' files resolve to the root package, where nothing is type-checked (the record's note says so)test-cmd: npm run test --if-present(bundled names "the package.json test script")node --test, 2vitest run, 1vitest run --coverage --typecheck, 15 none;--if-presentkeeps a package with no test script (the root package among them) from failing the Test cell. Changed after review of this pull request; the recorded AFTER lists below shownpm test, from runs made before this change, and the 6-run budget is spent, so the lists were not re-recorded. All three packages in the fixed diff have a test script, where the two forms run the same scriptpackage.json, the four lockfile names andtsconfig*.json; adds*.mts,*.cts,*.cjs*.csonly; no anchor, opt-in or install hint.editorconfigC# style of the repository's own; its.csfiles are plugin test fixtures*.go(bundled addsgo.mod,go.sum); no project-discoverygo.mod; the two.gofiles are plugin test fixturesPSScriptAnalyzerSettings.psd1as the first condition)PSScriptAnalyzerSettings.psd1in the repository; commands unchangedcheck-cmdnamesactionlintandzizmor --offline <files>(bundled:actionlintplus two comments);tool-pinzizmor: 1.32.0; install hint pins it; check-jsonschema line droppedzizmor==1.32.0(.github/requirements-ci.txt:176,scripts/check-affected-gates.txtzizmor ci-only).editorconfig(bundled.editorconfig-checker.json / .editorconfig); commands unchanged.editorconfig-checker.jsonin the repository$REPO_ROOTis the contract's documented repository-root placeholder(
docs/contracts/ecosystem-commands/README.md:111), so the python, bash and markdown commands nolonger depend on the working directory.
Commits:
2dc4c30d62bf60ac9f7699e9d825100285cd66d0the nine records.cecf30f16292aabe122b421454296a8f87856977.NET and Go stay on with no commands. The firstcommit's message says they were turned off; this commit reverses that, because
enabled: falsedropped 13 fixture files from code-metrics' dotnet and go lanes.
0a2d2a015ea91d0922294e8c646d82090e744219keep the tsc build step; correct the Python note.340dd073461fc19d85904cfa4f2fba9ad6190430$REPO_ROOTpaths, the true Python test note, the tsconfig guard, the two tool pins.Choices for the owner
/toolchain:check. The Test cell is—, so check reports PASS forPython with no test run. What the rules decide: CI runs the suites one pytest process per module
(
pr-require-checks.yml:3836-3842), which no singletest-cmdreproduces. What they do notdecide: whether check should run something partial instead (for example
scripts/affected-tests.sh, which selects Python suites but does not run them).FAIL (2 of 7)toPASS (7 of 7), and lint's pythonand bash FAILs disappear, because the failing commands (
uv run pytest,shfmt -d,ruff format --check,pyright) were removed to mirrorscripts/check-affected.shand CI. Whatthe rules decide:
check-affected.sh:446and:482run neither shfmt nor ruff format nor pyright.What they do not decide: whether the repository should start enforcing any of them.
shfmt -dis no longer a check, yetfix-cmdstill runsshfmt -w, and.editorconfig:44-48configures shfmt style. Two options: drop shfmt fromfix-cmdtoo, or keepshfmt -dincheck-cmd(the baseline shows two of the three fixed-diff scripts fail it). ThisPR keeps the bundled
fix-cmd.package.jsonand the lockfiles, so alockfile-only change (a Dependabot npm bump) no longer selects typescript in
/toolchain:check.This is forced by one
globskey serving both toolchain detection and code-metrics' lane map:keeping the manifests would move them into the code-metrics typescript lane.
biome.jsonisplugins/miro/server/biome.json, so they run only for a change in that package and are inertunder their opt-in everywhere else.
Verification
Fixed diff.
e0f6dedb0e19246f7845ea608a050c72fe74226c..babe1448e10a870bcb7a1adb9b5abf57c38050fc,five merged first-parent commits (#15264, #15267, #15256, #15257, #15258), 22 files: 3
.sh, 1.py,4
.mjs, 4.md, 8.ps1, 2.github/workflows/*.yml. It is the smallest first-parent window inthe last 400 commits that touches every ecosystem the repository lints. It touches no
.csor.gofile; those exist only as plugin test fixtures.
Method. A throwaway local clone (
git clone --shared) with branchfixture-15704atbabe1448,refs/remotes/origin/mainate0f6dedbandrefs/remotes/origin/HEADpointing at it, so theskills' own default-branch detection yields exactly the 22 files. The records were copied in and
kept out of
git statusthrough the clone's.git/info/exclude. Toolchain 1.2.7 was installed,its
reference/identical to main's. Each run's command list is the Bashtool_usecommands thesession transcript recorded between two marker echoes, extracted by script, not the reply text.
Runs: 6 of the issue's budget of 6. Runs 1 and 2 are the baseline (check, lint) with no records.
Runs 3 and 4 were after-runs on the first records; they are superseded because later commits
changed commands. Runs 5 and 6 are the after-runs on the records at
340dd07346and are the onesreported below. No usage-limit error occurred.
Extraction and normalization script (.work/ecosystem-records-15704-extract.py)
.work/ecosystem-records-15704-default-branch.shis the skills' default-branch script verbatim,run from the directory given as its argument (no
cdis allowed in a harness command).Below,
<4 md>stands for$REPO_ROOT/.changes/{machine-health/work-resolve-issue-issue-14646-42956282760-1-0c955190,planning/work-resolve-issue-issue-14679-42955823408-1-a8502c68,ruff-format/work-resolve-issue-issue-14723-42956273815-1-03135800,songwriting/work-resolve-issue-issue-14760-42962469891-1-0765d9a5}.mdand
<3 sh>for$REPO_ROOT/plugins/ruff-format/git-hooks/ruff-check.sh $REPO_ROOT/plugins/ruff-format/hooks/ruff-format.sh $REPO_ROOT/plugins/songwriting/context/pat-pattison/scripts/datamuse.sh;<ls-files probe>isgit -C $REPO_ROOT ls-files ':(glob).claude/ecosystems/*' ':(glob)*.sln' ':(glob)*.slnx' ':(glob)**/go.mod' ':(glob)**/pyproject.toml' ':(glob)**/package.json' ':(glob)**/*.csproj' ':(glob)tsconfig*.json' ':(glob)biome.json*' ':(glob)ruff.toml' ':(glob).ruff.toml' ':(glob)PSScriptAnalyzerSettings.psd1' ':(glob).markdownlint*'and
<lint-config probe>isgit -C $REPO_ROOT ls-files ':(glob).github/**/biome.json*' ':(glob).github/**/eslint.config.*' ':(glob).github/**/.eslintrc*' ':(glob)biome.json*' ':(glob)eslint.config.*' ':(glob).eslintrc*'.Nothing else is abbreviated.
check BEFORE, bundled defaults (32 commands): Overall: FAIL (2 of 7 ecosystems failed, 1 gate passed)
Per ecosystem: dotnet
—(no solution or project in scope), go—(nogo.mod); python Test FAIL,the ruff-pin rule (
.claude/rules/ruff-pin.md) run as a convention gate and passed; typescriptbuild
—, tests pass after the lockfile install (1058, 3 and 431 tests), lint skipped (opt-inunmet); bash Lint FAIL (shfmt); powershell pass; markdown pass.
uv run pytestfailed withFailed to spawn: pytest ... No such file or directory: the repositoryhas no uv project, and pytest is not on PATH here.
check AFTER, records at 340dd07 (20 commands): Overall: PASS (7 of 7 ecosystems passed)
lint BEFORE, bundled defaults (17 commands): Overall: FAIL (3 of 7 ecosystems failed)
FAILs: python (ruff format on the whole tree), bash (shfmt), cross-cutting (typos, gitleaks, ec,
lychee on the whole tree). typescript skipped (opt-in unmet).
lint AFTER, records at 340dd07 (18 commands): Overall: FAIL (1 of 7 ecosystems failed)
The remaining FAIL is cross-cutting, the same whole-tree findings as the baseline. Both pinned
versions matched (
markdownlint-cli2 v0.24.0,zizmor 1.32.0).Diff of the command lists. Every differing line, with its cause. "Record" lines are what the
records change and are intended. "Run noise" lines are not record differences: they come from how
one executor run went (a first-run read, a rejected flag, an install the clone already had), and a
later replay may show or lose them independently of any record.
check (32 commands to 20):
- command -v dotnet,- command -v go- command -v uv,- uv run pytest -x -qtest-cmd: null- bash scripts/run-ruff.sh check <py>/+ $REPO_ROOT/scripts/run-ruff.sh check --force-exclude <py>check-affected.sh's form, instead of a convention gate+ ... bash -c 'test ! -f tsconfig.json || npx tsc --noEmit'(three package roots)- shellcheck -x -S warning <3 sh>,- shfmt -d <3 sh>/+ shellcheck --rcfile "$REPO_ROOT/.shellcheckrc" <3 sh>- npx markdownlint-cli2 <4 md>/+ markdownlint-cli2 --config "$REPO_ROOT/.markdownlint-cli2.jsonc" <4 md>- wc -l <context files>,- node -e ...,- jq -c '{name, scripts}' ...node -efailed on an unrelatedpackage.jsonabove the clone- git ls-files <lockfiles>, the twostatus/diffpairs,- npm ci --ignore-scripts, the first- npm testin resolve-confignode_modulesrun 3 installed, so run 5 found the dependencies present and skipped the lockfile installOveralltextlint (17 commands to 18):
- uv run ruff check . ... && uv run pyright/+ $REPO_ROOT/scripts/run-ruff.sh check --force-exclude <py>- shellcheck -x -S warning ... && shfmt -d .../+ shellcheck --rcfile "$REPO_ROOT/.shellcheckrc" <3 sh>- npx markdownlint-cli2 <4 md>/+ markdownlint-cli2 --config "$REPO_ROOT/.markdownlint-cli2.jsonc" <4 md>+ markdownlint-cli2 --version,+ zizmor --versiontool-pinkeys make lint compare installed versions with the pins- actionlint -chdir $REPO_ROOTactionlintfrom the rootOveralltextEvery other command matches line for line.
Readers, before and after (data: the clone; code: main's plugins; user-global layer pointed at
an empty directory;
.work/ecosystem-records-15704-compare-readers.sh):resolve-config.py --format dispatch-args: before empty; after--lane-globs bash=*.sh,*.bash,--lane-globs dotnet=*.cs,--lane-globs go=*.go,--lane-globs python=*.py,*.pyi,--lane-globs typescript=*.ts,*.tsx,*.mts,*.cts,*.js,*.jsx,*.mjs,*.cjs(intended; each equals the extension map). No
cross-cuttingorotherlane appears.dispatch.sh --all --print-scope: 27,712 rows before and after, 0 rows changed lane(bash 3,476, dotnet 11, go 2, other 22,406, python 575, typescript 1,242). Over the 22 files: identical.
dead-code-scan.sh --lane grepover the 22 files: identical (covered=11 uncovered=5,0 candidates);
dc_lang_of_pathreads no record.resolve-prerequisites.mjs --surface ci-cron, toolchain probe:rung: repo-inferred, path: package.json, detail: ecosystems dir absent; inferred from build filesbecomes
rung: consumer-authored, path: .claude/ecosystems, detail: 9 enabled ecosystem file(s)(intended);
result: presentboth times.The readers ran on the records at
cecf30f162. Later commits changed noglobsorenabledkey,the only keys code-metrics reads (contract README "Consumers"), and added no team file, so these
outputs hold for
340dd07346.Schema. All nine files pass
check-jsonschema --schemafile docs/contracts/ecosystem-commands/ecosystem.schema.json(0.39.0), and pass again with top-level
additionalPropertiesforced false. The five code-metricslane files parse with
plugins/code-metrics/scripts/yaml_subset.py.typosis clean;scripts/check-changelog-fragments.sh --check-required origin/mainrequires no fragment.Dogfooding step. This is the reintegration step for the toolchain plugin in this repository:
the repository consumes the published plugin through its documented extension point, the
consumer's
.claude/ecosystems/records, instead of the plugin's bundled defaults(
docs/migration-playbook.md:976-981, "Reintegration: a consumer adopts the published plugin").Done when.
.claude/ecosystems/holds one record for each of the seven ecosystems thebaseline check ran and for the two lint-only surfaces, and each validates against the schema.
lines intended, run-noise lines explained.
probe's rung change is listed as intended.
git diff --stat origin/main...HEADlists only the nine.claude/ecosystems/*.yamlfiles.Replaying the baseline. Build the clone the same way, re-run
/toolchain:check alland/toolchain:linton it, extract with the script above, and diff against the AFTER lists. Expectthe record lines to match. Run-noise lines may differ from run to run: a first-run read, a
dependency install the clone does or does not already have, a retried flag. Classify each such
line as above before reading it as a record change.
Related
scripts/affected-tests.sh:1712-1716says the Python suites run underpython -m unittest; CI runs them under the pinned pytest (pr-require-checks.yml:3977-3979).docs/contracts/ecosystem-commands/README.md:120-122recommendscheck-jsonschema --no-additional-properties, an option check-jsonschema 0.39.0 does not have.🤖 Generated with Claude Code
https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc