39 lines
1.3 KiB
Markdown
39 lines
1.3 KiB
Markdown
|
|
---
|
||
|
|
model: gpt-5.6-sol
|
||
|
|
service: opencode
|
||
|
|
session: wg-netns-bootstrap-entry
|
||
|
|
timestamp: 2026-08-28T01:22:05Z
|
||
|
|
git_ref: 9ae7cd86
|
||
|
|
scope: code
|
||
|
|
substantive: true
|
||
|
|
raw_file: 20260828T012205Z_9ae7cd86_prompt_io.raw.md
|
||
|
|
---
|
||
|
|
|
||
|
|
## Prompt
|
||
|
|
|
||
|
|
After completing and auditing the stacked rebase, the human approved
|
||
|
|
the next WireGuard Layer C slice: integrate the verified network
|
||
|
|
namespace entry primitive into child spawn bootstrap.
|
||
|
|
|
||
|
|
## Response summary
|
||
|
|
|
||
|
|
Wire an optional child-owned namespace FD and expected inode into both
|
||
|
|
child entrypoints. Keep namespace entry and FD closure synchronous and
|
||
|
|
ordered before actor runtime initialization, while deliberately
|
||
|
|
deferring backend FD transport and public API plumbing.
|
||
|
|
|
||
|
|
## Files changed
|
||
|
|
|
||
|
|
- `tractor/spawn/_entry.py` - enter and release an optional inherited
|
||
|
|
namespace capability before multiprocessing child runtime startup.
|
||
|
|
- `tractor/_child.py` - consume the capability at the start of the
|
||
|
|
Trio child bootloader, before patching or actor construction.
|
||
|
|
- `tests/test_netns_spawn.py` - prove entry ordering, failure isolation,
|
||
|
|
and exact FD ownership for both child entrypoints.
|
||
|
|
|
||
|
|
## Human edits
|
||
|
|
|
||
|
|
The human selected spawn-time namespace integration as the next work
|
||
|
|
slice and authorized implementation. No direct manual source edits
|
||
|
|
were observed during generation.
|