Skip to content

fix(code-tidying): cut ecosystem-specific examples from the tidy lane templates - #17932

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-17760-44901838474-1
Nov 21, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-17760-44901838474-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17760

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Part 4 of 5 of #16756: the four /code-tidying:tidy lane templates drop their .NET, JavaScript, Python and Rust examples, and every placeholder stays for the consumer to fill from their own repository. Row count: 4. Rows: F0123 (R11, CUT: the <core-package>.Tests glob became <core-package-tests>; the # e.g. dotnet/npm/cargo build|test and dotnet format / npx biomejs/biome check comments were deleted), F0124 (R11, CUT: the ruff F401/F841, biome unused-import parenthetical, the TypeScript/Python service comments, the Promise→async/await and os.path→pathlib idiom examples, and the npx biomejs/biome check && npm test / ruff check . && pytest comments were deleted), F0125 (R11, CUT: <app-name>.Tests/** became <app-tests>/**; the **/*.razor, **/components/** examples after <ui-glob> were deleted), F0126 (R11, CUT: "one extension method" became "one shared helper"). No row was GONE and none is R8, so no row is pending a measured case. Lines 24-25 of dependency-root, cited in F0123, now read as generic <language-modernization-pattern> / <analyzer-driven-pattern> placeholders with no ecosystem named, so they were left unchanged. Script readers: none. The search was rg -n 'lane\.template|tidy/templates' across the repo, plus rg 'template\.md|tidy-lanes' over plugins/code-tidying/**/.{sh,py,mjs,js,ts,ps1,json,yaml,yml}. The only hits are model-read prose (tidy/SKILL.md:111,127-130,139; setup/SKILL.md:28,112-130,259; README.md:97) and eval text that names template files or their directory without quoting their contents (setup/evals/evals.json:32; evals/su-check-no-lanes/case.yaml:5,27, which match only the names host-wiring and polyglot-services). No script reads or renders a template. Outside plugins/code-tidying, nothing references -lane.template. Eval case that reads the cut text: none. No tidy or setup eval case scaffolds from a template or quotes its examples; the ruff/pytest strings in evals/fixtures/su- belong to those fixtures' own lane files. Whole page or part: each of the four templates is a partial cut, and no page is deleted. AC10: no skill is added. Design choice: R11 says to delete with no replacement except at a routing site, so example comments and parentheticals were deleted outright. Only the .Tests globs and the "extension method" phrase got neutral wording, because deleting them would have left a broken glob or sentence.

Not verified

  • tidy: passes 1-3 had nothing to do (all-markdown change) and pass 4 found nothing to cut. Pass 5 (ai-slop) ran its rubric by reading the fragment and found nothing, but its detect.sh detector was not run, because this lane's Bash runs only named wrappers
  • verify: no build or test applies to these markdown templates; the PR's CI runs the suites and markdownlint (check-changed-skills skipped markdownlint here)
  • Reviewer note left out of scope: host-wiring and apps templates still use wording the reviewer called stack-flavored ("service defaults", "connection-string keys", "DTO", "logging template constants"). These are not in this part's row table (#16756 owns other rows)
  • Reviewer suggestion not taken: give polyglot line 16 ("linters surface candidates") a placeholder. R11 deletes model-read specifics with no replacement outside a routing site
  • Host-session eval hold (do-not-merge, targeted sonnet case) is the host's step after the PR opens, not this lane's

Fix

  • plugins/code-tidying/skills/tidy/templates/dependency-root-lane.template.md: tests glob placeholder made neutral; dotnet/npm/cargo/biome example comments on the build, test and lint commands deleted (F0123)
  • plugins/code-tidying/skills/tidy/templates/polyglot-services-lane.template.md: TypeScript/Python scope comments, ruff/biome rule names, Promise and os.path idiom examples, and biome/npm/ruff/pytest command comments deleted (F0124)
  • plugins/code-tidying/skills/tidy/templates/apps-lane.template.md: .Tests glob made a neutral <app-tests> placeholder; .razor/components examples after <ui-glob> deleted (F0125)
  • plugins/code-tidying/skills/tidy/templates/host-wiring-lane.template.md: "one extension method" became "one shared helper" (F0126)
  • .changes/code-tidying/work-resolve-issue-issue-17760-44901838474-1-4f71d56b.md: new patch changelog fragment describing the cut

Verification

The runner ran each check from the base copy against 7caa978:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 2 fragments valid (run before and after tidy, and after the review fix)
  • check-changed-skills: CHECK-SKILL tidy PASS, 0 errors, 4 warnings, all already present in tidy/SKILL.md, which this change does not touch
  • check-affected: 14 passed, 9 skipped over 5 changed files; no failures
  • script-reader search (Grep lane\.template|tidy/templates repo-wide, and template\.md|tidy-lanes over code-tidying scripts/json/yaml): no script reads or renders the templates
  • eval search (Grep template over plugins/code-tidying/evals/*.yaml, read su-check-no-lanes/case.yaml): no eval case reads the cut text
  • fresh-context review subagent over the diff: no blocking findings; one confirmed changelog omission fixed, two speculative notes left as out of scope (see not_done)
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44901838474

Left out: the items under Not verified.

Related

#17760

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes melodic-automation-lanes Bot added the do-not-merge Hard merge gate: do not merge while applied. label Nov 21, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Held for the before-and-after eval that cut item #17760 needs. The pr-merge release step lifts this hold when an eval-pair record exists for the current head.

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #17932 (head 7caa978)

No findings. I read every hunk of all 5 changed files: the 4 tidy lane templates and the changelog fragment.

What changed. The change edits markdown only. It removes the .NET, JavaScript, Python and Rust examples from the four /code-tidying:tidy lane templates. Each placeholder is still there:

  • The .Tests globs are now neutral placeholders: <core-package-tests> and <app-tests>.
  • "extension method" now reads "shared helper".
  • The example comments and parentheticals are deleted.

No glob, sentence or code fence is left broken. A grep of plugins/code-tidying found none of the cut .Tests, .razor or "extension method" text left in the templates.

Closing issue #17760, checked against its "Done when" list:

  • All 4 rows (F0123 to F0126) now hold neutral placeholder text or are deleted. Lines 24-25 of dependency-root-lane.template.md, cited in F0123, were already generic placeholders with no ecosystem named, as the PR body says.
  • The PR body states the row count (4) and gives each row's id, rule and outcome.
  • It quotes the script-reader search and names the eval case that reads the cut text ("none").
  • It says each of the four files is a partial cut.
  • It adds no new skill (AC10).

Those PR-body items are text checks. No test could fail on them, which fits a markdown-only cut. The searches and check runs the PR describes are the author's own claims; I did not run them.

Changelog fragment. A bump: patch fragment suits a markdown-template wording change. No plugin.json or marketplace.json changed, so there are no manifest lines.

Loosened checks. The change loosens no check. The prompt had no loosened_check_verdict:, loosened_check_patterns: or loosened_check_decision_record: line, so the review used fail with no consumer entries and did not check the citation requirement. Loosened checks would be marked: fail (default); patterns: 0.

Not in scope. The closing issue says the pull request stays held for a host-session eval (do-not-merge plus an eval-pair record). That step belongs to the host session, not to this review.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #17932

No security issues found.

I read all 5 changed files in the diff:

  • Four /code-tidying:tidy lane templates (apps, dependency-root, host-wiring, polyglot-services): the change removes example comments and parentheticals that name specific tools (dotnet, npm, cargo, biome, ruff, pytest, TypeScript/Python examples, .razor/components globs). It also renames two scope-glob placeholders (<app-name>.Tests becomes <app-tests>, <core-package>.Tests becomes <core-package-tests>) and changes "extension method" to "shared helper". These are templates the model reads as prose. They contain no executable code, hooks, permissions or credentials.
  • .changes/code-tidying/...4f71d56b.md: a new changelog fragment with a patch bump. It is prose only.

Instruction-surface check: I checked the removed text as a possible guardrail deletion. Every removed line was an illustrative example. None forbade or gated an action, and every exclusion rule is unchanged. That includes the SOFT deferral for browser-rendered UI, the auth-wiring deferral, the HTTP-route exclusion and the "only when call sites are truly identical" condition. No protected class is affected.

None of the changed files matches a trusted path. No plugin manifest, trust control, merge hold, token scope or workflow is touched, so there are no manifest lines. The PR context file contains no embedded directives addressed to this lane.

critical-findings: 0

@kyle-sexton

Copy link
Copy Markdown
Member

Targeted eval result: PASS

One targeted case per changed skill, run on the old text (before) and the new text (after), on sonnet at 3 runs a side, Claude Code 2.1.330 (Claude Code).

What this gate checks: that the new text does no worse than the old on these cases. By the owner's decision of 2026-11-17 the gate is this no-loss compare alone. There is no wrong-text side, so this case set has not been shown to detect wrong text: a PASS says the cases did not get worse, not that they would have noticed a bad edit.

Scope: pure cut of examples (four R11 rows, no R8 row): example comments, tool names and idiom examples deleted from the four tidy lane templates; two .Tests globs and one phrase reworded to neutral placeholders. Measured by p17932-se-lane-drafts: F0123 (dependency-root tests glob; core-tests-glob), F0124 (polyglot-services examples; services-verify, services-template), F0125 (apps ui-glob examples; ui-defer reads the kept SOFT rule), F0126 (host-wiring extension method to shared helper; registration-helper). Whether BEFORE drafts copy the cut examples is not graded.

  • New case p17932-se-lane-drafts: no setup or tidy case reads the lane templates (the PR body's own search), so a rules-only setup apply question was written: a Kotlin monorepo with a core library, a web app, three hosts and Go and Ruby services, asking for the drafts before any write, with a small scaffold holding that layout and a CLAUDE.md naming the commands; the prompt skips check's probes, git-hook steps and settings script (shell commands naming the plugin folder); five regex graders, no llm grader, no Skill grader (slash prompt loads the skill, R105).

  • Loss-capable graders: core-tests-glob (F0123), services-verify and services-template (F0124), ui-defer (F0125), registration-helper (F0126).

  • Control result (the issue's acceptance item): not run: the owner's decision of 2026-11-17 gates cut pull requests on the no-loss compare alone.

  • Before: 08a8c5498cd37f5e210697b4dac9a06fe48a6e01 (merge base with main)

  • After: 7caa97831ab092ee3453e633e4b96d291ba144e2 (pull request head; live head when this was written: 7caa97831ab092ee3453e633e4b96d291ba144e2)

  • Loss: the mean case score falls by 0.15 or more, or any one grader passes in 2 or more fewer after runs than before runs.

Passing runs per grader, per side:

Case Grader Before After
p17932-se-lane-drafts core-tests-glob 3/3 3/3
p17932-se-lane-drafts ui-defer 3/3 3/3
p17932-se-lane-drafts registration-helper 3/3 3/3
p17932-se-lane-drafts services-verify 3/3 3/3
p17932-se-lane-drafts services-template 3/3 3/3
p17932-se-lane-drafts mean case score 1.000 1.000

Graders that cannot show a loss, because they failed on the old text in every run:

  • none: every grader passed in at least one run on the old text

Changed files the compare runs opened, per case and side:

  • p17932-se-lane-drafts before: opened skills/tidy/templates/apps-lane.template.md in 3 of 3 runs; opened skills/tidy/templates/dependency-root-lane.template.md in 3 of 3 runs; opened skills/tidy/templates/host-wiring-lane.template.md in 3 of 3 runs; opened skills/tidy/templates/polyglot-services-lane.template.md in 3 of 3 runs
  • p17932-se-lane-drafts after: opened skills/tidy/templates/apps-lane.template.md in 3 of 3 runs; opened skills/tidy/templates/dependency-root-lane.template.md in 3 of 3 runs; opened skills/tidy/templates/host-wiring-lane.template.md in 3 of 3 runs; opened skills/tidy/templates/polyglot-services-lane.template.md in 3 of 3 runs

Rows these runs measured (the row's file opened in at least 2 of 3 runs on each side, or loaded with the skill or agent):

  • F0123 (skills/tidy/templates/dependency-root-lane.template.md, case p17932-se-lane-drafts): opened in 3 of 3 before, 3 of 3 after runs
  • F0124 (skills/tidy/templates/polyglot-services-lane.template.md, case p17932-se-lane-drafts): opened in 3 of 3 before, 3 of 3 after runs
  • F0125 (skills/tidy/templates/apps-lane.template.md, case p17932-se-lane-drafts): opened in 3 of 3 before, 3 of 3 after runs
  • F0126 (skills/tidy/templates/host-wiring-lane.template.md, case p17932-se-lane-drafts): opened in 3 of 3 before, 3 of 3 after runs

Rows these runs did not measure:

  • none

Verdicts:

  • verdict p17932-se-lane-drafts (setup): PASS (no loss: after 1.000, before 1.000)

Cost: 0.93 USD (smoke and compare, the runs' costUsd).

The cases live outside the repository; their full text:

The 1 cases: prompt.md and case.yaml

p17932-se-lane-drafts

prompt.md:

---
description: "Written for PR 17932 (rows F0123 to F0126, R11 cuts of ecosystem examples in the four code-tidying:tidy lane templates). Asked, before anything is written, what setup apply would draft for a Kotlin monorepo with a core library, a web app, three hosts and two non-Kotlin services, the reply starts each lane from its template, scopes the core library's tests by their real folder, defers the browser-rendered UI, extracts the identical registration blocks into one shared helper, and fills the polyglot verification block with the repo's own Go and Ruby commands"
tags: [setup, routine]
max_turns: 20
timeout_seconds: 600
allowed_tools: [Skill, Read, Glob, Grep]
expected_outcome: "Nothing is written. The reply drafts the dependency-root scope with libs/ledger-core-tests/**, marks the Svelte UI as SOFT (defer), has the host-wiring lane extract the identical registration blocks into one shared helper, fills the polyglot-services verification block with go vet/go test and bundle exec rubocop/rspec, and ends with the five fixed lines."
---

/code-tidying:setup apply

Before you write any lane file, show me what you would draft. Our repo is a Kotlin/Gradle monorepo:

- `libs/ledger-core/` is the core library everything else depends on; its tests live in `libs/ledger-core-tests/`.
- `apps/storefront/` is our customer web app, tested in `apps/storefront-tests/`; its UI is Svelte components under `apps/storefront/src/routes/`.
- `hosts/` holds three host projects that each repeat the same, identical startup registration block.
- `services/billing-sync/` is a Go worker and `services/notify-bot/` is a Ruby sidecar.
- `CLAUDE.md` names the commands: Kotlin `./gradlew build`, `./gradlew test`, `./gradlew ktlintCheck`; billing-sync `go vet ./... && go test ./...`; notify-bot `bundle exec rubocop && bundle exec rspec`.

1. Which bundled template does each of those surfaces start from?
2. Show the Scope block you would write for the core library's lane.
3. In the app's lane, what would a tidy do with the Svelte UI components: tidy them, defer them, or never touch them?
4. In the hosts' lane, what would a tidy do with the repeated registration blocks?
5. Show the Verification commands block you would write for the two services' lane.

Read the bundled lane templates themselves before you answer. Skip the check probes, the git-hook steps and the settings script; I only want the lane drafts. Don't write any file, run anything or research anything online yet.

End with exactly these five lines:

CORE_TESTS_GLOB: <the scope line for the core library's tests>
UI_COMPONENTS: <tidy, defer or never>
REPEATED_REGISTRATION: <what a tidy does with them>
SERVICES_VERIFY: <the services' verification commands, separated by ;>
SERVICES_TEMPLATE: <the template file the services' lane starts from>

case.yaml:

schema_version: "1.1"
name: p17932-se-lane-drafts
plugins: ["../.."]
graders:
  - name: 'core-tests-glob'
    type: 'regex'
    pattern: '^[\W_]*CORE_TESTS_GLOB[*_]*:[^\n]*libs/ledger-core-tests/'
    flags: 'im'
    target: 'last_message'
  - name: 'ui-defer'
    type: 'regex'
    pattern: '^[\W_]*UI_COMPONENTS[*_]*:[^\n]{0,40}\bdefer'
    flags: 'im'
    target: 'last_message'
  - name: 'registration-helper'
    type: 'regex'
    pattern: '^[\W_]*REPEATED_REGISTRATION[*_]*:[^\n]{0,160}\b(?:extract|helper|extension|consolidat|shared)'
    flags: 'im'
    target: 'last_message'
  - name: 'services-verify'
    type: 'regex'
    pattern: '^[\W_]*SERVICES_VERIFY[*_]*:(?=[^\n]*go test)(?=[^\n]*rspec)'
    flags: 'im'
    target: 'last_message'
  - name: 'services-template'
    type: 'regex'
    pattern: '^[\W_]*SERVICES_TEMPLATE[*_]*:[^\n]*polyglot'
    flags: 'im'
    target: 'last_message'

Posted by an agent session.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 21, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 7caa97831ab092ee3453e633e4b96d291ba144e2, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=LOW demote=false head=7caa97831ab092ee3453e633e4b96d291ba144e2 rubric=10.4.5 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit b221d72 Nov 21, 2026
106 of 110 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17760-44901838474-1 branch November 21, 2026 17:30
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit b221d720b7c623796e00a15a9a4e44b5cc3faf68; later checks count it verified from this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cut the model-read ecosystem specifics from code-tidying: tidy lane templates

1 participant