police sweep 2026-06-02: docs sync — MCP lifecycle async behavior - #5
Closed
onebit0fme wants to merge 1 commit into
Closed
police sweep 2026-06-02: docs sync — MCP lifecycle async behavior#5onebit0fme wants to merge 1 commit into
onebit0fme wants to merge 1 commit into
Conversation
discover_traits and synthesize_samples block-and-poll for up to 5 minutes and stream progress notifications on the same request — they do NOT return once enqueued. Only train is fire-and-forget. Updated: - tool table rows to say "Blocks until the run completes, streaming progress" for discover_traits and synthesize_samples vs "Enqueues the run and returns immediately" for train - explanatory prose below the table to distinguish the two behaviors and note that poll/get_model is only needed on timeout/disconnect for the blocking tools Evidence: api/mcp.py discover_traits (lines 1413-1500) and synthesize_samples (1510-1600) block-and-poll up to 300s; train returns after enqueue. https://claude.ai/code/session_015z6Nsyx37deuN4o7kAEQWZ
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.
Docs-sync PR from the 2026-06-02 police sweep (monorepo range: initial HEAD through e64bc77).
Change
api-reference/mcp.mdx— MCP lifecycle tool async-behavior description was incorrect.The page stated that
train,discover_traits, andsynthesize_samplesall "return once the run is enqueued" and instructed callers to "pollget_modelfor the state rather than waiting on the call."Actual behavior (from
api/mcp.py):train— fire-and-forget: enqueues the run and returns immediately. Pollget_modelfor completion. ✓ (doc was correct for this one)discover_traits— blocks until the run finishes, streamingnotifications/progresson the same MCP request stream. May take several minutes.synthesize_samples— same blocking behavior asdiscover_traits.For
discover_traitsandsynthesize_samples, telling callers to "poll rather than waiting on the call" is actively wrong — the call already awaits completion.Fix
Updated the tool-table rows to distinguish the behaviors and rewrote the explanatory prose below the table. No other pages affected (the
/v1REST equivalents correctly say "202 Accepted" / async; MCP's blocking behavior is an MCP-layer concern documented only on this page).https://claude.ai/code/session_015z6Nsyx37deuN4o7kAEQWZ
Generated by Claude Code