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.
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 progress with checkmark/empty indicators:
NFR Evidence Audit - Resume Progress:
1. Load Context (step-01-load-context) [completed/pending]
2. Define Thresholds (step-02-define-thresholds) [completed/pending]
3. Gather Evidence (step-03-gather-evidence) [completed/pending]
4. Evaluate & Aggregate (step-04e-aggregate-nfr) [completed/pending]
5. Generate Report (step-05-generate-report) [completed/pending]
Last saved: {lastSaved}
Based on lastStep, load the next incomplete step:
| lastStep | Next Step File |
|---|---|
step-01-load-context |
./step-02-define-thresholds.md |
step-02-define-thresholds |
./step-03-gather-evidence.md |
step-03-gather-evidence |
./step-04-evaluate-and-score.md |
step-04e-aggregate-nfr |
./step-05-generate-report.md |
step-05-generate-report |
Workflow already complete. |
If lastStep is the final step (step-05-generate-report), display: “All steps completed. Use [C] Create to start fresh, [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.
Master Rule: Resume MUST route to the exact next incomplete step. Never re-execute completed steps.