Skip to content

Add a server-side operation to adopt a legacy session as a chat #593

Description

@JAORMX

Part of #583. Depends on responsive indexed inventory.

Problem

Legacy kind=unknown sessions are inspect-only. Operators can read historical chats but cannot resume or write, even when they know a record was a top-level chat.

Decision

Adoption creates a new explicit-main session from a server-side snapshot copy and retains the original unknown source. It is not physical format migration and not in-place promotion.

Acceptance criteria

  • Authenticated server-side preflight returns capability and stable reason codes.
  • Eligible source is owned, unknown, complete, structurally valid, terminal/idle, not live/awaiting/leased, and has valid tool pairing.
  • Reserved child/team/parallel/scheduled prefixes or relationships remain permanently ineligible.
  • Workspace/environment and provider/model compatibility are explicit; missing bindings require user selection and never silently use today's default.
  • Revalidate every precondition at mutation time.
  • Success creates a new opaque main ID with equivalent transcript, valid resumable state, and an audit relationship to the source.
  • Cross-provider replay data follows existing neutralization rules.
  • Cancel/failure leaves the source untouched.
  • No automatic or bulk adoption and no client-side transcript upload.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions