Skip to content

feat(cli): impact --tests lexical fallback + IDF-weighted pack briefings#453

Merged
rs545837 merged 1 commit into
mainfrom
feat/impact-tests-fallback
Jul 3, 2026
Merged

feat(cli): impact --tests lexical fallback + IDF-weighted pack briefings#453
rs545837 merged 1 commit into
mainfrom
feat/impact-tests-fallback

Conversation

@rs545837

@rs545837 rs545837 commented Jul 3, 2026

Copy link
Copy Markdown
Member

Two fixes from live agent-benchmark failures:

impact --tests answered 'No tests found' for xr.where — tests reach it via a module-namespace call (xr.where(...)), which produces no call edge. Empty tests answers from the sidecar/disk-cache fast paths are now non-authoritative (fall through to the full path), and the full path backstops zero edges with whole-word lexical reachability over test bodies, printed with an explicit '(lexical fallback)' label since it is weaker evidence than a call edge. On the failing case this turns 0 selected tests into a 56-test net (vs 1,900+ for whole-file pytest runs).

--pack briefings misaimed on issues whose key term is a common word ("method") or whose tail is an environment dump. Ranking is now IDF-weighted, <details> blocks are stripped before term extraction, attribute accesses glued to receivers (d2.loc) emit .loc-style suffix terms, and one of three briefing slots goes to the strongest name-echo orient hit (culprits are often NAMED like the issue's API but never mention it in their body). Calibration: 3 of 4 ground-truth issues now put the gold-patch function (or its immediate neighbor) in the briefing, up from 2 of 4.

Note: cwd_resolution diff tests fail identically on clean main (pre-existing, unrelated).

…efings

Empty tests answers from sidecar/disk-cache fast paths now fall through
to the full path instead of printing 'No tests found'; the full path
backstops missing call edges (namespace calls like xr.where) with
whole-word lexical reachability over test bodies, labeled as such.
Briefing ranking: IDF term weights, <details> stripping, .attr suffix
terms, one name-echo slot.

@inspect-review inspect-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

inspect review

Triage: 9 entities analyzed | 0 critical, 0 high, 8 medium, 1 low
Verdict: standard_review

Findings (0)


Reviewed by inspect | Entity-level triage found 0 high-risk changes

@rs545837 rs545837 merged commit df44c68 into main Jul 3, 2026
3 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.

1 participant