tractor/ai
Gud Boi 0553fcf88c Reproduce `@context` final-`Return` disconnect cascade
A chart disconnect can leave its context endpoint returning over
a closed channel. Exercise the real `_rpc._invoke()` dispatcher
with loopback TCP and a sibling service to isolate the resulting
`TransportClosed` nursery cancellation.

Deats,
- Order caller close, callee EOF and endpoint completion with
  events instead of timing sleeps or injected transport errors.
- Keep an ordinary-RPC control for existing response hardening.
- Capture the collateral task, actor/PID, nursery, cancel scope
  and cancellation source in a test-generated exception note.
- Record the live IB diagnosis and generated-test provenance.

The ordinary-RPC control passes; the context case remains red
with `ClosedResourceError` wrapped as `TransportClosed`. This
commit establishes the regression before runtime remediation.

Prompt-IO: ai/prompt-io/20261019T140536Z_9a0f220f_final_return_prompt_io.md

(this patch was generated in some part by `opencode` using
`gpt-6.1-sol` (`openai`))
2026-10-19 10:51:17 -04:00
..
conc-anal Restore high-fanout startup cancellation stress 2026-08-26 17:00:44 -04:00
prompt-io Reproduce `@context` final-`Return` disconnect cascade 2026-10-19 10:51:17 -04:00
tooling-todos Add `logspec` leaf-mod Route B follow-up doc 2026-06-17 15:47:07 -04:00
tpt-backends Model bindspaces as scoped capabilities 2026-09-01 15:47:26 -04:00