docs(logbook): record telegram result backfill [skip ci]
This commit is contained in:
@@ -2698,6 +2698,12 @@ Phase 6 完成後
|
||||
- Verification:API `py_compile` pass;targeted `ruff --select E9,F401,F821,F841` pass;`test_approval_execution_no_action.py` + `test_operator_outcome.py` + `test_awooop_truth_chain_service.py` + `test_awooop_operator_timeline_labels.py` + `test_telegram_message_templates.py` + `test_incident_timeline_service.py` -> 169 passed;`git diff --check` pass。
|
||||
- 判讀:T154d 不把 rejected/expired 偽裝成執行結果;它補的是「審批終局」的 operator outcome,讓前台與 Telegram 摘要可以分辨「已人工拒絕」與「逾期需重新審查」。
|
||||
|
||||
**T154e Historical result notification backfill(2026-05-31 台北)**:
|
||||
- 觸發:T154c/T154d 上線後,production 近 7 天仍有歷史 `EXECUTION_SUCCESS` / `EXECUTION_FAILED` approval 缺 `TELEGRAM_RESULT_SENT`,其中部分也缺 `EXECUTION_COMPLETED`,造成 operator 看到批准或執行狀態後沒有可追溯終局結果。
|
||||
- Backfill:`operator_outcome_result_backfill_20260531_t154e` 只處理最近 7 天 `status in (EXECUTION_SUCCESS, EXECUTION_FAILED)` 且缺 result event 的 approval,不碰 `PENDING` / `EXPIRED` / `REJECTED`。補 `approval_records.extra_metadata` 67 筆、`alert_operation_log.EXECUTION_COMPLETED` 25 筆、發送單一 Telegram SRE 歷史摘要 message id `19602`、補 `alert_operation_log.TELEGRAM_RESULT_SENT` 67 筆。每筆 result context 保留 backfill id、digest message id、`operator_outcome`、`execution_kind`、`repair_attempted`、`repair_executed`。
|
||||
- Verification:dry-run candidate `67`(`EXECUTION_SUCCESS=57`, `EXECUTION_FAILED=10`);actual `metadata_updates=67`, `execution_completed_inserted=25`, `telegram_result_inserted=67`, failures=0。Post-verify 7d:`EXECUTION_SUCCESS total=61 missing_result=0 missing_completed=0`,`EXECUTION_FAILED total=16 missing_result=0 missing_completed=0`。Production smoke:`INC-20260531-BE2B25 -> execution_failed_manual_required`;rejected/expired samples continue returning `approval_rejected_no_execution` / `approval_expired_manual_review`。
|
||||
- 判讀:T154e 是歷史 audit/result 補洞與單封摘要補通知,不重跑任何修復。`APPROVED` / `PENDING` / `EXPIRED` / `REJECTED` 的 missing result 不是執行缺口,需由 approval queue / terminal outcome 分流呈現。
|
||||
|
||||
**T152 Ansible runtime readiness surfaced(2026-05-24 台北)**:
|
||||
- 觸發:T151 已讓首頁看到 execution backend / Ansible attribution,但 operator 仍看不到 runtime 端缺什麼,容易把「Ansible 有候選」誤解成「Ansible 已能自動修復」。
|
||||
- 修正:API image 複製 `infra/ansible/` 作 read-only catalog;`truth-chain/quality/summary` 新增 `ansible_runtime`,回報 playbook binary、catalog、inventory、playbook_count、can_run_check_mode、blockers。首頁 execution evidence 同步顯示 runtime 狀態;目前 production 顯示 `runtime 未就緒:ansible_playbook_binary_missing`。未安裝 `ansible-core`、未啟用 check-mode / apply。
|
||||
|
||||
Reference in New Issue
Block a user