tractor/ai/prompt-io/opencode/20260826T001442Z_dcdf4d82_p...

1.1 KiB

Prompt

The human selected an explicit peer-list model rather than a dial-only single-peer shortcut before open_wg_iface().

Response summary

Added process-local per-peer configuration and refactored interface configuration to own a unique peer tuple. This supports multi-peer listeners and dial targets without overloading role-dependent tunnel maddr identity.

Files changed

  • tractor/discovery/_tunnel.py - peer model and interface peer list.
  • tractor/discovery/__init__.py - public peer-config export.
  • tests/discovery/test_wg_config.py - peer secrecy and validation.
  • ai/tpt-backends/03_wg_tunnel_bindspace.md - explicit multi-peer provisioning contract.

Human edits

The human chose explicit peer lists over a dial-only implementation so listeners can represent multiple client public keys and routing policies. The agent implemented that human-selected design; no direct manual source edits were observed.