tractor/ai/prompt-io/opencode/20260812T150027Z_c2a6ccef_p...

1.1 KiB
Raw Blame History

Prompt

For Tractor PR 490 item three, prevent subscriber closure from waking another receivers shared event or stranding peers. Preserve close-safe source-read ownership handoff, then review, verify and return a complete commit plan.

Response summary

Introduced receiver-local wait/source cancellation, owner-specific handoff, and close precedence over shielded source values/errors/EOC. Clarified that private scope cancellation means explicit close while outer task cancellation remains trio.Cancelled for both source-read and peer-wait scopes, with deterministic receiver-close regressions.

Files changed

  • tractor/trionics/_broadcast.py - receiver-local close and ownership scopes.
  • tests/test_task_broadcasting.py - peer close and owner handoff regressions.

Human edits

None - generated output follows the requested third iterative item.