tractor/ai/prompt-io/opencode/20260824T223614Z_88d538e3_p...

1.2 KiB

Prompt

Continue PR #481 review remediation after committing the shared Context.cancel() deadline fix. The human accepted the proposed child-reap bookkeeping invariant, asking only that the first fix receive its own commit plan and commit before this update began.

Response summary

Check that ActorNursery removes its paired reap-coordination entries together while preserving valid pre-registration and immediate-cancel paths. Extend the existing real-runtime reap tests to prove all three child bookkeeping mappings are empty before to_actor.run() returns.

Files changed

  • tractor/runtime/_supervise.py - assert paired reap-map cleanup.
  • tests/test_to_actor.py - verify graceful and hard-reap bookkeeping.

Human edits

The human explicitly accepted this invariant update but directed the preceding cancellation fix to be planned and committed as a separate boundary first. No direct source-line edits were made by the human.