Skip to content

pipeline fromEdit: re-apply an edit to a new take #403

Backlog

Description

@TMHSDigital

Summary

Add applyTo (or allow input with an explicit retarget: true) that uses the spec's steps on a different source, skipping the source-stamp check and returning a warning that times and pixels are copied verbatim; validate trims/regions against the new probe and fail clearly if they fall outside it.

Where

  • src/utils/pipelineRun.ts:86-104
  • src/utils/editSpec.ts:1-27
  • src/tools/pipeline.ts:19-21

Problem

  if (args.input && !samePath(args.input, spec.source.path)) throw new ScreencastError(`The spec is for ${spec.source.path}, not ${args.input}.`);
  const changed = sourceChange(spec);
  if (changed) throw new ScreencastError(`Cannot re-render ${args.fromEdit}: ${changed}.`, "Run pipeline on the source again with steps instead.");

(pipelineRun.ts:94-96). The spec already stores the expanded steps and options (editSpec.ts:15-27); there are no user-saved recipes, only the built-in RECIPES enum.

Who benefits

A common screencast loop is "record, polish (trim, callouts, redactions, backdrop, export), notice a mistake, record again". The second take has to be rebuilt step by step by the agent from conversation memory, because the only reusable artifact (the .edit.json) is locked to the first file.

Proposal

Add applyTo (or allow input with an explicit retarget: true) that uses the spec's steps on a different source, skipping the source-stamp check and returning a warning that times and pixels are copied verbatim; validate trims/regions against the new probe and fail clearly if they fall outside it. Optionally let fromEdit take steps only (a saved "house style": backdrop + export) by honoring a flag that drops time-bound ops (trim, callout times, redact).

Related: #340

Getting started

  • Relevant files: src/utils/pipelineRun.ts, src/utils/editSpec.ts, src/tools/pipeline.ts
  • Run tests: npm test (also npm run typecheck and npm run lint); see CONTRIBUTING.md
  • If you change a tool's schema or description, run npm run docs

Filed by repo-audit/full-audit at f0e5ebd. Severity: medium. Effort: M. audit-key: enhancement|src/utils/pipelineRun.ts|resolveRequest.fromEdit

Activity

  1. added
    enhancement
    help wanted
    effort: medium
    on Nov 29, 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

    effort: mediumenhancementhelp wantedpriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions