# solutioning-gate-check Workflow Rule

This rule defines the solutioning-gate-check workflow.

## Workflow Description

Systematically validate that all planning and solutioning phases are complete and properly aligned before transitioning to Phase 4 implementation. Ensures PRD, architecture, and stories are cohesive with no gaps or contradictions.

## Workflow Definition

# Implementation Ready Check - Workflow Configuration
name: solutioning-gate-check
description: "Systematically validate that all planning and solutioning phases are complete and properly aligned before transitioning to Phase 4 implementation. Ensures PRD, architecture, and stories are cohesive with no gaps or contradictions."
author: "BMad Builder"

# Critical variables from config
config_source: "{project-root}/.bmad/bmm/config.yaml"
output_folder: "{config_source}:output_folder"
user_name: "{config_source}:user_name"
communication_language: "{config_source}:communication_language"
document_output_language: "{config_source}:document_output_language"
date: system-generated

# Workflow status integration
workflow_status_workflow: "{project-root}/.bmad/bmm/workflows/workflow-status/workflow.yaml"
workflow_paths_dir: "{project-root}/.bmad/bmm/workflows/workflow-status/paths"

# Module path and component files
installed_path: "{project-root}/.bmad/bmm/workflows/3-solutioning/solutioning-gate-check"
template: "{installed_path}/template.md"
instructions: "{installed_path}/instructions.md"
validation: "{installed_path}/checklist.md"

# Output configuration
default_output_file: "{output_folder}/implementation-readiness-report-{{date}}.md"

# Input requirements
recommended_inputs:
  - prd: "Product Requirements Document with FRs and NFRs"
  - architecture: "System Architecture with decisions and patterns"
  - tech_spec: "Technical Specification (for Quick Flow track)"
  - epics: "Epic breakdown with user stories"
  - ux_design: "UX design specification (if UI components)"

# Smart input file references - handles both whole docs and sharded docs
# Priority: Whole document first, then sharded version
input_file_patterns:
  prd:
    whole: "{output_folder}/*prd*.md"
    sharded: "{output_folder}/*prd*/index.md"

  epics:
    whole: "{output_folder}/*epic*.md"
    sharded: "{output_folder}/*epic*/index.md"

  architecture:
    whole: "{output_folder}/*architecture*.md"
    sharded: "{output_folder}/*architecture*/index.md"

  ux_design:
    whole: "{output_folder}/*ux*.md"
    sharded: "{output_folder}/*ux*/index.md"

  tech_spec:
    whole: "{output_folder}/*tech-spec*.md"
    sharded: "{output_folder}/*tech-spec*/index.md"

  document_project:
    sharded: "{output_folder}/docs/index.md"

# Validation criteria data
validation_criteria: "{installed_path}/validation-criteria.yaml"

standalone: true


## Usage

Reference this workflow with `@workflow-solutioning-gate-check` to execute the guided workflow.

## Module

Part of the BMAD BMM module.
