Skip to content

[bug] Protocol-v3 seek reanchor replans against mutable route inputs #547

Closed

Description

@Rhainland

Problem

Protocol-v3 seek_reanchor reruns planning against live media metadata, settings, subtitle inventory, and transformation availability. If those inputs drift after the initial plan, the candidate receives a different deterministic plan ID and the server terminates playback with seek_reanchor_route_changed.

A seek should reopen the active transport at a new source position without changing the selected file, tracks, quality, delivery, codecs, transformations, quirks, or runtime corrections.

Required behavior

  • Persist the operational recipe required to reopen an accepted plan.
  • Reuse that recipe for seek reanchors while changing only transport/timeline data.
  • Keep replacement atomic so failures preserve the existing transport.
  • Bind downloaded subtitles by stable identity rather than mutable combined ordinal.
  • Return a specific availability terminal when a legacy or unavailable recipe cannot be reopened.
  • Log only bounded changed-field names when route validation rejects a candidate.

Incident evidence

A retained production route event reported seek_reanchor_route_changed / seek reanchor changed the playback plan identity. Read-only telemetry confirmed an Apple mobile client and an active HLS remux route; production was not mutated during investigation.

AI Disclosure

  • Tool(s): Codex desktop, Claude
  • Model(s): gpt-5.6-sol; Claude model ID was not available to the submitting agent
  • Involvement: fully AI-generated
  • Adversarial review: independent reviews found incomplete freezing of source execution metadata and two downloaded-subtitle ordinal/identity races; the implementation was revised to freeze the actual transport inputs and bind artifact generation and serving to the stable subtitle row ID.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions