Skip to content

fix(docs-hygiene): cut ecosystem specifics from extract-ssot - #17810

Merged
kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-17774-44867889708-1
Nov 21, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-17774-44867889708-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17774

Summary

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

Cuts this part's 5 rows (part 2 of 3 of #16760) from docs-hygiene:extract-ssot, so the skill ships no bundled lint command and no tool or language-specific examples.

Rows (5: R11 4, R4 1):

  • F0168 (R4): cut. The npx markdownlint-cli2 lint command in context/execution-checklist.md (per-callsite check 8, post-extraction check 4, the sanity-check bullet) now reads as the consuming repository's own markdown linter. No bundled lint command is left in the skill.
  • F0169 (R11): cut. Roslyn / ts-morph / IDE rename are removed from SKILL.md:31, SKILL.md:48 and context/anti-patterns.md:37. These lines route code clusters out of scope, so SKILL.md:48 keeps the generic "language-aware rename refactor". SKILL.md:31 and anti-patterns.md:37 already said "language-aware refactor(ing tools)" and just lose the tool names.
  • F0170 (R11): cut. bash source, Python import, MSBuild <Import> and JSON $ref are removed from actions/identify.md:174 and :216 and from context/lessons.md:143 and :155. identify.md is the routing site that sends language-native dedup out of scope, so its row (f) and step 7 now use generic text: "shared library, helper module, build-tool import, config include or anchor". The row (f) example now reads "34 hooks loading one shared helper library". lessons.md is a record, not a routing site, so its examples are deleted with no replacement.
  • F0171 (R11): cut. &dotnet-build-defaults is removed from context/anti-patterns.md:85, which now reads "name anchors for what they hold, not a generic &base".
  • F0172 (R11): cut. "GitHub Copilot 4000-char hard truncation" is deleted from context/decision-framework.md:67. Its evidence cell keeps the /playbooks:skill-authoring pointer.
    No row was GONE on main. No row is R8, so nothing is pending a targeted case.

Script readers: none. Searches run: Grep for extract-ssot/(SKILL\.md|actions/identify|context/(execution-checklist|anti-patterns|lessons|decision-framework)) over the repository excluding *.md, which found no matches. Grep for extract-ssot in *.{mjs,js,sh,py,ts,cjs,ps1}, which found only eval scaffolds that create .work/extract-ssot notes, the skill's own scripts/emit-verify-facts.sh, and scripts/check-loop-lane-floor-drift.sh(.test.sh) reading context/orchestrated-mode.md. None of these reads a changed file. Grep for markdownlint|Roslyn|ts-morph|Copilot|dotnet-build-defaults|MSBuild in plugins/docs-hygiene non-markdown files: within extract-ssot, only evals/evals.json matched.

Eval case reading the cut text: skills/extract-ssot/evals/evals.json case id 4 code-cluster-out-of-scope. Its expected_output and its second expectation named "IDE rename / Roslyn". Both now say "language-aware rename refactor" to match the new SKILL.md:48, so the case no longer grades against removed text. The plugin-level cases under plugins/docs-hygiene/evals/ do not read the cut text.

Whole page or part, per changed file: every change is part of a page, and no page is deleted. Files:…

Not verified

  • check-affected skipped typos (not installed), comment-hygiene (network fetch denied), size-check (script missing in the lane) and validate-plugins sub-checks plus changed-skills inside check-affected (they run code from the checked tree); left to the PR's CI
  • Markdown lint on the edited files was skipped (check-changed-skills runs with CHECK_SKILL_SKIP_MARKDOWNLINT=1); left to the PR's CI
  • Tidy pass 5 (ai-slop:audit fix) could not run its deterministic detector, since this lane's Bash runs only the named wrappers. The changed lines were read against the rubric by hand and nothing needed fixing. Passes 1-3 had nothing to do (all-markdown change) and pass 4 (write-for-agents) found…
  • The before/after eval (targeted case on sonnet, hold line, eval-pair record) belongs to the host session, as the issue says, and was not run here
  • The phrase 'IDE rename refactor' still appears at context/anti-patterns.md:30 and context/execution-checklist.md:61. Neither is a cited location, and 'IDE' names no single ecosystem, so both were left as they are
  • Untracked dotfiles in the checkout root (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created by this run, and the patch should leave them out

Fix

  • plugins/docs-hygiene/skills/extract-ssot/SKILL.md: removes Roslyn / ts-morph / IDE rename from the code/config escape-hatch paragraph and the code-clusters bullet (F0169)
  • plugins/docs-hygiene/skills/extract-ssot/actions/identify.md: replaces the bash/Python/MSBuild/JSON dedup examples in discrimination row (f) and evidence step 7 with generic shared library / helper module / build-tool import / config include or anchor text (F0170)
  • plugins/docs-hygiene/skills/extract-ssot/context/execution-checklist.md: replaces the bundled npx markdownlint-cli2 command with the repo's markdown linter at all three sites (F0168)
  • plugins/docs-hygiene/skills/extract-ssot/context/anti-patterns.md: removes IDE / Roslyn / ts-morph from citation-rot mitigation 4 (F0169) and the &dotnet-build-defaults anchor example (F0171)
  • plugins/docs-hygiene/skills/extract-ssot/context/lessons.md: deletes the bash source and per-language dedup examples in Lesson 10 (F0170)
  • plugins/docs-hygiene/skills/extract-ssot/context/decision-framework.md: deletes the unsourced GitHub Copilot 4000-char truncation evidence (F0172)
  • plugins/docs-hygiene/skills/extract-ssot/evals/evals.json: case 4 expected_output and expectation now say language-aware rename refactor instead of IDE rename / Roslyn
  • .changes/docs-hygiene/work-resolve-issue-issue-17774-44867889708-1-3002520b.md: new patch changelog fragment for docs-hygiene

Verification

The runner ran each check from the base copy against 8fc9746:

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

The run reports:

  • .lane/checks/bin/check-changelog-fragments: all 3 fragments valid (first run failed on a fragment without a ### section; fixed)
  • .lane/checks/bin/check-changed-skills: CHECK-SKILL extract-ssot PASS, 0 errors, 7 warnings. The warnings are about description length, body size, Gotchas, history citations and fresh-eyes wording; none comes from these edits
  • .lane/checks/bin/check-affected: 14 passed, 9 skipped, 0 failed over 8 changed files
  • .lane/verify/bin/check-evals-quality plugins/docs-hygiene/skills/extract-ssot/evals/evals.json: PASS with 1 warning on case id 8 (.claude/rules/testing.md fixture), which this change did not touch
  • Grep over plugins/docs-hygiene/skills/extract-ssot for markdownlint|Roslyn|ts-morph|MSBuild|dotnet-build-defaults|Copilot after the edits: the cited rows no longer match
  • Fresh-context subagent review of the full diff: confirmed table cell counts and meaning. Its two confirmed findings were fixed: identify.md now keeps config include/anchor in the language-native list, and eval case 4 no longer requires Roslyn
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44867889708

Left out: the items under Not verified.

Related

#17774

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 #17774 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 8fc9746205b64108d42c24b4d083991303523f0b: read 8 of 8 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

I read all 8 changed files in full. The PR only edits text: the markdown and eval JSON of docs-hygiene:extract-ssot, plus a new patch changelog fragment. It changes no code, workflow, plugin manifest or trusted path.

Closing issue #17774, checked row by row:

  • F0168 (R4): npx markdownlint-cli2 is gone from all three sites in context/execution-checklist.md: per-callsite check 8, post-extraction check 4 and the sanity-check bullet. Each now points at the consuming repository's own markdown linter. I searched plugins/docs-hygiene and found no markdownlint, Roslyn, ts-morph, Copilot, MSBuild or dotnet-build-defaults left anywhere under skills/extract-ssot/. That meets "no bundled lint command survives".
  • F0169: Roslyn and ts-morph are removed from SKILL.md's escape-hatch paragraph and code-clusters bullet, and from context/anti-patterns.md citation-rot mitigation 4. The generic "language-aware rename refactor" stays at the routing site, as R11 allows.
  • F0170: actions/identify.md is a routing site, so row (f) and evidence step 7 get generic text. In context/lessons.md the examples are deleted with no replacement, as R11 asks for non-routing text.
  • F0171: the &dotnet-build-defaults anchor example is gone.
  • F0172: the Copilot truncation fact is deleted. Row 5 still has its four cells, and the evidence cell keeps its /playbooks:skill-authoring pointer.
  • PR body items: the row count (5), row ids with rule and outcome, the script-reader searches, the eval case that reads the cut text (case 4), and the whole-page-or-part answer for each file are all there. These are the author's claims, and I did not re-run their searches. No enforcement-placing skill is added (AC10).

Edited eval case: case 4 in evals/evals.json changes its expected_output and its second expectation from "IDE rename / Roslyn" to "language-aware rename refactor". This follows the cut text in SKILL.md and is the companion edit R11 requires ("An item kept only because a removed item consumes it goes in the same pull request"). The case accepts no more than it did, so it is not a loosened check.

Loosened checks: none found. Loosened checks would be marked: fail (default; the prompt had no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. The prompt had no loosened_check_decision_record: line either, so I did not check the citation requirement.

Path-scoped rules: .claude/rules/skill-bodies-state-current-rules.md applies to plugins/*/skills/**. The change removes one unsourced restated upstream fact (the Copilot limit) and adds none, so it follows that rule.

Not a finding: SKILL.md:31 still lists `import` / `using` / `source`, YAML anchor and JSON $ref as language-idiomatic forms (permalink). The issue does not cite that line for F0170, and it puts rows outside its table out of scope, so I raised nothing.

Embedded text: none found in the PR context.

Usage: no paid spend, and no hold applies.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

I read the whole diff, all 8 changed files. The pull request edits only the prose and examples of the docs-hygiene:extract-ssot skill, and it adds one patch changelog fragment:

  • SKILL.md and context/anti-patterns.md: remove the tool names Roslyn, ts-morph and IDE rename. The "language-aware refactor" guidance stays.
  • actions/identify.md and context/lessons.md: replace the language-specific dedup examples (bash source, Python import, MSBuild <Import>, JSON $ref) with generic wording. Language-native dedup is still treated as out of scope.
  • context/execution-checklist.md: the three lint checks now say "the repo's markdown linter" instead of bundling npx markdownlint-cli2. The lint checks themselves are unchanged. Running a command the repository already has, rather than one pulled from npm, gives a little less supply-chain exposure.
  • context/decision-framework.md: deletes an unsourced "GitHub Copilot 4000-char hard truncation" claim from an evidence cell. The size-bound test stays, with its /playbooks:skill-authoring pointer.
  • evals/evals.json: case 4's expected output and one expectation now say "language-aware rename refactor" instead of "IDE rename / Roslyn". It is grading text only.

Instruction-surface lens: the diff rewords skill-body text but removes no rule and narrows no rule. Every changed sentence keeps what it requires or forbids; only the examples changed. Nothing here touches a hook, a permission, a tool grant, a command the session runs from user input, or any data sent off the machine, so no protected class applies. I did not read the instruction-exception register, because no rule is removed and nothing could match it.

Other surfaces: the diff changes no workflow, trust control, merge hold, plugin manifest (plugin.json / marketplace.json) or userConfig key. None of the changed files matches the trusted-path globs.

PR context: the description and its "Not verified" notes contain no instructions aimed at 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: not a pure cut. F0168 (R4) removes the bundled npx markdownlint-cli2 command: the lint check is the repo's own markdown linter (with a project command named, the case grades it; BEFORE also says 'or the repo's markdown linter'). F0169-F0172 (R11) cut Roslyn/ts-morph, bash/Python/MSBuild/JSON examples, the &dotnet-build-defaults anchor example and the unsourced Copilot fact, keeping each rule. Measured by p17810-es-cluster-rules (prompt names identify, anti-patterns, decision-framework, execution-checklist, R121): code-literal-out-of-scope (F0169, SKILL.md loaded), shared-helper-extracted (F0170 identify.md form (f), the hook example the prompt reproduces), anchor-rename (F0171), lint-repo-command (F0168), two-site-refuse and one-level-deep (decision-framework.md beside F0172). lessons.md's F0170 reword is read only if a run opens it. evals.json under skills/extract-ssot/evals/ is not a side file.

  • New case p17810-es-cluster-rules: extract-ssot's evals.json is skill-creator format and does not run, so a rules-only identify question was written: six clusters, six anchored positive regex graders (no negative lookahead), no Skill grader (slash prompt, R105).

  • Loss-capable graders (an example beside their rule was cut): shared-helper-extracted (bash source example), anchor-rename (&dotnet-build-defaults example), code-literal-out-of-scope (Roslyn/ts-morph pointers), lint-repo-command (npx markdownlint-cli2; may rise, not fall).

  • Unmeasured: F0172's removed Copilot truncation fact has no grader (it carried no rule the case can ask).

  • 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: 69cc1a018851c075bc5b02ad14e7d83ffb6a7c69 (merge base with main)

  • After: 8fc9746205b64108d42c24b4d083991303523f0b (pull request head; live head when this was written: 8fc9746205b64108d42c24b4d083991303523f0b)

  • 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
p17810-es-cluster-rules code-literal-out-of-scope 3/3 3/3
p17810-es-cluster-rules shared-helper-extracted 3/3 3/3
p17810-es-cluster-rules anchor-rename 3/3 2/3
p17810-es-cluster-rules lint-repo-command 3/3 3/3
p17810-es-cluster-rules two-site-refuse 3/3 3/3
p17810-es-cluster-rules one-level-deep 3/3 3/3
p17810-es-cluster-rules mean case score 1.000 0.944

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:

  • p17810-es-cluster-rules before: opened skills/extract-ssot/actions/identify.md in 3 of 3 runs; opened skills/extract-ssot/context/anti-patterns.md in 3 of 3 runs; opened skills/extract-ssot/context/decision-framework.md in 3 of 3 runs; opened skills/extract-ssot/context/execution-checklist.md in 3 of 3 runs
  • p17810-es-cluster-rules after: opened skills/extract-ssot/actions/identify.md in 3 of 3 runs; opened skills/extract-ssot/context/anti-patterns.md in 3 of 3 runs; opened skills/extract-ssot/context/decision-framework.md in 3 of 3 runs; opened skills/extract-ssot/context/execution-checklist.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):

  • F0168 (skills/extract-ssot/context/execution-checklist.md, case p17810-es-cluster-rules): opened in 3 of 3 before, 3 of 3 after runs
  • F0169 (skills/extract-ssot/SKILL.md, case p17810-es-cluster-rules): measured; the file is loaded with the skill or agent, never opened, so no open count applies
  • F0170 (skills/extract-ssot/actions/identify.md, case p17810-es-cluster-rules): opened in 3 of 3 before, 3 of 3 after runs
  • F0171 (skills/extract-ssot/context/anti-patterns.md, case p17810-es-cluster-rules): opened in 3 of 3 before, 3 of 3 after runs
  • F0172 (skills/extract-ssot/context/decision-framework.md, case p17810-es-cluster-rules): opened in 3 of 3 before, 3 of 3 after runs

Rows these runs did not measure:

  • none

Verdicts:

  • verdict p17810-es-cluster-rules (extract-ssot): PASS (no loss: after 0.944, before 1.000)

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

The cases live outside the repository; their full text:

The 1 cases: prompt.md and case.yaml

p17810-es-cluster-rules

prompt.md:

---
description: "Written for PR 17810 (rows F0168-F0172 in docs-hygiene:extract-ssot: the npx markdownlint-cli2 lint default, Roslyn/ts-morph pointers, bash/Python/MSBuild/JSON dedup examples, the &dotnet-build-defaults anchor example and an unsourced Copilot fact). Asked, before anything runs, how it would treat six candidate clusters, the reply puts a repeated code literal out of scope with language-idiomatic extraction, calls hooks loading one shared helper already extracted, renames a generic &base anchor for what it holds, lints with the repo's own markdown command, refuses a two-site cluster, and cites one level deep"
tags: [extract-ssot, routine]
max_turns: 20
timeout_seconds: 600
allowed_tools: [Skill, Read, Glob, Grep]
expected_outcome: "Nothing is run or edited. The reply flags the four-file string literal as an out-of-scope code cluster, treats the 34 hooks loading lib/common.sh as already extracted, renames &base for what it holds, lints edited markdown with make lint-docs, refuses the two-site cluster under the Rule of Three, and has callers cite the SSOT directly, one level deep. It ends with the six fixed lines."
---

/docs-hygiene:extract-ssot identify

Before you survey anything, tell me how you'd treat these in our repo. Check your answers against the skill's identify action and its anti-patterns, decision-framework and execution-checklist pages.

1. The same magic string `"ORD-PENDING"` appears in four `.go` source files.
2. 34 hook scripts each load one shared helper library, `lib/common.sh`.
3. Our CI YAML shares a build stanza through an anchor named `&base`.
4. After migrating a markdown call site, our `CLAUDE.md` says "lint docs with `make lint-docs`". What lint check do you run on the edited file?
5. A rule paragraph is repeated, word for word, in exactly two skill files.
6. If we do extract a shared rule file, may a caller cite it through another reference file that cites it?

Don't run, edit or research anything online yet.

End with exactly these six lines:

CODE_LITERAL: <in scope or out of scope>
SHARED_HELPER_HOOKS: <candidate or already extracted>
ANCHOR_BASE: <keep or rename>
LINT_EDITED_MARKDOWN: <the command>
TWO_SITE_RULE: <extract or refuse>
CITE_THROUGH_ANOTHER: <yes or no>

case.yaml:

schema_version: "1.1"
name: p17810-es-cluster-rules
plugins: ["../.."]
graders:
  - name: 'code-literal-out-of-scope'
    type: 'regex'
    pattern: '^[\W_]*CODE_LITERAL[*_]*:[\s*`]*out[- ]of[- ]scope'
    flags: 'im'
    target: 'last_message'
  - name: 'shared-helper-extracted'
    type: 'regex'
    pattern: '^[\W_]*SHARED_HELPER_HOOKS[*_]*:[\s*`]*already'
    flags: 'im'
    target: 'last_message'
  - name: 'anchor-rename'
    type: 'regex'
    pattern: '^[\W_]*ANCHOR_BASE[*_]*:[\s*`]*rename'
    flags: 'im'
    target: 'last_message'
  - name: 'lint-repo-command'
    type: 'regex'
    pattern: '^[\W_]*LINT_EDITED_MARKDOWN[*_]*:[^\n]*make lint-docs'
    flags: 'im'
    target: 'last_message'
  - name: 'two-site-refuse'
    type: 'regex'
    pattern: '^[\W_]*TWO_SITE_RULE[*_]*:[\s*`]*refuse'
    flags: 'im'
    target: 'last_message'
  - name: 'one-level-deep'
    type: 'regex'
    pattern: '^[\W_]*CITE_THROUGH_ANOTHER[*_]*:[\s*`]*no\b'
    flags: 'im'
    target: 'last_message'

Posted by an agent session.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The do-not-merge hold waited only on eval evidence (reason=eval), and a listed human posted a VALID no-loss eval-pair record for 8fc9746205b64108d42c24b4d083991303523f0b: #17810 (comment). pr-merge removed do-not-merge. To hold again, add the label back with a new pr-hold reason line.

@melodic-automation-lanes melodic-automation-lanes Bot removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 21, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 86e8579 Nov 21, 2026
95 of 98 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-17774-44867889708-1 branch November 21, 2026 07:29
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 docs-hygiene: extract-ssot

1 participant