tractor/ai/prompt-io/opencode/20260830T025202Z_b1f6ade8_p...

1.1 KiB
Raw Blame History

Raw output - bootstrap the root actor in a bindspace

The human deferred multiprocessing descriptor transport, selected root namespace bootstrap as the next Layer C stage, approved enter/restore semantics and public tractor.net composition, and authorized implementation.

Generated code

git diff HEAD~1..HEAD -- tractor/_root.py tractor/spawn/_netns.py

Add an optional realized Bindspace to open_root_actor(). Duplicate its namespace FD, enter before debugger, registry, IPC, or runtime startup, and restore the caller threads original namespace after root teardown. Preserve caller FD ownership and primary errors across restoration and close failures.

git diff HEAD~1..HEAD -- tests/test_netns_spawn.py tests/net/test_wg_iface_lifecycle.py docs/api/net.rst

Exercise same-netns behavior, body errors, cancellation, restoration failures, missing and closed FDs, real root entry/restoration under an unprivileged user namespace, and public WireGuard-bindspace/root composition.