feat(mcp): add durable product federation receipts
This commit is contained in:
@@ -1,3 +1,26 @@
|
||||
## 2026-07-15 — P0 MCP EwoooC/MOMO durable production federation source closure
|
||||
|
||||
**完成內容**:
|
||||
- 沿用既有 AWOOOI MCP Gateway、Provider Registry、PostgreSQL/pgvector 與 Redis;沒有新增第二套 Gateway、RAG database、權限或外部自動寫入平面。
|
||||
- 新增固定來源 `mo.wooo.work`、固定 HTTPS path 的 read-only federation controller。它拒絕 redirect、credential、過期/無 timezone receipt、額外欄位、prompt payload、URL/private endpoint、敏感 key、schema drift 與 SHA-256 fingerprint mismatch;raw source payload 只存在 bounded memory,不落 DB/LOG/RAG。
|
||||
- 新增 additive `awooop_mcp_federation_run` 與 `awooop_mcp_federated_runtime_receipt`,只允許 `ewoooc`、`momo-pro-system` 兩個 canonical identity,啟用 FORCE RLS。每次 run 使用同一 `run_id/trace_id/work_item_id`,並從 durable normalized columns 重建 source hash scope;不只比較來源聲稱的 hash。
|
||||
- signal worker 以 Redis atomic lease 每 6 小時執行,startup delay 45 秒;K8s manifest 明確啟用。CD 在 worker rollout 前套用 migration,驗證兩張 table、2 個 RLS policy、3 個 identity/source constraint 與 runtime DB role read access。
|
||||
- MCP overview 以真實 fresh receipt 取代硬編碼 `0`。兩筆 receipt 上線後只會把 EwoooC/MOMO 改為 federated partial/verified;全產品仍維持 `2/12`,`cross_product_runtime_federation_receipts_missing` 不會被誤關閉。
|
||||
- `/automation/mcp` 新增繁中/英文 production federation cockpit,顯示兩個產品的 MCP server IDs、server/tool counts、runtime version、RAG model/version state、PixelRAG platforms、freshness、durable run 與 blockers;mobile/desktop 採 responsive grid、empty/degraded state 與語意化 heading/status。
|
||||
|
||||
**source/test/build evidence**:
|
||||
- API Ruff、py_compile、JSON/YAML parse 與 `git diff --check` 通過;MCP control plane、federation、version lifecycle、signal-worker binding focused pytest `30 passed`。
|
||||
- Web `typecheck` 通過;以 CD 同值 `NEXT_PUBLIC_API_URL=https://awoooi.wooo.work` 執行 production build 成功,`/[locale]/automation/mcp` route 為 `6.92 kB`、First Load JS `240 kB`。既有 Sentry migration / webpack cache 提示未由本工作新增。
|
||||
- EwoooC/MOMO source contract 在獨立 canonical Gitea worktree 完成 `7 passed`,endpoint 只輸出 aggregate metadata 與 verifier-recomputable fingerprint;既有 authenticated AI automation routes 不放寬。
|
||||
|
||||
**尚未完成 / 不誤報**:
|
||||
- 本筆建立時兩個 repo 都還沒有本 feature 的 Gitea main、CD/deploy marker 或 production runtime receipt;source/test/build 綠燈不等於 runtime closure。
|
||||
- 第一筆 production federation run 尚未產生,因此目前不能宣稱 EwoooC/MOMO `2/2` durable receipt、12 產品 `12/12`、embedding model immutable、MCP/RAG production query canary 或 PixelRAG formal promotion 完成。
|
||||
- 未安裝/呼叫外部 MCP,未寫外部 RAG 或正式商品價格,未保存 request/response body、tool output、raw catalog/page,未讀 secret/token/`.env`/raw sessions/SQLite/auth,未使用 GitHub/`gh`/Actions,也未使用 `npx -y`、`@latest` 或 `:latest` 進行安裝/升級。
|
||||
|
||||
**下一步**:
|
||||
- 依序 normal push EwoooC 與 AWOOOI Gitea main、等待各自 CD terminal,讀回 V10.796 public receipt、AWOOOI migration/runtime-role verifier、signal-worker first run、production API `2/12` 與 desktop/mobile visible UI;任一層失敗維持 partial/degraded 並走 bounded retry/rollback,不倒推完成。
|
||||
|
||||
## 2026-07-15 — P0-OBS-002 post-closure runtime regression 與 guard 修復
|
||||
|
||||
**runtime evidence**:
|
||||
|
||||
Reference in New Issue
Block a user