本卡屬 FR-196(母卡 FR-196 母案(同清單上一張)),卡 E-1,第一期批 1。只改 BE(主 repo,Repo 欄空著)。依賴:無。
這張卡不寫功能,是幫後面所有卡鋪路。通知中心是一支新套件 jedi-notification-center,還沒發上 Nexus;主系統要能 import 到它,開發期間就得改成「指到套件 repo 的工作坊工作區」安裝。改動不 commit(藏起來),收口時由首腦改回釘版。同一批的 P-1 正在建套件骨架,本卡只要 import 得到空套件就算完成。
reuse:既有 poetry path dependency 形式(pyproject.toml 第 122~136 行註解掉那組的寫法);指向套件工作坊工作區 jedi-python-package/.worktrees/<母卡號>/jedi-notification-center
repo:~/Projects/Billows/Audit-Manager/compliance-manager-be
改既有:pyproject.toml(加一行 path dependency;不 commit,`git update-index --assume-unchanged`)
cat pyproject.toml | sed -n 120,140p 看註解掉的 path dependency 寫法;照同形式加一行 jedi-notification-center = { path = "~/Projects/Jedicogy/module/jedi-python-package/.worktrees/<母卡號>/jedi-notification-center", develop = true }(母卡號看本卡引言)。~/Projects/Jedicogy/module/jedi-python-package/.worktrees/<母卡號>/ 放最小骨架兩檔:jedi-notification-center/pyproject.toml(name jedi-notification-center、version 0.1.0、packages=[{{include="jedi_notification_center"}}]、依賴 jedi-common、jedi-notification>=1.2.4;照 jedi-bulletin/pyproject.toml 抄)+空 jedi_notification_center/__init__.py;git -C <工作區> add 這兩檔並 commit(P-1 在這上面長,不會動這支 pyproject)。poetry update jedi-notification-center(🔴 指定套件名,不裸跑);git update-index --assume-unchanged pyproject.toml。python -c 'import jedi_notification_center as m; print(m.__file__)' 路徑在 .worktrees/ 下;python main.py 起得來。python -c 'import jedi_notification_center as m; print(m.__file__)' 印出的路徑在 jedi-python-package/.worktrees/ 底下;python main.py 起得來;git status 不見 pyproject.toml
~/Projects/Billows/Audit-Manager/compliance-manager-be/docs/features/FR-196-2611-notification-center/design.md §3 決策定案、§5 詳細設計(§5.1 套件職責與 port、§5.2 資料表、§5.3 API、§5.5 前端)、§6 拆卡表本卡那列、§8 風險;討論稿(Artifact,連結在 README)只在想知道「為什麼這樣裁」時看~/Projects/Billows/Audit-Manager/compliance-manager-be/docs/features/FR-196-2611-notification-center/prototype/index.html(四個分頁:鈴鐺、通知中心、通知設定、系統橫幅;純畫面,只取結構與資訊順序;文案依 i18n 重寫)jedi-bulletin/jedi_bulletin/plugin/(contract/assembly/migrations)、jedi-notification/README.md;主系統接線 core/plugins/bulletin.py、core/plugins/_host.py::host_defaults、core/plugins/license.py::TenantAdminDirectory;寄信點 app/flow_engine/service/workflow_execution_service.py:1246、stage_entered_notify_service.py:117、app/task_alert/service/scan_alert_app_service.py:74;既有投遞紀錄表 infra/task_alert/model/task_alert_notification.py;鈴鐺 FE src/layout/AppTopbar.vue 484~540、TopbarStageQueue.vue;seed 先例 scripts/sql/2026-05-22-seed-oscal-ssp-roles.sql、2026-11-10-fr194-ui-routes-entry-gates.sqldocs/claude/domain-capabilities.md、FE docs/claude/frontend-overview.md §4。三擇一、預設不新增:reuse → extend → 確認沒有才新增。回寫列出本卡 reuse 了哪些、新增了哪些、為什麼不能 reuse。本案設計已做過重複盤點(橫幅、投遞紀錄、去重戳、個人資料頁),卡上「reuse/extend/new」是結論,照它做。