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

1.2 KiB

Prompt

Continue PR #481 review remediation after committing the debugger-state sampler. The human selected “keep” for the paired review request to use Aid objects as keys in the newly added reap-coordination maps.

Response summary

Migrate only ActorNursery._child_reap_requests and ActorNursery._child_reaped to Aid keys. Preserve the legacy ActorNursery._children .uid key and pass full actor identities through the narrow process-monitor bookkeeping path.

Files changed

  • tractor/runtime/_supervise.py - key fresh reap maps by Aid.
  • tractor/spawn/_spawn.py - pass Aid into completed-reap cleanup.
  • tests/test_to_actor.py - exercise Aid registration keys.

Human edits

The human explicitly selected “keep” after reviewing the scope, performance, and mutability tradeoffs. The human retained the legacy tuple key for _children and accepted Aid for only the two fresh private mappings. No direct source-line edits were made by the human.