Skip to content

refactor(session-bridge): extract the planning/surface transport into a shared lib port with the loopback watcher adapter #5854

Closed

Description

@kyle-sexton

Parent

Refs #5835
Source: PLAN, topic karpathy-comprehension

What to build

Extract the transport inside the planning interview portal (planning/surface: loopback server, token, SSE, long-poll watcher, lease, wake) into a shared library named session-bridge. The transport is a port; the existing loopback watcher is its first adapter. Planning consumes the library and behaves exactly as before. Distributed through the regen flow.

Settled, do not re-decide: name session-bridge; transport is a port; planning first and unchanged.

Out of scope: the native channels adapter (next item) and any new adopter.

Acceptance criteria

  • session-bridge exposes a transport port and a loopback watcher adapter, with its own tests.
  • planning/surface uses session-bridge and contains no transport code of its own.
  • planning's existing test suites pass unchanged.
  • session-bridge is registered with the regen flow and planning is version-bumped.

Blocked by

Activity

  1. added
    agent-ready
    on Oct 2, 2026
  2. added theissue type on Oct 2, 2026
  3. added
    needs-triage
    on Oct 2, 2026
  4. added and removed
    needs-triage
    on Oct 2, 2026
  5. self-assigned this
    on Oct 2, 2026
  6. kyle-sexton commented on Oct 2, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  7. added a commit that references this issue on Oct 3, 2026
    dfd7938
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-ready

Type

Fields

No fields configured for Task.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions