Skip to content

fix(#769): section-aware path extraction; drop background-only citations - #775

Merged
admarble merged 1 commit into
mainfrom
feature/769-fix-assess-path-extraction-counts-cited-paths-as-m
Jul 16, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/769-fix-assess-path-extraction-counts-cited-paths-as-m

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

AC coverage

AC Description Status
AC-1 Background-only path not extracted ✅ unit (References-only + Context/Motivation/Additional/See-also)
AC-2 AC-bullet path still extracted even when also under References ✅ unit
AC-3 detectFileCollisions(#760,#761,#762) → [] (no order/warn/chain) ✅ unit (verbatim bodies)
AC-4 Existing #556 true positive still fires (#551/#552 → qa/SKILL.md) ✅ existing test unchanged
AC-5 Verbatim real issue bodies as fixtures ✅ ISSUE_760/761/762_BODY via gh issue view
AC-6 predicted-collision-detection.md proximity note updated across 3 mirrors ✅ 3/3 synced

Notable design decision (flagged per spec)

The assess/SKILL.md assertion in the old #552 extractPathsFromIssueBody test was itself a false positive: that path is cited only under ## Motivation — concrete recent miss (#552 modifies spec/SKILL.md/qa/SKILL.md, not assess/SKILL.md). Section stripping now correctly drops it, so that test was updated to assert the corrected behavior; a focused synthetic test preserves normalizeSkillMirrorPath coverage. The load-bearing #551/#552 collision test (AC-4) is unchanged and still green.

Per AC-1's literal denylist, ## Context is excluded wholesale — a genuine target named only under ## Context becomes 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 — clean
  • npm run lint — clean
  • npm run lint:skill-sync — 42 synced, 0 diverged
  • vitest run assess-collision-detect (20) + chain-preflight (21) + lib suite (95) — all green

Closes #769

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
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.

fix(assess): path extraction counts cited paths as modification targets, producing phantom collisions

1 participant