tractor/ai/prompt-io/opencode/20260818T031532Z_4151b956_p...

1.5 KiB
Raw Blame History

Prompt

Address the approved review findings on PR #481, but work iteratively: implement and verify one finding at a time, prepare a separate /commit-plan after each fix, and stop for the human commit before starting the next finding. Begin with the P1 per-child lifecycle issue. Also publish the already-approved review findings against the reviewed PR head before editing.

Response summary

Published the approved non-approving review at head 4151b956, then implemented only the P1 lifecycle fix. Owned one-shot actors now use a child-specific cancellation and process-reap handshake, including hard escalation for unacknowledged cancellation and deterministic bookkeeping removal before to_actor.run() returns.

Files changed

  • tractor/runtime/_supervise.py - coordinate child-specific cancel and reap.
  • tractor/spawn/_trio.py - wait on the Trio childs reap request.
  • tractor/spawn/_mp.py - wait on the multiprocessing childs reap request.
  • tractor/spawn/_spawn.py - publish monitor completion centrally.
  • tractor/to_actor/_api.py - await owned-child process reaping.
  • tests/test_to_actor.py - cover cleanup, escalation, and startup ordering.

Human edits

None - the generated P1 patch remains uncommitted for human review.