本卡屬 FR-167(母卡 CM-3241),卡 P3-1,階段 P3 更新中心、批 1。只改 BE(主 repo,Repo 欄空著)。依賴:無。
新增兩顆權限:看更新中心、按更新。加選單路由,系統管理員預設有。照 FR-134 弱點資料庫頁那支 migration 的形狀。
形狀全有先例,機械
extend:host_capabilities.py 加兩顆;migration 照 2026-10-10-fr134-vulndb-settings-page.sql 形狀
repo:~/Projects/Billows/Audit-Manager/compliance-manager-be
改既有:core/host_capabilities.py 199 附近
新開:scripts/sql/2026-xx-xx-fr167-product-update-capabilities.sql
細節在 design.md §5 對應段(~/Projects/Billows/Audit-Manager/compliance-manager-be/docs/features/FR-167-2610-online-update-channel/design.md,開 design.html 看導覽);本段只列本卡要做到的點:
core/host_capabilities.py 199 附近加 system.product-update.read/update。scripts/sql/2026-10-10-fr134-vulndb-settings-page.sql:兩顆能力點、ui_routes 加 product-update(父節點同 vulndb 那頁)、系統管理員角色綁 update、CAPABILITY_CATALOG/VERSION 加一。DEV 套後 capabilities 有兩顆、ui_routes 有 product-update、系統管理員角色帶 update;FR-132 守衛測試綠;回報「出貨基線待重產」
對照雛形:~/Projects/Billows/Audit-Manager/compliance-manager-be/docs/features/FR-167-2610-online-update-channel/prototype/index.html(上方「跟著走」)。
docs/claude/domain-capabilities.md。三擇一、預設不新增:reuse → extend 加參數 → 都沒有才新增。回寫列出 reuse 了哪些、新增了哪些、為什麼不能 reuse。