接入 PChome AI 自動化第一視窗
Some checks failed
CD Pipeline / deploy (push) Has been cancelled

This commit is contained in:
ogt
2026-07-02 13:48:03 +08:00
parent 5a7ff9879a
commit 06754e4a8c
5 changed files with 169 additions and 16 deletions

View File

@@ -88,6 +88,7 @@
- 2026-07-02 起 PChome controlled-apply drift 必須提供 read-only rollback / re-apply recommendation package`/api/ai/pchome-growth/mapping-backlog/direct-mapping-retry-candidate-exception-controlled-apply-drift-recovery-package` 會輸出 drift recovery actions、controlled re-apply SQL shape、rollback SQL shape、selector bindings、acceptance gates 與 artifact hash verifier。此 package 不執行 SQL、不寫 DB0 drift 時必須產生 no-op evidencedrift detected 時才輸出 ready_for_controlled_reapply actions。
- 2026-07-02 起 PChome controlled-apply 必須提供 compact latest readback endpoint`/api/ai/pchome-growth/mapping-backlog/direct-mapping-retry-candidate-exception-controlled-apply-compact-readback-package` 會收斂 apply、receipt replay、drift verifier、drift recovery 四段 receipt輸出 product status、next machine action、selector readback、drift count、recovery action count 與 artifact hash 狀態。此 endpoint 是後續產品 UI 的主要資料來源,不執行 SQL、不寫 DB。
- 2026-07-02 起 PChome controlled-apply artifacts 必須提供 read-only retention policy`/api/ai/pchome-growth/mapping-backlog/direct-mapping-retry-candidate-exception-controlled-apply-artifact-retention-package` 會掃描 verifier inputs、identity readback、controlled apply preflight、executor、replay、drift verifier、drift recovery、compact readback 八類 artifacts`keep_latest_per_family` 保留最新 evidence 並保護 active compact readback chain只輸出 prune candidates 與 retention receipt不直接刪檔、不寫 DB、不執行 destructive prune。
- 2026-07-02 起 PChome dashboard 第一視窗必須呈現 AI automation product truth`_load_pchome_growth_command_center` 需 read-only 聚合 receipt replay、drift verifier、drift recovery、compact readback 與 artifact retention policy產品面直接顯示 selector readback、drift count、retention 保留數與 automation lane 狀態;不得退回只有 raw API / artifact / log 才看得到 AI 自動化結果的模式。
- V10.644 起 `/ai_intelligence` 的商品明細列不得只用句子描述比價;每列必須顯示 PChome 價格、MOMO 參考價、差距、可信度四格價格證據,並保留下一步按鈕。單位價候選需顯示單位價與單位,候選待確認或缺資料則以「待補 / 候選待確認」呈現,不得捏造價格。
- V10.645 起 `/ai_intelligence` 的商品明細分流切換後,必須顯示「這類商品怎麼處理」的行動摘要,包含件數、近 7 天業績、平均可信度、最大價差、代表商品與主按鈕;使用者不得只能看到商品列表而不知道下一步。
- V10.646 起 `/ai_intelligence` 的商品明細必須提供搜尋與排序;搜尋至少涵蓋商品、分類、商品編號與 MOMO 候選資訊,排序至少支援優先級、近 7 天業績、價差、下滑幅度與可信度。搜尋/排序後的行動摘要與明細列表必須使用同一批結果。

View File

@@ -78,6 +78,10 @@
- `direct-mapping-retry-candidate-exception-controlled-apply-artifact-retention-package` 會掃描 controlled apply 相關 artifact families
- 每個 family 依 `keep_latest_per_family` 保留最新 evidence並額外保護 active compact readback chain
- 只產生 prune candidates 與 retention receipt不直接刪檔、不寫 DB、不執行 destructive prune
- Product dashboard first-viewport surface 已完成:
- PChome 業績成長作戰台第一視窗已接入 AI automation readiness、receipt replay、drift verifier、drift recovery、compact readback 與 artifact retention policy
- 第一視窗直接顯示「AI 全自動閉環已回讀」、selector readback、drift count、retention 保留數與 automation lane 狀態
- 頁面讀取採 read-only package不寫 DB、不刪 artifacts、不執行 prune
- AI debt scanner 顯示產品面清空:
- `PRODUCT_SURFACE_CLEAR`
- `finding_count=0`
@@ -85,7 +89,7 @@
進行中 / 下一步,必須照順序:
1. 把 PChome AI automation lanes 與 compact readback 接進 product dashboard 第一視窗。
1. 為 dashboard AI automation surface 補 UI wording guard避免 raw engineering terms 回到產品第一視窗。
完成標準:
@@ -106,18 +110,19 @@
- AI readiness 已聚合主要 automation lanes。
- Controlled apply、receipt replay、drift verifier 已進 readiness。
- 產品層 automation result 已輸出 zero primary human gates。
- PChome dashboard 第一視窗已接入 compact readback 與 artifact retention policy。
- 第一視窗 automation pipeline 已從「等待 verifier」改成顯示受控落地、Compact 回讀、Artifact retention 的 read-only production 狀態。
未開始 / 下一步,必須照順序:
進行中 / 下一步,必須照順序:
1. 把 PChome AI automation lanes 放進實際 product dashboard 第一視窗
2. 用繁體中文營運語言呈現 lane label、狀態與下一個機器動作
3. 正常產品畫面隱藏 raw endpoint、commit ID、DB table name、JSON payload。
4. 增加專業的「今日 AI 自動化狀態」摘要:
1. 用繁體中文營運語言強化 lane label、狀態與下一個機器動作
2. 正常產品畫面隱藏 raw endpoint、commit ID、DB table name、JSON payload
3. 增加專業的「今日 AI 自動化狀態」摘要:
- 已自動落地什麼
- 已驗證什麼
- drift 狀態
- 下一個機器動作
5. 增加 UI tests 或 route readback避免產品頁退回 raw engineering wording。
4. 增加 UI tests 或 route readback避免產品頁退回 raw engineering wording。
完成標準:
@@ -201,8 +206,8 @@
| P0.8 | Drift rollback / re-apply package | 已完成 | drift recovery package route + focused tests | 接入 compact readback |
| P0.9 | Compact latest apply / replay / drift / recovery readback endpoint | 已完成 | compact readback route + focused tests | 接入 product dashboard first viewport |
| P0.10 | Controlled-apply artifact retention policy | 已完成 | retention policy route + focused tests | 接入 product dashboard first viewport |
| P1.1 | Dashboard AI automation first-viewport surface | 未開始 | API readiness + compact readback + retention policy exist | 下一個實作 |
| P1.2 | UI wording guard for no raw engineering terms | 未開始 | existing guardrails only | 為新 automation surface 補 tests |
| P1.1 | Dashboard AI automation first-viewport surface | 已完成 | dashboard command center reads compact + retention packages | P1.2 wording guard |
| P1.2 | UI wording guard for no raw engineering terms | 未開始 | first viewport surface exists | 下一個實作 |
| P2.1 | External benchmark encoded into requirements | 未開始 | benchmark guide exists | 更新 guardrails / tests |
| P3.1 | Extend receipt / replay / drift pattern to more lanes | 未開始 | current retry lane complete | P1 後選下一條 safe lane |