Repository navigation
Conversation
## Summary `scripts/build_dist.py` read 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 `--check` still exited 0. GitHub renders both markers there as HTML comments inside the item, so the author sees a region. `_marker` now 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.md` and the `skill-lifecycle` skill each gain the new case, and the generated skill trees are regenerated. Refs #3432 ## Verification - New tests pin the issue's constructed case at four and six spaces and behind two tab forms. They also pin a deep marker in a source file and a deep end marker under a shallow opener, which is the region-end probe. A deep near miss is named as one, and a list item's own fenced and indented code samples stay content. - `build_dist.py --check` reports the distributions current, so no Markdown in the tree trips the new refusal. - The full suite ran 3087 tests, OK (skipped=7). - The local strict review ran two rounds at the `frontier` tier. 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](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported, so the change is suitable for approval.
No open issues 🎉
What changed in this PR
Promotes the include-marker indentation validation fix from develop to main, preventing markers indented beyond the three-column CommonMark bound from being silently ignored outside code blocks.
Changes:
- Rejects deeply indented include markers while preserving markers inside code blocks.
- Adds coverage for spaces, tabs, source markers, end markers, near misses, and code samples.
- Updates build documentation, lifecycle guidance, generated skill distributions, and the source digest.
| File | Description |
|---|---|
tests/test_build_dist.py |
Adds regression coverage for deep markers, tab indentation, source regions, near misses, and code samples. |
scripts/README.md |
Documents deep marker indentation as a refusal condition. |
scripts/build_dist.py |
Measures marker indentation in columns and refuses out-of-bound markers outside code blocks. |
.github/skills/skill-lifecycle/SKILL.md |
Regenerated GitHub Copilot skill distribution. |
.claude-plugin/fleet-skills/skills/skill-lifecycle/SKILL.md |
Regenerated Claude plugin skill distribution. |
.claude-plugin/fleet-skills/.source-digests/skill-lifecycle |
Updates the generated skill source digest. |
.agents/skills/skill-lifecycle/SKILL.md |
Updates the canonical lifecycle guidance. |
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3631 +/- ##
=======================================
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:
|
Promotes the #3432 include-marker indentation refusal from
developtomain.build_dist.py --checkexits 0.Closes #3432
🤖 Generated with Claude Code