{
 "slug": "meeting-notes-to-tickets-0741",
 "uc": "UC-0741",
 "webhook": "twwp-meeting-notes",
 "workflow_id": "twwp0741meetingnotes",
 "gate": "the PM approves the list (approved=true). Nothing becomes a ticket until then, and an empty list is never approved.",
 "tests": [
  {
   "case": "default",
   "input": {
    "meeting": "Weekly product sync (synthetic)",
    "transcript": "Weekly product sync, synthetic data, 12 Nov.\nDana: We agreed to ship the pricing page on Friday.\nACTION: Update the pricing page copy @dana by Thursday\nRavi: I can look at the signup bug.\nACTION: Fix the signup email bug @ravi by 2026-11-20\nTODO - Book the customer interview room\nDana: Anything else? No.\nACTION: Send the revised roadmap to the board @mei by Friday",
    "approved": false
   },
   "expected": {
    "status": "held_for_approval",
    "meeting": "Weekly product sync (synthetic)",
    "proposed": [
     {
      "title": "Update the pricing page copy",
      "owner": "dana",
      "due": "Thursday",
      "needs_owner": false
     },
     {
      "title": "Fix the signup email bug",
      "owner": "ravi",
      "due": "2026-11-20",
      "needs_owner": false
     },
     {
      "title": "Book the customer interview room",
      "owner": null,
      "due": null,
      "needs_owner": true
     },
     {
      "title": "Send the revised roadmap to the board",
      "owner": "mei",
      "due": "Friday",
      "needs_owner": false
     }
    ],
    "unassigned": 1
   }
  },
  {
   "case": "approved",
   "input": {
    "meeting": "Weekly product sync (synthetic)",
    "transcript": "Weekly product sync, synthetic data, 12 Nov.\nDana: We agreed to ship the pricing page on Friday.\nACTION: Update the pricing page copy @dana by Thursday\nRavi: I can look at the signup bug.\nACTION: Fix the signup email bug @ravi by 2026-11-20\nTODO - Book the customer interview room\nDana: Anything else? No.\nACTION: Send the revised roadmap to the board @mei by Friday",
    "approved": true
   },
   "expected": {
    "status": "tickets_ready",
    "meeting": "Weekly product sync (synthetic)",
    "count": 4,
    "tickets": [
     {
      "id": "LOCAL-001",
      "title": "Update the pricing page copy",
      "owner": "dana",
      "due": "Thursday"
     },
     {
      "id": "LOCAL-002",
      "title": "Fix the signup email bug",
      "owner": "ravi",
      "due": "2026-11-20"
     },
     {
      "id": "LOCAL-003",
      "title": "Book the customer interview room",
      "owner": "UNASSIGNED",
      "due": null
     },
     {
      "id": "LOCAL-004",
      "title": "Send the revised roadmap to the board",
      "owner": "mei",
      "due": "Friday"
     }
    ]
   }
  },
  {
   "case": "no_action_lines",
   "input": {
    "meeting": "Plain notes",
    "transcript": "Dana will update the pricing page by Thursday. Ravi to fix the signup bug.",
    "approved": true
   },
   "expected": {
    "status": "held_for_approval",
    "meeting": "Plain notes",
    "proposed": [],
    "unassigned": 0,
    "message": "No lines starting with ACTION: were found. Write each task on its own line, like this: ACTION: Update the pricing page @dana by Thursday"
   }
  },
  {
   "case": "approved_written_yes",
   "input": {
    "meeting": "Short sync",
    "transcript": "ACTION: Order the cake @mei by Friday",
    "approved": "yes"
   },
   "expected": {
    "status": "held_for_approval",
    "meeting": "Short sync",
    "proposed": [
     {
      "title": "Order the cake",
      "owner": "mei",
      "due": "Friday",
      "needs_owner": false
     }
    ],
    "unassigned": 0,
    "approval_hint": "approved must be true or false, written without quotes (not yes, and not \"true\")"
   }
  }
 ]
}