T-Q32H-factor-the-triplicated-session-helper-in-host-hosts-cmux
State: closed/done · Impact: low · Complexity: small
From the Phase-4 audit’s recommended task list
(docs/planning/notes/N-OCUK-2026-09-24-sdlc-1-0-audit.md, on origin/sdlc/p4-audit): Factor the
triplicated session() helper in host/hosts/{cmux,orca,terminal}.ts into one shared function.
| Area | Note |
|---|---|
lib/services/host/ | cmux.ts, orca.ts, terminal.ts |
Acceptance criteria
Section titled “Acceptance criteria”- AC-1: One shared session() helper is called from all three host files.
- AC-2: No per-file duplicate remains.
Out of scope
Section titled “Out of scope”- none
Dependencies
Section titled “Dependencies”- none