Repository navigation
Continue a paused run that needs a session on its own request (0.261.482) - #1978
Merged
Paul Lizer (paullizer) merged 1 commit intoNov 23, 2026
Conversation
…482) A run paused on a pending spreadsheet computation was resumed by the scheduler, which has no session. A result that names an external source is authorized against the session on every read, so that resume could only fail, and the failure never reached the hook that starts the next attempt. - A run saved as waiting records whether its results need a session, decided from result lineage only. - The scheduler leaves a marked run alone and still closes it at its deadline. - The request that started the run continues it on its own worker with the request's identity, then follows a failed run as before. The session requirement is unchanged. A browser continue route for a worker lost during the pause is recorded as open item 28, not built. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Paul Lizer (paullizer)
merged commit Nov 23, 2026
3d69fa7
into
microsoft:Development
14 checks passed
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.
Problem
In the 0.261.477 and 0.261.478 test runs, prompts failed after a pause with
context_unavailableorresult_unavailable, reasonexternal_identity_session_unavailable.waiting) on a pending spreadsheet computation and its request ended.Change
waitingrecordscontinuation_requires_session, decided from result lineage only (OrchestrationResults.lineage_names_external_source). No content is read and nothing is authorized. A lineage that cannot be read counts as needing a session._process_rundefers a marked run (session_required) instead of claiming it. It still closes a marked run at its deadline._continue_waiting_runcontinues the request's own paused run with the request's identity, using the same claim and saved-wait checkpoints the scheduler uses. It retries while the pending work is not ready (pause grows from 5 to 30 seconds) and stops when the run is no longer paused, is cancelled, or passes its deadline.The session requirement itself is unchanged. Paused runs that need no session, and waits for credentials or user input, behave as before.
Not in this PR
ORCHESTRATION_REACTIVE_LOOP_PROPOSAL.md.Testing
test_orchestration_external_results.py,test_orchestration_harness_scheduler.pyandtest_orchestration_harness_routes.pycover the lineage check with no session, the marker on a real paused run, the scheduler deferral and timeout, and the hook's claim, identity, pauses and stop conditions.test_orchestration_harness_scheduler.pyhas 12 failures, the same count as on Development before this change.HarnessExecution._finalize, changed in body; it gained one saved field and no storage call).Docs:
docs/explanation/fixes/PAUSED_RUN_SESSION_CONTINUATION_FIX.md.🤖 Generated with Claude Code