You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 21cbce7
Browse filesBrowse the repository at this point in the historyBrowse files
fix(spike): clear the probe timeout on failure; exact-42 verdict; doc ctx = 2^20
Addresses the PR #26 review (Copilot).
- Stage 1's 60s timeout timer wasn't cleared if the initial fetch threw
(DNS/auth) — the empty `finally` only "kept the timer for the stream". Wrapped
fetch + the !ok return + the stream in a single try/finally that always calls
`to.done()`, so the timer is cleared on a throw, an early return, or a normal
end, and its abort can't fire spuriously.
- The verdict used `/42/`, which false-positives on "142", "420", or prose like
"…in 42 steps". Since the prompt asks for ONLY the number, tightened to
`^\D*42\D*$` — 42 must be the sole number in the answer. Verified: accepts
"42" / "42." / "= **42**"; rejects "142" / "420" / "1420" / mixed-digit prose.
- docs/KIMI-K3.md said the context is "1,000,000 tokens" while the shipped caps
(and their test) use 1,048,576 (2^20, what OpenRouter serves). Aligned the §2
table and the Path A caps example to 1,048,576 so a future edit can't "fix" the
doc into breaking the meter alignment.
Verified: node --check passes; the no-key path still exits 2 with guidance.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
return{verdict: 'PASS*',code: 0,why: 'Turn 2 succeeded but called a tool again instead of answering — the loop is NOT rejected by the missing reasoning (the key §3 risk is cleared). Multi-step chains work; just noting it did not stop here.'};
150
155
}
151
156
returnlooksRight
152
157
? {verdict: 'PASS',code: 0,why: 'Turn 2 completed with the correct answer, with NO reasoning echoed back in the assistant turn. K3 does not require reasoning round-tripping → tools:true is safe.'}
153
-
: {verdict: 'PASS?',code: 0,why: 'Turn 2 completed without error (the §3 rejection did NOT happen), but the answer did not clearly contain "42". Loop mechanics are fine; eyeball the answer above.'};
158
+
: {verdict: 'PASS?',code: 0,why: 'Turn 2 completed without error (the §3 rejection did NOT happen), but the answer was not exactly "42" — likely right but verbose. Loop mechanics are fine; eyeball the answer above.'};
154
159
}
155
160
156
161
/** Distinguish the §3 failure (400 needing reasoning) from capacity (429) and other errors. */
0 commit comments