Skip to content

feat(ecosystems): add this repository's ecosystem records and the command-list baseline - #15927

Merged
kyle-sexton merged 5 commits into
mainfrom
feat/ecosystem-records-15704
Nov 13, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
feat/ecosystem-records-15704

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

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:check and /toolchain:lint cover:
.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):

Ecosystem Difference from the bundled default Basis
python check-cmd is $REPO_ROOT/scripts/run-ruff.sh check --force-exclude <files>; it drops uv run ruff format . --check and uv run pyright .claude/rules/ruff-pin.md:9-11; scripts/check-affected.sh:482 runs only ruff check, through the wrapper
python fix-cmd and code-fix-cmd go through the same wrapper .claude/rules/ruff-pin.md:9-11
python test-cmd: null (bundled uv run pytest -x -q) CI runs each selected Python suite module in its own process under the pinned pytest, because suites in different directories import same-named helpers and a shared process hands each the first one loaded (.github/workflows/pr-require-checks.yml:3836-3842, the per-module loop at :3977-3979, pytest==9.2.0 at .github/requirements-ci.txt:17); no single command reproduces that
python project-discovery dropped; globs *.py, *.pyi (bundled adds pyproject.toml, uv.lock, pyrightconfig.json); opt-in names ruff.toml only the repository has no pyproject.toml; globs equal code-metrics' map (plugins/code-metrics/scripts/detect-lanes.sh:41-50)
bash check-cmd is shellcheck --rcfile "$REPO_ROOT/.shellcheckrc" <files>; drops -x -S warning and shfmt -d <files> scripts/check-affected.sh:446; CI lint-shell passes rcfile: .shellcheckrc (.github/workflows/pr-require-checks.yml:2369-2374); .shellcheckrc:16 sets external-sources=true (the -x equivalent); no CI job runs shfmt -d (CI installs shfmt only for --to-json parsing, pr-require-checks.yml:2894, :3609-3610)
bash opt-in text drops the shfmt clause follows the check-cmd
markdown check-cmd and fix-cmd call markdownlint-cli2 --config "$REPO_ROOT/.markdownlint-cli2.jsonc" from PATH (bundled npx markdownlint-cli2); tool-pin markdownlint-cli2: 0.24.0; install hint names that version scripts/check-affected.sh:395 probes command -v markdownlint-cli2 and :437-438 runs it with that config; package.json:17 pins 0.24.0; the baseline's npx fetched an unpinned 0.24.1
typescript build-cmd is test ! -f tsconfig.json || npx tsc --noEmit (bundled npx tsc --noEmit with the condition in a comment) build runs once per package.json directory; 9 tsconfig.json files are tracked and 3 sit beside a package.json (plugins/miro/server and the two plugins/knowledge extraction 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)
typescript test-cmd: npm run test --if-present (bundled names "the package.json test script") each package's own script: 51 node --test, 2 vitest run, 1 vitest run --coverage --typecheck, 15 none; --if-present keeps 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 show npm 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 script
typescript globs drop package.json, the four lockfile names and tsconfig*.json; adds *.mts, *.cts, *.cjs globs equal code-metrics' map
typescript opt-in names biome.json only (bundled also names an eslint config) no eslint config in the repository
dotnet no commands (bundled build/test/format against a solution); globs *.cs only; no anchor, opt-in or install hint no solution, project or .editorconfig C# style of the repository's own; its .cs files are plugin test fixtures
go no commands, no gate; globs *.go (bundled adds go.mod, go.sum); no project-discovery no go.mod; the two .go files are plugin test fixtures
powershell opt-in text "PowerShell files present and pwsh available" (bundled names PSScriptAnalyzerSettings.psd1 as the first condition) no PSScriptAnalyzerSettings.psd1 in the repository; commands unchanged
yaml check-cmd names actionlint and zizmor --offline <files> (bundled: actionlint plus two comments); tool-pin zizmor: 1.32.0; install hint pins it; check-jsonschema line dropped CI runs zizmor at zizmor==1.32.0 (.github/requirements-ci.txt:176, scripts/check-affected-gates.txt zizmor ci-only)
cross-cutting opt-in text names .editorconfig (bundled .editorconfig-checker.json / .editorconfig); commands unchanged no .editorconfig-checker.json in the repository

$REPO_ROOT is the contract's documented repository-root placeholder
(docs/contracts/ecosystem-commands/README.md:111), so the python, bash and markdown commands no
longer depend on the working directory.

Commits:

  • 2dc4c30d62bf60ac9f7699e9d825100285cd66d0 the nine records.
  • cecf30f16292aabe122b421454296a8f87856977 .NET and Go stay on with no commands. The first
    commit's message says they were turned off; this commit reverses that, because enabled: false
    dropped 13 fixture files from code-metrics' dotnet and go lanes.
  • 0a2d2a015ea91d0922294e8c646d82090e744219 keep the tsc build step; correct the Python note.
  • 340dd073461fc19d85904cfa4f2fba9ad6190430 $REPO_ROOT paths, the true Python test note, the tsconfig guard, the two tool pins.

Choices for the owner

  • (a) Python tests leave /toolchain:check. The Test cell is —, so check reports PASS for
    Python 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 single test-cmd reproduces. What they do not
    decide: whether check should run something partial instead (for example
    scripts/affected-tests.sh, which selects Python suites but does not run them).
  • (b) The verdicts change. check goes from FAIL (2 of 7) to PASS (7 of 7), and lint's python
    and bash FAILs disappear, because the failing commands (uv run pytest, shfmt -d,
    ruff format --check, pyright) were removed to mirror scripts/check-affected.sh and CI. What
    the rules decide: check-affected.sh:446 and :482 run neither shfmt nor ruff format nor pyright.
    What they do not decide: whether the repository should start enforcing any of them.
  • (c) shfmt. shfmt -d is no longer a check, yet fix-cmd still runs shfmt -w, and
    .editorconfig:44-48 configures shfmt style. Two options: drop shfmt from fix-cmd too, or keep
    shfmt -d in check-cmd (the baseline shows two of the three fixed-diff scripts fail it). This
    PR keeps the bundled fix-cmd.
  • (d) TypeScript globs. They no longer include package.json and the lockfiles, so a
    lockfile-only change (a Dependabot npm bump) no longer selects typescript in /toolchain:check.
    This is forced by one globs key serving both toolchain detection and code-metrics' lane map:
    keeping the manifests would move them into the code-metrics typescript lane.
  • (e) Biome. The Biome commands equal the bundled default. The only biome.json is
    plugins/miro/server/biome.json, so they run only for a change in that package and are inert
    under 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 in
the last 400 commits that touches every ecosystem the repository lints. It touches no .cs or .go
file; those exist only as plugin test fixtures.

Method. A throwaway local clone (git clone --shared) with branch fixture-15704 at babe1448,
refs/remotes/origin/main at e0f6dedb and refs/remotes/origin/HEAD pointing at it, so the
skills' own default-branch detection yields exactly the 22 files. The records were copied in and
kept out of git status through 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 Bash tool_use commands the
session 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 340dd07346 and are the ones
reported below. No usage-limit error occurred.

Extraction and normalization script (.work/ecosystem-records-15704-extract.py)
#!/usr/bin/env python3
"""Print the Bash commands a session transcript recorded between two marker echoes.

    extract.py <transcript.jsonl> <begin-marker> <end-marker> <fixture-root>

Normalization, applied the same way to every run:
- the fixture's absolute path becomes $REPO_ROOT;
- a leading `timeout <n> ` and `env -C $REPO_ROOT ` are dropped (harness
  shape: no cd is allowed, so a working directory is passed this way);
- `--prefix`, `--directory` and `-WorkingDirectory` pointing into the fixture
  (the same working-directory pinning) become `[cwd=<dir>]`;
- calls that are not part of the skill run are left out: the marker echoes and
  reads of and waits on saved tool output (tool-results/ or tasks/ files), any
  read of the session transcript store (~/.claude/projects/), `date`, and any
  call against the branch worktree rather than the fixture (record authoring
  and PR evidence gathered while a background step ran).
"""
import json
import re
import sys

path, begin, end, root = sys.argv[1:5]
cmds = []
seen = set()
inside = False
with open(path, encoding="utf-8") as fh:
    for line in fh:
        try:
            rec = json.loads(line)
        except json.JSONDecodeError:
            continue
        content = (rec.get("message") or {}).get("content")
        if not isinstance(content, list):
            continue
        for part in content:
            if not isinstance(part, dict) or part.get("type") != "tool_use" or part.get("name") != "Bash":
                continue
            if part.get("id") in seen:
                continue
            seen.add(part.get("id"))
            cmd = (part.get("input") or {}).get("command", "")
            if cmd.strip() == f"echo {begin}":
                inside, cmds = True, []
                continue
            if cmd.strip() == f"echo {end}":
                inside = False
                continue
            if inside:
                cmds.append(cmd)

out = []
for cmd in cmds:
    if "/tool-results/" in cmd or "/tasks/" in cmd or "/.claude/projects/" in cmd:
        continue
    c = cmd.replace(root, "$REPO_ROOT")
    if c.strip() == "date" or re.search(r"/worktrees/ecosystem-records-15704(?!/\.work/ecosystem-records-15704-default-branch\.sh)", c):
        continue
    c = re.sub(r"^timeout \d+ ", "", c)
    c = re.sub(r" && timeout \d+ ", " && ", c)
    c = c.replace("env -C $REPO_ROOT ", "")
    c = re.sub(r" (--prefix|--directory|-WorkingDirectory) \$REPO_ROOT(/\S*)?", lambda m: f" [cwd=$REPO_ROOT{m.group(2) or ''}]", c)
    out.append(c)
print("\n".join(out))

.work/ecosystem-records-15704-default-branch.sh is the skills' default-branch script verbatim,
run from the directory given as its argument (no cd is 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}.md
and <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> is
git -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> is
git -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)
git -C $REPO_ROOT status --porcelain
git -C $REPO_ROOT branch --show-current
git -C $REPO_ROOT rev-parse --show-toplevel
bash .work/ecosystem-records-15704-default-branch.sh $REPO_ROOT
<ls-files probe>
wc -l <toolchain 1.2.7>/skills/check/context/{typescript,python,bash,powershell}.md
command -v dotnet
command -v go
command -v uv
uv run [cwd=$REPO_ROOT] pytest -x -q
bash $REPO_ROOT/scripts/run-ruff.sh check $REPO_ROOT/plugins/planning/shared/session.py
node -e 'for (const d of process.argv.slice(1)) { const p=require(d+"/package.json"); console.log(d, JSON.stringify(p.scripts||{})); }' $REPO_ROOT/.github/actions/resolve-config $REPO_ROOT/.github/scripts/pr-run-activity-read $REPO_ROOT/.github/scripts/work-unblock
jq -c '{name, scripts}' $REPO_ROOT/.github/actions/resolve-config/package.json $REPO_ROOT/.github/scripts/pr-run-activity-read/package.json $REPO_ROOT/.github/scripts/work-unblock/package.json
command -v npx
npm test [cwd=$REPO_ROOT/.github/actions/resolve-config]
git -C $REPO_ROOT ls-files .github/actions/resolve-config/package-lock.json .github/scripts/pr-run-activity-read/package-lock.json .github/scripts/work-unblock/package-lock.json
git -C $REPO_ROOT status --porcelain
git -C $REPO_ROOT diff HEAD --binary --no-color --stat
npm ci --ignore-scripts [cwd=$REPO_ROOT/.github/actions/resolve-config]
git -C $REPO_ROOT status --porcelain
git -C $REPO_ROOT diff HEAD --binary --no-color --stat
npm test [cwd=$REPO_ROOT/.github/actions/resolve-config]
npm test [cwd=$REPO_ROOT/.github/scripts/pr-run-activity-read]
npm test [cwd=$REPO_ROOT/.github/scripts/work-unblock]
<lint-config probe>
command -v shellcheck
shellcheck -x -S warning <3 sh>
shfmt -d <3 sh>
command -v pwsh
pwsh -NoProfile [cwd=$REPO_ROOT] -Command 'Invoke-ScriptAnalyzer -Path . -Recurse'
npx [cwd=$REPO_ROOT] markdownlint-cli2 <4 md>
node "<toolchain 1.2.7>/scripts/record-result.mjs" --skill check --dir "$REPO_ROOT" --overall 'Overall: FAIL (2 of 7 ecosystems failed, 1 gate passed)'

Per ecosystem: dotnet — (no solution or project in scope), go — (no go.mod); python Test FAIL,
the ruff-pin rule (.claude/rules/ruff-pin.md) run as a convention gate and passed; typescript
build —, tests pass after the lockfile install (1058, 3 and 431 tests), lint skipped (opt-in
unmet); bash Lint FAIL (shfmt); powershell pass; markdown pass.
uv run pytest failed with Failed to spawn: pytest ... No such file or directory: the repository
has no uv project, and pytest is not on PATH here.

check AFTER, records at 340dd07 (20 commands): Overall: PASS (7 of 7 ecosystems passed)
git -C $REPO_ROOT status --porcelain
git -C $REPO_ROOT branch --show-current
git -C $REPO_ROOT rev-parse --show-toplevel
bash .work/ecosystem-records-15704-default-branch.sh $REPO_ROOT
<ls-files probe>
$REPO_ROOT/scripts/run-ruff.sh check --force-exclude $REPO_ROOT/plugins/planning/shared/session.py
command -v npx
env -C $REPO_ROOT/.github/actions/resolve-config bash -c 'test ! -f tsconfig.json || npx tsc --noEmit'
npm test [cwd=$REPO_ROOT/.github/actions/resolve-config]
env -C $REPO_ROOT/.github/scripts/pr-run-activity-read bash -c 'test ! -f tsconfig.json || npx tsc --noEmit'
npm test [cwd=$REPO_ROOT/.github/scripts/pr-run-activity-read]
env -C $REPO_ROOT/.github/scripts/work-unblock bash -c 'test ! -f tsconfig.json || npx tsc --noEmit'
npm test [cwd=$REPO_ROOT/.github/scripts/work-unblock]
<lint-config probe>
command -v shellcheck
shellcheck --rcfile "$REPO_ROOT/.shellcheckrc" <3 sh>
command -v pwsh
pwsh -NoProfile [cwd=$REPO_ROOT] -Command 'Invoke-ScriptAnalyzer -Path . -Recurse'
markdownlint-cli2 --config "$REPO_ROOT/.markdownlint-cli2.jsonc" <4 md>
node "<toolchain 1.2.7>/scripts/record-result.mjs" --skill check --dir "$REPO_ROOT" --overall 'Overall: PASS (7 of 7 ecosystems passed)'
lint BEFORE, bundled defaults (17 commands): Overall: FAIL (3 of 7 ecosystems failed)
git -C $REPO_ROOT status --porcelain
git -C $REPO_ROOT branch --show-current
git -C $REPO_ROOT rev-parse --show-toplevel
bash .work/ecosystem-records-15704-default-branch.sh $REPO_ROOT
uv run [cwd=$REPO_ROOT] ruff check . --no-fix && uv run [cwd=$REPO_ROOT] ruff format . --check && uv run [cwd=$REPO_ROOT] pyright
shellcheck -x -S warning <3 sh> && shfmt -d <3 sh>
pwsh -NoProfile [cwd=$REPO_ROOT] -Command 'Invoke-ScriptAnalyzer -Path . -Recurse'
npx [cwd=$REPO_ROOT] markdownlint-cli2 <4 md>
command -v actionlint
actionlint -chdir $REPO_ROOT
actionlint
zizmor --offline $REPO_ROOT/.github/workflows/pr-run-activity-read.yml $REPO_ROOT/.github/workflows/work-resolve-issue.yml
typos
gitleaks detect --source $REPO_ROOT --redact --no-banner --no-git
ec
lychee --offline --no-progress './**/*.md'
node "<toolchain 1.2.7>/scripts/record-result.mjs" --skill lint --dir "$REPO_ROOT" --overall '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)
git -C $REPO_ROOT status --porcelain
git -C $REPO_ROOT branch --show-current
git -C $REPO_ROOT rev-parse --show-toplevel
bash .work/ecosystem-records-15704-default-branch.sh $REPO_ROOT
$REPO_ROOT/scripts/run-ruff.sh check --force-exclude $REPO_ROOT/plugins/planning/shared/session.py
shellcheck --rcfile "$REPO_ROOT/.shellcheckrc" <3 sh>
pwsh -NoProfile [cwd=$REPO_ROOT] -Command 'Invoke-ScriptAnalyzer -Path . -Recurse'
markdownlint-cli2 --version
markdownlint-cli2 --config "$REPO_ROOT/.markdownlint-cli2.jsonc" <4 md>
command -v actionlint
actionlint
zizmor --version
zizmor --offline $REPO_ROOT/.github/workflows/pr-run-activity-read.yml $REPO_ROOT/.github/workflows/work-resolve-issue.yml
typos
gitleaks detect --source $REPO_ROOT --redact --no-banner --no-git
ec
lychee --offline --no-progress './**/*.md'
node "<toolchain 1.2.7>/scripts/record-result.mjs" --skill lint --dir "$REPO_ROOT" --overall '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):

Line Cause
- command -v dotnet, - command -v go record: dotnet and go have no command to run, so nothing is probed
- command -v uv, - uv run pytest -x -q record: python test-cmd: null
- bash scripts/run-ruff.sh check <py> / + $REPO_ROOT/scripts/run-ruff.sh check --force-exclude <py> record: the ruff-pin rule is now the lint command, in check-affected.sh's form, instead of a convention gate
+ ... bash -c 'test ! -f tsconfig.json || npx tsc --noEmit' (three package roots) record: the guarded build step runs per package and is a no-op without a tsconfig
- shellcheck -x -S warning <3 sh>, - shfmt -d <3 sh> / + shellcheck --rcfile "$REPO_ROOT/.shellcheckrc" <3 sh> record: bash; severity is now the rcfile's, so style findings also report
- npx markdownlint-cli2 <4 md> / + markdownlint-cli2 --config "$REPO_ROOT/.markdownlint-cli2.jsonc" <4 md> record: markdown
- wc -l <context files>, - node -e ..., - jq -c '{name, scripts}' ... run noise: first-run reads of the skill's context files and of each package's test script; the node -e failed on an unrelated package.json above the clone
- git ls-files <lockfiles>, the two status/diff pairs, - npm ci --ignore-scripts, the first - npm test in resolve-config run noise: the clone kept the node_modules run 3 installed, so run 5 found the dependencies present and skipped the lockfile install
record-result Overall text the run's result line

lint (17 commands to 18):

Line Cause
python - uv run ruff check . ... && uv run pyright / + $REPO_ROOT/scripts/run-ruff.sh check --force-exclude <py> record: python
bash - shellcheck -x -S warning ... && shfmt -d ... / + shellcheck --rcfile "$REPO_ROOT/.shellcheckrc" <3 sh> record: bash
markdown - npx markdownlint-cli2 <4 md> / + markdownlint-cli2 --config "$REPO_ROOT/.markdownlint-cli2.jsonc" <4 md> record: markdown
+ markdownlint-cli2 --version, + zizmor --version record: the tool-pin keys make lint compare installed versions with the pins
- actionlint -chdir $REPO_ROOT run noise: a rejected flag in the baseline, retried as actionlint from the root
record-result Overall text the run's result line

Every 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):

  • code-metrics 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-cutting or other lane appears.
  • code-metrics 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 dead-code-scan.sh --lane grep over the 22 files: identical (covered=11 uncovered=5,
    0 candidates); dc_lang_of_path reads no record.
  • autonomy resolve-prerequisites.mjs --surface ci-cron, toolchain probe:
    rung: repo-inferred, path: package.json, detail: ecosystems dir absent; inferred from build files
    becomes rung: consumer-authored, path: .claude/ecosystems, detail: 9 enabled ecosystem file(s)
    (intended); result: present both times.

The readers ran on the records at cecf30f162. Later commits changed no globs or enabled key,
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 additionalProperties forced false. The five code-metrics
lane files parse with plugins/code-metrics/scripts/yaml_subset.py. typos is clean;
scripts/check-changelog-fragments.sh --check-required origin/main requires 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.

  • AC11 (first half): .claude/ecosystems/ holds one record for each of the seven ecosystems the
    baseline check ran and for the two lint-only surfaces, and each validates against the schema.
  • The diff of the before and after command lists prints only the lines listed above: record
    lines intended, run-noise lines explained.
  • The code-metrics lane list and the dead-code classification are unchanged; the autonomy
    probe's rung change is listed as intended.
  • This body holds both SHAs, the baseline lists, and names the dogfooding step.
  • AC7: no skill text is cut; git diff --stat origin/main...HEAD lists only the nine
    .claude/ecosystems/*.yaml files.
  • AC10: no enforcement-placing skill is added (same diff).

Replaying the baseline. Build the clone the same way, re-run /toolchain:check all and
/toolchain:lint on it, extract with the script above, and diff against the AFTER lists. Expect
the 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

🤖 Generated with Claude Code

https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc

kyle-sexton and others added 4 commits November 13, 2026 01:33
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
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 13, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T10:02:32.190564Z 340dd07 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread .claude/ecosystems/typescript.yaml Resolved
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed acc176e46d04ad154e0c6a8ae0dec63280528c49: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

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 340dd073. One file changed since then: .claude/ecosystems/typescript.yaml. I read its whole change. The file matches the trusted-path glob **/.claude/**, so it got the extra scrutiny.

What changed and what it gates.

  • test-cmd: changes from npm test to npm run test --if-present. Both forms run the same package test script, with the same pretest/posttest lifecycle hooks. --if-present only makes a package with no test script a no-op instead of a failure. That runs less than before, never more.
  • No new input source. No new command text and no new placeholder can reach a shell.
  • notes: the prose was rewritten to explain where type-checking and tests actually run. Nothing executes or enforces this text.
  • Where these commands run. As the prior review found, the records feed the /toolchain:check and /toolchain:lint skills in a developer's local session. Nothing under .github/ runs these commands in a lane that holds credentials, so the change reaches no CI trust boundary.

Trust controls. No trusted-actor list, token request, kill switch, merge hold, plugin manifest, userConfig key or standing instruction changed.

PR context. It describes this change accurately, and I found no embedded instructions aimed at the review.

Spend. None.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on 340dd073461fc19d85904cfa4f2fba9ad6190430; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread .claude/ecosystems/typescript.yaml Resolved
Comment thread .claude/ecosystems/typescript.yaml Resolved
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed acc176e46d04ad154e0c6a8ae0dec63280528c49: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review, incremental (340dd07 → acc176e): blocking findings only

I read the whole change in .claude/ecosystems/typescript.yaml, the only file in this incremental scope. This lane already reviewed an earlier head, so this pass reports blocking findings only.

What changed

  • test-cmd changed from npm test to npm run test --if-present. When a package has no test script, npm exits 0. That covers the root package.json, which has no scripts block, so a change under lib/ or scripts/ no longer gets a false FAIL in the Test cell. In a package that has a test script, the same script runs as before. This fixes my earlier inline finding (discussion_r4561992775).
  • notes now names the three packages the build step type-checks: plugins/miro/server and the two plugins/knowledge extraction packages. It says the six plugin-root tsconfig.json files resolve to the root package, where nothing is type-checked, and that the root package has no test script. This matches what the earlier finding (discussion_r4561992787) counted, so that finding is fixed.

Both threads are settled by owner replies that state the fix (lines changed since resolution: no). I found no new problem on these lines.

Findings: none blocking.

Not raised again this round

  • My earlier summary finding that AC11 is met but nothing tests it was advisory. It still applies: no check validates .claude/ecosystems/*.yaml against the schema. Blocking-only mode drops it here.
  • With --if-present, the node --test suites under lib/ and scripts/ are not run by /toolchain:check. The new note says so, and it is the owner's call along with the other owner choices in the PR body.

Closing issue #15704

  • The PR body says the AFTER command lists were recorded before this test-cmd change and were not re-recorded because the 6-run budget is spent. The body says that for the three packages in the fixed diff, which all have a test script, both forms run the same script. That claim is the author's; I did not re-run anything.

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
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 13, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

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 main:

  • (a) Python tests: the repository has no pyproject.toml or uv.lock, so the bundled uv run pytest never ran here (the baseline shows it failing to spawn). test-cmd: null loses no test run.
  • (b), (c) scripts/check-affected.sh runs shellcheck --rcfile .shellcheckrc (:446) and scripts/run-ruff.sh check --force-exclude (:482) and no shfmt, ruff format or pyright; .github/workflows/pr-require-checks.yml has no shfmt -d, ruff format or pyright step. The records mirror that. Starting to enforce any of them is new work, not this item.
  • (d), (e) follow from the one globs key the schema gives and from the only biome.json in the tree, as the body states.

Nothing here changes a gate: the pre-push check and CI are untouched.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit a0cabd7 Nov 13, 2026
115 of 123 checks passed
@kyle-sexton
kyle-sexton deleted the feat/ecosystem-records-15704 branch November 13, 2026 11:33
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write this repository's ecosystem records and capture the command-list baseline

1 participant