Skip to content

Promote Develop: Refuse an Include Marker Indented Past the Three-Space Bound - #3631

Merged
ptr727 merged 1 commit into
mainfrom
develop
Oct 29, 2026
Merged

ptr727 merged 1 commit into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Promotes the #3432 include-marker indentation refusal from develop to main.

  • #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

## 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]>
Copilot AI lite review requested due to automatic review settings October 29, 2026 23:14
@coderabbitai

coderabbitai Bot commented Oct 29, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

codecov Bot commented Oct 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.62%. Comparing base (c4add87) to head (15d4c30).
⚠️ Report is 445 commits behind head on main.

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           
Flag Coverage Δ
python-3.13 81.62% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727
ptr727 merged commit 37580fc into main Oct 29, 2026
14 checks passed
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.

Refuse an Include Marker Indented Past Three Spaces Rather Than Skipping It

2 participants