Add shadow metrics for lexical skill selection - #32761
Merged
copyberry[bot] merged 1 commit intoJul 13, 2026
Merged
Conversation
## What changed - Add an opt-in `skill_search` feature that ranks prompt-visible skills against each turn's user input with a bounded weighted lexical selector. - Keep the ranked selection out of model-visible context and record metrics for selection cost, catalog reduction, and whether later implicit or `skills.read` invocations matched the ranked candidates. - Include host-provided skills in the experiment catalog without changing the rendered skill catalog. ## Testing - Add selector unit tests covering ranking, limits, truncation, stop words, and deterministic tie-breaking. - Add extension tests covering turn-local invocation recording and host-skill shadow selection. GitOrigin-RevId: 4d00a1c805ea8b391d6c6ac6a8450afa88ca3e25
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/4d00a1c805ea8b391d6c6ac6a8450afa88ca3e25
branch
from
July 13, 2026 10:39
fbd9af5 to
c100109
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/4d00a1c805ea8b391d6c6ac6a8450afa88ca3e25
branch
July 13, 2026 10:40
Vincent-Crawl
temporarily deployed
to
issue-triage
July 13, 2026 10:43 — with
GitHub Actions
Inactive
Vincent-Crawl
temporarily deployed
to
issue-triage
July 13, 2026 10:43 — with
GitHub Actions
Inactive
Vincent-Crawl
temporarily deployed
to
issue-triage
July 13, 2026 10:43 — with
GitHub Actions
Inactive
kripypastishka
temporarily deployed
to
issue-triage
July 13, 2026 10:46 — with
GitHub Actions
Inactive
kripypastishka
temporarily deployed
to
issue-triage
July 13, 2026 10:46 — with
GitHub Actions
Inactive
kripypastishka
temporarily deployed
to
issue-triage
July 13, 2026 10:46 — with
GitHub Actions
Inactive
kripypastishka
temporarily deployed
to
issue-triage
July 13, 2026 10:47 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add shadow metrics for lexical skill selection
What changed
skill_searchfeature that ranks prompt-visible skills against each turn's user input with a bounded weighted lexical selector.skills.readinvocations matched the ranked candidates.Testing