kai_log_triage: record the held-out read

60 real CI logs from 48 public repositories, labelled by class from the
excerpt alone without the rules in view, read once against aee2889's
signatures: 42 right (.70), 7 answered unknown, 11 another class. On the
40 logs whose class ae4d07b's six categories can name, its Kai choice read
20 (p50 502 ms on the CPU) and the signatures 28.
This commit is contained in:
2026-10-14 18:30:09 -07:00
parent ca6c1b8f65
commit efe5ba3b8c
+2 -1
View File
@@ -736,7 +736,8 @@ export const kaiExtractTool: Tool = {
// Failure classes by signature, in the order a root cause outranks its symptoms: memory before the crash it
// causes, the network before the timeout, a missing package before the compile error it produces, a compile
// error before the tests it stops. kai-1.2 read build logs at chance (6 of 14), so no Kai request is made.
// error before the tests it stops. Held out on 60 real CI logs from 48 public repos: 42 right, 7 more answered
// unknown; on the 40 a six-way Kai choice could name, it read 20 and these signatures 28. No Kai request is made.
const FAILURES: [string, RegExp][] = [
['resources', /\bout of memory\b|\bOOM\b|OutOfMemoryError|heap out of memory|MemoryError|Cannot allocate memory|\bKilled\b|exit code 137|signal: killed|No space left on device|\bENOSPC\b|disk (is )?full/i],
['network', /\b(ETIMEDOUT|ECONNRESET|ECONNREFUSED|EAI_AGAIN|ENOTFOUND)\b|getaddrinfo|Could not resolve host|no such host|name resolution|Connection (reset|refused|timed out)|network is unreachable|TLS handshake|x509:|certificate (verify|has expired|signed by unknown)|SSL(Error|: )|rate limit|429 Too Many Requests|50[234] (Bad Gateway|Service Unavailable|Gateway Time-?out)|unexpected EOF while reading/i],