"""The planning door of the tasks API is routed: POST /api/tasks/planning reaches a handler on the running app. What the handler does is the planning service's to prove (tests/test_mcp_tool_create_records.py drives it).""" def test_starting_a_plan_is_routed_on_the_app(): from grimoire.app import create_app rules = { (str(r.rule), m) for r in create_app().url_map.iter_rules() for m in r.methods } assert ("/api/tasks/planning", "POST") in rules