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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. ---
  2. name: 'step-03-map-criteria'
  3. description: 'Map coverage oracle items to tests and build traceability matrix'
  4. nextStepFile: '{skill-root}/steps-c/step-04-analyze-gaps.md'
  5. outputFile: '{test_artifacts}/traceability-matrix.md'
  6. ---
  7. # Step 3: Map Coverage Oracle to Tests
  8. ## STEP GOAL
  9. Create the traceability matrix linking the resolved oracle items to tests.
  10. ## MANDATORY EXECUTION RULES
  11. - 📖 Read the entire step file before acting
  12. - ✅ Speak in `{communication_language}`
  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. Build Matrix
  26. For each resolved oracle item (formal requirement, endpoint/spec item, or synthetic journey):
  27. - Map to matching tests
  28. - Mark coverage status: FULL / PARTIAL / NONE / UNIT-ONLY / INTEGRATION-ONLY
  29. - Record test level and priority
  30. - Preserve each mapped test's stable identity fields (`id`, `title`, `file`, `line`, `level`, status flags) so Phase 1 can deduplicate unique tests before JSON export
  31. - Record heuristic signals:
  32. - Endpoint coverage present/missing (for API-impacting items)
  33. - Auth/authz coverage present/missing (positive and negative paths)
  34. - Error-path coverage present/missing (validation, timeout, network/server failures)
  35. - UI journey E2E coverage present/missing (for source-derived journeys)
  36. - UI state coverage present/missing (loading, empty, validation, error, permission-denied)
  37. ---
  38. ## 2. Validate Coverage Logic
  39. Ensure:
  40. - P0/P1 items have coverage
  41. - No duplicate coverage across levels without justification
  42. - Items are not happy-path-only when the oracle implies error handling or alternate states
  43. - API items are not marked FULL if endpoint-level checks are missing
  44. - Auth/authz items include at least one denied/invalid-path test where applicable
  45. - Synthetic UI journeys are not marked FULL when no E2E or component test asserts the critical path and key failure states
  46. ---
  47. ### 3. Save Progress
  48. **Save this step's accumulated work to `{outputFile}`.**
  49. - **If `{outputFile}` does not exist** (first save), create it using the workflow template (if available) with YAML frontmatter:
  50. ```yaml
  51. ---
  52. stepsCompleted: ['step-03-map-criteria']
  53. lastStep: 'step-03-map-criteria'
  54. lastSaved: '{date}'
  55. ---
  56. ```
  57. Then write this step's output below the frontmatter.
  58. - **If `{outputFile}` already exists**, update:
  59. - Add `'step-03-map-criteria'` to `stepsCompleted` array (only if not already present)
  60. - Set `lastStep: 'step-03-map-criteria'`
  61. - Set `lastSaved: '{date}'`
  62. - Append this step's output to the appropriate section of the document.
  63. Load next step: `{nextStepFile}`
  64. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS:
  65. ### ✅ SUCCESS:
  66. - Step completed in full with required outputs
  67. ### ❌ SYSTEM FAILURE:
  68. - Skipped sequence steps or missing outputs
  69. **Master Rule:** Skipping steps is FORBIDDEN.