You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
code.symbol and code.grep take at_commit, so lead answers as of a past commit #2222
A PR-review agent replays reviews of merged PRs to measure what it would have found at merge time. code.test_gate and code.tests_for take at_commit (#2043), so their test lists keep to what the merge commit held. The lead block on code.symbol and code.grep (#2048) has no such bound:
changed_by lists PRs merged after the reviewed one, so the replay sees the later fix.
tested counts tests from the indexed head, including tests a later fix added.
The client has to filter changed_by by merge date itself, and it cannot filter tested.
Describe the solution you'd like
code.symbol and code.grep take at_commit, with the same validation and meaning as on code.test_gate: a commit the indexed head contains. With it, the lead block answers as of that commit:
changed_by keeps the PRs merged at or before it;
tested keeps the test files that commit holds, and marks a kept file that changed since with changed_since_at, as code.test_gate does;
callers is the head's call graph filtered the same way, and says so.
Describe alternatives you've considered
lead: false and separate calls to code.tests_for with at_commit and to code.symbol_history, filtered by merge date on the client. That is the per-call cost lead was added to remove.
Filtering changed_by on the client by merged_at. It works for changed_by only.
Activity
The lead block of code.symbol and code.grep answers as of at_commit (C…