"use client" import { useState } from "react" import { CheckCircle2, ClipboardCheck, FileSearch, ListChecks, ScanSearch, ShieldCheck } from "lucide-react" type WorkflowStep = { id: "capture" | "search" | "plan" | "preview" number: string title: string tool: string summary: string boundary: string details: string[] icon: typeof ScanSearch } const steps: WorkflowStep[] = [ { id: "capture", number: "01", title: "Capture context", tool: "manage_project_context", summary: "Create a bounded local snapshot of the active sequence and source identities.", boundary: "Read-only · opt-in local index", details: [ "No context is captured until an MCP client explicitly calls the tool.", "Native project and media paths are hashed before persistence.", "Capture establishes revisions for later stale-state checks.", ], icon: ScanSearch, }, { id: "search", number: "02", title: "Find evidence", tool: "search_project_context", summary: "Retrieve only the clips, transcript passages, observations, and placements relevant to the request.", boundary: "Read-only · bounded evidence", details: [ "Search returns stable Premiere identities and revision provenance.", "The client can limit context to the kinds needed for one editing intent.", "A stale or ambiguous state calls for a fresh capture, not a blind edit.", ], icon: FileSearch, }, { id: "plan", number: "03", title: "Build the plan", tool: "create_context_edit_plan", summary: "Produce an evidence-backed, non-mutating candidate scaffold before constructing timeline operations.", boundary: "Non-mutating · editorial review required", details: [ "Candidates include source/time evidence and stale-state guards.", "The plan is not proof that an editorial decision is correct.", "The editor and chosen AI client can refine the plan before any mutation.", ], icon: ListChecks, }, { id: "preview", number: "04", title: "Preview, approve, verify", tool: "preview_edit_plan → apply_edit_plan", summary: "Preview the compound edit, then apply only with the exact confirmation token and current targets.", boundary: "Explicit confirmation · post-state verification", details: [ "Every target is revalidated before an edit is attempted.", "The preview confirmation token prevents applying a different plan by mistake.", "Returned state or diagnostics are evidence; an attempted command is not enough.", ], icon: ClipboardCheck, }, ] export function WorkflowProof() { const [selectedId, setSelectedId] = useState("capture") const selected = steps.find((step) => step.id === selectedId) ?? steps[0] const SelectedIcon = selected.icon return (

Illustrated product workflow

Keep the context. Review the change.

A local project-context workflow makes the request inspectable from first evidence to returned result. This maps real MCP tools; it is not a recording of a live Premiere session.

    {steps.map((step) => { const Icon = step.icon const active = step.id === selected.id return (
  1. ) })}

{selected.tool}

{selected.title}

{selected.summary}

    {selected.details.map((detail) => (
  • ))}
) }