fix: bound symbolic task-state response latency #353

Open
nsaspy wants to merge 2 commits from rage/coding-task-state-response-timeout into main
Owner

Implements #256 and advances #1.

RED

7425542944482a8803b4017091ff9a56f26c58e6 adds deterministic proof that a task-state response which never becomes readable must time out, terminate the owned process, and remain fenced against silent replacement.

Implementation

f07af10dd370401dd5d2845f419c40a6785d5a5b adds a bounded response deadline (default 5s, max 60s), uses readiness waiting before the bounded line read, terminates the owned process on timeout, and deliberately leaves the dead ownership reference fenced by the #254 crash contract. stop() remains the explicit reset/restart boundary.

The readiness waiter is injectable for deterministic tests; real subprocess pipes use select.select. No Core changes or cross-plugin composition.

Implements #256 and advances #1. ## RED `7425542944482a8803b4017091ff9a56f26c58e6` adds deterministic proof that a task-state response which never becomes readable must time out, terminate the owned process, and remain fenced against silent replacement. ## Implementation `f07af10dd370401dd5d2845f419c40a6785d5a5b` adds a bounded response deadline (default 5s, max 60s), uses readiness waiting before the bounded line read, terminates the owned process on timeout, and deliberately leaves the dead ownership reference fenced by the #254 crash contract. `stop()` remains the explicit reset/restart boundary. The readiness waiter is injectable for deterministic tests; real subprocess pipes use `select.select`. No Core changes or cross-plugin composition.
Some checks failed
CI / test (pull_request) Failing after 16s
This pull request has changes conflicting with the target branch.
  • plugins/zara-coding/lib/zara_coding/task_state.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin rage/coding-task-state-response-timeout:rage/coding-task-state-response-timeout
git switch rage/coding-task-state-response-timeout

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff rage/coding-task-state-response-timeout
git switch rage/coding-task-state-response-timeout
git rebase main
git switch main
git merge --ff-only rage/coding-task-state-response-timeout
git switch rage/coding-task-state-response-timeout
git rebase main
git switch main
git merge --no-ff rage/coding-task-state-response-timeout
git switch main
git merge --squash rage/coding-task-state-response-timeout
git switch main
git merge --ff-only rage/coding-task-state-response-timeout
git switch main
git merge rage/coding-task-state-response-timeout
git push origin main
Sign in to join this conversation.
No description provided.