Skip to content

feat(instruction-placement): check rule frontmatter and route file-scoped procedures to path-scoped skills - #7810

Merged
kyle-sexton merged 5 commits into
mainfrom
work-resolve-issue/issue-6193-39058641936-1
Oct 17, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
work-resolve-issue/issue-6193-39058641936-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #6193

Hold: a human merges this

Summary

Opened by the work-resolve-issue lane from work-resolve-issue/issue-6193-39058641936-1, which an earlier run left with commits and no report. The model did not run again, and the earlier run's outcome could not be read, so this body carries none of its text.

Fix

The diff shows the changes.

Verification

The earlier run reported no checks here.

Left out: every check; a person reviews the diff before merging.

Related

#6193

…oped skills, record write-trigger decision

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review needs no new review of a315cdaa9926359f428822e1d46bf8d08f795ae9: no file of this pull request changed since the review of 0813556.

No security issues found in the incremental change (0ce5f03 to 0813556).

The change touches four files, and none of them crosses a trust boundary:

  • plugins/instruction-placement/scripts/lib/discover.sh: The awk frontmatter screen reads a rule file passed as an argument. It does no evaluation and runs no shell on file contents. The edits only reorder when a trailing # comment is stripped and add a check for a value ending in a colon. A screening mistake can only produce a missed or spurious FRONTMATTER row, which an advisory lint check can absorb. The tool states that it is not a YAML parser.
  • plugins/instruction-placement/scripts/glob-tools.test.sh: The new fixtures are static strings written into a temporary repository.
  • plugins/instruction-placement/skills/check/SKILL.md and the changelog fragment: These are documentation edits only. They remove the claude --debug mention and replace it with a docs link. No standing instruction, hook block list or permission rule is deleted or softened, so the instruction-surface lens finds nothing to flag. The protected-class register was not consulted, because no rule was removed.

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

claude-review needs no new review of a315cdaa9926359f428822e1d46bf8d08f795ae9: no file of this pull request changed since the review of 0813556.

Incremental review since 0ce5f03: no findings.

I read the incremental diff and the surrounding ip_frontmatter_problem awk in plugins/instruction-placement/scripts/lib/discover.sh. I could not run glob-tools.test.sh, because the sandbox denied it, so none of this was run.

  • Comment handling: The plain-value comment strip now runs after the quoted and flow branches. A # inside a closed quoted value, such as "Rules for #tags", no longer leaves the value looking unterminated and hides the next line from the screen. The new hashquote test covers this. Under the old ordering the quote would stay open, so the test should fail before the fix.
  • Comment-only values: Moving the empty-value check after the anchor/tag strip, and adding v ~ /^#/, handles key: # comment and key: !!str # comment. Reading the code, both skip cleanly.
  • Trailing colon: The :$ check was already in the code. The diff only corrects the comment and message text, and adds the trailcolon and reserved tests.
  • Test count: The count of 7 matches the seven unparsable fixtures (alias, listalias, colon, tab, reserved, trailcolon, hashquote).
  • Docs: The changelog fragment wording matches the behavior. The SKILL.md edit replaces the restated claude --debug behavior with a pointer carrying an as-of date and a recheck trigger. That fits the repo's skill-body rule.

One edge I did not report: a list item like - src/foo: is flagged, though YAML parses it as a one-key mapping. It is rare and the screen is documented as not a full parser, so I did not block on it.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of 3 on 0ce5f03.

…ding #

Strip a trailing comment only from a plain value, so a quoted value such as
"Rules for #tags" no longer leaves the screen in an open-quote state that
skips every later line. Add fixtures for a reserved @ indicator, a value
ending in a colon, and the quoted-# case. Move the Frontmatter parses row
below Glob resolves so "same" has a referent, give the docs pointer a
recheck trigger, and drop the code span markdownlint MD038 rejected from
the changelog fragment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YcPjcqFavvzkTGBKXMgdXR
@kyle-sexton kyle-sexton changed the title chore: work on #6193 feat(instruction-placement): check rule frontmatter and route file-scoped procedures to path-scoped skills Oct 17, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 17, 2026
Merged via the queue into main with commit d3cb3c1 Oct 17, 2026
29 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-6193-39058641936-1 branch October 17, 2026 23:01
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.

feat(instruction-placement): decide the write-trigger deny, path-scoped skill routing, and rule YAML validation (split from #6101)

1 participant