Skip to content

Safe shared import runner for tracker migrations #359

Open

Description

@imshashank

Current status, September 22

#127 is the active Linear consumer of this shared runner. #229 was closed as not planned, so it is no longer an active delivery dependency. The safety, dry-run and verification requirements below still apply before any importer can write.

Original requirements

PR #287 removed Orbit's supported importer commands because the runner was tenant-specific and destructive. The retained Plane and Linear readers, ImportRows, rows.ts, and build-project.ts are library groundwork only. Nothing on current main can safely apply an import.

This issue restores one source-neutral execution and verification path. It is a prerequisite for #127 and #229. Source-specific Linear, Jira, and GitHub parsing and mapping remain in those issues.

Requirements

  • Define an import plan around ImportRows, including how attachment side effects are staged and reported.
  • Require an explicit target organization and an authorization model for selecting it.
  • Separate dry-run and apply modes. Dry-run must perform no database or storage writes.
  • Preserve every non-target tenant. Any delete or replacement mode must require typed confirmation.
  • Reject unsafe remote targets.
  • Define collision, retry, resume, and idempotency behavior before implementation.
  • Apply database changes transactionally and define cleanup or recovery for storage side effects.
  • Produce a structured report of imported, converted, skipped, and failed records.
  • Provide a post-apply verification command or mode.

Acceptance criteria

  • Tests prove dry-run is write-free and reports the planned changes.
  • Tests prove apply cannot modify another organization.
  • Re-running or resuming an import does not duplicate committed records.
  • An injected database failure rolls back the transaction.
  • An injected attachment failure has a tested cleanup or recovery path.
  • Unsafe target configuration is refused before any write.
  • The shared runner has a package entry point that Map Linear exports into the safe shared import runner #127 and Jira and GitHub Issues importers #229 can call without duplicating execution logic.
  • Documentation explains the operator workflow, safety model, report, and recovery procedure.

Design decisions required before ready

  • Additive-only imports versus an optional replace mode.
  • How a local database operator proves authority for the target organization.
  • Stable collision and resume keys across source systems.
  • The transaction boundary between Postgres and object storage.
  • The exact verification and reporting contract.

Blocks #127 and #229. Related: #287.

Activity

  1. added
    enhancement
    help wanted
    needs design
    p1 high
    area: database
    roadmap
    on Aug 25, 2026
  2. moved this to Needs design in Orbit roadmapon Aug 25, 2026
  3. added
    size: large
    points: 8
    on Sep 7, 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: databaseenhancementhelp wantedneeds designp1 highpoints: 8roadmapsize: large

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions