feat(impact): scope homonym symbols with inPath#181
Conversation
Add --in / MCP in for defining-file disambiguation; homonym call graphs union per file instead of merging by name. Docs, changeset, and tests.
Align consumer surfaces, delete shipped plan, fix skipped_scope on unknown symbols with inPath, and add homonym/MCP regression tests.
🦋 Changeset detectedLatest commit: ffdb650 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Warning Review limit reached
More reviews will be available in 51 minutes and 2 seconds. Learn how PR review limits work. Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. 📝 WalkthroughWalkthroughThe PR extends ChangesCore Engine and CLI/MCP Homonym Scoping
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/glossary.md`:
- Line 325: Update the documented result envelope in the "impact" glossary entry
to include the optional skipped_backends? field (an array indicating backends
ignored due to explicit --via mismatch), so the envelope section matches runtime
output from the findImpact engine (application/impact-engine.ts) and the
CLI/MCP/HTTP dispatchers; specifically add `skipped_backends?` alongside
`skipped_scope?` in the envelope description and briefly note that mismatched
explicit `--via` choices populate this field instead of failing.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 3151da89-4645-40be-8432-78d12032fb52
📒 Files selected for processing (20)
.agents/skills/harden-pr/LEDGER.md.changeset/impact-inpath-homonyms.mdREADME.mddocs/architecture.mddocs/glossary.mddocs/plans/impact-inpath-homonyms.mddocs/plans/security-hardening-orchestrator.mddocs/roadmap.mdsrc/application/impact-engine.test.tssrc/application/impact-engine.tssrc/application/mcp-server.test.tssrc/application/mcp-server.tssrc/application/tool-handlers.tssrc/cli/bootstrap.tssrc/cli/cmd-impact.test.tssrc/cli/cmd-impact.tssrc/cli/cmd-mcp.tssrc/cli/main.tstemplates/agent-content/mcp-instructions.mdtemplates/agent-content/skill/10-recipes-context.md
💤 Files with no reviewable changes (1)
- docs/plans/impact-inpath-homonyms.md
Summary
inPath/--in/ MCPinto disambiguate homonym symbols by defining file (same prefix/exact rules ascodemap show --in).matcheswithskipped_scope.docs/architecture.mdand glossary.Test plan
bun test src/application/impact-engine.test.ts src/cli/cmd-impact.test.tsskipped_scopetestsbun run checkSummary by CodeRabbit
New Features
--in <path>option to disambiguate homonym symbols by specifying a defining file in impact analysisDocumentation
skipped_scopefield