Repository navigation
state: add explicit native goal execution leases - #797
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Code Review
This pull request introduces a non-blocking advisory file locking mechanism, GoalExecutionLease, to manage execution leases for thread goals. While the implementation is a solid addition, there are two critical issues: first, the code will fail to compile because std::fs::File lacks a try_lock method and std::fs::TryLockError does not exist in the standard library (requiring an external crate like fs2); second, the try_acquire_goal_execution_lease async function performs blocking file I/O directly on the async executor thread, which should be offloaded to tokio::task::spawn_blocking to prevent thread starvation.
* state: add explicit goal execution leases * test: handshake native goal lease contention * test: frame goal lease subprocess markers * test: match framed goal lease markers * state: make goal lease quality clean * test: apply hosted formatting corrections
Summary
codex-stateValidation
rust-ci-fullrun 34043020165This change is limited to the native execution lease primitive; higher-level goal continuation and control behavior are not included.