tractor/ai/prompt-io/opencode/20260822T042026Z_29141f0b_p...

1.1 KiB

Raw output - model bindspace capabilities

The human authorized the next incremental Layer C change after committing endpoint namespace visibility.

git diff HEAD~1..HEAD -- tractor/discovery/_bindspace.py tractor/discovery/__init__.py tests/discovery/test_bindspace.py ai/tpt-backends/03_wg_tunnel_bindspace.md

Added frozen, serializable BindspaceSpec and BindspaceIdentity models for the initial Linux netns kind. Added a plain slotted BindspaceHandle which carries ownership and an optional namespace FD without being serializable by default msgspec encoding.

The live handle validates declaration/identity kind and name, ownership values, non-negative FDs and FD/inode correspondence. Serializable models reject empty identities and kinds without implementations.

Added round-trip, non-serialization, identity-mismatch, empty-identity and unsupported-kind tests. Ruff passed; discovery plus message-serialization coverage passed 125 tests with 2 xpasses.