Skip to content

feat(studio): harness transport — daemon + controller client modules - #970

Closed
jtenniswood wants to merge 1 commit into
studio/S04from
studio/S05
Closed

feat(studio): harness transport — daemon + controller client modules#970
jtenniswood wants to merge 1 commit into
studio/S04from
studio/S05

Conversation

@jtenniswood

Copy link
Copy Markdown

Stack 5/21 — Studio: harness transport

src/lib/harness/ whole and final — the browser-side client modules over the proxy routes from PR 3, decoding through the protocol seam from PR 4. Transport only; no UI change.

  • client.ts — the transport monolith (daemon plane + controller plane + the RFC-9457 typed-error machinery, HarnessApiError): landed once at its final state rather than regrown across ten PRs. Controller-plane functions whose routes land in PRs 9/11 exist here without a UI caller yet — guarded honestly (below).
  • wire.ts, watch.ts (the ADR 0250 SSE grammar + cursor-resumed reconnect budget), and the satellites: learning, learned-skills, dream, storage, debug — each with its colocated vitest suite (server-info.ts waits for its only consumer in PR 11).
  • Suites: client-actions (13), client-errors (4), create-body (6 — the proxy strict-decode compatibility pin), watch (10), learning (9), learned-skills (9), dream (6), storage (7), debug (4).
  • One new file that is deliberately NOT from the original branch: client-surface.test.ts, an export-pin smoke test enumerating client.ts's 53 public exports. It makes the not-yet-consumed transport surface knip-visible through a test entry — a permanent, honest guard against surface drift instead of a temporary knip ignore. (Called out as a deviation in the series' closing parity sweep.)

Part of the stacked landing of #618.

🤖 Generated with Claude Code

src/lib/harness lands whole and final: client.ts (the transport monolith —
daemon plane, controller plane, and the RFC-9457 HarnessApiError machinery
every satellite assumes), wire.ts, watch.ts (the ADR 0250 SSE grammar with
cursor-resumed reconnects), and the learning / learned-skills / dream /
storage / debug satellites, each with its colocated vitest suite
(server-info.ts waits for its only consumer, the About card, later in the
series).

One deliberate addition over the original branch: client-surface.test.ts, an
export-pin smoke test enumerating the transport surface. Controller-plane
functions whose UI consumers land later in the series exist here without a
caller; the pin makes that surface knip-visible through a test entry — a
permanent, honest guard against export drift instead of a temporary ignore.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jtenniswood jtenniswood added enhancement New feature or request WebUI Applies to the WebUI interface labels Sep 2, 2026
@jhrozek jhrozek closed this Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request WebUI Applies to the WebUI interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants