name: ‘step-01b-resume’ description: ‘Resume interrupted workflow from last completed step’
Resume an interrupted workflow by loading the existing output document, displaying progress, and routing to the next incomplete step.
{communication_language}CRITICAL: Follow this sequence exactly. Do not skip, reorder, or improvise.
Read {outputFile} and parse YAML frontmatter for:
stepsCompleted — array of completed step nameslastStep — last completed step namelastSaved — timestamp of last saveIf {outputFile} does not exist, display:
“⚠️ No previous progress found. There is no output document to resume from. Please use [C] Create to start a fresh workflow run.”
THEN: Halt. Do not proceed.
Display:
“📋 Workflow Resume — Requirements Traceability & Quality Gate
Last saved: {lastSaved} Steps completed: {stepsCompleted.length} of 5
Based on lastStep, load the next incomplete step:
'step-01-load-context' → Load ./step-02-discover-tests.md'step-02-discover-tests' → Load ./step-03-map-criteria.md'step-03-map-criteria' → Load ./step-04-analyze-gaps.md'step-04-analyze-gaps' → Load ./step-05-gate-decision.md'step-05-gate-decision' → Workflow already complete. Display: “✅ All steps completed. Use [V] Validate to review outputs or [E] Edit to make revisions.” Then halt.If lastStep does not match any value above, display: “⚠️ Unknown progress state (lastStep: {lastStep}). Please use [C] Create to start fresh.” Then halt.
Otherwise, load the identified step file, read completely, and execute.
The existing content in {outputFile} provides context from previously completed steps. Use it as reference for remaining steps.
Master Rule: Resume MUST route to the exact next incomplete step. Never re-execute completed steps.