fix(docs-hygiene): accumulate soft-wrapped sentences before negation (0.21.7) - #3230
Conversation
|
Claude finished @kyle-sexton's task in 1m 22s —— View job Security review
No security-relevant surface. This PR changes a docs-hygiene bash text classifier ( Per the skip gate, this lane reports security issues only — I'm not flagging correctness/style items (e.g. general code-review concerns belong to |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 90609bb6be
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Last security-reviewed head: |
|
Claude finished @cursor[bot]'s task in 10m 10s —— View job Code review (
|
The line-must-close-its-own-sentence gate withheld every hard-wrapped prohibition: Do not use markdown on one line with in the summary body. on the next never reached a verdict, even with no positive anywhere in the sentence. Join paragraph lines before the negation classifier runs. A wrapped sentence whose positive sits on the continuation is not flagged; a wrapped sentence with no positive is flagged and attributed to the first physical line of that sentence. The other eight shapes stay line-scoped. Closes #3195 Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Classify every sentence in the accumulated paragraph, stop at sibling list items, attribute from unwrapped offsets, and print findings in line-number order. Hold the list-item regex in a variable so bash does not parse the unquoted ). Closes #3195 Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
2d60f62 to
f29626e
Compare
|
Claude has reviewed this PR 2 times. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
Hygiene failed SC2178/SC2034 on the paragraph-flush helpers: a nameref to finding_rows looks like a string assignment, and FIRED_SENTENCE was written after attribution moved onto the split sentence. Closes #3195 Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
… lines %%-anchored prefix search always found the first occurrence, so two identical "Do not use markdown." sentences both reported Finding line of the earlier one. Walk a cursor past each already-seen sentence. Closes #3195 Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Closes #3195 Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Claude finished @cursor[bot]'s task in 1m 11s —— View job Code review (
|
Closes #3195
Summary
0.21.1's "the line must close its own sentence" gate withheld every hard-wrapped prohibition.
Do not use markdownon one line within the summary body.on the next never reached a verdict, even though no positive is paired anywhere in that sentence. That is a silent withhold — the one failure mode the detector-findings admission test asks this rule set to fail away from.Fix
detect.shnow joins paragraph lines before thenegationclassifier runs. The other eight shapes stay line-scoped. Frontmatter, fenced code, exempt sections and opt-out markers still bound the accumulation.A wrapped finding is attributed to the first physical line of the triggering sentence — the line the cue opens on — so the fix action lands on the instruction's start rather than its wrap continuation.
The
SKILL.md"known limitation" bullet is removed. The detector-findings crosswalk row is patched (2.5.1) so its selection text matches the detector that ships.Verification
Finding line= first line of the sentencedetect.test.shcases pass (140 checks)skill-quality:check docs-hygiene:audit-noise— PASScheck-detector-findings-crosswalk.sh --check— PASSRelated