Repository navigation
Conversation
…r-phase/step Resolves the comply() preflight timeout on both MCP and A2A transports (#1612). The combined AbortSignal was only checked between storyboards; now it fires at every phase and step boundary inside executeStoryboardPass. https://claude.ai/code/session_018PoRAJU4sTKWvxz6MYf8L7
…ns JSDoc Document that a fired signal rejects the runStoryboard promise (no partial result) — consistent with complyImpl's existing between-storyboard abort. https://claude.ai/code/session_018PoRAJU4sTKWvxz6MYf8L7
…pdate timeout_ms doc runWithDegradedProfile had the same signal gap as complyImpl: it checks signal?.throwIfAborted() between storyboards but didn't pass signal into the runOptions given to runStoryboard, leaving the per-phase/per-step checks dead on the auth-degraded path. Also updates ComplyOptions.timeout_ms JSDoc to document the new phase/step-boundary cancellation behaviour. https://claude.ai/code/session_018PoRAJU4sTKWvxz6MYf8L7
This was referenced May 9, 2026
feat(adapters): add list? option to createDerivedAccountStore for spec-compliant list_accounts
#1630
Closed
Contributor
Author
|
Superseded by #1646 — most of this PR's work landed via #1612 (signal field on StoryboardRunOptions, complyImpl threading, executeStoryboardPass phase/step throwIfAborted). The only remaining gap was |
Contributor
Author
|
Acknowledged — thanks for the context. Work tracked via #1612 and the remaining gap via #1646. Generated by Claude Code |
bokelley
added a commit
that referenced
this pull request
May 10, 2026
…ns (#1646) complyImpl already threads its combined timeout/external AbortSignal into the StoryboardRunOptions it hands to runStoryboard(), so executeStoryboardPass can bail at the next phase/step boundary. The auth-degraded fallback path (runWithDegradedProfile) checked the signal between storyboards but never forwarded it into the runner's options — a single degraded storyboard could still consume the entire timeout budget without firing mid-storyboard. Closes the gap left by #1612 / completes #1615. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Merged
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.
Closes #1612
comply()builds a combinedAbortSignalfromtimeout_msand an optional external signal, but only checked it between storyboards — viasignal?.throwIfAborted()before eachrunStoryboard()call. A single storyboard with many sequential MCP or A2A calls could consume the entire timeout budget without the signal firing inside it. This is the binding constraint behind the reported 307s wall-clock on both MCP and A2A transports against healthy agents (benchmark from @bokelley: PR #1613 head is wall-clock-identical to baseline becausecomplyImpl's loop is the bottleneck, notpollTaskCompletion).Three-part fix:
StoryboardRunOptions.signal?: AbortSignal— new optional field.comply()forwards its combined timeout+external signal automatically; directrunStoryboard()callers can pass their own signal to bound a single storyboard run independently.complyImplandrunWithDegradedProfile— both now spreadsignalinto therunOptionspassed torunStoryboard(). The auth-degraded path had the same gap (signalwas checked between storyboards but not forwarded into the runner's options).executeStoryboardPass— addsoptions.signal?.throwIfAborted()at the start of each phase loop iteration and each step loop iteration.runMultiPassgains the same check at each pass boundary.When the signal fires,
executeStoryboardPassthrows (AbortError) at the next phase/step boundary — the caller receives a rejected promise, not a partial result. This is consistent withcomplyImpl's existing between-storyboard abort behavior; we're just firing at finer granularity.Known nit (not in this PR): The abort fires at the scheduler level (between steps), not inside an in-flight MCP/A2A transport call. A single step that hangs for longer than the remaining timeout will still block until the call resolves. Forwarding
signalintorunStep/executeStepat the transport level is the remaining follow-up.What tested
npm run format:check— cleannpm run typecheck— no new errors across changed files (pre-existingTS2688/TS5107environment-level errors unrelated to these changes, same baseline as PR fix(a2a/comply): three-layer A2A timeout fix — pollTaskCompletion + comply signal + discovery (#1612) #1613)tsx) unavailable in CI environment;tsc --noEmitconfirmed zero new errors incomply.ts,runner.ts,types.tsPre-PR review
runWithDegradedProfilegap not flagged here but caught by protocol expert); 1 nit noted (transport-layer signal forwarding, out of scope per issue author guidance)runWithDegradedProfilerunOptions signal gap closed; same fix pattern ascomplyImpl);ComplyOptions.timeout_msJSDoc updated to reflect per-phase/step cancellation; confirmed non-breaking optional field addition onStoryboardRunOptionsSession: https://claude.ai/code/session_018PoRAJU4sTKWvxz6MYf8L7
Generated by Claude Code