fix(timeout): honor caller-owned execution deadlines - #107
Merged
Conversation
6 tasks
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
Runtime asked for a 14,400,000ms Pi turn, but cli-bridge discarded that field and killed the process at its unrelated 300,000ms default.
The same process could also be preempted by hidden backend timers, a 600,000ms Docker slot timer, a 7,200-second systemd scope cap, or the OpenCode wrapper.
Change
execution.timeoutMson the structured chat request.Completion criteria
Verification
pnpm test— 608 passed, 6 skipped across 35 files.pnpm vitest run tests/execution-timeout.test.ts tests/opencode-worker-timeout.test.ts tests/durability.test.ts— 25 passed.pnpm typecheck— pass.pnpm build— pass.origin/main, trace-contract tests pass, no suspicious secrets.No paid Claude or Codex model run was used.
The intermittent jailed Pi credential-resolution failure is separate and retained with full completion criteria in #106; the current isolated resolver probe passes, so this PR does not add a speculative fix.
Runtime propagation is in tangle-network/agent-runtime#727.
Both PRs must merge before rerunning the Discovery pursuit.