Skip to content

spike: prototype an operator-assisted TV Seller Office CLI #51

Description

@altaywtf

Depends on: #50

Outcome

Prototype an asc-style, agent-friendly CLI surface for Samsung TV Seller Office while preserving a human-owned Samsung session and an explicit final-submission gate.

The target UX is discoverable and JSON-first:

taizn seller login
taizn seller apps list --json
taizn seller apps info <seller-app-id> --json
taizn seller versions list <seller-app-id> --json
taizn seller upload <seller-app-id> <package.wgt> --dry-run
taizn seller pretest <seller-app-id> <version> --json
taizn seller submit <seller-app-id> <version> --dry-run
taizn seller status <seller-app-id> <version> --json

Unlike App Store Connect, Samsung does not currently document a scoped TV Seller Office API-key flow. Apple’s asc model is backed by a documented REST API and role-based API keys; Samsung’s public TV documentation currently describes browser-only portal operations.

Official references:

Phase 1: read-only local prototype

Prototype a local operator-assisted adapter against the authenticated portal UI:

  • use a visible browser and a human-completed Samsung login/MFA flow
  • reuse only an app-local encrypted/session handle or an explicitly selected browser profile; never accept or store the Samsung password
  • start with read-only app, package-version, model-group, coverage, and certification-status discovery
  • emit stable JSON schemas that do not expose cookies, tokens, private account details, or raw portal responses
  • isolate portal selectors/navigation behind one adapter so UI drift fails clearly
  • rate-limit operations and avoid undocumented direct HTTP endpoints

Phase 2: guarded mutations

Only after the read-only prototype is reliable:

  • upload validates the feat: prepare deterministic Samsung TV Seller Office submissions #50 submission manifest and exact SHA-256 before selecting the WGT
  • upload waits for Samsung’s automatic pre-test and records the result
  • submit --dry-run reports the exact app, version, model groups, countries, release notes, update policy, and phased-rollout choice
  • the real submit requires an explicit confirmation flag and refuses ambiguous or changed coverage
  • commands are idempotent and detect already-uploaded/submitted versions
  • every mutation writes a sanitized receipt with time, artifact digest, Seller app/version identity, and resulting status

Acceptance criteria

  • The CLI contract is self-describing and JSON-first.
  • Authentication never stores or requests the Samsung password and never prints session material.
  • Read-only discovery is proven against a real human-authenticated Seller Office session before mutation code is added.
  • Portal drift produces a bounded actionable error instead of guessing or clicking through.
  • Upload proves the selected file matches a validated feat: prepare deterministic Samsung TV Seller Office submissions #50 manifest and digest.
  • Final submission is impossible without explicit confirmation of the resolved app, version, coverage, and release policy.
  • Mutating commands produce sanitized durable receipts.
  • CI use remains disabled; human Samsung sessions stay local and operator-owned.
  • README, describe, Taizn skill, security guidance, and tests stay aligned.

Non-goals

  • Using Galaxy Store’s unrelated Content Publish API
  • Reverse-engineering or depending directly on private Seller Office HTTP endpoints
  • Headless CI login with a human Samsung account, copied browser cookies, or MFA bypasses
  • Product-specific metadata, credentials, IDs, or release policy in Taizn

Browser lifecycle acceptance

The operator-assisted login browser has an explicit handoff boundary.

  • A browser process tree started by Taizn remains Taizn-owned until the human login succeeds and the session is explicitly handed off.
  • On login failure, SIGINT, or SIGTERM before handoff, terminate only that exact owned browser tree and remove incomplete attempt state; preserve unrelated and preexisting browser sessions.
  • After successful handoff, retain the human-owned browser/session as intended and document the existing recovery/cleanup mechanism.
  • Prove failed and interrupted attempts leave no owned browser process or listener. Never use broad browser-name cleanup.

This lifecycle contract does not require adding a new seller close command.

Activity

  1. added
    enhancement
    on Aug 2, 2026
  2. added theissue type on Nov 20, 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

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions