Repository navigation
fix(#769): section-aware path extraction; drop background-only citations - #775
Merged
admarble merged 1 commit intoJul 16, 2026
Conversation
extractPathsFromIssueBody treated every backtick-quoted path as a modification target, so sibling issues citing the same doc under ## References produced phantom collisions (and a bogus chain suggestion for groups of 3+). Strip background/citation sections before extraction (the cheap #556 mitigation): a new stripBackgroundSections helper removes content under H1/H2 headings whose text prefix-matches BACKGROUND_SECTIONS (References/Context/Motivation/Additional context/See also), composed before the existing code-block strip. AC-bullet paths survive even when also cited under References. - detectFileCollisions(#760,#761,#762) now returns [] (verbatim fixtures) - #551/#552 still collide on qa/SKILL.md (signal from ## Summary, kept) - predicted-collision-detection.md updated across all 3 skill mirrors - CHANGELOG entry under Unreleased/Fixed Entire-Checkpoint: 31e35be7128c
6 tasks
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
extractPathsFromIssueBody(src/lib/assess-collision-detect.ts) section-aware so a path cited only as background — under## References/## Context/ "Motivation" / "Additional context" / "See also" — is no longer counted as a modification target.stripBackgroundSectionshelper removes content under any H1/H2 heading whose text prefix-matchesBACKGROUND_SECTIONS(case-insensitive), composed before the existingstripCodeBlocksAndComments. "Only in background" ⟺ "absent from foreground", so one pre-strip stage covers every AC with no changes to the downstream path/skill regexes.docs/reference/chain-mode-analysis-2026-05.mdonly under## References.AC coverage
detectFileCollisions(#760,#761,#762)→[](no order/warn/chain)qa/SKILL.md)ISSUE_760/761/762_BODYviagh issue viewpredicted-collision-detection.mdproximity note updated across 3 mirrorsNotable design decision (flagged per spec)
The
assess/SKILL.mdassertion in the old #552extractPathsFromIssueBodytest was itself a false positive: that path is cited only under## Motivation — concrete recent miss(#552 modifiesspec/SKILL.md/qa/SKILL.md, notassess/SKILL.md). Section stripping now correctly drops it, so that test was updated to assert the corrected behavior; a focused synthetic test preservesnormalizeSkillMirrorPathcoverage. The load-bearing #551/#552 collision test (AC-4) is unchanged and still green.Per AC-1's literal denylist,
## Contextis excluded wholesale — a genuine target named only under## Contextbecomes a false negative. This follows the issue's stated preference for the blunt version first; the fuller #556 per-path proximity scoring model remains the documented escape hatch.Test plan
npm run build— cleannpm run lint— cleannpm run lint:skill-sync— 42 synced, 0 divergedvitest runassess-collision-detect (20) + chain-preflight (21) + lib suite (95) — all greenCloses #769