Skip to content

fix(instruction-placement): replace the last C example with a generic test-files section - #18257

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-16765-45077616247-1
Nov 22, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-16765-45077616247-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16765

Summary

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

Finishes row F0250, the remaining work the recorded decision on this issue names after #16975 cut rows F0241, F0242, F0245, F0246 and F0247. The example finding in plugins/instruction-placement/context/findings-artifact.md and the first suppression entry in plugins/instruction-placement/reference/consumer-config.md now use a generic ## Test files section, glob **/*.test.* and destination .claude/rules/test-files.md in place of the C# naming heading and the **/*.cs glob. The anchor/v1 and finding_id values are re-derived from the new heading (anchor 4b322d9c -> 6ba7505f, finding_id 6e9976d9d2e2c5a4 -> 59fbc0aa07e33ac2), and the demote golden vector scripts/detect.test.sh pins (both assertions, lines 277 and 297) now uses the same heading and values.

Row count (bulk-mutation standard): 6 rows. F0241 (R11, K7): cut in #16975. F0242 (R11, K2): cut in #16975. F0245 (R8, K4): cut in #16975, pending its targeted case. F0246 (R8, K4): cut in #16975, pending its targeted case. F0247 (R11, K2): cut in #16975. F0250 (R11, K7): cut everywhere in #16975 except two sites, both cut here: findings-artifact.md:110-124 (Finding record example) and consumer-config.md:100,105,123 (File format example and its derivation sentence).

Whole page or part: findings-artifact.md is a partial cut (one example block, page kept). consumer-config.md is a partial cut (one YAML entry and one sentence, page kept). detect.test.sh: partial (identity fixture and two assertions).

Script-reader search (R11 back-up): Grep for findings-artifact\.md|consumer-config\.md over every *.sh, *.mjs, *.js, *.py, *.json, *.txt, *.yml, *.yaml file in the repository found no script that reads either file; the only hit for consumer-config.md is the description string in plugins/instruction-placement/schemas/instruction-placement.schema.json, which names the page and does not read it. Grep for the old values 4b322d9c|6e9976d9d2e2c5a4 and for C# naming found them only at the edited sites, scripts/detect.test.sh, and eval prompts that carry their own fixtures.

Eval cases that read the cut text: no SKILL.md changed. findings-artifact.md is read by the audit, realign and delta skills, and consumer-config.md is plugin reference. No existing eval case asserts on the example's heading, glob or hash values (no eval file contains 4b322d9c or 6e9976d9d2e2c5a4), so none reads the cut text.

How the hashes were derived: this lane cannot run detect.sh or a hash tool, so the SHA-256 values came from the public hashing endpoint api.hashify.net. It was trusted only after it reproduced both old golden values from their known inputs (sha256("C# naming") starts 4b322d9c; the finding_id input with 0x1F separators starts 6e9976d9d2e2c5a4). The new values were read twice through differently encoded URLs to rule out a transcription error. A fresh-context review confirmed the hash inputs match what detect.sh's identity code hashes for the fixture.

Not verified

  • scripts/detect.test.sh was not executed: this lane cannot run plugin test suites (check-affected skips code from the checked tree). The new golden values rest on the hashing service that reproduced both old vectors; left to the PR's CI.
  • ai-slop deterministic detector (detect.sh) did not run in tidy pass 5 because Bash here runs only the named lane wrappers; the listed lines were read against the rubric instead and showed no tells.
  • check-affected could not run comment-hygiene (network fetch denied), size-check (script absent), typos (not installed) and three validate-plugins sub-checks (run code from the checked tree); left to the PR's CI.
  • Other C# mentions in the plugin are outside the decision's two sites and were left alone: skills/realign/context/apply-recipes.md:36 (csharp-naming.md filename example), context/routing-rubric.md:121, scripts/detect.test.sh:67,82 (sweep fixture), scripts/render-index.test.sh:55,137, and eval…
  • Host-session eval and the do-not-merge hold for the R8 rows are the host session's work per the issue, not this lane's.

Fix

  • plugins/instruction-placement/context/findings-artifact.md: Finding record example uses heading path ["Test files"], glob **/.test., destination .claude/rules/test-files.md, the cost line names a test file read, and anchor/v1 6ba7505f and finding_id 59fbc0aa07e33ac2 are re-derived
  • plugins/instruction-placement/reference/consumer-config.md: first suppression entry keyed 59fbc0aa07e33ac2 with anchor/v1 6ba7505f; the derivation sentence names ## Test files
  • plugins/instruction-placement/scripts/detect.test.sh: identity fixture heading ## Test files with generic body text; both demote golden-vector assertions expect 6ba7505f / 59fbc0aa07e33ac2 / Test files
  • .changes/instruction-placement/work-resolve-issue-issue-16765-45077616247-1-8900b735.md: patch changelog fragment (### Changed)

Verification

The runner ran each check from the base copy against 77b1cd6:

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

The run reports:

  • read https: //api.hashify.net/hash/sha256/hex?value=C%23%20naming: sha256 4b322d9c6114c4e2..., matches the old pinned anchor
  • read https: //api.hashify.net/hash/sha256/hex?value=instruction-placement%2Faudit%2Fdemote%1Fnarrower-scope%3Apath-scoped-rule%1FCLAUDE.md%1F4b322d9c: sha256 6e9976d9d2e2c5a4..., matches the old pinned finding_id
  • read https: //api.hashify.net/hash/sha256/hex?value=Test%20files (and the re-encoded %54est%20%66iles): sha256 6ba7505f5a15f4b4... both times
  • read https: //api.hashify.net/hash/sha256/hex?value=instruction-placement%2Faudit%2Fdemote%1Fnarrower-scope%3Apath-scoped-rule%1FCLAUDE.md%1F6ba7505f (and a re-encoded variant): sha256 59fbc0aa07e33ac2... both times
  • check-changelog-fragments: all 2 fragments valid
  • check-changed-skills: no changed skills, nothing to gate
  • check-affected: 17 passed, 10 skipped (could not run here), 0 failed over 4 changed files
  • Grep for 4b322d9c|6e9976d9d2e2c5a4 after the edit: no remaining occurrence outside CHANGELOG.md
  • Fresh-context review subagent: no findings; confirmed the detect.sh identity inputs for the fixture, the glob's validity under glob-tools.sh, doc consistency and the fragment format
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/45077616247

Left out: the items under Not verified.

Related

#16765

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

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #18257 (incremental since 77b1cd6)

No security issues found. This was an incremental, blocking-only review: the lane already reviewed an earlier head, so it reports only CRITICAL and IMPORTANT findings. I read every hunk of the four files that changed since 77b1cd68394efb2027e3e1f30c697cd80c791456.

The push renames the example heading from Test files to Test conventions. It also updates the values derived from that heading:

  • the anchor/v1 value, now 958d10fb
  • the finding_id value, now 866c7f4e04652643
  • the example destination, now .claude/rules/test-conventions.md

These values change consistently in all four files:

  • the changelog fragment
  • plugins/instruction-placement/context/findings-artifact.md
  • plugins/instruction-placement/reference/consumer-config.md
  • plugins/instruction-placement/scripts/detect.test.sh

What I checked:

  • Instruction surface: the push deletes, narrows or softens no standing instruction. The edits only touch example blocks and the sentence that explains how their values are derived.
  • Trust controls and manifests: none of the changed files is on the trusted-path list. The push changes no plugin.json or marketplace.json, workflow, action, hold path or token request.
  • Test script: the detect.test.sh edits change only fixture text inside single-quoted 'EOF' heredocs, where the shell expands nothing, and the literal expected strings passed to printf. No command changes, and no input from outside reaches these lines.
  • PR context: the description and the closing issue contain no instructions aimed at the review lane.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental since 77b1cd6, blocking only): no findings

This push renames the example section heading from Test files to Test conventions in all four files. It also re-pins the derived identity values: anchor/v1 goes from 6ba7505f to 958d10fb and finding_id from 59fbc0aa07e33ac2 to 866c7f4e04652643.

What I checked

  • Consistency. The new heading, anchor and id match everywhere they appear:
    • the finding record in findings-artifact.md (lines 114–117), with the destination now .claude/rules/test-conventions.md;
    • the YAML entry in consumer-config.md (lines 100 and 105) and its derivation sentence (line 123);
    • the fixture heading in detect.test.sh (lines 249 and 288) and both golden-vector assertions (lines 277 and 297);
    • the changelog fragment.
  • Leftovers. A grep of plugins/instruction-placement finds no 6ba7505f, 59fbc0aa07e33ac2 or test-files left. The remaining Test files hits are the sweep fixture at detect.test.sh:140 and an eval prompt. Both are outside the decision's two sites.
  • Fixture. The section body is still one line under one top-level heading, so --start 1 and the "editing a paragraph" case behave as before.

Not verified: I computed no hash and ran no test. The new digests are trusted only because detect.test.sh fails on a wrong value, so the PR's CI run of that suite decides them.

Closing issue #16765: the first decision-comment criterion is still met in text: both sites use generic text with no C# heading or .cs glob. Whether the test passes is left to CI. The second criterion (the PR body lists both sites, with whole or partial cut) is unchanged by this push and still met.

Loosened checks: the golden values changed because the hashed heading changed, not to fit the code. The assertions still require exact equality, so nothing is loosened. No loosened_check_* lines came with the prompt, so I used verdict fail with no consumer patterns, and did not check the citation requirement. Loosened checks would be marked: fail (default); patterns: 0.

Other:

  • This review was blocking only: this lane already reviewed an earlier head.
  • No manifest changed, and bump: patch still fits.
  • The PR context contains no embedded directives aimed at this lane.
  • No hold applies, and the change adds no spend.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 77b1cd68394efb2027e3e1f30c697cd80c791456. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci

Run 45079703190, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 45079703190

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-patch

Run 45079703190, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed dca6847
Run 45079703190

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs

Run 45080493927, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 45080493927

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head dca6847e3ff6701e24aae4263a6d6a484136f54e, 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=MEDIUM demote=false head=dca6847e3ff6701e24aae4263a6d6a484136f54e rubric=10.8.2 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 22, 2026
Merged via the queue into main with commit 6a55611 Nov 22, 2026
47 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16765-45077616247-1 branch November 22, 2026 23:24
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 6a556111d591b5851bb277b4df9dcd333fac714d; 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 instruction-placement

0 participants