police sweep 2026-05-31: pagination cursor field + synthesize lifecycle#3
Closed
onebit0fme wants to merge 1 commit into
Closed
police sweep 2026-05-31: pagination cursor field + synthesize lifecycle#3onebit0fme wants to merge 1 commit into
onebit0fme wants to merge 1 commit into
Conversation
- api-reference/introduction.mdx: `next` → `next_cursor` (the actual wire field name on paginated responses; `next` would silently return undefined to callers iterating pages) - concepts/model-lifecycle.mdx: add `synthesize` as a third draft→busy transition in the state diagram, States table, and Mechanism prose; synthesize_samples is a lifecycle-entering operation on par with train and discover https://claude.ai/code/session_01BMNmbn4Rb8JLUbWQu5j8mY
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Two surface-sync fixes driven by the 2026-05-31 monorepo police sweep (1994de5..HEAD).
Fix 1 — Pagination cursor field name (
api-reference/introduction.mdx:74)The conventions table documented the pagination field as
`next`but the actual wire field on every paginated response isnext_cursor. A developer who reads the intro table and writes cursor-following code using.nextwould silently receiveundefinedon every page and loop forever or stop after page 1.Confirmed in
api/v1/routes.py_paginate()and in everyPage_*shape in the OpenAPI snapshot (next_cursor).Change:
`next` cursor→`next_cursor` fieldFix 2 —
synthesizetransition missing from model lifecycle (concepts/model-lifecycle.mdx)synthesize_samplesis a lifecycle-entering operation: it moves a draft model tobusywithlast_operation.kind='synthesize', then returns it todraftwhen complete — same pattern as discovery. The state diagram, the States tablebusyrow, and the Mechanism prose all omitted it.Changes:
draft --> busy: train / discover→train / discover / synthesizebusydescriptionsynthesizebullet alongside thediscoverbulletLeak scan after edits: clean (34 files, no leaks).
Monorepo commit range covered
1994de5..HEAD (33 commits)
https://claude.ai/code/session_01BMNmbn4Rb8JLUbWQu5j8mY
Generated by Claude Code