# Lead_tech override — workflow dev-story. Gates MCP validate_plan/validate_patch.
[workflow]
activation_steps_prepend = [
  "Before any implementation work, synchronize Lead_tech project registry: `bash $LEADTECH/scripts/sync-projects-conf.sh --project-root {project-root} --sync-existing`. If it fails, warn and continue only if story work can proceed safely.",
]
activation_steps_append = [
  "If leadtech-bmad MCP is available, before implementation: extract domain from story, build plan_text from tasks/subtasks + Dev Notes, call validate_plan(domain, plan_text, agent_role='builder', strict=true). Record into 'Leadtech MCP Gates'. If blocking_issues non-empty: HALT and fix the plan before coding. Scan must_do/red_flags for leadtech://knowledge|global URIs and read them as authoritative constraints.",
]
on_complete = "If leadtech-bmad MCP is available, before marking the story 'review': produce diff_text and changed_files (from File List), call validate_patch(domain, diff_text, changed_files, strict=true), record into 'Leadtech MCP Gates'. If blocking_issues non-empty: HALT and fix before review. Treat any uncovered must_do as complementary tasks before review."
persistent_facts = [
  "file:{project-root}/_bmad/custom/leadtech-capitalisation.md",
  "Phase 2 partielle: blocking_issues from validate_plan/validate_patch are hard blockers requiring explicit user override, traced in `Leadtech MCP Gates`. Capitalisation cibles: backend/frontend patterns+risques, 90_debug_et_postmortem.md.",
]
