Skip to content

Desktop exposure resolution carries the listen selection twice #19

Closed

Description

@Khang5687

Parent

Spec: #1 (bind-hosts lane). Surfaced during #9.

What to build

The desktop's exposure resolution keeps a pre-formatted listenSelection string beside the structured listenInterfaces it was built from. After #9 the only reader is a tracing span annotation; every real consumer formats the structured value at the point of use. Remove the string field, annotate the span from the structured value, and keep the ADR 0003 invariant tests (no pre-resolved IP, no wildcard in the envelope) passing against the structured value.

Acceptance criteria

  • One spelling of the selection on the resolution; the span still records it.
  • Desktop exposure, backend configuration and WSL suites pass unchanged in intent.
  • Desktop typecheck clean.

Blocked by

  • None — can start immediately.

Activity

  1. added
    ready-for-agent
    on Sep 16, 2026
  2. Khang5687 commented on Sep 17, 2026

    @Khang5687
    OwnerAuthor

    PR: #28

    Done as described, no deviation. listenSelection is gone from DesktopExposureResolution; the one remaining reader (DesktopServerExposure.setListenInterfaces span) now calls formatListenInterfaces(next.resolution.requested). The ADR 0003 invariant note moved onto requested, and both invariant tests assert against the formatted structured value.

    One thing worth naming: DesktopAppSettings.setListenInterfaces also has a listenSelection span attribute, but it formats its own argument and never read the resolution, so it is not a second spelling of the same value. Left alone.

    Verified: vp test run on desktopExposureSelection, DesktopBackendConfiguration, DesktopServerExposure, DesktopWslBackend, DesktopAppSettings (77 tests pass), and vp run --filter @t3tools/desktop typecheck clean (only pre-existing suggestion diagnostics).

  3. Khang5687 commented on Sep 17, 2026

    @Khang5687
    OwnerAuthor

    Landed in fork-main via #28. Resolution carries requested only; the span formats it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions