chore(ai-review 狀態): 補 NaN 測試、排除 recordRateLimit 微優化誤報,清空 findings.json
This commit is contained in:
@@ -518,5 +518,11 @@
|
||||
"role": "Maya",
|
||||
"original_finding": "parseBotReviewComment 的測試沒有驗證解析失敗時回傳 null 的行為。",
|
||||
"reason": "誤判,測試已存在。'returns null for free-form human comments' 已斷言自由格式留言、空字串、null 皆回傳 null。"
|
||||
},
|
||||
{
|
||||
"location": "app/usage.js:146",
|
||||
"role": "Rogue",
|
||||
"original_finding": "在 recordRateLimit 中頻繁呼叫 lowerCaseKeys,對每個請求的 headers 複製與轉換,增加記憶體分配開銷;建議改用不分大小寫存取避免複製。",
|
||||
"reason": "過度設計/非熱路徑。recordRateLimit 每次 LLM 回應只呼叫一次(一輪審查約 13 次),headers 物件小,複製成本可忽略;改用不分大小寫存取器反而增加複雜度,效益不成比例。"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user