# Lead_tech override — workflow create-story (porte aussi l'ex-rôle SM).
[workflow]
activation_steps_append = [
  "If leadtech-bmad MCP server is available: extract domain (backend|frontend|ux|n8n|product|workflow) from the story, then call get_guidance(domain, task_type='analysis', story_text). Read full docs for URIs listed under 'Lire le contenu complet' (leadtech://knowledge/... or leadtech://global/...).",
  "Write must_do into story section 'Patterns a appliquer', red_flags into 'Risques a eviter', and a 'Leadtech MCP Gates' entry { tool: 'get_guidance', timestamp, must_do, red_flags, blocking_issues }. If blocking_issues is non-empty, do NOT set the story ready-for-dev without explicit user acknowledgement (ex-SM responsibility).",
]
persistent_facts = [
  "file:{project-root}/_bmad/custom/leadtech-capitalisation.md",
  "Ex-SM duty: each active story using Leadtech MCP must keep a short `Leadtech MCP Gates` section with tool calls, findings, and the human decision. Capitalisation cibles SM: knowledge/workflow/risques/story-tracking.md, 40_decisions_et_archi.md, 90_debug_et_postmortem.md.",
]
