fix(ci): CD 修復 — shared-types 型別同步 + 測試冷啟動衝突
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
Type Sync Check / check-type-sync (push) Successful in 1m2s

1. pnpm shared-types generate — 同步 Sprint 4 新增的 Pydantic model
2. test_evaluate_not_high_quality 修復 — 加 MEDIUM risk step 避免
   意外走冷啟動路徑 (Redis 未初始化 → COLD_START_DAILY_LIMIT)

11/11 auto_repair 測試通過

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-07 13:09:17 +08:00
parent 3a3f9cf70c
commit b20a619a3d
3 changed files with 58 additions and 2 deletions

View File

@@ -858,6 +858,34 @@
"default": null,
"description": "最後一次修復是否成功",
"title": "Last Repair Success"
},
"human_approved_count": {
"default": 0,
"description": "人工按批准後執行次數",
"minimum": 0,
"title": "Human Approved Count",
"type": "integer"
},
"manual_resolved_count": {
"default": 0,
"description": "無系統修復紀錄但 resolved 次數",
"minimum": 0,
"title": "Manual Resolved Count",
"type": "integer"
},
"cold_start_trust_count": {
"default": 0,
"description": "首次信任自動放行次數",
"minimum": 0,
"title": "Cold Start Trust Count",
"type": "integer"
},
"total_resolution_count": {
"default": 0,
"description": "總處置次數 (auto + human + manual + cold_start)",
"minimum": 0,
"title": "Total Resolution Count",
"type": "integer"
}
},
"required": [

View File

@@ -303,6 +303,22 @@ export type LastRepairAction = string | null;
* 最後一次修復是否成功
*/
export type LastRepairSuccess = boolean | null;
/**
* 人工按批准後執行次數
*/
export type HumanApprovedCount = number;
/**
* 無系統修復紀錄但 resolved 次數
*/
export type ManualResolvedCount = number;
/**
* 首次信任自動放行次數
*/
export type ColdStartTrustCount = number;
/**
* 總處置次數 (auto + human + manual + cold_start)
*/
export type TotalResolutionCount = number;
/**
* 是否已執行修復提案
*/
@@ -988,6 +1004,10 @@ export interface IncidentFrequencyStats {
auto_repair_count?: AutoRepairCount;
last_repair_action?: LastRepairAction;
last_repair_success?: LastRepairSuccess;
human_approved_count?: HumanApprovedCount;
manual_resolved_count?: ManualResolvedCount;
cold_start_trust_count?: ColdStartTrustCount;
total_resolution_count?: TotalResolutionCount;
[k: string]: unknown;
}
/**