Skip to content

Add merge-doc pipeline node #47

@natashaannn

Description

@natashaannn

Add merge-doc pipeline node

Objective

Convert annotated transcript into final human-editable document structure.


Why this matters

This is the final transformation stage before human editing and export.

It becomes the canonical “source of truth” transcript.


Parallelization metadata

Track

pipeline

Depends on

Safe to run in parallel with

  • pipeline validation
  • remotion cleanup

Merge risk

  • medium/high

Files in scope

Primary:

  • scripts/pipeline/nodes/merge-doc.ts

Required implementation

1. Implement merge node

Wrap existing merge logic.

2. Inputs

Must accept:

  • speaker-assigned transcript
  • doc directives

3. Output

Produces:

  • final transcript JSON

Constraints

  • no UI coupling
  • no editor logic

Acceptance criteria

Functional

  • merge produces final transcript artifact

Integration checks

  • output matches current merge-doc behavior

Verification commands

Run pipeline through merge-doc.

Expected result:

  • final transcript artifact generated

Explicitly out of scope

  • editor UI
  • version history

Suggested branch

refactor/s7-merge-doc

Suggested commit slug

phase-2-step-7-merge-doc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions