Repository navigation
feat(context7): probe the top candidates instead of asking on an ambiguous library match - #12652
Conversation
Lane-Activity: work-resolve-issue/resolve-issue
…1562763065-1' into fix/12605-replacement
lk-ambiguous-probes-candidates grades that the lookup runs ctx7 docs against both close candidates; lk-ambiguous-names-choice grades that the reply names the chosen and the rejected library ID and asks no clarifying question. Each prompt carries the ctx7 output the eval sandbox cannot produce, so neither case depends on a working ctx7 or MCP server. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Vcupom3BKF6QuC5U3sRJPj
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #12652 (head 322bc1d)No security issues found. I read the whole diff: all 10 listed files and every hunk. None of them is on a trusted path. What changed
Instruction-surface lens. The diff softens a standing instruction: it removes
Evals. Each new case sets Plugin manifests. No PR context. The PR description has no text addressed to the review lane. Spend. The two new eval cases ( critical-findings: 0 |
|
claude-review reviewed Code review: PR #12652, context7 lookup probes the top candidates on an ambiguous matchScope: I read every hunk of all 10 changed files: the changelog fragment, the step 5 edit in Closing issue #12589, Done when:
Notes, not findings:
No plugin manifest changed, so the manifest checks do not apply. The PR context file contains no embedded instructions. |
lk-ambiguous-tie-asks pastes two probe results that both document the retry option, and requires the reply to name both library IDs and ask which one the user means. Without it, dropping the step's tie-case sentence left every lookup eval passing. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Vcupom3BKF6QuC5U3sRJPj
|
claude-review reviewed Code review: PR #12652, context7 lookup probes the top candidates on an ambiguous matchNo findings. What I read: every hunk of all 14 changed files. That covers the changelog fragment, the step 5 edit in Last round's finding: the last round had one advisory finding: the tie-case clause had no test that could fail (thread). This head fixes it with the new
If the "Ask the user only when both answer the question equally well" sentence is deleted from step 5, this case fails. The Closing issue #12589, Done when:
Notes (not counted as findings):
No plugin manifest changed, so the manifest checks don't apply. The PR context file and the settled-threads file contain no embedded instructions. |
|
claude-security-review reviewed Security review: PR #12652 (head 31a6479)I found no security issues. I read the whole diff: all 14 listed files and every hunk in them. None of them matches a trusted path. Since the last review (322bc1d). The only new content is the eval case Instruction-surface lens. In
No class matches, so this is not a finding. Plugin manifests. The diff changes no Settled threads. One owner-settled thread on Prior findings. This lane's earlier post had no findings, so nothing is repeated. The round cap did not apply. PR context. The description has no text addressed to the review lane. Spend. The three new eval cases ( critical-findings: 0 |
Closes #12589
Summary
Replaces #12605. Its pr-unblock
address-feedbackrun stopped withfeedback-unadjudicatedand labeled itneeds-session. That left review threadPRRT_kwDOTCGFQM6y9FDBopen. The thread notes that no eval covers the three done-when items of #12589. The lane agreed the gap is real but did not add a case. It reasoned that the eval sandbox cannot load ctx7, so a probe case could never get library IDs. This PR carries #12605's change unchanged and adds the missing cases. Each prompt includes the ctx7 output, so neither case needs a working ctx7.Fix
plugins/context7/skills/lookup/context/lookup.mdstep 5 and the changelog fragment come from feat(context7): probe the top candidates instead of asking on an ambiguous library match #12605 without changes. On an ambiguous match, the lookup now probes the top two candidates, picks the one whose docs answer the question, and names the rejected runner-up.lk-ambiguous-probes-candidates. The prompt pastes actx7 libraryresult with two close candidates. Twotool_usedgraders, one per candidate ID, require actx7 docscall with each ID. Atool_usedgrader matches the call's input, so a call counts even when the CLI fails in the sandbox.lk-ambiguous-names-choice. The prompt pastes the library result and both probe outputs. Only one candidate's docs answer the question. Three graders:regexthat requires both IDs in the reply;not_containsregex for a "which library do you mean" question;llmgrader that checks the reply chose the library that answers and presents the other as rejected.lk-ambiguous-tie-asks. Both pasted probe outputs document a retry option. One regex requires both IDs in the reply, and a second requires a question asking which library the user means. This covers the tie-case clause of the second done-when item.5. For ambiguous cases, ask the user before guessingdirected, fails the first case's probe graders and the second case's no-question grader.Verification
python3 plugins/evals/skills/validate/scripts/validate-cases.py plugins/context7/evals: 0 FAIL. Every deterministic grader passes its must-pass samples and rejects its must-fail samples, including the old ask-first reply. The new cases raise one WARN each:allowed_tools lists Bash. Every existing context7 case raises the same WARN. Bash stays because the lookup SKILL.md has a pre-computedctx7 --versionline, and without Bash that line does not load.markdownlint-cli2on both newprompt.mdfiles andlookup.md: 0 issues.Not verified
claude plugin evalrun. One risk inlk-ambiguous-probes-candidates: the model could rerunctx7 library, see it crash, and stop before it probes. Only a real run would show whether that happens.plugins/context7/skills/lookup/vendor/find-docs/SKILL.mdstill says to request clarification. It is upstream content and was left unchanged, as in feat(context7): probe the top candidates instead of asking on an ambiguous library match #12605.Related
do-not-merge)🤖 Generated with Claude Code
https://claude.ai/code/session_01Vcupom3BKF6QuC5U3sRJPj