Repository navigation
Refuse an Include Marker Indented Past the Three-Space Bound - #3630
Conversation
A marker line outside a code block that sits deeper than three spaces, or behind a tab, was read as content, so a region inside a list item whose content column is four was never filled while --check exited 0. build_dist.py now refuses such a line with the indentation it found, on the exit-2 path the near-miss refusal already uses. Closes #3432 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fold the space count and the tab-aware width into one column measure in _marker, so the bound reads a tab as CommonMark does without a second helper. A deep near miss now reports its form before its indentation. Tests pin the region-end probe and a list item's own code sample. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
There was a problem hiding this comment.
🟢 Approval recommended
The reviewed parsing changes, regression coverage, documentation, and regenerated artifacts have no active issues, with only a non-blocking docstring nit noted.
No open issues 🎉
What changed in this PR
This pull request updates include-marker parsing to refuse valid markers indented beyond three columns outside code blocks, preventing silently unfilled regions. It also adds regression coverage, updates documentation, and regenerates the affected skill distributions.
Changes:
- Adds column-aware indentation handling, including tab stops, with deep-marker refusal.
- Preserves markers inside fenced and indented code samples as content.
- Expands tests for deep markers, near misses, tabs, source regions, and nested code samples.
- Updates refusal documentation and regenerated skill files and digest.
| File | Summary | Review notes |
|---|---|---|
tests/test_build_dist.py |
Adds regression coverage for deep markers, tabs, near misses, source regions, and code samples. | Nit: Correct the possessive in the test docstring: “list items own.” |
scripts/README.md |
Documents deeply indented markers as a refusal case. | No findings. |
scripts/build_dist.py |
Adds column-aware deep-marker refusal logic and consolidates indentation handling. | No findings. |
.github/skills/skill-lifecycle/SKILL.md |
Updates the regenerated GitHub skill guidance. | No findings. |
.claude-plugin/fleet-skills/skills/skill-lifecycle/SKILL.md |
Updates the regenerated Claude skill guidance. | No findings. |
.claude-plugin/fleet-skills/.source-digests/skill-lifecycle |
Updates the generated skill digest. | No findings. |
.agents/skills/skill-lifecycle/SKILL.md |
Updates the canonical lifecycle guidance. | No findings. |
Review effort: Lite
|
Answer to the one note in Copilot's round on ea9b8523, its table's (1) nit:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3630 +/- ##
========================================
Coverage 81.62% 81.62%
========================================
Files 26 26
Lines 9077 9078 +1
========================================
+ Hits 7409 7410 +1
Misses 1668 1668
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…ce Bound (#3631) Promotes the #3432 include-marker indentation refusal from `develop` to `main`. - [#3630](#3630) Refuses an include marker indented past the three-space bound outside a code block, so a region inside a list item can no longer sit unfilled while `build_dist.py --check` exits 0. Closes #3432 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
scripts/build_dist.pyread an include marker only on a line indented three spaces or fewer. A marker indented further was content, and the near-miss refusal never saw it either. So a region inside a list item whose content column is four was never filled, while--checkstill exited 0. GitHub renders both markers there as HTML comments inside the item, so the author sees a region._markernow measures a line's indentation once, in columns, with a tab reaching the next four-column stop as CommonMark reads it. Outside a code block, a marker past the three-space bound is refused on the exit-2 path the near-miss refusal already uses, with a message naming the width. A deep line that begins like a marker and matches neither form gets the near-miss message first, since the form is the first thing to fix. A marker in a code sample stays content however deep it sits, including a list item's own fenced or indented sample._unindented, which had one caller, is folded into_marker.The refusal lists in
scripts/README.mdand theskill-lifecycleskill each gain the new case, and the generated skill trees are regenerated.Refs #3432
Verification
build_dist.py --checkreports the distributions current, so no Markdown in the tree trips the new refusal.frontiertier. Round one found the stale comment and docstring, the doubled indentation measure, the near-miss message order, and two test gaps. All were fixed. Round two found nothing.🤖 Generated with Claude Code