Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

5 дні тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. ---
  2. name: 'step-01b-resume'
  3. description: 'Resume interrupted workflow from last completed step'
  4. outputFile: '{test_artifacts}/test-review.md'
  5. ---
  6. # Step 1b: Resume Workflow
  7. ## STEP GOAL
  8. Resume an interrupted workflow by loading the existing output document, displaying progress, and routing to the next incomplete step.
  9. ## MANDATORY EXECUTION RULES
  10. - Read the entire step file before acting
  11. - Speak in `{communication_language}`
  12. ---
  13. ## EXECUTION PROTOCOLS:
  14. - Follow the MANDATORY SEQUENCE exactly
  15. - Load the next step only when instructed
  16. ## CONTEXT BOUNDARIES:
  17. - Available context: Output document with progress frontmatter
  18. - Focus: Load progress and route to next step
  19. - Limits: Do not re-execute completed steps
  20. - Dependencies: Output document must exist from a previous run
  21. ## MANDATORY SEQUENCE
  22. **CRITICAL:** Follow this sequence exactly.
  23. ### 1. Load Output Document
  24. Read `{outputFile}` and parse YAML frontmatter for:
  25. - `stepsCompleted` -- array of completed step names
  26. - `lastStep` -- last completed step name
  27. - `lastSaved` -- timestamp of last save
  28. **If `{outputFile}` does not exist**, display:
  29. "No previous progress found. There is no output document to resume from. Please use **[C] Create** to start a fresh workflow run."
  30. **THEN:** Halt. Do not proceed.
  31. ---
  32. ### 2. Display Progress Dashboard
  33. Display progress with checkmark/empty indicators:
  34. ```
  35. Test Quality Review - Resume Progress:
  36. 1. Load Context (step-01-load-context) [completed/pending]
  37. 2. Discover Tests (step-02-discover-tests) [completed/pending]
  38. 3. Quality Evaluation + Aggregate (step-03f-aggregate-scores) [completed/pending]
  39. 4. Generate Report (step-04-generate-report) [completed/pending]
  40. Last saved: {lastSaved}
  41. ```
  42. ---
  43. ### 3. Route to Next Step
  44. Based on `lastStep`, load the next incomplete step:
  45. | lastStep | Next Step File |
  46. | --------------------------- | --------------------------------- |
  47. | `step-01-load-context` | `./step-02-discover-tests.md` |
  48. | `step-02-discover-tests` | `./step-03-quality-evaluation.md` |
  49. | `step-03f-aggregate-scores` | `./step-04-generate-report.md` |
  50. | `step-04-generate-report` | **Workflow already complete.** |
  51. **If `lastStep` is the final step** (`step-04-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.
  52. **If `lastStep` does not match any value above**, display: "Unknown progress state (`lastStep`: {lastStep}). Please use **[C] Create** to start fresh." Then halt.
  53. **Otherwise**, load the identified step file, read completely, and execute.
  54. The existing content in `{outputFile}` provides context from previously completed steps.
  55. ---
  56. ## SYSTEM SUCCESS/FAILURE METRICS
  57. ### SUCCESS:
  58. - Output document loaded and parsed correctly
  59. - Progress dashboard displayed accurately
  60. - Routed to correct next step
  61. ### FAILURE:
  62. - Not loading output document
  63. - Incorrect progress display
  64. - Routing to wrong step
  65. **Master Rule:** Resume MUST route to the exact next incomplete step. Never re-execute completed steps.