Skip to content

police sweep 2026-05-31: pagination cursor field + synthesize lifecycle#3

Closed
onebit0fme wants to merge 1 commit into
mainfrom
police/sweep-2026-05-31
Closed

police sweep 2026-05-31: pagination cursor field + synthesize lifecycle#3
onebit0fme wants to merge 1 commit into
mainfrom
police/sweep-2026-05-31

Conversation

@onebit0fme

Copy link
Copy Markdown
Contributor

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 is next_cursor. A developer who reads the intro table and writes cursor-following code using .next would silently receive undefined on every page and loop forever or stop after page 1.

Confirmed in api/v1/routes.py _paginate() and in every Page_* shape in the OpenAPI snapshot (next_cursor).

Change: `next` cursor`next_cursor` field

Fix 2 — synthesize transition missing from model lifecycle (concepts/model-lifecycle.mdx)

synthesize_samples is a lifecycle-entering operation: it moves a draft model to busy with last_operation.kind='synthesize', then returns it to draft when complete — same pattern as discovery. The state diagram, the States table busy row, and the Mechanism prose all omitted it.

Changes:

  • State diagram: draft --> busy: train / discovertrain / discover / synthesize
  • States table: added "synthesis" to the busy description
  • Mechanism prose: added synthesize bullet alongside the discover bullet

Leak 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

- 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
@mintlify

mintlify Bot commented May 31, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
u22a8 🟢 Ready View Preview May 31, 2026, 7:42 AM

@onebit0fme onebit0fme closed this Jun 6, 2026
@onebit0fme onebit0fme deleted the police/sweep-2026-05-31 branch June 6, 2026 18:23
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.

2 participants