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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. ---
  2. name: 'step-04-validate-and-summarize'
  3. description: 'Validate outputs and produce automation summary'
  4. outputFile: '{test_artifacts}/automation-summary.md'
  5. ---
  6. # Step 4: Validate & Summarize
  7. ## STEP GOAL
  8. Validate generated outputs and produce a concise automation summary.
  9. ## MANDATORY EXECUTION RULES
  10. - 📖 Read the entire step file before acting
  11. - ✅ Speak in `{communication_language}`
  12. - ✅ Validate against the checklist before completion
  13. ---
  14. ## EXECUTION PROTOCOLS:
  15. - 🎯 Follow the MANDATORY SEQUENCE exactly
  16. - 💾 Record outputs before proceeding
  17. - 📖 Load the next step only when instructed
  18. ## CONTEXT BOUNDARIES:
  19. - Available context: config, loaded artifacts, and knowledge fragments
  20. - Focus: this step's goal only
  21. - Limits: do not execute future steps
  22. - Dependencies: prior steps' outputs (if any)
  23. ## MANDATORY SEQUENCE
  24. **CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise.
  25. ## 1. Validate
  26. Use `checklist.md` to validate:
  27. - Framework readiness
  28. - Coverage mapping
  29. - Test quality and structure
  30. - Fixtures, factories, helpers
  31. - [ ] CLI sessions cleaned up (no orphaned browsers)
  32. - [ ] Temp artifacts stored in `{test_artifacts}/` not random locations
  33. Fix gaps before proceeding.
  34. ---
  35. ## 2. Polish Output
  36. Before finalizing, review the complete output document for quality:
  37. 1. **Remove duplication**: Progressive-append workflow may have created repeated sections — consolidate
  38. 2. **Verify consistency**: Ensure terminology, risk scores, and references are consistent throughout
  39. 3. **Check completeness**: All template sections should be populated or explicitly marked N/A
  40. 4. **Format cleanup**: Ensure markdown formatting is clean (tables aligned, headers consistent, no orphaned references)
  41. ---
  42. ## 3. Summary Output
  43. Write `{outputFile}` including:
  44. - Coverage plan by test level and priority
  45. - Files created/updated
  46. - Key assumptions and risks
  47. - Next recommended workflow (e.g., `test-review` or `trace`)
  48. ---
  49. ## 4. Save Progress
  50. **Save this step's accumulated work to `{outputFile}`.**
  51. - **If `{outputFile}` does not exist** (first save), create it with YAML frontmatter:
  52. ```yaml
  53. ---
  54. stepsCompleted: ['step-04-validate-and-summarize']
  55. lastStep: 'step-04-validate-and-summarize'
  56. lastSaved: '{date}'
  57. ---
  58. ```
  59. Then write this step's output below the frontmatter.
  60. - **If `{outputFile}` already exists**, update:
  61. - Add `'step-04-validate-and-summarize'` to `stepsCompleted` array (only if not already present)
  62. - Set `lastStep: 'step-04-validate-and-summarize'`
  63. - Set `lastSaved: '{date}'`
  64. - Append this step's output to the appropriate section.
  65. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS:
  66. ### ✅ SUCCESS:
  67. - Step completed in full with required outputs
  68. ### ❌ SYSTEM FAILURE:
  69. - Skipped sequence steps or missing outputs
  70. **Master Rule:** Skipping steps is FORBIDDEN.
  71. ## On Complete
  72. Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow.on_complete`
  73. If the resolver succeeds and returns a non-empty `workflow.on_complete`, execute that value as the final terminal instruction before exiting.
  74. If the resolver fails, returns no output, or resolves an empty value, skip the hook and exit normally.