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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # Test Architect workflow: bmad-testarch-trace
  2. name: bmad-testarch-trace
  3. # prettier-ignore
  4. description: 'Generate traceability matrix and quality gate decision. Use when the user says "lets create traceability matrix" or "I want to analyze test coverage"'
  5. # Critical variables from config
  6. config_source: "{project-root}/_bmad/tea/config.yaml"
  7. output_folder: "{config_source}:output_folder"
  8. test_artifacts: "{config_source}:test_artifacts"
  9. user_name: "{config_source}:user_name"
  10. communication_language: "{config_source}:communication_language"
  11. document_output_language: "{config_source}:document_output_language"
  12. date: system-generated
  13. # Workflow components
  14. installed_path: "."
  15. instructions: "./instructions.md"
  16. validation: "./checklist.md"
  17. template: "./trace-template.md"
  18. # Variables and inputs
  19. variables:
  20. # Directory paths
  21. test_dir: "{project-root}/tests" # Root test directory
  22. source_dir: "{project-root}" # Source code directory (customize if needed, e.g., {project-root}/src or {project-root}/lib)
  23. # Workflow behavior
  24. coverage_levels: "e2e,api,component,unit" # Which test levels to trace
  25. gate_type: "story" # story | epic | release | hotfix - determines gate scope
  26. decision_mode: "deterministic" # deterministic (rule-based) | manual (team decision)
  27. collection_mode: "contract_static" # contract_static | inventory_only | runtime_manifest | deferred_shared | waived | restricted | inaccessible
  28. allow_gate: true # Emit gate_status and gate-decision.json only when collection is gate-eligible
  29. coverage_basis: "auto" # auto | acceptance_criteria | synthetic_requirements | openapi_endpoints | user_journeys; Step 1 must resolve and persist a concrete value before Step 4/5 export
  30. summary_confidence: "auto" # auto | high | medium | low; Step 1 must resolve and persist a concrete value before Step 4/5 export
  31. allow_external_pointer_resolution: true # Follow local placeholder pointers (e.g., Jira/Confluence) when compatible adapters exist
  32. allow_synthetic_oracle: true # Infer journeys/requirements from source when no formal oracle exists
  33. # Output configuration
  34. default_output_file: "{test_artifacts}/traceability-matrix.md"
  35. e2e_trace_summary_output: "{test_artifacts}/e2e-trace-summary.json" # Machine-readable summary consumed by CI/CD and reporting pipelines
  36. gate_decision_output: "{test_artifacts}/gate-decision.json" # Optional downstream gate signal for CI/CD enforcement
  37. # e2e-trace-summary.json schema (emitted by step-05 at workflow completion)
  38. # schema_version: 1
  39. # generated_at: ISO timestamp
  40. # workflow: "bmad-testarch-trace"
  41. # repo / collection_mode / collection_status / coverage_basis / source_sha
  42. # target: { type, id, label }
  43. # gate_status: PASS | CONCERNS | FAIL | WAIVED (only when allow_gate is true and collection_status is COLLECTED)
  44. # coverage_statistics: { total_requirements, fully_covered, partially_covered, uncovered, overall_coverage_pct, priority_breakdown{P0..P3}, by_level{e2e,api,component,unit} }
  45. # tests: { files, cases, skipped_cases, fixme_cases, pending_cases }
  46. # gap_analysis: { critical_gaps, high_gaps, medium_gaps, low_gaps }
  47. # heuristics: { endpoint_gaps, auth_negative_path_status, error_path_status }
  48. # gate_criteria: { p0_coverage_required/actual/status, p1_coverage_target/minimum/actual/status, overall_coverage_minimum/actual/status } (gate-eligible runs only)
  49. # blockers: [ { id, severity, reason, test_file?, test_title? } ]
  50. # recommendations: [ { priority, action, requirements[] } ]
  51. # links: { trace_report_path, trace_report_url, artifact_url }
  52. # Required tools
  53. required_tools:
  54. - read_file # Read story, test files, BMad artifacts
  55. - write_file # Create traceability matrix, gate YAML
  56. - list_files # Discover test files
  57. - search_repo # Find tests by test ID, describe blocks
  58. - glob # Find test files matching patterns
  59. tags:
  60. - qa
  61. - traceability
  62. - test-architect
  63. - coverage
  64. - requirements
  65. - gate
  66. - decision
  67. - release
  68. execution_hints:
  69. interactive: false # Minimize prompts
  70. autonomous: true # Proceed without user input unless blocked
  71. iterative: true