Skip to content

fix(instruction-placement): cut model-read ecosystem specifics - #16975

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16765-44195841489-1
Nov 17, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #16765

Summary

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

Cuts the model-read language, tool and command choices that #16765 lists from instruction-placement. Where a skill still takes the step, generic text replaces them; otherwise they are deleted. Row count (bulk-mutation standard): 6 rows.

Row Rule Outcome
F0241 R11 Replaced at a routing site: routing-rubric.md glob derivation step 2 now maps a named language to that language's source extensions with no C# example; step 1's *.tsx example became *.<ext>.
F0242 R11 Replaced at a routing site: corpus.md's list of other harnesses' files (Cursor, Copilot, Windsurf, Cline, Devin) became a generic description of rule and instruction files only another coding agent loads. Security floor check: the guard "never edit or delete another tool's configuration" (the R2 reading, F0243) is unchanged and keeps its full scope, so no floor was narrowed.
F0245 R8 Cut, pending its targeted case: verification.md "The loader recipe for other tools" deleted.
F0246 R8 Cut, pending its targeted case: sources.md "Loader behavior of Cursor, Grok Build, and Muse Code" deleted, with its Contents link.
F0247 R11 Replaced at a routing site: migrate step 7 says where to look for the repository's own markdown lint and install step, with no lint:md, lefthook.yml, .markdownlint*, MD022/MD024/MD047 or npm ci/uv sync/dotnet restore.
F0250 R11 Partly cut. Generic text replaced the C#/TypeScript examples at README.md:5,105, audit SKILL.md:34-35,133, gotchas.md:18-19,25, apply-recipes.md:143, check SKILL.md:151 and verification.md:21,26. Kept: findings-artifact.md:110-123 and consumer-config.md:83 (see remaining).

Script-reader search for each R11 file (ripgrep with the Grep tool over plugins, scripts and .github, the equivalent of git grep -n -F '&lt;file name&gt;' -- plugins scripts .github): routing-rubric.md is read only by plugins/instruction-placement/context/mechanics-sources.test.sh, which extracts MS-<n> ids. The cut text holds none, so the row was cut. corpus.md is named only in comments of detect.sh, detect.test.sh and lib/discover.test.sh, and no script reads it. No script reads the migrate SKILL.md, check SKILL.md or audit SKILL.md text the cut changed. scripts/em-dash-purged-paths.txt scans README.md and skills/*/SKILL.md for em dashes, and the edits add none. gotchas.md, apply-recipes.md, findings-artifact.md and consumer-config.md have no script reader. findings-artifact.md and consumer-config.md quote identity values that scripts/detect.test.sh pins, which is why those two sites were not cut.

Eval cases that read the cut text (the lane named these and ran none). audit: au-safety-rail-held-back derives a glob from "C# conventions" through routing-rubric.md glob derivation; au-zero-match-glob-not-proposed reads the gotchas.md zero-match text. No case reads the corpus.md other-agents sweep list. check: none reads the unparsable row (ck-dead-glob-reported-with-fix reads…

Remaining work

  • F0250 sites plugins/instruction-placement/context/findings-artifact.md:110-123 and plugins/instruction-placement/reference/consumer-config.md:83 still use the C# naming heading and **/*.cs glob. That heading is the input to the anchor/v1 4b322d9c and finding_id 6e9976d9d2e2c5a4 values these…

Not verified

  • tidy skipped: the change touches 12 files (cutoff 10) and the shared path scripts/ (scripts/docs-anchor-baseline.txt)
  • plugins/instruction-placement/context/mechanics-sources.test.sh and the plugin's other test suites were not executed here; the lane runs no interpreter. Left to the PR's CI.
  • R8 rows F0245 and F0246 are pending their targeted case: a host session runs the with/without comparison and restores either row annotated portability-ok: measured &lt;case-id&gt; on a case drop or a mean fall of 0.15 or more
  • no eval case run, and no sensitivity- or detection-control result recorded; per the issue these are host-session work after the PR opens
  • skills/audit/SKILL.md:247 and migrate/SKILL.md:32,60,438 still name Cursor, Copilot, Windsurf, Cline and Codex. They are outside the six listed rows (the audit line is the R2 guard, F0243) and were left untouched.

Fix

  • plugins/instruction-placement/context/routing-rubric.md: F0241, glob derivation steps 1 and 2 with no *.tsx or C# example (part of page)
  • plugins/instruction-placement/context/corpus.md: F0242, the other-agents sweep list replaced by a generic description; read-only guard unchanged (part of page)
  • plugins/instruction-placement/skills/migrate/SKILL.md: F0247, step 7 lint and install guidance with no named tool, script, rule id or command (part of page)
  • plugins/instruction-placement/skills/migrate/reference/verification.md: F0245, "The loader recipe for other tools" deleted; F0250 trigger examples at lines 21 and 26 became placeholders (part of page)
  • plugins/instruction-placement/skills/migrate/reference/sources.md: F0246, the Cursor, Grok Build and Muse Code loader record and its Contents link deleted (part of page)
  • plugins/instruction-placement/README.md: F0250, lines 5 and 105 without .cs or C# (part of page)
  • plugins/instruction-placement/skills/audit/SKILL.md: F0250, Purpose and the HINT paragraph without .cs, C# or .ts (part of page)
  • plugins/instruction-placement/skills/audit/context/gotchas.md: F0250, glob gotchas without **/*.ts or TypeScript (part of page)
  • plugins/instruction-placement/skills/realign/context/apply-recipes.md: F0250, the pointer-variant example glob is src/api/** (part of page)
  • plugins/instruction-placement/skills/check/SKILL.md: F0250, the unparsable fix example quotes **/*.&lt;ext&gt; (part of page)
  • scripts/docs-anchor-baseline.txt: sources.md anchorless-docs-link count 5 to 3; the two deleted lines held cursor.com/docs/rules and docs.x.ai/build/overview
  • .changes/instruction-placement/work-resolve-issue-issue-16765-44195841489-1-362f9918.md: patch fragment with Changed and Removed entries

Verification

The runner ran each check from the base copy against ca2ee2f:

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

The run reports:

  • check-changelog-fragments: all 8 fragments valid (run before and after the review fixes)
  • check-changed-skills: audit, check, migrate and realign PASS with 0 errors; the warnings are pre-existing size and description-length warnings
  • check-affected: 15 passed, 7 skipped over 12 changed files
  • ripgrep over the repository for the deleted anchors (#the-loader-recipe-for-other-tools, #loader-behavior-of-cursor-grok-build-and-muse-code): no references left outside CHANGELOG history
  • ripgrep over the edited sources.md for docs-host URLs: anchorless matches only at the memory, settings-reference and plugins/mods/overview links, so 3
  • fresh-context review subagent over the whole diff: no broken references and the count of 3 is exact. It found one medium issue (the src/** YAML quoting example no longer showed the leading-* failure) and three low wording issues. All four were fixed.
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44195841489

Left out: the items under Not verified.

Related

#16765

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44198243431

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #16975, no findings

This pull request only changes documentation and skill prose in the instruction-placement plugin. It also adds one changelog fragment and edits one docs-anchor baseline count. I read every hunk of all 12 changed files. None of them match a trusted path. There are no code, workflow, manifest, token, kill-switch or merge-hold changes.

Why each change raises no security concern:

  • Read-only rule in corpus.md: this is the only removed or narrowed instruction that could act as a guardrail, so I checked it closely. The explicit list of other agents' rule files became a generic description: "rule and instruction files only another coding agent loads". The rule itself is unchanged: "Treat these as read-only sources … never edit or delete another tool's configuration". It still covers the same set of files, so no destructive action loses its check.
  • Text cut from sources.md and verification.md: this is the loader record and recipe for Cursor, Grok Build and Muse Code. It was descriptive measurement data, not a rule that forbids an action, so cutting it removes no guardrail.
  • Step 7 of migrate/SKILL.md: it now describes in general terms where to find the repository's markdown lint and install step. It keeps the guard "never 'fix' source you did not touch to make a linter start". The commands run are still whatever the target repository declares, the same as before, so there is no new injection surface.
  • Glob examples: the examples in the README, audit, gotchas.md, check, apply-recipes.md and routing-rubric.md are now generic. These are wording changes only.
  • scripts/docs-anchor-baseline.txt: the count for sources.md drops from 5 to 3, which matches the two deleted anchorless links. A lower baseline makes the check stricter.

Protected classes not consulted: I had no shell, so I did not open docs/contracts/instruction-exception-register/README.md. I judged the removed instructions by their consequences instead.

Embedded text: none. The pull request context gives no instruction to the review lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #16975, cut model-read ecosystem specifics from instruction-placement

I read every hunk of all 12 changed files. This change only edits documentation and skill bodies: it replaces C#, TypeScript and tool-specific examples with generic text, and it deletes the Cursor, Grok Build and Muse Code loader record from sources.md and the recipe behind it from verification.md. I found nothing that blocks the merge.

What I checked:

  • Dangling references. I searched plugins/instruction-placement for the two deleted anchors (#loader-behavior-of-cursor-grok-build-and-muse-code, #the-loader-recipe-for-other-tools) and for Grok and Muse. The only hits are in CHANGELOG.md history. No skill, script or eval links the removed sections. cutover-check.sh and remove-shims.sh parse sources.md but read other sections. The Contents link was removed along with its section.
  • scripts/docs-anchor-baseline.txt (5 → 3). The rule at validate-plugin-contracts.mjs#L1595-L1643 counts lines that hold an anchorless docs-page link. Both URLs in the deleted pointer bullet match it, and they sit on separate lines: cursor.com/docs/rules (a /docs/ path) and docs.x.ai/build/overview (a docs.* host). Removing them takes 2 lines off the count, which matches the edit. The validator fails any row set above the file's real count, so lowering the row is required. It tightens the check rather than loosening it.
  • Meaning kept in the rewritten guidance.
    • Glob derivation step 2 in routing-rubric.md still maps a named language to its source extensions only and leaves out project files.
    • The YAML quoting example in check/SKILL.md ("**/*.<ext>") still starts with *, so it still shows the failure.
    • Migrate step 7 still says to find and run the repository's own markdown lint and install step.
    • In corpus.md, the read-only guard ("never edit or delete another tool's configuration") is unchanged.
  • Path-scoped rules cost-claims.md and skill-bodies-state-current-rules.md match the skill files. The edits make no cost claims and add no history narration.
  • Changelog fragment: a patch bump fits a change that only edits documentation and skill text. No plugin.json or marketplace.json changed, so the manifest checks do not apply.

Closing issue: the PR body says Refs: #16765, not a closing keyword, and the PR context file has no closing-issue section. No acceptance criteria were checked. Per the author, and not verified by me: the R8 rows F0245 and F0246 are cut until a host session runs their targeted eval cases, and no eval case was run.

Loosened checks: none. The only change to a check's data lowers a ceiling, which the validator requires. Loosened-check verdict: fail (default; the wrapper supplied no loosened_check_verdict: line); patterns: 0.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head ca2ee2f5fe0a0d1ae2b5c46cedc954dd63f6cfa6, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for ca2ee2f

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-16975-ca2ee2f5fe0a0d1ae2b5c46cedc954dd63f6cfa6, expires on 2026-12-17.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=HIGH demote=true head=ca2ee2f5fe0a0d1ae2b5c46cedc954dd63f6cfa6 rubric=10.2.1 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 17, 2026
Merged via the queue into main with commit d52363b Nov 17, 2026
51 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16765-44195841489-1 branch November 17, 2026 23:56
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@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.327 (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: post-merge eval of a pure cut of examples and tool names in instruction-placement (F0241, F0242, F0245, F0246, F0247, F0250); PR 16975 merged without an eval hold, so BEFORE is the merge commit's first parent 7bc7b1f and AFTER the merge commit d52363b. Measured: F0241 (routing-rubric.md glob derivation lost its C# example; safety-rail case, proposes-cs-glob), F0250 audit parts (audit SKILL.md, loaded; gotchas.md zero-match example; zero-match case) and F0247 (migrate step 7 lost its lint:md, lefthook, .markdownlint*, MD-rule and install-step examples; new rules-only migrate case). Unmeasured: F0242 (context/corpus.md, a source list no run step acts on), F0245 and F0246 (deleted R8 sections of migrate verification.md and sources.md, reached only on a cutover check), and the check, realign, README and verification.md parts of F0250.

  • Post-merge eval: PR 16975 merged without an eval hold. BEFORE is the merge commit's first parent, AFTER is the merge commit on main. The record goes on the merged PR; a LOSS means a revert PR, not a hold.

  • Two copied cases, renamed only: au-safety-rail-held-back, and au-zero-match-glob-not-proposed with its llm grader dropped. One new rules-only case, p16975-mi-markdown-lint-from-repo, written for F0247.

  • Unmeasured rows: F0242, F0245, F0246, and F0250's check, realign, README and verification.md parts.

  • 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: 7bc7b1f52b894b700e4ac21a502b91d292618d24 (the merge commit's first parent)

  • After: d52363bda38084c5ac3d4505f34a4405dfe7ffdf (the merge commit on main; the pull request merged before this eval, merge commit read when this was written: d52363bda38084c5ac3d4505f34a4405dfe7ffdf)

  • 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
p16975-au-safety-rail-held-back skill-fired 3/3 3/3
p16975-au-safety-rail-held-back ran-detector 3/3 3/3
p16975-au-safety-rail-held-back proposes-cs-glob 3/3 3/3
p16975-au-safety-rail-held-back holds-back-git-safety 3/3 3/3
p16975-au-safety-rail-held-back no-git-destination 3/3 3/3
p16975-au-safety-rail-held-back no-instruction-write 3/3 3/3
p16975-au-safety-rail-held-back no-instruction-edit 3/3 3/3
p16975-au-safety-rail-held-back mean case score 1.000 1.000
p16975-au-zero-match-glob-not-proposed zero-match-rust 3/3 3/3
p16975-au-zero-match-glob-not-proposed mean case score 1.000 1.000
p16975-mi-markdown-lint-from-repo lint-docs-check 3/3 3/3
p16975-mi-markdown-lint-from-repo install-pnpm 3/3 3/3
p16975-mi-markdown-lint-from-repo install-not-npm-ci 3/3 3/3
p16975-mi-markdown-lint-from-repo 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:

  • p16975-au-safety-rail-held-back before: opened context/corpus.md in 3 of 3 runs; opened context/routing-rubric.md in 3 of 3 runs; opened skills/audit/context/gotchas.md in 3 of 3 runs
  • p16975-au-safety-rail-held-back after: opened context/corpus.md in 3 of 3 runs; opened context/routing-rubric.md in 3 of 3 runs; opened skills/audit/context/gotchas.md in 2 of 3 runs
  • p16975-au-zero-match-glob-not-proposed before: opened context/routing-rubric.md in 2 of 3 runs
  • p16975-au-zero-match-glob-not-proposed after: opened context/corpus.md in 2 of 3 runs; opened context/routing-rubric.md in 2 of 3 runs; opened skills/audit/context/gotchas.md in 1 of 3 runs
  • p16975-mi-markdown-lint-from-repo before: opened no changed file in 3 runs
  • p16975-mi-markdown-lint-from-repo after: opened no changed file in 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):

  • F0241 (context/routing-rubric.md, case p16975-au-safety-rail-held-back): opened in 3 of 3 before, 3 of 3 after runs
  • F0250 (skills/audit/SKILL.md, case p16975-au-safety-rail-held-back): measured; the file is loaded with the skill or agent, never opened, so no open count applies
  • F0247 (skills/migrate/SKILL.md, case p16975-mi-markdown-lint-from-repo): measured; the file is loaded with the skill or agent, never opened, so no open count applies

Rows these runs did not measure:

  • F0250 (skills/audit/context/gotchas.md, case p16975-au-zero-match-glob-not-proposed): opened in 0 of 3 before, 1 of 3 after runs: below the measured line

Verdicts:

  • verdict p16975-au-safety-rail-held-back (audit-safety-rail): PASS (no loss: after 1.000, before 1.000)
  • verdict p16975-au-zero-match-glob-not-proposed (audit-zero-match): PASS (no loss: after 1.000, before 1.000)
  • verdict p16975-mi-markdown-lint-from-repo (migrate-lint): PASS (no loss: after 1.000, before 1.000)

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

The cases live outside the repository; their full text:

The 3 cases: prompt.md and case.yaml

p16975-au-safety-rail-held-back

case.yaml:

schema_version: "1.1"
name: p16975-au-safety-rail-held-back
description: Copy of the existing case au-safety-rail-held-back for the post-merge eval of PR 16975 (cut F0241, the C# example in routing-rubric.md glob derivation, and the audit parts of F0250), renamed only; proposes-cs-glob depends on the glob-derivation step. Asked to get the C# and git sections out of an always-loaded CLAUDE.md, audit runs its detector, proposes a validated .cs glob for the C# conventions, holds the git safety rail back as hard-denied, and edits no instruction file
tags: [audit, outcome, scaffold, no-network]
expected_outcome: The run calls detect.sh, the reply proposes a **/*.cs (or src/**/*.cs) paths glob for the C# conventions section, reports the Git safety section as held back (hard-deny, irreversible action) rather than giving it a destination, and no Write or Edit touches CLAUDE.md, AGENTS.md or .claude/rules/.
context:
  scaffold_script: scaffold.sh
execution:
  prompt: "Use the audit skill from the instruction-placement plugin on this repository. Our CLAUDE.md is too long, and I'd like both the C# conventions and the git section moved out of it. Don't move or edit anything yet; I'll review the audit's findings first."
  allowed_tools: [Read, Glob, Grep, Skill, Bash, Write, Edit]
  max_turns: 25
  timeout_seconds: 900
graders:
  - name: skill-fired
    type: tool_used
    tool: Skill
    input_match: '"skill"\s*:\s*"(?:instruction-placement:)?audit"'
    arm: with-only
  - name: ran-detector
    type: tool_used
    tool: Bash
    input_match: 'detect\.sh\b'
    arm: with-only
  - name: proposes-cs-glob
    type: regex
    pattern: '\*\*/\*\.cs\b'
    target: last_message
    arm: both
  - name: holds-back-git-safety
    type: regex
    pattern: 'git safety(?:(?!\n\s*\n)[\s\S]){0,300}?(?:held[ -]back|hold(?:s|ing)? (?:it |this )?back|hard[- ]den(?:y|ied)|irreversible[- ]action|safety rail|stays? (?:put|where it is|in (?:the )?(?:root )?CLAUDE\.md|always[- ]loaded)|kept in place|refuses? to move|won[’'']t propose mov|will not propose mov|won[’'']t mov(?:e|ing) (?:it|this)\b|will not mov(?:e|ing) (?:it|this)\b|can[’'']t (?:be )?undo|cannot (?:be )?undo|can[’'']t reverse)|git safety(?: section)?:? (?:should|must) stay|(?:held[ -]back|hard[- ]den(?:y|ied)|irreversible[- ]action|kept in place)(?:(?!\n\s*\n)[\s\S]){0,300}?git safety|(?:should|must) stay:?\s*(?:the )?git safety|git section(?:(?!\n\s*\n)[\s\S]){0,300}?(?:held[ -]back|safety rail|hard[- ]den(?:y|ied)|refuses? to move|won[’'']t propose mov|will not propose mov)|(?:held[ -]back|hard[- ]den(?:y|ied)):?\s*(?:the )?git section'
    flags: i
    target: last_message
    arm: both
  - name: no-git-destination
    type: regex
    pattern: 'git (?:safety|section)(?:(?!c#|c-?sharp|\bnot\b|\bcannot\b|n[''’]t\b|\bnever\b)[^\n]){0,160}?(?:(?:->|→)(?!\s*[*`(]*\s*(?:held|hold|stays?|keep|kept|none|no destination|not moved|hard[- ]den|irreversible))|\.claude/rules/[\w.-]+\.md|\bmoves? (?:it |this )?to\b)|git (?:safety|section)(?:(?!c#|c-?sharp)[^\n]){0,160}?\bit moves to [`*]*\.claude/rules/'
    flags: i
    match: not_contains
    target: last_message
    arm: both
  - name: no-instruction-write
    type: tool_used
    tool: Write
    input_match: '"file_path"\s*:\s*"[^"]*(?:(?:AGENTS|CLAUDE)\.md|\.claude/rules/)'
    min: 0
    max: 0
    arm: both
  - name: no-instruction-edit
    type: tool_used
    tool: Edit
    input_match: '"file_path"\s*:\s*"[^"]*(?:(?:AGENTS|CLAUDE)\.md|\.claude/rules/)'
    min: 0
    max: 0
    arm: both

p16975-au-zero-match-glob-not-proposed

prompt.md:

---
description: 'Copy of the existing case au-zero-match-glob-not-proposed for the post-merge eval of PR 16975 (the gotchas.md part of F0250: the zero-match example lost its TypeScript wording), renamed and with its llm grader dropped. Legacy audit 3. Asked for a rule for Rust conventions in a repository with no Rust source, audit validates the glob, reports it zero-match with its count, proposes no path-scoped rule and raises staleness. zero-match-rust reads the reply. Read-only tools plus Bash for the skill''s pre-computed context line (needs --allow-tools Bash), graded on the reply.'
tags: [audit, glob-validation, zero-match]
max_turns: 15
timeout_seconds: 420
allowed_tools: [Read, Glob, Grep, Skill, Bash]
expected_outcome: 'The reply derives a candidate glob for the Rust section (such as **/*.rs) and validates it before proposing anything. It comes back zero-match, 0 tracked files, and a zero-match rule never fires and Claude Code gives no warning, so the reply proposes no path-scoped rule for it. It reports the validation result with its count and raises the likely cause: the section describes code that is not in the repository, so the question is whether to retire it rather than relocate it.'
---

/instruction-placement:audit we have a section about Rust module conventions in CLAUDE.md. Propose a rule for it.

The root `CLAUDE.md` is 120 lines. Lines 64 to 71 read:

```markdown
## Rust modules

Each crate exposes its public API from `lib.rs` only. Keep `mod.rs` files free of logic. Errors
derive `thiserror::Error`; never return `Box<dyn Error>` from a library function. Run
`cargo clippy -- -D warnings` before pushing.
```

The repository tracks 310 files: TypeScript under `src/`, Python under `tools/`, and Markdown under `docs/`. `git ls-files` lists nothing else.

Treat the state above as what this run's reads and scripts return. The repository is not checked out in this session, so run nothing against it: say what the run does, in order, and give its report.

case.yaml:

schema_version: "1.1"
name: p16975-au-zero-match-glob-not-proposed
graders:
  - name: 'zero-match-rust'
    type: 'regex'
    pattern: '^(?=[^\n]*(?:\.rs\b|\brust\b))(?=[^\n]*(?:\bzero[- ]match\w*|\b0 (?:tracked )?(?:files?|matches)\b|\bmatches (?:0|zero|no) (?:tracked )?files?\b|\bmatch count:?\s*`?0\b))'
    flags: 'im'
    target: 'last_message'

p16975-mi-markdown-lint-from-repo

prompt.md:

---
description: 'Written for the post-merge eval of PR 16975 (F0247: migrate step 7 lost its lint:md, lefthook.yml and .markdownlint* names, its MD022/MD024/MD047 rule names and its npm ci, uv sync and dotnet restore install examples). The scaffold declares its markdown check as a package script named docs:check and its README names pnpm install, so the answer must come from where the repository declares its checks, not from the old examples. Rules-only: it runs nothing. Needs --scaffold --allow-tools Bash (the skill''s pre-computed context line).'
max_turns: 12
timeout_seconds: 420
allowed_tools: [Read, Glob, Grep, Skill, Bash]
expected_outcome: 'The reply ends with a LINT line naming the docs:check script and an INSTALL line naming pnpm install, the step the README gives, and no example install step from the old text.'
---

/instruction-placement:migrate Before you plan anything, one question about the apply step. When the migration has moved the instruction content into AGENTS.md in this repository, which markdown check would the run use to catch a broken heading, and what would it need to run first in a fresh worktree? Answer from the skill's rules and this repository's files; don't run, install or change anything yet. End your reply with these two lines:

LINT: <the command or script the run would use>
INSTALL: <the install step it would run first>

case.yaml:

schema_version: "1.1"
name: p16975-mi-markdown-lint-from-repo
context:
  scaffold_script: scaffold.sh
graders:
  - name: 'lint-docs-check'
    type: 'regex'
    pattern: '^\W*LINT:[^\n]*docs:check'
    flags: 'im'
    target: 'last_message'
  - name: 'install-pnpm'
    type: 'regex'
    pattern: '^\W*INSTALL:[^\n]*\bpnpm (?:install|i)\b'
    flags: 'im'
    target: 'last_message'
  - name: 'install-not-npm-ci'
    type: 'regex'
    pattern: '^\W*INSTALL:[^\n]*(?:npm ci|uv sync|dotnet restore)'
    flags: 'im'
    match: not_contains
    target: 'last_message'

Posted by an agent session.

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.

1 participant