Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. ---
  2. name: 'step-01b-resume'
  3. description: 'Resume interrupted workflow from last completed step'
  4. outputFile: '{test_artifacts}/nfr-assessment.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. NFR Evidence Audit - Resume Progress:
  36. 1. Load Context (step-01-load-context) [completed/pending]
  37. 2. Define Thresholds (step-02-define-thresholds) [completed/pending]
  38. 3. Gather Evidence (step-03-gather-evidence) [completed/pending]
  39. 4. Evaluate & Aggregate (step-04e-aggregate-nfr) [completed/pending]
  40. 5. Generate Report (step-05-generate-report) [completed/pending]
  41. Last saved: {lastSaved}
  42. ```
  43. ---
  44. ### 3. Route to Next Step
  45. Based on `lastStep`, load the next incomplete step:
  46. | lastStep | Next Step File |
  47. | --------------------------- | --------------------------------- |
  48. | `step-01-load-context` | `./step-02-define-thresholds.md` |
  49. | `step-02-define-thresholds` | `./step-03-gather-evidence.md` |
  50. | `step-03-gather-evidence` | `./step-04-evaluate-and-score.md` |
  51. | `step-04e-aggregate-nfr` | `./step-05-generate-report.md` |
  52. | `step-05-generate-report` | **Workflow already complete.** |
  53. **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.
  54. **If `lastStep` does not match any value above**, display: "Unknown progress state (`lastStep`: {lastStep}). Please use **[C] Create** to start fresh." Then halt.
  55. **Otherwise**, load the identified step file, read completely, and execute.
  56. The existing content in `{outputFile}` provides context from previously completed steps.
  57. ---
  58. ## SYSTEM SUCCESS/FAILURE METRICS
  59. ### SUCCESS:
  60. - Output document loaded and parsed correctly
  61. - Progress dashboard displayed accurately
  62. - Routed to correct next step
  63. ### FAILURE:
  64. - Not loading output document
  65. - Incorrect progress display
  66. - Routing to wrong step
  67. **Master Rule:** Resume MUST route to the exact next incomplete step. Never re-execute completed steps.