Skip to content

fix(core): let shell and exec inherit task deadlines - #396

Merged
lg2m merged 2 commits into
test/durable-goal-recoveryfrom
fix/task-command-deadlines
Oct 21, 2026
Merged

lg2m merged 2 commits into
test/durable-goal-recoveryfrom
fix/task-command-deadlines

Conversation

@lg2m

@lg2m lg2m commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

A build with a ten-minute task budget could still be killed after two minutes. Omitted shell/exec timeouts now use the task deadline without adding a command runtime cap. Explicit command timeouts can shorten that deadline; native admission freezes the result before connection or preparation so retries cannot renew it. With neither deadline, execution ends on completion or cancellation. Preparation remains bounded separately.

Verified: three regressions failed before the fix, including real commands held beyond the old limit with a controlled clock. All 23 focused core tests and 11 worker/CLI tests pass, covering task expiry, explicit timeout, cancellation, saturated output, receipt persistence and restart-to-artifact verification. The receipt-timeout fixture now requests its limit explicitly. Formatting, lint and core/binary Clippy pass; full checks run in CI.

Stacked on #395. Native filesystem, network, credential and resource containment remains separate work.

@lg2m lg2m added the ci:full label Oct 21, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-21T12:28:35.698448Z
We couldn’t complete this review. Comment @codex review to try again.
1328296 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m
lg2m added this pull request to stack #392 October 21, 2026 12:31
@lg2m
lg2m merged commit 00f65c1 into main Oct 21, 2026
8 checks passed
@lg2m
lg2m deleted the fix/task-command-deadlines branch October 21, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant