Skip to content

Mobile 1: Decide how a paired device is admitted by DSH across Host restarts (spike + ADR) #1649

Closed

Description

@DoodleBears

Parent

#1644 (hub #1643)

What to build

A time-boxed spike that answers one question and records it as an ADR: how does a paired phone keep calling the Host (unary /api/<method> and the Remote stream socket) after the Host restarts, when DSH's only credential today is the per-process launch token exchanged for a signed cookie (ADR-0159)?

Evaluate, in preference order, against the pinned DSH:

  1. A DSH-native durable session or credential mechanism, including whether the signed authority cookie already survives a restart (the phone QA runbook observed cookies outliving token rotation).
  2. A BotHarness pairing service that holds a per-device secret and exchanges it on the Host for a DSH authority cookie through a supported DSH extension point.
  3. An upstream DSH contribution adding device credentials.
    A second listener or reverse proxy in front of dsh web is the fallback only (ADR-0159 rejected new listeners).

The spike proves the chosen path on a real isolated Host: obtain access, restart the Host, call a bridge method and open a Remote stream with the same device credential, then revoke and see the next call refused.

Acceptance criteria

  • Each candidate assessed with evidence from the pinned DSH (source or live behavior), not assumption
  • Chosen path demonstrated live across a Host restart for both a unary bridge call and a Remote stream
  • Revocation demonstrated to refuse the next call and end an open stream
  • ADR under docs/adr/ records the decision, rejected options and trust boundaries; living architecture updated if a module boundary changes
  • No credential, token or tailnet address committed or logged

Blocked by

  • None (can start immediately)

Activity

  1. added this to the v2.0 milestone on Oct 14, 2026
  2. added
    ready-for-agentFully specified, ready for an AFK agent
    area:backendHost-side implementation
    scope:researchEvidence-gathering or mechanism spike
    feature:identityPersonaBot identity, lifecycle, and deletion
    on Oct 14, 2026
  3. DoodleBears commented on Oct 14, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim

    • Agent: Claude Code
    • Task: claude/cloud/session_01JrrnCatooFQ2u1FxCatQsL (not a DSH Session)
    • Issue scope: spike against pinned DSH 0.2.0-rc.2 and ADR for device admission across Host restarts
    • Branch: claude/project-thread-m59p8d
    • Started: 2026-10-14 07:08 UTC
    • State: active

    Generated by Claude Code

  4. added
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 14, 2026
  5. DoodleBears commented on Oct 14, 2026

    @DoodleBears
    ContributorAuthor

    Agent work outcome


    Generated by Claude Code

  6. removed
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 14, 2026
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

    area:backendHost-side implementationfeature:identityPersonaBot identity, lifecycle, and deletionready-for-agentFully specified, ready for an AFK agentscope:researchEvidence-gathering or mechanism spike

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions