Skip to content

FIX: reject a stale cursor in the target, technique, and initializer registries - #4530

Open
Manohar Paturi (ManoharPaturi) wants to merge 1 commit into
microsoft:mainfrom
ManoharPaturi:fix/registry-stale-cursor
Open

Manohar Paturi (ManoharPaturi) wants to merge 1 commit into
microsoft:mainfrom
ManoharPaturi:fix/registry-stale-cursor

Conversation

@ManoharPaturi

Copy link
Copy Markdown
Contributor

Description

Fixes #4525

The target, technique, and initializer list endpoints now reject a cursor naming an entry that no longer exists, raising the same ValueError the scorer registry raises (mapped to 400 by the shared handler), instead of silently restarting at the first page and serving duplicate rows to a paging client. The technique test that pinned the restart by name predates the scorer fix and is updated to the explicit contract with a note.

Tests and Documentation

Three regressions, one per service, each paging with a cursor naming an unregistered entry and asserting the rejection; all fail on main, which serves the first page again. The target, technique, and initializer suites pass at 277 tests and ruff check and format are clean.

No documentation change needed, so I did not run JupyText.

Copilot AI balanced review requested due to automatic review settings November 21, 2026 13:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Registry list endpoints restart at the first page on a stale cursor

2 participants