fix(eval,ci): isolate interview eval and harden skill lint and design gate
- Run eval sessions in a temp dir outside the repo so Codex no longer reads the root AGENTS.md; empty streams, timeouts and crashes judge as ERROR instead of PASS - Close interview-gate lint gaps: softening phrases hidden on allowed lines, reordered phrasing, sibling-anchor bypass - design-gate: bold threshold 700, axe incomplete reported as manual checks, follow @import with query strings, report unverified color literals; keep site copy in sync via test - publish-npm.sh fails without NPM_TOKEN; CI requires Node 22.6+; ignore outputs/
This commit is contained in:
parent
bc914eafc5
commit
97f2c241e4
19 changed files with 767 additions and 139 deletions
|
|
@ -119,6 +119,7 @@ async function main() {
|
|||
if (resumeId) claudeArgs.push("--resume", resumeId);
|
||||
const snapshotBefore = snapshotDir(workdir);
|
||||
const child = spawn(claudeBin, claudeArgs, { cwd: workdir, stdio: ["ignore", "pipe", "pipe"], shell: useShell });
|
||||
let killTimer = null;
|
||||
const timer = setTimeout(() => {
|
||||
result.killedReason = "timeout";
|
||||
try {
|
||||
|
|
@ -126,9 +127,10 @@ async function main() {
|
|||
} catch {
|
||||
// 무시
|
||||
}
|
||||
setTimeout(() => {
|
||||
// child.killed 는 신호를 "보냈다"는 뜻이라 SIGTERM 직후 이미 true 다. 실제 종료 여부는 exitCode·signalCode 로 본다.
|
||||
killTimer = setTimeout(() => {
|
||||
try {
|
||||
if (!child.killed) child.kill("SIGKILL");
|
||||
if (child.exitCode === null && child.signalCode === null) child.kill("SIGKILL");
|
||||
} catch {
|
||||
// 무시
|
||||
}
|
||||
|
|
@ -167,6 +169,7 @@ async function main() {
|
|||
});
|
||||
});
|
||||
clearTimeout(timer);
|
||||
clearTimeout(killTimer);
|
||||
const changed = diffSnapshots(snapshotBefore, snapshotDir(workdir));
|
||||
if (logStream) logStream.write(JSON.stringify({ type: "eval_turn_end", filesChanged: [...changed.added, ...changed.modified] }) + "\n");
|
||||
if (!result.error && stderrBuf.trim()) result.stderrTail = stderrBuf.slice(-2000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue