Skip to content

Fuse recent and lexical skills in shadow selection - #38204

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/1b7b82bc97ea919c719cd05a009351b701019306
Aug 12, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/1b7b82bc97ea919c719cd05a009351b701019306

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Fuse recent and lexical skills in shadow selection

What changed

  • Add the lru_plus_lexical_v1 selector, combining the 50 most recent skills
    with weighted lexical matches through reciprocal rank fusion.
  • Include the combined selector in the shadow-selection experiment and propagate
    query and candidate truncation metadata from both inputs.
  • Generalize the existing reciprocal-rank fusion helper to accept a rank
    constant while preserving the existing lexical/character selector behavior.

Testing

  • Cover lexical-only selection, merging recent and matching skills, promotion
    from agreement between both rankings, and weak overlaps.
  • Extend the skills extension test to verify invocation metrics for the new
    selector alongside lru_v1.

## What changed

- Add the `lru_plus_lexical_v1` selector, combining the 50 most recent skills
  with weighted lexical matches through reciprocal rank fusion.
- Include the combined selector in the shadow-selection experiment and propagate
  query and candidate truncation metadata from both inputs.
- Generalize the existing reciprocal-rank fusion helper to accept a rank
  constant while preserving the existing lexical/character selector behavior.

## Testing

- Cover lexical-only selection, merging recent and matching skills, promotion
  from agreement between both rankings, and weak overlaps.
- Extend the skills extension test to verify invocation metrics for the new
  selector alongside `lru_v1`.

GitOrigin-RevId: 1b7b82bc97ea919c719cd05a009351b701019306
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/1b7b82bc97ea919c719cd05a009351b701019306 branch from 9bd74fd to 3d7f9b4 Compare August 12, 2026 15:19
@copyberry
copyberry Bot merged commit 3d7f9b4 into main Aug 12, 2026
28 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/1b7b82bc97ea919c719cd05a009351b701019306 branch August 12, 2026 15:20
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 12, 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.

1 participant