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:
Yun Chan 2026-10-09 18:18:41 +09:00
parent bc914eafc5
commit 97f2c241e4
19 changed files with 767 additions and 139 deletions

View file

@ -116,11 +116,32 @@ test("녹화된 트랜스크립트가 전부 판정 케이스에 쓰인다", ()
test("모든 시나리오의 expect 를 판정기가 안다", () => {
for (const s of Object.values(SCENARIOS)) {
const r = judge(s, []);
const r = judge(s, [{ kind: "text", text: "안녕하세요" }]);
assert.notEqual(r.verdict, "ERROR", `${s.id}: ${r.note}`);
}
});
test("빈 스트림·init 만 있는 스트림은 어떤 시나리오에서도 ERROR 다(no-trigger 의 가짜 PASS 방지, F003)", () => {
for (const s of Object.values(SCENARIOS)) {
for (const events of [[], [{ kind: "init", tools: [], skills: [], sessionId: "x" }]]) {
const r = judge(s, events);
assert.equal(r.verdict, "ERROR", `${s.id}: ${r.verdict} ${r.note}`);
assert.match(r.note, /빈 스트림/);
}
}
});
test("셸 쓰기 판정: 널 장치 리다이렉트·숫자 비교는 쓰기가 아니고, 실제 쓰기와 yarn/pip/npm add 설치는 쓰기다(F028)", () => {
const isWrite = (command) =>
normalizeClaude(JSON.stringify({ type: "assistant", message: { content: [{ type: "tool_use", name: "Bash", input: { command } }] } })).find((e) => e.kind === "tool").write;
for (const c of ["cat a.md > /dev/null", "echo done > nul", "ls > $null", "ls 2>&1", "cmd 2>/dev/null", 'node -e "if (1 > 0) console.log(1)"', 'python -c "print(1 > 0)"']) {
assert.equal(isWrite(c), false, c);
}
for (const c of ["echo hi > out.txt", "echo hi >out.txt", "yarn add left-pad", "pip install x", "npm add x", "bun add x"]) {
assert.equal(isWrite(c), true, c);
}
});
test("판정 레코드 필드: 스킬 호출·채널·슬롯·턴 종료", () => {
const r = run("sdk-s1-tool-question.ndjson", "S1");
assert.equal(r.skillInvoked, true);