Skip to content

Add shadow metrics for lexical skill selection - #32761

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4d00a1c805ea8b391d6c6ac6a8450afa88ca3e25
Jul 13, 2026
Merged

Add shadow metrics for lexical skill selection#32761
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4d00a1c805ea8b391d6c6ac6a8450afa88ca3e25

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 13, 2026

Copy link
Copy Markdown

Add shadow metrics for lexical skill selection

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.

## 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
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/4d00a1c805ea8b391d6c6ac6a8450afa88ca3e25 branch from fbd9af5 to c100109 Compare July 13, 2026 10:39
@copyberry
copyberry Bot merged commit c100109 into main Jul 13, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/4d00a1c805ea8b391d6c6ac6a8450afa88ca3e25 branch July 13, 2026 10:40
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants