{
 "原理:為什麼 LLM 需要「安全閘」#3": {
  "type": "cards",
  "cards": [
   {
    "title": "合法的",
    "points": [
     "符合格式與規則"
    ],
    "value": "放行"
   },
   {
    "title": "越界的",
    "points": [
     "參數超出範圍"
    ],
    "value": "拒絕"
   },
   {
    "title": "白名單外的",
    "points": [
     "動作不在清單"
    ],
    "value": "拒絕"
   },
   {
    "title": "格式錯誤的",
    "points": [
     "不是合法 JSON"
    ],
    "value": "拒絕"
   }
  ],
  "reveal": [
   0,
   4
  ]
 },
 "原理:為什麼 LLM 需要「安全閘」#4": {
  "type": "flow",
  "nodes": [
   {
    "label": "JSON 格式"
   },
   {
    "label": "動作在白名單"
   },
   {
    "label": "參數在範圍"
   },
   {
    "label": "地點在清單"
   }
  ],
  "layout": "row",
  "reveal": [
   0,
   4,
   4
  ]
 },
 "原理:為什麼 LLM 需要「安全閘」#5": {
  "type": "flow",
  "nodes": [
   {
    "label": "每層漏掉 10%",
    "sub": "假設各層獨立"
   },
   {
    "label": "三層都漏掉",
    "sub": "0.1 × 0.1 × 0.1"
   },
   {
    "label": "0.1%",
    "sub": "示意數值"
   },
   {
    "label": "各層常不獨立",
    "sub": "不能當保證"
   }
  ],
  "layout": "row",
  "reveal": [
   0,
   0,
   3,
   4
  ]
 },
 "原理:為什麼 LLM 需要「安全閘」#6": {
  "type": "flow",
  "nodes": [
   {
    "label": "白名單"
   },
   {
    "label": "範圍檢查"
   },
   {
    "label": "人工確認"
   },
   {
    "label": "速度限制"
   },
   {
    "label": "獨立急停"
   }
  ],
  "reveal": [
   0,
   5
  ]
 },
 "原理:為什麼 LLM 需要「安全閘」#7": {
  "type": "funnel",
  "stages": [
   {
    "label": "一天的動作提案",
    "value": 1000
   },
   {
    "label": "有問題的提案",
    "value": 10,
    "rate": "1%"
   },
   {
    "label": "預期漏過",
    "value": 0.1,
    "rate": "擋下 99%"
   }
  ],
  "reveal": [
   0,
   3,
   3
  ]
 },
 "LLM 規劃器的節點架構:建議在外、控制在內#1": {
  "type": "cards",
  "cards": [
   {
    "title": "LLM 擅長",
    "points": [
     "理解自然語言",
     "產生結構化文字"
    ]
   },
   {
    "title": "LLM 的問題",
    "points": [
     "會出錯、會編造",
     "可能被誘導",
     "輸出沒有保證"
    ]
   },
   {
    "title": "設計原則",
    "points": [
     "輸出是不被信任的輸入",
     "確定性檢查,必要時人工確認",
     "急停獨立於 AI"
    ]
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "LLM 規劃器的節點架構:建議在外、控制在內#2": {
  "type": "flow",
  "nodes": [
   {
    "label": "使用者指令"
   },
   {
    "label": "規劃"
   },
   {
    "label": "驗證"
   },
   {
    "label": "人工確認"
   },
   {
    "label": "執行"
   },
   {
    "label": "Nav2"
   }
  ],
  "layout": "snake",
  "reveal": [
   0,
   0,
   6
  ]
 },
 "LLM 規劃器的節點架構:建議在外、控制在內#3": {
  "type": "table",
  "head": [
   "node",
   "分工"
  ],
  "rows": [
   [
    "user_command",
    "接收文字指令,發布 user_command"
   ],
   [
    "llm_planner",
    "呼叫 LLM,發布 JSON 計畫;不能發 cmd_vel"
   ],
   [
    "plan_validator",
    "白名單與範圍檢查"
   ]
  ],
  "widths": [
   1,
   2
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "LLM 規劃器的節點架構:建議在外、控制在內#4": {
  "type": "table",
  "head": [
   "node",
   "分工"
  ],
  "rows": [
   [
    "confirm",
    "中高風險等人按確認,逾時視為不同意"
   ],
   [
    "task_executor",
    "只執行已驗證且確認的計畫,可取消"
   ],
   [
    "速度指令鏈與急停",
    "twist_mux、限速、看門狗、獨立急停"
   ]
  ],
  "widths": [
   1,
   2
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "LLM 規劃器的節點架構:建議在外、控制在內#5": {
  "type": "flow",
  "nodes": [
   {
    "label": "使用者指令"
   },
   {
    "label": "LLM 規劃"
   },
   {
    "label": "驗證器"
   },
   {
    "label": "人工確認"
   },
   {
    "label": "執行器"
   },
   {
    "label": "獨立急停",
    "sub": "直接保護馬達與底盤"
   }
  ],
  "layout": "snake",
  "edges": [
   [
    0,
    1
   ],
   [
    1,
    2
   ],
   [
    2,
    3
   ],
   [
    3,
    4
   ]
  ],
  "reveal": [
   0,
   6
  ]
 },
 "LLM 規劃器的節點架構:建議在外、控制在內#6": {
  "type": "cards",
  "cards": [
   {
    "title": "隔離",
    "points": [
     "LLM 被攻擊或亂說話",
     "最糟是計畫被拒絕"
    ]
   },
   {
    "title": "可測試",
    "points": [
     "驗證器是確定性程式",
     "不用呼叫 LLM"
    ]
   },
   {
    "title": "可替換",
    "points": [
     "雲端、本機、規則式",
     "輸出同樣 JSON"
    ]
   },
   {
    "title": "可稽核",
    "points": [
     "提案、驗證、確認、執行",
     "都有紀錄"
    ]
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ]
 },
 "LLM 規劃器的節點架構:建議在外、控制在內#7": {
  "type": "flow",
  "nodes": [
   {
    "label": "go_to",
    "sub": "lab"
   },
   {
    "label": "wait",
    "sub": "5 秒"
   },
   {
    "label": "go_to",
    "sub": "dock"
   }
  ],
  "layout": "row",
  "reveal": [
   0,
   0,
   3,
   3
  ]
 },
 "白名單動作介面與驗證器#1": {
  "type": "table",
  "head": [
   "動作",
   "限制",
   "風險"
  ],
  "rows": [
   [
    "go_to",
    "地點必須在清單內",
    "中"
   ],
   [
    "wait",
    "0 到 30 秒",
    "低"
   ],
   [
    "say",
    "預寫訊息代碼,不含個資",
    "低"
   ],
   [
    "cancel",
    "取消目前任務,永遠允許",
    "低"
   ]
  ],
  "widths": [
   1,
   2.4,
   0.8
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ]
 },
 "白名單動作介面與驗證器#2": {
  "type": "cards",
  "cards": [
   {
    "title": "低風險",
    "points": [
     "查詢電量、位置、狀態",
     "原地等待、說話"
    ],
    "value": "自動執行"
   },
   {
    "title": "中風險",
    "points": [
     "導航到白名單內地點"
    ],
    "value": "人工確認後執行"
   },
   {
    "title": "高風險 / 禁止",
    "points": [
     "修改速度上限",
     "執行系統指令、任意座標"
    ],
    "value": "一律拒絕"
   }
  ],
  "reveal": [
   0,
   3
  ]
 },
 "白名單動作介面與驗證器#3": {
  "type": "flow",
  "nodes": [
   {
    "label": "解析 JSON",
    "sub": "不合法就拒絕"
   },
   {
    "label": "檢查步驟清單",
    "sub": "不空,最多 6 步"
   },
   {
    "label": "逐步檢查",
    "sub": "動作、地點、0 到 30 秒"
   },
   {
    "label": "整理乾淨版本",
    "sub": "只複製已知欄位"
   }
  ],
  "layout": "row",
  "reveal": [
   0,
   4,
   4,
   4,
   4,
   4
  ]
 },
 "人工確認、獨立急停與部署取捨#1": {
  "type": "cards",
  "cards": [
   {
    "title": "顯示整理後的計畫",
    "points": [
     "不是 LLM 的原文"
    ]
   },
   {
    "title": "確認要有逾時",
    "points": [
     "例如 30 秒沒人按就作廢"
    ]
   },
   {
    "title": "在現場確認",
    "points": [
     "看得見機器人與環境"
    ]
   },
   {
    "title": "高風險不開通道",
    "points": [
     "確認也不能做"
    ]
   },
   {
    "title": "LLM 不能代按",
    "points": [
     "確認介面獨立"
    ]
   }
  ],
  "reveal": [
   0,
   0,
   1,
   2,
   3,
   4,
   5
  ]
 },
 "人工確認、獨立急停與部署取捨#2": {
  "type": "flow",
  "nodes": [
   {
    "label": "顯示驗證後的計畫"
   },
   {
    "label": "負責人按確認"
   },
   {
    "label": "執行",
    "sub": "拒絕或逾時則作廢"
   }
  ],
  "layout": "row",
  "reveal": [
   0,
   3
  ]
 },
 "人工確認、獨立急停與部署取捨#3": {
  "type": "table",
  "head": [
   "項目",
   "內容"
  ],
  "rows": [
   [
    "硬體急停",
    "切斷馬達驅動電源,不經軟體"
   ],
   [
    "軟體急停",
    "獨立小 node 發布零速度,不依賴 LLM、網路、Nav2"
   ],
   [
    "解除",
    "LLM 與驗證器無權解除,人在現場"
   ],
   [
    "觸發後",
    "執行器中止並待命,不自動接續"
   ]
  ],
  "widths": [
   1,
   2.4
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ]
 },
 "人工確認、獨立急停與部署取捨#5": {
  "type": "table",
  "head": [
   "保護",
   "做法"
  ],
  "rows": [
   [
    "速度與工作區限制",
    "限速 node、Nav2 地圖與虛擬牆"
   ],
   [
    "逾時與進度監看",
    "超過預估時間太多就取消"
   ],
   [
    "感測器失效",
    "雷達或定位逾時就停車"
   ],
   [
    "電量低於門檻",
    "中止並回充電座或待命"
   ],
   [
    "記錄日誌",
    "每步前後記時間、步驟、結果"
   ]
  ],
  "widths": [
   1,
   2
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ]
 },
 "人工確認、獨立急停與部署取捨#6": {
  "type": "cards",
  "cards": [
   {
    "title": "雲端模型",
    "points": [
     "能力強,不需本機算力",
     "需要網路,斷線失效",
     "資料離開機器人"
    ]
   },
   {
    "title": "本機或離線",
    "points": [
     "資料不離開",
     "算力與記憶體有限",
     "能力需自行實測"
    ]
   },
   {
    "title": "混合",
    "points": [
     "本機處理簡單與安全判斷",
     "雲端只做可降級功能"
    ]
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   3
  ]
 }
}