From 59ea097871928b6486c06acb0c0887a2aa9d63d4 Mon Sep 17 00:00:00 2001 From: Apostolos Mantzaris Date: Wed, 7 Oct 2026 14:35:29 +0300 Subject: [PATCH 1/9] feat: add mutation helper (closes #4048) Add a bounded CLI for compile-valid hand mutations with hash-verified restoration, test transcripts, and PR table rows. --- .changelog/mutate-4048.md | 6 + docs/pi-lens-fixer.md | 2 + scripts/mutate.mjs | 244 ++++++++++++++++++++++ tests/clients/flake-shape-ratchet.test.ts | 10 + tests/scripts/mutate-built.txt | 1 + tests/scripts/mutate-fixture.test.ts | 19 ++ tests/scripts/mutate.test.ts | 162 ++++++++++++++ tests/support/flake-shape-baseline.json | 2 + vitest.config.ts | 5 + 9 files changed, 451 insertions(+) create mode 100644 .changelog/mutate-4048.md create mode 100644 scripts/mutate.mjs create mode 100644 tests/scripts/mutate-built.txt create mode 100644 tests/scripts/mutate-fixture.test.ts create mode 100644 tests/scripts/mutate.test.ts diff --git a/.changelog/mutate-4048.md b/.changelog/mutate-4048.md new file mode 100644 index 000000000..cc29db44d --- /dev/null +++ b/.changelog/mutate-4048.md @@ -0,0 +1,6 @@ +--- +section: Added +audience: internal +--- + +- Add `scripts/mutate.mjs`, a hash-verified mutation runner that always restores its target and reports mutation outcomes. diff --git a/docs/pi-lens-fixer.md b/docs/pi-lens-fixer.md index 46b56c478..1cf60c49f 100644 --- a/docs/pi-lens-fixer.md +++ b/docs/pi-lens-fixer.md @@ -60,6 +60,8 @@ mechanics"; a brief supplies only `lane=`, scope, and the grant. ## Evidence +- Use `scripts/mutate.mjs` for bounded hand mutations; it restores and verifies the target automatically. + - Witness rule (ADR 0007): #1605 owns the witness lanes, and their fixtures live under `tests/fixtures/witness//`. - Red-first has one stated exception: when the only red-first path needs broad diff --git a/scripts/mutate.mjs b/scripts/mutate.mjs new file mode 100644 index 000000000..c1c1a60d9 --- /dev/null +++ b/scripts/mutate.mjs @@ -0,0 +1,244 @@ +#!/usr/bin/env node +/** + * Run one bounded, restorable hand mutation (#4048). + * + * The file is deliberately a small process boundary: callers can use it from + * a shell or a test without importing the test runner or the project build. + */ +import { createHash } from "node:crypto"; +import { spawn, spawnSync } from "node:child_process"; +import { readFileSync, statSync, writeFileSync } from "node:fs"; +import * as path from "node:path"; +import { fileURLToPath } from "node:url"; + +const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); + +function usage(message) { + if (message) console.error(`mutate.mjs: ${message}`); + console.error( + "usage: scripts/mutate.mjs --file --find --replace --tests [--built] [--table]", + ); + process.exitCode = 2; +} + +function argsFrom(argv) { + const values = { tests: [] }; + for (let index = 0; index < argv.length; index += 1) { + const arg = argv[index]; + if (arg === "--built" || arg === "--table") values[arg.slice(2)] = true; + else if (arg === "--tests") values.tests = argv.slice(++index); + else if (["--file", "--find", "--replace"].includes(arg)) { + const value = argv[++index]; + if (value === undefined) throw new Error(`${arg} needs a value`); + values[arg.slice(2)] = value; + } else throw new Error(`unknown argument ${arg}`); + } + if ( + !values.file || + values.find === undefined || + values.replace === undefined + ) { + throw new Error("--file, --find, and --replace are required"); + } + if (values.tests.length === 0) + throw new Error("--tests needs at least one file"); + return values; +} + +function digest(bytes) { + return createHash("sha256").update(bytes).digest("hex"); +} + +function gitClean(file) { + const result = spawnSync( + process.env.GIT ?? "git", + ["status", "--porcelain=v1", "--", file], + { + cwd: root, + encoding: "utf8", + }, + ); + if (result.error) throw result.error; + return result.status === 0 && result.stdout.trim() === ""; +} + +function twinFor(source) { + if (source.endsWith(".ts") || source.endsWith(".tsx")) { + return source.replace(/\.tsx?$/, ".js"); + } + return null; +} + +function parseFind(value) { + if (value.startsWith("/") && value.lastIndexOf("/") > 0) { + const slash = value.lastIndexOf("/"); + try { + return new RegExp(value.slice(1, slash), value.slice(slash + 1)); + } catch (error) { + throw new Error(`invalid --find regex: ${error.message}`); + } + } + return value; +} + +function mutationFor(original, find, replacement) { + const needle = parseFind(find); + const mutated = original.replace(needle, replacement); + if (mutated === original) { + throw new Error( + "refusing no-op edit: --find is absent or replacement is identical", + ); + } + return mutated; +} + +function restoreFile(file, bytes, expectedHash) { + writeFileSync(file, bytes); + const actual = digest(readFileSync(file)); + if (actual !== expectedHash) + throw new Error(`restore sha256 mismatch for ${file}`); +} + +function failedTitles(output) { + return output + .split("\n") + .filter((line) => /FAIL|×|✗/.test(line)) + .map((line) => line.trim()) + .filter(Boolean) + .slice(0, 20); +} + +function runTests(files, onSignal) { + return new Promise((resolve) => { + const command = path.join(root, "node_modules", ".bin", "vitest"); + const child = spawn( + command, + ["run", ...files, "--configLoader", "runner"], + { + cwd: root, + env: process.env, + stdio: ["ignore", "pipe", "pipe"], + }, + ); + let output = ""; + child.stdout.on("data", (chunk) => { + output += chunk; + process.stdout.write(chunk); + }); + child.stderr.on("data", (chunk) => { + output += chunk; + process.stderr.write(chunk); + }); + const stop = () => { + child.kill("SIGINT"); + onSignal(); + }; + process.once("SIGINT", stop); + child.once("close", (code, signal) => { + process.removeListener("SIGINT", stop); + resolve({ code: code ?? 130, signal, output }); + }); + }); +} + +function build() { + const result = spawnSync( + process.execPath, + [ + path.join(root, "node_modules", "typescript", "bin", "tsc"), + "--project", + "tsconfig.build.json", + ], + { cwd: root, env: process.env, encoding: "utf8", stdio: "inherit" }, + ); + if (result.error) throw result.error; + if (result.status !== 0) + throw new Error(`build failed with exit code ${result.status}`); +} + +function appendTable(options, result) { + const row = `| ${options.file} | ${result.code} | ${result.status} | ${result.failed.length ? result.failed.join(" ") : "—"} |\n`; + const body = path.join(root, "PR_BODY.md"); + if (options.table && statExists(body)) + writeFileSync(body, `${readFileSync(body, "utf8")}${row}`); + console.log(`mutation-table: ${row.trimEnd()}`); +} + +function statExists(file) { + try { + statSync(file); + return true; + } catch { + return false; + } +} + +async function main() { + let options; + try { + options = argsFrom(process.argv.slice(2)); + } catch (error) { + usage(error.message); + return 2; + } + const source = path.resolve(root, options.file); + const target = options.built ? source : source; + const candidateTwin = options.built ? null : twinFor(source); + const twin = + candidateTwin && statExists(candidateTwin) ? candidateTwin : null; + const files = [target, ...(twin ? [twin] : [])]; + for (const file of files) { + if (!statExists(file)) + throw new Error(`file does not exist: ${path.relative(root, file)}`); + if (!gitClean(path.relative(root, file))) + throw new Error(`refusing dirty file: ${path.relative(root, file)}`); + } + const originals = new Map(files.map((file) => [file, readFileSync(file)])); + let result = { code: 2, failed: [], status: "RED" }; + let interrupted = false; + const interrupt = () => { + interrupted = true; + }; + process.once("SIGINT", interrupt); + try { + const original = originals.get(target); + writeFileSync( + target, + mutationFor(original.toString("utf8"), options.find, options.replace), + ); + if (!options.built) build(); + if (interrupted) + result = { code: 130, failed: ["interrupted"], status: "RED" }; + else { + const testRun = await runTests(options.tests, () => { + interrupted = true; + }); + result = { + code: testRun.code, + failed: failedTitles(testRun.output), + status: testRun.code === 0 ? "SURVIVED" : "RED", + }; + } + } catch (error) { + result = { code: 1, failed: [error.message], status: "RED" }; + } finally { + process.removeListener("SIGINT", interrupt); + for (const [file, bytes] of originals) + restoreFile(file, bytes, digest(bytes)); + } + console.log("--- mutation transcript ---"); + console.log( + `mutation: ${options.file} (${options.find} -> ${options.replace})`, + ); + console.log(`exit code: ${result.code}`); + console.log( + `failed test titles: ${result.failed.length ? result.failed.join("; ") : "none"}`, + ); + console.log(result.status); + appendTable(options, result); + return result.code; +} + +main().then((code) => { + process.exitCode = code; +}); diff --git a/tests/clients/flake-shape-ratchet.test.ts b/tests/clients/flake-shape-ratchet.test.ts index a48143456..392346cb9 100644 --- a/tests/clients/flake-shape-ratchet.test.ts +++ b/tests/clients/flake-shape-ratchet.test.ts @@ -128,6 +128,11 @@ const ADMITTED_AFTER_BASELINE: Readonly< reason: "the defect is wall-clock only (2^N globstar backtracking); a fake clock measures nothing", }, + "never-settling-wait:scripts/mutate-fixture.test.ts": { + detector: "never-settling-wait", + reason: + "the interrupt witness must hold a real child open until SIGINT; replacing the wait with a settled promise would erase the lifecycle under test", + }, // 2026-09-07 (#2703 review r1): an unhandled derived-promise rejection is // only observable through Node's `unhandledRejection` event, which fires // on a real macrotask; the file drains one real `setImmediate` tick. @@ -478,6 +483,11 @@ const ADMITTED_AFTER_BASELINE: Readonly< // scripts/mutation-report.mjs's own argv parsing (--report/--out) and // file I/O; an in-process call would just re-exercise the exported render // function the other describe block already covers. + "real-process-spawn:scripts/mutate.test.ts": { + detector: "real-process-spawn", + reason: + "the mutation CLI's child Vitest process and signal path are the process boundary; an in-process call cannot prove restoration after SIGINT", + }, "real-process-spawn:scripts/mutation-report-render.test.ts": { detector: "real-process-spawn", reason: diff --git a/tests/scripts/mutate-built.txt b/tests/scripts/mutate-built.txt new file mode 100644 index 000000000..7c3ae64fb --- /dev/null +++ b/tests/scripts/mutate-built.txt @@ -0,0 +1 @@ +mutation-built-marker diff --git a/tests/scripts/mutate-fixture.test.ts b/tests/scripts/mutate-fixture.test.ts new file mode 100644 index 000000000..67b3ebf10 --- /dev/null +++ b/tests/scripts/mutate-fixture.test.ts @@ -0,0 +1,19 @@ +// flake-shape: never-settling-wait — the interrupt witness must keep a real child alive until the CLI sends SIGINT. +import { expect, it } from "vitest"; + +it("mutation fixture remains original", () => { + // mutation-safe-marker + expect("original").toBe("original"); +}); + +it("mutation fixture has a failure marker", () => { + expect("mutation-fail-marker").toBe("mutation-fail-marker"); +}); + +it("mutation fixture can hold an interrupting run", async () => { + if (!process.env.PI_LENS_MUTATION_RUN) { + expect(true).toBe(true); + return; + } + await new Promise(() => {}); +}); diff --git a/tests/scripts/mutate.test.ts b/tests/scripts/mutate.test.ts new file mode 100644 index 000000000..ce70268a9 --- /dev/null +++ b/tests/scripts/mutate.test.ts @@ -0,0 +1,162 @@ +// flake-shape: real-process-spawn — the mutation CLI's child Vitest process and SIGINT restoration are the process boundary under test. +import { execFile, spawn } from "node:child_process"; +import { createHash } from "node:crypto"; +import { readFileSync } from "node:fs"; +import { promisify } from "node:util"; +import { expect, it } from "vitest"; + +const execFileAsync = promisify(execFile); +const root = process.cwd(); +const cli = "scripts/mutate.mjs"; +const target = "tests/scripts/mutate-fixture.test.ts"; +const digest = () => + createHash("sha256").update(readFileSync(target)).digest("hex"); + +function invoke(testFile: string, ...extra: string[]) { + return execFileAsync( + process.execPath, + [ + cli, + "--file", + target, + "--find", + "mutation-safe-marker", + "--replace", + "changed", + "--tests", + testFile, + ...extra, + ], + { cwd: root }, + ); +} + +function invokeNoop() { + return execFileAsync( + process.execPath, + [ + cli, + "--file", + target, + "--find", + "missing", + "--replace", + "changed", + "--tests", + target, + ], + { cwd: root }, + ); +} + +it("restores the source after a successful test run and reports SURVIVED", async () => { + const before = digest(); + const { stdout } = await invoke(target); + expect(stdout).toContain("SURVIVED"); + expect(digest()).toBe(before); +}); + +it("restores the source after a failing test run and reports RED with a title", async () => { + const before = digest(); + await expect( + execFileAsync( + process.execPath, + [ + cli, + "--file", + target, + "--find", + "mutation-fail-marker", + "--replace", + "changed", + "--tests", + target, + ], + { cwd: root }, + ), + ).rejects.toMatchObject({ code: 1 }); + expect(digest()).toBe(before); +}); + +it("restores after a mutation throw", async () => { + const before = digest(); + await expect( + execFileAsync( + process.execPath, + [ + cli, + "--file", + target, + "--find", + "/[", + "--replace", + "changed", + "--tests", + target, + ], + { cwd: root }, + ), + ).rejects.toMatchObject({ code: 1 }); + expect(digest()).toBe(before); +}); + +it("refuses a no-op and leaves the source untouched", async () => { + const before = digest(); + await expect(invokeNoop()).rejects.toMatchObject({ code: 1 }); + expect(digest()).toBe(before); +}); + +it("restores on SIGINT", async () => { + const before = digest(); + const child = spawn( + process.execPath, + [ + cli, + "--file", + target, + "--find", + "mutation-safe-marker", + "--replace", + "changed", + "--tests", + target, + ], + { + cwd: root, + env: { ...process.env, PI_LENS_MUTATION_RUN: "1" }, + stdio: ["ignore", "pipe", "ignore"], + }, + ); + await new Promise((resolve) => child.stdout?.once("data", resolve)); + child.kill("SIGINT"); + const code = await new Promise((resolve) => child.once("close", resolve)); + expect(code).toBe(130); + expect(digest()).toBe(before); +}); + +it("supports a surviving built-twin mutation", async () => { + const builtTarget = "tests/scripts/mutate-built.txt"; + const before = createHash("sha256") + .update(readFileSync(builtTarget)) + .digest("hex"); + const { stdout } = await execFileAsync( + process.execPath, + [ + cli, + "--built", + "--file", + builtTarget, + "--find", + "mutation-built-marker", + "--replace", + "changed", + "--tests", + target, + ], + { cwd: root }, + ); + expect(stdout).toContain("SURVIVED"); + expect( + createHash("sha256").update(readFileSync(builtTarget)).digest("hex"), + ).toBe(before); +}); diff --git a/tests/support/flake-shape-baseline.json b/tests/support/flake-shape-baseline.json index dce92b37f..0229336ac 100644 --- a/tests/support/flake-shape-baseline.json +++ b/tests/support/flake-shape-baseline.json @@ -78,6 +78,7 @@ "scripts/knip-sibling-purge.test.ts": 1, "scripts/lint-js.test.ts": 6, "scripts/lockfile-completeness.test.ts": 1, + "scripts/mutate.test.ts": 1, "scripts/mutation-report-render.test.ts": 3, "scripts/notify-install-smoke-drift.test.ts": 5, "scripts/notify-tool-smoke-red.test.ts": 5, @@ -336,6 +337,7 @@ "clients/runtime-session-sequence-read-budget.test.ts": 1, "index-2939-read-path-witness.test.ts": 1, "index-2939-tool-result-budget-witness.test.ts": 1, + "scripts/mutate-fixture.test.ts": 1, "tools/lsp-diagnostics-silent-clean-flow.test.ts": 1, "tools/lsp-diagnostics.test.ts": 1 } diff --git a/vitest.config.ts b/vitest.config.ts index d9940058c..68a2248ee 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -529,6 +529,11 @@ export const wallClockBudgetInclude = [ // admission). "tests/scripts/lint-js.test.ts", "tests/scripts/lockfile-completeness.test.ts", + // #4048: the mutation helper's real child and SIGINT restoration witness + // require a quiet serialized phase; its bounded timer and never-settling + // fixture are the process boundary under test (flake-shape admission). + "tests/scripts/mutate-fixture.test.ts", + "tests/scripts/mutate.test.ts", // #3531: the mutation-report CLI smoke test spawns a real node child to // prove its own argv parsing (--report/--out), not just the exported // render function (flake-shape admission). From 674cd38bc35ea18cb27a65c876129d0adf8b38c4 Mon Sep 17 00:00:00 2001 From: Apostolos Mantzaris Date: Wed, 7 Oct 2026 14:56:36 +0300 Subject: [PATCH 2/9] fix: harden mutation restore lifecycle Restore mutation journals on termination, reject prose-only and repeated inputs, and classify unloaded test files separately. Add round-two subprocess coverage for signals, timeout, and crash recovery. Closes #4048. --- scripts/mutate.mjs | 220 +++++++++++++++++++++-- tests/scripts/mutate-fixture.test.ts | 5 +- tests/scripts/mutate.test.ts | 259 ++++++++++++++++++++++++++- 3 files changed, 464 insertions(+), 20 deletions(-) diff --git a/scripts/mutate.mjs b/scripts/mutate.mjs index c1c1a60d9..718945f5b 100644 --- a/scripts/mutate.mjs +++ b/scripts/mutate.mjs @@ -7,7 +7,13 @@ */ import { createHash } from "node:crypto"; import { spawn, spawnSync } from "node:child_process"; -import { readFileSync, statSync, writeFileSync } from "node:fs"; +import { + readFileSync, + readdirSync, + statSync, + writeFileSync, + unlinkSync, +} from "node:fs"; import * as path from "node:path"; import { fileURLToPath } from "node:url"; @@ -16,23 +22,36 @@ const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); function usage(message) { if (message) console.error(`mutate.mjs: ${message}`); console.error( - "usage: scripts/mutate.mjs --file --find --replace --tests [--built] [--table]", + "usage: scripts/mutate.mjs --file --find --replace --tests [--built] [--table] [--restore]", ); process.exitCode = 2; } function argsFrom(argv) { const values = { tests: [] }; + let fileSeen = false; for (let index = 0; index < argv.length; index += 1) { const arg = argv[index]; - if (arg === "--built" || arg === "--table") values[arg.slice(2)] = true; + if ( + arg === "--built" || + arg === "--table" || + arg === "--restore" || + arg === "--allow-comment" + ) + values[arg.slice(2)] = true; else if (arg === "--tests") values.tests = argv.slice(++index); else if (["--file", "--find", "--replace"].includes(arg)) { + if (arg === "--file" && fileSeen) + throw new Error( + "repeated --file is not supported; provide one file per run", + ); + if (arg === "--file") fileSeen = true; const value = argv[++index]; if (value === undefined) throw new Error(`${arg} needs a value`); values[arg.slice(2)] = value; } else throw new Error(`unknown argument ${arg}`); } + if (values.restore) return values; if ( !values.file || values.find === undefined || @@ -81,9 +100,39 @@ function parseFind(value) { return value; } -function mutationFor(original, find, replacement) { +function mutationFor(original, find, replacement, allowComment = false) { const needle = parseFind(find); - const mutated = original.replace(needle, replacement); + const searchable = blankCommentsAndStrings(original); + const codeIndex = + typeof needle === "string" + ? searchable.indexOf(needle) + : (() => { + needle.lastIndex = 0; + return needle.exec(searchable)?.index ?? -1; + })(); + if (codeIndex < 0 && !allowComment) + throw new Error( + "refusing no-op edit: --find matches only comments/strings or is absent", + ); + const originalIndex = + codeIndex >= 0 + ? codeIndex + : typeof needle === "string" + ? original.indexOf(needle) + : original.search(needle); + const matchLength = + typeof needle === "string" + ? needle.length + : (() => { + needle.lastIndex = 0; + return needle.exec(original.slice(originalIndex))?.[0].length; + })(); + const mutated = + originalIndex >= 0 && matchLength !== undefined + ? original.slice(0, originalIndex) + + replacement + + original.slice(originalIndex + matchLength) + : original.replace(needle, replacement); if (mutated === original) { throw new Error( "refusing no-op edit: --find is absent or replacement is identical", @@ -92,6 +141,58 @@ function mutationFor(original, find, replacement) { return mutated; } +function blankCommentsAndStrings(source) { + let state = "code"; + let quote = ""; + let escaped = false; + let output = ""; + for (let index = 0; index < source.length; index += 1) { + const current = source[index]; + const next = source[index + 1]; + if (state === "line") { + output += current === "\n" ? "\n" : " "; + if (current === "\n") state = "code"; + continue; + } + if (state === "block") { + output += current === "\n" ? "\n" : " "; + if (current === "*" && next === "/") { + output += " "; + index += 1; + state = "code"; + } + continue; + } + if (state === "string") { + output += current === "\n" ? "\n" : " "; + if (escaped) escaped = false; + else if (current === "\\") escaped = true; + else if (current === quote) state = "code"; + continue; + } + if (current === "/" && next === "/") { + output += " "; + index += 1; + state = "line"; + continue; + } + if (current === "/" && next === "*") { + output += " "; + index += 1; + state = "block"; + continue; + } + if (current === '"' || current === "'" || current === "`") { + output += " "; + state = "string"; + quote = current; + continue; + } + output += current; + } + return output; +} + function restoreFile(file, bytes, expectedHash) { writeFileSync(file, bytes); const actual = digest(readFileSync(file)); @@ -99,6 +200,45 @@ function restoreFile(file, bytes, expectedHash) { throw new Error(`restore sha256 mismatch for ${file}`); } +function journalFor(file) { + return `${file}.mutate-backup`; +} + +function journalHashFor(file) { + return `${journalFor(file)}.sha256`; +} + +function writeJournal(file, bytes) { + writeFileSync(journalFor(file), bytes, { flag: "wx" }); + writeFileSync(journalHashFor(file), digest(bytes), { flag: "wx" }); +} + +function restoreJournal(file) { + const backup = journalFor(file); + const hashFile = journalHashFor(file); + if (!statExists(backup) || !statExists(hashFile)) return false; + const bytes = readFileSync(backup); + const expectedHash = readFileSync(hashFile, "utf8").trim(); + if (digest(bytes) !== expectedHash) + throw new Error(`backup sha256 mismatch for ${file}`); + restoreFile(file, bytes, expectedHash); + unlinkSync(backup); + unlinkSync(hashFile); + return true; +} + +function journalFiles(directory) { + const found = []; + for (const entry of readdirSync(directory, { withFileTypes: true })) { + const full = path.join(directory, entry.name); + if (entry.isDirectory() && entry.name !== "node_modules") + found.push(...journalFiles(full)); + else if (entry.isFile() && entry.name.endsWith(".mutate-backup")) + found.push(full.slice(0, -".mutate-backup".length)); + } + return found; +} + function failedTitles(output) { return output .split("\n") @@ -108,6 +248,12 @@ function failedTitles(output) { .slice(0, 20); } +function classifyTestRun(testRun) { + if (/(?:Tests\s+no tests|Tests\s+0 tests)/.test(testRun.output)) + return "ERROR"; + return testRun.code === 0 ? "SURVIVED" : "RED"; +} + function runTests(files, onSignal) { return new Promise((resolve) => { const command = path.join(root, "node_modules", ".bin", "vitest"); @@ -120,6 +266,7 @@ function runTests(files, onSignal) { stdio: ["ignore", "pipe", "pipe"], }, ); + activeChild = child; let output = ""; child.stdout.on("data", (chunk) => { output += chunk; @@ -135,12 +282,15 @@ function runTests(files, onSignal) { }; process.once("SIGINT", stop); child.once("close", (code, signal) => { + activeChild = null; process.removeListener("SIGINT", stop); resolve({ code: code ?? 130, signal, output }); }); }); } +let activeChild = null; + function build() { const result = spawnSync( process.execPath, @@ -181,6 +331,15 @@ async function main() { usage(error.message); return 2; } + if (options.restore) { + const files = options.file + ? [path.resolve(root, options.file)] + : journalFiles(root); + let restored = 0; + for (const file of files) restored += restoreJournal(file) ? 1 : 0; + console.log(`restored ${restored} mutation journal(s)`); + return 0; + } const source = path.resolve(root, options.file); const target = options.built ? source : source; const candidateTwin = options.built ? null : twinFor(source); @@ -190,21 +349,56 @@ async function main() { for (const file of files) { if (!statExists(file)) throw new Error(`file does not exist: ${path.relative(root, file)}`); + restoreJournal(file); if (!gitClean(path.relative(root, file))) throw new Error(`refusing dirty file: ${path.relative(root, file)}`); } const originals = new Map(files.map((file) => [file, readFileSync(file)])); + let activeFiles = []; let result = { code: 2, failed: [], status: "RED" }; let interrupted = false; - const interrupt = () => { - interrupted = true; + let handlingSignal = false; + const restoreAll = () => { + for (const [file, bytes] of originals) + restoreFile(file, bytes, digest(bytes)); + for (const file of activeFiles) { + if (statExists(journalFor(file))) restoreJournal(file); + } }; - process.once("SIGINT", interrupt); + const signalHandler = (signal) => { + if (handlingSignal) return; + handlingSignal = true; + interrupted = true; + try { + if (activeChild) activeChild.kill("SIGKILL"); + restoreAll(); + } finally { + process.removeAllListeners(signal); + process.kill(process.pid, signal); + } + }; + for (const signal of ["SIGINT", "SIGTERM", "SIGHUP"]) + process.once(signal, () => signalHandler(signal)); + process.once("uncaughtException", (error) => { + try { + restoreAll(); + } finally { + console.error(error.stack ?? error); + process.exit(1); + } + }); try { const original = originals.get(target); + for (const [file, bytes] of originals) writeJournal(file, bytes); + activeFiles = [...originals.keys()]; writeFileSync( target, - mutationFor(original.toString("utf8"), options.find, options.replace), + mutationFor( + original.toString("utf8"), + options.find, + options.replace, + options["allow-comment"], + ), ); if (!options.built) build(); if (interrupted) @@ -216,15 +410,15 @@ async function main() { result = { code: testRun.code, failed: failedTitles(testRun.output), - status: testRun.code === 0 ? "SURVIVED" : "RED", + status: classifyTestRun(testRun), }; } } catch (error) { result = { code: 1, failed: [error.message], status: "RED" }; } finally { - process.removeListener("SIGINT", interrupt); - for (const [file, bytes] of originals) - restoreFile(file, bytes, digest(bytes)); + restoreAll(); + for (const signal of ["SIGINT", "SIGTERM", "SIGHUP"]) + process.removeAllListeners(signal); } console.log("--- mutation transcript ---"); console.log( diff --git a/tests/scripts/mutate-fixture.test.ts b/tests/scripts/mutate-fixture.test.ts index 67b3ebf10..9df9116d6 100644 --- a/tests/scripts/mutate-fixture.test.ts +++ b/tests/scripts/mutate-fixture.test.ts @@ -1,8 +1,11 @@ // flake-shape: never-settling-wait — the interrupt witness must keep a real child alive until the CLI sends SIGINT. import { expect, it } from "vitest"; +const mutationSafeMarker = true; + it("mutation fixture remains original", () => { - // mutation-safe-marker + // mutation-comment-only-marker + expect(mutationSafeMarker).toBe(true); expect("original").toBe("original"); }); diff --git a/tests/scripts/mutate.test.ts b/tests/scripts/mutate.test.ts index ce70268a9..944b2e6d9 100644 --- a/tests/scripts/mutate.test.ts +++ b/tests/scripts/mutate.test.ts @@ -9,6 +9,8 @@ const execFileAsync = promisify(execFile); const root = process.cwd(); const cli = "scripts/mutate.mjs"; const target = "tests/scripts/mutate-fixture.test.ts"; +const find = "true"; +const replace = "Boolean(1)"; const digest = () => createHash("sha256").update(readFileSync(target)).digest("hex"); @@ -20,9 +22,9 @@ function invoke(testFile: string, ...extra: string[]) { "--file", target, "--find", - "mutation-safe-marker", + find, "--replace", - "changed", + replace, "--tests", testFile, ...extra, @@ -115,9 +117,9 @@ it("restores on SIGINT", async () => { "--file", target, "--find", - "mutation-safe-marker", + find, "--replace", - "changed", + replace, "--tests", target, ], @@ -129,8 +131,15 @@ it("restores on SIGINT", async () => { ); await new Promise((resolve) => child.stdout?.once("data", resolve)); child.kill("SIGINT"); - const code = await new Promise((resolve) => child.once("close", resolve)); - expect(code).toBe(130); + const [code, signal] = await new Promise< + [number | null, NodeJS.Signals | null] + >((resolve) => + child.once("close", (exitCode, closeSignal) => + resolve([exitCode, closeSignal]), + ), + ); + expect(code).toBeNull(); + expect(signal).toBe("SIGINT"); expect(digest()).toBe(before); }); @@ -160,3 +169,241 @@ it("supports a surviving built-twin mutation", async () => { createHash("sha256").update(readFileSync(builtTarget)).digest("hex"), ).toBe(before); }); + +it("refuses a comment-only match unless explicitly allowed", async () => { + const before = digest(); + await expect( + execFileAsync( + process.execPath, + [ + cli, + "--file", + target, + "--find", + "mutation-comment-only-marker", + "--replace", + "changed", + "--tests", + target, + ], + { cwd: root }, + ), + ).rejects.toMatchObject({ + code: 1, + stdout: expect.stringContaining("comments/strings"), + }); + const { stdout } = await execFileAsync( + process.execPath, + [ + cli, + "--allow-comment", + "--file", + target, + "--find", + "mutation-comment-only-marker", + "--replace", + "changed", + "--tests", + target, + ], + { cwd: root }, + ); + expect(stdout).toContain("SURVIVED"); + expect(digest()).toBe(before); +}); + +it("refuses repeated --file options", async () => { + await expect( + execFileAsync( + process.execPath, + [ + cli, + "--file", + target, + "--file", + "tests/scripts/mutate-built.txt", + "--find", + find, + "--replace", + replace, + "--tests", + target, + ], + { cwd: root }, + ), + ).rejects.toMatchObject({ + code: 2, + stderr: expect.stringContaining("repeated --file"), + }); +}); + +it("reports a test load failure as ERROR", async () => { + const before = digest(); + await expect( + execFileAsync( + process.execPath, + [ + cli, + "--file", + target, + "--find", + "const mutationSafeMarker =", + "--replace", + "const mutationSafeMarker = =", + "--tests", + target, + ], + { cwd: root }, + ), + ).rejects.toMatchObject({ + code: 1, + stdout: expect.stringContaining("ERROR"), + }); + expect(digest()).toBe(before); +}); + +async function terminatesAndRestores(signal: "SIGTERM" | "SIGHUP") { + const before = digest(); + const child = spawn( + process.execPath, + [ + cli, + "--file", + target, + "--find", + find, + "--replace", + replace, + "--tests", + target, + ], + { + cwd: root, + env: { ...process.env, PI_LENS_MUTATION_RUN: "1" }, + stdio: ["ignore", "pipe", "ignore"], + }, + ); + await new Promise((resolve) => child.stdout?.once("data", resolve)); + child.kill(signal); + const [code, closeSignal] = await new Promise< + [number | null, NodeJS.Signals | null] + >((resolve) => + child.once("close", (exitCode, observedSignal) => + resolve([exitCode, observedSignal]), + ), + ); + expect(code).toBeNull(); + expect(closeSignal).toBe(signal); + expect(digest()).toBe(before); +} + +it("restores on SIGTERM", () => terminatesAndRestores("SIGTERM")); + +it("restores on SIGHUP", () => terminatesAndRestores("SIGHUP")); + +it("restores when a real timeout sends SIGTERM", async () => { + const builtTarget = "tests/scripts/mutate-built.txt"; + const before = createHash("sha256") + .update(readFileSync(builtTarget)) + .digest("hex"); + await expect( + execFileAsync( + "timeout", + [ + "-s", + "TERM", + "2s", + process.execPath, + cli, + "--built", + "--file", + "tests/scripts/mutate-built.txt", + "--find", + "mutation-built-marker", + "--replace", + "changed", + "--tests", + target, + ], + { cwd: root, env: { ...process.env, PI_LENS_MUTATION_RUN: "1" } }, + ), + ).rejects.toMatchObject({ + code: 124, + }); + expect( + createHash("sha256").update(readFileSync(builtTarget)).digest("hex"), + ).toBe(before); +}); + +it("restores a SIGKILLed run on the next --restore invocation", async () => { + const before = digest(); + const child = spawn( + process.execPath, + [ + cli, + "--file", + target, + "--find", + find, + "--replace", + replace, + "--tests", + target, + ], + { + cwd: root, + env: { ...process.env, PI_LENS_MUTATION_RUN: "1" }, + stdio: ["ignore", "pipe", "ignore"], + }, + ); + await new Promise((resolve) => child.stdout?.once("data", resolve)); + child.kill("SIGKILL"); + await new Promise((resolve) => child.once("close", resolve)); + expect(digest()).not.toBe(before); + await execFileAsync(process.execPath, [cli, "--restore"], { cwd: root }); + expect(digest()).toBe(before); +}); + +it("restores an orphan journal before the next normal invocation", async () => { + const before = digest(); + const child = spawn( + process.execPath, + [ + cli, + "--file", + target, + "--find", + find, + "--replace", + replace, + "--tests", + target, + ], + { + cwd: root, + env: { ...process.env, PI_LENS_MUTATION_RUN: "1" }, + stdio: ["ignore", "pipe", "ignore"], + }, + ); + await new Promise((resolve) => child.stdout?.once("data", resolve)); + child.kill("SIGKILL"); + await new Promise((resolve) => child.once("close", resolve)); + expect(digest()).not.toBe(before); + const { stdout } = await execFileAsync( + process.execPath, + [ + cli, + "--file", + target, + "--find", + find, + "--replace", + replace, + "--tests", + target, + ], + { cwd: root }, + ); + expect(stdout).toContain("SURVIVED"); + expect(digest()).toBe(before); +}); From ffd5f709bd3dbab262a6be57010ae1c51837a415 Mon Sep 17 00:00:00 2001 From: Apostolos Mantzaris Date: Wed, 7 Oct 2026 15:07:54 +0300 Subject: [PATCH 3/9] feat: add CI test failure diff Compare Vitest failure identities between CI jobs so fixer evidence distinguishes fixed tests from replacements. Add Windows job fixtures and document the summary requirement. Closes #4072. --- .changelog/4072-ci-test-diff.md | 6 + .gitattributes | 1 + docs/pi-lens-fixer.md | 1 + scripts/ci-test-diff.d.mts | 16 + scripts/ci-test-diff.mjs | 131 + .../ci-test-diff/job-112724408671.log | 3553 ++++++++++++++++ .../ci-test-diff/job-112734370876.log | 3592 +++++++++++++++++ tests/scripts/ci-test-diff.test.ts | 37 + 8 files changed, 7337 insertions(+) create mode 100644 .changelog/4072-ci-test-diff.md create mode 100644 scripts/ci-test-diff.d.mts create mode 100644 scripts/ci-test-diff.mjs create mode 100644 tests/fixtures/ci-test-diff/job-112724408671.log create mode 100644 tests/fixtures/ci-test-diff/job-112734370876.log create mode 100644 tests/scripts/ci-test-diff.test.ts diff --git a/.changelog/4072-ci-test-diff.md b/.changelog/4072-ci-test-diff.md new file mode 100644 index 000000000..a61023625 --- /dev/null +++ b/.changelog/4072-ci-test-diff.md @@ -0,0 +1,6 @@ +--- +section: Added +audience: internal +--- + +- Add a CI job failure-set diff tool for fixer evidence. diff --git a/.gitattributes b/.gitattributes index 9a30f8f7f..796849599 100644 --- a/.gitattributes +++ b/.gitattributes @@ -9,3 +9,4 @@ # checkout gets, cross-platform. tests/fixtures/cargo-workspace-modules/adv-e-crlf/** -text tests/fixtures/ci-failure-logs/infra-net-windows-crlf-prefix.real.log -text +tests/fixtures/ci-test-diff/** -text diff --git a/docs/pi-lens-fixer.md b/docs/pi-lens-fixer.md index 46b56c478..7a589cf9c 100644 --- a/docs/pi-lens-fixer.md +++ b/docs/pi-lens-fixer.md @@ -62,6 +62,7 @@ mechanics"; a brief supplies only `lane=`, scope, and the grant. - Witness rule (ADR 0007): #1605 owns the witness lanes, and their fixtures live under `tests/fixtures/witness//`. +- A PR claiming it "reduces failures" quotes the `ci-test-diff` summary. - Red-first has one stated exception: when the only red-first path needs broad harness setup, brittle mocks, or a test you would delete right after it proves the fix (shape 7: #1114, #1759), state the exception in `Tests`, name diff --git a/scripts/ci-test-diff.d.mts b/scripts/ci-test-diff.d.mts new file mode 100644 index 000000000..a31019ba6 --- /dev/null +++ b/scripts/ci-test-diff.d.mts @@ -0,0 +1,16 @@ +export declare function stripLogDecorations(log: string): string; +export declare function extractFailingTestIds(log: string): string[]; +export declare function compareFailureSets( + previous: string[], + current: string[], +): { + fixed: string[]; + newFailures: string[]; + unchanged: string[]; +}; +export declare function parseArgs(argv: string[]): { + jobA: string; + jobB: string; + repository: string; +}; +export declare function main(argv?: string[]): number; diff --git a/scripts/ci-test-diff.mjs b/scripts/ci-test-diff.mjs new file mode 100644 index 000000000..4fd787d0c --- /dev/null +++ b/scripts/ci-test-diff.mjs @@ -0,0 +1,131 @@ +#!/usr/bin/env node +import { execFileSync } from "node:child_process"; +import { pathToFileURL } from "node:url"; + +const DEFAULT_REPOSITORY = "apmantza/pi-lens"; +// oxlint-disable-next-line no-control-regex -- ANSI is the input being removed. +const ANSI_ESCAPE = /\x1b\[[0-?]*[ -/]*[@-~]/g; +const ACTIONS_TIMESTAMP = /^\d{4}-\d\d-\d\dT[^ ]+Z\s*/; +const TEST_PATH = String.raw`(tests/[^\s]+?\.test\.[cm]?[jt]sx?)`; + +export function stripLogDecorations(log) { + return log + .replace(/^\uFEFF/, "") + .replace(ANSI_ESCAPE, "") + .replace(/\r\n?/g, "\n") + .split("\n") + .map((line) => line.replace(ACTIONS_TIMESTAMP, "")) + .join("\n"); +} + +export function extractFailingTestIds(log) { + const lines = log.split("\n"); + const ids = new Set(); + const failurePattern = new RegExp( + String.raw`^\s*FAIL\s+\S+\s+${TEST_PATH}(?:\s+>\s+(.+?))?\s*$`, + ); + for (const line of lines) { + const match = line.match(failurePattern); + if (match) { + const details = match[2] ? ` › ${match[2].replace(/\s+/g, " ")}` : ""; + ids.add(`${match[1]}${details}`); + } + } + return [...ids].sort(); +} + +export function compareFailureSets(previous, current) { + const oldSet = new Set(previous); + const newSet = new Set(current); + return { + fixed: [...oldSet].filter((id) => !newSet.has(id)).sort(), + newFailures: [...newSet].filter((id) => !oldSet.has(id)).sort(), + unchanged: [...oldSet].filter((id) => newSet.has(id)).sort(), + }; +} + +function fetchJobLog(repository, jobId) { + try { + return execFileSync( + "gh", + [ + "api", + `repos/${repository}/actions/jobs/${jobId}/logs`, + "--allow-escape-sequences", + ], + { encoding: "utf8", maxBuffer: 32 * 1024 * 1024 }, + ); + } catch (error) { + try { + return execFileSync( + "gh", + ["run", "view", "--job", jobId, "--log", "--repo", repository], + { encoding: "utf8", maxBuffer: 32 * 1024 * 1024 }, + ); + } catch (fallbackError) { + const message = + fallbackError instanceof Error + ? fallbackError.message + : String(fallbackError); + throw new Error(`could not fetch logs for job ${jobId}: ${message}`, { + cause: error, + }); + } + } +} + +function printSet(label, values) { + console.log(`${label} (${values.length})`); + for (const value of values) console.log(` ${value}`); +} + +export function parseArgs(argv) { + if (argv.length < 2 || argv.length > 4) { + throw new Error( + "usage: ci-test-diff.mjs [--repo owner/name]", + ); + } + const [jobA, jobB, option, repository] = argv; + if (!/^\d+$/.test(jobA) || !/^\d+$/.test(jobB)) { + throw new Error("job IDs must be numeric"); + } + if (option && option !== "--repo") { + throw new Error( + "usage: ci-test-diff.mjs [--repo owner/name]", + ); + } + if (option && (!repository || !/^[^/\s]+\/[^/\s]+$/.test(repository))) { + throw new Error("--repo requires owner/name"); + } + return { jobA, jobB, repository: repository ?? DEFAULT_REPOSITORY }; +} + +export function main(argv = process.argv.slice(2)) { + const { jobA, jobB, repository } = parseArgs(argv); + const previous = extractFailingTestIds( + stripLogDecorations(fetchJobLog(repository, jobA)), + ); + const current = extractFailingTestIds( + stripLogDecorations(fetchJobLog(repository, jobB)), + ); + const diff = compareFailureSets(previous, current); + printSet("FIXED", diff.fixed); + printSet("NEW", diff.newFailures); + printSet("UNCHANGED", diff.unchanged); + console.log( + `Summary: fixed=${diff.fixed.length} new=${diff.newFailures.length} unchanged=${diff.unchanged.length}`, + ); + return diff.newFailures.length ? 1 : 0; +} + +if ( + process.argv[1] && + import.meta.url === pathToFileURL(process.argv[1]).href +) { + try { + process.exitCode = main(); + } catch (error) { + console.error(error instanceof Error ? error.message : String(error)); + process.exitCode = 2; + } +} diff --git a/tests/fixtures/ci-test-diff/job-112724408671.log b/tests/fixtures/ci-test-diff/job-112724408671.log new file mode 100644 index 000000000..508e2cab4 --- /dev/null +++ b/tests/fixtures/ci-test-diff/job-112724408671.log @@ -0,0 +1,3553 @@ +2026-10-07T09:28:07.3014904Z Current runner version: '2.337.0' +2026-10-07T09:28:07.3036665Z ##[group]Runner Image Provisioner +2026-10-07T09:28:07.3037305Z Hosted Compute Agent +2026-10-07T09:28:07.3037816Z Version: 20260901.588 +2026-10-07T09:28:07.3038293Z Commit: f88ec8081b781fac6c440065ac7ff9e710ce3d0b +2026-10-07T09:28:07.3038899Z Build Date: 2026-09-01T19:56:44Z +2026-10-07T09:28:07.3039413Z Worker ID: {0a5378a5-3ca0-4b29-bdbc-93973cf4d278} +2026-10-07T09:28:07.3039944Z Azure Region: westus3 +2026-10-07T09:28:07.3040400Z ##[endgroup] +2026-10-07T09:28:07.3041516Z ##[group]Operating System +2026-10-07T09:28:07.3042034Z Microsoft Windows Server 2025 +2026-10-07T09:28:07.3042509Z 10.0.26100 +2026-10-07T09:28:07.3042909Z Datacenter +2026-10-07T09:28:07.3043577Z ##[endgroup] +2026-10-07T09:28:07.3043988Z ##[group]Runner Image +2026-10-07T09:28:07.3044433Z Image: windows-2025-vs2026 +2026-10-07T09:28:07.3044899Z Version: 20260925.250.1 +2026-10-07T09:28:07.3046314Z Included Software: https://github.com/actions/runner-images/blob/win25-vs2026/20260925.250/images/windows/Windows2025-VS2026-Readme.md +2026-10-07T09:28:07.3047604Z Image Release: https://github.com/actions/runner-images/releases/tag/win25-vs2026%2F20260925.250 +2026-10-07T09:28:07.3048352Z ##[endgroup] +2026-10-07T09:28:07.3049201Z ##[group]GITHUB_TOKEN Permissions +2026-10-07T09:28:07.3050700Z Contents: read +2026-10-07T09:28:07.3051157Z Metadata: read +2026-10-07T09:28:07.3051572Z ##[endgroup] +2026-10-07T09:28:07.3053263Z Secret source: Actions +2026-10-07T09:28:07.3053977Z Cache mode: write +2026-10-07T09:28:07.3054548Z Prepare workflow directory +2026-10-07T09:28:07.3345019Z Prepare all required actions +2026-10-07T09:28:07.3401709Z Getting action download info +2026-10-07T09:28:07.6309155Z Download action repository 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1' (SHA:3d3c42e5aac5ba805825da76410c181273ba90b1) +2026-10-07T09:28:07.7332520Z Download action repository 'actions/setup-node@820762786026740c76f36085b0efc47a31fe5020' (SHA:820762786026740c76f36085b0efc47a31fe5020) +2026-10-07T09:28:07.9647204Z Complete job name: Unit tests Windows (advisory) +2026-10-07T09:28:08.1028658Z ##[group]Run actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 +2026-10-07T09:28:08.1029714Z with: +2026-10-07T09:28:08.1030039Z persist-credentials: false +2026-10-07T09:28:08.1030435Z repository: apmantza/pi-lens +2026-10-07T09:28:08.1033516Z token: *** +2026-10-07T09:28:08.1033833Z ssh-strict: true +2026-10-07T09:28:08.1034153Z ssh-user: git +2026-10-07T09:28:08.1034456Z clean: true +2026-10-07T09:28:08.1034776Z sparse-checkout-cone-mode: true +2026-10-07T09:28:08.1035158Z fetch-depth: 1 +2026-10-07T09:28:08.1035460Z fetch-tags: false +2026-10-07T09:28:08.1035782Z show-progress: true +2026-10-07T09:28:08.1036111Z lfs: false +2026-10-07T09:28:08.1036413Z submodules: false +2026-10-07T09:28:08.1036738Z set-safe-directory: true +2026-10-07T09:28:08.1037111Z allow-unsafe-pr-checkout: false +2026-10-07T09:28:08.1037713Z ##[endgroup] +2026-10-07T09:28:08.2268240Z Syncing repository: apmantza/pi-lens +2026-10-07T09:28:08.2269732Z ##[group]Getting Git version info +2026-10-07T09:28:08.2270195Z Working directory is 'D:\a\pi-lens\pi-lens' +2026-10-07T09:28:08.3010659Z [command]"C:\Program Files\Git\bin\git.exe" version +2026-10-07T09:28:08.6312117Z git version 2.55.0.windows.5 +2026-10-07T09:28:08.6355788Z ##[endgroup] +2026-10-07T09:28:08.6369968Z Temporarily overriding HOME='D:\a\_temp\ed31697e-8f59-4164-bac4-c1f28eabfdff' before making global git config changes +2026-10-07T09:28:08.6370981Z Adding repository directory to the temporary git global config as a safe directory +2026-10-07T09:28:08.6378288Z [command]"C:\Program Files\Git\bin\git.exe" config --global --add safe.directory D:\a\pi-lens\pi-lens +2026-10-07T09:28:08.6943386Z Deleting the contents of 'D:\a\pi-lens\pi-lens' +2026-10-07T09:28:08.6948135Z ##[group]Determining repository object format +2026-10-07T09:28:08.6949782Z ##[endgroup] +2026-10-07T09:28:08.6950549Z ##[group]Initializing the repository +2026-10-07T09:28:08.6957141Z [command]"C:\Program Files\Git\bin\git.exe" init D:\a\pi-lens\pi-lens +2026-10-07T09:28:08.7689260Z Initialized empty Git repository in D:/a/pi-lens/pi-lens/.git/ +2026-10-07T09:28:08.7729547Z [command]"C:\Program Files\Git\bin\git.exe" remote add origin https://github.com/apmantza/pi-lens +2026-10-07T09:28:08.8288957Z ##[endgroup] +2026-10-07T09:28:08.8289665Z ##[group]Disabling automatic garbage collection +2026-10-07T09:28:08.8297572Z [command]"C:\Program Files\Git\bin\git.exe" config --local gc.auto 0 +2026-10-07T09:28:08.8564450Z ##[endgroup] +2026-10-07T09:28:08.8565809Z ##[group]Setting up auth +2026-10-07T09:28:08.8566821Z Removing SSH command configuration +2026-10-07T09:28:08.8573084Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core\.sshCommand +2026-10-07T09:28:08.8821538Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\"" +2026-10-07T09:28:10.2554816Z Removing HTTP extra header +2026-10-07T09:28:10.2562887Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader +2026-10-07T09:28:10.2828678Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\"" +2026-10-07T09:28:10.7617905Z Removing includeIf entries pointing to credentials config files +2026-10-07T09:28:10.7626964Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp ^includeIf\.gitdir: +2026-10-07T09:28:10.7894510Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "git config --local --show-origin --name-only --get-regexp remote.origin.url" +2026-10-07T09:28:11.2672719Z [command]"C:\Program Files\Git\bin\git.exe" config --file D:\a\_temp\git-credentials-f10f2e3c-08d4-474e-821e-1f8bad927aa8.config http.https://github.com/.extraheader "AUTHORIZATION: basic ***" +2026-10-07T09:28:11.2955765Z [command]"C:\Program Files\Git\bin\git.exe" config --local includeIf.gitdir:D:/a/pi-lens/pi-lens/.git.path D:\a\_temp\git-credentials-f10f2e3c-08d4-474e-821e-1f8bad927aa8.config +2026-10-07T09:28:11.3240392Z [command]"C:\Program Files\Git\bin\git.exe" config --local includeIf.gitdir:D:/a/pi-lens/pi-lens/.git/worktrees/*.path D:\a\_temp\git-credentials-f10f2e3c-08d4-474e-821e-1f8bad927aa8.config +2026-10-07T09:28:11.3552962Z [command]"C:\Program Files\Git\bin\git.exe" config --local includeIf.gitdir:/github/workspace/.git.path /github/runner_temp/git-credentials-f10f2e3c-08d4-474e-821e-1f8bad927aa8.config +2026-10-07T09:28:11.3825786Z [command]"C:\Program Files\Git\bin\git.exe" config --local includeIf.gitdir:/github/workspace/.git/worktrees/*.path /github/runner_temp/git-credentials-f10f2e3c-08d4-474e-821e-1f8bad927aa8.config +2026-10-07T09:28:11.4125043Z ##[endgroup] +2026-10-07T09:28:11.4125691Z ##[group]Fetching the repository +2026-10-07T09:28:11.4135273Z [command]"C:\Program Files\Git\bin\git.exe" -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +93432f0c2d291349b9b1c24379b53b841c20d094:refs/remotes/pull/4042/merge +2026-10-07T09:28:14.5086321Z From https://github.com/apmantza/pi-lens +2026-10-07T09:28:14.5086799Z * [new ref] 93432f0c2d291349b9b1c24379b53b841c20d094 -> pull/4042/merge +2026-10-07T09:28:14.5128574Z ##[endgroup] +2026-10-07T09:28:14.5129086Z ##[group]Determining the checkout info +2026-10-07T09:28:14.5129492Z ##[endgroup] +2026-10-07T09:28:14.5141279Z [command]"C:\Program Files\Git\bin\git.exe" sparse-checkout disable +2026-10-07T09:28:14.5544953Z [command]"C:\Program Files\Git\bin\git.exe" config --local --unset-all extensions.worktreeConfig +2026-10-07T09:28:14.5812942Z ##[group]Checking out the ref +2026-10-07T09:28:14.5822495Z [command]"C:\Program Files\Git\bin\git.exe" checkout --progress --force refs/remotes/pull/4042/merge +2026-10-07T09:28:15.6303579Z Updating files: 98% (4683/4763) +2026-10-07T09:28:15.6426800Z Updating files: 99% (4716/4763) +2026-10-07T09:28:15.6427540Z Updating files: 100% (4763/4763) +2026-10-07T09:28:15.6428297Z Updating files: 100% (4763/4763), done. +2026-10-07T09:28:15.6555872Z Note: switching to 'refs/remotes/pull/4042/merge'. +2026-10-07T09:28:15.6556853Z +2026-10-07T09:28:15.6557095Z You are in 'detached HEAD' state. You can look around, make experimental +2026-10-07T09:28:15.6557565Z changes and commit them, and you can discard any commits you make in this +2026-10-07T09:28:15.6558873Z state without impacting any branches by switching back to a branch. +2026-10-07T09:28:15.6559173Z +2026-10-07T09:28:15.6559319Z If you want to create a new branch to retain commits you create, you may +2026-10-07T09:28:15.6559664Z do so (now or later) by using -c with the switch command. Example: +2026-10-07T09:28:15.6559863Z +2026-10-07T09:28:15.6560043Z git switch -c +2026-10-07T09:28:15.6560190Z +2026-10-07T09:28:15.6560296Z Or undo this operation with: +2026-10-07T09:28:15.6560415Z +2026-10-07T09:28:15.6560481Z git switch - +2026-10-07T09:28:15.6560570Z +2026-10-07T09:28:15.6560734Z Turn off this advice by setting config variable advice.detachedHead to false +2026-10-07T09:28:15.6560956Z +2026-10-07T09:28:15.6561228Z HEAD is now at 93432f0 Merge b9c75491f00e0502ecf123705434fa73df1450c3 into 01b525fb5f0dfb327adbd27b95769bed179186b7 +2026-10-07T09:28:15.6688108Z ##[endgroup] +2026-10-07T09:28:15.7092947Z [command]"C:\Program Files\Git\bin\git.exe" log -1 --format=%H +2026-10-07T09:28:15.7327781Z 93432f0c2d291349b9b1c24379b53b841c20d094 +2026-10-07T09:28:15.7365998Z ##[group]Removing auth +2026-10-07T09:28:15.7366288Z Removing SSH command configuration +2026-10-07T09:28:15.7373387Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core\.sshCommand +2026-10-07T09:28:15.7635754Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\"" +2026-10-07T09:28:16.3171139Z Removing HTTP extra header +2026-10-07T09:28:16.3183261Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader +2026-10-07T09:28:16.3469309Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\"" +2026-10-07T09:28:16.8382871Z Removing includeIf entries pointing to credentials config files +2026-10-07T09:28:16.8390326Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp ^includeIf\.gitdir: +2026-10-07T09:28:16.8615296Z includeif.gitdir:D:/a/pi-lens/pi-lens/.git.path +2026-10-07T09:28:16.8615980Z includeif.gitdir:D:/a/pi-lens/pi-lens/.git/worktrees/*.path +2026-10-07T09:28:16.8616398Z includeif.gitdir:/github/workspace/.git.path +2026-10-07T09:28:16.8616802Z includeif.gitdir:/github/workspace/.git/worktrees/*.path +2026-10-07T09:28:16.8657731Z [command]"C:\Program Files\Git\bin\git.exe" config --local --get-all includeif.gitdir:D:/a/pi-lens/pi-lens/.git.path +2026-10-07T09:28:16.8881041Z D:\a\_temp\git-credentials-f10f2e3c-08d4-474e-821e-1f8bad927aa8.config +2026-10-07T09:28:16.8922921Z [command]"C:\Program Files\Git\bin\git.exe" config --local --unset includeif.gitdir:D:/a/pi-lens/pi-lens/.git.path D\:\\a\\_temp\\git\-credentials\-f10f2e3c\-08d4\-474e\-821e\-1f8bad927aa8\.config +2026-10-07T09:28:16.9282331Z [command]"C:\Program Files\Git\bin\git.exe" config --local --get-all includeif.gitdir:D:/a/pi-lens/pi-lens/.git/worktrees/*.path +2026-10-07T09:28:16.9524105Z D:\a\_temp\git-credentials-f10f2e3c-08d4-474e-821e-1f8bad927aa8.config +2026-10-07T09:28:16.9565040Z [command]"C:\Program Files\Git\bin\git.exe" config --local --unset includeif.gitdir:D:/a/pi-lens/pi-lens/.git/worktrees/*.path D\:\\a\\_temp\\git\-credentials\-f10f2e3c\-08d4\-474e\-821e\-1f8bad927aa8\.config +2026-10-07T09:28:16.9849849Z [command]"C:\Program Files\Git\bin\git.exe" config --local --get-all includeif.gitdir:/github/workspace/.git.path +2026-10-07T09:28:17.0070599Z /github/runner_temp/git-credentials-f10f2e3c-08d4-474e-821e-1f8bad927aa8.config +2026-10-07T09:28:17.0114402Z [command]"C:\Program Files\Git\bin\git.exe" config --local --unset includeif.gitdir:/github/workspace/.git.path \/github\/runner_temp\/git\-credentials\-f10f2e3c\-08d4\-474e\-821e\-1f8bad927aa8\.config +2026-10-07T09:28:17.0381814Z [command]"C:\Program Files\Git\bin\git.exe" config --local --get-all includeif.gitdir:/github/workspace/.git/worktrees/*.path +2026-10-07T09:28:17.0605063Z /github/runner_temp/git-credentials-f10f2e3c-08d4-474e-821e-1f8bad927aa8.config +2026-10-07T09:28:17.0646838Z [command]"C:\Program Files\Git\bin\git.exe" config --local --unset includeif.gitdir:/github/workspace/.git/worktrees/*.path \/github\/runner_temp\/git\-credentials\-f10f2e3c\-08d4\-474e\-821e\-1f8bad927aa8\.config +2026-10-07T09:28:17.0916635Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "git config --local --show-origin --name-only --get-regexp remote.origin.url" +2026-10-07T09:28:17.5807605Z Removing credentials config 'D:\a\_temp\git-credentials-f10f2e3c-08d4-474e-821e-1f8bad927aa8.config' +2026-10-07T09:28:17.5817311Z ##[endgroup] +2026-10-07T09:28:17.6192743Z ##[group]Run echo "PI_LENS_HOME=$RUNNER_TEMP/pi-lens-home" >> "$GITHUB_ENV" +2026-10-07T09:28:17.6193249Z echo "PI_LENS_HOME=$RUNNER_TEMP/pi-lens-home" >> "$GITHUB_ENV" +2026-10-07T09:28:17.6212374Z shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0} +2026-10-07T09:28:17.6212693Z ##[endgroup] +2026-10-07T09:28:18.1099598Z ##[group]Run actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 +2026-10-07T09:28:18.1099944Z with: +2026-10-07T09:28:18.1100112Z node-version: 22 +2026-10-07T09:28:18.1100271Z check-latest: false +2026-10-07T09:28:18.1102107Z token: *** +2026-10-07T09:28:18.1102349Z package-manager-cache: true +2026-10-07T09:28:18.1102730Z env: +2026-10-07T09:28:18.1102888Z PI_LENS_HOME: D:\a\_temp/pi-lens-home +2026-10-07T09:28:18.1103081Z ##[endgroup] +2026-10-07T09:28:18.2486828Z Found in cache @ C:\hostedtoolcache\windows\node\22.23.3\x64 +2026-10-07T09:28:18.2492501Z ##[group]Environment details +2026-10-07T09:28:23.7111473Z node: v22.23.3 +2026-10-07T09:28:23.7111689Z npm: 10.9.9 +2026-10-07T09:28:23.7111826Z yarn: 1.22.22 +2026-10-07T09:28:23.7112200Z ##[endgroup] +2026-10-07T09:28:23.7117362Z Detected npm as the package manager from package.json's packageManager field. Auto caching has been enabled for npm. If you want to disable it, set package-manager-cache input to false +2026-10-07T09:28:23.7540352Z [command]C:\Windows\system32\cmd.exe /D /S /C "C:\hostedtoolcache\windows\node\22.23.3\x64\npm.cmd config get cache" +2026-10-07T09:28:24.2645285Z C:\npm\cache +2026-10-07T09:28:24.6335357Z Cache hit for: node-cache-Windows-x64-npm-f00c2c617419afaa47a33b16ac2421efdb108493928f044326659171a395f910 +2026-10-07T09:28:25.9000514Z Received 67108864 of 167963285 (40.0%), 62.4 MBs/sec +2026-10-07T09:28:26.8906238Z Received 163768981 of 167963285 (97.5%), 77.1 MBs/sec +2026-10-07T09:28:27.0438345Z Received 167963285 of 167963285 (100.0%), 73.5 MBs/sec +2026-10-07T09:28:27.0442358Z Cache Size: ~160 MB (167963285 B) +2026-10-07T09:28:27.0676789Z [command]"C:\Program Files\Git\usr\bin\tar.exe" -xf D:/a/_temp/17ff48a0-1a56-43bf-baac-f11ec7a1000a/cache.tzst -P -C D:/a/pi-lens/pi-lens --force-local --use-compress-program "zstd -d" +2026-10-07T09:28:31.7641561Z Cache restored successfully +2026-10-07T09:28:31.7735314Z Cache restored from key: node-cache-Windows-x64-npm-f00c2c617419afaa47a33b16ac2421efdb108493928f044326659171a395f910 +2026-10-07T09:28:31.8053600Z ##[group]Run npm ci --no-audit --no-fund +2026-10-07T09:28:31.8053995Z npm ci --no-audit --no-fund +2026-10-07T09:28:31.8559565Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'" +2026-10-07T09:28:31.8559859Z env: +2026-10-07T09:28:31.8560037Z PI_LENS_HOME: D:\a\_temp/pi-lens-home +2026-10-07T09:28:31.8560249Z ##[endgroup] +2026-10-07T09:28:38.8472246Z npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead +2026-10-07T09:28:50.6129511Z +2026-10-07T09:28:50.6130048Z > pi-lens@4.3.0 prepare +2026-10-07T09:28:50.6131502Z > npm run build:dist && node scripts/download-grammars.js --core --dest grammars && node scripts/setup-git-hooks.mjs && node scripts/stamp-package-lock.mjs && node scripts/warm-loader-cache.mjs +2026-10-07T09:28:50.6132328Z +2026-10-07T09:28:50.8613123Z +2026-10-07T09:28:50.8613713Z > pi-lens@4.3.0 build:dist +2026-10-07T09:28:50.8614794Z > node -e "require('fs').rmSync('dist',{recursive:true,force:true})" && node scripts/build-dist-tsc.mjs tsconfig.dist.json && npm run bundle:dist +2026-10-07T09:28:50.8615397Z +2026-10-07T09:28:52.6307038Z +2026-10-07T09:28:52.6307866Z > pi-lens@4.3.0 bundle:dist +2026-10-07T09:28:52.6308261Z > node scripts/bundle-dist.mjs +2026-10-07T09:28:52.6308446Z +2026-10-07T09:28:53.6166263Z +2026-10-07T09:28:53.6167041Z dist\.bundle-split\mcp\server.js 852.0kb +2026-10-07T09:28:53.6167533Z dist\.bundle-split\chunk-FPIM5QIA.js 794.4kb +2026-10-07T09:28:53.6167952Z dist\.bundle-split\chunk-4PWCHCTA.js 414.1kb +2026-10-07T09:28:53.6168419Z dist\.bundle-split\chunk-OUWJJQUO.js 208.1kb +2026-10-07T09:28:53.6168781Z dist\.bundle-split\chunk-DKAZ75AM.js 171.9kb +2026-10-07T09:28:53.6169125Z ...and 122 more output files... +2026-10-07T09:28:53.6169350Z +2026-10-07T09:28:53.6169461Z Done in 252ms +2026-10-07T09:28:55.3300987Z [bundle] wrote 7 split entries and their shared chunks +2026-10-07T09:28:56.1209099Z +2026-10-07T09:28:56.1210732Z dist\index.bundled.mjs 5.0mb +2026-10-07T09:28:56.1211052Z +2026-10-07T09:28:56.1211189Z Done in 189ms +2026-10-07T09:28:56.1824122Z [bundle] wrote self-contained dist\index.js +2026-10-07T09:28:56.3237370Z Downloading core tree-sitter grammars (12) → D:\a\pi-lens\pi-lens\grammars +2026-10-07T09:28:56.4553139Z ok tree-sitter-json.wasm +2026-10-07T09:28:56.4570241Z ok tree-sitter-html.wasm +2026-10-07T09:28:56.4618028Z ok tree-sitter-css.wasm +2026-10-07T09:28:56.4651702Z ok tree-sitter-yaml.wasm +2026-10-07T09:28:56.4722992Z ok tree-sitter-go.wasm +2026-10-07T09:28:56.4844835Z ok tree-sitter-python.wasm +2026-10-07T09:28:56.4892192Z ok tree-sitter-javascript.wasm +2026-10-07T09:28:56.4977968Z ok tree-sitter-rust.wasm +2026-10-07T09:28:56.5061557Z ok tree-sitter-java.wasm +2026-10-07T09:28:56.5374112Z ok tree-sitter-bash.wasm +2026-10-07T09:28:56.5711699Z ok tree-sitter-typescript.wasm +2026-10-07T09:28:56.5810735Z ok tree-sitter-tsx.wasm +2026-10-07T09:28:56.5811322Z All grammars downloaded successfully. +2026-10-07T09:28:56.6363012Z [setup-git-hooks] skipped (CI is set). +2026-10-07T09:28:57.2986580Z [warm-loader-cache] not cached: dist\index.js after 385ms — no cache entry was written: dist-index.9e701967.mjs +2026-10-07T09:28:57.3230758Z +2026-10-07T09:28:57.3231807Z added 442 packages in 25s +2026-10-07T09:28:59.1989284Z ##[group]Run npm run build +2026-10-07T09:28:59.1989561Z npm run build +2026-10-07T09:28:59.2046392Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'" +2026-10-07T09:28:59.2046675Z env: +2026-10-07T09:28:59.2046851Z PI_LENS_HOME: D:\a\_temp/pi-lens-home +2026-10-07T09:28:59.2047057Z ##[endgroup] +2026-10-07T09:28:59.8164271Z +2026-10-07T09:28:59.8164859Z > pi-lens@4.3.0 build +2026-10-07T09:28:59.8165321Z > tsc --project tsconfig.build.json +2026-10-07T09:28:59.8165565Z +2026-10-07T09:29:02.0557703Z ##[group]Run set -euo pipefail +2026-10-07T09:29:02.0558012Z set -euo pipefail +2026-10-07T09:29:02.0558317Z mapfile -t FILES < <(node scripts/lib/win32-gate-population.mjs --files) +2026-10-07T09:29:02.0558702Z [[ ${#FILES[@]} -eq 0 ]] && { echo "::error::enumeration empty"; exit 1; } +2026-10-07T09:29:02.0559684Z printf '%s\n' "${FILES[@]}" | sort -u | tee "$RUNNER_TEMP/windows-vitest-files.txt" +2026-10-07T09:29:02.0560167Z printf 'Windows Vitest subset: %s files\n' "$(sort -u "$RUNNER_TEMP/windows-vitest-files.txt" | wc -l)" +2026-10-07T09:29:02.0570292Z shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0} +2026-10-07T09:29:02.0570593Z env: +2026-10-07T09:29:02.0570767Z PI_LENS_HOME: D:\a\_temp/pi-lens-home +2026-10-07T09:29:02.0570980Z ##[endgroup] +2026-10-07T09:29:02.9330996Z tests/clients/dispatch/runners/elixir-parser.test.ts +2026-10-07T09:29:02.9332543Z tests/clients/dispatch/runners/go-vet.test.ts +2026-10-07T09:29:02.9333178Z tests/clients/dispatch/runners/reported-path-attribution.test.ts +2026-10-07T09:29:02.9333797Z tests/clients/installer/installer-lifecycle.integration.test.ts +2026-10-07T09:29:02.9334654Z tests/clients/lsp/launch.test.ts +2026-10-07T09:29:02.9335139Z tests/clients/path-utils-win32-absolute.test.ts +2026-10-07T09:29:02.9335562Z tests/clients/path-utils.test.ts +2026-10-07T09:29:02.9335909Z tests/clients/pipeline.test.ts +2026-10-07T09:29:02.9336323Z tests/clients/read-guard-path-normalization.test.ts +2026-10-07T09:29:02.9336794Z tests/clients/review-graph.service.test.ts +2026-10-07T09:29:02.9337223Z tests/clients/ruff-client-reported-path.test.ts +2026-10-07T09:29:02.9337677Z tests/clients/runtime-tool-result.test.ts +2026-10-07T09:29:02.9338120Z tests/clients/safe-spawn-windows-command.test.ts +2026-10-07T09:29:02.9338515Z tests/clients/tool-cwd.test.ts +2026-10-07T09:29:02.9338818Z tests/config/adr-log.test.ts +2026-10-07T09:29:02.9339178Z tests/config/advisory-tool-workflow.test.ts +2026-10-07T09:29:02.9339597Z tests/config/agents-governance.test.ts +2026-10-07T09:29:02.9340010Z tests/config/bounded-container-guard.test.ts +2026-10-07T09:29:02.9340478Z tests/config/bounded-eviction-idiom-sweep.test.ts +2026-10-07T09:29:02.9340985Z tests/config/ci-infra-kill-rerun-gate.test.ts +2026-10-07T09:29:02.9341425Z tests/config/close-keyword-workflow.test.ts +2026-10-07T09:29:02.9341823Z tests/config/codeql-workflow.test.ts +2026-10-07T09:29:02.9342258Z tests/config/config-core-schema-stability.test.ts +2026-10-07T09:29:02.9342739Z tests/config/covers-config-claim-sweep.test.ts +2026-10-07T09:29:02.9343231Z tests/config/degradation-kind-coverage.test.ts +2026-10-07T09:29:02.9343806Z tests/config/degradation-kind-order.test.ts +2026-10-07T09:29:02.9344086Z tests/config/dependency-boundaries.test.ts +2026-10-07T09:29:02.9344360Z tests/config/diagnostics-bus-conformance.test.ts +2026-10-07T09:29:02.9344638Z tests/config/dmts-export-drift.test.ts +2026-10-07T09:29:02.9344889Z tests/config/docs-only-ci-skip.test.ts +2026-10-07T09:29:02.9345129Z tests/config/engines-node-floor.test.ts +2026-10-07T09:29:02.9345390Z tests/config/escape-regexp-fold-sweep.test.ts +2026-10-07T09:29:02.9345693Z tests/config/files-touched-bus-conformance.test.ts +2026-10-07T09:29:02.9346022Z tests/config/git-fixture-governance.test.ts +2026-10-07T09:29:02.9346316Z tests/config/github-token-write-gates.test.ts +2026-10-07T09:29:02.9346595Z tests/config/github-workflow-permissions.test.ts +2026-10-07T09:29:02.9346871Z tests/config/gitignore-tracked-shadow.test.ts +2026-10-07T09:29:02.9347152Z tests/config/global-dir-probe-redirect.test.ts +2026-10-07T09:29:02.9347470Z tests/config/global-only-non-flag-key-registry.test.ts +2026-10-07T09:29:02.9347764Z tests/config/glossary-synonym-sweep.test.ts +2026-10-07T09:29:02.9348051Z tests/config/heavy-advisory-gate-workflow.test.ts +2026-10-07T09:29:02.9348325Z tests/config/hook-await-bounds.test.ts +2026-10-07T09:29:02.9348565Z tests/config/install-smoke-gates.test.ts +2026-10-07T09:29:02.9350427Z tests/config/install-smoke-pnpm-global-config.test.ts +2026-10-07T09:29:02.9350848Z tests/config/installer-dev-dependency-pin.test.ts +2026-10-07T09:29:02.9351131Z tests/config/knip-entry-coverage.test.ts +2026-10-07T09:29:02.9351396Z tests/config/label-manifest-coverage.test.ts +2026-10-07T09:29:02.9351833Z tests/config/label-sync-validation.test.ts +2026-10-07T09:29:02.9352124Z tests/config/lane-mechanics-contract.test.ts +2026-10-07T09:29:02.9352407Z tests/config/latency-logger-mock-shape.test.ts +2026-10-07T09:29:02.9352733Z tests/config/lsp-advertised-capability-senders.test.ts +2026-10-07T09:29:02.9353040Z tests/config/lsp-clean-behavior-census.test.ts +2026-10-07T09:29:02.9353310Z tests/config/lsp-first-publish-census.test.ts +2026-10-07T09:29:02.9353599Z tests/config/lsp-fixture-home-workflow-pin.test.ts +2026-10-07T09:29:02.9353882Z tests/config/lsp-gate-population.test.ts +2026-10-07T09:29:02.9354150Z tests/config/lsp-idle-eviction-measurement.test.ts +2026-10-07T09:29:02.9354441Z tests/config/lsp-idle-eviction-registry.test.ts +2026-10-07T09:29:02.9354720Z tests/config/lsp-service-double-sweep.test.ts +2026-10-07T09:29:02.9354987Z tests/config/lsp-spawn-heavy-coverage.test.ts +2026-10-07T09:29:02.9355249Z tests/config/merge-queue-workflows.test.ts +2026-10-07T09:29:02.9355520Z tests/config/module-instance-binding.test.ts +2026-10-07T09:29:02.9355785Z tests/config/module-instance-coverage.test.ts +2026-10-07T09:29:02.9356069Z tests/config/oxlint-advisory-rule-floor-gate.test.ts +2026-10-07T09:29:02.9356368Z tests/config/parameter-schema-budget.test.ts +2026-10-07T09:29:02.9356642Z tests/config/parameter-schema-structure.test.ts +2026-10-07T09:29:02.9356907Z tests/config/path-key-fold-sweep.test.ts +2026-10-07T09:29:02.9357157Z tests/config/pi-lens-config-schema.test.ts +2026-10-07T09:29:02.9357410Z tests/config/process-table-seam.test.ts +2026-10-07T09:29:02.9357653Z tests/config/real-harness-lane.test.ts +2026-10-07T09:29:02.9357909Z tests/config/release-npm-pin-gate.test.ts +2026-10-07T09:29:02.9358209Z tests/config/reported-path-attribution-sweep.test.ts +2026-10-07T09:29:02.9358501Z tests/config/result-contract-governance.test.ts +2026-10-07T09:29:02.9358778Z tests/config/runner-marker-containment.test.ts +2026-10-07T09:29:02.9359055Z tests/config/schema-stability-tiers.test.ts +2026-10-07T09:29:02.9359318Z tests/config/script-entry-portability.test.ts +2026-10-07T09:29:02.9359574Z tests/config/session-scope-sweep.test.ts +2026-10-07T09:29:02.9359867Z tests/config/sharded-aggregate-failure-policy.test.ts +2026-10-07T09:29:02.9360175Z tests/config/shell-dialect-ownership-sweep.test.ts +2026-10-07T09:29:02.9360469Z tests/config/strategy-marker-pair-coverage.test.ts +2026-10-07T09:29:02.9360745Z tests/config/strictness-ratchet.test.ts +2026-10-07T09:29:02.9361011Z tests/config/stryker-diff-exclusions.test.ts +2026-10-07T09:29:02.9361280Z tests/config/stryker-nightly-workflow.test.ts +2026-10-07T09:29:02.9361543Z tests/config/sweep-floor-coverage.test.ts +2026-10-07T09:29:02.9361824Z tests/config/sync-child-process-timeout.test.ts +2026-10-07T09:29:02.9362101Z tests/config/targeted-tests-workflow.test.ts +2026-10-07T09:29:02.9362363Z tests/config/test-history-workflow.test.ts +2026-10-07T09:29:02.9362641Z tests/config/test-shard-assignment.test.ts +2026-10-07T09:29:02.9362905Z tests/config/timing-sensitive-coverage.test.ts +2026-10-07T09:29:02.9363175Z tests/config/tla-coverage-governance.test.ts +2026-10-07T09:29:02.9363445Z tests/config/tla-models-shard-workflow.test.ts +2026-10-07T09:29:02.9364008Z tests/config/tmp-fixture-hygiene.test.ts +2026-10-07T09:29:02.9364274Z tests/config/tool-registry-governance.test.ts +2026-10-07T09:29:02.9364533Z tests/config/tool-roster-budget.test.ts +2026-10-07T09:29:02.9364823Z tests/config/tool-smoke-fish-provisioning.test.ts +2026-10-07T09:29:02.9365101Z tests/config/tool-smoke-notify-gate.test.ts +2026-10-07T09:29:02.9365355Z tests/config/tracked-control-bytes.test.ts +2026-10-07T09:29:02.9366085Z tests/config/tracking-issue-workflow-contract.test.ts +2026-10-07T09:29:02.9366398Z tests/config/turn-end-lane-boundaries.test.ts +2026-10-07T09:29:02.9366676Z tests/config/unit-tests-shard-workflow.test.ts +2026-10-07T09:29:02.9366935Z tests/config/vacuous-skip-coverage.test.ts +2026-10-07T09:29:02.9367175Z tests/config/vi-domock-undo.test.ts +2026-10-07T09:29:02.9367499Z tests/config/vi-mock-export-sweep.test.ts +2026-10-07T09:29:02.9367754Z tests/config/vitest-lane-order.test.ts +2026-10-07T09:29:02.9367989Z tests/config/win32-gate-lane.test.ts +2026-10-07T09:29:02.9368234Z tests/config/windows-vitest-workflow.test.ts +2026-10-07T09:29:02.9368488Z tests/config/worker-budget.test.ts +2026-10-07T09:29:02.9368728Z tests/config/worker-peak-rss-budget.test.ts +2026-10-07T09:29:02.9369019Z tests/config/workflow-concurrency-edit-safety.test.ts +2026-10-07T09:29:02.9369329Z tests/config/workflow-graph-retired-hops.test.ts +2026-10-07T09:29:02.9369644Z tests/config/workflow-pull-request-reachability.test.ts +2026-10-07T09:29:02.9369955Z tests/config/workflow-shell-portability.test.ts +2026-10-07T09:29:02.9370224Z tests/mcp/turn-end-route.smoke.test.ts +2026-10-07T09:29:02.9370467Z tests/scripts/prune-agent-worktrees.test.ts +2026-10-07T09:29:03.0038378Z Windows Vitest subset: 113 files +2026-10-07T09:29:03.0227133Z ##[group]Run set -euo pipefail +2026-10-07T09:29:03.0227471Z set -euo pipefail +2026-10-07T09:29:03.0227754Z mapfile -t FILES < "$RUNNER_TEMP/windows-vitest-files.txt" +2026-10-07T09:29:03.0228216Z node_modules/.bin/vitest run "${FILES[@]}" --configLoader runner 2>&1 | tee "$RUNNER_TEMP/windows-vitest.log" +2026-10-07T09:29:03.0239389Z shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0} +2026-10-07T09:29:03.0239702Z env: +2026-10-07T09:29:03.0239868Z PI_LENS_HOME: D:\a\_temp/pi-lens-home +2026-10-07T09:29:03.0240086Z PI_LENS_TEST_TIMEOUT_SCALE: 3 +2026-10-07T09:29:03.0240282Z ##[endgroup] +2026-10-07T09:29:03.6222470Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:29:03.6695666Z +2026-10-07T09:29:03.6696904Z  RUN  v5.0.3 D:/a/pi-lens/pi-lens +2026-10-07T09:29:03.6697301Z +2026-10-07T09:29:06.0022326Z ❯  default  tests/clients/path-utils.test.ts (178 tests | 4 failed | 7 skipped) 387ms +2026-10-07T09:29:06.0024588Z ✓ isWindowsPath (#1213 review pins) (1) +2026-10-07T09:29:06.0026169Z ✓ matches drive-prefixed and UNC shapes only 3ms +2026-10-07T09:29:06.0027407Z ✓ isFullyQualified matrix additions (#1213 review pins) (1) +2026-10-07T09:29:06.0028343Z ✓ classifies long-path and embedded-backslash forms 1ms +2026-10-07T09:29:06.0029046Z ✓ path-utils (20) +2026-10-07T09:29:06.0030531Z ✓ isFullyQualifiedPosix: Windows drive-relative 0ms +2026-10-07T09:29:06.0032164Z ✓ isFullyQualifiedPosix: Windows rooted-relative 0ms +2026-10-07T09:29:06.0044243Z ✓ isFullyQualifiedPosix: Windows drive-absolute 0ms +2026-10-07T09:29:06.0045279Z ✓ isFullyQualifiedPosix: Windows UNC 0ms +2026-10-07T09:29:06.0046152Z ✓ isFullyQualifiedPosix: POSIX root 0ms +2026-10-07T09:29:06.0050727Z ✓ isFullyQualifiedPosix: POSIX absolute 0ms +2026-10-07T09:29:06.0051907Z ✓ isFullyQualifiedPosix: relative 0ms +2026-10-07T09:29:06.0052946Z ✓ isFullyQualifiedPosix: dot-relative 0ms +2026-10-07T09:29:06.0053925Z ✓ isFullyQualifiedWin32: Windows drive-relative 0ms +2026-10-07T09:29:06.0055293Z ✓ isFullyQualifiedWin32: Windows rooted-relative 0ms +2026-10-07T09:29:06.0056095Z ✓ isFullyQualifiedWin32: Windows drive-absolute 0ms +2026-10-07T09:29:06.0056775Z ✓ isFullyQualifiedWin32: Windows UNC 0ms +2026-10-07T09:29:06.0057504Z ✓ isFullyQualifiedWin32: POSIX root 0ms +2026-10-07T09:29:06.0059756Z ✓ isFullyQualifiedWin32: POSIX absolute 0ms +2026-10-07T09:29:06.0060725Z ✓ isFullyQualifiedWin32: relative 0ms +2026-10-07T09:29:06.0061751Z ✓ isFullyQualifiedWin32: dot-relative 0ms +2026-10-07T09:29:06.0062539Z ✓ classifies /foo according to explicit platform semantics 0ms +2026-10-07T09:29:06.0063454Z ✓ classifies ordinary host-native paths through the ambient helper 0ms +2026-10-07T09:29:06.0064734Z ✓ uriToPath decodes URL-encoded file URIs 1ms +2026-10-07T09:29:06.0065830Z ✓ pathToUri + uriToPath round-trips an existing file 4ms +2026-10-07T09:29:06.0069832Z ✓ normalizeFilePath: Windows-shaped path is OS-coherent (refs #1150, class #1024) (3) +2026-10-07T09:29:06.0071360Z ✓ forward-slash and backslash forms normalize to the same key (coherence) 1ms +2026-10-07T09:29:06.0072538Z ✓ preserves the path structure and drive-letter shape — never collapses to a cwd-relative key 1ms +2026-10-07T09:29:06.0073521Z ✓ normalizeMapKey (the map-key entry point) yields the same stable key 2ms +2026-10-07T09:29:06.0074438Z ❯ normalizeFilePath: POSIX adopts on-disk casing (#3098, the live half of #1024) (9) +2026-10-07T09:29:06.0075335Z ✓ a mis-cased spelling and the on-disk spelling derive ONE map key 3ms +2026-10-07T09:29:06.0076316Z ✓ adopts the on-disk casing itself — never a lowercased or uppercased form 3ms +2026-10-07T09:29:06.0078064Z ↓ keeps a symlinked PREFIX — POSIX normalization still resolves no symlink 0ms [win32 arm resolves symlinks by design (unchanged by #3098); lane: ubuntu Unit tests] +2026-10-07T09:29:06.0080149Z ↓ a symlinked prefix with a mis-cased tail fixes the casing only (the macOS /var/folders shape) 0ms [win32 arm resolves symlinks by design (unchanged by #3098); lane: ubuntu Unit tests] +2026-10-07T09:29:06.0081710Z  × a path that does not exist stays case-preserving 14ms +2026-10-07T09:29:06.0083431Z ↓ a case-variant symlink to a different directory never collapses two real files onto one key 9ms [case-insensitive filesystem: MyProject and myproject cannot be two entries here] +2026-10-07T09:29:06.0085515Z ↓ a case-variant symlink with no colliding sibling keys under a path that exists 3ms [case-insensitive filesystem: node_modules/Foo and node_modules/foo are one entry here] +2026-10-07T09:29:06.0087545Z ↓ a case-variant symlink whose target is its own sibling resolves through it 3ms [case-insensitive filesystem: LINK and link cannot be two entries here] +2026-10-07T09:29:06.0089402Z ↓ two genuinely distinct files on a case-sensitive filesystem keep two keys 2ms [case-insensitive filesystem: SUB and sub cannot be two directories here] +2026-10-07T09:29:06.0090753Z ❯ normalizeFilePath: dot segments fold into the canonical key (#3184) (7) +2026-10-07T09:29:06.0092501Z ✓ an absolute dot-segment path that EXISTS keys the same as the plain spelling 3ms +2026-10-07T09:29:06.0093564Z ✓ an absolute dot-segment path that does NOT exist folds too 2ms +2026-10-07T09:29:06.0094423Z ✓ `.` segments and duplicate separators fold as well 2ms +2026-10-07T09:29:06.0096505Z  × a RELATIVE path stays relative — the fold never resolves against process.cwd() (#2490) 1ms +2026-10-07T09:29:06.0098506Z  × an empty string is returned unchanged, not invented into the cwd 1ms +2026-10-07T09:29:06.0100128Z ↓ a UNC-shaped root keeps its leading double slash on POSIX 0ms [win32 host routes UNC through the win32 arm; this pins the POSIX arm] +2026-10-07T09:29:06.0102006Z ✓ a Windows-shaped path still folds dot segments through the win32 arm, unchanged by this fix 1ms +2026-10-07T09:29:06.0103282Z ✓ toProjectRelativePath: Windows-shaped path relativizes on ANY OS (refs #1163, class #1150/#1024) (4) +2026-10-07T09:29:06.0105142Z ✓ backslash form under a backslash root → forward-slashed project-relative path 0ms +2026-10-07T09:29:06.0106226Z ✓ forward-slash win32 form under a win32 root → project-relative path 0ms +2026-10-07T09:29:06.0107330Z ✓ UNC-shaped path under a UNC root relativizes rather than returning the whole path 0ms +2026-10-07T09:29:06.0109000Z ✓ a win32 file OUTSIDE the win32 root keeps the (slash-folded) absolute path 1ms +2026-10-07T09:29:06.0109527Z ✓ normalizeEphemeralMapKey (refs #191) (3) +2026-10-07T09:29:06.0110013Z ✓ folds backslash and forward-slash forms to the same key 0ms +2026-10-07T09:29:06.0111010Z ✓ does not touch the filesystem (never throws for a nonexistent path, no realpath resolution) 1ms +2026-10-07T09:29:06.0111925Z ✓ is case-insensitive on win32 semantics (matches this suite's Windows CI target) 0ms +2026-10-07T09:29:06.0112450Z ✓ walkUpDirs / findNearestContaining (#122) (4) +2026-10-07T09:29:06.0113366Z ✓ walkUpDirs yields every directory from startDir up to the filesystem root and stops 3ms +2026-10-07T09:29:06.0114056Z ✓ findNearestContaining returns the nearest containing directory, not a higher one 3ms +2026-10-07T09:29:06.0114697Z ✓ findNearestContaining matches the first candidate filename that exists 2ms +2026-10-07T09:29:06.0115425Z ✓ findNearestContaining returns undefined when no candidate is found anywhere 2ms +2026-10-07T09:29:06.0115926Z ✓ findLocalToolConfig (refs #680) (7) +2026-10-07T09:29:06.0116405Z ✓ returns the matched FILE path, not just the containing directory 2ms +2026-10-07T09:29:06.0117144Z ✓ prefers the nearest directory over a match higher up the tree 4ms +2026-10-07T09:29:06.0117948Z ✓ within a single directory, matches candidate names in list order 2ms +2026-10-07T09:29:06.0119490Z ✓ returns undefined when no candidate name is found anywhere up the tree 2ms +2026-10-07T09:29:06.0122780Z ✓ falls back to process.cwd() when startDir is empty, matching prior per-tool behavior 0ms +2026-10-07T09:29:06.0124342Z ✓ stops the ancestor climb at options.homeDir when a config sits one level above it, but only when homeDir is passed 3ms +2026-10-07T09:29:06.0125627Z ✓ resolves a config AT a mocked HOME by default, but not once { homeDir } opts into the ceiling 2ms +2026-10-07T09:29:06.0126826Z ✓ Git ownership certainty preserves the legacy marker API (13) +2026-10-07T09:29:06.0127575Z ✓ keeps boolean callback results when the later marker is missing 3ms +2026-10-07T09:29:06.0128614Z ✓ keeps boolean callback results when the later marker is invalid-file 3ms +2026-10-07T09:29:06.0129746Z ✓ keeps boolean callback results when the later marker is headless-directory 3ms +2026-10-07T09:29:06.0131225Z ✓ keeps ENOENT distinct from a successful marker validation 2ms +2026-10-07T09:29:06.0131770Z ✓ keeps ENOTDIR distinct from a successful marker validation 1ms +2026-10-07T09:29:06.0132280Z ✓ keeps EACCES distinct from a successful marker validation 1ms +2026-10-07T09:29:06.0133379Z ✓ keeps ESTALE distinct from a successful marker validation 4ms +2026-10-07T09:29:06.0134408Z ✓ retains valid and invalid file/directory marker semantics in both modes 3ms +2026-10-07T09:29:06.0135908Z ✓ keeps legacy predicate existence ordering and propagates its exceptions 2ms +2026-10-07T09:29:06.0137767Z ✓ does not probe a detailed marker at or above the home ceiling 1ms +2026-10-07T09:29:06.0138675Z ✓ probes markers in order per directory and climbs past an absent one 3ms +2026-10-07T09:29:06.0139685Z ✓ exposes the exact 64-iteration boundary and home ceiling without changing legacy null 109ms +2026-10-07T09:29:06.0140642Z ✓ reports reason root when the walk reaches the filesystem root below an unrelated home 4ms +2026-10-07T09:29:06.0141416Z ✓ findNearestMarkerRoot (refs #625) (5) +2026-10-07T09:29:06.0142150Z ✓ resolves the nearest directory containing a marker 3ms +2026-10-07T09:29:06.0142940Z ✓ never resolves at or above the given home dir 4ms +2026-10-07T09:29:06.0143585Z ✓ stops at a boundary marker found before any project marker 3ms +2026-10-07T09:29:06.0144164Z ✓ does not stop at a boundary that coincides with the marker directory itself 3ms +2026-10-07T09:29:06.0144789Z ✓ returns null (never startDir) when nothing matches up to the filesystem root 2ms +2026-10-07T09:29:06.0145389Z ✓ isAtOrAboveHomeDir (#253) — posix path semantics on every lane (#2544 F2) (14) +2026-10-07T09:29:06.0145844Z ✓ home itself → true 0ms +2026-10-07T09:29:06.0146179Z ✓ home's parent → true 0ms +2026-10-07T09:29:06.0146518Z ✓ home's grandparent → true 0ms +2026-10-07T09:29:06.0146862Z ✓ the filesystem root → true 0ms +2026-10-07T09:29:06.0147205Z ✓ a project under home → false 0ms +2026-10-07T09:29:06.0147567Z ✓ a direct child of home → false 0ms +2026-10-07T09:29:06.0147919Z ✓ a sibling tree → false 0ms +2026-10-07T09:29:06.0148335Z ✓ an unresolved path that normalizes TO h… → true 0ms +2026-10-07T09:29:06.0148948Z ✓ an unresolved path that normalizes UNDE… → false 0ms +2026-10-07T09:29:06.0149722Z ✓ a directory whose name merely PREFIXES … → false 0ms +2026-10-07T09:29:06.0150750Z ✓ a project under a name that merely pref… → false 0ms +2026-10-07T09:29:06.0151464Z ✓ an unrelated absolute tree → false 0ms +2026-10-07T09:29:06.0152150Z ✓ a re-cased home (case-sensitive: a diff… → false 0ms +2026-10-07T09:29:06.0152866Z ✓ a re-cased home in the HOME argument → false 0ms +2026-10-07T09:29:06.0153731Z ✓ isAtOrAboveHomeDir (#253) — win32 path semantics on every lane (#2544 F2) (14) +2026-10-07T09:29:06.0154678Z ✓ home itself → true 0ms +2026-10-07T09:29:06.0155206Z ✓ home's parent → true 0ms +2026-10-07T09:29:06.0155778Z ✓ home's grandparent → true 0ms +2026-10-07T09:29:06.0156348Z ✓ the filesystem root → true 0ms +2026-10-07T09:29:06.0156927Z ✓ a project under home → false 0ms +2026-10-07T09:29:06.0157535Z ✓ a direct child of home → false 0ms +2026-10-07T09:29:06.0158103Z ✓ a sibling tree → false 0ms +2026-10-07T09:29:06.0158772Z ✓ an unresolved path that normalizes TO h… → true 0ms +2026-10-07T09:29:06.0159564Z ✓ an unresolved path that normalizes UNDE… → false 0ms +2026-10-07T09:29:06.0160475Z ✓ a directory whose name merely PREFIXES … → false 0ms +2026-10-07T09:29:06.0161277Z ✓ a project under a name that merely pref… → false 0ms +2026-10-07T09:29:06.0161979Z ✓ the root of another drive → false 0ms +2026-10-07T09:29:06.0162685Z ✓ a re-spelled home (lowercase drive + fo… → true 0ms +2026-10-07T09:29:06.0163451Z ✓ a re-spelled home in the HOME argument → true 0ms +2026-10-07T09:29:06.0164075Z ✓ isExternalOrVendorFile (8) +2026-10-07T09:29:06.0164687Z ✓ returns false for a normal source file 4ms +2026-10-07T09:29:06.0165864Z ✓ returns true for a file outside the project root 1ms +2026-10-07T09:29:06.0166783Z ✓ returns true for node_modules 1ms +2026-10-07T09:29:06.0167387Z ✓ returns true for vendor/ 1ms +2026-10-07T09:29:06.0168372Z ✓ returns true for vendors/ 1ms +2026-10-07T09:29:06.0168974Z ✓ returns true for third_party/ 1ms +2026-10-07T09:29:06.0169529Z ✓ returns true for third-party/ 1ms +2026-10-07T09:29:06.0170282Z ✓ returns false for a dir that merely contains 'vendor' as a substring 1ms +2026-10-07T09:29:06.0170969Z ✓ toPosix (refs #1193) (4) +2026-10-07T09:29:06.0171531Z ✓ folds backslashes to forward slashes 0ms +2026-10-07T09:29:06.0172246Z ✓ is a no-op on an already-forward-slashed path 0ms +2026-10-07T09:29:06.0173198Z ✓ is exactly the inline idiom it replaces (does NOT collapse, resolve, or lowercase) 0ms +2026-10-07T09:29:06.0173969Z ✓ handles empty string 0ms +2026-10-07T09:29:06.0174581Z ✓ splitPathSegments (refs #1193, #1161/#1163) (3) +2026-10-07T09:29:06.0175405Z ✓ splits on EITHER separator regardless of host, dropping empties 0ms +2026-10-07T09:29:06.0176357Z ✓ collapses doubled separators and drops leading/trailing empties 0ms +2026-10-07T09:29:06.0177186Z ✓ returns [] for empty or separator-only input 0ms +2026-10-07T09:29:06.0177915Z ✓ normalizeLoggedPath (#2219, #2229 review round 1) (10) +2026-10-07T09:29:06.0178835Z ✓ normalizes a Windows-shaped absolute path independent of the host platform 1ms +2026-10-07T09:29:06.0179910Z ✓ normalizes a POSIX-shaped absolute path independent of the host platform 1ms +2026-10-07T09:29:06.0180878Z ✓ passes the non-path value "" through unchanged 0ms +2026-10-07T09:29:06.0181832Z ✓ passes the non-path value "" through unchanged 0ms +2026-10-07T09:29:06.0182958Z ✓ passes the non-path value "" through unchanged 0ms +2026-10-07T09:29:06.0183757Z ✓ passes the non-path value "" through unchanged 0ms +2026-10-07T09:29:06.0184470Z ✓ passes the non-path value "git" through unchanged 0ms +2026-10-07T09:29:06.0185266Z ✓ passes the non-path value "npm run build" through unchanged 0ms +2026-10-07T09:29:06.0186128Z ✓ passes the non-path value "relative/a.ts" through unchanged 0ms +2026-10-07T09:29:06.0187213Z ✓ pins current behavior for a drive-rooted command WITH arguments (no live caller does this) 1ms +2026-10-07T09:29:06.0188356Z ✓ homeRelativePath (#2440 F5) (5) +2026-10-07T09:29:06.0189900Z ✓ rewrites a $HOME-anchored path to its ~ form 0ms +2026-10-07T09:29:06.0190753Z ✓ returns a bare ~ for the home directory itself 0ms +2026-10-07T09:29:06.0191607Z ✓ leaves a path outside home untouched, separators included 0ms +2026-10-07T09:29:06.0192536Z ✓ does not rewrite a SIBLING whose name merely starts with home's 0ms +2026-10-07T09:29:06.0193562Z ✓ takes the home directory as an argument, so no assertion depends on the box 0ms +2026-10-07T09:29:06.0194477Z ✓ matchesWorkspaceMemberPattern dialect table (#2591) (38) +2026-10-07T09:29:06.0195235Z ✓ literal path: crates/foo vs crates/foo 1ms +2026-10-07T09:29:06.0195998Z ✓ `*` inside one component: crates/* vs crates/foo 0ms +2026-10-07T09:29:06.0196897Z ✓ segment-count mismatch — `*` may not cr…: crates/* vs crates/foo/bar 0ms +2026-10-07T09:29:06.0197759Z ✓ bare `*` claims one component only: * vs a/b 0ms +2026-10-07T09:29:06.0198626Z ✓ `**` crosses components (cargo: pattern…: crates/** vs crates/a/b 0ms +2026-10-07T09:29:06.0199477Z ✓ a TRAILING `**` still requires at least…: crates/** vs crates 0ms +2026-10-07T09:29:06.0200251Z ✓ a TRAILING `**` is not satisfied by the…: crates/** vs crates/ 0ms +2026-10-07T09:29:06.0201079Z ✓ an INTERIOR `**` may consume zero compo…: a/**/b vs a/b 0ms +2026-10-07T09:29:06.0201966Z ✓ a LEADING `**` may consume zero compone…: **/tests vs tests 0ms +2026-10-07T09:29:06.0202900Z ✓ `**` anywhere kills a cargo pattern, ev…: crates/a**b vs crates/aXb 0ms +2026-10-07T09:29:06.0203914Z ✓ case-sensitive on every platform (patte…: Crates/* vs crates/foo 0ms +2026-10-07T09:29:06.0204941Z ✓ case-sensitive on every platform (path …: crates/* vs Crates/foo 0ms +2026-10-07T09:29:06.0206056Z ✓ a leading dot is an ordinary character …: crates/* vs crates/.hidden 0ms +2026-10-07T09:29:06.0206957Z ✓ `?` matches exactly one character: crates/a?c vs crates/abc 0ms +2026-10-07T09:29:06.0207882Z ✓ `?` may not cross `/` except in uv excl…: crates/a?c vs crates/a/c 0ms +2026-10-07T09:29:06.0209072Z ✓ trailing slash — cargo strips it, uv no…: crates/foo/ vs crates/foo 0ms +2026-10-07T09:29:06.0210053Z ✓ trailing slash after a wildcard compone…: crates/*/ vs crates/foo 0ms +2026-10-07T09:29:06.0211046Z ✓ leading ./ — uv normalize_path drops it…: ./packages/a vs packages/a 0ms +2026-10-07T09:29:06.0211976Z ✓ character class — a class in uv, a lite…: crates/[ab] vs crates/a 1ms +2026-10-07T09:29:06.0213101Z ✓ character class — the same pattern name…: crates/[ab] vs crates/[ab] 3ms +2026-10-07T09:29:06.0213966Z ✓ negated character class: crates/[!ab] vs crates/c 0ms +2026-10-07T09:29:06.0214922Z ✓ the acceptance vector: a separator-cros…: packages/a*c vs packages/a/b/c 0ms +2026-10-07T09:29:06.0215779Z ✓ a regex metacharacter is a literal, not…: crates/a.c vs crates/abc 0ms +2026-10-07T09:29:06.0216624Z ✓ a regex metacharacter matches itself: crates/a+b vs crates/a+b 0ms +2026-10-07T09:29:06.0217511Z ✓ chained `**`: interior, consuming zero …: a/**/**/**/b vs a/b 0ms +2026-10-07T09:29:06.0218400Z ✓ chained `**`: interior, consuming sever…: a/**/**/**/b vs a/x/y/b 0ms +2026-10-07T09:29:06.0219466Z ✓ chained `**`: a trailing chain still re…: a/**/**/** vs a 0ms +2026-10-07T09:29:06.0220350Z ✓ interleaved `**/*` chain, every `**` co…: **/*/**/*/zzz vs a/b/zzz 0ms +2026-10-07T09:29:06.0221266Z ✓ interleaved `**/*` chain, the `**`s con…: **/*/**/*/zzz vs a/b/c/d/e/zzz 0ms +2026-10-07T09:29:06.0222185Z ✓ interleaved `**/*` chain against a path…: **/*/**/*/zzz vs a/b/c/d/e 0ms +2026-10-07T09:29:06.0223121Z ✓ a `*` interleaved with `**` still cross…: **/a*c/zzz vs x/a/b/c/zzz 0ms +2026-10-07T09:29:06.0224001Z ✓ `**` crosses an ordinary directory name: **/c vs ab/c 0ms +2026-10-07T09:29:06.0224670Z ✓ `**` does NOT cross a newline inside a …: **/c vs a +2026-10-07T09:29:06.0225092Z b/c 0ms +2026-10-07T09:29:06.0225704Z ✓ uncompilable class range fails closed, …: crates/[z-a] vs crates/a 0ms +2026-10-07T09:29:06.0226379Z ✓ uncompilable NEGATED class range fails …: crates/[!z-a] vs crates/a 0ms +2026-10-07T09:29:06.0226953Z ✓ uncompilable class with a literal tail …: crates/[b-a]x vs crates/ax 0ms +2026-10-07T09:29:06.0227521Z ✓ a WELL-FORMED class range still matches…: crates/[a-z] vs crates/m 0ms +2026-10-07T09:29:06.0228063Z ✓ most rows separate at least two dialects 0ms +2026-10-07T09:29:06.0229251Z ✓ workspace glob memo cell cap (#2629) (4) +2026-10-07T09:29:06.0229836Z ✓ preserves a below-cap workspace glob match 1ms +2026-10-07T09:29:06.0230499Z ✓ declines over-cap matching literals and reports the cap statelessly 1ms +2026-10-07T09:29:06.0231111Z ✓ reports distinct over-cap lengths without retaining matcher state 12ms +2026-10-07T09:29:06.0231683Z ✓ keeps a realistic upper-size matching glob under the cap 20ms +2026-10-07T09:29:06.0232487Z ❯ the uv-members dialect reproduces the pre-fold minimatch answers (#2591) (1) +2026-10-07T09:29:06.0233369Z  × differs from minimatch(dot:true) on exactly the enumerated cells 71ms +2026-10-07T09:29:08.5132484Z ✓  default  tests/config/hook-await-bounds.test.ts (17 tests) 885ms +2026-10-07T09:29:08.5135952Z ✓ #2523 AC1 every hook-path await is bounded, and no new hand-rolled race (17) +2026-10-07T09:29:08.5137227Z ✓ pins every one-hop helper module's unbounded-await count 441ms +2026-10-07T09:29:09.6110837Z ✓  default  tests/config/glossary-synonym-sweep.test.ts (7 tests) 715ms +2026-10-07T09:29:09.6113277Z ✓ glossary synonym-retirement sweep (#3259) (7) +2026-10-07T09:29:09.6114388Z ✓ parses the complete glossary and pins its identifier population 690ms +2026-10-07T09:29:15.2791492Z stdout | tests/clients/runtime-tool-result.test.ts > monorepo turn-state cwd alignment > drops the cascade a session-1 handler admits after the replacement, parked (#3512 r1 B2) +2026-10-07T09:29:15.2878854Z [LateAdmission parked] delivered=[] own=1 staleWrites=["runtime-session:\\edit.ts"] +2026-10-07T09:29:15.3059693Z +2026-10-07T09:29:15.3133858Z stdout | tests/clients/runtime-tool-result.test.ts > monorepo turn-state cwd alignment > drops the cascade a session-1 handler admits after the replacement, overflow (#3512 r1 B2) +2026-10-07T09:29:15.3213722Z [LateAdmission overflow] delivered=[] own=32 staleWrites=["runtime-session:\\edit.ts"] +2026-10-07T09:29:15.3294111Z +2026-10-07T09:29:18.8010626Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:29:18.9108807Z ❯  default  tests/clients/runtime-tool-result.test.ts (77 tests | 10 failed) 8611ms +2026-10-07T09:29:18.9303340Z ✓ does not dispatch an edit when analyzer bootstrap is unavailable (#2939 M9) 34ms +2026-10-07T09:29:18.9536072Z ❯ bash grep searchReads registration (22) +2026-10-07T09:29:18.9894932Z ✓ forwards structuredContent on a decorated bash tool_result that gains pipeline notes, exit 3 (#3832) 618ms +2026-10-07T09:29:18.9957605Z ✓ forwards structuredContent on a decorated bash tool_result that gains pipeline notes, exit 0 (#3832) 322ms +2026-10-07T09:29:19.0019220Z ✓ forwards structuredContent on the host-failure return of a classified tool (#3832) 4ms +2026-10-07T09:29:19.0058654Z ✓ forwards structuredContent on the pipeline-crash response (#3832) 30ms +2026-10-07T09:29:19.0085722Z ✓ preserves structuredContent on pipeline rewrites (#3832) 26ms +2026-10-07T09:29:19.0102807Z ✓ supersedes the provisional native read before checkEdit 541ms +2026-10-07T09:29:19.0272039Z ✓ registers the native read range the host delivered at EOF 15ms +2026-10-07T09:29:19.0336647Z  × registers only the lines shown by the real bash host cap 478ms +2026-10-07T09:29:19.0401204Z ✓ keeps a pipe-filtered short output on the full source span 12ms +2026-10-07T09:29:19.0458136Z  × does not mark a content-identical opaque rewrite as authored 1265ms +2026-10-07T09:29:19.0469142Z ✓ blocks a recognized bash write when observation evidence is unavailable 887ms +2026-10-07T09:29:19.0471519Z ✓ blocks every span when a multi-span bash view is clipped 7ms +2026-10-07T09:29:19.0473754Z ✓ invalidates formatter selection through handleToolResult 56ms +2026-10-07T09:29:19.0495086Z ✓ invalidates a warm formatter selection after an in-place config rewrite 97ms +2026-10-07T09:29:19.0497877Z ✓ invalidates formatter selection for config removal and changedFiles side effects 166ms +2026-10-07T09:29:19.0499250Z ✓ invalidates the ignore matcher through handleToolResult 103ms +2026-10-07T09:29:19.0501326Z ✓ registers bash reads only from a successful tool result 51ms +2026-10-07T09:29:19.0503309Z ✓ does not register grep output from a failed bash result 3ms +2026-10-07T09:29:19.0505317Z ✓ does not record or deliver a failed native edit result 6ms +2026-10-07T09:29:19.0514508Z ✓ hashes a native multi-edit result once for all applied records 31ms +2026-10-07T09:29:19.0539775Z ✓ records grep -n output lines as read-guard search reads 12ms +2026-10-07T09:29:19.0541158Z ✓ credits the context lines a grep -C actually printed 10ms +2026-10-07T09:29:19.0542153Z ✓ bash external-delete detection (#1668) (6) +2026-10-07T09:29:19.0547962Z ✓ a known path that is actually gone after `rm` gets a type-3 notify and is forgotten 16ms +2026-10-07T09:29:19.0567053Z ✓ a path pi-lens never knew about is NOT notified even if it's gone 12ms +2026-10-07T09:29:19.0569574Z ✓ a known path that still exists (rm failed / no-op) is NOT notified 11ms +2026-10-07T09:29:19.0860872Z ✓ a failed bash tool result is NOT treated as a real delete 2ms +2026-10-07T09:29:19.0903178Z ✓ a burst of deletes in one command notifies once per confirmed-gone known file 41ms +2026-10-07T09:29:19.0911122Z ✓ respects --no-lsp: no external-delete notification is sent 3ms +2026-10-07T09:29:19.0953317Z ❯ monorepo turn-state cwd alignment (7) +2026-10-07T09:29:19.1124194Z  × writes turn state under workspace root, not the nested language root 82ms +2026-10-07T09:29:19.1309414Z  × still dispatches pipeline to the language root for linting 37ms +2026-10-07T09:29:19.1379051Z ✓ hands the pipeline the session generation current when it dispatches (#3512) 24ms +2026-10-07T09:29:19.1400436Z ✓ drops the cascade a session-1 handler admits after the replacement, parked (#3512 r1 B2) 26ms +2026-10-07T09:29:19.1412905Z ✓ drops the cascade a session-1 handler admits after the replacement, overflow (#3512 r1 B2) 15ms +2026-10-07T09:29:19.1418793Z ✓ drops the cascade of a session-1 handler parked before its dispatch (#3568) 27ms +2026-10-07T09:29:19.1447985Z ✓ a bash handler's synthetic writes carry the session its handler entered in (#3568) 540ms +2026-10-07T09:29:19.1449334Z ❯ runtime-tool-result writers across a replacement (#3596) (6) +2026-10-07T09:29:19.1450612Z  × a session-1 edit parked on its analysers credits nothing in session 2 24ms +2026-10-07T09:29:19.1452053Z  × a session-1 pipeline settling after the replacement queues nothing in session 2 78ms +2026-10-07T09:29:19.1453352Z ✓ a session-1 pipeline error leaves session 2's git-guard cache alone 84ms +2026-10-07T09:29:19.1454792Z ✓ a session-1 pipeline finishing in session 2's turn does not mark session 2's bytes analysed (#3763) 76ms +2026-10-07T09:29:19.1456900Z ✓ a session-1 autofix finishing after the replacement leaves session 2's file unmarked (#3763) 135ms +2026-10-07T09:29:19.1466798Z ✓ an immediate autofix in its own session marks the file fixed (#3763) 122ms +2026-10-07T09:29:19.1468233Z ❯ runtime-tool-result inline behavior warnings (23) +2026-10-07T09:29:19.1469733Z  × appends project change log entries for analyzed agent edits 55ms +2026-10-07T09:29:19.1471339Z ✓ queues successful write/edit files for deferred formatting by default 84ms +2026-10-07T09:29:19.1473240Z ✓ returns authoritative full content after immediate write autofix 46ms +2026-10-07T09:29:19.1474811Z ✓ does not stamp an ambiguous side-effect write as the target identity (#2499 HIGH) 16ms +2026-10-07T09:29:19.1476439Z ✓ runs bash synthetic writes immediately and returns authoritative content 63ms +2026-10-07T09:29:19.1478118Z  × recovers opaque multi-file bash changes without granting ownership 905ms +2026-10-07T09:29:19.1480882Z ✓ shares one authoritative-content budget across a multi-file bash write 79ms +2026-10-07T09:29:19.1482508Z ✓ demotes a bash write followed by an edit through the handler 61ms +2026-10-07T09:29:19.1501891Z ✓ clears already-fixed state through an alias spelling on edit 18ms +2026-10-07T09:29:19.1506418Z ✓ queues format with deferred autofix under --immediate-format 16ms +2026-10-07T09:29:19.1537013Z ✓ does not attach authoritative content above the LSP byte limit 77ms +2026-10-07T09:29:19.1576961Z  × publishes pilens:format:queued only when deferFormat reports a NEW queue entry (#673) 56ms +2026-10-07T09:29:19.1581357Z ✓ does not append behavior warnings when blockers are present 16ms +2026-10-07T09:29:19.1595474Z ✓ appends behavior warnings when no blockers are present 67ms +2026-10-07T09:29:19.1596802Z ✓ does not emit file-time warnings on rapid consecutive edits 140ms +2026-10-07T09:29:19.1604728Z ✓ deduplicates repeated tool_result events for the same file state 18ms +2026-10-07T09:29:19.1631394Z ✓ tracks side-effect files changed by the pipeline 32ms +2026-10-07T09:29:19.1645788Z ✓ uses the workspace-edit path identity for the dispatched target (#3294) 19ms +2026-10-07T09:29:19.1648383Z ✓ uses the filesystem answer for case-variant workspace-edit paths (#3294) 65ms +2026-10-07T09:29:19.1649438Z ✓ uses fast LSP reset when pipeline crash recovery resets clients 135ms +2026-10-07T09:29:19.1650337Z ✓ does not let a secondary pipeline crash reset the primary fleet 17ms +2026-10-07T09:29:19.1651264Z ✓ lets a primary session's own pipeline crash reset its fleet 24ms +2026-10-07T09:29:19.1652210Z ✓ resolves relative tool_result paths against the workspace root 58ms +2026-10-07T09:29:19.1653005Z ✓ #484 turn-summary collection gate (2) +2026-10-07T09:29:19.1654018Z ✓ does not record diagnostics/autofix/format on the turn-summary collector when lens-turn-summary is off (default) 36ms +2026-10-07T09:29:19.1655362Z ✓ records diagnostics, autofix, and format events on the turn-summary collector when lens-turn-summary is on 24ms +2026-10-07T09:29:19.1656230Z ✓ #3246 inline blocker provenance (1) +2026-10-07T09:29:19.1656949Z ✓ stores the structured blockers the summary was rendered from 19ms +2026-10-07T09:29:19.1657766Z ❯ path attribution across tool_call/tool_result (#1642) (9) +2026-10-07T09:29:19.1658947Z  × resolves a relative tool_result path against the call's own worktree cwd, never the parent checkout 23ms +2026-10-07T09:29:19.1660226Z ✓ runs the full pipeline for a brand-new file's write, not just an existing one (#1642 F1) 36ms +2026-10-07T09:29:19.1663460Z ✓ clears a recorded attribution when the paired tool_call is BLOCKED, so it never leaks into the correlation cache (#1642 F2) 22ms +2026-10-07T09:29:19.1664830Z ✓ fails closed on a relative path when a real correlation id exists but no attribution was recorded under it (#1642 F2) 2ms +2026-10-07T09:29:19.1666216Z ✓ keeps a same-named workspace-root guess unverified without execution evidence (#1886) 3ms +2026-10-07T09:29:19.1693438Z ✓ correlates by `callId` when the host doesn't populate `toolCallId` (#1642 F4) 31ms +2026-10-07T09:29:19.1904697Z ✓ correlates two concurrent calls correctly when their results arrive OUT OF ORDER (#1642, pi parallel-execution) 86ms +2026-10-07T09:29:19.1913607Z ✓ keeps parallel nested codemode calls apart under an 86-char parent id (#3833) 50ms +2026-10-07T09:29:19.1915767Z ✓ logs the diagnostic path_attribution_refused when a genuine call-time/execution-time divergence occurs, but still processes the correct fresh path 36ms +2026-10-07T09:29:19.9034427Z [tmp-hygiene-sweep] tests/clients/pipeline.test.ts via=afterAll registered=44 stragglers=0 failed=0 dropped=0 +2026-10-07T09:29:19.9039368Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:29:19.9176610Z ❯  default  tests/clients/pipeline.test.ts (44 tests | 6 failed) 11143ms +2026-10-07T09:29:19.9180136Z ❯ Pipeline (44) +2026-10-07T09:29:19.9181371Z ✓ leaves the post-write identity absent when autofix changes only a side-effect file 297ms +2026-10-07T09:29:19.9184013Z ✓ project config disables format and autofix while preserving diagnostics 37ms +2026-10-07T09:29:19.9229908Z ✓ passes the workspace root to dispatch when cwd is a nested language root 63ms +2026-10-07T09:29:19.9231833Z ✓ binds blocker content to the pre-dispatch analysis bytes 126ms +2026-10-07T09:29:19.9236113Z ✓ states why a delta-promoted unused finding blocks in the enriched STOP block (#3218) 45ms +2026-10-07T09:29:19.9238172Z ✓ hands the cascade the PROJECT root alongside the language cwd (#3157) 66ms +2026-10-07T09:29:19.9245450Z ✓ hands the cascade the session generation captured at dispatch (#3512) 55ms +2026-10-07T09:29:19.9247843Z ✓ hands the cascade the dispatch's order turn beside its session turn (#3540 r2) 39ms +2026-10-07T09:29:19.9249181Z ❯ Format phase (7) +2026-10-07T09:29:19.9250179Z ✓ defers format by default 61ms +2026-10-07T09:29:19.9251416Z ✓ marks file as modified when immediate format changes content 131ms +2026-10-07T09:29:19.9252773Z ✓ does not autonomously rewrite an observed opaque mutation 32ms +2026-10-07T09:29:19.9254070Z ✓ keeps opaque findings advisory instead of directing an edit 18ms +2026-10-07T09:29:19.9260425Z  × bounds opaque ownership telemetry across many paths (#3226 review P2) 9126ms +2026-10-07T09:29:19.9265714Z ✓ surfaces formatter failures instead of plain clean output 49ms +2026-10-07T09:29:19.9266568Z ✓ skips format when --no-autoformat flag is set 32ms +2026-10-07T09:29:19.9267226Z ❯ Bus publish (#482 pilens:files:touched) (4) +2026-10-07T09:29:19.9268215Z  × publishes reason:"format" with the fixed file's path when immediate format changes content 83ms +2026-10-07T09:29:19.9269909Z  × publishes reason:"autofix" with the fixed file's path when an autofix tool changes content 27ms +2026-10-07T09:29:19.9270816Z ✓ does not publish when nothing changes 14ms +2026-10-07T09:29:19.9271677Z  × includes fix-provenance entries on the format publish 84ms +2026-10-07T09:29:19.9272465Z ❯ Bus publish (#502 pilens:diagnostics) (3) +2026-10-07T09:29:19.9273407Z  × publishes the file's diagnostics after dispatch completes 30ms +2026-10-07T09:29:19.9274540Z ✓ does not publish when there are no diagnostics and the file was never dirty 23ms +2026-10-07T09:29:19.9276128Z  × emits an explicit clean [] event when a previously-dirty file's diagnostics clear on a later write 95ms +2026-10-07T09:29:19.9277028Z ✓ LSP sync (2) +2026-10-07T09:29:19.9277634Z ✓ syncs file with LSP when not deferred 24ms +2026-10-07T09:29:19.9278430Z ✓ skips LSP sync when --no-lsp flag is set 40ms +2026-10-07T09:29:19.9279049Z ✓ Dispatch lint (2) +2026-10-07T09:29:19.9279728Z ✓ sets hasBlockers when dispatch returns blockers 32ms +2026-10-07T09:29:19.9280859Z ✓ includes autofix count in output when fixes applied 43ms +2026-10-07T09:29:19.9281564Z ✓ LSP sync read stamp (#3481) (2) +2026-10-07T09:29:19.9282295Z ✓ stamps the sync with the read after an immediate format 20ms +2026-10-07T09:29:19.9283152Z ✓ stamps the sync with the read after an autofix 19ms +2026-10-07T09:29:19.9283873Z ✓ Cascade compute rejection (#3605) (2) +2026-10-07T09:29:19.9284742Z ✓ reports a tree-sitter wasm trap as a degraded graph, not a compute error 29ms +2026-10-07T09:29:19.9285703Z ✓ still reports any other rejection as a compute error 19ms +2026-10-07T09:29:19.9286640Z ✓ Test runner (1) +2026-10-07T09:29:19.9287360Z ✓ skips tests when --no-tests flag is set 34ms +2026-10-07T09:29:19.9288029Z ✓ All-clear output (1) +2026-10-07T09:29:19.9288692Z ✓ returns clean checkmark when no issues 39ms +2026-10-07T09:29:19.9289357Z ✓ inlineBlockerLines (#1641) (3) +2026-10-07T09:29:19.9290138Z ✓ captures the cited lines from dispatch's blocking diagnostics 24ms +2026-10-07T09:29:19.9291193Z ✓ does NOT harvest a line from a blocker reported against a different file 19ms +2026-10-07T09:29:19.9292441Z ✓ still captures lines when the blocker's path differs from ctx.filePath only by drive-letter case (win32) 18ms +2026-10-07T09:29:19.9293421Z ✓ #2028 stop-blocker deleted-path gate (5) +2026-10-07T09:29:19.9294292Z ✓ drops blockers whose cited file was deleted from the rendered STOP block 18ms +2026-10-07T09:29:19.9295310Z ✓ renders no STOP header when every blocker cites a deleted file 22ms +2026-10-07T09:29:19.9296291Z ✓ #3188 readback-failed branch with a total retraction (3) +2026-10-07T09:29:19.9297323Z ✓ delivers nothing at all when the readback failed and every blocker cites a deleted path 13ms +2026-10-07T09:29:19.9298637Z ✓ still delivers the post-blocker slice when the readback failed and every blocker cites a deleted path 12ms +2026-10-07T09:29:19.9300240Z ✓ keeps the surviving blocker when the readback failed and only some blockers cite a deleted path 22ms +2026-10-07T09:29:19.9301258Z ✓ #3190 inline-blocker record built from the gated set (4) +2026-10-07T09:29:19.9302227Z ✓ carries no record and no blocker verdict when every blocker cites a deleted path 39ms +2026-10-07T09:29:19.9303343Z ✓ carries only the surviving blocker when some blockers cite a deleted path 20ms +2026-10-07T09:29:19.9304410Z ✓ does not carry a cited line from a retracted blocker on the edited file 24ms +2026-10-07T09:29:19.9305599Z ✓ leaves the record byte-identical to the dispatcher's blockerOutput when nothing is retracted 20ms +2026-10-07T09:29:22.4553427Z ❯  default  tests/clients/dispatch/runners/reported-path-attribution.test.ts (96 tests | 2 failed) 12509ms +2026-10-07T09:29:22.4555869Z ✓ runner reported-path attribution (#3295) (8) +2026-10-07T09:29:22.4556994Z ✓ taplo keeps its own reported location 1302ms +2026-10-07T09:29:22.4560252Z ✓ yamllint keeps its own reported location 175ms +2026-10-07T09:29:22.4588893Z ✓ htmlhint keeps its own reported location 296ms +2026-10-07T09:29:22.4589912Z ✓ oxlint keeps its own reported location 251ms +2026-10-07T09:29:22.4605851Z ✓ taplo rejects a sibling reported location 238ms +2026-10-07T09:29:22.4607473Z ✓ yamllint rejects a sibling reported location 181ms +2026-10-07T09:29:22.4608528Z ✓ htmlhint rejects a sibling reported location 309ms +2026-10-07T09:29:22.4609868Z ✓ oxlint rejects a sibling reported location 153ms +2026-10-07T09:29:22.4616506Z ✓ golangci-lint reported-path attribution (#3278) (3) +2026-10-07T09:29:22.4618636Z ✓ attributes a cwd-relative golangci-lint Pos.Filename to the dispatched file (#3278) 349ms +2026-10-07T09:29:22.4620016Z ✓ does not attribute a sibling Go file's golangci-lint finding to the dispatched file (#3278) 127ms +2026-10-07T09:29:22.4621854Z ✓ treats a case-variant golangci-lint path exactly as this filesystem does (#3278) 186ms +2026-10-07T09:29:22.4623773Z ❯ cue-vet reported-path attribution (#3278) (3) +2026-10-07T09:29:22.4625252Z  × does not attribute a sibling-directory cue location that shares the touched file's basename (#3278) 183ms +2026-10-07T09:29:22.4677729Z ✓ attributes a './'-prefixed cue location for the touched file itself (#3278) 100ms +2026-10-07T09:29:22.4683691Z ✓ treats a case-variant cue location exactly as this filesystem does (#3278) 130ms +2026-10-07T09:29:22.4684648Z ✓ rust-clippy reported-path attribution (#3278) (3) +2026-10-07T09:29:22.4685616Z ✓ attributes a package-relative clippy span to the dispatched file (#3278) 179ms +2026-10-07T09:29:22.4686735Z ✓ does not attribute a crate-mate's clippy span to the dispatched file (#3278) 72ms +2026-10-07T09:29:22.4687864Z ✓ treats a case-variant clippy span exactly as this filesystem does (#3278) 148ms +2026-10-07T09:29:22.4688735Z ✓ javac reported-path attribution (#3278) (3) +2026-10-07T09:29:22.4689696Z ✓ attributes the absolute path javac echoes back to the dispatched file (#3278) 264ms +2026-10-07T09:29:22.4691242Z ✓ does not attribute a sibling Java file's javac error to the dispatched file (#3278) 109ms +2026-10-07T09:29:22.4692332Z ✓ treats a case-variant javac path exactly as this filesystem does (#3278) 230ms +2026-10-07T09:29:22.4694661Z ✓ zig-check reported-path attribution (#3278) (3) +2026-10-07T09:29:22.4695796Z ✓ attributes the absolute path zig echoes back to the dispatched file (#3278) 199ms +2026-10-07T09:29:22.4696911Z ✓ does not attribute a sibling Zig file's error to the dispatched file (#3278) 59ms +2026-10-07T09:29:22.4697974Z ✓ treats a case-variant zig path exactly as this filesystem does (#3278) 77ms +2026-10-07T09:29:22.4699066Z ✓ detekt reported-path attribution (#3278) (3) +2026-10-07T09:29:22.4700199Z ✓ attributes the absolute path detekt echoes back to the dispatched file (#3278) 125ms +2026-10-07T09:29:22.4701432Z ✓ does not attribute a sibling Kotlin file's detekt finding to the dispatched file (#3278) 199ms +2026-10-07T09:29:22.4702560Z ✓ treats a case-variant detekt path exactly as this filesystem does (#3278) 135ms +2026-10-07T09:29:22.4703520Z ✓ cpp-check gcc-flavour reported-path attribution (#3278) (3) +2026-10-07T09:29:22.4704502Z ✓ attributes the absolute path gcc echoes back to the dispatched file (#3278) 279ms +2026-10-07T09:29:22.4705615Z ✓ does not attribute an included header's gcc error to the dispatched file (#3278) 99ms +2026-10-07T09:29:22.4706701Z ✓ treats a case-variant gcc path exactly as this filesystem does (#3278) 145ms +2026-10-07T09:29:22.4707631Z ✓ cpp-check msvc-flavour reported-path attribution (#3278) (3) +2026-10-07T09:29:22.4708592Z ✓ attributes the absolute path cl echoes back to the dispatched file (#3278) 96ms +2026-10-07T09:29:22.4709715Z ✓ does not attribute another translation unit's cl error to the dispatched file (#3278) 196ms +2026-10-07T09:29:22.4710835Z ✓ treats a case-variant cl path exactly as this filesystem does (#3278) 130ms +2026-10-07T09:29:22.4711727Z ✓ dotnet-build reported-path attribution (#3278) (3) +2026-10-07T09:29:22.4712659Z ✓ attributes the full path MSBuild reports to the dispatched file (#3278) 160ms +2026-10-07T09:29:22.4713791Z ✓ does not attribute a sibling C# file's compiler error to the dispatched file (#3278) 260ms +2026-10-07T09:29:22.4714929Z ✓ treats a case-variant MSBuild path exactly as this filesystem does (#3278) 222ms +2026-10-07T09:29:22.4715891Z ✓ dart-analyze reported-path attribution (#3278) (3) +2026-10-07T09:29:22.4721543Z ✓ attributes the absolute path dart analyze reports to the dispatched file (#3278) 586ms +2026-10-07T09:29:22.4722809Z ✓ does not attribute a sibling Dart file's diagnostic to the dispatched file (#3278) 192ms +2026-10-07T09:29:22.4723894Z ✓ treats a case-variant dart path exactly as this filesystem does (#3278) 291ms +2026-10-07T09:29:22.4724784Z ❯ gleam-check reported-path attribution (#3285) (9) +2026-10-07T09:29:22.4725632Z ✓ pins the upstream gleam vector's codespan locus gutter (#3285) 1ms +2026-10-07T09:29:22.4726879Z  × attributes a codespan-guttered gleam locus line to the dispatched file (#3285) 173ms +2026-10-07T09:29:22.4728212Z ✓ still attributes a colour-forced gleam locus line (#3285) 64ms +2026-10-07T09:29:22.4729182Z ✓ keeps a located warning title and label, without the border glyph (#3293) 110ms +2026-10-07T09:29:22.4730154Z ✓ keeps a locationless project diagnostic unattributed (#3293) 69ms +2026-10-07T09:29:22.4731092Z ✓ does not use the next diagnostic title as the prior label (#3293) 64ms +2026-10-07T09:29:22.4731994Z ✓ uses the bounded fallback for a locus with no title (#3293) 147ms +2026-10-07T09:29:22.4733015Z ✓ does not attribute a sibling gleam module's guttered locus line (#3285) 116ms +2026-10-07T09:29:22.4734303Z ✓ treats a case-variant gleam locus path exactly as this filesystem does (#3285) 71ms +2026-10-07T09:29:22.4735199Z ✓ JSON runner reported-path attribution (#3304) (4) +2026-10-07T09:29:22.4735886Z ✓ shellcheck keeps its own JSON path 93ms +2026-10-07T09:29:22.4737145Z ✓ trivy-config keeps its own JSON path 84ms +2026-10-07T09:29:22.4737929Z ✓ shellcheck rejects a sibling JSON path 92ms +2026-10-07T09:29:22.4738684Z ✓ trivy-config rejects a sibling JSON path 65ms +2026-10-07T09:29:22.4739505Z ✓ no-predicate runner reported-path attribution (#3295 r3) (45) +2026-10-07T09:29:22.4740421Z ✓ stylelint keeps a finding it reported for the dispatched file 88ms +2026-10-07T09:29:22.4741370Z ✓ rubocop keeps a finding it reported for the dispatched file 82ms +2026-10-07T09:29:22.4742320Z ✓ eslint keeps a finding it reported for the dispatched file 68ms +2026-10-07T09:29:22.4743302Z ✓ biome-check keeps a finding it reported for the dispatched file 90ms +2026-10-07T09:29:22.4744245Z ✓ tflint keeps a finding it reported for the dispatched file 79ms +2026-10-07T09:29:22.4745193Z ✓ swiftlint keeps a finding it reported for the dispatched file 64ms +2026-10-07T09:29:22.4746137Z ✓ ktlint keeps a finding it reported for the dispatched file 69ms +2026-10-07T09:29:22.4747081Z ✓ hadolint keeps a finding it reported for the dispatched file 84ms +2026-10-07T09:29:22.4748048Z ✓ actionlint keeps a finding it reported for the dispatched file 95ms +2026-10-07T09:29:22.4749010Z ✓ spellcheck keeps a finding it reported for the dispatched file 73ms +2026-10-07T09:29:22.4749996Z ✓ sqlfluff keeps a finding it reported for the dispatched file 79ms +2026-10-07T09:29:22.4750900Z ✓ vale keeps a finding it reported for the dispatched file 56ms +2026-10-07T09:29:22.4751842Z ✓ markdownlint keeps a finding it reported for the dispatched file 76ms +2026-10-07T09:29:22.4752800Z ✓ php-lint keeps a finding it reported for the dispatched file 67ms +2026-10-07T09:29:22.4753797Z ✓ diagnostic-parsers keeps a finding it reported for the dispatched file 94ms +2026-10-07T09:29:22.4754780Z ✓ stylelint rejects a finding it reported for a sibling file 73ms +2026-10-07T09:29:22.4755700Z ✓ rubocop rejects a finding it reported for a sibling file 56ms +2026-10-07T09:29:22.4756824Z ✓ eslint rejects a finding it reported for a sibling file 65ms +2026-10-07T09:29:22.4758038Z ✓ biome-check rejects a finding it reported for a sibling file 52ms +2026-10-07T09:29:22.4759291Z ✓ tflint rejects a finding it reported for a sibling file 70ms +2026-10-07T09:29:22.4760265Z ✓ swiftlint rejects a finding it reported for a sibling file 50ms +2026-10-07T09:29:22.4761424Z ✓ ktlint rejects a finding it reported for a sibling file 61ms +2026-10-07T09:29:22.4762380Z ✓ hadolint rejects a finding it reported for a sibling file 56ms +2026-10-07T09:29:22.4763380Z ✓ actionlint rejects a finding it reported for a sibling file 55ms +2026-10-07T09:29:22.4764378Z ✓ spellcheck rejects a finding it reported for a sibling file 45ms +2026-10-07T09:29:22.4765430Z ✓ sqlfluff rejects a finding it reported for a sibling file 64ms +2026-10-07T09:29:22.4766546Z ✓ vale rejects a finding it reported for a sibling file 44ms +2026-10-07T09:29:22.4767542Z ✓ markdownlint rejects a finding it reported for a sibling file 69ms +2026-10-07T09:29:22.4768564Z ✓ php-lint rejects a finding it reported for a sibling file 47ms +2026-10-07T09:29:22.4769606Z ✓ diagnostic-parsers rejects a finding it reported for a sibling file 64ms +2026-10-07T09:29:22.4770924Z ✓ stylelint treats a case-variant reported path exactly as this filesystem does 64ms +2026-10-07T09:29:22.4772111Z ✓ rubocop treats a case-variant reported path exactly as this filesystem does 66ms +2026-10-07T09:29:22.4773249Z ✓ eslint treats a case-variant reported path exactly as this filesystem does 56ms +2026-10-07T09:29:22.4774476Z ✓ biome-check treats a case-variant reported path exactly as this filesystem does 51ms +2026-10-07T09:29:22.4775645Z ✓ tflint treats a case-variant reported path exactly as this filesystem does 56ms +2026-10-07T09:29:22.4777090Z ✓ swiftlint treats a case-variant reported path exactly as this filesystem does 51ms +2026-10-07T09:29:22.4778280Z ✓ ktlint treats a case-variant reported path exactly as this filesystem does 68ms +2026-10-07T09:29:22.4779428Z ✓ hadolint treats a case-variant reported path exactly as this filesystem does 57ms +2026-10-07T09:29:22.4780618Z ✓ actionlint treats a case-variant reported path exactly as this filesystem does 47ms +2026-10-07T09:29:22.4781751Z ✓ spellcheck treats a case-variant reported path exactly as this filesystem does 43ms +2026-10-07T09:29:22.4782967Z ✓ sqlfluff treats a case-variant reported path exactly as this filesystem does 72ms +2026-10-07T09:29:22.4784351Z ✓ vale treats a case-variant reported path exactly as this filesystem does 55ms +2026-10-07T09:29:22.4785508Z ✓ markdownlint treats a case-variant reported path exactly as this filesystem does 74ms +2026-10-07T09:29:22.4786603Z ✓ php-lint treats a case-variant reported path exactly as this filesystem does 54ms +2026-10-07T09:29:22.4787804Z ✓ diagnostic-parsers treats a case-variant reported path exactly as this filesystem does 70ms +2026-10-07T09:29:23.0165562Z ✓  default  tests/config/workflow-pull-request-reachability.test.ts (96 tests) 150ms +2026-10-07T09:29:33.9894197Z [sweep-kit] D:\a\pi-lens\pi-lens\tests\support\__census_gap_probe__.ts vanished between the walk and the read; skipped (#3082) +2026-10-07T09:29:33.9895444Z [sweep-kit] D:\a\pi-lens\pi-lens\tests\support\appears_later.ts vanished between the walk and the read; skipped (#3082) +2026-10-07T09:29:34.0220840Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:29:34.0223438Z ✓  default  tests/config/targeted-tests-workflow.test.ts (52 tests) 13664ms +2026-10-07T09:29:34.0224578Z ✓ targeted advisory workflow contract (#3215) (4) +2026-10-07T09:29:34.0225922Z ✓ pins exactly the tree scanners the census discovers (#3426) 13585ms +2026-10-07T09:29:34.8463931Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:29:34.8466639Z ✓  default  tests/config/reported-path-attribution-sweep.test.ts (9 tests) 480ms +2026-10-07T09:29:41.6906690Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:29:41.9648069Z ✓  default  tests/config/git-fixture-governance.test.ts (30 tests) 6476ms +2026-10-07T09:29:41.9800937Z ✓ real Git fixture governance (30) +2026-10-07T09:29:41.9803585Z ✓ routes every direct Git spawn through git-fixture-env 2719ms +2026-10-07T09:29:41.9805336Z ✓ pins no historical commit-ish in any tests/ Git spawn 2939ms +2026-10-07T09:29:56.6102873Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:29:56.6250805Z [mem-file] peakRssMb=709 heapUsedMb=58 externalMb=2 tests/config/degradation-kind-coverage.test.ts +2026-10-07T09:29:59.4921884Z ❯  default  tests/clients/review-graph.service.test.ts (33 tests | 9 failed) 35455ms +2026-10-07T09:29:59.5728681Z ❯ review graph service (28) +2026-10-07T09:29:59.5940740Z  × builds a TS graph and surfaces importers/callers without duplicate edges 391ms +2026-10-07T09:29:59.6252263Z ✓ extracts production call edges for every JavaScript-family extension 268ms +2026-10-07T09:29:59.6456785Z ✓ excludes test files from the graph (#260) 333ms +2026-10-07T09:29:59.6635437Z ✓ getGraphSourceFiles matches the graph's canonical file set 339ms +2026-10-07T09:29:59.6647528Z ✓ memoizes raw source spellings across consecutive builds (#2072) 302ms +2026-10-07T09:29:59.6650028Z ✓ recomputes a recreated mixed-case spelling after a missing walk entry (#2072 F2/F3) 3878ms +2026-10-07T09:29:59.6651731Z ✓ keeps an 8,000-file one-file rebuild within the changed-file bound (#2072 AC2) 13589ms +2026-10-07T09:29:59.6654452Z ✓ keeps a walk's normalize counter stable across workspace eviction (#2072 F4) 937ms +2026-10-07T09:29:59.6656328Z ✓ case-variant workspace clears invalidate the source-path memo, on win32 only (#2072 F5) 351ms +2026-10-07T09:29:59.6657890Z ✓ getCachedReviewGraph returns a shared, indexed object — no per-call clone (#260) 559ms +2026-10-07T09:29:59.6659818Z ✓ isReviewGraphMigrationNeeded: stale version → true, current/absent → false (#260) 1268ms +2026-10-07T09:29:59.6665825Z ✓ refs #655: a v3 snapshot (pre-collision-safe-ID scheme) is detected as stale and safely rebuilt, never misread 953ms +2026-10-07T09:29:59.6668115Z ✓ refs #694: a v4 snapshot (pre-twin-preference, compiled-artifact edges) is detected as stale and safely rebuilt 714ms +2026-10-07T09:29:59.6669536Z ✓ refs #655: an unresolved bare-name call stays 'name-only'; a unique-name call resolves 'exact' 262ms +2026-10-07T09:29:59.6670746Z ✓ builds file-level graphs for python/go/rust/ruby without crashing 1530ms +2026-10-07T09:29:59.6671918Z ✓ surfaces references-edge neighbors for non-jsts languages (Python) 351ms +2026-10-07T09:29:59.6673120Z  × flags cycle-adjacent files and suppresses low-signal output 602ms +2026-10-07T09:29:59.6674355Z  × updates cached graph incrementally when only the changed file mtime shifts 578ms +2026-10-07T09:29:59.6675892Z ✓ skips full graph builds when source count exceeds the safety cap 390ms +2026-10-07T09:29:59.6677353Z ✓ logs a review_graph_size_skip latency phase on truncation (#775 R3: no silent caps) 232ms +2026-10-07T09:29:59.6678429Z ✓ stops the size-gate walk at cap+1 visited entries 479ms +2026-10-07T09:29:59.6679506Z ✓ keeps the complete under-cap walk and does not report a near miss 744ms +2026-10-07T09:29:59.6680665Z ✓ logs a distinct near-miss event within 5% of the cap 555ms +2026-10-07T09:29:59.6681822Z ✓ does not skip when non-graph files (JSON/MD) push the raw count over the cap 554ms +2026-10-07T09:29:59.6683113Z  × rebuilds indexes on workspace cache hit so impact cascade still works 435ms +2026-10-07T09:29:59.6684297Z ✓ skips graph construction when cwd IS $HOME, without walking it (#622) 1ms +2026-10-07T09:29:59.6685684Z ✓ does not skip a normal project root that merely lives UNDER home (#622) 440ms +2026-10-07T09:29:59.6687072Z  × resolves a tree-sitter language import to a real file→file edge (#249) 546ms +2026-10-07T09:29:59.6688145Z ❯ review graph: ignore-gated node creation (#694) (2) +2026-10-07T09:29:59.6689455Z  × never materializes an untracked-AND-gitignored import target as a file node, but keeps a tracked one matching the same pattern 1537ms +2026-10-07T09:29:59.6690991Z  × degrades to unfiltered (no git binary reachable in the repo) without throwing 538ms +2026-10-07T09:29:59.6692182Z ❯ review graph - workspace-package bare specifiers (#775) (3) +2026-10-07T09:29:59.6693326Z  × resolves a bare specifier pointing at a sibling workspace package to a file-level import edge 584ms +2026-10-07T09:29:59.6694594Z  × resolves a workspace-package subpath import to a file within the package 546ms +2026-10-07T09:29:59.6696555Z ✓ a non-workspace bare specifier stays an external node, not a fabricated file edge 651ms +2026-10-07T09:29:59.7471530Z ✓  default  tests/config/degradation-kind-coverage.test.ts (20 tests) 14348ms +2026-10-07T09:29:59.7473275Z ✓ DegradationKind union coverage (#3071, #3140) (3) +2026-10-07T09:29:59.7479581Z ✓ declares every kind literal emitted at a recordDegradationOnce / incrementDegradationCount / logDurableDegradation call site, plus LEDGER_FILE's own read-time fold emitters, and never silently drops an identifier-valued kind 14326ms +2026-10-07T09:30:01.3686826Z ❯  default  tests/config/global-dir-probe-redirect.test.ts (15 tests | 3 failed | 1 skipped) 1120ms +2026-10-07T09:30:01.3688759Z ❯ getGlobalPiLensLogDir probe-home redirect (#2506) (6) +2026-10-07T09:30:01.3696870Z  × redirects a worktree probe's LOGS while leaving tools/registry on the real home 190ms +2026-10-07T09:30:01.3698306Z ✓ redirects a probe whose cwd is under os.tmpdir() with no worktree segment 183ms +2026-10-07T09:30:01.3699600Z ✓ PILENS_PROBE=1 forces the redirect from an ordinary checkout neither branch would catch 161ms +2026-10-07T09:30:01.3700786Z ✓ leaves an ordinary checkout alone when nothing marks it as a probe 175ms +2026-10-07T09:30:01.3701826Z ✓ never claims the SHARED .claude/worktrees parent as a probe home 169ms +2026-10-07T09:30:01.3702808Z ↓ resolves a symlinked TMPDIR to its real target before the containment check +2026-10-07T09:30:01.3703781Z ✓ probe-home resolution is memoized per process (#2506 F5) (2) +2026-10-07T09:30:01.3704635Z ✓ resolves once and holds that answer across a process.chdir() 3ms +2026-10-07T09:30:01.3705532Z ✓ an explicit PI_LENS_HOME pin still wins over the redirect 1ms +2026-10-07T09:30:01.3706295Z ✓ the probe home is gitignored (#2506 F2) (2) +2026-10-07T09:30:01.3707367Z ✓ git check-ignore accepts a file under .pi-lens-probe-home/ 47ms +2026-10-07T09:30:01.3708287Z ✓ the ignore rule is anchored to the directory, not a loose glob 1ms +2026-10-07T09:30:01.3709174Z ❯ a VITEST-marked process with no PI_LENS_HOME pin (#2516 round 2) (1) +2026-10-07T09:30:01.3710156Z  × still redirects to the probe home rather than the real home 173ms +2026-10-07T09:30:01.3711056Z ✓ the log-dir resolver is reachable without a cycle (#2516 round 2) (2) +2026-10-07T09:30:01.3711992Z ✓ probe-home-state.ts's transitive imports never reach file-utils.ts 4ms +2026-10-07T09:30:01.3712948Z ✓ file-utils.ts neither defines nor re-exports getGlobalPiLensLogDir 1ms +2026-10-07T09:30:01.3713852Z ❯ the recorded resolution is visible through the leaf's reader (#2506) (2) +2026-10-07T09:30:01.3714719Z ✓ stores the redirect the resolver returned 1ms +2026-10-07T09:30:01.3715660Z  × describes the actual trigger, not a removed test-mode gate 5ms +2026-10-07T09:30:03.3359841Z stdout | tests/clients/tool-cwd.test.ts > resolveToolCwd (#2777) > preserves every registry language root through the shared seam +2026-10-07T09:30:03.3463092Z clojure: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\clojure === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\clojure +2026-10-07T09:30:03.3464672Z cmake: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\cmake === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\cmake +2026-10-07T09:30:03.3469098Z cpp: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\cpp === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\cpp +2026-10-07T09:30:03.3470322Z csharp: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\csharp === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\csharp +2026-10-07T09:30:03.3471844Z css: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\css === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\css +2026-10-07T09:30:03.3472999Z cue: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\cue === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\cue +2026-10-07T09:30:03.3474265Z dart: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\dart === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\dart +2026-10-07T09:30:03.3475674Z elixir: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\elixir === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\elixir +2026-10-07T09:30:03.3478807Z fish: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\fish === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\fish +2026-10-07T09:30:03.3480213Z fsharp: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\fsharp === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\fsharp +2026-10-07T09:30:03.3481602Z gleam: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\gleam === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\gleam +2026-10-07T09:30:03.3482913Z go: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\go === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\go +2026-10-07T09:30:03.3484155Z go-mod: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\go-mod === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\go-mod +2026-10-07T09:30:03.3485582Z haskell: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\haskell === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\haskell +2026-10-07T09:30:03.3486871Z html: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\html === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\html +2026-10-07T09:30:03.3488132Z java: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\java === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\java +2026-10-07T09:30:03.3489394Z json: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\json === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\json +2026-10-07T09:30:03.3490694Z kotlin: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\kotlin === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\kotlin +2026-10-07T09:30:03.3492009Z lua: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\lua === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\lua +2026-10-07T09:30:03.3493235Z nix: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\nix === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\nix +2026-10-07T09:30:03.3494522Z ocaml: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\ocaml === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\ocaml +2026-10-07T09:30:03.3496157Z php: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\php === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\php +2026-10-07T09:30:03.3497717Z powershell: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\powershell === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\powershell +2026-10-07T09:30:03.3499091Z prisma: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\prisma === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\prisma +2026-10-07T09:30:03.3500467Z python: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\python === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\python +2026-10-07T09:30:03.3502080Z ron: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\ron === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\ron +2026-10-07T09:30:03.3503379Z ruby: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\ruby === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\ruby +2026-10-07T09:30:03.3504731Z rust: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\rust === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\rust +2026-10-07T09:30:03.3506125Z svelte: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\svelte === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\svelte +2026-10-07T09:30:03.3507553Z swift: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\swift === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\swift +2026-10-07T09:30:03.3509437Z terraform: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\terraform === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\terraform +2026-10-07T09:30:03.3511047Z toml: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\toml === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\toml +2026-10-07T09:30:03.3512361Z typescript: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\typescript === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\typescript +2026-10-07T09:30:03.3513702Z vue: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\vue === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\vue +2026-10-07T09:30:03.3514964Z yaml: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\yaml === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\yaml +2026-10-07T09:30:03.3516504Z zig: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\zig === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\zig +2026-10-07T09:30:03.3517087Z +2026-10-07T09:30:04.3895665Z ✓  default  tests/clients/tool-cwd.test.ts (29 tests) 2092ms +2026-10-07T09:30:05.3581566Z ✓  default  tests/config/bounded-eviction-idiom-sweep.test.ts (10 tests) 15ms +2026-10-07T09:30:13.9568724Z vi-mock-export-sweep: 0 warning row(s) +2026-10-07T09:30:18.9285718Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:30:18.9387807Z [mem-file] peakRssMb=1049 heapUsedMb=133 externalMb=2 tests/config/vi-mock-export-sweep.test.ts +2026-10-07T09:30:18.9463056Z ✓  default  tests/config/vi-mock-export-sweep.test.ts (58 tests | 1 skipped) 59318ms +2026-10-07T09:30:18.9524523Z ✓ #2281 whole-module vi.mock export ratchet (48) +2026-10-07T09:30:18.9604520Z ✓ keeps every latency-logger mock on the real export surface 11530ms +2026-10-07T09:30:18.9645598Z ✓ reports every omitted production export and warns on newly omitted exports 42741ms +2026-10-07T09:30:18.9721225Z ✓ baseline entries remain live 4946ms +2026-10-07T09:30:22.5777710Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:30:22.6196060Z ✓  default  tests/config/path-key-fold-sweep.test.ts (19 tests) 3154ms +2026-10-07T09:30:22.6431955Z ✓ path transformation single-source-of-truth (#1193) (3) +2026-10-07T09:30:22.6638661Z ✓ has no unpinned raw separator fold outside the canonical leaf 1564ms +2026-10-07T09:30:22.6810043Z ✓ has no unpinned path-key case fold outside the canonical leaf 1555ms +2026-10-07T09:30:34.7723430Z ❯  default  tests/clients/installer/installer-lifecycle.integration.test.ts (10 tests | 2 failed) 29172ms +2026-10-07T09:30:34.7725206Z ❯ installer process lifecycle (#945) (8) +2026-10-07T09:30:34.7726158Z ✓ kills a fake npm's complete Windows process tree on timeout 2994ms +2026-10-07T09:30:34.7727230Z ✓ serializes two processes so exactly one package-manager install runs 5201ms +2026-10-07T09:30:34.7728323Z ✓ reports disabled installation and never spawns the package manager 2228ms +2026-10-07T09:30:34.7729363Z ✓ keeps a freshly installed intelephense and resolves it (#2722) 3178ms +2026-10-07T09:30:34.7730761Z  × keeps a spawn-verified install whose probe came back inconclusive (#2722) 4354ms +2026-10-07T09:30:34.7731939Z  × deletes an inconclusive install whose tree is NOT intact (R2-F2) 4100ms +2026-10-07T09:30:34.7732997Z ✓ never records a partial install as succeeded (R2-F1) 5917ms +2026-10-07T09:30:34.7733930Z ✓ ordinary Vitest execution has tool installation disabled 0ms +2026-10-07T09:30:34.7734666Z ✓ install lock takeover (#3476) (2) +2026-10-07T09:30:34.7735480Z ✓ admits one of two installers taking over a dead installer's lock 995ms +2026-10-07T09:30:34.7736412Z ✓ releases its lock when the process exits holding it 200ms +2026-10-07T09:30:35.7748723Z ✓  default  tests/config/sync-child-process-timeout.test.ts (7 tests) 13ms +2026-10-07T09:30:36.0105021Z [mem-file] peakRssMb=888 heapUsedMb=63 externalMb=2 tests/config/bounded-container-guard.test.ts +2026-10-07T09:30:36.0158357Z ✓  default  tests/config/bounded-container-guard.test.ts (14 tests) 25ms +2026-10-07T09:30:36.1059611Z ✓  default  tests/config/ci-infra-kill-rerun-gate.test.ts (34 tests) 32ms +2026-10-07T09:30:36.4755258Z ✓  default  tests/config/install-smoke-gates.test.ts (47 tests) 34ms +2026-10-07T09:30:36.8828401Z fatal: Not a valid object name origin/master +2026-10-07T09:30:36.9144004Z fatal: Not a valid object name origin/master +2026-10-07T09:30:36.9358967Z fatal: Not a valid object name origin/master +2026-10-07T09:30:36.9515621Z ✓  default  tests/config/tla-coverage-governance.test.ts (37 tests) 149ms +2026-10-07T09:30:37.4859584Z stdout | tests/config/worker-budget.test.ts +2026-10-07T09:30:37.4878623Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:30:37.4879562Z +2026-10-07T09:30:37.5018440Z stdout | tests/config/worker-budget.test.ts > vitest.config.ts wiring (#2042) > takes both worker caps from the resolver under CI +2026-10-07T09:30:37.5020041Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:30:37.5020740Z +2026-10-07T09:30:37.5037798Z stdout | tests/config/worker-budget.test.ts > vitest.config.ts wiring (#2042) > gives every project the derived heap ceiling under CI +2026-10-07T09:30:37.5039163Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:30:37.5039691Z +2026-10-07T09:30:37.5257064Z ✓  default  tests/config/worker-budget.test.ts (27 tests) 23ms +2026-10-07T09:30:37.7242370Z ✓  default  tests/config/sweep-floor-coverage.test.ts (10 tests) 1360ms +2026-10-07T09:30:37.7243535Z ✓ registered-or-fail sweep floors (1) +2026-10-07T09:30:37.7249638Z ✓ every sweep-shaped test uses sweep-kit or declares a reason 1349ms +2026-10-07T09:30:38.1072347Z ✓  default  tests/config/tool-smoke-notify-gate.test.ts (37 tests) 30ms +2026-10-07T09:30:38.3287433Z 9:30:38 AM [vite] (ssr) warning: invalid import "../../clients/${file.replace(/\.ts$/, ".js")}". A file extension must be included in the static part of the import. For example: import(`./foo/${bar}.js`). +2026-10-07T09:30:38.3289116Z Plugin: vite:dynamic-import-vars +2026-10-07T09:30:38.3289982Z File: D:/a/pi-lens/pi-lens/tests/config/session-scope-sweep.test.ts +2026-10-07T09:30:38.6960434Z [mem-file] peakRssMb=1373 heapUsedMb=230 externalMb=2 tests/config/lsp-service-double-sweep.test.ts +2026-10-07T09:30:40.4058669Z ✓  default  tests/config/lsp-service-double-sweep.test.ts (28 tests) 15374ms +2026-10-07T09:30:40.8091947Z ✓  default  tests/config/docs-only-ci-skip.test.ts (18 tests) 78ms +2026-10-07T09:30:40.9263449Z ✓  default  tests/config/session-scope-sweep.test.ts (7 tests) 1347ms +2026-10-07T09:30:40.9265724Z ✓ session-scope ratchet (#3609 S8) (5) +2026-10-07T09:30:40.9267159Z ✓ admits no new module-level state in a conversation-scoped file (item 2.1) 690ms +2026-10-07T09:30:40.9268715Z ✓ session stores (#3609 §3.8, #3612) (2) +2026-10-07T09:30:40.9275727Z ✓ registers every declared session store, and declares every registered one (item 1) 567ms +2026-10-07T09:30:41.1819731Z ✓  default  tests/clients/read-guard-path-normalization.test.ts (11 tests | 3 skipped) 29ms +2026-10-07T09:30:41.6528023Z ✓  default  tests/config/lsp-gate-population.test.ts (13 tests) 22ms +2026-10-07T09:30:41.8823413Z ✓  default  tests/config/lsp-idle-eviction-measurement.test.ts (16 tests) 31ms +2026-10-07T09:30:42.0950140Z ✓  default  tests/config/release-npm-pin-gate.test.ts (10 tests) 23ms +2026-10-07T09:30:42.6048544Z stdout | tests/config/lsp-spawn-heavy-coverage.test.ts +2026-10-07T09:30:42.6354114Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:30:42.6441208Z +2026-10-07T09:30:42.8697584Z stdout | tests/config/test-shard-assignment.test.ts +2026-10-07T09:30:42.8698926Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:30:42.8700560Z +2026-10-07T09:30:43.7511461Z ✓  default  tests/config/test-shard-assignment.test.ts (16 tests) 856ms +2026-10-07T09:30:43.9690478Z ✓  default  tests/config/lsp-spawn-heavy-coverage.test.ts (4 tests) 1255ms +2026-10-07T09:30:43.9691639Z ✓ lsp-spawn-heavy Vitest project coverage (4) +2026-10-07T09:30:43.9710500Z ✓ phases or documents every test that spawns a real LSP child 1245ms +2026-10-07T09:30:44.1870519Z ✓  default  tests/config/stryker-nightly-workflow.test.ts (24 tests) 85ms +2026-10-07T09:30:44.4705030Z ✓  default  tests/config/worker-peak-rss-budget.test.ts (13 tests) 17ms +2026-10-07T09:30:45.3764126Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:30:45.3942052Z ✓  default  tests/config/lsp-advertised-capability-senders.test.ts (5 tests) 47ms +2026-10-07T09:30:54.5561658Z ✓  default  tests/mcp/turn-end-route.smoke.test.ts (10 tests) 9808ms +2026-10-07T09:30:54.5887175Z ✓ warm turn-end IPC route (real spawn) (10) +2026-10-07T09:30:54.6037571Z ✓ still serves an untagged analyze request on a server that knows the route 8602ms +2026-10-07T09:30:55.0557924Z ✓  default  tests/config/merge-queue-workflows.test.ts (8 tests) 109ms +2026-10-07T09:30:55.4234020Z ✓  default  tests/config/label-manifest-coverage.test.ts (2 tests) 19ms +2026-10-07T09:30:55.6674803Z ✓  default  tests/config/lsp-clean-behavior-census.test.ts (5 tests) 13ms +2026-10-07T09:30:55.8861482Z ✓  default  tests/config/install-smoke-pnpm-global-config.test.ts (2 tests) 9ms +2026-10-07T09:30:56.1432818Z ✓  default  tests/config/sharded-aggregate-failure-policy.test.ts (24 tests) 18ms +2026-10-07T09:30:57.0247169Z ❯  default  tests/clients/dispatch/runners/go-vet.test.ts (10 tests | 1 failed) 630ms +2026-10-07T09:30:57.0248519Z ❯ go-vet runner (8) +2026-10-07T09:30:57.0249121Z ✓ skips when go is not available 184ms +2026-10-07T09:30:57.0250250Z  × vets the package containing the file from the module root (not the file in isolation) 18ms +2026-10-07T09:30:57.0251243Z ✓ vets '.' for a file in the module-root package 2ms +2026-10-07T09:30:57.0252085Z ✓ keeps diagnostics for the edited file but drops sibling-file lines 5ms +2026-10-07T09:30:57.0253033Z ✓ returns succeeded when only a sibling file has issues 2ms +2026-10-07T09:30:57.0253869Z ✓ returns succeeded on a clean package (no output) 2ms +2026-10-07T09:30:57.0254750Z ✓ attributes a './'-prefixed module-root path to the edited file 2ms +2026-10-07T09:30:57.0255594Z ✓ attributes an absolute output path to the edited file 2ms +2026-10-07T09:30:57.0256337Z ✓ go-vet path identity through dispatch (#3277) (2) +2026-10-07T09:30:57.0257356Z ✓ matches a go vet diagnostic whose reported path spells the separator the other way (#3277) 358ms +2026-10-07T09:30:57.0258538Z ✓ treats a case-variant go vet path exactly as this filesystem does (#3277) 51ms +2026-10-07T09:30:57.2848711Z ✓  default  tests/config/schema-stability-tiers.test.ts (63 tests) 40ms +2026-10-07T09:30:58.2686727Z ✓  default  tests/clients/ruff-client-reported-path.test.ts (4 tests) 686ms +2026-10-07T09:30:58.2778421Z ✓ ruff reported-path attribution (#3286) (4) +2026-10-07T09:30:58.2800500Z ✓ counts the absolute filename ruff echoes back as the dispatched file's own (#3286) 524ms +2026-10-07T09:30:59.4359413Z stdout | tests/config/knip-entry-coverage.test.ts +2026-10-07T09:30:59.4614622Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:30:59.4758996Z +2026-10-07T09:31:01.9805080Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:02.0020029Z ✓  default  tests/config/knip-entry-coverage.test.ts (2 tests) 2320ms +2026-10-07T09:31:02.0058785Z ✓ knip entry coverage (#2698) (2) +2026-10-07T09:31:02.0195674Z ✓ covers every test file admitted by the Vitest and Windows lanes (#2837) 2183ms +2026-10-07T09:31:02.5867234Z stdout | tests/config/timing-sensitive-coverage.test.ts +2026-10-07T09:31:02.5868541Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:31:02.5869603Z +2026-10-07T09:31:02.8159262Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:02.8330891Z ✓  default  tests/config/timing-sensitive-coverage.test.ts (3 tests) 171ms +2026-10-07T09:31:04.4812445Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:04.4816246Z ✓  default  tests/config/vacuous-skip-coverage.test.ts (5 tests) 1350ms +2026-10-07T09:31:04.4818114Z ✓ tests skip visibly instead of returning early (#2089) (5) +2026-10-07T09:31:04.4819438Z ✓ no test body returns before it asserts or skips 1327ms +2026-10-07T09:31:06.1761072Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:06.1843636Z ❯  default  tests/config/result-contract-governance.test.ts (5 tests | 1 failed) 25471ms +2026-10-07T09:31:06.1856225Z ❯ result contract across registered tool surfaces (5) +2026-10-07T09:31:06.1895974Z  × keeps every paired registry tool's real rendered text identical 23768ms +2026-10-07T09:31:06.1900041Z ✓ covers every pi-only registry tool through pi and proves MCP absence 77ms +2026-10-07T09:31:06.1901750Z ✓ bounds an oversized pi result through the real index.ts wrapper 288ms +2026-10-07T09:31:06.1927424Z ✓ stamps exact delivered bytes on a normal result through both surfaces 147ms +2026-10-07T09:31:06.1931208Z ✓ sums the turn's tool calls onto the real cache_usage row (refs #2800 item 7) 52ms +2026-10-07T09:31:06.4775779Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:06.4777613Z ✓  default  tests/config/global-only-non-flag-key-registry.test.ts (2 tests) 26ms +2026-10-07T09:31:07.4422355Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:07.4424560Z ✓  default  tests/config/shell-dialect-ownership-sweep.test.ts (5 tests) 611ms +2026-10-07T09:31:07.4425964Z ✓ #3968 class sweep — dialect/capability ownership over the runners (5) +2026-10-07T09:31:07.4427248Z ✓ the covers seam consults the builtin facts table only for non-custom primaries (F2) 379ms +2026-10-07T09:31:07.7902134Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:07.7903699Z ✓  default  tests/config/workflow-shell-portability.test.ts (22 tests) 86ms +2026-10-07T09:31:08.1568171Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:08.1570963Z ✓  default  tests/config/workflow-graph-retired-hops.test.ts (10 tests) 17ms +2026-10-07T09:31:08.4589136Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:08.4727979Z ✓  default  tests/config/strategy-marker-pair-coverage.test.ts (5 tests) 27ms +2026-10-07T09:31:09.6633206Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:09.6635314Z ✓  default  tests/config/escape-regexp-fold-sweep.test.ts (2 tests) 4916ms +2026-10-07T09:31:09.6636641Z ✓ escapeRegExp single-source-of-truth (#2558) (2) +2026-10-07T09:31:09.6637799Z ✓ has no local escaping-helper definition outside the canonical leaf 4909ms +2026-10-07T09:31:09.9488553Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:09.9644504Z ✓  default  tests/config/codeql-workflow.test.ts (8 tests) 82ms +2026-10-07T09:31:10.1869044Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:10.1871170Z ✓  default  tests/config/advisory-tool-workflow.test.ts (14 tests) 16ms +2026-10-07T09:31:10.5388497Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:10.5390658Z ✓  default  tests/config/workflow-concurrency-edit-safety.test.ts (7 tests) 90ms +2026-10-07T09:31:10.8532654Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:10.8534499Z ✓  default  tests/config/covers-config-claim-sweep.test.ts (4 tests) 36ms +2026-10-07T09:31:12.3619741Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:12.3621335Z ✓  default  tests/config/files-touched-bus-conformance.test.ts (4 tests) 1221ms +2026-10-07T09:31:12.3622283Z ✓ pilens:files:touched bus surface (#1966) (4) +2026-10-07T09:31:12.3623170Z ✓ keeps the event constant and declared publisher list in conformance 859ms +2026-10-07T09:31:12.3625226Z ✓ keeps the event subscriber list in conformance 355ms +2026-10-07T09:31:12.6148285Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:12.6159186Z ✓  default  tests/config/windows-vitest-workflow.test.ts (6 tests) 48ms +2026-10-07T09:31:13.7744715Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:13.7746343Z ✓  default  tests/config/win32-gate-lane.test.ts (5 tests) 5038ms +2026-10-07T09:31:13.7747606Z ✓ win32 gate lane governance (#2536) (5) +2026-10-07T09:31:13.7748352Z ✓ names the lane for every Windows-only declarative gate 891ms +2026-10-07T09:31:13.7749229Z ✓ keeps the workflow population and execution filter wired 3167ms +2026-10-07T09:31:13.7750147Z ✓ keeps every explicit Windows admission live and reasoned (#3277) 960ms +2026-10-07T09:31:15.3145547Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:15.3147394Z ✓  default  tests/config/vi-domock-undo.test.ts (7 tests) 1178ms +2026-10-07T09:31:15.3148413Z ✓ vi.doMock is undone in multi-test files (#2883) (1) +2026-10-07T09:31:15.3149301Z ✓ flags no vi.doMock specifier a multi-test file never undoes 1170ms +2026-10-07T09:31:15.5846902Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:15.5848705Z ✓  default  tests/config/unit-tests-shard-workflow.test.ts (5 tests) 48ms +2026-10-07T09:31:15.8391137Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:15.8392875Z ✓  default  tests/config/pi-lens-config-schema.test.ts (9 tests) 21ms +2026-10-07T09:31:16.3148385Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:16.3305336Z ✓  default  tests/config/dependency-boundaries.test.ts (3 tests) 3488ms +2026-10-07T09:31:16.3306386Z ✓ dependency boundary governance (3) +2026-10-07T09:31:16.3307251Z ✓ keeps the eager allowlist equal to index.ts static client imports 3470ms +2026-10-07T09:31:16.7760391Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:16.7987201Z ✓  default  tests/config/test-history-workflow.test.ts (5 tests) 685ms +2026-10-07T09:31:16.7988445Z ✓ #3215 durable test-history workflow contract (5) +2026-10-07T09:31:16.7994436Z ✓ records the run attempt the rollup keys re-runs by 631ms +2026-10-07T09:31:17.2513211Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:17.2687081Z ✓  default  tests/config/process-table-seam.test.ts (2 tests) 661ms +2026-10-07T09:31:17.2689973Z ✓ process-table seam (#2443) (2) +2026-10-07T09:31:17.2690881Z ✓ keeps the platform process-table query in exactly one file 653ms +2026-10-07T09:31:17.2692026Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:17.2693350Z ✓  default  tests/config/github-token-write-gates.test.ts (8 tests) 184ms +2026-10-07T09:31:17.4764570Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:17.4766692Z ✓  default  tests/config/lsp-first-publish-census.test.ts (4 tests) 10ms +2026-10-07T09:31:17.5059153Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:17.5089949Z ✓  default  tests/config/engines-node-floor.test.ts (3 tests) 19ms +2026-10-07T09:31:19.0270465Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:19.0430770Z ✓  default  tests/config/diagnostics-bus-conformance.test.ts (4 tests) 1242ms +2026-10-07T09:31:19.0431970Z ✓ pilens:diagnostics bus surface (#2079) (4) +2026-10-07T09:31:19.0432912Z ✓ keeps the event constant and declared publisher list in conformance 870ms +2026-10-07T09:31:19.0434043Z ✓ keeps the event subscriber list in conformance 364ms +2026-10-07T09:31:19.7885972Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:19.7897384Z ✓  default  tests/config/tool-roster-budget.test.ts (2 tests) 801ms +2026-10-07T09:31:19.8993489Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:19.8995145Z ✓  default  tests/config/module-instance-coverage.test.ts (4 tests) 585ms +2026-10-07T09:31:19.8996188Z ✓ test imports bind the compiled module instance (#1565) (4) +2026-10-07T09:31:19.8997157Z ✓ no test reaches a build-compiled module through a .ts specifier 318ms +2026-10-07T09:31:20.0263195Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:20.0264988Z ✓  default  tests/config/lsp-fixture-home-workflow-pin.test.ts (12 tests) 15ms +2026-10-07T09:31:20.3437565Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:20.3607092Z ✓  default  tests/config/tla-models-shard-workflow.test.ts (9 tests) 133ms +2026-10-07T09:31:20.8034406Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:20.8192303Z ✓  default  tests/config/module-instance-binding.test.ts (1 test) 14ms +2026-10-07T09:31:21.1999152Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:21.2001064Z ✓  default  tests/config/latency-logger-mock-shape.test.ts (2 tests) 893ms +2026-10-07T09:31:21.2001958Z ✓ latency-logger mock shape (#2281) (2) +2026-10-07T09:31:21.2002678Z ✓ derives every factory and requires a partial import 886ms +2026-10-07T09:31:21.2482219Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:21.2483969Z ✓  default  tests/config/lsp-idle-eviction-registry.test.ts (4 tests) 13ms +2026-10-07T09:31:21.4064182Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:21.4065619Z ✓  default  tests/config/lane-mechanics-contract.test.ts (6 tests) 11ms +2026-10-07T09:31:21.6285078Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:21.6286744Z ✓  default  tests/config/label-sync-validation.test.ts (1 test) 14ms +2026-10-07T09:31:21.7435819Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:21.7438519Z ✓  default  tests/clients/dispatch/runners/elixir-parser.test.ts (5 tests) 14ms +2026-10-07T09:31:21.9140885Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:21.9301527Z ❯  default  tests/config/turn-end-lane-boundaries.test.ts (3 tests | 1 failed) 12ms +2026-10-07T09:31:21.9303028Z ❯ turn-end lane boundaries (#1892) (3) +2026-10-07T09:31:21.9332533Z  × finds the lane interface and at least one lane module 5ms +2026-10-07T09:31:21.9335543Z ✓ no lane pushes into a turn tier — the tag scan only reads the composer 1ms +2026-10-07T09:31:21.9337262Z ✓ no lane calls the freshness gate itself — the pass is per delivery 0ms +2026-10-07T09:31:22.2299509Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:22.2460160Z ✓  default  tests/config/script-entry-portability.test.ts (2 tests) 171ms +2026-10-07T09:31:22.4364466Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:22.4389861Z ✓  default  tests/config/tool-smoke-fish-provisioning.test.ts (4 tests) 74ms +2026-10-07T09:31:22.4842080Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:22.4843866Z ✓  default  tests/config/config-core-schema-stability.test.ts (11 tests) 12ms +2026-10-07T09:31:22.6742953Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:22.6901423Z ✓  default  tests/config/dmts-export-drift.test.ts (2 tests) 24ms +2026-10-07T09:31:23.0393295Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:23.0394439Z ✓  default  tests/config/runner-marker-containment.test.ts (1 test) 9ms +2026-10-07T09:31:23.5619786Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:23.5621343Z ✓  default  tests/clients/path-utils-win32-absolute.test.ts (11 tests) 851ms +2026-10-07T09:31:23.5622210Z ✓ native Windows lane selection (#1506) (1) +2026-10-07T09:31:23.5622899Z ✓ selects this file for the Windows Vitest subset 840ms +2026-10-07T09:31:23.8009119Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:23.8011143Z ✓  default  tests/config/github-workflow-permissions.test.ts (2 tests) 23ms +2026-10-07T09:31:25.1972023Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:25.1973866Z ✓  default  tests/config/parameter-schema-budget.test.ts (3 tests) 14ms +2026-10-07T09:31:26.0560440Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:26.0576193Z ✓  default  tests/config/tool-registry-governance.test.ts (2 tests) 1538ms +2026-10-07T09:31:26.0577895Z ✓ model-facing tool registry governance (#2800) (2) +2026-10-07T09:31:26.0579118Z ✓ applies registry filtering to an MCP-only tool and preserves lifecycle tools 765ms +2026-10-07T09:31:26.3714240Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:26.3716869Z ✓  default  tests/config/agents-governance.test.ts (4 tests) 40ms +2026-10-07T09:31:26.8946513Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:26.8948233Z ✓  default  tests/config/stryker-diff-exclusions.test.ts (2 tests) 199ms +2026-10-07T09:31:27.1162875Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:27.1320741Z ✓  default  tests/config/close-keyword-workflow.test.ts (2 tests) 16ms +2026-10-07T09:31:27.5291853Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:27.5293754Z ✓  default  tests/config/installer-dev-dependency-pin.test.ts (1 test) 10ms +2026-10-07T09:31:27.5704361Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:27.5707554Z ✓  default  tests/config/parameter-schema-structure.test.ts (1 test) 802ms +2026-10-07T09:31:27.7358231Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:27.7516991Z ✓  default  tests/config/adr-log.test.ts (2 tests) 11ms +2026-10-07T09:31:28.0217206Z stdout | tests/config/real-harness-lane.test.ts +2026-10-07T09:31:28.0218480Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:31:28.0219147Z +2026-10-07T09:31:28.0219902Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:28.0470123Z ✓  default  tests/config/real-harness-lane.test.ts (1 test) 11ms +2026-10-07T09:31:28.0541699Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:28.0546140Z ✓  default  tests/config/vitest-lane-order.test.ts (1 test) 14ms +2026-10-07T09:31:28.2440207Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:28.2600386Z ✓  default  tests/config/tracking-issue-workflow-contract.test.ts (2 tests) 11ms +2026-10-07T09:31:28.3390633Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:31:28.3391750Z ✓  default  tests/config/degradation-kind-order.test.ts (1 test) 8ms +2026-10-07T09:32:14.3135104Z (node:2264) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 11) +2026-10-07T09:32:14.3136006Z (Use `node --trace-warnings ...` to show where the warning was created) +2026-10-07T09:32:34.3662519Z [tmp-hygiene-sweep] tests/clients/lsp/launch.test.ts via=afterAll registered=8 stragglers=0 failed=0 dropped=0 +2026-10-07T09:32:34.3664528Z ❯  default  tests/clients/lsp/launch.test.ts (13 tests | 10 failed | 1 skipped) 108688ms +2026-10-07T09:32:34.3665535Z ❯ lsp launch (13) +2026-10-07T09:32:34.3666133Z ↓ spawns LSP servers in their own process group on POSIX +2026-10-07T09:32:34.3666979Z ✓ redacts secrets in crash-adjacent session-start writes 1737ms +2026-10-07T09:32:34.3667976Z ✓ leaves probe-home-state.js un-truncated for later cases in this file 133ms +2026-10-07T09:32:34.3669108Z  × treats delayed shell-backed startup failure as launch failure 11635ms +2026-10-07T09:32:34.3670436Z  × resolves bare commands through where before spawning 15020ms +2026-10-07T09:32:34.3671134Z ❯ isCmdShimValid (5) +2026-10-07T09:32:34.3671859Z  × returns true when the shim target exists 10042ms +2026-10-07T09:32:34.3672773Z  × returns false when the shim target is missing 10014ms +2026-10-07T09:32:34.3673602Z  × returns true for non-npm shims 10017ms +2026-10-07T09:32:34.3674451Z  × returns true when the file cannot be read 10014ms +2026-10-07T09:32:34.3675249Z  × handles .mjs targets 10006ms +2026-10-07T09:32:34.3675935Z  × rejects immediately for an invalid .cmd shim without spawning 10012ms +2026-10-07T09:32:34.3676623Z  × bypasses .ps1 to .cmd sibling on Windows 10018ms +2026-10-07T09:32:34.3677827Z  × bypasses .ps1 to direct node execution when .cmd sibling is missing 10026ms +2026-10-07T09:32:58.6514342Z ❯  wall-clock-budget  tests/scripts/prune-agent-worktrees.test.ts (77 tests | 6 failed | 6 skipped) 23984ms +2026-10-07T09:32:58.6515533Z ✓ parseArgs (8) +2026-10-07T09:32:58.6516073Z ✓ defaults to a non-destructive-by-omission configuration 3ms +2026-10-07T09:32:58.6516704Z ✓ parses --keep-agent-tree, the SubagentStop reap opt-out 1ms +2026-10-07T09:32:58.6517281Z ✓ parses --scan-timeout-ms and rejects an unusable one 2ms +2026-10-07T09:32:58.6517865Z ✓ parses the flags the hooks and a human actually pass 1ms +2026-10-07T09:32:58.6518999Z ✓ rejects a mis-typed --min-age instead of silently disabling the age rail 0ms +2026-10-07T09:32:58.6519987Z ✓ rejects a zero or unparseable --budget-ms 0ms +2026-10-07T09:32:58.6520788Z ✓ rejects an unknown hook event and an unknown flag 0ms +2026-10-07T09:32:58.6521633Z ✓ keeps a 2s floor for a hook whose timeout is unknown 0ms +2026-10-07T09:32:58.6522296Z ❯ #3694 live cwd safety rail (planners) (7) +2026-10-07T09:32:58.6523203Z  × keeps an unselected tree containing a live process cwd 11ms +2026-10-07T09:32:58.6525478Z  × matches a cwd at or under the tree, never a sibling sharing its name prefix 2ms +2026-10-07T09:32:58.6526701Z ✓ does not protect a tree the caller named from its own leftover processes 1ms +2026-10-07T09:32:58.6527810Z ✓ adds no rail of its own when the cwd scan is unknowable: the age rail decides 1ms +2026-10-07T09:32:58.6528696Z ❯ planMergedWorktreeRemovals (3) +2026-10-07T09:32:58.6529510Z  × keeps a merged clean tree that holds a live process cwd 1ms +2026-10-07T09:32:58.6530589Z ✓ keeps a recently active unnamed tree and removes a quiet one, whatever the cwd scan says 1ms +2026-10-07T09:32:58.6531803Z  × does not protect a named tree from its own leftover processes 1ms +2026-10-07T09:32:58.6536373Z ↓ liveProcessCwds (#3694 F6) (3) +2026-10-07T09:32:58.6537469Z ↓ sees this very process through the real /proc +2026-10-07T09:32:58.6538502Z ↓ returns null when the scan cannot see its own cwd (hidepid, foreign pid namespace, EACCES) +2026-10-07T09:32:58.6539451Z ↓ returns every cwd it read, as comparable keys, once it has seen itself +2026-10-07T09:32:58.6540201Z ✓ worktreePathFromHookPayload (3) +2026-10-07T09:32:58.6540957Z ✓ maps a SubagentStop payload's agent_id to that agent's worktree 0ms +2026-10-07T09:32:58.6541819Z ✓ returns null when the payload carries no usable agent id 0ms +2026-10-07T09:32:58.6542697Z ✓ refuses an agent id that could escape the worktrees directory 2ms +2026-10-07T09:32:58.6543336Z ✓ getHygieneLogPath (3) +2026-10-07T09:32:58.6543898Z ✓ falls back to ~/.pi-lens/hygiene.log 0ms +2026-10-07T09:32:58.6544450Z ✓ honors PI_LENS_HOME 2ms +2026-10-07T09:32:58.6545046Z ✓ prefers PILENS_DATA_DIR over PI_LENS_HOME 0ms +2026-10-07T09:32:58.6545633Z ✓ resolveHookPolicy (review S1/S8) (7) +2026-10-07T09:32:58.6546550Z ✓ reaps the stopped agent's own tree on SubagentStop (#2486) 0ms +2026-10-07T09:32:58.6547411Z ✓ honors the --keep-agent-tree opt-out without widening anything else 0ms +2026-10-07T09:32:58.6548309Z ✓ treats `--hook subagent-stop --only` as exactly the manual policy 0ms +2026-10-07T09:32:58.6549100Z ✓ never lets --only widen what SessionStart may do 0ms +2026-10-07T09:32:58.6549791Z ✓ removes at most one tree per SessionStart run 0ms +2026-10-07T09:32:58.6550391Z ✓ leaves a manual run uncapped 0ms +2026-10-07T09:32:58.6551136Z ✓ treats an unknown event as a manual run rather than a destructive one 0ms +2026-10-07T09:32:58.6551907Z ✓ .claude/settings.json hook registration (review S8/S9) (4) +2026-10-07T09:32:58.6553119Z ✓ tracks hooks only — permissions stay in the ignored settings.local.json 0ms +2026-10-07T09:32:58.6554034Z ✓ gives SessionStart room to finish one bounded worktree removal 0ms +2026-10-07T09:32:58.6554877Z ✓ runs the sweep on startup and resume only (review round 3, F1c) 1ms +2026-10-07T09:32:58.6555741Z ✓ registers the SubagentStop line that actually reaps (#2486) 0ms +2026-10-07T09:32:58.6557174Z ✓ worktreeActivityMs across a real `git status` (review round 3, F1) (3) +2026-10-07T09:32:58.6559708Z ✓ still reports the tree as hours old after the dirty rail has run 239ms +2026-10-07T09:32:58.6561106Z ✓ plans a backdated clean, pushed tree for REMOVAL after isDirty ran 190ms +2026-10-07T09:32:58.6562045Z ✓ keeps reading a tree whose HEAD genuinely moved as recent 198ms +2026-10-07T09:32:58.6562840Z ✓ candidate enrichment order (review round 3, F1b) (1) +2026-10-07T09:32:58.6563678Z ✓ reads worktree activity before anything that runs git in the tree 0ms +2026-10-07T09:32:58.6564387Z ✓ isDirty (review round 3, F2) (3) +2026-10-07T09:32:58.6565027Z ✓ reads a clean porcelain output as "clean" 134ms +2026-10-07T09:32:58.6565775Z ✓ reads a non-empty porcelain output as "dirty" 132ms +2026-10-07T09:32:58.6566692Z ✓ reads a `git status` that cannot be answered as "unreadable", never "clean" 125ms +2026-10-07T09:32:58.6567402Z ✓ hookBudgetMs (#2486) (7) +2026-10-07T09:32:58.6568138Z ✓ mirrors the timeouts actually registered in .claude/settings.json 0ms +2026-10-07T09:32:58.6569129Z ✓ sizes each hook's sweep budget to the timeout that will kill it 0ms +2026-10-07T09:32:58.6570012Z ✓ bounds a removal by the reserve its own hook budget subtracted 0ms +2026-10-07T09:32:58.6571340Z ✓ bounds the pre-remove recheck by its OWN small reserve, not removeBoundMs's (PR #2493 round 4, N3) 0ms +2026-10-07T09:32:58.6572450Z ✓ never lets the listing reserve starve the enrichment (#2486) 0ms +2026-10-07T09:32:58.6573360Z ✓ gives an --only run the manual budget, not a floored hook budget 0ms +2026-10-07T09:32:58.6574142Z ✓ keeps a bounded scan ceiling that fits inside every budget it is used in 0ms +2026-10-07T09:32:58.6574977Z ✓ keptReasonFor (#2486 / PR #2493 review round 2, S2) (3) +2026-10-07T09:32:58.6575711Z ✓ names the rail that refused the run's one tree 0ms +2026-10-07T09:32:58.6576604Z ✓ is null when the tree was removed, or when no single tree was in scope 0ms +2026-10-07T09:32:58.6577678Z ✓ distinguishes the opt-out from a per-run removal cap 0ms +2026-10-07T09:32:58.6578388Z ❯ SubagentStop hook, end to end (#2486) (25) +2026-10-07T09:32:58.6579183Z ✓ leaves both candidate kinds untouched in dry-run and at --max 0 1651ms +2026-10-07T09:32:58.6580488Z ✓ applies --max once across registered and unregistered removals 2296ms +2026-10-07T09:32:58.6581437Z ✓ still removes the trees --only names, on the manual policy 1017ms +2026-10-07T09:32:58.6582453Z ↓ keeps a merged clean tree that a live process is using, and never kills that process (#3694 F1) +2026-10-07T09:32:58.6584652Z ✓ with an unknowable cwd scan, keeps recently active merged trees and removes quiet ones (#3694 F6) 1122ms +2026-10-07T09:32:58.6586061Z ✓ keeps a fresh merged tree with no process inside at the default --min-age (#3694 round 3) 1253ms +2026-10-07T09:32:58.6587052Z ↓ honours PI_LENS_PRUNE_PROC_ROOT only under Vitest (#3694 round 3) +2026-10-07T09:32:58.6587883Z ↓ keeps a pushed, unmerged agent tree that a live process is using (#3694 F1) +2026-10-07T09:32:58.6589068Z  × still reaps the stopped agent's own tree, and its leftover process, on SubagentStop (#3694 F5) 1111ms +2026-10-07T09:32:58.6590356Z  × reaps under the registered argv when the listing itself fails (#2486's own reason) 1005ms +2026-10-07T09:32:58.6591650Z ✓ still refuses a dirty tree, and the ledger says which rail refused it 582ms +2026-10-07T09:32:58.6592680Z ✓ still refuses an unpushed tree, and the ledger says so 603ms +2026-10-07T09:32:58.6593748Z ✓ tells an unreadable git status apart from a genuinely dirty tree (review round 3, F2) 921ms +2026-10-07T09:32:58.6594970Z ✓ records not-a-worktree for an existing directory git no longer registers (review round 3, F3) 919ms +2026-10-07T09:32:58.6596207Z ✓ never destroys a write that lands after enrichment but before the removal call (review round 3, F1) 2303ms +2026-10-07T09:32:58.6597365Z ✓ tells an unreadable recheck apart from a genuinely dirty one (PR #2493 round 5, R2) 1020ms +2026-10-07T09:32:58.6598856Z ✓ reaps the stopped agent's tree through the REGISTERED argv (#2486) 966ms +2026-10-07T09:32:58.6599850Z ✓ leaves the tree alone under --keep-agent-tree, and says so 883ms +2026-10-07T09:32:58.6600882Z ✓ honors PILENS_HYGIENE_KEEP_AGENT_TREES on the unchanged registered argv 916ms +2026-10-07T09:32:58.6601555Z ✓ reaps under the registered argv even when the process scan is degraded 663ms +2026-10-07T09:32:58.6602188Z ✓ evaluates every --only tree even past the enrich deadline 601ms +2026-10-07T09:32:58.6602816Z ✓ records a skipped run when the payload carries no agent_id 461ms +2026-10-07T09:32:58.6603431Z ✓ distinguishes an agent that never had a worktree from a missing agent_id 459ms +2026-10-07T09:32:58.6604110Z ✓ scopes the orphan sweep to the stopped agent's own tree, never a sibling's (#2501) 1092ms +2026-10-07T09:32:58.6604898Z ✓ scopes the orphan sweep to the stopped agent's own tree, never a sibling's, on every platform (#2519 round 2, F1) 1080ms +2026-10-07T09:33:00.3454732Z fatal: couldn't find remote ref refs/pull/7/merge +2026-10-07T09:33:00.5039023Z From C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-3926-git-i9tzNw\origin +2026-10-07T09:33:00.5039758Z * [new ref] 8d2c0334621e366e543ca7fda09bb2408b3af9a9 -> pull/7/b1 +2026-10-07T09:33:00.5520973Z ✓  wall-clock-budget  tests/config/heavy-advisory-gate-workflow.test.ts (46 tests) 1531ms +2026-10-07T09:33:00.5522247Z ✓ #3926 the merge ref disappears but the captured commit resolves (1) +2026-10-07T09:33:00.5523170Z ✓ fails the by-name fetch and succeeds the by-captured-SHA fetch 1200ms +2026-10-07T09:33:03.7418777Z ✓  wall-clock-budget  tests/clients/safe-spawn-windows-command.test.ts (22 tests) 2838ms +2026-10-07T09:33:03.7473865Z ✓ Windows command resolution + direct spawn (#817) (10) +2026-10-07T09:33:03.7494243Z ✓ (f) resolver cache: second resolve of the same command is a cache hit, reset hook clears it 843ms +2026-10-07T09:33:03.7534238Z ✓ Windows command resolution — deprecated sync safeSpawn (#817) (6) +2026-10-07T09:33:03.7536043Z ✓ resolves a bare command via PATH+PATHEXT and spawns the .exe directly, no shell:true 332ms +2026-10-07T09:33:04.2289048Z ✓  wall-clock-budget  tests/config/tracked-control-bytes.test.ts (6 tests) 249ms +2026-10-07T09:33:04.4515564Z ❯  wall-clock-budget  tests/config/oxlint-advisory-rule-floor-gate.test.ts (3 tests | 1 failed) 28ms +2026-10-07T09:33:04.4523642Z ❯ oxlint advisory rule-count floor guard (#2700 review round 2, F2) (3) +2026-10-07T09:33:04.4525097Z ✓ the real job step defines a RULE_FLOOR and compares $rules against it 9ms +2026-10-07T09:33:04.4529326Z ✓ breaching the floor emits a named ::error:: annotation and fails the step 4ms +2026-10-07T09:33:04.4530693Z  × counts the real advisory --print-config surface and fails closed for absent or malformed evidence 10ms +2026-10-07T09:33:04.7830645Z ✓  wall-clock-budget  tests/config/gitignore-tracked-shadow.test.ts (1 test) 89ms +2026-10-07T09:33:16.3722149Z ✓  wall-clock-budget  tests/config/strictness-ratchet.test.ts (1 test) 11392ms +2026-10-07T09:33:16.3723216Z ✓ TypeScript strictness spike ratchets (1) +2026-10-07T09:33:16.3724076Z ✓ pins both scratch configurations without permitting drift 11387ms +2026-10-07T09:33:19.8551903Z [tmp-hygiene-owners] live=0 orphaned=0 malformed=0 foreign=0 self=1 otherInvocationEntries=0 reaped=0 +2026-10-07T09:33:19.8711106Z ❯  tmp-fixture-hygiene  tests/config/tmp-fixture-hygiene.test.ts (41 tests | 1 failed) 3092ms +2026-10-07T09:33:19.8712390Z ❯ tmp-fixture-hygiene (41) +2026-10-07T09:33:19.8713263Z ✓ routes every tests/ and scripts/ mkdtemp parent through a contained root 1188ms +2026-10-07T09:33:19.8714282Z ✓ keeps every real-tmp mkdtemp prefix in the pi-lens namespace 677ms +2026-10-07T09:33:19.8715311Z ✓ names the entries a run added to the repo root, and only those 3ms +2026-10-07T09:33:19.8716827Z ✓ classifies a new repo-root entry by git: an untracked stray is a leak; a tracked or ignored one is not 36ms +2026-10-07T09:33:19.8718018Z ✓ flags a new dist/ or .pack-backup/ in the repo root even though git ignores it 19ms +2026-10-07T09:33:19.8718883Z ✓ still flags a new dist/ when git cannot classify another new entry 16ms +2026-10-07T09:33:19.8719652Z ✓ reports unknown, never clean, when git cannot classify, and when the baseline predates the census 28ms +2026-10-07T09:33:19.8720634Z ✓ the run's real baseline sees a stray planted in the repo root, and not once it is removed 32ms +2026-10-07T09:33:19.8721652Z ✓ binds every worker's log sink to a home no other worker shares 1ms +2026-10-07T09:33:19.8722934Z ✓ sweeps this run's private backstop directories and spares a sibling invocation's 8ms +2026-10-07T09:33:19.8740497Z ✓ names only root backstop residue this run is answerable for 1ms +2026-10-07T09:33:19.8741436Z ✓ keeps the backstop sweep wired into cleanupTmpHygiene 3ms +2026-10-07T09:33:19.8742333Z ✓ registers the tmp-hygiene setup hook in every vitest project 1ms +2026-10-07T09:33:19.8743293Z ✓ holds every tmp-leak admission to a reason, an issue, and a real file 1ms +2026-10-07T09:33:19.8744310Z ✓ keeps every live baseline prefix within its checked-in owner population 5ms +2026-10-07T09:33:19.8745303Z ✓ reds new prefixes and removal of an admitted prefix from the real namespace 5ms +2026-10-07T09:33:19.8746194Z ✓ reds when a live prefix loses its admission row 0ms +2026-10-07T09:33:19.8747083Z ✓ selects the longest matching prefix for overlapping fixture families 0ms +2026-10-07T09:33:19.8748713Z ✓ draining the real project-snapshot persist before cleanup leaves nothing to recreate pi-lens-tool-policy-conventions dirs 84ms +2026-10-07T09:33:19.8749792Z ❯ owner-marker liveness across platforms (#3186) (14) +2026-10-07T09:33:19.8750643Z ✓ suppresses a live worker on a platform with no process start times 51ms +2026-10-07T09:33:19.8751650Z ✓ attributes a start-time-less marker on a platform that has start times 1ms +2026-10-07T09:33:19.8752594Z ✓ attributes a marker whose pid was reused by another process 51ms +2026-10-07T09:33:19.8753560Z ✓ attributes a marker whose heartbeat stopped, on every platform 1ms +2026-10-07T09:33:19.8754389Z ✓ attributes a marker whose pid is gone 1ms +2026-10-07T09:33:19.8755072Z ✓ ignores a marker from a previous run 1ms +2026-10-07T09:33:19.8755826Z ✓ attributes malformed markers without throwing 1ms +2026-10-07T09:33:19.8756710Z ✓ attributes only the drained owner when two owners share the entry set 0ms +2026-10-07T09:33:19.8757642Z ✓ records one census line per hygiene run, not one per marker 0ms +2026-10-07T09:33:19.8758561Z ✓ reaps only stale foreign owner records across three censuses 9ms +2026-10-07T09:33:19.8759643Z  × declares start-time support exactly when this host's markers carry one 8ms +2026-10-07T09:33:19.8760623Z ✓ keeps the worker heartbeat fresh while the worker runs 0ms +2026-10-07T09:33:19.8761555Z ✓ registers the heartbeat on the test lifecycle, not just defines it 0ms +2026-10-07T09:33:19.8762623Z ✓ beats a stale marker back to live 1ms +2026-10-07T09:33:19.8763327Z ✓ census scope across invocations (#3314, #3306) (8) +2026-10-07T09:33:19.8764103Z ✓ names the test file behind a raw mkdtemp prefix 837ms +2026-10-07T09:33:19.8765047Z ✓ ignores entries owned by a file no worker of this run loaded 2ms +2026-10-07T09:33:19.8766009Z ✓ judges an entry whose owner ran here, and every entry with no manifest 2ms +2026-10-07T09:33:19.8766908Z ✓ keeps an entry judged when any candidate owner ran here 0ms +2026-10-07T09:33:19.8767929Z ✓ spares another invocation's entries from the sweep 0ms +2026-10-07T09:33:19.8768908Z ✓ reads only this run's file manifest 1ms +2026-10-07T09:33:19.8769745Z ✓ registers a raw mkdtemp prefix from the call site, never from prose 6ms +2026-10-07T09:33:19.8770753Z ✓ spares a sibling's root when this run only mentioned its prefix in prose 2ms +2026-10-07T09:33:19.8771224Z +2026-10-07T09:33:19.8771657Z ⎯⎯⎯⎯⎯⎯ Failed Suites 1 ⎯⎯⎯⎯⎯⎯⎯ +2026-10-07T09:33:19.8771988Z +2026-10-07T09:33:19.8772838Z  FAIL   default  tests/config/result-contract-governance.test.ts > result contract across registered tool surfaces +2026-10-07T09:33:19.8774249Z Error: EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-result-contract-vuzHAj' +2026-10-07T09:33:19.8775310Z  ❯ tests/config/result-contract-governance.test.ts:87:6 +2026-10-07T09:33:19.8869092Z  85| mcp?.dispose(); +2026-10-07T09:33:19.8869762Z  86| process.chdir(originalCwd); +2026-10-07T09:33:19.8870993Z  87| fs.rmSync(cwd, { recursive: true, force: true }); +2026-10-07T09:33:19.8871716Z  | ^ +2026-10-07T09:33:19.8872206Z  88| }); +2026-10-07T09:33:19.8872657Z  89| +2026-10-07T09:33:19.8872941Z +2026-10-07T09:33:19.8873374Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/61]⎯ +2026-10-07T09:33:19.8873768Z +2026-10-07T09:33:19.8873861Z +2026-10-07T09:33:19.8874334Z ⎯⎯⎯⎯⎯⎯ Failed Tests 57 ⎯⎯⎯⎯⎯⎯⎯ +2026-10-07T09:33:19.8874786Z +2026-10-07T09:33:19.8876536Z  FAIL   tmp-fixture-hygiene  tests/config/tmp-fixture-hygiene.test.ts > tmp-fixture-hygiene > owner-marker liveness across platforms (#3186) > declares start-time support exactly when this host's markers carry one +2026-10-07T09:33:19.8878586Z AssertionError: expected 'orphaned' to be 'live' // Object.is equality +2026-10-07T09:33:19.8879145Z +2026-10-07T09:33:19.8879461Z Expected: "live" +2026-10-07T09:33:19.8879994Z Received: "orphaned" +2026-10-07T09:33:19.8880338Z +2026-10-07T09:33:19.8880905Z  ❯ tests/config/tmp-fixture-hygiene.test.ts:1402:6 +2026-10-07T09:33:19.9028836Z 1400| staleAfterMs: TMP_HYGIENE_OWNER_STALE_MS, +2026-10-07T09:33:19.9029527Z 1401| }), +2026-10-07T09:33:19.9029854Z 1402| ).toBe("live"); +2026-10-07T09:33:19.9030202Z  | ^ +2026-10-07T09:33:19.9030472Z 1403| }); +2026-10-07T09:33:19.9030729Z 1404| +2026-10-07T09:33:19.9030880Z +2026-10-07T09:33:19.9031130Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/61]⎯ +2026-10-07T09:33:19.9031314Z +2026-10-07T09:33:19.9032457Z  FAIL   wall-clock-budget  tests/config/oxlint-advisory-rule-floor-gate.test.ts > oxlint advisory rule-count floor guard (#2700 review round 2, F2) > counts the real advisory --print-config surface and fails closed for absent or malformed evidence +2026-10-07T09:33:19.9033860Z AssertionError: expected null to be +0 // Object.is equality +2026-10-07T09:33:19.9034166Z +2026-10-07T09:33:19.9034300Z - Expected: +2026-10-07T09:33:19.9034566Z 0 +2026-10-07T09:33:19.9034688Z +2026-10-07T09:33:19.9034838Z + Received: +2026-10-07T09:33:19.9035080Z null +2026-10-07T09:33:19.9035178Z +2026-10-07T09:33:19.9035559Z  ❯ tests/config/oxlint-advisory-rule-floor-gate.test.ts:108:62 +2026-10-07T09:33:19.9035992Z 106| }, +2026-10-07T09:33:19.9036267Z 107| ); +2026-10-07T09:33:19.9036672Z 108| expect(advisory.status, advisory.stdout + advisory.stderr).toBe(0); +2026-10-07T09:33:19.9037307Z  | ^ +2026-10-07T09:33:19.9037828Z 109| expect(Number(count(advisory.stdout))).toBeGreaterThanOrEqual(100); +2026-10-07T09:33:19.9038371Z 110| expect(count(JSON.stringify({ rules: { a: "deny", b: "warn" } }))).t… +2026-10-07T09:33:19.9038645Z +2026-10-07T09:33:19.9038890Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/61]⎯ +2026-10-07T09:33:19.9039061Z +2026-10-07T09:33:19.9039880Z  FAIL   wall-clock-budget  tests/scripts/prune-agent-worktrees.test.ts > #3694 live cwd safety rail (planners) > keeps an unselected tree containing a live process cwd +2026-10-07T09:33:19.9040815Z AssertionError: expected [ { …(5) } ] to have a length of +0 but got 1 +2026-10-07T09:33:19.9041123Z +2026-10-07T09:33:19.9041265Z - Expected +2026-10-07T09:33:19.9041522Z + Received +2026-10-07T09:33:19.9041650Z +2026-10-07T09:33:19.9041747Z - 0 +2026-10-07T09:33:19.9042010Z + 1 +2026-10-07T09:33:19.9042115Z +2026-10-07T09:33:19.9042431Z  ❯ tests/scripts/prune-agent-worktrees.test.ts:178:25 +2026-10-07T09:33:19.9042908Z 176| liveProcessCwds: new Set([`${AGENT}/src`]), +2026-10-07T09:33:19.9043245Z 177| }); +2026-10-07T09:33:19.9043553Z 178| expect(result.remove).toHaveLength(0); +2026-10-07T09:33:19.9043916Z  | ^ +2026-10-07T09:33:19.9044361Z 179| expect(result.keep[0]).toMatchObject({ reason: "live-cwd" }); +2026-10-07T09:33:19.9044727Z 180| }); +2026-10-07T09:33:19.9044872Z +2026-10-07T09:33:19.9045052Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/61]⎯ +2026-10-07T09:33:19.9045246Z +2026-10-07T09:33:19.9046343Z  FAIL   wall-clock-budget  tests/scripts/prune-agent-worktrees.test.ts > #3694 live cwd safety rail (planners) > matches a cwd at or under the tree, never a sibling sharing its name prefix +2026-10-07T09:33:19.9047580Z AssertionError: expected undefined to match object { reason: 'live-cwd' } +2026-10-07T09:33:19.9047897Z +2026-10-07T09:33:19.9048041Z - Expected: +2026-10-07T09:33:19.9048261Z { +2026-10-07T09:33:19.9048458Z "reason": "live-cwd", +2026-10-07T09:33:19.9048649Z } +2026-10-07T09:33:19.9048757Z +2026-10-07T09:33:19.9048857Z + Received: +2026-10-07T09:33:19.9049020Z undefined +2026-10-07T09:33:19.9049108Z +2026-10-07T09:33:19.9049378Z  ❯ tests/scripts/prune-agent-worktrees.test.ts:193:31 +2026-10-07T09:33:19.9049712Z 191| }); +2026-10-07T09:33:19.9050025Z 192| expect(plan(`${AGENT}b/src`).remove).toHaveLength(1); +2026-10-07T09:33:19.9050459Z 193| expect(plan(AGENT).keep[0]).toMatchObject({ reason: "live-cwd" }); +2026-10-07T09:33:19.9050845Z  | ^ +2026-10-07T09:33:19.9051207Z 194| }); +2026-10-07T09:33:19.9051398Z 195| +2026-10-07T09:33:19.9051494Z +2026-10-07T09:33:19.9051662Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/61]⎯ +2026-10-07T09:33:19.9051802Z +2026-10-07T09:33:19.9052677Z  FAIL   wall-clock-budget  tests/scripts/prune-agent-worktrees.test.ts > #3694 live cwd safety rail (planners) > planMergedWorktreeRemovals > keeps a merged clean tree that holds a live process cwd +2026-10-07T09:33:19.9053619Z AssertionError: expected [ { …(5) } ] to have a length of +0 but got 1 +2026-10-07T09:33:19.9053859Z +2026-10-07T09:33:19.9053959Z - Expected +2026-10-07T09:33:19.9054143Z + Received +2026-10-07T09:33:19.9054245Z +2026-10-07T09:33:19.9054331Z - 0 +2026-10-07T09:33:19.9054487Z + 1 +2026-10-07T09:33:19.9054569Z +2026-10-07T09:33:19.9054825Z  ❯ tests/scripts/prune-agent-worktrees.test.ts:241:26 +2026-10-07T09:33:19.9055290Z 239| liveProcessCwds: new Set(["/repo/elsewhere/merged-a/src"]), +2026-10-07T09:33:19.9055601Z 240| }); +2026-10-07T09:33:19.9055866Z 241| expect(result.remove).toHaveLength(0); +2026-10-07T09:33:19.9056184Z  | ^ +2026-10-07T09:33:19.9056551Z 242| expect(result.keep[0]).toMatchObject({ reason: "live-cwd" }); +2026-10-07T09:33:19.9056859Z 243| }); +2026-10-07T09:33:19.9056966Z +2026-10-07T09:33:19.9057133Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[6/61]⎯ +2026-10-07T09:33:19.9057275Z +2026-10-07T09:33:19.9058165Z  FAIL   wall-clock-budget  tests/scripts/prune-agent-worktrees.test.ts > #3694 live cwd safety rail (planners) > planMergedWorktreeRemovals > does not protect a named tree from its own leftover processes +2026-10-07T09:33:19.9059094Z AssertionError: expected [] to have a length of 1 but got +0 +2026-10-07T09:33:19.9059327Z +2026-10-07T09:33:19.9059425Z - Expected +2026-10-07T09:33:19.9059615Z + Received +2026-10-07T09:33:19.9059713Z +2026-10-07T09:33:19.9059797Z - 1 +2026-10-07T09:33:19.9059958Z + 0 +2026-10-07T09:33:19.9060046Z +2026-10-07T09:33:19.9060301Z  ❯ tests/scripts/prune-agent-worktrees.test.ts:283:26 +2026-10-07T09:33:19.9060826Z 281| liveProcessCwds: new Set(["/repo/elsewhere/merged-a/src"]), +2026-10-07T09:33:19.9061323Z 282| }); +2026-10-07T09:33:19.9061753Z 283| expect(result.remove).toHaveLength(1); +2026-10-07T09:33:19.9062260Z  | ^ +2026-10-07T09:33:19.9062787Z 284| const unknown = planMergedWorktreeRemovals({ +2026-10-07T09:33:19.9063417Z 285| candidates: [{ ...mergedRow, mtimeMs: 9_999_999 }], +2026-10-07T09:33:19.9063759Z +2026-10-07T09:33:19.9064235Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[7/61]⎯ +2026-10-07T09:33:19.9064484Z +2026-10-07T09:33:19.9065946Z  FAIL   wall-clock-budget  tests/scripts/prune-agent-worktrees.test.ts > SubagentStop hook, end to end (#2486) > still reaps the stopped agent's own tree, and its leftover process, on SubagentStop (#3694 F5) +2026-10-07T09:33:19.9067760Z AssertionError: expected true to be false // Object.is equality +2026-10-07T09:33:19.9068167Z +2026-10-07T09:33:19.9068325Z - Expected +2026-10-07T09:33:19.9068622Z + Received +2026-10-07T09:33:19.9068775Z +2026-10-07T09:33:19.9068906Z - false +2026-10-07T09:33:19.9069180Z + true +2026-10-07T09:33:19.9069319Z +2026-10-07T09:33:19.9069764Z  ❯ tests/scripts/prune-agent-worktrees.test.ts:1861:37 +2026-10-07T09:33:19.9070729Z 1859| const exited = new Promise((resolve) => leftover.once("exit", reso… +2026-10-07T09:33:19.9071520Z 1860| runCli(registeredArgv(), subagentStopPayload(AGENT_ID)); +2026-10-07T09:33:19.9072212Z 1861| expect(fs.existsSync(worktree)).toBe(false); +2026-10-07T09:33:19.9072777Z  | ^ +2026-10-07T09:33:19.9073214Z 1862| await exited; +2026-10-07T09:33:19.9073823Z 1863| // ...and the sibling agent's tree, with its own live process, is … +2026-10-07T09:33:19.9074219Z +2026-10-07T09:33:19.9074500Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[8/61]⎯ +2026-10-07T09:33:19.9074740Z +2026-10-07T09:33:19.9076159Z  FAIL   wall-clock-budget  tests/scripts/prune-agent-worktrees.test.ts > SubagentStop hook, end to end (#2486) > reaps under the registered argv when the listing itself fails (#2486's own reason) +2026-10-07T09:33:19.9077816Z AssertionError: expected undefined to match object { reason: 'listing-failed', …(1) } +2026-10-07T09:33:19.9078326Z +2026-10-07T09:33:19.9078488Z - Expected: +2026-10-07T09:33:19.9078740Z { +2026-10-07T09:33:19.9078948Z "ceilingMs": 400, +2026-10-07T09:33:19.9079212Z "reason": "listing-failed", +2026-10-07T09:33:19.9079456Z } +2026-10-07T09:33:19.9079537Z +2026-10-07T09:33:19.9079638Z + Received: +2026-10-07T09:33:19.9079808Z undefined +2026-10-07T09:33:19.9079887Z +2026-10-07T09:33:19.9080167Z  ❯ tests/scripts/prune-agent-worktrees.test.ts:1896:6 +2026-10-07T09:33:19.9080540Z 1894| expect( +2026-10-07T09:33:19.9080911Z 1895| records.find((record) => record.event === "hygiene.scan-degraded"), +2026-10-07T09:33:19.9081390Z 1896| ).toMatchObject({ reason: "listing-failed", ceilingMs: 400 }); +2026-10-07T09:33:19.9081744Z  | ^ +2026-10-07T09:33:19.9081968Z 1897| expect( +2026-10-07T09:33:19.9082329Z 1898| records.find((record) => record.event === "hygiene.worktree-remove… +2026-10-07T09:33:19.9082577Z +2026-10-07T09:33:19.9082750Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[9/61]⎯ +2026-10-07T09:33:19.9082894Z +2026-10-07T09:33:19.9083818Z  FAIL   default  tests/config/global-dir-probe-redirect.test.ts > getGlobalPiLensLogDir probe-home redirect (#2506) > redirects a worktree probe's LOGS while leaving tools/registry on the real home +2026-10-07T09:33:19.9085872Z AssertionError: expected 'C:\Users\runneradmin\AppData\Local\Te…' to be 'C:\Users\RUNNER~1\AppData\Local\Temp\…' // Object.is equality +2026-10-07T09:33:19.9086303Z +2026-10-07T09:33:19.9086853Z Expected: "C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-probe-worktree-rEXqkD\.claude\worktrees\agent-x\.pi-lens-probe-home" +2026-10-07T09:33:19.9087782Z Received: "C:\Users\runneradmin\AppData\Local\Temp\pi-lens-probe-worktree-rEXqkD\.claude\worktrees\agent-x\.pi-lens-probe-home" +2026-10-07T09:33:19.9088397Z +2026-10-07T09:33:19.9088699Z  ❯ tests/config/global-dir-probe-redirect.test.ts:196:25 +2026-10-07T09:33:19.9187182Z 194| +2026-10-07T09:33:19.9187987Z 195| // The log root moved — and anchored at the WORKTREE, not at `cwd`. +2026-10-07T09:33:19.9188819Z 196| expect(facts.logDir).toBe(path.join(worktree, ".pi-lens-probe-home"… +2026-10-07T09:33:19.9189451Z  | ^ +2026-10-07T09:33:19.9189820Z 197| +2026-10-07T09:33:19.9190348Z 198| // ...while every machine-global path stayed on the (fake) real hom… +2026-10-07T09:33:19.9190742Z +2026-10-07T09:33:19.9191016Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[10/61]⎯ +2026-10-07T09:33:19.9191271Z +2026-10-07T09:33:19.9193013Z  FAIL   default  tests/config/global-dir-probe-redirect.test.ts > a VITEST-marked process with no PI_LENS_HOME pin (#2516 round 2) > still redirects to the probe home rather than the real home +2026-10-07T09:33:19.9194986Z AssertionError: expected 'C:\Users\runneradmin\AppData\Local\Te…' to be 'C:\Users\RUNNER~1\AppData\Local\Temp\…' // Object.is equality +2026-10-07T09:33:19.9195671Z +2026-10-07T09:33:19.9196585Z Expected: "C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-probe-vitest-marked-dssH0x\.claude\worktrees\agent-vitest\.pi-lens-probe-home" +2026-10-07T09:33:19.9198178Z Received: "C:\Users\runneradmin\AppData\Local\Temp\pi-lens-probe-vitest-marked-dssH0x\.claude\worktrees\agent-vitest\.pi-lens-probe-home" +2026-10-07T09:33:19.9198924Z +2026-10-07T09:33:19.9199412Z  ❯ tests/config/global-dir-probe-redirect.test.ts:473:25 +2026-10-07T09:33:19.9200146Z 471| expectCwdOutsideChildTmpdir(facts, probeCwd); +2026-10-07T09:33:19.9200612Z 472| +2026-10-07T09:33:19.9201178Z 473| expect(facts.logDir).toBe(path.join(worktree, ".pi-lens-probe-home"… +2026-10-07T09:33:19.9201795Z  | ^ +2026-10-07T09:33:19.9202413Z 474| expect(facts.logDir).not.toBe(path.join(fakeHome, ".pi-lens")); +2026-10-07T09:33:19.9203177Z 475| // ...and nothing was written into the stand-in for the real home. +2026-10-07T09:33:19.9203558Z +2026-10-07T09:33:19.9204191Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[11/61]⎯ +2026-10-07T09:33:19.9205418Z +2026-10-07T09:33:19.9206935Z  FAIL   default  tests/config/global-dir-probe-redirect.test.ts > the recorded resolution is visible through the leaf's reader (#2506) > describes the actual trigger, not a removed test-mode gate +2026-10-07T09:33:19.9211153Z Error: ENAMETOOLONG: name too long, chdir 'D:\a\pi-lens\pi-lens' -> 'C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-probe-reason-eHJwTB\cwd-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +2026-10-07T09:33:19.9214144Z  ❯ tests/config/global-dir-probe-redirect.test.ts:620:12 +2026-10-07T09:33:19.9214803Z 618| process.env.PILENS_PROBE = "1"; +2026-10-07T09:33:19.9215361Z 619| _resetProbeHomeRedirectStateForTests(); +2026-10-07T09:33:19.9215886Z 620| process.chdir(longCwd); +2026-10-07T09:33:19.9216297Z  | ^ +2026-10-07T09:33:19.9216714Z 621| getGlobalPiLensLogDir(); +2026-10-07T09:33:19.9217094Z 622| +2026-10-07T09:33:19.9217234Z +2026-10-07T09:33:19.9217501Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[12/61]⎯ +2026-10-07T09:33:19.9217712Z +2026-10-07T09:33:19.9218912Z  FAIL   default  tests/config/result-contract-governance.test.ts > result contract across registered tool surfaces > keeps every paired registry tool's real rendered text identical +2026-10-07T09:33:19.9221195Z AssertionError: lens_diagnostics: complete rendered text: expected 'Files checked: 1\nTotal diagnostics: …' to be 'Files checked: 1\nTotal diagnostics: …' // Object.is equality +2026-10-07T09:33:19.9222013Z +2026-10-07T09:33:19.9222157Z - Expected +2026-10-07T09:33:19.9222441Z + Received +2026-10-07T09:33:19.9222594Z +2026-10-07T09:33:19.9222752Z @@ -3,9 +3,9 @@ +2026-10-07T09:33:19.9223052Z  Concurrency: 8 +2026-10-07T09:33:19.9223758Z  Outcomes: clean=0, findings=0, unsupported=0, unavailable=0, failed=0, too_large=0, inconclusive=1 +2026-10-07T09:33:19.9224236Z +2026-10-07T09:33:19.9224944Z  Checks not confirmed: 1 (inconclusive/unavailable/unsupported/failed or not started). +2026-10-07T09:33:19.9225621Z +2026-10-07T09:33:19.9226423Z - 0 files confirmed clean, 1 unconfirmed: 1 timed out (check didn't complete within the wait budget). NOT the same as 0 diagnostics. +2026-10-07T09:33:19.9228410Z + 0 files confirmed clean, 1 unconfirmed: from a server that cannot confirm clean (push-only, silent-on-clean; e.g. classic typescript-language-server does not publish on a clean re-check). NOT the same as 0 diagnostics. +2026-10-07T09:33:19.9229495Z +2026-10-07T09:33:19.9229657Z  result ok +2026-10-07T09:33:19.9230227Z - usage tokens=93 elapsed-ms=0 bytes=370 truncated=false +2026-10-07T09:33:19.9231030Z + usage tokens=115 elapsed-ms=0 bytes=458 truncated=false +2026-10-07T09:33:19.9231413Z +2026-10-07T09:33:19.9231886Z  ❯ tests/config/result-contract-governance.test.ts:173:7 +2026-10-07T09:33:19.9232605Z 171| stableRenderedText(entry.name, mcpText), +2026-10-07T09:33:19.9233181Z 172| `${entry.name}: complete rendered text`, +2026-10-07T09:33:19.9233783Z 173| ).toBe(stableRenderedText(entry.name, piText)); +2026-10-07T09:33:19.9234288Z  | ^ +2026-10-07T09:33:19.9234616Z 174| } +2026-10-07T09:33:19.9235162Z 175| const mcpResultValue = mcpResult.result as ToolResult; +2026-10-07T09:33:19.9235517Z +2026-10-07T09:33:19.9235786Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[13/61]⎯ +2026-10-07T09:33:19.9236021Z +2026-10-07T09:33:19.9237185Z  FAIL   default  tests/config/turn-end-lane-boundaries.test.ts > turn-end lane boundaries (#1892) > finds the lane interface and at least one lane module +2026-10-07T09:33:19.9238543Z AssertionError: expected [ …(4) ] to include 'clients/turn-end/lane.ts' +2026-10-07T09:33:19.9239413Z  ❯ tests/config/turn-end-lane-boundaries.test.ts:43:17 +2026-10-07T09:33:19.9240159Z  41| it("finds the lane interface and at least one lane module", () => { +2026-10-07T09:33:19.9240798Z  42| const files = LANE_SOURCES.map((s) => s.file); +2026-10-07T09:33:19.9241407Z  43| expect(files).toContain("clients/turn-end/lane.ts"); +2026-10-07T09:33:19.9241925Z  | ^ +2026-10-07T09:33:19.9242279Z  44| expect( +2026-10-07T09:33:19.9242843Z  45| files.filter((f) => f.startsWith("clients/turn-end/lanes/")).length, +2026-10-07T09:33:19.9243204Z +2026-10-07T09:33:19.9243452Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[14/61]⎯ +2026-10-07T09:33:19.9243687Z +2026-10-07T09:33:19.9245039Z  FAIL   default  tests/clients/path-utils.test.ts > normalizeFilePath: POSIX adopts on-disk casing (#3098, the live half of #1024) > a path that does not exist stays case-preserving +2026-10-07T09:33:19.9247174Z AssertionError: expected 'C:/Users/runneradmin/AppData/Local/Te…' to be 'C:/Users/RUNNER~1/AppData/Local/Temp/…' // Object.is equality +2026-10-07T09:33:19.9248122Z +2026-10-07T09:33:19.9248736Z Expected: "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-case-POIrPy/NOPE/b.ts" +2026-10-07T09:33:19.9249822Z Received: "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-case-POIrPy/nope/b.ts" +2026-10-07T09:33:19.9250325Z +2026-10-07T09:33:19.9250693Z  ❯ tests/clients/path-utils.test.ts:286:36 +2026-10-07T09:33:19.9346105Z 284| // case-sensitive filesystem `NOPE` and `nope` are two different +2026-10-07T09:33:19.9346994Z 285| // directories — folding one into the other is the #3098 non-goal. +2026-10-07T09:33:19.9347814Z 286| expect(normalizeMapKey(absent)).toBe(absent.replace(/\\/g, "/")); +2026-10-07T09:33:19.9348792Z  | ^ +2026-10-07T09:33:19.9349274Z 287| } finally { +2026-10-07T09:33:19.9349637Z 288| cleanup(); +2026-10-07T09:33:19.9349836Z +2026-10-07T09:33:19.9350134Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[15/61]⎯ +2026-10-07T09:33:19.9350382Z +2026-10-07T09:33:19.9351917Z  FAIL   default  tests/clients/path-utils.test.ts > normalizeFilePath: dot segments fold into the canonical key (#3184) > a RELATIVE path stays relative — the fold never resolves against process.cwd() (#2490) +2026-10-07T09:33:19.9353707Z AssertionError: expected 'D:/a/pi-lens/pi-lens/src/a.ts' to be 'src/a.ts' // Object.is equality +2026-10-07T09:33:19.9354236Z +2026-10-07T09:33:19.9354444Z Expected: "src/a.ts" +2026-10-07T09:33:19.9354974Z Received: "D:/a/pi-lens/pi-lens/src/a.ts" +2026-10-07T09:33:19.9355290Z +2026-10-07T09:33:19.9355719Z  ❯ tests/clients/path-utils.test.ts:501:46 +2026-10-07T09:33:19.9356487Z 499| // `path.posix.normalize` is pure string algebra, so an interior `..` +2026-10-07T09:33:19.9357299Z 500| // collapses while a leading one survives and nothing acquires a roo… +2026-10-07T09:33:19.9358150Z 501| expect(normalizeMapKey("src/../src/a.ts")).toBe("src/a.ts"); +2026-10-07T09:33:19.9358791Z  | ^ +2026-10-07T09:33:19.9359421Z 502| expect(normalizeMapKey("../src/a.ts")).toBe("../src/a.ts"); +2026-10-07T09:33:19.9360102Z 503| expect(normalizeMapKey("src/a.ts")).toBe("src/a.ts"); +2026-10-07T09:33:19.9360443Z +2026-10-07T09:33:19.9360708Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[16/61]⎯ +2026-10-07T09:33:19.9360956Z +2026-10-07T09:33:19.9362324Z  FAIL   default  tests/clients/path-utils.test.ts > normalizeFilePath: dot segments fold into the canonical key (#3184) > an empty string is returned unchanged, not invented into the cwd +2026-10-07T09:33:19.9363869Z AssertionError: expected 'D:/a/pi-lens/pi-lens' to be '' // Object.is equality +2026-10-07T09:33:19.9364335Z +2026-10-07T09:33:19.9364494Z - Expected +2026-10-07T09:33:19.9364796Z + Received +2026-10-07T09:33:19.9364949Z +2026-10-07T09:33:19.9365155Z + D:/a/pi-lens/pi-lens +2026-10-07T09:33:19.9365365Z +2026-10-07T09:33:19.9365928Z  ❯ tests/clients/path-utils.test.ts:513:31 +2026-10-07T09:33:19.9366666Z 511| // documented non-path sentinel in this codebase's path-typed fields +2026-10-07T09:33:19.9367451Z 512| // (see `normalizeLoggedPath`'s doc), never a request for the cwd. +2026-10-07T09:33:19.9368096Z 513| expect(normalizeMapKey("")).toBe(""); +2026-10-07T09:33:19.9368593Z  | ^ +2026-10-07T09:33:19.9368970Z 514| }); +2026-10-07T09:33:19.9369502Z 515| +2026-10-07T09:33:19.9369638Z +2026-10-07T09:33:19.9369887Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[17/61]⎯ +2026-10-07T09:33:19.9370129Z +2026-10-07T09:33:19.9371449Z  FAIL   default  tests/clients/path-utils.test.ts > the uv-members dialect reproduces the pre-fold minimatch answers (#2591) > differs from minimatch(dot:true) on exactly the enumerated cells +2026-10-07T09:33:19.9372832Z AssertionError: expected [ …(3) ] to deeply equal [] +2026-10-07T09:33:19.9373160Z +2026-10-07T09:33:19.9373301Z - Expected +2026-10-07T09:33:19.9373584Z + Received +2026-10-07T09:33:19.9373729Z +2026-10-07T09:33:19.9373846Z - [] +2026-10-07T09:33:19.9374086Z + [ +2026-10-07T09:33:19.9374449Z + "* x\\y folded=true minimatch=false", +2026-10-07T09:33:19.9375139Z + "x\\y x\\y folded=false minimatch=true", +2026-10-07T09:33:19.9375661Z + "**/*/** x\\y folded=false minimatch=true", +2026-10-07T09:33:19.9376028Z + ] +2026-10-07T09:33:19.9376155Z +2026-10-07T09:33:19.9376507Z  ❯ tests/clients/path-utils.test.ts:2322:22 +2026-10-07T09:33:19.9376948Z 2320| } +2026-10-07T09:33:19.9377220Z 2321| } +2026-10-07T09:33:19.9377592Z 2322| expect(unexpected).toEqual([]); +2026-10-07T09:33:19.9378021Z  | ^ +2026-10-07T09:33:19.9378453Z 2323| expect(repaired).toEqual([]); +2026-10-07T09:33:19.9378879Z 2324| expect(cells).toBe( +2026-10-07T09:33:19.9379081Z +2026-10-07T09:33:19.9379330Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[18/61]⎯ +2026-10-07T09:33:19.9379558Z +2026-10-07T09:33:19.9380720Z  FAIL   default  tests/clients/pipeline.test.ts > Pipeline > Format phase > bounds opaque ownership telemetry across many paths (#3226 review P2) +2026-10-07T09:33:19.9381874Z Error: Test timed out in 5000ms. +2026-10-07T09:33:19.9382882Z If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". +2026-10-07T09:33:19.9383830Z  ❯ tests/clients/pipeline.test.ts:763:3 +2026-10-07T09:33:19.9505869Z 761| }); +2026-10-07T09:33:19.9506418Z 762| +2026-10-07T09:33:19.9507077Z 763| it("bounds opaque ownership telemetry across many paths (#3226 revie… +2026-10-07T09:33:19.9507693Z  | ^ +2026-10-07T09:33:19.9508155Z 764| // Recurrence: per-path once keys made opaque recovery retain one h… +2026-10-07T09:33:19.9508644Z 765| // identity per artifact. Drive the real pipeline seam with the rev… +2026-10-07T09:33:19.9508893Z +2026-10-07T09:33:19.9509134Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[19/61]⎯ +2026-10-07T09:33:19.9509319Z +2026-10-07T09:33:19.9510160Z  FAIL   default  tests/clients/pipeline.test.ts > Pipeline > Bus publish (#482 pilens:files:touched) > publishes reason:"format" with the fixed file's path when immediate format changes content +2026-10-07T09:33:19.9511179Z AssertionError: expected "vi.fn()" to be called with arguments: [ 'pilens:files:touched', …(1) ] +2026-10-07T09:33:19.9511480Z +2026-10-07T09:33:19.9511552Z Received: +2026-10-07T09:33:19.9511644Z +2026-10-07T09:33:19.9511742Z  1st vi.fn() call: +2026-10-07T09:33:19.9511855Z +2026-10-07T09:33:19.9511986Z @@ -1,11 +1,18 @@ +2026-10-07T09:33:19.9512193Z  [ +2026-10-07T09:33:19.9512407Z  "pilens:files:touched", +2026-10-07T09:33:19.9512674Z - ObjectContaining { +2026-10-07T09:33:19.9513119Z - "cwd": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-j6Nbyy", +2026-10-07T09:33:19.9513431Z + { +2026-10-07T09:33:19.9514038Z + "cwd": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-j6Nbyy", +2026-10-07T09:33:19.9514388Z + "fixes": [ +2026-10-07T09:33:19.9514585Z + { +2026-10-07T09:33:19.9514803Z + "kind": "format", +2026-10-07T09:33:19.9515277Z + "path": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-j6Nbyy/unformatted.ts", +2026-10-07T09:33:19.9515684Z + "tool": "biome", +2026-10-07T09:33:19.9515898Z + }, +2026-10-07T09:33:19.9516077Z + ], +2026-10-07T09:33:19.9516272Z  "paths": [ +2026-10-07T09:33:19.9516667Z - "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-j6Nbyy/unformatted.ts", +2026-10-07T09:33:19.9517212Z + "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-j6Nbyy/unformatted.ts", +2026-10-07T09:33:19.9517569Z  ], +2026-10-07T09:33:19.9517934Z  "reason": "format", +2026-10-07T09:33:19.9518185Z  "source": "pi-lens", +2026-10-07T09:33:19.9518406Z  "v": 1, +2026-10-07T09:33:19.9530083Z  }, +2026-10-07T09:33:19.9530433Z  +2026-10-07T09:33:19.9530523Z +2026-10-07T09:33:19.9530722Z Number of calls: 1 +2026-10-07T09:33:19.9530987Z  +2026-10-07T09:33:19.9531333Z  ❯ tests/clients/pipeline.test.ts:955:17 +2026-10-07T09:33:19.9531642Z 953| ); +2026-10-07T09:33:19.9531826Z 954| +2026-10-07T09:33:19.9532084Z 955| expect(emit).toHaveBeenCalledWith( +2026-10-07T09:33:19.9532404Z  | ^ +2026-10-07T09:33:19.9532669Z 956| "pilens:files:touched", +2026-10-07T09:33:19.9532964Z 957| expect.objectContaining({ +2026-10-07T09:33:19.9533112Z +2026-10-07T09:33:19.9533286Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[20/61]⎯ +2026-10-07T09:33:19.9533461Z +2026-10-07T09:33:19.9534303Z  FAIL   default  tests/clients/pipeline.test.ts > Pipeline > Bus publish (#482 pilens:files:touched) > publishes reason:"autofix" with the fixed file's path when an autofix tool changes content +2026-10-07T09:33:19.9535346Z AssertionError: expected { v: 1, source: 'pi-lens', …(4) } to match object { v: 1, source: 'pi-lens', …(2) } +2026-10-07T09:33:19.9535837Z (2 matching properties omitted from actual) +2026-10-07T09:33:19.9536014Z +2026-10-07T09:33:19.9536116Z - Expected +2026-10-07T09:33:19.9536308Z + Received +2026-10-07T09:33:19.9536407Z +2026-10-07T09:33:19.9536486Z  { +2026-10-07T09:33:19.9536663Z  "paths": [ +2026-10-07T09:33:19.9537049Z - "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-iCe5bT/messy.ts", +2026-10-07T09:33:19.9537566Z + "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-iCe5bT/messy.ts", +2026-10-07T09:33:19.9537899Z  ], +2026-10-07T09:33:19.9538132Z  "reason": "autofix", +2026-10-07T09:33:19.9538376Z  "source": "pi-lens", +2026-10-07T09:33:19.9538582Z  "v": 1, +2026-10-07T09:33:19.9538759Z  } +2026-10-07T09:33:19.9538840Z +2026-10-07T09:33:19.9539071Z  ❯ tests/clients/pipeline.test.ts:1002:34 +2026-10-07T09:33:19.9539360Z 1000| ); +2026-10-07T09:33:19.9539647Z 1001| expect(filesTouchedCall).toBeDefined(); +2026-10-07T09:33:19.9540012Z 1002| expect(filesTouchedCall?.[1]).toMatchObject({ +2026-10-07T09:33:19.9540377Z  | ^ +2026-10-07T09:33:19.9540637Z 1003| v: 1, +2026-10-07T09:33:19.9540879Z 1004| source: "pi-lens", +2026-10-07T09:33:19.9541015Z +2026-10-07T09:33:19.9541181Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[21/61]⎯ +2026-10-07T09:33:19.9541331Z +2026-10-07T09:33:19.9542050Z  FAIL   default  tests/clients/pipeline.test.ts > Pipeline > Bus publish (#482 pilens:files:touched) > includes fix-provenance entries on the format publish +2026-10-07T09:33:19.9543475Z AssertionError: expected { v: 1, source: 'pi-lens', …(4) } to match object { fixes: [ { …(3) } ] } +2026-10-07T09:33:19.9543951Z (5 matching properties omitted from actual) +2026-10-07T09:33:19.9544118Z +2026-10-07T09:33:19.9544222Z - Expected +2026-10-07T09:33:19.9544410Z + Received +2026-10-07T09:33:19.9544507Z +2026-10-07T09:33:19.9544584Z  { +2026-10-07T09:33:19.9544765Z  "fixes": [ +2026-10-07T09:33:19.9544952Z  { +2026-10-07T09:33:19.9545168Z  "kind": "format", +2026-10-07T09:33:19.9545648Z - "path": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-GGmQpi/unformatted2.ts", +2026-10-07T09:33:19.9546410Z + "path": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-GGmQpi/unformatted2.ts", +2026-10-07T09:33:19.9546825Z  "tool": "biome", +2026-10-07T09:33:19.9547043Z  }, +2026-10-07T09:33:19.9547221Z  ], +2026-10-07T09:33:19.9547387Z  } +2026-10-07T09:33:19.9547477Z +2026-10-07T09:33:19.9547704Z  ❯ tests/clients/pipeline.test.ts:1086:22 +2026-10-07T09:33:19.9547988Z 1084| +2026-10-07T09:33:19.9548336Z 1085| const call = emit.mock.calls.find((c) => c[0] === "pilens:files:tou… +2026-10-07T09:33:19.9548730Z 1086| expect(call?.[1]).toMatchObject({ +2026-10-07T09:33:19.9549037Z  | ^ +2026-10-07T09:33:19.9549291Z 1087| fixes: [ +2026-10-07T09:33:19.9549501Z 1088| { +2026-10-07T09:33:19.9549614Z +2026-10-07T09:33:19.9549783Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[22/61]⎯ +2026-10-07T09:33:19.9549928Z +2026-10-07T09:33:19.9550658Z  FAIL   default  tests/clients/pipeline.test.ts > Pipeline > Bus publish (#502 pilens:diagnostics) > publishes the file's diagnostics after dispatch completes +2026-10-07T09:33:19.9551558Z AssertionError: expected "vi.fn()" to be called with arguments: [ 'pilens:diagnostics', …(1) ] +2026-10-07T09:33:19.9551860Z +2026-10-07T09:33:19.9551928Z Received: +2026-10-07T09:33:19.9552006Z +2026-10-07T09:33:19.9552109Z  1st vi.fn() call: +2026-10-07T09:33:19.9552217Z +2026-10-07T09:33:19.9552299Z  [ +2026-10-07T09:33:19.9552520Z  "pilens:diagnostics", +2026-10-07T09:33:19.9552768Z - ObjectContaining { +2026-10-07T09:33:19.9552967Z + { +2026-10-07T09:33:19.9553332Z + "cwd": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-QYwNoy", +2026-10-07T09:33:19.9553663Z  "files": [ +2026-10-07T09:33:19.9553909Z - ObjectContaining { +2026-10-07T09:33:19.9554280Z + { +2026-10-07T09:33:19.9554500Z  "diagnostics": [ +2026-10-07T09:33:19.9554769Z - ObjectContaining { +2026-10-07T09:33:19.9555002Z + { +2026-10-07T09:33:19.9555213Z + "col": 1, +2026-10-07T09:33:19.9555452Z  "fixable": true, +2026-10-07T09:33:19.9555691Z + "line": 1, +2026-10-07T09:33:19.9555959Z + "message": "unused var", +2026-10-07T09:33:19.9556259Z  "ruleId": "no-unused-vars", +2026-10-07T09:33:19.9556544Z  "severity": "warning", +2026-10-07T09:33:19.9556816Z  "tool": "eslint", +2026-10-07T09:33:19.9557035Z  }, +2026-10-07T09:33:19.9557215Z  ], +2026-10-07T09:33:19.9557615Z - "path": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-QYwNoy/diag.ts", +2026-10-07T09:33:19.9558281Z + "path": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-QYwNoy/diag.ts", +2026-10-07T09:33:19.9558649Z  }, +2026-10-07T09:33:19.9558836Z  ], +2026-10-07T09:33:19.9559021Z + "seq": 1, +2026-10-07T09:33:19.9559252Z  "source": "pi-lens", +2026-10-07T09:33:19.9559499Z + "ts": 1791365359162, +2026-10-07T09:33:19.9559722Z  "v": 1, +2026-10-07T09:33:19.9559901Z  }, +2026-10-07T09:33:19.9560066Z  ] +2026-10-07T09:33:19.9560228Z  +2026-10-07T09:33:19.9560306Z +2026-10-07T09:33:19.9560414Z Number of calls: 1 +2026-10-07T09:33:19.9560599Z  +2026-10-07T09:33:19.9560896Z  ❯ tests/clients/pipeline.test.ts:1138:17 +2026-10-07T09:33:19.9561183Z 1136| ); +2026-10-07T09:33:19.9561370Z 1137| +2026-10-07T09:33:19.9561615Z 1138| expect(emit).toHaveBeenCalledWith( +2026-10-07T09:33:19.9561916Z  | ^ +2026-10-07T09:33:19.9562189Z 1139| "pilens:diagnostics", +2026-10-07T09:33:19.9562465Z 1140| expect.objectContaining({ +2026-10-07T09:33:19.9562623Z +2026-10-07T09:33:19.9562995Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[23/61]⎯ +2026-10-07T09:33:19.9563170Z +2026-10-07T09:33:19.9564034Z  FAIL   default  tests/clients/pipeline.test.ts > Pipeline > Bus publish (#502 pilens:diagnostics) > emits an explicit clean [] event when a previously-dirty file's diagnostics clear on a later write +2026-10-07T09:33:19.9565089Z AssertionError: expected { v: 1, source: 'pi-lens', …(4) } to match object { files: [ ObjectContaining{…} ] } +2026-10-07T09:33:19.9565574Z (7 matching properties omitted from actual) +2026-10-07T09:33:19.9565744Z +2026-10-07T09:33:19.9565839Z - Expected +2026-10-07T09:33:19.9566040Z + Received +2026-10-07T09:33:19.9566139Z +2026-10-07T09:33:19.9566229Z  { +2026-10-07T09:33:19.9566411Z  "files": [ +2026-10-07T09:33:19.9566597Z  { +2026-10-07T09:33:19.9566803Z  "diagnostics": [], +2026-10-07T09:33:19.9567220Z - "path": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-J5tuCZ/flip.ts", +2026-10-07T09:33:19.9567761Z + "path": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-J5tuCZ/flip.ts", +2026-10-07T09:33:19.9568101Z  }, +2026-10-07T09:33:19.9568264Z  ], +2026-10-07T09:33:19.9568424Z  } +2026-10-07T09:33:19.9568508Z +2026-10-07T09:33:19.9568722Z  ❯ tests/clients/pipeline.test.ts:1243:34 +2026-10-07T09:33:19.9568997Z 1241| +2026-10-07T09:33:19.9569260Z 1242| expect(emit).toHaveBeenCalledTimes(2); +2026-10-07T09:33:19.9569621Z 1243| expect(emit.mock.calls[1][1]).toMatchObject({ +2026-10-07T09:33:19.9569962Z  | ^ +2026-10-07T09:33:19.9570367Z 1244| files: [ +2026-10-07T09:33:19.9570642Z 1245| expect.objectContaining({ +2026-10-07T09:33:19.9570798Z +2026-10-07T09:33:19.9570965Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[24/61]⎯ +2026-10-07T09:33:19.9571117Z +2026-10-07T09:33:19.9571807Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph service > builds a TS graph and surfaces importers/callers without duplicate edges +2026-10-07T09:33:19.9572641Z AssertionError: expected [] to include 'C:/Users/runneradmin/AppData/Local/Te…' +2026-10-07T09:33:19.9573178Z  ❯ tests/clients/review-graph.service.test.ts:83:40 +2026-10-07T09:33:19.9573639Z  81| const firstImpact = computeImpactCascade(firstGraph, aPath); +2026-10-07T09:33:19.9574214Z  82| expect(firstImpact.changedSymbols).toContain("alpha"); +2026-10-07T09:33:19.9574691Z  83| expect(firstImpact.directImporters).toContain(normalizeMapKey(bPath… +2026-10-07T09:33:19.9575113Z  | ^ +2026-10-07T09:33:19.9575522Z  84| expect(firstImpact.directCallers).toContain(normalizeMapKey(bPath)); +2026-10-07T09:33:19.9576001Z  85| expect(formatImpactCascade(firstImpact)).toContain("Impact cascade"… +2026-10-07T09:33:19.9576245Z +2026-10-07T09:33:19.9576417Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[25/61]⎯ +2026-10-07T09:33:19.9576568Z +2026-10-07T09:33:19.9577210Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph service > flags cycle-adjacent files and suppresses low-signal output +2026-10-07T09:33:19.9578060Z AssertionError: expected [ 'exported symbol changed' ] to include 'cycle-adjacent file' +2026-10-07T09:33:19.9578624Z  ❯ tests/clients/review-graph.service.test.ts:718:29 +2026-10-07T09:33:19.9579097Z 716| const graph = await buildOrUpdateGraph(env.tmpDir, [aPath], facts); +2026-10-07T09:33:19.9579530Z 717| const impact = computeImpactCascade(graph, aPath); +2026-10-07T09:33:19.9579938Z 718| expect(impact.riskFlags).toContain("cycle-adjacent file"); +2026-10-07T09:33:19.9580289Z  | ^ +2026-10-07T09:33:19.9580529Z 719| +2026-10-07T09:33:19.9580829Z 720| const loneResult = computeImpactCascade(graph, lonePath); +2026-10-07T09:33:19.9581044Z +2026-10-07T09:33:19.9581199Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[26/61]⎯ +2026-10-07T09:33:19.9581349Z +2026-10-07T09:33:19.9582047Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph service > updates cached graph incrementally when only the changed file mtime shifts +2026-10-07T09:33:19.9582902Z AssertionError: expected [] to include 'C:/Users/runneradmin/AppData/Local/Te…' +2026-10-07T09:33:19.9583666Z  ❯ tests/clients/review-graph.service.test.ts:772:36 +2026-10-07T09:33:19.9584146Z 770| expect(graph.buildGeneration).not.toBe(initialGraph.buildGeneratio… +2026-10-07T09:33:19.9584584Z 771| const impact = computeImpactCascade(graph, aPath); +2026-10-07T09:33:19.9585665Z 772| expect(impact.directImporters).toContain(normalizeMapKey(bPath)); +2026-10-07T09:33:19.9586153Z  | ^ +2026-10-07T09:33:19.9586969Z 773| expect(impact.directCallers).toContain(normalizeMapKey(bPath)); +2026-10-07T09:33:19.9587572Z 774| } finally { +2026-10-07T09:33:19.9587759Z +2026-10-07T09:33:19.9588021Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[27/61]⎯ +2026-10-07T09:33:19.9588280Z +2026-10-07T09:33:19.9589759Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph service > rebuilds indexes on workspace cache hit so impact cascade still works +2026-10-07T09:33:19.9591172Z AssertionError: expected [] to include 'C:/Users/runneradmin/AppData/Local/Te…' +2026-10-07T09:33:19.9592096Z  ❯ tests/clients/review-graph.service.test.ts:1039:35 +2026-10-07T09:33:19.9592642Z 1037| +2026-10-07T09:33:19.9593143Z 1038| const impact = computeImpactCascade(secondGraph, aPath); +2026-10-07T09:33:19.9593940Z 1039| expect(impact.directImporters).toContain(normalizeMapKey(bPath)); +2026-10-07T09:33:19.9594624Z  | ^ +2026-10-07T09:33:19.9595065Z 1040| } finally { +2026-10-07T09:33:19.9595421Z 1041| env.cleanup(); +2026-10-07T09:33:19.9595844Z +2026-10-07T09:33:19.9596114Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[28/61]⎯ +2026-10-07T09:33:19.9596362Z +2026-10-07T09:33:19.9597574Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph service > resolves a tree-sitter language import to a real file→file edge (#249) +2026-10-07T09:33:19.9598906Z AssertionError: expected false to be true // Object.is equality +2026-10-07T09:33:19.9599321Z +2026-10-07T09:33:19.9599474Z - Expected +2026-10-07T09:33:19.9599789Z + Received +2026-10-07T09:33:19.9599953Z +2026-10-07T09:33:19.9600089Z - true +2026-10-07T09:33:19.9600369Z + false +2026-10-07T09:33:19.9600521Z +2026-10-07T09:33:19.9600963Z  ❯ tests/clients/review-graph.service.test.ts:1115:28 +2026-10-07T09:33:19.9601735Z 1113| (e) => e.from === aId && e.to === bId && e.kind === "imports", +2026-10-07T09:33:19.9602542Z 1114| ); +2026-10-07T09:33:19.9602984Z 1115| expect(hasResolvedEdge).toBe(true); +2026-10-07T09:33:19.9603505Z  | ^ +2026-10-07T09:33:19.9604136Z 1116| // And it must NOT have fallen back to an unresolved module: node. +2026-10-07T09:33:19.9604882Z 1117| expect(graph.nodes.has("module:./b")).toBe(false); +2026-10-07T09:33:19.9605225Z +2026-10-07T09:33:19.9605501Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[29/61]⎯ +2026-10-07T09:33:19.9605756Z +2026-10-07T09:33:19.9607503Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph: ignore-gated node creation (#694) > never materializes an untracked-AND-gitignored import target as a file node, but keeps a tracked one matching the same pattern +2026-10-07T09:33:19.9609236Z AssertionError: expected false to be true // Object.is equality +2026-10-07T09:33:19.9609630Z +2026-10-07T09:33:19.9609787Z - Expected +2026-10-07T09:33:19.9610080Z + Received +2026-10-07T09:33:19.9610223Z +2026-10-07T09:33:19.9610350Z - true +2026-10-07T09:33:19.9610609Z + false +2026-10-07T09:33:19.9610758Z +2026-10-07T09:33:19.9611181Z  ❯ tests/clients/review-graph.service.test.ts:1186:38 +2026-10-07T09:33:19.9663177Z 1184| const vendorId = `file:${normalizeMapKey(vendorPath)}`; +2026-10-07T09:33:19.9663927Z 1185| expect(graph.nodes.has(genId)).toBe(false); +2026-10-07T09:33:19.9664570Z 1186| expect(graph.nodes.has(vendorId)).toBe(true); +2026-10-07T09:33:19.9665188Z  | ^ +2026-10-07T09:33:19.9665582Z 1187| +2026-10-07T09:33:19.9666043Z 1188| const aId = `file:${normalizeMapKey(aPath)}`; +2026-10-07T09:33:19.9666337Z +2026-10-07T09:33:19.9666539Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[30/61]⎯ +2026-10-07T09:33:19.9666914Z +2026-10-07T09:33:19.9667728Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph: ignore-gated node creation (#694) > degrades to unfiltered (no git binary reachable in the repo) without throwing +2026-10-07T09:33:19.9668615Z AssertionError: expected false to be true // Object.is equality +2026-10-07T09:33:19.9668860Z +2026-10-07T09:33:19.9668960Z - Expected +2026-10-07T09:33:19.9669153Z + Received +2026-10-07T09:33:19.9669255Z +2026-10-07T09:33:19.9669342Z - true +2026-10-07T09:33:19.9669528Z + false +2026-10-07T09:33:19.9669625Z +2026-10-07T09:33:19.9669891Z  ❯ tests/clients/review-graph.service.test.ts:1223:35 +2026-10-07T09:33:19.9670455Z 1221| // still admitted (status quo, not a regression from this change). +2026-10-07T09:33:19.9671646Z 1222| const genId = `file:${normalizeMapKey(genPath)}`; +2026-10-07T09:33:19.9672051Z 1223| expect(graph.nodes.has(genId)).toBe(true); +2026-10-07T09:33:19.9672387Z  | ^ +2026-10-07T09:33:19.9672665Z 1224| } finally { +2026-10-07T09:33:19.9672909Z 1225| env.cleanup(); +2026-10-07T09:33:19.9673038Z +2026-10-07T09:33:19.9673210Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[31/61]⎯ +2026-10-07T09:33:19.9673366Z +2026-10-07T09:33:19.9674258Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph - workspace-package bare specifiers (#775) > resolves a bare specifier pointing at a sibling workspace package to a file-level import edge +2026-10-07T09:33:19.9675185Z AssertionError: expected false to be true // Object.is equality +2026-10-07T09:33:19.9675420Z +2026-10-07T09:33:19.9675524Z - Expected +2026-10-07T09:33:19.9675723Z + Received +2026-10-07T09:33:19.9675830Z +2026-10-07T09:33:19.9675918Z - true +2026-10-07T09:33:19.9676099Z + false +2026-10-07T09:33:19.9676195Z +2026-10-07T09:33:19.9676448Z  ❯ tests/clients/review-graph.service.test.ts:1269:6 +2026-10-07T09:33:19.9676900Z 1267| (e) => e.from === aId && e.to === bId && e.kind === "imports", +2026-10-07T09:33:19.9677207Z 1268| ), +2026-10-07T09:33:19.9677426Z 1269| ).toBe(true); +2026-10-07T09:33:19.9677668Z  | ^ +2026-10-07T09:33:19.9677893Z 1270| } finally { +2026-10-07T09:33:19.9678121Z 1271| env.cleanup(); +2026-10-07T09:33:19.9678254Z +2026-10-07T09:33:19.9678414Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[32/61]⎯ +2026-10-07T09:33:19.9678556Z +2026-10-07T09:33:19.9679380Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph - workspace-package bare specifiers (#775) > resolves a workspace-package subpath import to a file within the package +2026-10-07T09:33:19.9680258Z AssertionError: expected false to be true // Object.is equality +2026-10-07T09:33:19.9680488Z +2026-10-07T09:33:19.9680588Z - Expected +2026-10-07T09:33:19.9680775Z + Received +2026-10-07T09:33:19.9680873Z +2026-10-07T09:33:19.9681228Z - true +2026-10-07T09:33:19.9681437Z + false +2026-10-07T09:33:19.9681531Z +2026-10-07T09:33:19.9681778Z  ❯ tests/clients/review-graph.service.test.ts:1307:6 +2026-10-07T09:33:19.9682218Z 1305| (e) => e.from === aId && e.to === bId && e.kind === "imports", +2026-10-07T09:33:19.9682503Z 1306| ), +2026-10-07T09:33:19.9682708Z 1307| ).toBe(true); +2026-10-07T09:33:19.9682943Z  | ^ +2026-10-07T09:33:19.9683161Z 1308| } finally { +2026-10-07T09:33:19.9683436Z 1309| env.cleanup(); +2026-10-07T09:33:19.9683714Z +2026-10-07T09:33:19.9683878Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[33/61]⎯ +2026-10-07T09:33:19.9684016Z +2026-10-07T09:33:19.9684691Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > bash grep searchReads registration > registers only the lines shown by the real bash host cap +2026-10-07T09:33:19.9685566Z AssertionError: expected "recordRead" to be called with arguments: [ ObjectContaining{…} ] +2026-10-07T09:33:19.9685869Z +2026-10-07T09:33:19.9685939Z Received: +2026-10-07T09:33:19.9686018Z +2026-10-07T09:33:19.9686128Z  1st recordRead call: +2026-10-07T09:33:19.9686243Z +2026-10-07T09:33:19.9686327Z  [ +2026-10-07T09:33:19.9686547Z - ObjectContaining { +2026-10-07T09:33:19.9686807Z - "effectiveLimit": 2000, +2026-10-07T09:33:19.9687576Z - "effectiveOffset": 1001, +2026-10-07T09:33:19.9687818Z + { +2026-10-07T09:33:19.9688035Z + "effectiveLimit": 3001, +2026-10-07T09:33:19.9688285Z + "effectiveOffset": 1, +2026-10-07T09:33:19.9688548Z + "expandedByLsp": false, +2026-10-07T09:33:19.9689031Z  "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-2802-bash-cap-p68r14\\large.ts", +2026-10-07T09:33:19.9689437Z + "requestedLimit": 3001, +2026-10-07T09:33:19.9689686Z + "requestedOffset": 1, +2026-10-07T09:33:19.9689948Z + "timestamp": 1791365352286, +2026-10-07T09:33:19.9690206Z + "turnIndex": 0, +2026-10-07T09:33:19.9690439Z + "writeIndex": 0, +2026-10-07T09:33:19.9690646Z  }, +2026-10-07T09:33:19.9690811Z  ] +2026-10-07T09:33:19.9690971Z  +2026-10-07T09:33:19.9691059Z +2026-10-07T09:33:19.9691170Z Number of calls: 1 +2026-10-07T09:33:19.9691354Z  +2026-10-07T09:33:19.9691691Z  ❯ tests/clients/runtime-tool-result.test.ts:501:23 +2026-10-07T09:33:19.9692032Z 499| } as never); +2026-10-07T09:33:19.9692235Z 500| +2026-10-07T09:33:19.9692495Z 501| expect(recordRead).toHaveBeenCalledWith( +2026-10-07T09:33:19.9692814Z  | ^ +2026-10-07T09:33:19.9693094Z 502| expect.objectContaining({ +2026-10-07T09:33:19.9693350Z 503| filePath, +2026-10-07T09:33:19.9693471Z +2026-10-07T09:33:19.9693629Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[34/61]⎯ +2026-10-07T09:33:19.9693765Z +2026-10-07T09:33:19.9694456Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > bash grep searchReads registration > does not mark a content-identical opaque rewrite as authored +2026-10-07T09:33:19.9695232Z AssertionError: expected false to be true // Object.is equality +2026-10-07T09:33:19.9695470Z +2026-10-07T09:33:19.9695570Z - Expected +2026-10-07T09:33:19.9695749Z + Received +2026-10-07T09:33:19.9695841Z +2026-10-07T09:33:19.9695919Z - true +2026-10-07T09:33:19.9696098Z + false +2026-10-07T09:33:19.9696183Z +2026-10-07T09:33:19.9696428Z  ❯ tests/clients/runtime-tool-result.test.ts:615:6 +2026-10-07T09:33:19.9696741Z 613| expect( +2026-10-07T09:33:19.9697088Z 614| (runtime.readGuard as any).unchangedThisSession.has(filePath), +2026-10-07T09:33:19.9697419Z 615| ).toBe(true); +2026-10-07T09:33:19.9697638Z  | ^ +2026-10-07T09:33:19.9697994Z 616| expect(runtime.readGuard.checkEdit(filePath, [1, 1]).action).toBe( +2026-10-07T09:33:19.9698331Z 617| "block", +2026-10-07T09:33:19.9698446Z +2026-10-07T09:33:19.9698595Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[35/61]⎯ +2026-10-07T09:33:19.9698742Z +2026-10-07T09:33:19.9699438Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > monorepo turn-state cwd alignment > writes turn state under workspace root, not the nested language root +2026-10-07T09:33:19.9700311Z AssertionError: expected 0 to be greater than 0 +2026-10-07T09:33:19.9700751Z  ❯ tests/clients/runtime-tool-result.test.ts:1542:25 +2026-10-07T09:33:19.9701476Z 1540| const turnState = cacheManager.readTurnState(workspaceRoot); +2026-10-07T09:33:19.9701886Z 1541| const files = Object.keys(turnState.files); +2026-10-07T09:33:19.9702229Z 1542| expect(files.length).toBeGreaterThan(0); +2026-10-07T09:33:19.9702547Z  | ^ +2026-10-07T09:33:19.9702851Z 1543| expect(files[0]).toContain("main.go"); +2026-10-07T09:33:19.9703101Z 1544| +2026-10-07T09:33:19.9703640Z +2026-10-07T09:33:19.9703802Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[36/61]⎯ +2026-10-07T09:33:19.9703954Z +2026-10-07T09:33:19.9704621Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > monorepo turn-state cwd alignment > still dispatches pipeline to the language root for linting +2026-10-07T09:33:19.9705502Z AssertionError: expected "vi.fn()" to be called with arguments: [ ObjectContaining{…}, Anything ] +2026-10-07T09:33:19.9705808Z +2026-10-07T09:33:19.9705874Z Received: +2026-10-07T09:33:19.9705951Z +2026-10-07T09:33:19.9706053Z  1st vi.fn() call: +2026-10-07T09:33:19.9706159Z +2026-10-07T09:33:19.9706240Z  [ +2026-10-07T09:33:19.9706454Z - ObjectContaining { +2026-10-07T09:33:19.9707039Z - "cwd": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-monorepo-dispatch-njPgdJ\\workspace\\platform\\svc\\go\\daemon", +2026-10-07T09:33:19.9707479Z + { +2026-10-07T09:33:19.9707715Z + "allowAutonomousWriters": true, +2026-10-07T09:33:19.9708010Z + "autofixMode": "deferred", +2026-10-07T09:33:19.9708499Z + "cwd": "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pi-lens-monorepo-dispatch-njPgdJ\\workspace", +2026-10-07T09:33:19.9708915Z + "dbg": [Function dbg], +2026-10-07T09:33:19.9709533Z  "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-monorepo-dispatch-njPgdJ\\workspace\\platform\\svc\\go\\daemon\\main.go", +2026-10-07T09:33:19.9710055Z + "getFlag": [Function getFlag], +2026-10-07T09:33:19.9710333Z + "getFlagSource": undefined, +2026-10-07T09:33:19.9710591Z + "modifiedRanges": [ +2026-10-07T09:33:19.9710796Z + { +2026-10-07T09:33:19.9710991Z + "end": 1, +2026-10-07T09:33:19.9711221Z + "start": 1, +2026-10-07T09:33:19.9711417Z + }, +2026-10-07T09:33:19.9711591Z + ], +2026-10-07T09:33:19.9711870Z + "nextWriteIndex": [Function nextWriteIndex], +2026-10-07T09:33:19.9712210Z + "onFixRunLoss": [Function onFixRunLoss], +2026-10-07T09:33:19.9712578Z + "onWordIndexUpdated": [Function onWordIndexUpdated], +2026-10-07T09:33:19.9713179Z + "projectRoot": "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pi-lens-monorepo-dispatch-njPgdJ\\workspace", +2026-10-07T09:33:19.9713638Z + "seqState": { +2026-10-07T09:33:19.9713976Z + "getFilesChangedSince": [Function getFilesChangedSince], +2026-10-07T09:33:19.9714347Z + "projectSeq": [Function projectSeq], +2026-10-07T09:33:19.9714588Z + }, +2026-10-07T09:33:19.9714800Z + "sessionGeneration": { +2026-10-07T09:33:19.9715042Z + "branchEpoch": 0, +2026-10-07T09:33:19.9715286Z + "generation": 31, +2026-10-07T09:33:19.9715574Z + "guardedWrite": [Function guardedWrite], +2026-10-07T09:33:19.9715889Z + "isCurrent": [Function isCurrent], +2026-10-07T09:33:19.9716278Z + "scopeId": 31, +2026-10-07T09:33:19.9716589Z + Symbol(pi-lens.session-scope.captured.v1): { +2026-10-07T09:33:19.9716877Z + "branch": { +2026-10-07T09:33:19.9717114Z + "generation": 0, +2026-10-07T09:33:19.9717403Z + "guardedWrite": [Function guardedWrite], +2026-10-07T09:33:19.9717722Z + "isCurrent": [Function isCurrent], +2026-10-07T09:33:19.9717968Z + }, +2026-10-07T09:33:19.9718177Z + "scope": Scope { +2026-10-07T09:33:19.9718414Z + "branch": { +2026-10-07T09:33:19.9718670Z + "bump": [Function bump], +2026-10-07T09:33:19.9718969Z + "capture": [Function capture], +2026-10-07T09:33:19.9719259Z + "current": [Function read], +2026-10-07T09:33:19.9720211Z + "name": "session-branch", +2026-10-07T09:33:19.9720469Z  }, +2026-10-07T09:33:19.9720658Z - Anything, +2026-10-07T09:33:19.9720878Z + "cells": Map {}, +2026-10-07T09:33:19.9721157Z + "coordinatorId": undefined, +2026-10-07T09:33:19.9721718Z + "life": { +2026-10-07T09:33:19.9721972Z + "bump": [Function bump], +2026-10-07T09:33:19.9722277Z + "capture": [Function capture], +2026-10-07T09:33:19.9722570Z + "current": [Function read], +2026-10-07T09:33:19.9722863Z + "name": "runtime-session", +2026-10-07T09:33:19.9723099Z + }, +2026-10-07T09:33:19.9723347Z + "parentScopeId": undefined, +2026-10-07T09:33:19.9723631Z + "retiredReason": undefined, +2026-10-07T09:33:19.9723894Z + "role": "primary", +2026-10-07T09:33:19.9724152Z + "scopeId": 31, +2026-10-07T09:33:19.9724361Z + }, +2026-10-07T09:33:19.9724546Z + }, +2026-10-07T09:33:19.9724730Z + }, +2026-10-07T09:33:19.9724932Z + "signal": undefined, +2026-10-07T09:33:19.9725164Z + "telemetry": { +2026-10-07T09:33:19.9725396Z + "model": "unknown", +2026-10-07T09:33:19.9725637Z + "modelId": "", +2026-10-07T09:33:19.9725867Z + "orderTurn": 6, +2026-10-07T09:33:19.9726096Z + "provider": "", +2026-10-07T09:33:19.9726358Z + "sessionId": "lens-muxwoiaq", +2026-10-07T09:33:19.9726619Z + "turnIndex": 1, +2026-10-07T09:33:19.9726853Z + "writeIndex": 1, +2026-10-07T09:33:19.9727062Z + }, +2026-10-07T09:33:19.9727268Z + "toolName": "edit", +2026-10-07T09:33:19.9727652Z + "turnEndCascadeSettleStart": [Function turnEndCascadeSettleStart], +2026-10-07T09:33:19.9728011Z + "wordIndex": null, +2026-10-07T09:33:19.9728206Z + }, +2026-10-07T09:33:19.9728367Z + { +2026-10-07T09:33:19.9728560Z + "biomeClient": {}, +2026-10-07T09:33:19.9728795Z + "fixedThisTurn": { +2026-10-07T09:33:19.9729031Z + "add": [Function add], +2026-10-07T09:33:19.9729293Z + "clear": [Function clear], +2026-10-07T09:33:19.9729573Z + "delete": [Function delete], +2026-10-07T09:33:19.9729843Z + "has": [Function has], +2026-10-07T09:33:19.9730050Z + }, +2026-10-07T09:33:19.9730330Z + "getFormatService": [Function getFormatService], +2026-10-07T09:33:19.9730630Z + "metricsClient": {}, +2026-10-07T09:33:19.9730875Z + "ruffClient": {}, +2026-10-07T09:33:19.9731064Z + }, +2026-10-07T09:33:19.9731237Z  ] +2026-10-07T09:33:19.9731385Z  +2026-10-07T09:33:19.9731464Z +2026-10-07T09:33:19.9731566Z Number of calls: 1 +2026-10-07T09:33:19.9731881Z  +2026-10-07T09:33:19.9732213Z  ❯ tests/clients/runtime-tool-result.test.ts:1621:35 +2026-10-07T09:33:19.9732677Z 1619| // Pipeline must receive the language root (Go module dir) as cwd, +2026-10-07T09:33:19.9733123Z 1620| // not the workspace root — linters need to run from there. +2026-10-07T09:33:19.9733536Z 1621| expect(vi.mocked(runPipeline)).toHaveBeenCalledWith( +2026-10-07T09:33:19.9733883Z  | ^ +2026-10-07T09:33:19.9734179Z 1622| expect.objectContaining({ +2026-10-07T09:33:19.9734437Z 1623| cwd: goModuleDir, +2026-10-07T09:33:19.9734578Z +2026-10-07T09:33:19.9734727Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[37/61]⎯ +2026-10-07T09:33:19.9734873Z +2026-10-07T09:33:19.9735777Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > runtime-tool-result writers across a replacement (#3596) > a session-1 edit parked on its analysers credits nothing in session 2 +2026-10-07T09:33:19.9736761Z AssertionError: expected { verdict: 'block', …(4) } to deeply equal { verdict: 'block', …(4) } +2026-10-07T09:33:19.9737058Z +2026-10-07T09:33:19.9737153Z - Expected +2026-10-07T09:33:19.9737340Z + Received +2026-10-07T09:33:19.9737438Z +2026-10-07T09:33:19.9737511Z  { +2026-10-07T09:33:19.9737707Z  "dispatched": 0, +2026-10-07T09:33:19.9737924Z  "falseBlocks": [ +2026-10-07T09:33:19.9738162Z  "superseded:tool-result", +2026-10-07T09:33:19.9738370Z  ], +2026-10-07T09:33:19.9738558Z - "receipts": [ +2026-10-07T09:33:19.9738970Z - "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-3596-parked-drJlJ1\\edit.ts", +2026-10-07T09:33:19.9739296Z - ], +2026-10-07T09:33:19.9739497Z + "receipts": [], +2026-10-07T09:33:19.9739712Z  "turnFiles": [], +2026-10-07T09:33:19.9739944Z  "verdict": "block", +2026-10-07T09:33:19.9740151Z  } +2026-10-07T09:33:19.9740231Z +2026-10-07T09:33:19.9740488Z  ❯ tests/clients/runtime-tool-result.test.ts:2105:8 +2026-10-07T09:33:19.9740942Z 2103| .find((group) => group.kind === "session-scope-read-dropped") +2026-10-07T09:33:19.9741330Z 2104| ?.latestReasons.map((r) => r.subject), +2026-10-07T09:33:19.9741853Z 2105| }).toEqual({ +2026-10-07T09:33:19.9742078Z  | ^ +2026-10-07T09:33:19.9742322Z 2106| verdict: "block", +2026-10-07T09:33:19.9742560Z 2107| turnFiles: [], +2026-10-07T09:33:19.9742999Z  ❯ acrossReplacement tests/clients/runtime-tool-result.test.ts:2051:4 +2026-10-07T09:33:19.9743518Z  ❯ tests/clients/runtime-tool-result.test.ts:2085:3 +2026-10-07T09:33:19.9743733Z +2026-10-07T09:33:19.9743892Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[38/61]⎯ +2026-10-07T09:33:19.9744039Z +2026-10-07T09:33:19.9744879Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > runtime-tool-result writers across a replacement (#3596) > a session-1 pipeline settling after the replacement queues nothing in session 2 +2026-10-07T09:33:19.9745829Z AssertionError: expected { queued: +0, …(3) } to deeply equal { queued: +0, …(3) } +2026-10-07T09:33:19.9746100Z +2026-10-07T09:33:19.9746190Z - Expected +2026-10-07T09:33:19.9746376Z + Received +2026-10-07T09:33:19.9746471Z +2026-10-07T09:33:19.9746547Z  { +2026-10-07T09:33:19.9746726Z  "queued": 0, +2026-10-07T09:33:19.9746957Z  "sideInTurnState": false, +2026-10-07T09:33:19.9747213Z - "sideReceipt": true, +2026-10-07T09:33:19.9747463Z + "sideReceipt": false, +2026-10-07T09:33:19.9747821Z  "summaryEmpty": true, +2026-10-07T09:33:19.9748023Z  } +2026-10-07T09:33:19.9748097Z +2026-10-07T09:33:19.9748347Z  ❯ tests/clients/runtime-tool-result.test.ts:2166:8 +2026-10-07T09:33:19.9748652Z 2164| ), +2026-10-07T09:33:19.9748951Z 2165| summaryEmpty: runtime.turnSummary.isEmpty(), +2026-10-07T09:33:19.9749242Z 2166| }).toEqual({ +2026-10-07T09:33:19.9749461Z  | ^ +2026-10-07T09:33:19.9749681Z 2167| queued: 0, +2026-10-07T09:33:19.9749925Z 2168| sideInTurnState: false, +2026-10-07T09:33:19.9750375Z  ❯ acrossReplacement tests/clients/runtime-tool-result.test.ts:2051:4 +2026-10-07T09:33:19.9751188Z  ❯ tests/clients/runtime-tool-result.test.ts:2120:3 +2026-10-07T09:33:19.9751518Z +2026-10-07T09:33:19.9751891Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[39/61]⎯ +2026-10-07T09:33:19.9752106Z +2026-10-07T09:33:19.9753167Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > runtime-tool-result inline behavior warnings > appends project change log entries for analyzed agent edits +2026-10-07T09:33:19.9754366Z AssertionError: expected [] to have a length of 1 but got +0 +2026-10-07T09:33:19.9754776Z +2026-10-07T09:33:19.9754898Z - Expected +2026-10-07T09:33:19.9755141Z + Received +2026-10-07T09:33:19.9755279Z +2026-10-07T09:33:19.9755383Z - 1 +2026-10-07T09:33:19.9755583Z + 0 +2026-10-07T09:33:19.9755691Z +2026-10-07T09:33:19.9756042Z  ❯ tests/clients/runtime-tool-result.test.ts:2359:20 +2026-10-07T09:33:19.9756447Z 2357| +2026-10-07T09:33:19.9756825Z 2358| const changes = readChangesSince(env.tmpDir, 0); +2026-10-07T09:33:19.9757308Z 2359| expect(changes).toHaveLength(1); +2026-10-07T09:33:19.9757691Z  | ^ +2026-10-07T09:33:19.9758112Z 2360| expect(changes[0]).toMatchObject({ +2026-10-07T09:33:19.9758393Z 2361| seq: 1, +2026-10-07T09:33:19.9758502Z +2026-10-07T09:33:19.9758660Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[40/61]⎯ +2026-10-07T09:33:19.9758802Z +2026-10-07T09:33:19.9759561Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > runtime-tool-result inline behavior warnings > recovers opaque multi-file bash changes without granting ownership +2026-10-07T09:33:19.9760623Z AssertionError: expected [] to deeply equal ArrayContaining{…} +2026-10-07T09:33:19.9760985Z +2026-10-07T09:33:19.9761112Z - Expected +2026-10-07T09:33:19.9761388Z + Received +2026-10-07T09:33:19.9761526Z +2026-10-07T09:33:19.9761894Z - ArrayContaining [ +2026-10-07T09:33:19.9762262Z - ObjectContaining { +2026-10-07T09:33:19.9763234Z - "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-3226-opaque-ownership-hxIsvN\\extracted\\existing.js", +2026-10-07T09:33:19.9764064Z - "source": "opaque-script", +2026-10-07T09:33:19.9764426Z - }, +2026-10-07T09:33:19.9764769Z - ObjectContaining { +2026-10-07T09:33:19.9765690Z - "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-3226-opaque-ownership-hxIsvN\\extracted\\created.js", +2026-10-07T09:33:19.9766476Z - "source": "opaque-script", +2026-10-07T09:33:19.9766827Z - }, +2026-10-07T09:33:19.9767151Z - ObjectContaining { +2026-10-07T09:33:19.9768000Z - "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-3226-opaque-ownership-hxIsvN\\direct.js", +2026-10-07T09:33:19.9768746Z - "source": "agent-write", +2026-10-07T09:33:19.9769089Z - }, +2026-10-07T09:33:19.9769351Z - ] +2026-10-07T09:33:19.9769822Z + [] +2026-10-07T09:33:19.9769962Z +2026-10-07T09:33:19.9770398Z  ❯ tests/clients/runtime-tool-result.test.ts:2712:44 +2026-10-07T09:33:19.9771103Z 2710| expect(fs.readFileSync(filePath)).toEqual(bytes); +2026-10-07T09:33:19.9771569Z 2711| } +2026-10-07T09:33:19.9772043Z 2712| expect(readChangesSince(env.tmpDir, 0)).toEqual( +2026-10-07T09:33:19.9772598Z  | ^ +2026-10-07T09:33:19.9773041Z 2713| expect.arrayContaining([ +2026-10-07T09:33:19.9773486Z 2714| expect.objectContaining({ +2026-10-07T09:33:19.9773725Z +2026-10-07T09:33:19.9773980Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[41/61]⎯ +2026-10-07T09:33:19.9774214Z +2026-10-07T09:33:19.9775751Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > runtime-tool-result inline behavior warnings > publishes pilens:format:queued only when deferFormat reports a NEW queue entry (#673) +2026-10-07T09:33:19.9777529Z AssertionError: expected "vi.fn()" to be called with arguments: [ 'pilens:format:queued', …(1) ] +2026-10-07T09:33:19.9778060Z +2026-10-07T09:33:19.9778152Z Received: +2026-10-07T09:33:19.9778287Z +2026-10-07T09:33:19.9778453Z  1st vi.fn() call: +2026-10-07T09:33:19.9778617Z +2026-10-07T09:33:19.9778758Z  [ +2026-10-07T09:33:19.9779103Z  "pilens:format:queued", +2026-10-07T09:33:19.9779547Z - ObjectContaining { +2026-10-07T09:33:19.9780424Z - "filePath": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-runtime-tool-format-queued-TgPpZV/src/app.ts", +2026-10-07T09:33:19.9781122Z + { +2026-10-07T09:33:19.9782115Z + "cwd": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-runtime-tool-format-queued-TgPpZV", +2026-10-07T09:33:19.9783365Z + "filePath": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-runtime-tool-format-queued-TgPpZV/src/app.ts", +2026-10-07T09:33:19.9784133Z + "kinds": [ +2026-10-07T09:33:19.9784481Z + "autofix", +2026-10-07T09:33:19.9784804Z + "format", +2026-10-07T09:33:19.9785106Z + ], +2026-10-07T09:33:19.9785431Z  "source": "pi-lens", +2026-10-07T09:33:19.9785814Z  "tool": "edit", +2026-10-07T09:33:19.9786126Z  "v": 1, +2026-10-07T09:33:19.9786396Z  }, +2026-10-07T09:33:19.9786655Z  ] +2026-10-07T09:33:19.9786889Z  +2026-10-07T09:33:19.9787018Z +2026-10-07T09:33:19.9787175Z Number of calls: 1 +2026-10-07T09:33:19.9787468Z  +2026-10-07T09:33:19.9788022Z  ❯ tests/clients/runtime-tool-result.test.ts:3104:17 +2026-10-07T09:33:19.9788554Z 3102| +2026-10-07T09:33:19.9788973Z 3103| expect(emit).toHaveBeenCalledTimes(1); +2026-10-07T09:33:19.9789528Z 3104| expect(emit).toHaveBeenCalledWith( +2026-10-07T09:33:19.9789993Z  | ^ +2026-10-07T09:33:19.9790416Z 3105| "pilens:format:queued", +2026-10-07T09:33:19.9790864Z 3106| expect.objectContaining({ +2026-10-07T09:33:19.9791112Z +2026-10-07T09:33:19.9791363Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[42/61]⎯ +2026-10-07T09:33:19.9791599Z +2026-10-07T09:33:19.9793130Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > path attribution across tool_call/tool_result (#1642) > resolves a relative tool_result path against the call's own worktree cwd, never the parent checkout +2026-10-07T09:33:19.9794823Z AssertionError: expected "vi.fn()" to be called with arguments: [ StringContaining{…} ] +2026-10-07T09:33:19.9795300Z +2026-10-07T09:33:19.9795388Z Received: +2026-10-07T09:33:19.9795520Z +2026-10-07T09:33:19.9795689Z  1st vi.fn() call: +2026-10-07T09:33:19.9796019Z +2026-10-07T09:33:19.9796158Z  [ +2026-10-07T09:33:19.9797350Z - StringContaining "tool_result: skipping gitignored file C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-worktree-attribution-6yVOH6\\.worktrees\\wt1\\src\\app.ts", +2026-10-07T09:33:19.9799087Z + "tool_call fired for: C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-worktree-attribution-6yVOH6\\.worktrees\\wt1\\src\\app.ts (exists: true)", +2026-10-07T09:33:19.9799929Z  ] +2026-10-07T09:33:19.9800063Z +2026-10-07T09:33:19.9800214Z  2nd vi.fn() call: +2026-10-07T09:33:19.9800367Z +2026-10-07T09:33:19.9800497Z  [ +2026-10-07T09:33:19.9801673Z - StringContaining "tool_result: skipping gitignored file C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-worktree-attribution-6yVOH6\\.worktrees\\wt1\\src\\app.ts", +2026-10-07T09:33:19.9804411Z + "path_attribution_missing: no recorded resolution basis for toolCallId=call-1642, refusing relative path src/app.ts (would have guessed C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pi-lens-worktree-attribution-6yVOH6\\src\\app.ts)", +2026-10-07T09:33:19.9805650Z  ] +2026-10-07T09:33:19.9805889Z  +2026-10-07T09:33:19.9806012Z +2026-10-07T09:33:19.9806162Z Number of calls: 2 +2026-10-07T09:33:19.9806450Z  +2026-10-07T09:33:19.9807003Z  ❯ tests/clients/runtime-tool-result.test.ts:4193:16 +2026-10-07T09:33:19.9807854Z 4191| // and correctly recognized IT as gitignored — proving the basis +2026-10-07T09:33:19.9808653Z 4192| // correction, not a stale skip flag, is what protects the parent. +2026-10-07T09:33:19.9809299Z 4193| expect(dbg).toHaveBeenCalledWith( +2026-10-07T09:33:19.9809776Z  | ^ +2026-10-07T09:33:19.9810227Z 4194| expect.stringContaining( +2026-10-07T09:33:19.9810835Z 4195| `tool_result: skipping gitignored file ${worktreeFile}`, +2026-10-07T09:33:19.9811212Z +2026-10-07T09:33:19.9811481Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[43/61]⎯ +2026-10-07T09:33:19.9811719Z +2026-10-07T09:33:19.9813180Z  FAIL   default  tests/clients/installer/installer-lifecycle.integration.test.ts > installer process lifecycle (#945) > keeps a spawn-verified install whose probe came back inconclusive (#2722) +2026-10-07T09:33:19.9815657Z AssertionError: {"value":"C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-installer-945-n02GLZ\\home\\tools\\node_modules\\.bin\\svelteserver.cmd","log":"","attempt":{"outcome":"succeeded","at":1791365422048}} +2026-10-07T09:33:19.9816975Z : expected 'succeeded' to be 'failed' // Object.is equality +2026-10-07T09:33:19.9817307Z +2026-10-07T09:33:19.9817504Z Expected: "failed" +2026-10-07T09:33:19.9817963Z Received: "succeeded" +2026-10-07T09:33:19.9818348Z +2026-10-07T09:33:19.9818947Z  ❯ tests/clients/installer/installer-lifecycle.integration.test.ts:418:49 +2026-10-07T09:33:19.9821221Z 416| attempt?: { outcome?: string; reason?: string }; +2026-10-07T09:33:19.9821752Z 417| }; +2026-10-07T09:33:19.9823219Z 418| expect(kept.attempt?.outcome, result.stdout).toBe("failed"); +2026-10-07T09:33:19.9824042Z  | ^ +2026-10-07T09:33:19.9824470Z 419| }, +2026-10-07T09:33:19.9824827Z 420| REAL_PROCESS_TIMEOUT_MS, +2026-10-07T09:33:19.9825073Z +2026-10-07T09:33:19.9825337Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[44/61]⎯ +2026-10-07T09:33:19.9825568Z +2026-10-07T09:33:19.9827100Z  FAIL   default  tests/clients/installer/installer-lifecycle.integration.test.ts > installer process lifecycle (#945) > deletes an inconclusive install whose tree is NOT intact (R2-F2) +2026-10-07T09:33:19.9829437Z AssertionError: {"value":"C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-installer-945-YRD21u\\home\\tools\\node_modules\\.bin\\svelteserver.cmd","log":"","attempt":{"outcome":"succeeded","at":1791365426559}} +2026-10-07T09:33:19.9830724Z : expected true to be false // Object.is equality +2026-10-07T09:33:19.9831008Z +2026-10-07T09:33:19.9831157Z - Expected +2026-10-07T09:33:19.9831460Z + Received +2026-10-07T09:33:19.9831606Z +2026-10-07T09:33:19.9831747Z - false +2026-10-07T09:33:19.9832006Z + true +2026-10-07T09:33:19.9832152Z +2026-10-07T09:33:19.9832752Z  ❯ tests/clients/installer/installer-lifecycle.integration.test.ts:452:6 +2026-10-07T09:33:19.9833666Z 450| fs.existsSync(path.join(nodeModules, "svelte-language-server")), +2026-10-07T09:33:19.9834273Z 451| result.stdout, +2026-10-07T09:33:19.9834667Z 452| ).toBe(false); +2026-10-07T09:33:19.9835038Z  | ^ +2026-10-07T09:33:19.9835521Z 453| const payload = JSON.parse(result.stdout) as { +2026-10-07T09:33:19.9836082Z 454| attempt?: { outcome?: string }; +2026-10-07T09:33:19.9836339Z +2026-10-07T09:33:19.9836606Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[45/61]⎯ +2026-10-07T09:33:19.9836856Z +2026-10-07T09:33:19.9837871Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > treats delayed shell-backed startup failure as launch failure +2026-10-07T09:33:19.9839551Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > resolves bare commands through where before spawning +2026-10-07T09:33:19.9841570Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > isCmdShimValid > returns true when the shim target exists +2026-10-07T09:33:19.9843395Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > isCmdShimValid > returns false when the shim target is missing +2026-10-07T09:33:19.9845192Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > isCmdShimValid > returns true for non-npm shims +2026-10-07T09:33:19.9846974Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > isCmdShimValid > returns true when the file cannot be read +2026-10-07T09:33:19.9848653Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > isCmdShimValid > handles .mjs targets +2026-10-07T09:33:19.9850325Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > rejects immediately for an invalid .cmd shim without spawning +2026-10-07T09:33:19.9853485Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > bypasses .ps1 to .cmd sibling on Windows +2026-10-07T09:33:19.9855116Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > bypasses .ps1 to direct node execution when .cmd sibling is missing +2026-10-07T09:33:19.9856128Z Error: Hook timed out in 10000ms. +2026-10-07T09:33:19.9857070Z If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". +2026-10-07T09:33:19.9858146Z  ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 +2026-10-07T09:33:19.9858727Z 174| */ +2026-10-07T09:33:19.9859458Z 175| export function useTrackedTempDirs(...prefixes: string[]): void { +2026-10-07T09:33:19.9860359Z 176| afterEach(async () => { +2026-10-07T09:33:19.9860755Z  | ^ +2026-10-07T09:33:19.9861380Z 177| for (const prefix of prefixes) await cleanupTestEnvironmentsDrained(… +2026-10-07T09:33:19.9861987Z 178| }); +2026-10-07T09:33:19.9862488Z  ❯ tests/clients/lsp/launch.test.ts:47:2 +2026-10-07T09:33:19.9862806Z +2026-10-07T09:33:19.9863076Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[46/61]⎯ +2026-10-07T09:33:19.9863324Z +2026-10-07T09:33:19.9864245Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > resolves bare commands through where before spawning +2026-10-07T09:33:19.9865199Z Error: Test timed out in 5000ms. +2026-10-07T09:33:19.9866124Z If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". +2026-10-07T09:33:19.9867005Z  ❯ tests/clients/lsp/launch.test.ts:177:40 +2026-10-07T09:33:19.9867469Z 175| +2026-10-07T09:33:19.9867784Z 176| // lane: windows-vitest +2026-10-07T09:33:19.9868243Z 177| it.runIf(process.platform === "win32")( +2026-10-07T09:33:19.9868760Z  | ^ +2026-10-07T09:33:19.9869346Z 178| "resolves bare commands through where before spawning", +2026-10-07T09:33:19.9869845Z 179| async () => { +2026-10-07T09:33:19.9870039Z +2026-10-07T09:33:19.9870291Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[47/61]⎯ +2026-10-07T09:33:19.9870513Z +2026-10-07T09:33:19.9871326Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > bypasses .ps1 to .cmd sibling on Windows +2026-10-07T09:33:19.9872912Z Error: LSP server C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-ps1-OwHVuU\test.ps1 exited immediately with code 1. The binary may be missing or corrupted. +2026-10-07T09:33:19.9874222Z  ❯ MockChildProcess. clients/lsp/launch.js:616:28 +2026-10-07T09:33:19.9875012Z 614| ? `npm .cmd shim failed (underlying binary not… +2026-10-07T09:33:19.9875673Z 615| : `The binary may be missing or corrupted.`; +2026-10-07T09:33:19.9876322Z 616| reject(new Error(`LSP server ${command} exited imm… +2026-10-07T09:33:19.9876884Z  | ^ +2026-10-07T09:33:19.9877296Z 617| } +2026-10-07T09:33:19.9877648Z 618| }); +2026-10-07T09:33:19.9878294Z  ❯ tests/clients/lsp/launch.test.ts:150:13 +2026-10-07T09:33:19.9878691Z +2026-10-07T09:33:19.9879026Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[48/61]⎯ +2026-10-07T09:33:19.9879365Z +2026-10-07T09:33:19.9880910Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > bypasses .ps1 to direct node execution when .cmd sibling is missing +2026-10-07T09:33:19.9897696Z AssertionError: expected undefined to be 'C:\hostedtoolcache\windows\node\22.23…' // Object.is equality +2026-10-07T09:33:19.9898304Z +2026-10-07T09:33:19.9898475Z - Expected: +2026-10-07T09:33:19.9898894Z "C:\\hostedtoolcache\\windows\\node\\22.23.3\\x64\\node.exe" +2026-10-07T09:33:19.9899207Z +2026-10-07T09:33:19.9899353Z + Received: +2026-10-07T09:33:19.9899612Z undefined +2026-10-07T09:33:19.9899736Z +2026-10-07T09:33:19.9900120Z  ❯ tests/clients/lsp/launch.test.ts:353:27 +2026-10-07T09:33:19.9900932Z 351| const result = await launchPromise; +2026-10-07T09:33:19.9901348Z 352| +2026-10-07T09:33:19.9901995Z 353| expect(spawnedCommand).toBe(process.execPath); +2026-10-07T09:33:19.9902543Z  | ^ +2026-10-07T09:33:19.9903046Z 354| expect(spawnedArgs).toContain(jsTarget); +2026-10-07T09:33:19.9903593Z 355| expect(spawnedArgs).toContain("start"); +2026-10-07T09:33:19.9903882Z +2026-10-07T09:33:19.9904143Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[49/61]⎯ +2026-10-07T09:33:19.9904384Z +2026-10-07T09:33:19.9905613Z  FAIL   default  tests/clients/dispatch/runners/go-vet.test.ts > go-vet runner > vets the package containing the file from the module root (not the file in isolation) +2026-10-07T09:33:19.9907266Z AssertionError: expected { timeout: 30000, cwd: 'D:\m' } to match object { cwd: '/m', timeout: 30000 } +2026-10-07T09:33:19.9907823Z +2026-10-07T09:33:19.9907981Z - Expected +2026-10-07T09:33:19.9908285Z + Received +2026-10-07T09:33:19.9908442Z +2026-10-07T09:33:19.9908571Z  { +2026-10-07T09:33:19.9908869Z - "cwd": "/m", +2026-10-07T09:33:19.9909216Z + "cwd": "D:\\m", +2026-10-07T09:33:19.9909583Z  "timeout": 30000, +2026-10-07T09:33:19.9909897Z  } +2026-10-07T09:33:19.9910027Z +2026-10-07T09:33:19.9910485Z  ❯ tests/clients/dispatch/runners/go-vet.test.ts:88:16 +2026-10-07T09:33:19.9911123Z  86| expect(exe).toBe("/usr/local/bin/go"); +2026-10-07T09:33:19.9911654Z  87| expect(args).toEqual(["vet", "./sub"]); +2026-10-07T09:33:19.9912261Z  88| expect(opts).toMatchObject({ cwd: "/m", timeout: 30000 }); +2026-10-07T09:33:19.9912803Z  | ^ +2026-10-07T09:33:19.9913183Z  89| }); +2026-10-07T09:33:19.9913514Z  90| +2026-10-07T09:33:19.9913665Z +2026-10-07T09:33:19.9913922Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[50/61]⎯ +2026-10-07T09:33:19.9914158Z +2026-10-07T09:33:19.9915856Z  FAIL   default  tests/clients/dispatch/runners/reported-path-attribution.test.ts > cue-vet reported-path attribution (#3278) > does not attribute a sibling-directory cue location that shares the touched file's basename (#3278) +2026-10-07T09:33:19.9917886Z AssertionError: expected './../../../../../../../RUNNER~1/AppDa…' to be './sub/config.cue' // Object.is equality +2026-10-07T09:33:19.9918466Z +2026-10-07T09:33:19.9918684Z Expected: "./sub/config.cue" +2026-10-07T09:33:19.9919681Z Received: "./../../../../../../../RUNNER~1/AppData/Local/Temp/pi-lens-3278-cue-vet-Vc6dHK/workspace/pkg/sub/config.cue" +2026-10-07T09:33:19.9920278Z +2026-10-07T09:33:19.9921114Z  ❯ tests/clients/dispatch/runners/reported-path-attribution.test.ts:838:29 +2026-10-07T09:33:19.9980678Z 836| it("does not attribute a sibling-directory cue location that shares t… +2026-10-07T09:33:19.9981557Z 837| const observed = await dispatch(cueVet, cueRelative(echoesSibling)); +2026-10-07T09:33:19.9982574Z 838| expect(observed.reported).toBe("./sub/config.cue"); +2026-10-07T09:33:19.9983131Z  | ^ +2026-10-07T09:33:19.9983811Z 839| expectDetached(observed); +2026-10-07T09:33:19.9984175Z 840| }); +2026-10-07T09:33:19.9984337Z +2026-10-07T09:33:19.9984572Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[51/61]⎯ +2026-10-07T09:33:19.9984782Z +2026-10-07T09:33:19.9986034Z  FAIL   default  tests/clients/dispatch/runners/reported-path-attribution.test.ts > gleam-check reported-path attribution (#3285) > attributes a codespan-guttered gleam locus line to the dispatched file (#3285) +2026-10-07T09:33:19.9988109Z AssertionError: expected 'C:\Users\runneradmin\AppData\Local\Te…' to be 'C:/Users/runneradmin/AppData/Local/Te…' // Object.is equality +2026-10-07T09:33:19.9988953Z +2026-10-07T09:33:19.9989748Z Expected: "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-3278-gleam-check-o0kHdi/workspace/pkg/src/app.gleam" +2026-10-07T09:33:19.9991697Z Received: "C:\Users\runneradmin\AppData\Local\Temp\pi-lens-3278-gleam-check-o0kHdi\workspace\pkg\src\app.gleam" +2026-10-07T09:33:19.9992522Z +2026-10-07T09:33:19.9993127Z  ❯ tests/clients/dispatch/runners/reported-path-attribution.test.ts:1038:29 +2026-10-07T09:33:19.9993916Z 1036| // from the absolute cwd to `gleam.toml` and joins `src` +2026-10-07T09:33:19.9994628Z 1037| // (`compiler-cli/src/fs.rs:32-62`, `compiler-core/src/paths.rs:42-4… +2026-10-07T09:33:19.9995359Z 1038| expect(observed.reported).toBe(observed.dispatchedPath); +2026-10-07T09:33:19.9995929Z  | ^ +2026-10-07T09:33:19.9996429Z 1039| expectGleamAttached(observed, gleamCheck); +2026-10-07T09:33:19.9996826Z 1040| }); +2026-10-07T09:33:19.9996989Z +2026-10-07T09:33:19.9997234Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[52/61]⎯ +2026-10-07T09:33:19.9997456Z +2026-10-07T09:33:19.9997766Z ⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯ +2026-10-07T09:33:19.9998152Z  +2026-10-07T09:33:19.9998479Z Vitest caught 1 unhandled error during the test run. +2026-10-07T09:33:19.9999360Z This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. +2026-10-07T09:33:19.9999867Z +2026-10-07T09:33:20.0000177Z ⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯ +2026-10-07T09:33:20.0001372Z Error: LSP server C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-ps1-OwHVuU\test.ps1 exited immediately with code 1. The binary may be missing or corrupted. +2026-10-07T09:33:20.0002534Z  ❯ MockChildProcess. clients/lsp/launch.js:616:28 +2026-10-07T09:33:20.0003223Z 614| ? `npm .cmd shim failed (underlying binary not… +2026-10-07T09:33:20.0004076Z 615| : `The binary may be missing or corrupted.`; +2026-10-07T09:33:20.0004713Z 616| reject(new Error(`LSP server ${command} exited imm… +2026-10-07T09:33:20.0005243Z  | ^ +2026-10-07T09:33:20.0005640Z 617| } +2026-10-07T09:33:20.0005969Z 618| }); +2026-10-07T09:33:20.0006478Z  ❯ MockChildProcess.emit node:events:519:28 +2026-10-07T09:33:20.0007136Z  ❯ tests/clients/lsp/launch.test.ts:150:13 +2026-10-07T09:33:20.0007960Z  ❯ callTimer node_modules/vitest/dist/chunks/index.C4tKZ0yW.js:5150:25 +2026-10-07T09:33:20.0009222Z  ❯ runTimersInRange node_modules/vitest/dist/chunks/index.C4tKZ0yW.js:5848:26 +2026-10-07T09:33:20.0010209Z  ❯ doTickInner node_modules/vitest/dist/chunks/index.C4tKZ0yW.js:5943:22 +2026-10-07T09:33:20.0011111Z  ❯ doTick node_modules/vitest/dist/chunks/index.C4tKZ0yW.js:5959:21 +2026-10-07T09:33:20.0011963Z  ❯ node_modules/vitest/dist/chunks/index.C4tKZ0yW.js:6049:22 +2026-10-07T09:33:20.0012917Z  ❯ Immediate. node_modules/vitest/dist/chunks/index.C4tKZ0yW.js:5997:30 +2026-10-07T09:33:20.0013771Z  ❯ processImmediate node:internal/timers:484:21 +2026-10-07T09:33:20.0014085Z +2026-10-07T09:33:20.0015156Z This error originated in "tests/clients/lsp/launch.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. +2026-10-07T09:33:20.0016556Z The last test to run before this error was "bypasses .ps1 to .cmd sibling on Windows". This means either: +2026-10-07T09:33:20.0017322Z - the error was thrown while Vitest was running this test, or +2026-10-07T09:33:20.0018187Z - the error was thrown after the test completed, and this was the most recent test at that point. +2026-10-07T09:33:20.0018899Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ +2026-10-07T09:33:20.0019101Z +2026-10-07T09:33:20.0019109Z +2026-10-07T09:33:20.0019603Z  Test Files  14 failed | 99 passed (113) +2026-10-07T09:33:20.0020655Z  Tests  57 failed | 1703 passed | 19 skipped (1779) +2026-10-07T09:33:20.0021390Z  Errors  1 error +2026-10-07T09:33:20.0021826Z  Start at  09:29:04 +2026-10-07T09:33:20.0022419Z  Duration  255.49s (tests 85%, import 12%, transform 2%, setup 1%) +2026-10-07T09:33:20.0022798Z +2026-10-07T09:33:20.0138691Z +2026-10-07T09:33:20.0172801Z ##[error]Error: LSP server C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-ps1-OwHVuU\test.ps1 exited immediately with code 1. The binary may be missing or corrupted. + ❯ MockChildProcess. clients/lsp/launch.js:616:28 + ❯ tests/clients/lsp/launch.test.ts:150:13 + +This error originated in "tests/clients/lsp/launch.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. +The last test to run before this error was "bypasses .ps1 to .cmd sibling on Windows". This means either: +- the error was thrown while Vitest was running this test, or +- the error was thrown after the test completed, and this was the most recent test at that point. + +2026-10-07T09:33:20.0184615Z +2026-10-07T09:33:20.0186988Z ##[error]AssertionError: expected 'orphaned' to be 'live' // Object.is equality + +Expected: "live" +Received: "orphaned" + + ❯ tests/config/tmp-fixture-hygiene.test.ts:1402:6 + + +2026-10-07T09:33:20.0188447Z +2026-10-07T09:33:20.0190374Z ##[error]AssertionError: expected null to be +0 // Object.is equality + +- Expected: +0 + ++ Received: +null + + ❯ tests/config/oxlint-advisory-rule-floor-gate.test.ts:108:62 + + +2026-10-07T09:33:20.0191722Z +2026-10-07T09:33:20.0193498Z ##[error]AssertionError: expected [ { …(5) } ] to have a length of +0 but got 1 + +- Expected ++ Received + +- 0 ++ 1 + + ❯ tests/scripts/prune-agent-worktrees.test.ts:178:25 + + +2026-10-07T09:33:20.0194109Z +2026-10-07T09:33:20.0196337Z ##[error]AssertionError: expected undefined to match object { reason: 'live-cwd' } + +- Expected: +{ + "reason": "live-cwd", +} + ++ Received: +undefined + + ❯ tests/scripts/prune-agent-worktrees.test.ts:193:31 + + +2026-10-07T09:33:20.0196935Z +2026-10-07T09:33:20.0198699Z ##[error]AssertionError: expected [ { …(5) } ] to have a length of +0 but got 1 + +- Expected ++ Received + +- 0 ++ 1 + + ❯ tests/scripts/prune-agent-worktrees.test.ts:241:26 + + +2026-10-07T09:33:20.0199573Z +2026-10-07T09:33:20.0201369Z ##[error]AssertionError: expected [] to have a length of 1 but got +0 + +- Expected ++ Received + +- 1 ++ 0 + + ❯ tests/scripts/prune-agent-worktrees.test.ts:283:26 + + +2026-10-07T09:33:20.0201917Z +2026-10-07T09:33:20.0203650Z ##[error]AssertionError: expected true to be false // Object.is equality + +- Expected ++ Received + +- false ++ true + + ❯ tests/scripts/prune-agent-worktrees.test.ts:1861:37 + + +2026-10-07T09:33:20.0204241Z +2026-10-07T09:33:20.0206570Z ##[error]AssertionError: expected undefined to match object { reason: 'listing-failed', …(1) } + +- Expected: +{ + "ceilingMs": 400, + "reason": "listing-failed", +} + ++ Received: +undefined + + ❯ tests/scripts/prune-agent-worktrees.test.ts:1896:6 + + +2026-10-07T09:33:20.0207165Z +2026-10-07T09:33:20.0211858Z ##[error]AssertionError: expected 'C:\Users\runneradmin\AppData\Local\Te…' to be 'C:\Users\RUNNER~1\AppData\Local\Temp\…' // Object.is equality + +Expected: "C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-probe-worktree-rEXqkD\.claude\worktrees\agent-x\.pi-lens-probe-home" +Received: "C:\Users\runneradmin\AppData\Local\Temp\pi-lens-probe-worktree-rEXqkD\.claude\worktrees\agent-x\.pi-lens-probe-home" + + ❯ tests/config/global-dir-probe-redirect.test.ts:196:25 + + +2026-10-07T09:33:20.0212553Z +2026-10-07T09:33:20.0218965Z ##[error]AssertionError: expected 'C:\Users\runneradmin\AppData\Local\Te…' to be 'C:\Users\RUNNER~1\AppData\Local\Temp\…' // Object.is equality + +Expected: "C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-probe-vitest-marked-dssH0x\.claude\worktrees\agent-vitest\.pi-lens-probe-home" +Received: "C:\Users\runneradmin\AppData\Local\Temp\pi-lens-probe-vitest-marked-dssH0x\.claude\worktrees\agent-vitest\.pi-lens-probe-home" + + ❯ tests/config/global-dir-probe-redirect.test.ts:473:25 + + +2026-10-07T09:33:20.0219850Z +2026-10-07T09:33:20.0232782Z ##[error]Error: ENAMETOOLONG: name too long, chdir 'D:\a\pi-lens\pi-lens' -> 'C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-probe-reason-eHJwTB\cwd-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' + ❯ tests/config/global-dir-probe-redirect.test.ts:620:12 + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ +Serialized Error: { errno: -4064, code: 'ENAMETOOLONG', syscall: 'chdir', path: 'D:\a\pi-lens\pi-lens', dest: 'C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-probe-reason-eHJwTB\cwd-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' } + +2026-10-07T09:33:20.0233540Z +2026-10-07T09:33:20.0238263Z ##[error]Error: EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-result-contract-vuzHAj' + ❯ tests/config/result-contract-governance.test.ts:87:6 + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ +Serialized Error: { errno: -4082, code: 'EBUSY', syscall: 'rmdir', path: 'C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-result-contract-vuzHAj' } + +2026-10-07T09:33:20.0238963Z +2026-10-07T09:33:20.0253766Z ##[error]AssertionError: lens_diagnostics: complete rendered text: expected 'Files checked: 1\nTotal diagnostics: …' to be 'Files checked: 1\nTotal diagnostics: …' // Object.is equality + +- Expected ++ Received + +@@ -3,9 +3,9 @@ + Concurrency: 8 + Outcomes: clean=0, findings=0, unsupported=0, unavailable=0, failed=0, too_large=0, inconclusive=1 + + Checks not confirmed: 1 (inconclusive/unavailable/unsupported/failed or not started). + +- 0 files confirmed clean, 1 unconfirmed: 1 timed out (check didn't complete within the wait budget). NOT the same as 0 diagnostics. ++ 0 files confirmed clean, 1 unconfirmed: from a server that cannot confirm clean (push-only, silent-on-clean; e.g. classic typescript-language-server does not publish on a clean re-check). NOT the same as 0 diagnostics. + + result ok +- usage tokens=93 elapsed-ms=0 bytes=370 truncated=false ++ usage tokens=115 elapsed-ms=0 bytes=458 truncated=false + + ❯ tests/config/result-contract-governance.test.ts:173:7 + + +2026-10-07T09:33:20.0256426Z +2026-10-07T09:33:20.0260261Z ##[error]AssertionError: expected [ …(4) ] to include 'clients/turn-end/lane.ts' + ❯ tests/config/turn-end-lane-boundaries.test.ts:43:17 + + +2026-10-07T09:33:20.0262570Z +2026-10-07T09:33:20.0267021Z ##[error]AssertionError: expected 'C:/Users/runneradmin/AppData/Local/Te…' to be 'C:/Users/RUNNER~1/AppData/Local/Temp/…' // Object.is equality + +Expected: "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-case-POIrPy/NOPE/b.ts" +Received: "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-case-POIrPy/nope/b.ts" + + ❯ tests/clients/path-utils.test.ts:286:36 + + +2026-10-07T09:33:20.0267866Z +2026-10-07T09:33:20.0271782Z ##[error]AssertionError: expected 'D:/a/pi-lens/pi-lens/src/a.ts' to be 'src/a.ts' // Object.is equality + +Expected: "src/a.ts" +Received: "D:/a/pi-lens/pi-lens/src/a.ts" + + ❯ tests/clients/path-utils.test.ts:501:46 + + +2026-10-07T09:33:20.0273270Z +2026-10-07T09:33:20.0279354Z ##[error]AssertionError: expected 'D:/a/pi-lens/pi-lens' to be '' // Object.is equality + +- Expected ++ Received + ++ D:/a/pi-lens/pi-lens + + ❯ tests/clients/path-utils.test.ts:513:31 + + +2026-10-07T09:33:20.0280777Z +2026-10-07T09:33:20.0286205Z ##[error]AssertionError: expected [ …(3) ] to deeply equal [] + +- Expected ++ Received + +- [] ++ [ ++ "* x\\y folded=true minimatch=false", ++ "x\\y x\\y folded=false minimatch=true", ++ "**/*/** x\\y folded=false minimatch=true", ++ ] + + ❯ tests/clients/path-utils.test.ts:2322:22 + + +2026-10-07T09:33:20.0287539Z +2026-10-07T09:33:20.0292824Z ##[error]Error: Test timed out in 5000ms. +If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". + ❯ tests/clients/pipeline.test.ts:763:3 + + +2026-10-07T09:33:20.0294114Z +2026-10-07T09:33:20.0315416Z ##[error]AssertionError: expected "vi.fn()" to be called with arguments: [ 'pilens:files:touched', …(1) ] + +Received: + + 1st vi.fn() call: + +@@ -1,11 +1,18 @@ + [ + "pilens:files:touched", +- ObjectContaining { +- "cwd": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-j6Nbyy", ++ { ++ "cwd": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-j6Nbyy", ++ "fixes": [ ++ { ++ "kind": "format", ++ "path": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-j6Nbyy/unformatted.ts", ++ "tool": "biome", ++ }, ++ ], + "paths": [ +- "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-j6Nbyy/unformatted.ts", ++ "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-j6Nbyy/unformatted.ts", + ], + "reason": "format", + "source": "pi-lens", + "v": 1, + }, + + +Number of calls: 1 + + ❯ tests/clients/pipeline.test.ts:955:17 + + +2026-10-07T09:33:20.0317105Z +2026-10-07T09:33:20.0324048Z ##[error]AssertionError: expected { v: 1, source: 'pi-lens', …(4) } to match object { v: 1, source: 'pi-lens', …(2) } +(2 matching properties omitted from actual) + +- Expected ++ Received + + { + "paths": [ +- "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-iCe5bT/messy.ts", ++ "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-iCe5bT/messy.ts", + ], + "reason": "autofix", + "source": "pi-lens", + "v": 1, + } + + ❯ tests/clients/pipeline.test.ts:1002:34 + + +2026-10-07T09:33:20.0325303Z +2026-10-07T09:33:20.0332480Z ##[error]AssertionError: expected { v: 1, source: 'pi-lens', …(4) } to match object { fixes: [ { …(3) } ] } +(5 matching properties omitted from actual) + +- Expected ++ Received + + { + "fixes": [ + { + "kind": "format", +- "path": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-GGmQpi/unformatted2.ts", ++ "path": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-GGmQpi/unformatted2.ts", + "tool": "biome", + }, + ], + } + + ❯ tests/clients/pipeline.test.ts:1086:22 + + +2026-10-07T09:33:20.0333529Z +2026-10-07T09:33:20.0345087Z ##[error]AssertionError: expected "vi.fn()" to be called with arguments: [ 'pilens:diagnostics', …(1) ] + +Received: + + 1st vi.fn() call: + + [ + "pilens:diagnostics", +- ObjectContaining { ++ { ++ "cwd": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-QYwNoy", + "files": [ +- ObjectContaining { ++ { + "diagnostics": [ +- ObjectContaining { ++ { ++ "col": 1, + "fixable": true, ++ "line": 1, ++ "message": "unused var", + "ruleId": "no-unused-vars", + "severity": "warning", + "tool": "eslint", + }, + ], +- "path": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-QYwNoy/diag.ts", ++ "path": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-QYwNoy/diag.ts", + }, + ], ++ "seq": 1, + "source": "pi-lens", ++ "ts": 1791365359162, + "v": 1, + }, + ] + + +Number of calls: 1 + + ❯ tests/clients/pipeline.test.ts:1138:17 + + +2026-10-07T09:33:20.0347107Z +2026-10-07T09:33:20.0351875Z ##[error]AssertionError: expected { v: 1, source: 'pi-lens', …(4) } to match object { files: [ ObjectContaining{…} ] } +(7 matching properties omitted from actual) + +- Expected ++ Received + + { + "files": [ + { + "diagnostics": [], +- "path": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-J5tuCZ/flip.ts", ++ "path": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-J5tuCZ/flip.ts", + }, + ], + } + + ❯ tests/clients/pipeline.test.ts:1243:34 + + +2026-10-07T09:33:20.0352775Z +2026-10-07T09:33:20.0355326Z ##[error]AssertionError: expected [] to include 'C:/Users/runneradmin/AppData/Local/Te…' + ❯ tests/clients/review-graph.service.test.ts:83:40 + + +2026-10-07T09:33:20.0355965Z +2026-10-07T09:33:20.0359322Z ##[error]AssertionError: expected [ 'exported symbol changed' ] to include 'cycle-adjacent file' + ❯ tests/clients/review-graph.service.test.ts:718:29 + + +2026-10-07T09:33:20.0359979Z +2026-10-07T09:33:20.0362590Z ##[error]AssertionError: expected [] to include 'C:/Users/runneradmin/AppData/Local/Te…' + ❯ tests/clients/review-graph.service.test.ts:772:36 + + +2026-10-07T09:33:20.0363961Z +2026-10-07T09:33:20.0365997Z ##[error]AssertionError: expected [] to include 'C:/Users/runneradmin/AppData/Local/Te…' + ❯ tests/clients/review-graph.service.test.ts:1039:35 + + +2026-10-07T09:33:20.0366939Z +2026-10-07T09:33:20.0369507Z ##[error]AssertionError: expected false to be true // Object.is equality + +- Expected ++ Received + +- true ++ false + + ❯ tests/clients/review-graph.service.test.ts:1115:28 + + +2026-10-07T09:33:20.0370515Z +2026-10-07T09:33:20.0373249Z ##[error]AssertionError: expected false to be true // Object.is equality + +- Expected ++ Received + +- true ++ false + + ❯ tests/clients/review-graph.service.test.ts:1186:38 + + +2026-10-07T09:33:20.0374252Z +2026-10-07T09:33:20.0376896Z ##[error]AssertionError: expected false to be true // Object.is equality + +- Expected ++ Received + +- true ++ false + + ❯ tests/clients/review-graph.service.test.ts:1223:35 + + +2026-10-07T09:33:20.0378419Z +2026-10-07T09:33:20.0381636Z ##[error]AssertionError: expected false to be true // Object.is equality + +- Expected ++ Received + +- true ++ false + + ❯ tests/clients/review-graph.service.test.ts:1269:6 + + +2026-10-07T09:33:20.0382305Z +2026-10-07T09:33:20.0385437Z ##[error]AssertionError: expected false to be true // Object.is equality + +- Expected ++ Received + +- true ++ false + + ❯ tests/clients/review-graph.service.test.ts:1307:6 + + +2026-10-07T09:33:20.0386536Z +2026-10-07T09:33:20.0394675Z ##[error]AssertionError: expected "recordRead" to be called with arguments: [ ObjectContaining{…} ] + +Received: + + 1st recordRead call: + + [ +- ObjectContaining { +- "effectiveLimit": 2000, +- "effectiveOffset": 1001, ++ { ++ "effectiveLimit": 3001, ++ "effectiveOffset": 1, ++ "expandedByLsp": false, + "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-2802-bash-cap-p68r14\\large.ts", ++ "requestedLimit": 3001, ++ "requestedOffset": 1, ++ "timestamp": 1791365352286, ++ "turnIndex": 0, ++ "writeIndex": 0, + }, + ] + + +Number of calls: 1 + + ❯ tests/clients/runtime-tool-result.test.ts:501:23 + + +2026-10-07T09:33:20.0396106Z +2026-10-07T09:33:20.0399442Z ##[error]AssertionError: expected false to be true // Object.is equality + +- Expected ++ Received + +- true ++ false + + ❯ tests/clients/runtime-tool-result.test.ts:615:6 + + +2026-10-07T09:33:20.0400104Z +2026-10-07T09:33:20.0402030Z ##[error]AssertionError: expected 0 to be greater than 0 + ❯ tests/clients/runtime-tool-result.test.ts:1542:25 + + +2026-10-07T09:33:20.0403695Z +2026-10-07T09:33:20.0440942Z ##[error]AssertionError: expected "vi.fn()" to be called with arguments: [ ObjectContaining{…}, Anything ] + +Received: + + 1st vi.fn() call: + + [ +- ObjectContaining { +- "cwd": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-monorepo-dispatch-njPgdJ\\workspace\\platform\\svc\\go\\daemon", ++ { ++ "allowAutonomousWriters": true, ++ "autofixMode": "deferred", ++ "cwd": "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pi-lens-monorepo-dispatch-njPgdJ\\workspace", ++ "dbg": [Function dbg], + "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-monorepo-dispatch-njPgdJ\\workspace\\platform\\svc\\go\\daemon\\main.go", ++ "getFlag": [Function getFlag], ++ "getFlagSource": undefined, ++ "modifiedRanges": [ ++ { ++ "end": 1, ++ "start": 1, ++ }, ++ ], ++ "nextWriteIndex": [Function nextWriteIndex], ++ "onFixRunLoss": [Function onFixRunLoss], ++ "onWordIndexUpdated": [Function onWordIndexUpdated], ++ "projectRoot": "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pi-lens-monorepo-dispatch-njPgdJ\\workspace", ++ "seqState": { ++ "getFilesChangedSince": [Function getFilesChangedSince], ++ "projectSeq": [Function projectSeq], ++ }, ++ "sessionGeneration": { ++ "branchEpoch": 0, ++ "generation": 31, ++ "guardedWrite": [Function guardedWrite], ++ "isCurrent": [Function isCurrent], ++ "scopeId": 31, ++ Symbol(pi-lens.session-scope.captured.v1): { ++ "branch": { ++ "generation": 0, ++ "guardedWrite": [Function guardedWrite], ++ "isCurrent": [Function isCurrent], ++ }, ++ "scope": Scope { ++ "branch": { ++ "bump": [Function bump], ++ "capture": [Function capture], ++ "current": [Function read], ++ "name": "session-branch", + }, +- Anything, ++ "cells": Map {}, ++ "coordinatorId": undefined, ++ "life": { ++ "bump": [Function bump], ++ "capture": [Function capture], ++ "current": [Function read], ++ "name": "runtime-session", ++ }, ++ "parentScopeId": undefined, ++ "retiredReason": undefined, ++ "role": "primary", ++ "scopeId": 31, ++ }, ++ }, ++ }, ++ "signal": undefined, ++ "telemetry": { ++ "model": "unknown", ++ "modelId": "", ++ "orderTurn": 6, ++ "provider": "", ++ "sessionId": "lens-muxwoiaq", ++ "turnIndex": 1, ++ "writeIndex": 1, ++ }, ++ "toolName": "edit", ++ "turnEndCascadeSettleStart": [Function turnEndCascadeSettleStart], ++ "wordIndex": null, ++ }, ++ { ++ "biomeClient": {}, ++ "fixedThisTurn": { ++ "add": [Function add], ++ "clear": [Function clear], ++ "delete": [Function delete], ++ "has": [Function has], ++ }, ++ "getFormatService": [Function getFormatService], ++ "metricsClient": {}, ++ "ruffClient": {}, ++ }, + ] + + +Number of calls: 1 + + ❯ tests/clients/runtime-tool-result.test.ts:1621:35 + + +2026-10-07T09:33:20.0442370Z +2026-10-07T09:33:20.0450796Z ##[error]AssertionError: expected { verdict: 'block', …(4) } to deeply equal { verdict: 'block', …(4) } + +- Expected ++ Received + + { + "dispatched": 0, + "falseBlocks": [ + "superseded:tool-result", + ], +- "receipts": [ +- "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-3596-parked-drJlJ1\\edit.ts", +- ], ++ "receipts": [], + "turnFiles": [], + "verdict": "block", + } + + ❯ tests/clients/runtime-tool-result.test.ts:2105:8 + ❯ acrossReplacement tests/clients/runtime-tool-result.test.ts:2051:4 + ❯ tests/clients/runtime-tool-result.test.ts:2085:3 + + +2026-10-07T09:33:20.0452718Z +2026-10-07T09:33:20.0461609Z ##[error]AssertionError: expected { queued: +0, …(3) } to deeply equal { queued: +0, …(3) } + +- Expected ++ Received + + { + "queued": 0, + "sideInTurnState": false, +- "sideReceipt": true, ++ "sideReceipt": false, + "summaryEmpty": true, + } + + ❯ tests/clients/runtime-tool-result.test.ts:2166:8 + ❯ acrossReplacement tests/clients/runtime-tool-result.test.ts:2051:4 + ❯ tests/clients/runtime-tool-result.test.ts:2120:3 + + +2026-10-07T09:33:20.0462890Z +2026-10-07T09:33:20.0465569Z ##[error]AssertionError: expected [] to have a length of 1 but got +0 + +- Expected ++ Received + +- 1 ++ 0 + + ❯ tests/clients/runtime-tool-result.test.ts:2359:20 + + +2026-10-07T09:33:20.0466521Z +2026-10-07T09:33:20.0478380Z ##[error]AssertionError: expected [] to deeply equal ArrayContaining{…} + +- Expected ++ Received + +- ArrayContaining [ +- ObjectContaining { +- "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-3226-opaque-ownership-hxIsvN\\extracted\\existing.js", +- "source": "opaque-script", +- }, +- ObjectContaining { +- "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-3226-opaque-ownership-hxIsvN\\extracted\\created.js", +- "source": "opaque-script", +- }, +- ObjectContaining { +- "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-3226-opaque-ownership-hxIsvN\\direct.js", +- "source": "agent-write", +- }, +- ] ++ [] + + ❯ tests/clients/runtime-tool-result.test.ts:2712:44 + + +2026-10-07T09:33:20.0479738Z +2026-10-07T09:33:20.0492694Z ##[error]AssertionError: expected "vi.fn()" to be called with arguments: [ 'pilens:format:queued', …(1) ] + +Received: + + 1st vi.fn() call: + + [ + "pilens:format:queued", +- ObjectContaining { +- "filePath": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-runtime-tool-format-queued-TgPpZV/src/app.ts", ++ { ++ "cwd": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-runtime-tool-format-queued-TgPpZV", ++ "filePath": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-runtime-tool-format-queued-TgPpZV/src/app.ts", ++ "kinds": [ ++ "autofix", ++ "format", ++ ], + "source": "pi-lens", + "tool": "edit", + "v": 1, + }, + ] + + +Number of calls: 1 + + ❯ tests/clients/runtime-tool-result.test.ts:3104:17 + + +2026-10-07T09:33:20.0493857Z +2026-10-07T09:33:20.0509026Z ##[error]AssertionError: expected "vi.fn()" to be called with arguments: [ StringContaining{…} ] + +Received: + + 1st vi.fn() call: + + [ +- StringContaining "tool_result: skipping gitignored file C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-worktree-attribution-6yVOH6\\.worktrees\\wt1\\src\\app.ts", ++ "tool_call fired for: C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-worktree-attribution-6yVOH6\\.worktrees\\wt1\\src\\app.ts (exists: true)", + ] + + 2nd vi.fn() call: + + [ +- StringContaining "tool_result: skipping gitignored file C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-worktree-attribution-6yVOH6\\.worktrees\\wt1\\src\\app.ts", ++ "path_attribution_missing: no recorded resolution basis for toolCallId=call-1642, refusing relative path src/app.ts (would have guessed C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pi-lens-worktree-attribution-6yVOH6\\src\\app.ts)", + ] + + +Number of calls: 2 + + ❯ tests/clients/runtime-tool-result.test.ts:4193:16 + + +2026-10-07T09:33:20.0510222Z +2026-10-07T09:33:20.0516451Z ##[error]AssertionError: {"value":"C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-installer-945-n02GLZ\\home\\tools\\node_modules\\.bin\\svelteserver.cmd","log":"","attempt":{"outcome":"succeeded","at":1791365422048}} +: expected 'succeeded' to be 'failed' // Object.is equality + +Expected: "failed" +Received: "succeeded" + + ❯ tests/clients/installer/installer-lifecycle.integration.test.ts:418:49 + + +2026-10-07T09:33:20.0517424Z +2026-10-07T09:33:20.0523394Z ##[error]AssertionError: {"value":"C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-installer-945-YRD21u\\home\\tools\\node_modules\\.bin\\svelteserver.cmd","log":"","attempt":{"outcome":"succeeded","at":1791365426559}} +: expected true to be false // Object.is equality + +- Expected ++ Received + +- false ++ true + + ❯ tests/clients/installer/installer-lifecycle.integration.test.ts:452:6 + + +2026-10-07T09:33:20.0524135Z +2026-10-07T09:33:20.0527653Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T09:33:20.0528974Z +2026-10-07T09:33:20.0532285Z ##[error]Error: Test timed out in 5000ms. +If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". + ❯ tests/clients/lsp/launch.test.ts:177:40 + + +2026-10-07T09:33:20.0533490Z +2026-10-07T09:33:20.0537783Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T09:33:20.0538899Z +2026-10-07T09:33:20.0543879Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T09:33:20.0544927Z +2026-10-07T09:33:20.0549482Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T09:33:20.0550238Z +2026-10-07T09:33:20.0553817Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T09:33:20.0554884Z +2026-10-07T09:33:20.0558407Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T09:33:20.0559631Z +2026-10-07T09:33:20.0563186Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T09:33:20.0564018Z +2026-10-07T09:33:20.0568545Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T09:33:20.0569420Z +2026-10-07T09:33:20.0573134Z ##[error]Error: LSP server C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-ps1-OwHVuU\test.ps1 exited immediately with code 1. The binary may be missing or corrupted. + ❯ MockChildProcess. clients/lsp/launch.js:616:28 + ❯ tests/clients/lsp/launch.test.ts:150:13 + + +2026-10-07T09:33:20.0574919Z +2026-10-07T09:33:20.0579698Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T09:33:20.0580601Z +2026-10-07T09:33:20.0584049Z ##[error]AssertionError: expected undefined to be 'C:\hostedtoolcache\windows\node\22.23…' // Object.is equality + +- Expected: +"C:\\hostedtoolcache\\windows\\node\\22.23.3\\x64\\node.exe" + ++ Received: +undefined + + ❯ tests/clients/lsp/launch.test.ts:353:27 + + +2026-10-07T09:33:20.0584935Z +2026-10-07T09:33:20.0588879Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T09:33:20.0589783Z +2026-10-07T09:33:20.0593634Z ##[error]AssertionError: expected { timeout: 30000, cwd: 'D:\m' } to match object { cwd: '/m', timeout: 30000 } + +- Expected ++ Received + + { +- "cwd": "/m", ++ "cwd": "D:\\m", + "timeout": 30000, + } + + ❯ tests/clients/dispatch/runners/go-vet.test.ts:88:16 + + +2026-10-07T09:33:20.0594246Z +2026-10-07T09:33:20.0599130Z ##[error]AssertionError: expected './../../../../../../../RUNNER~1/AppDa…' to be './sub/config.cue' // Object.is equality + +Expected: "./sub/config.cue" +Received: "./../../../../../../../RUNNER~1/AppData/Local/Temp/pi-lens-3278-cue-vet-Vc6dHK/workspace/pkg/sub/config.cue" + + ❯ tests/clients/dispatch/runners/reported-path-attribution.test.ts:838:29 + + +2026-10-07T09:33:20.0600028Z +2026-10-07T09:33:20.0608826Z ##[error]AssertionError: expected 'C:\Users\runneradmin\AppData\Local\Te…' to be 'C:/Users/runneradmin/AppData/Local/Te…' // Object.is equality + +Expected: "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-3278-gleam-check-o0kHdi/workspace/pkg/src/app.gleam" +Received: "C:\Users\runneradmin\AppData\Local\Temp\pi-lens-3278-gleam-check-o0kHdi\workspace\pkg\src\app.gleam" + + ❯ tests/clients/dispatch/runners/reported-path-attribution.test.ts:1038:29 + + +2026-10-07T09:33:20.2098616Z ##[error]Process completed with exit code 1. +2026-10-07T09:33:20.2288275Z ##[group]Run outcome="failure" +2026-10-07T09:33:20.2288578Z outcome="failure" +2026-10-07T09:33:20.2288753Z { +2026-10-07T09:33:20.2288908Z  echo "## Windows Vitest subset" +2026-10-07T09:33:20.2289187Z  if [[ -f "$RUNNER_TEMP/windows-vitest-files.txt" ]]; then +2026-10-07T09:33:20.2289674Z  node scripts/lib/win32-gate-population.mjs --summary --executed-file-list "$RUNNER_TEMP/windows-vitest-files.txt" +2026-10-07T09:33:20.2290096Z  else +2026-10-07T09:33:20.2290544Z  echo "Not executed: no executed-file list was produced (the checkout or enumeration step did not complete), so the Windows subset summary is unavailable." +2026-10-07T09:33:20.2291023Z  fi +2026-10-07T09:33:20.2291215Z  if [[ -f "$RUNNER_TEMP/windows-vitest.log" ]]; then +2026-10-07T09:33:20.2291687Z  failures="$(sed -nE 's/^Tests[[:space:]]+([0-9]+)[[:space:]]+failed.*/\1/p' "$RUNNER_TEMP/windows-vitest.log" | tail -n 1)" +2026-10-07T09:33:20.2292127Z  echo "Windows Vitest failures: ${failures:-unknown}" +2026-10-07T09:33:20.2292367Z  else +2026-10-07T09:33:20.2292554Z  echo "Windows Vitest failures: unavailable" +2026-10-07T09:33:20.2292772Z  fi +2026-10-07T09:33:20.2292965Z  echo "Windows Vitest subset step outcome: $outcome" +2026-10-07T09:33:20.2293214Z  echo "windows_vitest=$outcome" +2026-10-07T09:33:20.2293429Z } >> "$GITHUB_STEP_SUMMARY" +2026-10-07T09:33:20.2304419Z shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0} +2026-10-07T09:33:20.2304725Z env: +2026-10-07T09:33:20.2304890Z PI_LENS_HOME: D:\a\_temp/pi-lens-home +2026-10-07T09:33:20.2305093Z ##[endgroup] +2026-10-07T09:33:21.9973134Z ##[group]Run if [[ "failure" == "failure" ]]; then +2026-10-07T09:33:21.9973490Z if [[ "failure" == "failure" ]]; then +2026-10-07T09:33:21.9973920Z  failures="$(sed -nE 's/^Tests[[:space:]]+([0-9]+)[[:space:]]+failed.*/\1/p' "$RUNNER_TEMP/windows-vitest.log" | tail -n 1)" +2026-10-07T09:33:21.9974423Z  echo "::error title=Windows advisory::${failures:-unknown} Vitest tests failed" +2026-10-07T09:33:21.9974725Z  exit 1 +2026-10-07T09:33:21.9974873Z fi +2026-10-07T09:33:21.9985065Z shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0} +2026-10-07T09:33:21.9985530Z env: +2026-10-07T09:33:21.9985690Z PI_LENS_HOME: D:\a\_temp/pi-lens-home +2026-10-07T09:33:21.9985884Z ##[endgroup] +2026-10-07T09:33:22.0597125Z ##[error]unknown Vitest tests failed +2026-10-07T09:33:22.0626648Z ##[error]Process completed with exit code 1. +2026-10-07T09:33:22.0882256Z Post job cleanup. +2026-10-07T09:33:22.2378290Z [command]"C:\Program Files\Git\bin\git.exe" version +2026-10-07T09:33:22.2603268Z git version 2.55.0.windows.5 +2026-10-07T09:33:22.2654832Z Temporarily overriding HOME='D:\a\_temp\2a8434b7-a12c-4bff-b2df-2088134f4270' before making global git config changes +2026-10-07T09:33:22.2655826Z Adding repository directory to the temporary git global config as a safe directory +2026-10-07T09:33:22.2663297Z [command]"C:\Program Files\Git\bin\git.exe" config --global --add safe.directory D:\a\pi-lens\pi-lens +2026-10-07T09:33:22.2962254Z Removing SSH command configuration +2026-10-07T09:33:22.2975031Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core\.sshCommand +2026-10-07T09:33:22.3243912Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\"" +2026-10-07T09:33:22.7691767Z Removing HTTP extra header +2026-10-07T09:33:22.7702422Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader +2026-10-07T09:33:22.7963121Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\"" +2026-10-07T09:33:23.2572096Z Removing includeIf entries pointing to credentials config files +2026-10-07T09:33:23.2581638Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp ^includeIf\.gitdir: +2026-10-07T09:33:23.2835544Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "git config --local --show-origin --name-only --get-regexp remote.origin.url" +2026-10-07T09:33:23.7499325Z Evaluate and set job outputs +2026-10-07T09:33:23.7504684Z Set output 'windows_vitest' +2026-10-07T09:33:23.7506221Z Cleaning up orphan processes diff --git a/tests/fixtures/ci-test-diff/job-112734370876.log b/tests/fixtures/ci-test-diff/job-112734370876.log new file mode 100644 index 000000000..40706da09 --- /dev/null +++ b/tests/fixtures/ci-test-diff/job-112734370876.log @@ -0,0 +1,3592 @@ +2026-10-07T09:55:45.7845754Z Current runner version: '2.337.0' +2026-10-07T09:55:45.7882668Z ##[group]Runner Image Provisioner +2026-10-07T09:55:45.7883904Z Hosted Compute Agent +2026-10-07T09:55:45.7884853Z Version: 20260901.588 +2026-10-07T09:55:45.7885800Z Commit: f88ec8081b781fac6c440065ac7ff9e710ce3d0b +2026-10-07T09:55:45.7886953Z Build Date: 2026-09-01T19:56:44Z +2026-10-07T09:55:45.7888073Z Worker ID: {9f9d61f8-d71d-44d9-91c8-59da5acfee2f} +2026-10-07T09:55:45.7889613Z Azure Region: westus2 +2026-10-07T09:55:45.7890706Z ##[endgroup] +2026-10-07T09:55:45.7893306Z ##[group]Operating System +2026-10-07T09:55:45.7894406Z Microsoft Windows Server 2025 +2026-10-07T09:55:45.7895462Z 10.0.26100 +2026-10-07T09:55:45.7896264Z Datacenter +2026-10-07T09:55:45.7897129Z ##[endgroup] +2026-10-07T09:55:45.7897981Z ##[group]Runner Image +2026-10-07T09:55:45.7898995Z Image: windows-2025-vs2026 +2026-10-07T09:55:45.7900064Z Version: 20260925.250.1 +2026-10-07T09:55:45.7902635Z Included Software: https://github.com/actions/runner-images/blob/win25-vs2026/20260925.250/images/windows/Windows2025-VS2026-Readme.md +2026-10-07T09:55:45.7905616Z Image Release: https://github.com/actions/runner-images/releases/tag/win25-vs2026%2F20260925.250 +2026-10-07T09:55:45.7907412Z ##[endgroup] +2026-10-07T09:55:45.7909634Z ##[group]GITHUB_TOKEN Permissions +2026-10-07T09:55:45.7912408Z Contents: read +2026-10-07T09:55:45.7913280Z Metadata: read +2026-10-07T09:55:45.7914126Z ##[endgroup] +2026-10-07T09:55:45.7917255Z Secret source: Actions +2026-10-07T09:55:45.7918665Z Cache mode: write +2026-10-07T09:55:45.7919746Z Prepare workflow directory +2026-10-07T09:55:45.8417030Z Prepare all required actions +2026-10-07T09:55:45.8488894Z Getting action download info +2026-10-07T09:55:46.2117918Z Download action repository 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1' (SHA:3d3c42e5aac5ba805825da76410c181273ba90b1) +2026-10-07T09:55:46.3512661Z Download action repository 'actions/setup-node@820762786026740c76f36085b0efc47a31fe5020' (SHA:820762786026740c76f36085b0efc47a31fe5020) +2026-10-07T09:55:46.6635482Z Complete job name: Unit tests Windows (advisory) +2026-10-07T09:55:46.8255392Z ##[group]Run actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 +2026-10-07T09:55:46.8257152Z with: +2026-10-07T09:55:46.8257860Z persist-credentials: false +2026-10-07T09:55:46.8258718Z repository: apmantza/pi-lens +2026-10-07T09:55:46.8266485Z token: *** +2026-10-07T09:55:46.8267315Z ssh-strict: true +2026-10-07T09:55:46.8268011Z ssh-user: git +2026-10-07T09:55:46.8268654Z clean: true +2026-10-07T09:55:46.8269344Z sparse-checkout-cone-mode: true +2026-10-07T09:55:46.8270172Z fetch-depth: 1 +2026-10-07T09:55:46.8270838Z fetch-tags: false +2026-10-07T09:55:46.8271513Z show-progress: true +2026-10-07T09:55:46.8272222Z lfs: false +2026-10-07T09:55:46.8272877Z submodules: false +2026-10-07T09:55:46.8273629Z set-safe-directory: true +2026-10-07T09:55:46.8274721Z allow-unsafe-pr-checkout: false +2026-10-07T09:55:46.8276092Z ##[endgroup] +2026-10-07T09:55:47.0061667Z Syncing repository: apmantza/pi-lens +2026-10-07T09:55:47.0064158Z ##[group]Getting Git version info +2026-10-07T09:55:47.0065050Z Working directory is 'D:\a\pi-lens\pi-lens' +2026-10-07T09:55:47.1200405Z [command]"C:\Program Files\Git\bin\git.exe" version +2026-10-07T09:55:47.5514852Z git version 2.55.0.windows.5 +2026-10-07T09:55:47.5568790Z ##[endgroup] +2026-10-07T09:55:47.5585685Z Temporarily overriding HOME='D:\a\_temp\3eea5e0a-7730-4a5e-80c0-9daf1df7b5b3' before making global git config changes +2026-10-07T09:55:47.5587704Z Adding repository directory to the temporary git global config as a safe directory +2026-10-07T09:55:47.5595413Z [command]"C:\Program Files\Git\bin\git.exe" config --global --add safe.directory D:\a\pi-lens\pi-lens +2026-10-07T09:55:47.6276977Z Deleting the contents of 'D:\a\pi-lens\pi-lens' +2026-10-07T09:55:47.6283919Z ##[group]Determining repository object format +2026-10-07T09:55:47.6287407Z ##[endgroup] +2026-10-07T09:55:47.6289744Z ##[group]Initializing the repository +2026-10-07T09:55:47.6298941Z [command]"C:\Program Files\Git\bin\git.exe" init D:\a\pi-lens\pi-lens +2026-10-07T09:55:47.7209587Z Initialized empty Git repository in D:/a/pi-lens/pi-lens/.git/ +2026-10-07T09:55:47.7257758Z [command]"C:\Program Files\Git\bin\git.exe" remote add origin https://github.com/apmantza/pi-lens +2026-10-07T09:55:47.7935713Z ##[endgroup] +2026-10-07T09:55:47.7937388Z ##[group]Disabling automatic garbage collection +2026-10-07T09:55:47.7944444Z [command]"C:\Program Files\Git\bin\git.exe" config --local gc.auto 0 +2026-10-07T09:55:47.8255960Z ##[endgroup] +2026-10-07T09:55:47.8259461Z ##[group]Setting up auth +2026-10-07T09:55:47.8260957Z Removing SSH command configuration +2026-10-07T09:55:47.8270542Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core\.sshCommand +2026-10-07T09:55:47.8642101Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\"" +2026-10-07T09:55:49.4196912Z Removing HTTP extra header +2026-10-07T09:55:49.4207801Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader +2026-10-07T09:55:49.4511078Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\"" +2026-10-07T09:55:49.9975817Z Removing includeIf entries pointing to credentials config files +2026-10-07T09:55:49.9991819Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp ^includeIf\.gitdir: +2026-10-07T09:55:50.0314833Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "git config --local --show-origin --name-only --get-regexp remote.origin.url" +2026-10-07T09:55:50.5725246Z [command]"C:\Program Files\Git\bin\git.exe" config --file D:\a\_temp\git-credentials-c2a57075-64c3-462a-bb3f-e287d531ad74.config http.https://github.com/.extraheader "AUTHORIZATION: basic ***" +2026-10-07T09:55:50.6053443Z [command]"C:\Program Files\Git\bin\git.exe" config --local includeIf.gitdir:D:/a/pi-lens/pi-lens/.git.path D:\a\_temp\git-credentials-c2a57075-64c3-462a-bb3f-e287d531ad74.config +2026-10-07T09:55:50.6374752Z [command]"C:\Program Files\Git\bin\git.exe" config --local includeIf.gitdir:D:/a/pi-lens/pi-lens/.git/worktrees/*.path D:\a\_temp\git-credentials-c2a57075-64c3-462a-bb3f-e287d531ad74.config +2026-10-07T09:55:50.6756306Z [command]"C:\Program Files\Git\bin\git.exe" config --local includeIf.gitdir:/github/workspace/.git.path /github/runner_temp/git-credentials-c2a57075-64c3-462a-bb3f-e287d531ad74.config +2026-10-07T09:55:50.7085691Z [command]"C:\Program Files\Git\bin\git.exe" config --local includeIf.gitdir:/github/workspace/.git/worktrees/*.path /github/runner_temp/git-credentials-c2a57075-64c3-462a-bb3f-e287d531ad74.config +2026-10-07T09:55:50.7420692Z ##[endgroup] +2026-10-07T09:55:50.7421386Z ##[group]Fetching the repository +2026-10-07T09:55:50.7440210Z [command]"C:\Program Files\Git\bin\git.exe" -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +c5c58df5444423a7a3d2f9ae359af97cc995eca7:refs/remotes/pull/4045/merge +2026-10-07T09:55:54.1772060Z From https://github.com/apmantza/pi-lens +2026-10-07T09:55:54.1773000Z * [new ref] c5c58df5444423a7a3d2f9ae359af97cc995eca7 -> pull/4045/merge +2026-10-07T09:55:54.1822795Z ##[endgroup] +2026-10-07T09:55:54.1823695Z ##[group]Determining the checkout info +2026-10-07T09:55:54.1824401Z ##[endgroup] +2026-10-07T09:55:54.1834319Z [command]"C:\Program Files\Git\bin\git.exe" sparse-checkout disable +2026-10-07T09:55:54.2286601Z [command]"C:\Program Files\Git\bin\git.exe" config --local --unset-all extensions.worktreeConfig +2026-10-07T09:55:54.2573157Z ##[group]Checking out the ref +2026-10-07T09:55:54.2581025Z [command]"C:\Program Files\Git\bin\git.exe" checkout --progress --force refs/remotes/pull/4045/merge +2026-10-07T09:55:55.3151733Z Updating files: 71% (3396/4764) +2026-10-07T09:55:55.3298989Z Updating files: 72% (3431/4764) +2026-10-07T09:55:55.3458566Z Updating files: 73% (3478/4764) +2026-10-07T09:55:55.3596980Z Updating files: 74% (3526/4764) +2026-10-07T09:55:55.3735471Z Updating files: 75% (3573/4764) +2026-10-07T09:55:55.3870785Z Updating files: 76% (3621/4764) +2026-10-07T09:55:55.4008738Z Updating files: 77% (3669/4764) +2026-10-07T09:55:55.4142742Z Updating files: 78% (3716/4764) +2026-10-07T09:55:55.4292094Z Updating files: 79% (3764/4764) +2026-10-07T09:55:55.4426905Z Updating files: 80% (3812/4764) +2026-10-07T09:55:55.4575848Z Updating files: 81% (3859/4764) +2026-10-07T09:55:55.4697563Z Updating files: 82% (3907/4764) +2026-10-07T09:55:55.4848464Z Updating files: 83% (3955/4764) +2026-10-07T09:55:55.5013861Z Updating files: 84% (4002/4764) +2026-10-07T09:55:55.5145018Z Updating files: 85% (4050/4764) +2026-10-07T09:55:55.5337716Z Updating files: 86% (4098/4764) +2026-10-07T09:55:55.5456348Z Updating files: 87% (4145/4764) +2026-10-07T09:55:55.5638190Z Updating files: 88% (4193/4764) +2026-10-07T09:55:55.5796989Z Updating files: 89% (4240/4764) +2026-10-07T09:55:55.5948365Z Updating files: 90% (4288/4764) +2026-10-07T09:55:55.6071317Z Updating files: 91% (4336/4764) +2026-10-07T09:55:55.6217363Z Updating files: 92% (4383/4764) +2026-10-07T09:55:55.6368857Z Updating files: 93% (4431/4764) +2026-10-07T09:55:55.6518861Z Updating files: 94% (4479/4764) +2026-10-07T09:55:55.6682014Z Updating files: 95% (4526/4764) +2026-10-07T09:55:55.6853218Z Updating files: 96% (4574/4764) +2026-10-07T09:55:55.6991239Z Updating files: 97% (4622/4764) +2026-10-07T09:55:55.7167399Z Updating files: 98% (4669/4764) +2026-10-07T09:55:55.7334364Z Updating files: 99% (4717/4764) +2026-10-07T09:55:55.7337910Z Updating files: 100% (4764/4764) +2026-10-07T09:55:55.7338577Z Updating files: 100% (4764/4764), done. +2026-10-07T09:55:55.7524300Z Note: switching to 'refs/remotes/pull/4045/merge'. +2026-10-07T09:55:55.7524840Z +2026-10-07T09:55:55.7529137Z You are in 'detached HEAD' state. You can look around, make experimental +2026-10-07T09:55:55.7530081Z changes and commit them, and you can discard any commits you make in this +2026-10-07T09:55:55.7530925Z state without impacting any branches by switching back to a branch. +2026-10-07T09:55:55.7531429Z +2026-10-07T09:55:55.7531754Z If you want to create a new branch to retain commits you create, you may +2026-10-07T09:55:55.7532527Z do so (now or later) by using -c with the switch command. Example: +2026-10-07T09:55:55.7532972Z +2026-10-07T09:55:55.7533177Z git switch -c +2026-10-07T09:55:55.7533480Z +2026-10-07T09:55:55.7533626Z Or undo this operation with: +2026-10-07T09:55:55.7533886Z +2026-10-07T09:55:55.7534016Z git switch - +2026-10-07T09:55:55.7534253Z +2026-10-07T09:55:55.7534607Z Turn off this advice by setting config variable advice.detachedHead to false +2026-10-07T09:55:55.7535183Z +2026-10-07T09:55:55.7535820Z HEAD is now at c5c58df Merge 3bb661bfd904ea74dd6c924a15bc7c9c2120d976 into 2ddc233d300497f461f0cc0776dbf82e992cb9d7 +2026-10-07T09:55:55.7615299Z ##[endgroup] +2026-10-07T09:55:55.7980146Z [command]"C:\Program Files\Git\bin\git.exe" log -1 --format=%H +2026-10-07T09:55:55.8273507Z c5c58df5444423a7a3d2f9ae359af97cc995eca7 +2026-10-07T09:55:55.8321201Z ##[group]Removing auth +2026-10-07T09:55:55.8321492Z Removing SSH command configuration +2026-10-07T09:55:55.8329240Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core\.sshCommand +2026-10-07T09:55:55.8654355Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\"" +2026-10-07T09:55:56.5775793Z Removing HTTP extra header +2026-10-07T09:55:56.5790717Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader +2026-10-07T09:55:56.6238468Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\"" +2026-10-07T09:55:57.2658566Z Removing includeIf entries pointing to credentials config files +2026-10-07T09:55:57.2666323Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp ^includeIf\.gitdir: +2026-10-07T09:55:57.2928875Z includeif.gitdir:D:/a/pi-lens/pi-lens/.git.path +2026-10-07T09:55:57.2929552Z includeif.gitdir:D:/a/pi-lens/pi-lens/.git/worktrees/*.path +2026-10-07T09:55:57.2930162Z includeif.gitdir:/github/workspace/.git.path +2026-10-07T09:55:57.2930741Z includeif.gitdir:/github/workspace/.git/worktrees/*.path +2026-10-07T09:55:57.2972902Z [command]"C:\Program Files\Git\bin\git.exe" config --local --get-all includeif.gitdir:D:/a/pi-lens/pi-lens/.git.path +2026-10-07T09:55:57.3237158Z D:\a\_temp\git-credentials-c2a57075-64c3-462a-bb3f-e287d531ad74.config +2026-10-07T09:55:57.3280291Z [command]"C:\Program Files\Git\bin\git.exe" config --local --unset includeif.gitdir:D:/a/pi-lens/pi-lens/.git.path D\:\\a\\_temp\\git\-credentials\-c2a57075\-64c3\-462a\-bb3f\-e287d531ad74\.config +2026-10-07T09:55:57.3586651Z [command]"C:\Program Files\Git\bin\git.exe" config --local --get-all includeif.gitdir:D:/a/pi-lens/pi-lens/.git/worktrees/*.path +2026-10-07T09:55:57.3850155Z D:\a\_temp\git-credentials-c2a57075-64c3-462a-bb3f-e287d531ad74.config +2026-10-07T09:55:57.3892329Z [command]"C:\Program Files\Git\bin\git.exe" config --local --unset includeif.gitdir:D:/a/pi-lens/pi-lens/.git/worktrees/*.path D\:\\a\\_temp\\git\-credentials\-c2a57075\-64c3\-462a\-bb3f\-e287d531ad74\.config +2026-10-07T09:55:57.4208828Z [command]"C:\Program Files\Git\bin\git.exe" config --local --get-all includeif.gitdir:/github/workspace/.git.path +2026-10-07T09:55:57.4462792Z /github/runner_temp/git-credentials-c2a57075-64c3-462a-bb3f-e287d531ad74.config +2026-10-07T09:55:57.4516777Z [command]"C:\Program Files\Git\bin\git.exe" config --local --unset includeif.gitdir:/github/workspace/.git.path \/github\/runner_temp\/git\-credentials\-c2a57075\-64c3\-462a\-bb3f\-e287d531ad74\.config +2026-10-07T09:55:57.4899033Z [command]"C:\Program Files\Git\bin\git.exe" config --local --get-all includeif.gitdir:/github/workspace/.git/worktrees/*.path +2026-10-07T09:55:57.5100971Z /github/runner_temp/git-credentials-c2a57075-64c3-462a-bb3f-e287d531ad74.config +2026-10-07T09:55:57.5142609Z [command]"C:\Program Files\Git\bin\git.exe" config --local --unset includeif.gitdir:/github/workspace/.git/worktrees/*.path \/github\/runner_temp\/git\-credentials\-c2a57075\-64c3\-462a\-bb3f\-e287d531ad74\.config +2026-10-07T09:55:57.5443574Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "git config --local --show-origin --name-only --get-regexp remote.origin.url" +2026-10-07T09:55:58.0753633Z Removing credentials config 'D:\a\_temp\git-credentials-c2a57075-64c3-462a-bb3f-e287d531ad74.config' +2026-10-07T09:55:58.0765121Z ##[endgroup] +2026-10-07T09:55:58.1175677Z ##[group]Run echo "PI_LENS_HOME=$RUNNER_TEMP/pi-lens-home" >> "$GITHUB_ENV" +2026-10-07T09:55:58.1176295Z echo "PI_LENS_HOME=$RUNNER_TEMP/pi-lens-home" >> "$GITHUB_ENV" +2026-10-07T09:55:58.1390240Z shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0} +2026-10-07T09:55:58.1390984Z ##[endgroup] +2026-10-07T09:55:58.3868261Z ##[group]Run actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 +2026-10-07T09:55:58.3868711Z with: +2026-10-07T09:55:58.3868891Z node-version: 22 +2026-10-07T09:55:58.3869095Z check-latest: false +2026-10-07T09:55:58.3871612Z token: *** +2026-10-07T09:55:58.3871812Z package-manager-cache: true +2026-10-07T09:55:58.3872035Z env: +2026-10-07T09:55:58.3872210Z PI_LENS_HOME: D:\a\_temp/pi-lens-home +2026-10-07T09:55:58.3872465Z ##[endgroup] +2026-10-07T09:55:58.5488113Z Found in cache @ C:\hostedtoolcache\windows\node\22.23.3\x64 +2026-10-07T09:55:58.5494136Z ##[group]Environment details +2026-10-07T09:56:03.7303716Z node: v22.23.3 +2026-10-07T09:56:03.7303954Z npm: 10.9.9 +2026-10-07T09:56:03.7304115Z yarn: 1.22.22 +2026-10-07T09:56:03.7304532Z ##[endgroup] +2026-10-07T09:56:03.7310053Z Detected npm as the package manager from package.json's packageManager field. Auto caching has been enabled for npm. If you want to disable it, set package-manager-cache input to false +2026-10-07T09:56:03.8086970Z [command]C:\Windows\system32\cmd.exe /D /S /C "C:\hostedtoolcache\windows\node\22.23.3\x64\npm.cmd config get cache" +2026-10-07T09:56:04.3643084Z C:\npm\cache +2026-10-07T09:56:04.8171798Z Cache hit for: node-cache-Windows-x64-npm-f00c2c617419afaa47a33b16ac2421efdb108493928f044326659171a395f910 +2026-10-07T09:56:06.1253450Z Received 41943040 of 167963285 (25.0%), 39.7 MBs/sec +2026-10-07T09:56:07.1309609Z Received 125829120 of 167963285 (74.9%), 59.7 MBs/sec +2026-10-07T09:56:08.1329944Z Received 163768981 of 167963285 (97.5%), 51.8 MBs/sec +2026-10-07T09:56:08.8406174Z Received 167963285 of 167963285 (100.0%), 43.0 MBs/sec +2026-10-07T09:56:08.8409357Z Cache Size: ~160 MB (167963285 B) +2026-10-07T09:56:08.8508323Z [command]"C:\Program Files\Git\usr\bin\tar.exe" -xf D:/a/_temp/4ca1b00d-df2a-483f-8f02-ab8da8f7f07c/cache.tzst -P -C D:/a/pi-lens/pi-lens --force-local --use-compress-program "zstd -d" +2026-10-07T09:56:18.0484655Z Cache restored successfully +2026-10-07T09:56:18.0598001Z Cache restored from key: node-cache-Windows-x64-npm-f00c2c617419afaa47a33b16ac2421efdb108493928f044326659171a395f910 +2026-10-07T09:56:18.0899792Z ##[group]Run npm ci --no-audit --no-fund +2026-10-07T09:56:18.0900232Z npm ci --no-audit --no-fund +2026-10-07T09:56:18.1483291Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'" +2026-10-07T09:56:18.1483784Z env: +2026-10-07T09:56:18.1484015Z PI_LENS_HOME: D:\a\_temp/pi-lens-home +2026-10-07T09:56:18.1484298Z ##[endgroup] +2026-10-07T09:56:26.3305387Z npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead +2026-10-07T09:56:41.8405868Z +2026-10-07T09:56:41.8406510Z > pi-lens@4.3.0 prepare +2026-10-07T09:56:41.8408350Z > npm run build:dist && node scripts/download-grammars.js --core --dest grammars && node scripts/setup-git-hooks.mjs && node scripts/stamp-package-lock.mjs && node scripts/warm-loader-cache.mjs +2026-10-07T09:56:41.8410041Z +2026-10-07T09:56:42.1687850Z +2026-10-07T09:56:42.1688631Z > pi-lens@4.3.0 build:dist +2026-10-07T09:56:42.1690011Z > node -e "require('fs').rmSync('dist',{recursive:true,force:true})" && node scripts/build-dist-tsc.mjs tsconfig.dist.json && npm run bundle:dist +2026-10-07T09:56:42.1690921Z +2026-10-07T09:56:44.3471209Z +2026-10-07T09:56:44.3472013Z > pi-lens@4.3.0 bundle:dist +2026-10-07T09:56:44.3472547Z > node scripts/bundle-dist.mjs +2026-10-07T09:56:44.3472837Z +2026-10-07T09:56:45.5411544Z +2026-10-07T09:56:45.5412431Z dist\.bundle-split\mcp\server.js 852.0kb +2026-10-07T09:56:45.5413256Z dist\.bundle-split\chunk-K2WIMURH.js 794.4kb +2026-10-07T09:56:45.5413823Z dist\.bundle-split\chunk-EGCUMQR6.js 414.1kb +2026-10-07T09:56:45.5414595Z dist\.bundle-split\chunk-LVINYRVL.js 208.1kb +2026-10-07T09:56:45.5415211Z dist\.bundle-split\chunk-IRHXPSRX.js 171.9kb +2026-10-07T09:56:45.5415705Z ...and 122 more output files... +2026-10-07T09:56:45.5415996Z +2026-10-07T09:56:45.5416120Z Done in 316ms +2026-10-07T09:56:46.8243047Z [bundle] wrote 7 split entries and their shared chunks +2026-10-07T09:56:47.7743506Z +2026-10-07T09:56:47.7745470Z dist\index.bundled.mjs 5.0mb +2026-10-07T09:56:47.7745860Z +2026-10-07T09:56:47.7746019Z Done in 225ms +2026-10-07T09:56:47.8344230Z [bundle] wrote self-contained dist\index.js +2026-10-07T09:56:47.9707974Z Downloading core tree-sitter grammars (12) → D:\a\pi-lens\pi-lens\grammars +2026-10-07T09:56:48.1061139Z ok tree-sitter-json.wasm +2026-10-07T09:56:48.1121742Z ok tree-sitter-html.wasm +2026-10-07T09:56:48.1228660Z ok tree-sitter-css.wasm +2026-10-07T09:56:48.1311575Z ok tree-sitter-yaml.wasm +2026-10-07T09:56:48.1444774Z ok tree-sitter-python.wasm +2026-10-07T09:56:48.1476562Z ok tree-sitter-java.wasm +2026-10-07T09:56:48.1490715Z ok tree-sitter-go.wasm +2026-10-07T09:56:48.1567883Z ok tree-sitter-javascript.wasm +2026-10-07T09:56:48.1777286Z ok tree-sitter-rust.wasm +2026-10-07T09:56:48.2156647Z ok tree-sitter-bash.wasm +2026-10-07T09:56:48.2302002Z ok tree-sitter-tsx.wasm +2026-10-07T09:56:48.2551350Z ok tree-sitter-typescript.wasm +2026-10-07T09:56:48.2552358Z All grammars downloaded successfully. +2026-10-07T09:56:48.3237435Z [setup-git-hooks] skipped (CI is set). +2026-10-07T09:56:49.1395343Z [warm-loader-cache] not cached: dist\index.js after 484ms — no cache entry was written: dist-index.9e701967.mjs +2026-10-07T09:56:49.1725359Z +2026-10-07T09:56:49.1725737Z added 442 packages in 30s +2026-10-07T09:56:50.5161148Z ##[group]Run npm run build +2026-10-07T09:56:50.5161498Z npm run build +2026-10-07T09:56:50.5233477Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'" +2026-10-07T09:56:50.5233833Z env: +2026-10-07T09:56:50.5234031Z PI_LENS_HOME: D:\a\_temp/pi-lens-home +2026-10-07T09:56:50.5234297Z ##[endgroup] +2026-10-07T09:56:51.2295155Z +2026-10-07T09:56:51.2295605Z > pi-lens@4.3.0 build +2026-10-07T09:56:51.2295977Z > tsc --project tsconfig.build.json +2026-10-07T09:56:51.2296202Z +2026-10-07T09:56:54.0210810Z ##[group]Run set -euo pipefail +2026-10-07T09:56:54.0211194Z set -euo pipefail +2026-10-07T09:56:54.0211584Z mapfile -t FILES < <(node scripts/lib/win32-gate-population.mjs --files) +2026-10-07T09:56:54.0212102Z [[ ${#FILES[@]} -eq 0 ]] && { echo "::error::enumeration empty"; exit 1; } +2026-10-07T09:56:54.0212630Z printf '%s\n' "${FILES[@]}" | sort -u | tee "$RUNNER_TEMP/windows-vitest-files.txt" +2026-10-07T09:56:54.0213289Z printf 'Windows Vitest subset: %s files\n' "$(sort -u "$RUNNER_TEMP/windows-vitest-files.txt" | wc -l)" +2026-10-07T09:56:54.0229650Z shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0} +2026-10-07T09:56:54.0230064Z env: +2026-10-07T09:56:54.0230280Z PI_LENS_HOME: D:\a\_temp/pi-lens-home +2026-10-07T09:56:54.0230548Z ##[endgroup] +2026-10-07T09:56:55.1184885Z tests/clients/dispatch/runners/elixir-parser.test.ts +2026-10-07T09:56:55.1186228Z tests/clients/dispatch/runners/go-vet.test.ts +2026-10-07T09:56:55.1187078Z tests/clients/dispatch/runners/reported-path-attribution.test.ts +2026-10-07T09:56:55.1189249Z tests/clients/installer/installer-lifecycle.integration.test.ts +2026-10-07T09:56:55.1190274Z tests/clients/lsp/launch.test.ts +2026-10-07T09:56:55.1190869Z tests/clients/path-utils-win32-absolute.test.ts +2026-10-07T09:56:55.1191709Z tests/clients/path-utils.test.ts +2026-10-07T09:56:55.1192463Z tests/clients/pipeline.test.ts +2026-10-07T09:56:55.1194157Z tests/clients/read-guard-path-normalization.test.ts +2026-10-07T09:56:55.1194931Z tests/clients/review-graph.service.test.ts +2026-10-07T09:56:55.1195591Z tests/clients/ruff-client-reported-path.test.ts +2026-10-07T09:56:55.1196243Z tests/clients/runtime-tool-result.test.ts +2026-10-07T09:56:55.1196883Z tests/clients/safe-spawn-windows-command.test.ts +2026-10-07T09:56:55.1197490Z tests/clients/tool-cwd.test.ts +2026-10-07T09:56:55.1197941Z tests/config/adr-log.test.ts +2026-10-07T09:56:55.1198471Z tests/config/advisory-tool-workflow.test.ts +2026-10-07T09:56:55.1199338Z tests/config/agents-governance.test.ts +2026-10-07T09:56:55.1200048Z tests/config/bounded-container-guard.test.ts +2026-10-07T09:56:55.1200711Z tests/config/bounded-eviction-idiom-sweep.test.ts +2026-10-07T09:56:55.1201404Z tests/config/ci-infra-kill-rerun-gate.test.ts +2026-10-07T09:56:55.1202042Z tests/config/close-keyword-workflow.test.ts +2026-10-07T09:56:55.1202594Z tests/config/codeql-workflow.test.ts +2026-10-07T09:56:55.1203126Z tests/config/config-core-schema-stability.test.ts +2026-10-07T09:56:55.1203780Z tests/config/covers-config-claim-sweep.test.ts +2026-10-07T09:56:55.1204210Z tests/config/degradation-kind-coverage.test.ts +2026-10-07T09:56:55.1204579Z tests/config/degradation-kind-order.test.ts +2026-10-07T09:56:55.1204928Z tests/config/dependency-boundaries.test.ts +2026-10-07T09:56:55.1205295Z tests/config/diagnostics-bus-conformance.test.ts +2026-10-07T09:56:55.1205701Z tests/config/dmts-export-drift.test.ts +2026-10-07T09:56:55.1206024Z tests/config/docs-only-ci-skip.test.ts +2026-10-07T09:56:55.1206330Z tests/config/engines-node-floor.test.ts +2026-10-07T09:56:55.1206666Z tests/config/escape-regexp-fold-sweep.test.ts +2026-10-07T09:56:55.1207042Z tests/config/files-touched-bus-conformance.test.ts +2026-10-07T09:56:55.1207450Z tests/config/git-fixture-governance.test.ts +2026-10-07T09:56:55.1207814Z tests/config/github-token-write-gates.test.ts +2026-10-07T09:56:55.1208183Z tests/config/github-workflow-permissions.test.ts +2026-10-07T09:56:55.1208552Z tests/config/gitignore-tracked-shadow.test.ts +2026-10-07T09:56:55.1208915Z tests/config/global-dir-probe-redirect.test.ts +2026-10-07T09:56:55.1209316Z tests/config/global-only-non-flag-key-registry.test.ts +2026-10-07T09:56:55.1209698Z tests/config/glossary-synonym-sweep.test.ts +2026-10-07T09:56:55.1210059Z tests/config/heavy-advisory-gate-workflow.test.ts +2026-10-07T09:56:55.1210411Z tests/config/hook-await-bounds.test.ts +2026-10-07T09:56:55.1210719Z tests/config/install-smoke-gates.test.ts +2026-10-07T09:56:55.1212807Z tests/config/install-smoke-pnpm-global-config.test.ts +2026-10-07T09:56:55.1213324Z tests/config/installer-dev-dependency-pin.test.ts +2026-10-07T09:56:55.1213706Z tests/config/knip-entry-coverage.test.ts +2026-10-07T09:56:55.1214054Z tests/config/label-manifest-coverage.test.ts +2026-10-07T09:56:55.1214399Z tests/config/label-sync-validation.test.ts +2026-10-07T09:56:55.1214758Z tests/config/lane-mechanics-contract.test.ts +2026-10-07T09:56:55.1215157Z tests/config/latency-logger-mock-shape.test.ts +2026-10-07T09:56:55.1215566Z tests/config/lsp-advertised-capability-senders.test.ts +2026-10-07T09:56:55.1215972Z tests/config/lsp-clean-behavior-census.test.ts +2026-10-07T09:56:55.1216504Z tests/config/lsp-first-publish-census.test.ts +2026-10-07T09:56:55.1217010Z tests/config/lsp-fixture-home-workflow-pin.test.ts +2026-10-07T09:56:55.1217374Z tests/config/lsp-gate-population.test.ts +2026-10-07T09:56:55.1217728Z tests/config/lsp-idle-eviction-measurement.test.ts +2026-10-07T09:56:55.1218109Z tests/config/lsp-idle-eviction-registry.test.ts +2026-10-07T09:56:55.1218480Z tests/config/lsp-service-double-sweep.test.ts +2026-10-07T09:56:55.1219070Z tests/config/lsp-spawn-heavy-coverage.test.ts +2026-10-07T09:56:55.1219430Z tests/config/merge-queue-workflows.test.ts +2026-10-07T09:56:55.1219778Z tests/config/module-instance-binding.test.ts +2026-10-07T09:56:55.1220135Z tests/config/module-instance-coverage.test.ts +2026-10-07T09:56:55.1220512Z tests/config/oxlint-advisory-rule-floor-gate.test.ts +2026-10-07T09:56:55.1220906Z tests/config/parameter-schema-budget.test.ts +2026-10-07T09:56:55.1221266Z tests/config/parameter-schema-structure.test.ts +2026-10-07T09:56:55.1221613Z tests/config/path-key-fold-sweep.test.ts +2026-10-07T09:56:55.1221941Z tests/config/pi-lens-config-schema.test.ts +2026-10-07T09:56:55.1222260Z tests/config/process-table-seam.test.ts +2026-10-07T09:56:55.1222571Z tests/config/real-harness-lane.test.ts +2026-10-07T09:56:55.1222894Z tests/config/release-npm-pin-gate.test.ts +2026-10-07T09:56:55.1223268Z tests/config/reported-path-attribution-sweep.test.ts +2026-10-07T09:56:55.1223658Z tests/config/result-contract-governance.test.ts +2026-10-07T09:56:55.1224029Z tests/config/runner-marker-containment.test.ts +2026-10-07T09:56:55.1224375Z tests/config/schema-stability-tiers.test.ts +2026-10-07T09:56:55.1224718Z tests/config/script-entry-portability.test.ts +2026-10-07T09:56:55.1225050Z tests/config/session-scope-sweep.test.ts +2026-10-07T09:56:55.1225422Z tests/config/sharded-aggregate-failure-policy.test.ts +2026-10-07T09:56:55.1225978Z tests/config/shell-dialect-ownership-sweep.test.ts +2026-10-07T09:56:55.1226373Z tests/config/strategy-marker-pair-coverage.test.ts +2026-10-07T09:56:55.1226731Z tests/config/strictness-ratchet.test.ts +2026-10-07T09:56:55.1227059Z tests/config/stryker-diff-exclusions.test.ts +2026-10-07T09:56:55.1227402Z tests/config/stryker-nightly-workflow.test.ts +2026-10-07T09:56:55.1227750Z tests/config/sweep-floor-coverage.test.ts +2026-10-07T09:56:55.1228097Z tests/config/sync-child-process-timeout.test.ts +2026-10-07T09:56:55.1228450Z tests/config/targeted-tests-workflow.test.ts +2026-10-07T09:56:55.1228788Z tests/config/test-history-workflow.test.ts +2026-10-07T09:56:55.1229111Z tests/config/test-shard-assignment.test.ts +2026-10-07T09:56:55.1229449Z tests/config/timing-sensitive-coverage.test.ts +2026-10-07T09:56:55.1229803Z tests/config/tla-coverage-governance.test.ts +2026-10-07T09:56:55.1230149Z tests/config/tla-models-shard-workflow.test.ts +2026-10-07T09:56:55.1230486Z tests/config/tmp-fixture-hygiene.test.ts +2026-10-07T09:56:55.1230816Z tests/config/tool-registry-governance.test.ts +2026-10-07T09:56:55.1231150Z tests/config/tool-roster-budget.test.ts +2026-10-07T09:56:55.1231497Z tests/config/tool-smoke-fish-provisioning.test.ts +2026-10-07T09:56:55.1231852Z tests/config/tool-smoke-notify-gate.test.ts +2026-10-07T09:56:55.1232191Z tests/config/tracked-control-bytes.test.ts +2026-10-07T09:56:55.1233067Z tests/config/tracking-issue-workflow-contract.test.ts +2026-10-07T09:56:55.1233528Z tests/config/turn-end-lane-boundaries.test.ts +2026-10-07T09:56:55.1233894Z tests/config/unit-tests-shard-workflow.test.ts +2026-10-07T09:56:55.1234517Z tests/config/vacuous-skip-coverage.test.ts +2026-10-07T09:56:55.1234848Z tests/config/vi-domock-undo.test.ts +2026-10-07T09:56:55.1235186Z tests/config/vi-mock-export-sweep.test.ts +2026-10-07T09:56:55.1235501Z tests/config/vitest-lane-order.test.ts +2026-10-07T09:56:55.1235794Z tests/config/win32-gate-lane.test.ts +2026-10-07T09:56:55.1236123Z tests/config/windows-vitest-workflow.test.ts +2026-10-07T09:56:55.1236939Z tests/config/worker-budget.test.ts +2026-10-07T09:56:55.1237323Z tests/config/worker-peak-rss-budget.test.ts +2026-10-07T09:56:55.1238036Z tests/config/workflow-concurrency-edit-safety.test.ts +2026-10-07T09:56:55.1238740Z tests/config/workflow-graph-retired-hops.test.ts +2026-10-07T09:56:55.1239491Z tests/config/workflow-pull-request-reachability.test.ts +2026-10-07T09:56:55.1240287Z tests/config/workflow-shell-portability.test.ts +2026-10-07T09:56:55.1240886Z tests/mcp/turn-end-route.smoke.test.ts +2026-10-07T09:56:55.1241488Z tests/scripts/prune-agent-worktrees.test.ts +2026-10-07T09:56:55.1887013Z Windows Vitest subset: 113 files +2026-10-07T09:56:55.2085906Z ##[group]Run set -euo pipefail +2026-10-07T09:56:55.2086269Z set -euo pipefail +2026-10-07T09:56:55.2086626Z mapfile -t FILES < "$RUNNER_TEMP/windows-vitest-files.txt" +2026-10-07T09:56:55.2087094Z node_modules/.bin/vitest run "${FILES[@]}" --configLoader runner +2026-10-07T09:56:55.2103004Z shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0} +2026-10-07T09:56:55.2103396Z env: +2026-10-07T09:56:55.2103588Z PI_LENS_HOME: D:\a\_temp/pi-lens-home +2026-10-07T09:56:55.2103860Z PI_LENS_TEST_TIMEOUT_SCALE: 3 +2026-10-07T09:56:55.2104093Z ##[endgroup] +2026-10-07T09:56:55.9097059Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:56:55.9539279Z +2026-10-07T09:56:55.9541479Z  RUN  v5.0.3 D:/a/pi-lens/pi-lens +2026-10-07T09:56:55.9542293Z +2026-10-07T09:56:58.9950673Z ❯  default  tests/clients/path-utils.test.ts (179 tests | 3 failed | 7 skipped) 548ms +2026-10-07T09:56:58.9952479Z ✓ isWindowsPath (#1213 review pins) (1) +2026-10-07T09:56:58.9953580Z ✓ matches drive-prefixed and UNC shapes only 5ms +2026-10-07T09:56:58.9955163Z ✓ isFullyQualified matrix additions (#1213 review pins) (1) +2026-10-07T09:56:58.9956414Z ✓ classifies long-path and embedded-backslash forms 1ms +2026-10-07T09:56:58.9957373Z ✓ path-utils (20) +2026-10-07T09:56:58.9958342Z ✓ isFullyQualifiedPosix: Windows drive-relative 0ms +2026-10-07T09:56:58.9959946Z ✓ isFullyQualifiedPosix: Windows rooted-relative 1ms +2026-10-07T09:56:58.9961139Z ✓ isFullyQualifiedPosix: Windows drive-absolute 0ms +2026-10-07T09:56:58.9962628Z ✓ isFullyQualifiedPosix: Windows UNC 0ms +2026-10-07T09:56:58.9963710Z ✓ isFullyQualifiedPosix: POSIX root 0ms +2026-10-07T09:56:58.9964780Z ✓ isFullyQualifiedPosix: POSIX absolute 0ms +2026-10-07T09:56:58.9965874Z ✓ isFullyQualifiedPosix: relative 1ms +2026-10-07T09:56:58.9966913Z ✓ isFullyQualifiedPosix: dot-relative 0ms +2026-10-07T09:56:58.9968022Z ✓ isFullyQualifiedWin32: Windows drive-relative 0ms +2026-10-07T09:56:58.9969234Z ✓ isFullyQualifiedWin32: Windows rooted-relative 0ms +2026-10-07T09:56:58.9970464Z ✓ isFullyQualifiedWin32: Windows drive-absolute 0ms +2026-10-07T09:56:58.9971566Z ✓ isFullyQualifiedWin32: Windows UNC 0ms +2026-10-07T09:56:58.9972591Z ✓ isFullyQualifiedWin32: POSIX root 0ms +2026-10-07T09:56:58.9973630Z ✓ isFullyQualifiedWin32: POSIX absolute 0ms +2026-10-07T09:56:58.9974650Z ✓ isFullyQualifiedWin32: relative 0ms +2026-10-07T09:56:58.9975651Z ✓ isFullyQualifiedWin32: dot-relative 0ms +2026-10-07T09:56:58.9976879Z ✓ classifies /foo according to explicit platform semantics 0ms +2026-10-07T09:56:58.9978921Z ✓ classifies ordinary host-native paths through the ambient helper 0ms +2026-10-07T09:56:58.9981137Z ✓ uriToPath decodes URL-encoded file URIs 1ms +2026-10-07T09:56:58.9982341Z ✓ pathToUri + uriToPath round-trips an existing file 5ms +2026-10-07T09:56:58.9983782Z ✓ normalizeFilePath: Windows-shaped path is OS-coherent (refs #1150, class #1024) (3) +2026-10-07T09:56:58.9988092Z ✓ forward-slash and backslash forms normalize to the same key (coherence) 1ms +2026-10-07T09:56:58.9989944Z ✓ preserves the path structure and drive-letter shape — never collapses to a cwd-relative key 1ms +2026-10-07T09:56:58.9991570Z ✓ normalizeMapKey (the map-key entry point) yields the same stable key 2ms +2026-10-07T09:56:58.9993417Z ❯ normalizeFilePath: POSIX adopts on-disk casing (#3098, the live half of #1024) (10) +2026-10-07T09:56:58.9995781Z ✓ a mis-cased spelling and the on-disk spelling derive ONE map key 3ms +2026-10-07T09:56:58.9997639Z ✓ adopts the on-disk casing itself — never a lowercased or uppercased form 3ms +2026-10-07T09:56:59.0000941Z ↓ keeps a symlinked PREFIX — POSIX normalization still resolves no symlink 1ms [win32 arm resolves symlinks by design (unchanged by #3098); lane: ubuntu Unit tests] +2026-10-07T09:56:59.0004355Z ↓ a symlinked prefix with a mis-cased tail fixes the casing only (the macOS /var/folders shape) 0ms [win32 arm resolves symlinks by design (unchanged by #3098); lane: ubuntu Unit tests] +2026-10-07T09:56:59.0007816Z  × a path that does not exist stays case-preserving 16ms +2026-10-07T09:56:59.0009303Z  × POSIX relative existing and empty keys keep their prior contract 8ms +2026-10-07T09:56:59.0011864Z ↓ a case-variant symlink to a different directory never collapses two real files onto one key 8ms [case-insensitive filesystem: MyProject and myproject cannot be two entries here] +2026-10-07T09:56:59.0015068Z ↓ a case-variant symlink with no colliding sibling keys under a path that exists 5ms [case-insensitive filesystem: node_modules/Foo and node_modules/foo are one entry here] +2026-10-07T09:56:59.0018026Z ↓ a case-variant symlink whose target is its own sibling resolves through it 3ms [case-insensitive filesystem: LINK and link cannot be two entries here] +2026-10-07T09:56:59.0021184Z ↓ two genuinely distinct files on a case-sensitive filesystem keep two keys 3ms [case-insensitive filesystem: SUB and sub cannot be two directories here] +2026-10-07T09:56:59.0023254Z ✓ normalizeFilePath: dot segments fold into the canonical key (#3184) (7) +2026-10-07T09:56:59.0024723Z ✓ an absolute dot-segment path that EXISTS keys the same as the plain spelling 4ms +2026-10-07T09:56:59.0026142Z ✓ an absolute dot-segment path that does NOT exist folds too 3ms +2026-10-07T09:56:59.0027410Z ✓ `.` segments and duplicate separators fold as well 3ms +2026-10-07T09:56:59.0028787Z ✓ a RELATIVE path stays relative — the fold never resolves against process.cwd() (#2490) 1ms +2026-10-07T09:56:59.0030193Z ✓ an empty string is returned unchanged, not invented into the cwd 0ms +2026-10-07T09:56:59.0031978Z ↓ a UNC-shaped root keeps its leading double slash on POSIX 0ms [win32 host routes UNC through the win32 arm; this pins the POSIX arm] +2026-10-07T09:56:59.0033746Z ✓ a Windows-shaped path still folds dot segments through the win32 arm, unchanged by this fix 1ms +2026-10-07T09:56:59.0035233Z ✓ toProjectRelativePath: Windows-shaped path relativizes on ANY OS (refs #1163, class #1150/#1024) (4) +2026-10-07T09:56:59.0037406Z ✓ backslash form under a backslash root → forward-slashed project-relative path 0ms +2026-10-07T09:56:59.0038749Z ✓ forward-slash win32 form under a win32 root → project-relative path 0ms +2026-10-07T09:56:59.0040117Z ✓ UNC-shaped path under a UNC root relativizes rather than returning the whole path 0ms +2026-10-07T09:56:59.0041844Z ✓ a win32 file OUTSIDE the win32 root keeps the (slash-folded) absolute path 0ms +2026-10-07T09:56:59.0042857Z ✓ normalizeEphemeralMapKey (refs #191) (3) +2026-10-07T09:56:59.0043870Z ✓ folds backslash and forward-slash forms to the same key 0ms +2026-10-07T09:56:59.0045441Z ✓ does not touch the filesystem (never throws for a nonexistent path, no realpath resolution) 1ms +2026-10-07T09:56:59.0047086Z ✓ is case-insensitive on win32 semantics (matches this suite's Windows CI target) 0ms +2026-10-07T09:56:59.0048381Z ✓ walkUpDirs / findNearestContaining (#122) (4) +2026-10-07T09:56:59.0049725Z ✓ walkUpDirs yields every directory from startDir up to the filesystem root and stops 8ms +2026-10-07T09:56:59.0051689Z ✓ findNearestContaining returns the nearest containing directory, not a higher one 9ms +2026-10-07T09:56:59.0053247Z ✓ findNearestContaining matches the first candidate filename that exists 3ms +2026-10-07T09:56:59.0054826Z ✓ findNearestContaining returns undefined when no candidate is found anywhere 3ms +2026-10-07T09:56:59.0056058Z ✓ findLocalToolConfig (refs #680) (7) +2026-10-07T09:56:59.0057193Z ✓ returns the matched FILE path, not just the containing directory 3ms +2026-10-07T09:56:59.0058572Z ✓ prefers the nearest directory over a match higher up the tree 5ms +2026-10-07T09:56:59.0059983Z ✓ within a single directory, matches candidate names in list order 3ms +2026-10-07T09:56:59.0061809Z ✓ returns undefined when no candidate name is found anywhere up the tree 2ms +2026-10-07T09:56:59.0063461Z ✓ falls back to process.cwd() when startDir is empty, matching prior per-tool behavior 1ms +2026-10-07T09:56:59.0065354Z ✓ stops the ancestor climb at options.homeDir when a config sits one level above it, but only when homeDir is passed 6ms +2026-10-07T09:56:59.0067222Z ✓ resolves a config AT a mocked HOME by default, but not once { homeDir } opts into the ceiling 2ms +2026-10-07T09:56:59.0068614Z ✓ Git ownership certainty preserves the legacy marker API (13) +2026-10-07T09:56:59.0069946Z ✓ keeps boolean callback results when the later marker is missing 4ms +2026-10-07T09:56:59.0071951Z ✓ keeps boolean callback results when the later marker is invalid-file 4ms +2026-10-07T09:56:59.0073598Z ✓ keeps boolean callback results when the later marker is headless-directory 4ms +2026-10-07T09:56:59.0075087Z ✓ keeps ENOENT distinct from a successful marker validation 4ms +2026-10-07T09:56:59.0076384Z ✓ keeps ENOTDIR distinct from a successful marker validation 3ms +2026-10-07T09:56:59.0077742Z ✓ keeps EACCES distinct from a successful marker validation 2ms +2026-10-07T09:56:59.0079082Z ✓ keeps ESTALE distinct from a successful marker validation 2ms +2026-10-07T09:56:59.0081530Z ✓ retains valid and invalid file/directory marker semantics in both modes 5ms +2026-10-07T09:56:59.0084048Z ✓ keeps legacy predicate existence ordering and propagates its exceptions 2ms +2026-10-07T09:56:59.0085476Z ✓ does not probe a detailed marker at or above the home ceiling 1ms +2026-10-07T09:56:59.0087994Z ✓ probes markers in order per directory and climbs past an absent one 4ms +2026-10-07T09:56:59.0089738Z ✓ exposes the exact 64-iteration boundary and home ceiling without changing legacy null 137ms +2026-10-07T09:56:59.0092830Z ✓ reports reason root when the walk reaches the filesystem root below an unrelated home 7ms +2026-10-07T09:56:59.0095667Z ✓ findNearestMarkerRoot (refs #625) (5) +2026-10-07T09:56:59.0096678Z ✓ resolves the nearest directory containing a marker 5ms +2026-10-07T09:56:59.0100817Z ✓ never resolves at or above the given home dir 9ms +2026-10-07T09:56:59.0102303Z ✓ stops at a boundary marker found before any project marker 6ms +2026-10-07T09:56:59.0103683Z ✓ does not stop at a boundary that coincides with the marker directory itself 5ms +2026-10-07T09:56:59.0105470Z ✓ returns null (never startDir) when nothing matches up to the filesystem root 3ms +2026-10-07T09:56:59.0106932Z ✓ isAtOrAboveHomeDir (#253) — posix path semantics on every lane (#2544 F2) (14) +2026-10-07T09:56:59.0107950Z ✓ home itself → true 0ms +2026-10-07T09:56:59.0108699Z ✓ home's parent → true 0ms +2026-10-07T09:56:59.0109471Z ✓ home's grandparent → true 0ms +2026-10-07T09:56:59.0110262Z ✓ the filesystem root → true 0ms +2026-10-07T09:56:59.0111086Z ✓ a project under home → false 0ms +2026-10-07T09:56:59.0111925Z ✓ a direct child of home → false 0ms +2026-10-07T09:56:59.0112705Z ✓ a sibling tree → false 0ms +2026-10-07T09:56:59.0113625Z ✓ an unresolved path that normalizes TO h… → true 0ms +2026-10-07T09:56:59.0114736Z ✓ an unresolved path that normalizes UNDE… → false 0ms +2026-10-07T09:56:59.0115838Z ✓ a directory whose name merely PREFIXES … → false 0ms +2026-10-07T09:56:59.0116903Z ✓ a project under a name that merely pref… → false 0ms +2026-10-07T09:56:59.0117931Z ✓ an unrelated absolute tree → false 0ms +2026-10-07T09:56:59.0118943Z ✓ a re-cased home (case-sensitive: a diff… → false 0ms +2026-10-07T09:56:59.0120014Z ✓ a re-cased home in the HOME argument → false 0ms +2026-10-07T09:56:59.0121682Z ✓ isAtOrAboveHomeDir (#253) — win32 path semantics on every lane (#2544 F2) (14) +2026-10-07T09:56:59.0122734Z ✓ home itself → true 0ms +2026-10-07T09:56:59.0123501Z ✓ home's parent → true 0ms +2026-10-07T09:56:59.0124329Z ✓ home's grandparent → true 0ms +2026-10-07T09:56:59.0125144Z ✓ the filesystem root → true 0ms +2026-10-07T09:56:59.0126656Z ✓ a project under home → false 0ms +2026-10-07T09:56:59.0127983Z ✓ a direct child of home → false 3ms +2026-10-07T09:56:59.0128902Z ✓ a sibling tree → false 0ms +2026-10-07T09:56:59.0129885Z ✓ an unresolved path that normalizes TO h… → true 0ms +2026-10-07T09:56:59.0131303Z ✓ an unresolved path that normalizes UNDE… → false 0ms +2026-10-07T09:56:59.0132534Z ✓ a directory whose name merely PREFIXES … → false 0ms +2026-10-07T09:56:59.0133664Z ✓ a project under a name that merely pref… → false 0ms +2026-10-07T09:56:59.0135314Z ✓ the root of another drive → false 0ms +2026-10-07T09:56:59.0137772Z ✓ a re-spelled home (lowercase drive + fo… → true 0ms +2026-10-07T09:56:59.0149166Z ✓ a re-spelled home in the HOME argument → true 0ms +2026-10-07T09:56:59.0150011Z ✓ isExternalOrVendorFile (8) +2026-10-07T09:56:59.0150807Z ✓ returns false for a normal source file 2ms +2026-10-07T09:56:59.0151779Z ✓ returns true for a file outside the project root 1ms +2026-10-07T09:56:59.0152684Z ✓ returns true for node_modules 1ms +2026-10-07T09:56:59.0153446Z ✓ returns true for vendor/ 2ms +2026-10-07T09:56:59.0154167Z ✓ returns true for vendors/ 1ms +2026-10-07T09:56:59.0154934Z ✓ returns true for third_party/ 2ms +2026-10-07T09:56:59.0155720Z ✓ returns true for third-party/ 1ms +2026-10-07T09:56:59.0157057Z ✓ returns false for a dir that merely contains 'vendor' as a substring 1ms +2026-10-07T09:56:59.0158854Z ✓ toPosix (refs #1193) (4) +2026-10-07T09:56:59.0159829Z ✓ folds backslashes to forward slashes 0ms +2026-10-07T09:56:59.0161599Z ✓ is a no-op on an already-forward-slashed path 0ms +2026-10-07T09:56:59.0165464Z ✓ is exactly the inline idiom it replaces (does NOT collapse, resolve, or lowercase) 0ms +2026-10-07T09:56:59.0167414Z ✓ handles empty string 0ms +2026-10-07T09:56:59.0168386Z ✓ splitPathSegments (refs #1193, #1161/#1163) (3) +2026-10-07T09:56:59.0170302Z ✓ splits on EITHER separator regardless of host, dropping empties 0ms +2026-10-07T09:56:59.0172425Z ✓ collapses doubled separators and drops leading/trailing empties 0ms +2026-10-07T09:56:59.0173747Z ✓ returns [] for empty or separator-only input 0ms +2026-10-07T09:56:59.0175442Z ✓ normalizeLoggedPath (#2219, #2229 review round 1) (10) +2026-10-07T09:56:59.0177052Z ✓ normalizes a Windows-shaped absolute path independent of the host platform 1ms +2026-10-07T09:56:59.0178938Z ✓ normalizes a POSIX-shaped absolute path independent of the host platform 1ms +2026-10-07T09:56:59.0180677Z ✓ passes the non-path value "" through unchanged 0ms +2026-10-07T09:56:59.0184311Z ✓ passes the non-path value "" through unchanged 0ms +2026-10-07T09:56:59.0185569Z ✓ passes the non-path value "" through unchanged 0ms +2026-10-07T09:56:59.0187152Z ✓ passes the non-path value "" through unchanged 0ms +2026-10-07T09:56:59.0190524Z ✓ passes the non-path value "git" through unchanged 0ms +2026-10-07T09:56:59.0191772Z ✓ passes the non-path value "npm run build" through unchanged 0ms +2026-10-07T09:56:59.0192998Z ✓ passes the non-path value "relative/a.ts" through unchanged 0ms +2026-10-07T09:56:59.0194397Z ✓ pins current behavior for a drive-rooted command WITH arguments (no live caller does this) 1ms +2026-10-07T09:56:59.0195455Z ✓ homeRelativePath (#2440 F5) (5) +2026-10-07T09:56:59.0211171Z ✓ rewrites a $HOME-anchored path to its ~ form 1ms +2026-10-07T09:56:59.0216082Z ✓ returns a bare ~ for the home directory itself 0ms +2026-10-07T09:56:59.0217284Z ✓ leaves a path outside home untouched, separators included 1ms +2026-10-07T09:56:59.0218464Z ✓ does not rewrite a SIBLING whose name merely starts with home's 0ms +2026-10-07T09:56:59.0220261Z ✓ takes the home directory as an argument, so no assertion depends on the box 0ms +2026-10-07T09:56:59.0225056Z ✓ matchesWorkspaceMemberPattern dialect table (#2591) (38) +2026-10-07T09:56:59.0226212Z ✓ literal path: crates/foo vs crates/foo 1ms +2026-10-07T09:56:59.0227156Z ✓ `*` inside one component: crates/* vs crates/foo 1ms +2026-10-07T09:56:59.0228247Z ✓ segment-count mismatch — `*` may not cr…: crates/* vs crates/foo/bar 0ms +2026-10-07T09:56:59.0229356Z ✓ bare `*` claims one component only: * vs a/b 0ms +2026-10-07T09:56:59.0230515Z ✓ `**` crosses components (cargo: pattern…: crates/** vs crates/a/b 0ms +2026-10-07T09:56:59.0231987Z ✓ a TRAILING `**` still requires at least…: crates/** vs crates 0ms +2026-10-07T09:56:59.0233186Z ✓ a TRAILING `**` is not satisfied by the…: crates/** vs crates/ 0ms +2026-10-07T09:56:59.0234325Z ✓ an INTERIOR `**` may consume zero compo…: a/**/b vs a/b 0ms +2026-10-07T09:56:59.0235427Z ✓ a LEADING `**` may consume zero compone…: **/tests vs tests 0ms +2026-10-07T09:56:59.0236666Z ✓ `**` anywhere kills a cargo pattern, ev…: crates/a**b vs crates/aXb 0ms +2026-10-07T09:56:59.0237992Z ✓ case-sensitive on every platform (patte…: Crates/* vs crates/foo 1ms +2026-10-07T09:56:59.0239349Z ✓ case-sensitive on every platform (path …: crates/* vs Crates/foo 0ms +2026-10-07T09:56:59.0240557Z ✓ a leading dot is an ordinary character …: crates/* vs crates/.hidden 0ms +2026-10-07T09:56:59.0242006Z ✓ `?` matches exactly one character: crates/a?c vs crates/abc 0ms +2026-10-07T09:56:59.0243857Z ✓ `?` may not cross `/` except in uv excl…: crates/a?c vs crates/a/c 0ms +2026-10-07T09:56:59.0245612Z ✓ trailing slash — cargo strips it, uv no…: crates/foo/ vs crates/foo 1ms +2026-10-07T09:56:59.0247035Z ✓ trailing slash after a wildcard compone…: crates/*/ vs crates/foo 0ms +2026-10-07T09:56:59.0248461Z ✓ leading ./ — uv normalize_path drops it…: ./packages/a vs packages/a 0ms +2026-10-07T09:56:59.0249829Z ✓ character class — a class in uv, a lite…: crates/[ab] vs crates/a 0ms +2026-10-07T09:56:59.0256097Z ✓ character class — the same pattern name…: crates/[ab] vs crates/[ab] 0ms +2026-10-07T09:56:59.0271611Z ✓ negated character class: crates/[!ab] vs crates/c 0ms +2026-10-07T09:56:59.0277795Z ✓ the acceptance vector: a separator-cros…: packages/a*c vs packages/a/b/c 0ms +2026-10-07T09:56:59.0287109Z ✓ a regex metacharacter is a literal, not…: crates/a.c vs crates/abc 0ms +2026-10-07T09:56:59.0303238Z ✓ a regex metacharacter matches itself: crates/a+b vs crates/a+b 1ms +2026-10-07T09:56:59.0304590Z ✓ chained `**`: interior, consuming zero …: a/**/**/**/b vs a/b 1ms +2026-10-07T09:56:59.0306156Z ✓ chained `**`: interior, consuming sever…: a/**/**/**/b vs a/x/y/b 0ms +2026-10-07T09:56:59.0307452Z ✓ chained `**`: a trailing chain still re…: a/**/**/** vs a 0ms +2026-10-07T09:56:59.0308688Z ✓ interleaved `**/*` chain, every `**` co…: **/*/**/*/zzz vs a/b/zzz 2ms +2026-10-07T09:56:59.0309978Z ✓ interleaved `**/*` chain, the `**`s con…: **/*/**/*/zzz vs a/b/c/d/e/zzz 1ms +2026-10-07T09:56:59.0311262Z ✓ interleaved `**/*` chain against a path…: **/*/**/*/zzz vs a/b/c/d/e 0ms +2026-10-07T09:56:59.0312560Z ✓ a `*` interleaved with `**` still cross…: **/a*c/zzz vs x/a/b/c/zzz 0ms +2026-10-07T09:56:59.0315695Z ✓ `**` crosses an ordinary directory name: **/c vs ab/c 0ms +2026-10-07T09:56:59.0317577Z ✓ `**` does NOT cross a newline inside a …: **/c vs a +2026-10-07T09:56:59.0319643Z b/c 0ms +2026-10-07T09:56:59.0321143Z ✓ uncompilable class range fails closed, …: crates/[z-a] vs crates/a 1ms +2026-10-07T09:56:59.0323588Z ✓ uncompilable NEGATED class range fails …: crates/[!z-a] vs crates/a 0ms +2026-10-07T09:56:59.0326322Z ✓ uncompilable class with a literal tail …: crates/[b-a]x vs crates/ax 0ms +2026-10-07T09:56:59.0327803Z ✓ a WELL-FORMED class range still matches…: crates/[a-z] vs crates/m 0ms +2026-10-07T09:56:59.0332432Z ✓ most rows separate at least two dialects 1ms +2026-10-07T09:56:59.0333783Z ✓ workspace glob memo cell cap (#2629) (4) +2026-10-07T09:56:59.0336098Z ✓ preserves a below-cap workspace glob match 2ms +2026-10-07T09:56:59.0337502Z ✓ declines over-cap matching literals and reports the cap statelessly 1ms +2026-10-07T09:56:59.0340299Z ✓ reports distinct over-cap lengths without retaining matcher state 14ms +2026-10-07T09:56:59.0342405Z ✓ keeps a realistic upper-size matching glob under the cap 26ms +2026-10-07T09:56:59.0343784Z ❯ the uv-members dialect reproduces the pre-fold minimatch answers (#2591) (1) +2026-10-07T09:56:59.0345382Z  × differs from minimatch(dot:true) on exactly the enumerated cells 108ms +2026-10-07T09:57:02.1787500Z ✓  default  tests/config/hook-await-bounds.test.ts (17 tests) 1157ms +2026-10-07T09:57:02.1790542Z ✓ #2523 AC1 every hook-path await is bounded, and no new hand-rolled race (17) +2026-10-07T09:57:02.1792352Z ✓ pins every one-hop helper module's unbounded-await count 570ms +2026-10-07T09:57:02.1796005Z ✓ pins every hook-path file's synchronous readCache count 330ms +2026-10-07T09:57:03.7252881Z ✓  default  tests/config/glossary-synonym-sweep.test.ts (7 tests) 1029ms +2026-10-07T09:57:03.7254652Z ✓ glossary synonym-retirement sweep (#3259) (7) +2026-10-07T09:57:03.7256208Z ✓ parses the complete glossary and pins its identifier population 989ms +2026-10-07T09:57:11.4027648Z stdout | tests/clients/runtime-tool-result.test.ts > monorepo turn-state cwd alignment > drops the cascade a session-1 handler admits after the replacement, parked (#3512 r1 B2) +2026-10-07T09:57:11.4075572Z [LateAdmission parked] delivered=[] own=1 staleWrites=["runtime-session:\\edit.ts"] +2026-10-07T09:57:11.4537097Z +2026-10-07T09:57:11.4660140Z stdout | tests/clients/runtime-tool-result.test.ts > monorepo turn-state cwd alignment > drops the cascade a session-1 handler admits after the replacement, overflow (#3512 r1 B2) +2026-10-07T09:57:11.4780315Z [LateAdmission overflow] delivered=[] own=32 staleWrites=["runtime-session:\\edit.ts"] +2026-10-07T09:57:11.4902257Z +2026-10-07T09:57:15.8499635Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:57:15.9968834Z ❯  default  tests/clients/runtime-tool-result.test.ts (77 tests | 10 failed) 11611ms +2026-10-07T09:57:16.0323602Z ✓ does not dispatch an edit when analyzer bootstrap is unavailable (#2939 M9) 51ms +2026-10-07T09:57:16.0404132Z ❯ bash grep searchReads registration (22) +2026-10-07T09:57:16.0532308Z ✓ forwards structuredContent on a decorated bash tool_result that gains pipeline notes, exit 3 (#3832) 1198ms +2026-10-07T09:57:16.0931625Z ✓ forwards structuredContent on a decorated bash tool_result that gains pipeline notes, exit 0 (#3832) 680ms +2026-10-07T09:57:16.1141996Z ✓ forwards structuredContent on the host-failure return of a classified tool (#3832) 5ms +2026-10-07T09:57:16.1486049Z ✓ forwards structuredContent on the pipeline-crash response (#3832) 84ms +2026-10-07T09:57:16.1879680Z ✓ preserves structuredContent on pipeline rewrites (#3832) 96ms +2026-10-07T09:57:16.2414853Z ✓ supersedes the provisional native read before checkEdit 1127ms +2026-10-07T09:57:16.3258577Z ✓ registers the native read range the host delivered at EOF 54ms +2026-10-07T09:57:16.3339925Z  × registers only the lines shown by the real bash host cap 578ms +2026-10-07T09:57:16.3663799Z ✓ keeps a pipe-filtered short output on the full source span 20ms +2026-10-07T09:57:16.3758923Z  × does not mark a content-identical opaque rewrite as authored 1166ms +2026-10-07T09:57:16.3946573Z ✓ blocks a recognized bash write when observation evidence is unavailable 1056ms +2026-10-07T09:57:16.4222432Z ✓ blocks every span when a multi-span bash view is clipped 10ms +2026-10-07T09:57:16.4235445Z ✓ invalidates formatter selection through handleToolResult 36ms +2026-10-07T09:57:16.4324686Z ✓ invalidates a warm formatter selection after an in-place config rewrite 89ms +2026-10-07T09:57:16.4326817Z ✓ invalidates formatter selection for config removal and changedFiles side effects 182ms +2026-10-07T09:57:16.4416503Z ✓ invalidates the ignore matcher through handleToolResult 65ms +2026-10-07T09:57:16.4476091Z ✓ registers bash reads only from a successful tool result 45ms +2026-10-07T09:57:16.4621606Z ✓ does not register grep output from a failed bash result 4ms +2026-10-07T09:57:16.4992449Z ✓ does not record or deliver a failed native edit result 7ms +2026-10-07T09:57:16.5100246Z ✓ hashes a native multi-edit result once for all applied records 44ms +2026-10-07T09:57:16.5445413Z ✓ records grep -n output lines as read-guard search reads 21ms +2026-10-07T09:57:16.5498112Z ✓ credits the context lines a grep -C actually printed 16ms +2026-10-07T09:57:16.5866279Z ✓ bash external-delete detection (#1668) (6) +2026-10-07T09:57:16.5978841Z ✓ a known path that is actually gone after `rm` gets a type-3 notify and is forgotten 39ms +2026-10-07T09:57:16.6757196Z ✓ a path pi-lens never knew about is NOT notified even if it's gone 17ms +2026-10-07T09:57:16.6989292Z ✓ a known path that still exists (rm failed / no-op) is NOT notified 42ms +2026-10-07T09:57:16.7369287Z ✓ a failed bash tool result is NOT treated as a real delete 3ms +2026-10-07T09:57:16.7543138Z ✓ a burst of deletes in one command notifies once per confirmed-gone known file 93ms +2026-10-07T09:57:16.7765552Z ✓ respects --no-lsp: no external-delete notification is sent 3ms +2026-10-07T09:57:16.8013036Z ❯ monorepo turn-state cwd alignment (7) +2026-10-07T09:57:16.8170776Z  × writes turn state under workspace root, not the nested language root 87ms +2026-10-07T09:57:16.8360464Z  × still dispatches pipeline to the language root for linting 50ms +2026-10-07T09:57:16.8413523Z ✓ hands the pipeline the session generation current when it dispatches (#3512) 33ms +2026-10-07T09:57:16.8505900Z ✓ drops the cascade a session-1 handler admits after the replacement, parked (#3512 r1 B2) 68ms +2026-10-07T09:57:16.8571540Z ✓ drops the cascade a session-1 handler admits after the replacement, overflow (#3512 r1 B2) 31ms +2026-10-07T09:57:16.8983573Z ✓ drops the cascade of a session-1 handler parked before its dispatch (#3568) 41ms +2026-10-07T09:57:16.9304228Z ✓ a bash handler's synthetic writes carry the session its handler entered in (#3568) 910ms +2026-10-07T09:57:16.9476981Z ❯ runtime-tool-result writers across a replacement (#3596) (6) +2026-10-07T09:57:16.9533940Z  × a session-1 edit parked on its analysers credits nothing in session 2 31ms +2026-10-07T09:57:16.9551887Z  × a session-1 pipeline settling after the replacement queues nothing in session 2 77ms +2026-10-07T09:57:16.9562928Z ✓ a session-1 pipeline error leaves session 2's git-guard cache alone 51ms +2026-10-07T09:57:16.9606810Z ✓ a session-1 pipeline finishing in session 2's turn does not mark session 2's bytes analysed (#3763) 77ms +2026-10-07T09:57:16.9649793Z ✓ a session-1 autofix finishing after the replacement leaves session 2's file unmarked (#3763) 90ms +2026-10-07T09:57:16.9983304Z ✓ an immediate autofix in its own session marks the file fixed (#3763) 196ms +2026-10-07T09:57:17.0291248Z ❯ runtime-tool-result inline behavior warnings (23) +2026-10-07T09:57:17.0466124Z  × appends project change log entries for analyzed agent edits 68ms +2026-10-07T09:57:17.0626335Z ✓ queues successful write/edit files for deferred formatting by default 28ms +2026-10-07T09:57:17.0700277Z ✓ returns authoritative full content after immediate write autofix 33ms +2026-10-07T09:57:17.0852668Z ✓ does not stamp an ambiguous side-effect write as the target identity (#2499 HIGH) 70ms +2026-10-07T09:57:17.0888188Z ✓ runs bash synthetic writes immediately and returns authoritative content 40ms +2026-10-07T09:57:17.1195822Z  × recovers opaque multi-file bash changes without granting ownership 1116ms +2026-10-07T09:57:17.1249136Z ✓ shares one authoritative-content budget across a multi-file bash write 141ms +2026-10-07T09:57:17.1365732Z ✓ demotes a bash write followed by an edit through the handler 110ms +2026-10-07T09:57:17.1685479Z ✓ clears already-fixed state through an alias spelling on edit 50ms +2026-10-07T09:57:17.1914014Z ✓ queues format with deferred autofix under --immediate-format 90ms +2026-10-07T09:57:17.2332543Z ✓ does not attach authoritative content above the LSP byte limit 144ms +2026-10-07T09:57:17.2586990Z  × publishes pilens:format:queued only when deferFormat reports a NEW queue entry (#673) 163ms +2026-10-07T09:57:17.2845441Z ✓ does not append behavior warnings when blockers are present 78ms +2026-10-07T09:57:17.3204537Z ✓ appends behavior warnings when no blockers are present 48ms +2026-10-07T09:57:17.3745854Z ✓ does not emit file-time warnings on rapid consecutive edits 33ms +2026-10-07T09:57:17.4082757Z ✓ deduplicates repeated tool_result events for the same file state 68ms +2026-10-07T09:57:17.4175677Z ✓ tracks side-effect files changed by the pipeline 41ms +2026-10-07T09:57:17.4456055Z ✓ uses the workspace-edit path identity for the dispatched target (#3294) 33ms +2026-10-07T09:57:17.4725680Z ✓ uses the filesystem answer for case-variant workspace-edit paths (#3294) 26ms +2026-10-07T09:57:17.4733346Z ✓ uses fast LSP reset when pipeline crash recovery resets clients 28ms +2026-10-07T09:57:17.5097539Z ✓ does not let a secondary pipeline crash reset the primary fleet 36ms +2026-10-07T09:57:17.5207714Z ✓ lets a primary session's own pipeline crash reset its fleet 38ms +2026-10-07T09:57:17.5581015Z ✓ resolves relative tool_result paths against the workspace root 36ms +2026-10-07T09:57:17.5731812Z ✓ #484 turn-summary collection gate (2) +2026-10-07T09:57:17.5825175Z ✓ does not record diagnostics/autofix/format on the turn-summary collector when lens-turn-summary is off (default) 32ms +2026-10-07T09:57:17.5959868Z ✓ records diagnostics, autofix, and format events on the turn-summary collector when lens-turn-summary is on 34ms +2026-10-07T09:57:17.6263979Z ✓ #3246 inline blocker provenance (1) +2026-10-07T09:57:17.6462180Z ✓ stores the structured blockers the summary was rendered from 38ms +2026-10-07T09:57:17.6852057Z ❯ path attribution across tool_call/tool_result (#1642) (9) +2026-10-07T09:57:17.7229470Z  × resolves a relative tool_result path against the call's own worktree cwd, never the parent checkout 32ms +2026-10-07T09:57:17.7356313Z ✓ runs the full pipeline for a brand-new file's write, not just an existing one (#1642 F1) 46ms +2026-10-07T09:57:17.7880276Z ✓ clears a recorded attribution when the paired tool_call is BLOCKED, so it never leaks into the correlation cache (#1642 F2) 22ms +2026-10-07T09:57:17.8013559Z ✓ fails closed on a relative path when a real correlation id exists but no attribution was recorded under it (#1642 F2) 3ms +2026-10-07T09:57:17.8088416Z ✓ keeps a same-named workspace-root guess unverified without execution evidence (#1886) 5ms +2026-10-07T09:57:17.8335423Z ✓ correlates by `callId` when the host doesn't populate `toolCallId` (#1642 F4) 45ms +2026-10-07T09:57:17.8418324Z ✓ correlates two concurrent calls correctly when their results arrive OUT OF ORDER (#1642, pi parallel-execution) 83ms +2026-10-07T09:57:17.8506505Z ✓ keeps parallel nested codemode calls apart under an 86-char parent id (#3833) 70ms +2026-10-07T09:57:17.8576035Z ✓ logs the diagnostic path_attribution_refused when a genuine call-time/execution-time divergence occurs, but still processes the correct fresh path 39ms +2026-10-07T09:57:18.2420392Z [tmp-hygiene-sweep] tests/clients/pipeline.test.ts via=afterAll registered=44 stragglers=0 failed=0 dropped=0 +2026-10-07T09:57:18.2423104Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:57:18.2718607Z ❯  default  tests/clients/pipeline.test.ts (44 tests | 6 failed) 16017ms +2026-10-07T09:57:18.2821979Z ❯ Pipeline (44) +2026-10-07T09:57:18.2866970Z ✓ leaves the post-write identity absent when autofix changes only a side-effect file 244ms +2026-10-07T09:57:18.2939882Z ✓ project config disables format and autofix while preserving diagnostics 63ms +2026-10-07T09:57:18.3152869Z ✓ passes the workspace root to dispatch when cwd is a nested language root 77ms +2026-10-07T09:57:18.3171720Z ✓ binds blocker content to the pre-dispatch analysis bytes 48ms +2026-10-07T09:57:18.3174418Z ✓ states why a delta-promoted unused finding blocks in the enriched STOP block (#3218) 122ms +2026-10-07T09:57:18.3191302Z ✓ hands the cascade the PROJECT root alongside the language cwd (#3157) 96ms +2026-10-07T09:57:18.3198924Z ✓ hands the cascade the session generation captured at dispatch (#3512) 54ms +2026-10-07T09:57:18.3201542Z ✓ hands the cascade the dispatch's order turn beside its session turn (#3540 r2) 117ms +2026-10-07T09:57:18.3203937Z ❯ Format phase (7) +2026-10-07T09:57:18.3207730Z ✓ defers format by default 78ms +2026-10-07T09:57:18.3211631Z ✓ marks file as modified when immediate format changes content 127ms +2026-10-07T09:57:18.3213762Z ✓ does not autonomously rewrite an observed opaque mutation 54ms +2026-10-07T09:57:18.3215282Z ✓ keeps opaque findings advisory instead of directing an edit 46ms +2026-10-07T09:57:18.3217159Z  × bounds opaque ownership telemetry across many paths (#3226 review P2) 12477ms +2026-10-07T09:57:18.3219000Z ✓ surfaces formatter failures instead of plain clean output 32ms +2026-10-07T09:57:18.3220364Z ✓ skips format when --no-autoformat flag is set 20ms +2026-10-07T09:57:18.3221654Z ❯ Bus publish (#482 pilens:files:touched) (4) +2026-10-07T09:57:18.3223506Z  × publishes reason:"format" with the fixed file's path when immediate format changes content 222ms +2026-10-07T09:57:18.3225756Z  × publishes reason:"autofix" with the fixed file's path when an autofix tool changes content 279ms +2026-10-07T09:57:18.3227428Z ✓ does not publish when nothing changes 26ms +2026-10-07T09:57:18.3237396Z  × includes fix-provenance entries on the format publish 211ms +2026-10-07T09:57:18.3238631Z ❯ Bus publish (#502 pilens:diagnostics) (3) +2026-10-07T09:57:18.3240282Z  × publishes the file's diagnostics after dispatch completes 76ms +2026-10-07T09:57:18.3241785Z ✓ does not publish when there are no diagnostics and the file was never dirty 81ms +2026-10-07T09:57:18.3243719Z  × emits an explicit clean [] event when a previously-dirty file's diagnostics clear on a later write 144ms +2026-10-07T09:57:18.3245280Z ✓ LSP sync (2) +2026-10-07T09:57:18.3246075Z ✓ syncs file with LSP when not deferred 9ms +2026-10-07T09:57:18.3247598Z ✓ skips LSP sync when --no-lsp flag is set 71ms +2026-10-07T09:57:18.3248814Z ✓ Dispatch lint (2) +2026-10-07T09:57:18.3249712Z ✓ sets hasBlockers when dispatch returns blockers 55ms +2026-10-07T09:57:18.3250922Z ✓ includes autofix count in output when fixes applied 52ms +2026-10-07T09:57:18.3251897Z ✓ LSP sync read stamp (#3481) (2) +2026-10-07T09:57:18.3252858Z ✓ stamps the sync with the read after an immediate format 60ms +2026-10-07T09:57:18.3254035Z ✓ stamps the sync with the read after an autofix 70ms +2026-10-07T09:57:18.3255255Z ✓ Cascade compute rejection (#3605) (2) +2026-10-07T09:57:18.3256431Z ✓ reports a tree-sitter wasm trap as a degraded graph, not a compute error 45ms +2026-10-07T09:57:18.3257739Z ✓ still reports any other rejection as a compute error 28ms +2026-10-07T09:57:18.3258532Z ✓ Test runner (1) +2026-10-07T09:57:18.3259231Z ✓ skips tests when --no-tests flag is set 83ms +2026-10-07T09:57:18.3259915Z ✓ All-clear output (1) +2026-10-07T09:57:18.3260604Z ✓ returns clean checkmark when no issues 34ms +2026-10-07T09:57:18.3261326Z ✓ inlineBlockerLines (#1641) (3) +2026-10-07T09:57:18.3262198Z ✓ captures the cited lines from dispatch's blocking diagnostics 72ms +2026-10-07T09:57:18.3263385Z ✓ does NOT harvest a line from a blocker reported against a different file 54ms +2026-10-07T09:57:18.3265317Z ✓ still captures lines when the blocker's path differs from ctx.filePath only by drive-letter case (win32) 27ms +2026-10-07T09:57:18.3266603Z ✓ #2028 stop-blocker deleted-path gate (5) +2026-10-07T09:57:18.3267616Z ✓ drops blockers whose cited file was deleted from the rendered STOP block 201ms +2026-10-07T09:57:18.3268938Z ✓ renders no STOP header when every blocker cites a deleted file 36ms +2026-10-07T09:57:18.3270119Z ✓ #3188 readback-failed branch with a total retraction (3) +2026-10-07T09:57:18.3271522Z ✓ delivers nothing at all when the readback failed and every blocker cites a deleted path 54ms +2026-10-07T09:57:18.3273266Z ✓ still delivers the post-blocker slice when the readback failed and every blocker cites a deleted path 63ms +2026-10-07T09:57:18.3275045Z ✓ keeps the surviving blocker when the readback failed and only some blockers cite a deleted path 34ms +2026-10-07T09:57:18.3276345Z ✓ #3190 inline-blocker record built from the gated set (4) +2026-10-07T09:57:18.3277596Z ✓ carries no record and no blocker verdict when every blocker cites a deleted path 43ms +2026-10-07T09:57:18.3279036Z ✓ carries only the surviving blocker when some blockers cite a deleted path 30ms +2026-10-07T09:57:18.3280661Z ✓ does not carry a cited line from a retracted blocker on the edited file 37ms +2026-10-07T09:57:18.3283144Z ✓ leaves the record byte-identical to the dispatcher's blockerOutput when nothing is retracted 50ms +2026-10-07T09:57:21.8285877Z ❯  default  tests/clients/dispatch/runners/reported-path-attribution.test.ts (96 tests | 1 failed) 17663ms +2026-10-07T09:57:21.8287827Z ✓ runner reported-path attribution (#3295) (8) +2026-10-07T09:57:21.8289034Z ✓ taplo keeps its own reported location 1644ms +2026-10-07T09:57:21.8290246Z ✓ yamllint keeps its own reported location 402ms +2026-10-07T09:57:21.8291379Z ✓ htmlhint keeps its own reported location 458ms +2026-10-07T09:57:21.8292564Z ✓ oxlint keeps its own reported location 304ms +2026-10-07T09:57:21.8293978Z ✓ taplo rejects a sibling reported location 552ms +2026-10-07T09:57:21.8295074Z ✓ yamllint rejects a sibling reported location 284ms +2026-10-07T09:57:21.8296334Z ✓ htmlhint rejects a sibling reported location 361ms +2026-10-07T09:57:21.8297994Z ✓ oxlint rejects a sibling reported location 355ms +2026-10-07T09:57:21.8299132Z ✓ golangci-lint reported-path attribution (#3278) (3) +2026-10-07T09:57:21.8300595Z ✓ attributes a cwd-relative golangci-lint Pos.Filename to the dispatched file (#3278) 266ms +2026-10-07T09:57:21.8302396Z ✓ does not attribute a sibling Go file's golangci-lint finding to the dispatched file (#3278) 239ms +2026-10-07T09:57:21.8304175Z ✓ treats a case-variant golangci-lint path exactly as this filesystem does (#3278) 267ms +2026-10-07T09:57:21.8305490Z ✓ cue-vet reported-path attribution (#3278) (3) +2026-10-07T09:57:21.8306988Z ✓ does not attribute a sibling-directory cue location that shares the touched file's basename (#3278) 232ms +2026-10-07T09:57:21.8308822Z ✓ attributes a './'-prefixed cue location for the touched file itself (#3278) 159ms +2026-10-07T09:57:21.8310452Z ✓ treats a case-variant cue location exactly as this filesystem does (#3278) 197ms +2026-10-07T09:57:21.8311721Z ✓ rust-clippy reported-path attribution (#3278) (3) +2026-10-07T09:57:21.8313469Z ✓ attributes a package-relative clippy span to the dispatched file (#3278) 275ms +2026-10-07T09:57:21.8315120Z ✓ does not attribute a crate-mate's clippy span to the dispatched file (#3278) 113ms +2026-10-07T09:57:21.8316716Z ✓ treats a case-variant clippy span exactly as this filesystem does (#3278) 209ms +2026-10-07T09:57:21.8318071Z ✓ javac reported-path attribution (#3278) (3) +2026-10-07T09:57:21.8319418Z ✓ attributes the absolute path javac echoes back to the dispatched file (#3278) 266ms +2026-10-07T09:57:21.8321099Z ✓ does not attribute a sibling Java file's javac error to the dispatched file (#3278) 115ms +2026-10-07T09:57:21.8322659Z ✓ treats a case-variant javac path exactly as this filesystem does (#3278) 198ms +2026-10-07T09:57:21.8323815Z ✓ zig-check reported-path attribution (#3278) (3) +2026-10-07T09:57:21.8325083Z ✓ attributes the absolute path zig echoes back to the dispatched file (#3278) 308ms +2026-10-07T09:57:21.8326871Z ✓ does not attribute a sibling Zig file's error to the dispatched file (#3278) 122ms +2026-10-07T09:57:21.8328315Z ✓ treats a case-variant zig path exactly as this filesystem does (#3278) 112ms +2026-10-07T09:57:21.8329491Z ✓ detekt reported-path attribution (#3278) (3) +2026-10-07T09:57:21.8330720Z ✓ attributes the absolute path detekt echoes back to the dispatched file (#3278) 289ms +2026-10-07T09:57:21.8332291Z ✓ does not attribute a sibling Kotlin file's detekt finding to the dispatched file (#3278) 205ms +2026-10-07T09:57:21.8334231Z ✓ treats a case-variant detekt path exactly as this filesystem does (#3278) 231ms +2026-10-07T09:57:21.8335515Z ✓ cpp-check gcc-flavour reported-path attribution (#3278) (3) +2026-10-07T09:57:21.8336824Z ✓ attributes the absolute path gcc echoes back to the dispatched file (#3278) 238ms +2026-10-07T09:57:21.8338315Z ✓ does not attribute an included header's gcc error to the dispatched file (#3278) 227ms +2026-10-07T09:57:21.8339740Z ✓ treats a case-variant gcc path exactly as this filesystem does (#3278) 158ms +2026-10-07T09:57:21.8341175Z ✓ cpp-check msvc-flavour reported-path attribution (#3278) (3) +2026-10-07T09:57:21.8342443Z ✓ attributes the absolute path cl echoes back to the dispatched file (#3278) 173ms +2026-10-07T09:57:21.8343961Z ✓ does not attribute another translation unit's cl error to the dispatched file (#3278) 240ms +2026-10-07T09:57:21.8345482Z ✓ treats a case-variant cl path exactly as this filesystem does (#3278) 306ms +2026-10-07T09:57:21.8346642Z ✓ dotnet-build reported-path attribution (#3278) (3) +2026-10-07T09:57:21.8347844Z ✓ attributes the full path MSBuild reports to the dispatched file (#3278) 214ms +2026-10-07T09:57:21.8349324Z ✓ does not attribute a sibling C# file's compiler error to the dispatched file (#3278) 178ms +2026-10-07T09:57:21.8350863Z ✓ treats a case-variant MSBuild path exactly as this filesystem does (#3278) 147ms +2026-10-07T09:57:21.8352036Z ✓ dart-analyze reported-path attribution (#3278) (3) +2026-10-07T09:57:21.8353300Z ✓ attributes the absolute path dart analyze reports to the dispatched file (#3278) 278ms +2026-10-07T09:57:21.8355237Z ✓ does not attribute a sibling Dart file's diagnostic to the dispatched file (#3278) 221ms +2026-10-07T09:57:21.8356691Z ✓ treats a case-variant dart path exactly as this filesystem does (#3278) 206ms +2026-10-07T09:57:21.8357821Z ❯ gleam-check reported-path attribution (#3285) (9) +2026-10-07T09:57:21.8358932Z ✓ pins the upstream gleam vector's codespan locus gutter (#3285) 1ms +2026-10-07T09:57:21.8360518Z  × attributes a codespan-guttered gleam locus line to the dispatched file (#3285) 176ms +2026-10-07T09:57:21.8361947Z ✓ still attributes a colour-forced gleam locus line (#3285) 144ms +2026-10-07T09:57:21.8363269Z ✓ keeps a located warning title and label, without the border glyph (#3293) 99ms +2026-10-07T09:57:21.8364581Z ✓ keeps a locationless project diagnostic unattributed (#3293) 92ms +2026-10-07T09:57:21.8365866Z ✓ does not use the next diagnostic title as the prior label (#3293) 135ms +2026-10-07T09:57:21.8367333Z ✓ uses the bounded fallback for a locus with no title (#3293) 96ms +2026-10-07T09:57:21.8368680Z ✓ does not attribute a sibling gleam module's guttered locus line (#3285) 109ms +2026-10-07T09:57:21.8370137Z ✓ treats a case-variant gleam locus path exactly as this filesystem does (#3285) 90ms +2026-10-07T09:57:21.8371684Z ✓ JSON runner reported-path attribution (#3304) (4) +2026-10-07T09:57:21.8372618Z ✓ shellcheck keeps its own JSON path 146ms +2026-10-07T09:57:21.8373631Z ✓ trivy-config keeps its own JSON path 1232ms +2026-10-07T09:57:21.8374647Z ✓ shellcheck rejects a sibling JSON path 172ms +2026-10-07T09:57:21.8375631Z ✓ trivy-config rejects a sibling JSON path 187ms +2026-10-07T09:57:21.8376669Z ✓ no-predicate runner reported-path attribution (#3295 r3) (45) +2026-10-07T09:57:21.8377915Z ✓ stylelint keeps a finding it reported for the dispatched file 314ms +2026-10-07T09:57:21.8379210Z ✓ rubocop keeps a finding it reported for the dispatched file 264ms +2026-10-07T09:57:21.8380443Z ✓ eslint keeps a finding it reported for the dispatched file 106ms +2026-10-07T09:57:21.8381911Z ✓ biome-check keeps a finding it reported for the dispatched file 124ms +2026-10-07T09:57:21.8383225Z ✓ tflint keeps a finding it reported for the dispatched file 141ms +2026-10-07T09:57:21.8384507Z ✓ swiftlint keeps a finding it reported for the dispatched file 83ms +2026-10-07T09:57:21.8385760Z ✓ ktlint keeps a finding it reported for the dispatched file 141ms +2026-10-07T09:57:21.8387004Z ✓ hadolint keeps a finding it reported for the dispatched file 114ms +2026-10-07T09:57:21.8388281Z ✓ actionlint keeps a finding it reported for the dispatched file 102ms +2026-10-07T09:57:21.8389555Z ✓ spellcheck keeps a finding it reported for the dispatched file 90ms +2026-10-07T09:57:21.8390815Z ✓ sqlfluff keeps a finding it reported for the dispatched file 118ms +2026-10-07T09:57:21.8392352Z ✓ vale keeps a finding it reported for the dispatched file 75ms +2026-10-07T09:57:21.8393629Z ✓ markdownlint keeps a finding it reported for the dispatched file 109ms +2026-10-07T09:57:21.8395056Z ✓ php-lint keeps a finding it reported for the dispatched file 70ms +2026-10-07T09:57:21.8397561Z ✓ diagnostic-parsers keeps a finding it reported for the dispatched file 133ms +2026-10-07T09:57:21.8399703Z ✓ stylelint rejects a finding it reported for a sibling file 88ms +2026-10-07T09:57:21.8432894Z ✓ rubocop rejects a finding it reported for a sibling file 89ms +2026-10-07T09:57:21.8526018Z ✓ eslint rejects a finding it reported for a sibling file 75ms +2026-10-07T09:57:21.8557434Z ✓ biome-check rejects a finding it reported for a sibling file 69ms +2026-10-07T09:57:21.8559622Z ✓ tflint rejects a finding it reported for a sibling file 82ms +2026-10-07T09:57:21.8610615Z ✓ swiftlint rejects a finding it reported for a sibling file 55ms +2026-10-07T09:57:21.8612972Z ✓ ktlint rejects a finding it reported for a sibling file 69ms +2026-10-07T09:57:21.8614519Z ✓ hadolint rejects a finding it reported for a sibling file 85ms +2026-10-07T09:57:21.8618149Z ✓ actionlint rejects a finding it reported for a sibling file 61ms +2026-10-07T09:57:21.8626218Z ✓ spellcheck rejects a finding it reported for a sibling file 60ms +2026-10-07T09:57:21.8628912Z ✓ sqlfluff rejects a finding it reported for a sibling file 74ms +2026-10-07T09:57:21.8631583Z ✓ vale rejects a finding it reported for a sibling file 59ms +2026-10-07T09:57:21.8634135Z ✓ markdownlint rejects a finding it reported for a sibling file 95ms +2026-10-07T09:57:21.8636877Z ✓ php-lint rejects a finding it reported for a sibling file 66ms +2026-10-07T09:57:21.8658114Z ✓ diagnostic-parsers rejects a finding it reported for a sibling file 90ms +2026-10-07T09:57:21.8728301Z ✓ stylelint treats a case-variant reported path exactly as this filesystem does 72ms +2026-10-07T09:57:21.8731526Z ✓ rubocop treats a case-variant reported path exactly as this filesystem does 70ms +2026-10-07T09:57:21.8737898Z ✓ eslint treats a case-variant reported path exactly as this filesystem does 58ms +2026-10-07T09:57:21.8739585Z ✓ biome-check treats a case-variant reported path exactly as this filesystem does 63ms +2026-10-07T09:57:21.8741222Z ✓ tflint treats a case-variant reported path exactly as this filesystem does 115ms +2026-10-07T09:57:21.8742794Z ✓ swiftlint treats a case-variant reported path exactly as this filesystem does 59ms +2026-10-07T09:57:21.8744391Z ✓ ktlint treats a case-variant reported path exactly as this filesystem does 96ms +2026-10-07T09:57:21.8745959Z ✓ hadolint treats a case-variant reported path exactly as this filesystem does 93ms +2026-10-07T09:57:21.8749054Z ✓ actionlint treats a case-variant reported path exactly as this filesystem does 55ms +2026-10-07T09:57:21.8750539Z ✓ spellcheck treats a case-variant reported path exactly as this filesystem does 65ms +2026-10-07T09:57:21.8752604Z ✓ sqlfluff treats a case-variant reported path exactly as this filesystem does 85ms +2026-10-07T09:57:21.8754607Z ✓ vale treats a case-variant reported path exactly as this filesystem does 63ms +2026-10-07T09:57:21.8756298Z ✓ markdownlint treats a case-variant reported path exactly as this filesystem does 77ms +2026-10-07T09:57:21.8757936Z ✓ php-lint treats a case-variant reported path exactly as this filesystem does 60ms +2026-10-07T09:57:21.8759652Z ✓ diagnostic-parsers treats a case-variant reported path exactly as this filesystem does 94ms +2026-10-07T09:57:22.5230710Z ✓  default  tests/config/workflow-pull-request-reachability.test.ts (96 tests) 209ms +2026-10-07T09:57:35.8825626Z [sweep-kit] D:\a\pi-lens\pi-lens\tests\support\__census_gap_probe__.ts vanished between the walk and the read; skipped (#3082) +2026-10-07T09:57:35.9530198Z [sweep-kit] D:\a\pi-lens\pi-lens\tests\support\appears_later.ts vanished between the walk and the read; skipped (#3082) +2026-10-07T09:57:36.0765705Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:57:36.1443760Z ✓  default  tests/config/targeted-tests-workflow.test.ts (52 tests) 17076ms +2026-10-07T09:57:36.1474523Z ✓ targeted advisory workflow contract (#3215) (4) +2026-10-07T09:57:36.1492414Z ✓ pins exactly the tree scanners the census discovers (#3426) 16685ms +2026-10-07T09:57:38.0919632Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:57:38.0976983Z ✓  default  tests/config/reported-path-attribution-sweep.test.ts (9 tests) 952ms +2026-10-07T09:57:38.0979192Z ✓ runner reported-path attribution single-source-of-truth (#3278) (9) +2026-10-07T09:57:38.0981029Z ✓ has no unpinned local reported-path compare in any runner or tool client 640ms +2026-10-07T09:57:48.4089361Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:57:49.0650057Z ✓  default  tests/config/git-fixture-governance.test.ts (30 tests) 9868ms +2026-10-07T09:57:49.0802747Z ✓ real Git fixture governance (30) +2026-10-07T09:57:49.1022930Z ✓ routes every direct Git spawn through git-fixture-env 2651ms +2026-10-07T09:57:49.1299699Z ✓ pins no historical commit-ish in any tests/ Git spawn 4355ms +2026-10-07T09:57:49.1608833Z ✓ scans a non-empty tests/**/*.ts population, helpers included 1600ms +2026-10-07T09:57:49.1804635Z ✓ scans a non-empty source population 597ms +2026-10-07T09:58:01.9229070Z ❯  default  tests/clients/review-graph.service.test.ts (33 tests | 9 failed) 38094ms +2026-10-07T09:58:01.9568508Z ❯ review graph service (28) +2026-10-07T09:58:02.0550307Z  × builds a TS graph and surfaces importers/callers without duplicate edges 480ms +2026-10-07T09:58:02.1710635Z ✓ extracts production call edges for every JavaScript-family extension 342ms +2026-10-07T09:58:02.2152191Z ✓ excludes test files from the graph (#260) 421ms +2026-10-07T09:58:02.2486293Z ✓ getGraphSourceFiles matches the graph's canonical file set 472ms +2026-10-07T09:58:02.2648232Z ✓ memoizes raw source spellings across consecutive builds (#2072) 388ms +2026-10-07T09:58:02.2960693Z ✓ recomputes a recreated mixed-case spelling after a missing walk entry (#2072 F2/F3) 3546ms +2026-10-07T09:58:02.2962826Z ✓ keeps an 8,000-file one-file rebuild within the changed-file bound (#2072 AC2) 14692ms +2026-10-07T09:58:02.2967950Z ✓ keeps a walk's normalize counter stable across workspace eviction (#2072 F4) 1152ms +2026-10-07T09:58:02.2969974Z ✓ case-variant workspace clears invalidate the source-path memo, on win32 only (#2072 F5) 462ms +2026-10-07T09:58:02.2972149Z ✓ getCachedReviewGraph returns a shared, indexed object — no per-call clone (#260) 946ms +2026-10-07T09:58:02.2974227Z ✓ isReviewGraphMigrationNeeded: stale version → true, current/absent → false (#260) 1254ms +2026-10-07T09:58:02.2976500Z ✓ refs #655: a v3 snapshot (pre-collision-safe-ID scheme) is detected as stale and safely rebuilt, never misread 569ms +2026-10-07T09:58:02.2979019Z ✓ refs #694: a v4 snapshot (pre-twin-preference, compiled-artifact edges) is detected as stale and safely rebuilt 552ms +2026-10-07T09:58:02.2981109Z ✓ refs #655: an unresolved bare-name call stays 'name-only'; a unique-name call resolves 'exact' 378ms +2026-10-07T09:58:02.2982907Z ✓ builds file-level graphs for python/go/rust/ruby without crashing 1625ms +2026-10-07T09:58:02.2984433Z ✓ surfaces references-edge neighbors for non-jsts languages (Python) 366ms +2026-10-07T09:58:02.2986640Z  × flags cycle-adjacent files and suppresses low-signal output 1347ms +2026-10-07T09:58:02.2988674Z  × updates cached graph incrementally when only the changed file mtime shifts 280ms +2026-10-07T09:58:02.2991075Z ✓ skips full graph builds when source count exceeds the safety cap 264ms +2026-10-07T09:58:02.2992873Z ✓ logs a review_graph_size_skip latency phase on truncation (#775 R3: no silent caps) 486ms +2026-10-07T09:58:02.2994413Z ✓ stops the size-gate walk at cap+1 visited entries 325ms +2026-10-07T09:58:02.2995773Z ✓ keeps the complete under-cap walk and does not report a near miss 507ms +2026-10-07T09:58:02.2997076Z ✓ logs a distinct near-miss event within 5% of the cap 460ms +2026-10-07T09:58:02.2998524Z ✓ does not skip when non-graph files (JSON/MD) push the raw count over the cap 597ms +2026-10-07T09:58:02.3000184Z  × rebuilds indexes on workspace cache hit so impact cascade still works 580ms +2026-10-07T09:58:02.3001498Z ✓ skips graph construction when cwd IS $HOME, without walking it (#622) 2ms +2026-10-07T09:58:02.3002711Z ✓ does not skip a normal project root that merely lives UNDER home (#622) 784ms +2026-10-07T09:58:02.3004067Z  × resolves a tree-sitter language import to a real file→file edge (#249) 891ms +2026-10-07T09:58:02.3005127Z ❯ review graph: ignore-gated node creation (#694) (2) +2026-10-07T09:58:02.3006725Z  × never materializes an untracked-AND-gitignored import target as a file node, but keeps a tracked one matching the same pattern 1942ms +2026-10-07T09:58:02.3008873Z  × degrades to unfiltered (no git binary reachable in the repo) without throwing 358ms +2026-10-07T09:58:02.3010177Z ❯ review graph - workspace-package bare specifiers (#775) (3) +2026-10-07T09:58:02.3011602Z  × resolves a bare specifier pointing at a sibling workspace package to a file-level import edge 419ms +2026-10-07T09:58:02.3013634Z  × resolves a workspace-package subpath import to a file within the package 488ms +2026-10-07T09:58:02.3015334Z ✓ a non-workspace bare specifier stays an external node, not a fabricated file edge 688ms +2026-10-07T09:58:04.9775293Z [mem-file] peakRssMb=714 heapUsedMb=65 externalMb=2 tests/config/degradation-kind-coverage.test.ts +2026-10-07T09:58:05.8738139Z ✓  default  tests/config/degradation-kind-coverage.test.ts (20 tests) 14078ms +2026-10-07T09:58:05.8740190Z ✓ DegradationKind union coverage (#3071, #3140) (3) +2026-10-07T09:58:05.8751846Z ✓ declares every kind literal emitted at a recordDegradationOnce / incrementDegradationCount / logDurableDegradation call site, plus LEDGER_FILE's own read-time fold emitters, and never silently drops an identifier-valued kind 14049ms +2026-10-07T09:58:07.7956176Z ❯  default  tests/config/global-dir-probe-redirect.test.ts (15 tests | 1 failed | 1 skipped) 1385ms +2026-10-07T09:58:07.7971892Z ✓ getGlobalPiLensLogDir probe-home redirect (#2506) (6) +2026-10-07T09:58:07.7981408Z ✓ redirects a worktree probe's LOGS while leaving tools/registry on the real home 244ms +2026-10-07T09:58:07.7983539Z ✓ redirects a probe whose cwd is under os.tmpdir() with no worktree segment 214ms +2026-10-07T09:58:07.7985338Z ✓ PILENS_PROBE=1 forces the redirect from an ordinary checkout neither branch would catch 225ms +2026-10-07T09:58:07.7987012Z ✓ leaves an ordinary checkout alone when nothing marks it as a probe 214ms +2026-10-07T09:58:07.7988525Z ✓ never claims the SHARED .claude/worktrees parent as a probe home 209ms +2026-10-07T09:58:07.7990000Z ↓ resolves a symlinked TMPDIR to its real target before the containment check +2026-10-07T09:58:07.7991331Z ✓ probe-home resolution is memoized per process (#2506 F5) (2) +2026-10-07T09:58:07.7992660Z ✓ resolves once and holds that answer across a process.chdir() 4ms +2026-10-07T09:58:07.7994073Z ✓ an explicit PI_LENS_HOME pin still wins over the redirect 1ms +2026-10-07T09:58:07.7995254Z ✓ the probe home is gitignored (#2506 F2) (2) +2026-10-07T09:58:07.7996462Z ✓ git check-ignore accepts a file under .pi-lens-probe-home/ 23ms +2026-10-07T09:58:07.7997870Z ✓ the ignore rule is anchored to the directory, not a loose glob 1ms +2026-10-07T09:58:07.8000271Z ✓ a VITEST-marked process with no PI_LENS_HOME pin (#2516 round 2) (1) +2026-10-07T09:58:07.8001700Z ✓ still redirects to the probe home rather than the real home 221ms +2026-10-07T09:58:07.8003069Z ✓ the log-dir resolver is reachable without a cycle (#2516 round 2) (2) +2026-10-07T09:58:07.8004916Z ✓ probe-home-state.ts's transitive imports never reach file-utils.ts 5ms +2026-10-07T09:58:07.8006761Z ✓ file-utils.ts neither defines nor re-exports getGlobalPiLensLogDir 1ms +2026-10-07T09:58:07.8008417Z ❯ the recorded resolution is visible through the leaf's reader (#2506) (2) +2026-10-07T09:58:07.8009706Z ✓ stores the redirect the resolver returned 2ms +2026-10-07T09:58:07.8011148Z  × describes the actual trigger, not a removed test-mode gate 12ms +2026-10-07T09:58:10.2880745Z stdout | tests/clients/tool-cwd.test.ts > resolveToolCwd (#2777) > preserves every registry language root through the shared seam +2026-10-07T09:58:10.2883565Z clojure: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\clojure === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\clojure +2026-10-07T09:58:10.2885390Z cmake: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\cmake === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\cmake +2026-10-07T09:58:10.2887155Z cpp: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\cpp === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\cpp +2026-10-07T09:58:10.2888887Z csharp: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\csharp === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\csharp +2026-10-07T09:58:10.2891150Z css: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\css === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\css +2026-10-07T09:58:10.2893367Z cue: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\cue === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\cue +2026-10-07T09:58:10.2894875Z dart: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\dart === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\dart +2026-10-07T09:58:10.2896629Z elixir: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\elixir === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\elixir +2026-10-07T09:58:10.2898403Z fish: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\fish === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\fish +2026-10-07T09:58:10.2900625Z fsharp: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\fsharp === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\fsharp +2026-10-07T09:58:10.2902507Z gleam: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\gleam === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\gleam +2026-10-07T09:58:10.2904228Z go: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\go === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\go +2026-10-07T09:58:10.2905991Z go-mod: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\go-mod === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\go-mod +2026-10-07T09:58:10.2907876Z haskell: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\haskell === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\haskell +2026-10-07T09:58:10.2910205Z html: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\html === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\html +2026-10-07T09:58:10.2912022Z java: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\java === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\java +2026-10-07T09:58:10.2913701Z json: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\json === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\json +2026-10-07T09:58:10.2915455Z kotlin: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\kotlin === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\kotlin +2026-10-07T09:58:10.2917321Z lua: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\lua === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\lua +2026-10-07T09:58:10.2919041Z nix: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\nix === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\nix +2026-10-07T09:58:10.2920865Z ocaml: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\ocaml === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\ocaml +2026-10-07T09:58:10.2932044Z php: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\php === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\php +2026-10-07T09:58:10.2934008Z powershell: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\powershell === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\powershell +2026-10-07T09:58:10.2962857Z prisma: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\prisma === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\prisma +2026-10-07T09:58:10.2964692Z python: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\python === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\python +2026-10-07T09:58:10.2966341Z ron: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\ron === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\ron +2026-10-07T09:58:10.2968263Z ruby: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\ruby === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\ruby +2026-10-07T09:58:10.2969901Z rust: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\rust === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\rust +2026-10-07T09:58:10.2971735Z svelte: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\svelte === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\svelte +2026-10-07T09:58:10.2973679Z swift: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\swift === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\swift +2026-10-07T09:58:10.2975541Z terraform: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\terraform === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\terraform +2026-10-07T09:58:10.2977245Z toml: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\toml === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\toml +2026-10-07T09:58:10.2978998Z typescript: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\typescript === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\typescript +2026-10-07T09:58:10.2980694Z vue: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\vue === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\vue +2026-10-07T09:58:10.2982245Z yaml: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\yaml === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\yaml +2026-10-07T09:58:10.2984051Z zig: D:\a\pi-lens\pi-lens\.probe-language-roots\packages\zig === D:\a\pi-lens\pi-lens\.probe-language-roots\packages\zig +2026-10-07T09:58:10.2984876Z +2026-10-07T09:58:11.6283681Z ✓  default  tests/clients/tool-cwd.test.ts (29 tests) 2653ms +2026-10-07T09:58:11.6285043Z ✓ resolveToolCwd (#2777) (29) +2026-10-07T09:58:11.6288397Z ✓ preserves every registry language root through the shared seam 367ms +2026-10-07T09:58:12.8832207Z ✓  default  tests/config/bounded-eviction-idiom-sweep.test.ts (10 tests) 22ms +2026-10-07T09:58:15.4767785Z vi-mock-export-sweep: 0 warning row(s) +2026-10-07T09:58:22.5194282Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:58:22.5260044Z [mem-file] peakRssMb=1037 heapUsedMb=130 externalMb=2 tests/config/vi-mock-export-sweep.test.ts +2026-10-07T09:58:22.5262515Z ✓  default  tests/config/vi-mock-export-sweep.test.ts (58 tests | 1 skipped) 63558ms +2026-10-07T09:58:22.5297083Z ✓ #2281 whole-module vi.mock export ratchet (48) +2026-10-07T09:58:22.5314250Z ✓ keeps every latency-logger mock on the real export surface 12968ms +2026-10-07T09:58:22.5363889Z ✓ reports every omitted production export and warns on newly omitted exports 43425ms +2026-10-07T09:58:22.5725384Z ✓ baseline entries remain live 7037ms +2026-10-07T09:58:26.7470930Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:58:26.7572861Z ✓  default  tests/config/path-key-fold-sweep.test.ts (19 tests) 3476ms +2026-10-07T09:58:26.7608627Z ✓ path transformation single-source-of-truth (#1193) (3) +2026-10-07T09:58:26.7618874Z ✓ has no unpinned raw separator fold outside the canonical leaf 1764ms +2026-10-07T09:58:26.7643332Z ✓ has no unpinned path-key case fold outside the canonical leaf 1682ms +2026-10-07T09:58:45.2147848Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:58:45.2159232Z [mem-file] peakRssMb=879 heapUsedMb=58 externalMb=2 tests/config/bounded-container-guard.test.ts +2026-10-07T09:58:45.2212146Z ✓  default  tests/config/bounded-container-guard.test.ts (14 tests) 40ms +2026-10-07T09:58:45.4462172Z ❯  default  tests/clients/installer/installer-lifecycle.integration.test.ts (10 tests | 2 failed) 32241ms +2026-10-07T09:58:45.4464242Z ❯ installer process lifecycle (#945) (8) +2026-10-07T09:58:45.4465830Z ✓ kills a fake npm's complete Windows process tree on timeout 3981ms +2026-10-07T09:58:45.4467692Z ✓ serializes two processes so exactly one package-manager install runs 6062ms +2026-10-07T09:58:45.4469609Z ✓ reports disabled installation and never spawns the package manager 2325ms +2026-10-07T09:58:45.4471456Z ✓ keeps a freshly installed intelephense and resolves it (#2722) 3401ms +2026-10-07T09:58:45.4473584Z  × keeps a spawn-verified install whose probe came back inconclusive (#2722) 4599ms +2026-10-07T09:58:45.4476088Z  × deletes an inconclusive install whose tree is NOT intact (R2-F2) 4343ms +2026-10-07T09:58:45.4485311Z ✓ never records a partial install as succeeded (R2-F1) 6231ms +2026-10-07T09:58:45.4486941Z ✓ ordinary Vitest execution has tool installation disabled 0ms +2026-10-07T09:58:45.4488199Z ✓ install lock takeover (#3476) (2) +2026-10-07T09:58:45.4490321Z ✓ admits one of two installers taking over a dead installer's lock 1048ms +2026-10-07T09:58:45.4491902Z ✓ releases its lock when the process exits holding it 243ms +2026-10-07T09:58:45.9352982Z ✓  default  tests/config/ci-infra-kill-rerun-gate.test.ts (34 tests) 63ms +2026-10-07T09:58:46.6423291Z ✓  default  tests/config/sync-child-process-timeout.test.ts (7 tests) 45ms +2026-10-07T09:58:47.0669314Z ✓  default  tests/config/install-smoke-gates.test.ts (47 tests) 38ms +2026-10-07T09:58:47.5572140Z fatal: Not a valid object name origin/master +2026-10-07T09:58:47.5899811Z fatal: Not a valid object name origin/master +2026-10-07T09:58:47.6191300Z fatal: Not a valid object name origin/master +2026-10-07T09:58:47.6265006Z ✓  default  tests/config/tla-coverage-governance.test.ts (37 tests) 153ms +2026-10-07T09:58:48.2416885Z ✓  default  tests/config/sweep-floor-coverage.test.ts (10 tests) 1894ms +2026-10-07T09:58:48.2418474Z ✓ registered-or-fail sweep floors (1) +2026-10-07T09:58:48.2419957Z ✓ every sweep-shaped test uses sweep-kit or declares a reason 1877ms +2026-10-07T09:58:48.3946079Z stdout | tests/config/worker-budget.test.ts +2026-10-07T09:58:48.3948232Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:58:48.3949321Z +2026-10-07T09:58:48.4223723Z stdout | tests/config/worker-budget.test.ts > vitest.config.ts wiring (#2042) > takes both worker caps from the resolver under CI +2026-10-07T09:58:48.4226300Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:58:48.4227178Z +2026-10-07T09:58:48.4264936Z stdout | tests/config/worker-budget.test.ts > vitest.config.ts wiring (#2042) > gives every project the derived heap ceiling under CI +2026-10-07T09:58:48.4267460Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:58:48.4268518Z +2026-10-07T09:58:48.4469118Z ✓  default  tests/config/worker-budget.test.ts (27 tests) 37ms +2026-10-07T09:58:48.8032157Z [mem-file] peakRssMb=1375 heapUsedMb=233 externalMb=2 tests/config/lsp-service-double-sweep.test.ts +2026-10-07T09:58:48.8548548Z ✓  default  tests/config/tool-smoke-notify-gate.test.ts (37 tests) 33ms +2026-10-07T09:58:49.1535934Z 9:58:49 AM [vite] (ssr) warning: invalid import "../../clients/${file.replace(/\.ts$/, ".js")}". A file extension must be included in the static part of the import. For example: import(`./foo/${bar}.js`). +2026-10-07T09:58:49.1539341Z Plugin: vite:dynamic-import-vars +2026-10-07T09:58:49.1540490Z File: D:/a/pi-lens/pi-lens/tests/config/session-scope-sweep.test.ts +2026-10-07T09:58:50.2437967Z ✓  default  tests/config/lsp-service-double-sweep.test.ts (28 tests) 21379ms +2026-10-07T09:58:50.7792789Z ✓  default  tests/config/docs-only-ci-skip.test.ts (18 tests) 110ms +2026-10-07T09:58:51.4198581Z ❯  default  tests/clients/read-guard-path-normalization.test.ts (11 tests | 4 failed | 3 skipped) 61ms +2026-10-07T09:58:51.4200692Z ❯ ReadGuard path-key normalization (zero_read false-block regression) (7) +2026-10-07T09:58:51.4206017Z  × allows an edit checked with backslashes after a read recorded with forward slashes 21ms +2026-10-07T09:58:51.4208373Z  × allows the reverse — read recorded with backslashes, edit checked with forward slashes 4ms +2026-10-07T09:58:51.4210100Z  × getReadHistory matches across separator forms 6ms +2026-10-07T09:58:51.4211724Z  × a once-recorded exemption is honored regardless of separator form 2ms +2026-10-07T09:58:51.4213503Z ✓ folds Windows path casing so cased read forms match lower-cased edits 2ms +2026-10-07T09:58:51.4214987Z ✓ still blocks a genuinely unread file (guard not weakened) 2ms +2026-10-07T09:58:51.4216581Z ✓ the retryable block names a path that exists, under a case-variant symlinked package 11ms +2026-10-07T09:58:51.4218078Z ✓ ReadGuard pendingCreations key (#3163 existence-straddle) (4) +2026-10-07T09:58:51.4219925Z ↓ POSIX case-variant parent (3) +2026-10-07T09:58:51.4230440Z ↓ injects the creation read for a case-variant announced parent +2026-10-07T09:58:51.4232010Z ↓ keeps a just-created file editable across an idle window when mtime is unreliable +2026-10-07T09:58:51.4233478Z ↓ injects the creation read when the announced file already existed +2026-10-07T09:58:51.4234634Z ✓ win32 mixed-case basename (1) +2026-10-07T09:58:51.4235872Z ✓ injects the creation read for a mixed-case basename on win32 6ms +2026-10-07T09:58:52.3799288Z ✓  default  tests/config/lsp-gate-population.test.ts (13 tests) 35ms +2026-10-07T09:58:52.3900414Z ✓  default  tests/config/session-scope-sweep.test.ts (7 tests) 1667ms +2026-10-07T09:58:52.3967544Z ✓ session-scope ratchet (#3609 S8) (5) +2026-10-07T09:58:52.4013868Z ✓ admits no new module-level state in a conversation-scoped file (item 2.1) 938ms +2026-10-07T09:58:52.4247915Z ✓ session stores (#3609 §3.8, #3612) (2) +2026-10-07T09:58:52.4277301Z ✓ registers every declared session store, and declares every registered one (item 1) 634ms +2026-10-07T09:58:52.9316430Z ✓  default  tests/config/release-npm-pin-gate.test.ts (10 tests) 33ms +2026-10-07T09:58:53.3774677Z ✓  default  tests/config/lsp-idle-eviction-measurement.test.ts (16 tests) 47ms +2026-10-07T09:58:53.7132062Z stdout | tests/config/lsp-spawn-heavy-coverage.test.ts +2026-10-07T09:58:53.7135657Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:58:53.7167648Z +2026-10-07T09:58:54.3352045Z stdout | tests/config/test-shard-assignment.test.ts +2026-10-07T09:58:54.3411631Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:58:54.3425210Z +2026-10-07T09:58:55.7061619Z ✓  default  tests/config/lsp-spawn-heavy-coverage.test.ts (4 tests) 1920ms +2026-10-07T09:58:55.7062526Z ✓ lsp-spawn-heavy Vitest project coverage (4) +2026-10-07T09:58:55.7063253Z ✓ phases or documents every test that spawns a real LSP child 1908ms +2026-10-07T09:58:55.7566306Z ✓  default  tests/config/test-shard-assignment.test.ts (16 tests) 1403ms +2026-10-07T09:58:55.7567718Z ✓ #3771 duration-balanced Unit tests shards (16) +2026-10-07T09:58:55.7569182Z ✓ gives the same slices whatever maxWorkers each shard's host resolved 392ms +2026-10-07T09:58:56.2196845Z ✓  default  tests/config/stryker-nightly-workflow.test.ts (24 tests) 117ms +2026-10-07T09:58:56.5237798Z ✓  default  tests/config/worker-peak-rss-budget.test.ts (13 tests) 24ms +2026-10-07T09:58:57.5570439Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:58:57.5637557Z ✓  default  tests/config/lsp-advertised-capability-senders.test.ts (5 tests) 44ms +2026-10-07T09:59:08.9928360Z ✓  default  tests/mcp/turn-end-route.smoke.test.ts (10 tests) 11988ms +2026-10-07T09:59:09.0136508Z ✓ warm turn-end IPC route (real spawn) (10) +2026-10-07T09:59:09.0263339Z ✓ still serves an untagged analyze request on a server that knows the route 10290ms +2026-10-07T09:59:09.5088452Z ✓  default  tests/config/merge-queue-workflows.test.ts (8 tests) 123ms +2026-10-07T09:59:10.0887775Z ✓  default  tests/config/label-manifest-coverage.test.ts (2 tests) 37ms +2026-10-07T09:59:10.5752110Z ✓  default  tests/config/lsp-clean-behavior-census.test.ts (5 tests) 27ms +2026-10-07T09:59:11.1789759Z ✓  default  tests/config/install-smoke-pnpm-global-config.test.ts (2 tests) 26ms +2026-10-07T09:59:13.8299406Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:13.8331967Z ❯  default  tests/clients/dispatch/runners/go-vet.test.ts (10 tests | 3 failed) 1982ms +2026-10-07T09:59:13.8635986Z ❯ go-vet runner (8) +2026-10-07T09:59:13.8689749Z ✓ skips when go is not available 380ms +2026-10-07T09:59:13.8890075Z  × vets the package containing the file from the module root (not the file in isolation) 25ms +2026-10-07T09:59:13.9031319Z ✓ vets '.' for a file in the module-root package 3ms +2026-10-07T09:59:13.9166272Z  × keeps diagnostics for the edited file but drops sibling-file lines 16ms +2026-10-07T09:59:13.9389746Z ✓ returns succeeded when only a sibling file has issues 3ms +2026-10-07T09:59:13.9441549Z ✓ returns succeeded on a clean package (no output) 2ms +2026-10-07T09:59:13.9580717Z  × attributes a './'-prefixed module-root path to the edited file 16ms +2026-10-07T09:59:13.9670636Z ✓ attributes an absolute output path to the edited file 3ms +2026-10-07T09:59:13.9900710Z ✓ go-vet path identity through dispatch (#3277) (2) +2026-10-07T09:59:14.0014630Z ✓ matches a go vet diagnostic whose reported path spells the separator the other way (#3277) 1284ms +2026-10-07T09:59:14.0100520Z ✓ treats a case-variant go vet path exactly as this filesystem does (#3277) 241ms +2026-10-07T09:59:14.5484143Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:14.5486384Z ✓  default  tests/config/sharded-aggregate-failure-policy.test.ts (24 tests) 31ms +2026-10-07T09:59:15.2826882Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:15.3205498Z ✓  default  tests/config/schema-stability-tiers.test.ts (63 tests) 62ms +2026-10-07T09:59:16.4307079Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:16.4342477Z ✓  default  tests/clients/ruff-client-reported-path.test.ts (4 tests) 597ms +2026-10-07T09:59:16.4343842Z ✓ ruff reported-path attribution (#3286) (4) +2026-10-07T09:59:16.4345414Z ✓ counts the absolute filename ruff echoes back as the dispatched file's own (#3286) 538ms +2026-10-07T09:59:17.0347315Z stdout | tests/config/knip-entry-coverage.test.ts +2026-10-07T09:59:17.0349242Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:59:17.0350889Z +2026-10-07T09:59:18.6065277Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:18.6111285Z ✓  default  tests/config/knip-entry-coverage.test.ts (2 tests) 1475ms +2026-10-07T09:59:18.6113057Z ✓ knip entry coverage (#2698) (2) +2026-10-07T09:59:18.6114694Z ✓ covers every test file admitted by the Vitest and Windows lanes (#2837) 1388ms +2026-10-07T09:59:19.1752897Z stdout | tests/config/timing-sensitive-coverage.test.ts +2026-10-07T09:59:19.1754847Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:59:19.1836546Z +2026-10-07T09:59:19.5416117Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:19.5464067Z ✓  default  tests/config/timing-sensitive-coverage.test.ts (3 tests) 300ms +2026-10-07T09:59:20.9222218Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:20.9224685Z ❯  default  tests/config/result-contract-governance.test.ts (5 tests | 1 failed) 28532ms +2026-10-07T09:59:20.9326297Z ❯ result contract across registered tool surfaces (5) +2026-10-07T09:59:20.9332432Z  × keeps every paired registry tool's real rendered text identical 25878ms +2026-10-07T09:59:20.9450708Z ✓ covers every pi-only registry tool through pi and proves MCP absence 172ms +2026-10-07T09:59:20.9491063Z ✓ bounds an oversized pi result through the real index.ts wrapper 417ms +2026-10-07T09:59:20.9691629Z ✓ stamps exact delivered bytes on a normal result through both surfaces 294ms +2026-10-07T09:59:20.9779303Z ✓ sums the turn's tool calls onto the real cache_usage row (refs #2800 item 7) 87ms +2026-10-07T09:59:22.0759431Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:22.0802232Z ✓  default  tests/config/vacuous-skip-coverage.test.ts (5 tests) 2041ms +2026-10-07T09:59:22.0804213Z ✓ tests skip visibly instead of returning early (#2089) (5) +2026-10-07T09:59:22.0805369Z ✓ no test body returns before it asserts or skips 2006ms +2026-10-07T09:59:22.4526848Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:22.4554857Z ✓  default  tests/config/global-only-non-flag-key-registry.test.ts (2 tests) 35ms +2026-10-07T09:59:23.5998122Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:23.6030263Z ✓  default  tests/config/shell-dialect-ownership-sweep.test.ts (5 tests) 741ms +2026-10-07T09:59:23.6031836Z ✓ #3968 class sweep — dialect/capability ownership over the runners (5) +2026-10-07T09:59:23.6033323Z ✓ the covers seam consults the builtin facts table only for non-custom primaries (F2) 445ms +2026-10-07T09:59:24.0557437Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:24.0597805Z ✓  default  tests/config/workflow-shell-portability.test.ts (22 tests) 112ms +2026-10-07T09:59:24.4996104Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:24.5042536Z ✓  default  tests/config/workflow-graph-retired-hops.test.ts (10 tests) 22ms +2026-10-07T09:59:24.8817669Z [tmp-hygiene] observed 1 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:24.8854402Z ✓  default  tests/config/strategy-marker-pair-coverage.test.ts (5 tests) 39ms +2026-10-07T09:59:27.1262437Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:27.1297994Z ✓  default  tests/config/escape-regexp-fold-sweep.test.ts (2 tests) 5762ms +2026-10-07T09:59:27.1299438Z ✓ escapeRegExp single-source-of-truth (#2558) (2) +2026-10-07T09:59:27.1315068Z ✓ has no local escaping-helper definition outside the canonical leaf 5754ms +2026-10-07T09:59:27.4826050Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:27.4930234Z ✓  default  tests/config/codeql-workflow.test.ts (8 tests) 94ms +2026-10-07T09:59:27.7683859Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:27.7722219Z ✓  default  tests/config/advisory-tool-workflow.test.ts (14 tests) 18ms +2026-10-07T09:59:28.2655974Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:28.2704353Z ✓  default  tests/config/workflow-concurrency-edit-safety.test.ts (7 tests) 116ms +2026-10-07T09:59:28.6769926Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:28.6843252Z ✓  default  tests/config/covers-config-claim-sweep.test.ts (4 tests) 56ms +2026-10-07T09:59:30.5377759Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:30.5506077Z ✓  default  tests/config/files-touched-bus-conformance.test.ts (4 tests) 1512ms +2026-10-07T09:59:30.5507727Z ✓ pilens:files:touched bus surface (#1966) (4) +2026-10-07T09:59:30.5509139Z ✓ keeps the event constant and declared publisher list in conformance 1009ms +2026-10-07T09:59:30.5510642Z ✓ keeps the event subscriber list in conformance 495ms +2026-10-07T09:59:31.3440150Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:31.3521644Z ✓  default  tests/config/win32-gate-lane.test.ts (5 tests) 6111ms +2026-10-07T09:59:31.3522659Z ✓ win32 gate lane governance (#2536) (5) +2026-10-07T09:59:31.3523302Z ✓ names the lane for every Windows-only declarative gate 1099ms +2026-10-07T09:59:31.3524086Z ✓ keeps the workflow population and execution filter wired 3950ms +2026-10-07T09:59:31.3525192Z ✓ keeps every explicit Windows admission live and reasoned (#3277) 1040ms +2026-10-07T09:59:33.3663388Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:33.3699853Z ✓  default  tests/config/vi-domock-undo.test.ts (7 tests) 1534ms +2026-10-07T09:59:33.3701414Z ✓ vi.doMock is undone in multi-test files (#2883) (1) +2026-10-07T09:59:33.3702761Z ✓ flags no vi.doMock specifier a multi-test file never undoes 1524ms +2026-10-07T09:59:33.7397410Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:33.7490967Z ✓  default  tests/config/unit-tests-shard-workflow.test.ts (5 tests) 67ms +2026-10-07T09:59:34.0965940Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:34.1032961Z ✓  default  tests/config/pi-lens-config-schema.test.ts (9 tests) 21ms +2026-10-07T09:59:35.2733644Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:35.2815494Z ✓  default  tests/config/test-history-workflow.test.ts (5 tests) 876ms +2026-10-07T09:59:35.2817055Z ✓ #3215 durable test-history workflow contract (5) +2026-10-07T09:59:35.2818270Z ✓ records the run attempt the rollup keys re-runs by 816ms +2026-10-07T09:59:35.4398775Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:35.4433142Z ✓  default  tests/config/dependency-boundaries.test.ts (3 tests) 4638ms +2026-10-07T09:59:35.4433948Z ✓ dependency boundary governance (3) +2026-10-07T09:59:35.4434686Z ✓ keeps the eager allowlist equal to index.ts static client imports 4614ms +2026-10-07T09:59:36.0903667Z [tmp-hygiene] observed 2 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:36.0939703Z ✓  default  tests/config/github-token-write-gates.test.ts (8 tests) 235ms +2026-10-07T09:59:36.4125912Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:36.4128147Z ✓  default  tests/config/lsp-first-publish-census.test.ts (4 tests) 18ms +2026-10-07T09:59:36.4977283Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:36.5013734Z ✓  default  tests/config/process-table-seam.test.ts (2 tests) 842ms +2026-10-07T09:59:36.5016645Z ✓ process-table seam (#2443) (2) +2026-10-07T09:59:36.5018002Z ✓ keeps the platform process-table query in exactly one file 832ms +2026-10-07T09:59:36.7169084Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:36.7303809Z ✓  default  tests/config/engines-node-floor.test.ts (3 tests) 25ms +2026-10-07T09:59:38.6184501Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:38.6360712Z ✓  default  tests/config/diagnostics-bus-conformance.test.ts (4 tests) 1560ms +2026-10-07T09:59:38.6362780Z ✓ pilens:diagnostics bus surface (#2079) (4) +2026-10-07T09:59:38.6364429Z ✓ keeps the event constant and declared publisher list in conformance 1071ms +2026-10-07T09:59:38.6366096Z ✓ keeps the event subscriber list in conformance 482ms +2026-10-07T09:59:39.5324013Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:39.5366847Z ✓  default  tests/config/tool-roster-budget.test.ts (2 tests) 1104ms +2026-10-07T09:59:39.7571078Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:39.7614322Z ✓  default  tests/config/module-instance-coverage.test.ts (4 tests) 749ms +2026-10-07T09:59:39.7616315Z ✓ test imports bind the compiled module instance (#1565) (4) +2026-10-07T09:59:39.7617485Z ✓ no test reaches a build-compiled module through a .ts specifier 417ms +2026-10-07T09:59:39.7618269Z ✓ keeps the exception list honest 323ms +2026-10-07T09:59:39.8465731Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:39.8516657Z ✓  default  tests/config/lsp-fixture-home-workflow-pin.test.ts (12 tests) 23ms +2026-10-07T09:59:40.3501835Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:40.3538430Z ✓  default  tests/config/tla-models-shard-workflow.test.ts (9 tests) 170ms +2026-10-07T09:59:40.9391071Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:40.9431076Z ✓  default  tests/config/module-instance-binding.test.ts (1 test) 19ms +2026-10-07T09:59:41.3691931Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:41.3729152Z ✓  default  tests/config/latency-logger-mock-shape.test.ts (2 tests) 1149ms +2026-10-07T09:59:41.3730542Z ✓ latency-logger mock shape (#2281) (2) +2026-10-07T09:59:41.3731600Z ✓ derives every factory and requires a partial import 1141ms +2026-10-07T09:59:41.5042793Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:41.5076499Z ✓  default  tests/config/lsp-idle-eviction-registry.test.ts (4 tests) 15ms +2026-10-07T09:59:41.6834149Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:41.6964323Z ✓  default  tests/config/windows-vitest-workflow.test.ts (4 tests) 57ms +2026-10-07T09:59:41.7961329Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:41.8007148Z ✓  default  tests/config/lane-mechanics-contract.test.ts (6 tests) 15ms +2026-10-07T09:59:42.1612206Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:42.1650061Z ✓  default  tests/config/turn-end-lane-boundaries.test.ts (3 tests) 14ms +2026-10-07T09:59:42.3201882Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:42.3237444Z ✓  default  tests/clients/dispatch/runners/elixir-parser.test.ts (5 tests) 21ms +2026-10-07T09:59:42.4551014Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:42.4591629Z ✓  default  tests/config/label-sync-validation.test.ts (1 test) 17ms +2026-10-07T09:59:42.8784722Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:42.8820074Z ✓  default  tests/config/script-entry-portability.test.ts (2 tests) 213ms +2026-10-07T09:59:43.0606321Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:43.0650497Z ✓  default  tests/config/tool-smoke-fish-provisioning.test.ts (4 tests) 85ms +2026-10-07T09:59:43.1831972Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:43.1894540Z ✓  default  tests/config/config-core-schema-stability.test.ts (11 tests) 22ms +2026-10-07T09:59:43.3877230Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:43.3922538Z ✓  default  tests/config/dmts-export-drift.test.ts (2 tests) 34ms +2026-10-07T09:59:43.7970082Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:43.8005864Z ✓  default  tests/config/runner-marker-containment.test.ts (1 test) 12ms +2026-10-07T09:59:44.4640812Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:44.4706477Z ✓  default  tests/clients/path-utils-win32-absolute.test.ts (11 tests) 984ms +2026-10-07T09:59:44.4708028Z ✓ native Windows lane selection (#1506) (1) +2026-10-07T09:59:44.4709194Z ✓ selects this file for the Windows Vitest subset 968ms +2026-10-07T09:59:44.7458520Z [tmp-hygiene] observed 3 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:44.7503657Z ✓  default  tests/config/github-workflow-permissions.test.ts (2 tests) 29ms +2026-10-07T09:59:46.5540515Z [tmp-hygiene] observed 4 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:46.5542828Z ✓  default  tests/config/parameter-schema-budget.test.ts (3 tests) 25ms +2026-10-07T09:59:47.7673255Z [tmp-hygiene] observed 4 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:47.7696797Z ✓  default  tests/config/tool-registry-governance.test.ts (2 tests) 2073ms +2026-10-07T09:59:47.7698326Z ✓ model-facing tool registry governance (#2800) (2) +2026-10-07T09:59:47.7699991Z ✓ applies registry filtering to an MCP-only tool and preserves lifecycle tools 1013ms +2026-10-07T09:59:48.1606071Z [tmp-hygiene] observed 4 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:48.1650517Z ✓  default  tests/config/agents-governance.test.ts (4 tests) 56ms +2026-10-07T09:59:48.8381574Z [tmp-hygiene] observed 4 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:48.8416211Z ✓  default  tests/config/stryker-diff-exclusions.test.ts (2 tests) 257ms +2026-10-07T09:59:49.1204039Z [tmp-hygiene] observed 4 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:49.1262945Z ✓  default  tests/config/close-keyword-workflow.test.ts (2 tests) 22ms +2026-10-07T09:59:49.5511863Z [tmp-hygiene] observed 4 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:49.5556872Z ✓  default  tests/config/parameter-schema-structure.test.ts (1 test) 1064ms +2026-10-07T09:59:49.6629146Z [tmp-hygiene] observed 4 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:49.6661236Z ✓  default  tests/config/installer-dev-dependency-pin.test.ts (1 test) 13ms +2026-10-07T09:59:49.8347157Z [tmp-hygiene] observed 4 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:49.8381945Z ✓  default  tests/config/adr-log.test.ts (2 tests) 18ms +2026-10-07T09:59:50.2314507Z [tmp-hygiene] observed 4 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:50.2354329Z ✓  default  tests/config/vitest-lane-order.test.ts (1 test) 12ms +2026-10-07T09:59:50.2689973Z stdout | tests/config/real-harness-lane.test.ts +2026-10-07T09:59:50.2691304Z [test-budget] cpus=4 totalMemMb=16379 cpuCap=3 memCap=6 maxWorkers=3 heavyMaxWorkers=1 workerHeapMb=3072 +2026-10-07T09:59:50.2692052Z +2026-10-07T09:59:50.2875984Z [tmp-hygiene] observed 4 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:50.2954544Z ✓  default  tests/config/real-harness-lane.test.ts (1 test) 17ms +2026-10-07T09:59:50.5056647Z [tmp-hygiene] observed 4 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:50.5097008Z ✓  default  tests/config/tracking-issue-workflow-contract.test.ts (2 tests) 12ms +2026-10-07T09:59:50.6355863Z [tmp-hygiene] observed 4 unadmitted entry(s) from C:\Users\RUNNER~1\AppData\Local\Temp; the serialized governance owner cleans them +2026-10-07T09:59:50.6393322Z ✓  default  tests/config/degradation-kind-order.test.ts (1 test) 10ms +2026-10-07T10:00:26.4803484Z (node:6892) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 11) +2026-10-07T10:00:26.4804776Z (Use `node --trace-warnings ...` to show where the warning was created) +2026-10-07T10:00:46.5252640Z [tmp-hygiene-sweep] tests/clients/lsp/launch.test.ts via=afterAll registered=8 stragglers=0 failed=0 dropped=0 +2026-10-07T10:00:46.5354303Z ❯  default  tests/clients/lsp/launch.test.ts (13 tests | 10 failed | 1 skipped) 108597ms +2026-10-07T10:00:46.5356053Z ❯ lsp launch (13) +2026-10-07T10:00:46.5357156Z ↓ spawns LSP servers in their own process group on POSIX +2026-10-07T10:00:46.5358615Z ✓ redacts secrets in crash-adjacent session-start writes 1689ms +2026-10-07T10:00:46.5360341Z ✓ leaves probe-home-state.js un-truncated for later cases in this file 161ms +2026-10-07T10:00:46.5362692Z  × treats delayed shell-backed startup failure as launch failure 11582ms +2026-10-07T10:00:46.5364056Z  × resolves bare commands through where before spawning 15017ms +2026-10-07T10:00:46.5364697Z ❯ isCmdShimValid (5) +2026-10-07T10:00:46.5365374Z  × returns true when the shim target exists 10017ms +2026-10-07T10:00:46.5366815Z  × returns false when the shim target is missing 10014ms +2026-10-07T10:00:46.5368290Z  × returns true for non-npm shims 10008ms +2026-10-07T10:00:46.5369754Z  × returns true when the file cannot be read 10003ms +2026-10-07T10:00:46.5371090Z  × handles .mjs targets 10017ms +2026-10-07T10:00:46.5372686Z  × rejects immediately for an invalid .cmd shim without spawning 10019ms +2026-10-07T10:00:46.5374331Z  × bypasses .ps1 to .cmd sibling on Windows 10019ms +2026-10-07T10:00:46.5375949Z  × bypasses .ps1 to direct node execution when .cmd sibling is missing 10032ms +2026-10-07T10:01:15.3460029Z ❯  wall-clock-budget  tests/scripts/prune-agent-worktrees.test.ts (77 tests | 5 failed | 6 skipped) 28444ms +2026-10-07T10:01:15.3461235Z ✓ parseArgs (8) +2026-10-07T10:01:15.3462467Z ✓ defaults to a non-destructive-by-omission configuration 5ms +2026-10-07T10:01:15.3463338Z ✓ parses --keep-agent-tree, the SubagentStop reap opt-out 1ms +2026-10-07T10:01:15.3464393Z ✓ parses --scan-timeout-ms and rejects an unusable one 2ms +2026-10-07T10:01:15.3465230Z ✓ parses the flags the hooks and a human actually pass 1ms +2026-10-07T10:01:15.3466053Z ✓ rejects a mis-typed --min-age instead of silently disabling the age rail 1ms +2026-10-07T10:01:15.3466834Z ✓ rejects a zero or unparseable --budget-ms 1ms +2026-10-07T10:01:15.3467499Z ✓ rejects an unknown hook event and an unknown flag 0ms +2026-10-07T10:01:15.3468235Z ✓ keeps a 2s floor for a hook whose timeout is unknown 0ms +2026-10-07T10:01:15.3469135Z ❯ #3694 live cwd safety rail (planners) (7) +2026-10-07T10:01:15.3469929Z  × keeps an unselected tree containing a live process cwd 15ms +2026-10-07T10:01:15.3470894Z  × matches a cwd at or under the tree, never a sibling sharing its name prefix 2ms +2026-10-07T10:01:15.3471812Z ✓ does not protect a tree the caller named from its own leftover processes 1ms +2026-10-07T10:01:15.3472679Z ✓ adds no rail of its own when the cwd scan is unknowable: the age rail decides 1ms +2026-10-07T10:01:15.3473362Z ❯ planMergedWorktreeRemovals (3) +2026-10-07T10:01:15.3474056Z  × keeps a merged clean tree that holds a live process cwd 1ms +2026-10-07T10:01:15.3474975Z ✓ keeps a recently active unnamed tree and removes a quiet one, whatever the cwd scan says 1ms +2026-10-07T10:01:15.3475982Z  × does not protect a named tree from its own leftover processes 1ms +2026-10-07T10:01:15.3476850Z ↓ liveProcessCwds (#3694 F6) (3) +2026-10-07T10:01:15.3478116Z ↓ sees this very process through the real /proc +2026-10-07T10:01:15.3479932Z ↓ returns null when the scan cannot see its own cwd (hidepid, foreign pid namespace, EACCES) +2026-10-07T10:01:15.3481499Z ↓ returns every cwd it read, as comparable keys, once it has seen itself +2026-10-07T10:01:15.3485046Z ✓ worktreePathFromHookPayload (3) +2026-10-07T10:01:15.3488689Z ✓ maps a SubagentStop payload's agent_id to that agent's worktree 0ms +2026-10-07T10:01:15.3496320Z ✓ returns null when the payload carries no usable agent id 0ms +2026-10-07T10:01:15.3498049Z ✓ refuses an agent id that could escape the worktrees directory 0ms +2026-10-07T10:01:15.3499336Z ✓ getHygieneLogPath (3) +2026-10-07T10:01:15.3500386Z ✓ falls back to ~/.pi-lens/hygiene.log 1ms +2026-10-07T10:01:15.3501162Z ✓ honors PI_LENS_HOME 2ms +2026-10-07T10:01:15.3501789Z ✓ prefers PILENS_DATA_DIR over PI_LENS_HOME 1ms +2026-10-07T10:01:15.3502441Z ✓ resolveHookPolicy (review S1/S8) (7) +2026-10-07T10:01:15.3503106Z ✓ reaps the stopped agent's own tree on SubagentStop (#2486) 0ms +2026-10-07T10:01:15.3503921Z ✓ honors the --keep-agent-tree opt-out without widening anything else 0ms +2026-10-07T10:01:15.3505116Z ✓ treats `--hook subagent-stop --only` as exactly the manual policy 0ms +2026-10-07T10:01:15.3505915Z ✓ never lets --only widen what SessionStart may do 0ms +2026-10-07T10:01:15.3506621Z ✓ removes at most one tree per SessionStart run 0ms +2026-10-07T10:01:15.3507266Z ✓ leaves a manual run uncapped 0ms +2026-10-07T10:01:15.3507992Z ✓ treats an unknown event as a manual run rather than a destructive one 0ms +2026-10-07T10:01:15.3508769Z ✓ .claude/settings.json hook registration (review S8/S9) (4) +2026-10-07T10:01:15.3509551Z ✓ tracks hooks only — permissions stay in the ignored settings.local.json 0ms +2026-10-07T10:01:15.3510380Z ✓ gives SessionStart room to finish one bounded worktree removal 0ms +2026-10-07T10:01:15.3511188Z ✓ runs the sweep on startup and resume only (review round 3, F1c) 1ms +2026-10-07T10:01:15.3512895Z ✓ registers the SubagentStop line that actually reaps (#2486) 0ms +2026-10-07T10:01:15.3513766Z ✓ worktreeActivityMs across a real `git status` (review round 3, F1) (3) +2026-10-07T10:01:15.3514610Z ✓ still reports the tree as hours old after the dirty rail has run 280ms +2026-10-07T10:01:15.3515459Z ✓ plans a backdated clean, pushed tree for REMOVAL after isDirty ran 236ms +2026-10-07T10:01:15.3516280Z ✓ keeps reading a tree whose HEAD genuinely moved as recent 235ms +2026-10-07T10:01:15.3516964Z ✓ candidate enrichment order (review round 3, F1b) (1) +2026-10-07T10:01:15.3517703Z ✓ reads worktree activity before anything that runs git in the tree 0ms +2026-10-07T10:01:15.3518675Z ✓ isDirty (review round 3, F2) (3) +2026-10-07T10:01:15.3519258Z ✓ reads a clean porcelain output as "clean" 153ms +2026-10-07T10:01:15.3519931Z ✓ reads a non-empty porcelain output as "dirty" 155ms +2026-10-07T10:01:15.3520737Z ✓ reads a `git status` that cannot be answered as "unreadable", never "clean" 158ms +2026-10-07T10:01:15.3521387Z ✓ hookBudgetMs (#2486) (7) +2026-10-07T10:01:15.3522360Z ✓ mirrors the timeouts actually registered in .claude/settings.json 1ms +2026-10-07T10:01:15.3523347Z ✓ sizes each hook's sweep budget to the timeout that will kill it 0ms +2026-10-07T10:01:15.3524184Z ✓ bounds a removal by the reserve its own hook budget subtracted 0ms +2026-10-07T10:01:15.3525653Z ✓ bounds the pre-remove recheck by its OWN small reserve, not removeBoundMs's (PR #2493 round 4, N3) 0ms +2026-10-07T10:01:15.3526578Z ✓ never lets the listing reserve starve the enrichment (#2486) 0ms +2026-10-07T10:01:15.3527379Z ✓ gives an --only run the manual budget, not a floored hook budget 0ms +2026-10-07T10:01:15.3528252Z ✓ keeps a bounded scan ceiling that fits inside every budget it is used in 0ms +2026-10-07T10:01:15.3529003Z ✓ keptReasonFor (#2486 / PR #2493 review round 2, S2) (3) +2026-10-07T10:01:15.3529674Z ✓ names the rail that refused the run's one tree 0ms +2026-10-07T10:01:15.3530418Z ✓ is null when the tree was removed, or when no single tree was in scope 0ms +2026-10-07T10:01:15.3531170Z ✓ distinguishes the opt-out from a per-run removal cap 0ms +2026-10-07T10:01:15.3531811Z ❯ SubagentStop hook, end to end (#2486) (25) +2026-10-07T10:01:15.3532533Z ✓ leaves both candidate kinds untouched in dry-run and at --max 0 1967ms +2026-10-07T10:01:15.3533399Z ✓ applies --max once across registered and unregistered removals 2798ms +2026-10-07T10:01:15.3534255Z ✓ still removes the trees --only names, on the manual policy 1220ms +2026-10-07T10:01:15.3535131Z ↓ keeps a merged clean tree that a live process is using, and never kills that process (#3694 F1) +2026-10-07T10:01:15.3536378Z ✓ with an unknowable cwd scan, keeps recently active merged trees and removes quiet ones (#3694 F6) 1382ms +2026-10-07T10:01:15.3538365Z ✓ keeps a fresh merged tree with no process inside at the default --min-age (#3694 round 3) 1519ms +2026-10-07T10:01:15.3539886Z ↓ honours PI_LENS_PRUNE_PROC_ROOT only under Vitest (#3694 round 3) +2026-10-07T10:01:15.3542053Z ↓ keeps a pushed, unmerged agent tree that a live process is using (#3694 F1) +2026-10-07T10:01:15.3543984Z  × still reaps the stopped agent's own tree, and its leftover process, on SubagentStop (#3694 F5) 1355ms +2026-10-07T10:01:15.3547502Z ✓ reaps under the registered argv when the listing itself fails (#2486's own reason) 1162ms +2026-10-07T10:01:15.3549347Z ✓ still refuses a dirty tree, and the ledger says which rail refused it 659ms +2026-10-07T10:01:15.3550812Z ✓ still refuses an unpushed tree, and the ledger says so 701ms +2026-10-07T10:01:15.3552526Z ✓ tells an unreadable git status apart from a genuinely dirty tree (review round 3, F2) 1088ms +2026-10-07T10:01:15.3554709Z ✓ records not-a-worktree for an existing directory git no longer registers (review round 3, F3) 1096ms +2026-10-07T10:01:15.3556706Z ✓ never destroys a write that lands after enrichment but before the removal call (review round 3, F1) 2520ms +2026-10-07T10:01:15.3558809Z ✓ tells an unreadable recheck apart from a genuinely dirty one (PR #2493 round 5, R2) 1130ms +2026-10-07T10:01:15.3560727Z ✓ reaps the stopped agent's tree through the REGISTERED argv (#2486) 1233ms +2026-10-07T10:01:15.3562267Z ✓ leaves the tree alone under --keep-agent-tree, and says so 1078ms +2026-10-07T10:01:15.3563787Z ✓ honors PILENS_HYGIENE_KEEP_AGENT_TREES on the unchanged registered argv 1095ms +2026-10-07T10:01:15.3565411Z ✓ reaps under the registered argv even when the process scan is degraded 761ms +2026-10-07T10:01:15.3566987Z ✓ evaluates every --only tree even past the enrich deadline 718ms +2026-10-07T10:01:15.3568382Z ✓ records a skipped run when the payload carries no agent_id 549ms +2026-10-07T10:01:15.3569918Z ✓ distinguishes an agent that never had a worktree from a missing agent_id 552ms +2026-10-07T10:01:15.3571588Z ✓ scopes the orphan sweep to the stopped agent's own tree, never a sibling's (#2501) 1295ms +2026-10-07T10:01:15.3573528Z ✓ scopes the orphan sweep to the stopped agent's own tree, never a sibling's, on every platform (#2519 round 2, F1) 1295ms +2026-10-07T10:01:17.3230682Z fatal: couldn't find remote ref refs/pull/7/merge +2026-10-07T10:01:17.4952452Z From C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-3926-git-9bra7y\origin +2026-10-07T10:01:17.4953129Z * [new ref] 1e972aece686792dc55a8fb6a77456221aff1a59 -> pull/7/b1 +2026-10-07T10:01:17.5685570Z ✓  wall-clock-budget  tests/config/heavy-advisory-gate-workflow.test.ts (46 tests) 1757ms +2026-10-07T10:01:17.5687396Z ✓ #3926 the merge ref disappears but the captured commit resolves (1) +2026-10-07T10:01:17.5688839Z ✓ fails the by-name fetch and succeeds the by-captured-SHA fetch 1340ms +2026-10-07T10:01:21.0413357Z ✓  wall-clock-budget  tests/clients/safe-spawn-windows-command.test.ts (22 tests) 3028ms +2026-10-07T10:01:21.0415360Z ✓ Windows command resolution + direct spawn (#817) (10) +2026-10-07T10:01:21.0535475Z ✓ (b) a .cmd shim still executes through the pinned cmd.exe wrapper, args with spaces round-trip 439ms +2026-10-07T10:01:21.0627928Z ✓ (f) resolver cache: second resolve of the same command is a cache hit, reset hook clears it 607ms +2026-10-07T10:01:21.6895274Z ✓  wall-clock-budget  tests/config/tracked-control-bytes.test.ts (6 tests) 316ms +2026-10-07T10:01:21.9705661Z ❯  wall-clock-budget  tests/config/oxlint-advisory-rule-floor-gate.test.ts (3 tests | 1 failed) 44ms +2026-10-07T10:01:21.9708144Z ❯ oxlint advisory rule-count floor guard (#2700 review round 2, F2) (3) +2026-10-07T10:01:21.9709653Z ✓ the real job step defines a RULE_FLOOR and compares $rules against it 18ms +2026-10-07T10:01:21.9713064Z ✓ breaching the floor emits a named ::error:: annotation and fails the step 7ms +2026-10-07T10:01:21.9714631Z  × counts the real advisory --print-config surface and fails closed for absent or malformed evidence 13ms +2026-10-07T10:01:22.3961564Z ✓  wall-clock-budget  tests/config/gitignore-tracked-shadow.test.ts (1 test) 102ms +2026-10-07T10:01:37.8349989Z ✓  wall-clock-budget  tests/config/strictness-ratchet.test.ts (1 test) 15198ms +2026-10-07T10:01:37.8352149Z ✓ TypeScript strictness spike ratchets (1) +2026-10-07T10:01:37.8353404Z ✓ pins both scratch configurations without permitting drift 15191ms +2026-10-07T10:01:42.1382305Z [tmp-hygiene-owners] live=0 orphaned=0 malformed=0 foreign=0 self=1 otherInvocationEntries=0 reaped=0 +2026-10-07T10:01:42.1439806Z ❯  tmp-fixture-hygiene  tests/config/tmp-fixture-hygiene.test.ts (41 tests | 1 failed) 3811ms +2026-10-07T10:01:42.1441490Z ❯ tmp-fixture-hygiene (41) +2026-10-07T10:01:42.1442748Z ✓ routes every tests/ and scripts/ mkdtemp parent through a contained root 1482ms +2026-10-07T10:01:42.1444368Z ✓ keeps every real-tmp mkdtemp prefix in the pi-lens namespace 835ms +2026-10-07T10:01:42.1445272Z ✓ names the entries a run added to the repo root, and only those 5ms +2026-10-07T10:01:42.1446205Z ✓ classifies a new repo-root entry by git: an untracked stray is a leak; a tracked or ignored one is not 44ms +2026-10-07T10:01:42.1447160Z ✓ flags a new dist/ or .pack-backup/ in the repo root even though git ignores it 22ms +2026-10-07T10:01:42.1447988Z ✓ still flags a new dist/ when git cannot classify another new entry 19ms +2026-10-07T10:01:42.1448919Z ✓ reports unknown, never clean, when git cannot classify, and when the baseline predates the census 35ms +2026-10-07T10:01:42.1449881Z ✓ the run's real baseline sees a stray planted in the repo root, and not once it is removed 40ms +2026-10-07T10:01:42.1450678Z ✓ binds every worker's log sink to a home no other worker shares 1ms +2026-10-07T10:01:42.1451500Z ✓ sweeps this run's private backstop directories and spares a sibling invocation's 18ms +2026-10-07T10:01:42.1452376Z ✓ names only root backstop residue this run is answerable for 2ms +2026-10-07T10:01:42.1453773Z ✓ keeps the backstop sweep wired into cleanupTmpHygiene 3ms +2026-10-07T10:01:42.1454989Z ✓ registers the tmp-hygiene setup hook in every vitest project 1ms +2026-10-07T10:01:42.1457365Z ✓ holds every tmp-leak admission to a reason, an issue, and a real file 2ms +2026-10-07T10:01:42.1459349Z ✓ keeps every live baseline prefix within its checked-in owner population 7ms +2026-10-07T10:01:42.1460925Z ✓ reds new prefixes and removal of an admitted prefix from the real namespace 7ms +2026-10-07T10:01:42.1462237Z ✓ reds when a live prefix loses its admission row 0ms +2026-10-07T10:01:42.1463513Z ✓ selects the longest matching prefix for overlapping fixture families 0ms +2026-10-07T10:01:42.1465381Z ✓ draining the real project-snapshot persist before cleanup leaves nothing to recreate pi-lens-tool-policy-conventions dirs 118ms +2026-10-07T10:01:42.1466952Z ❯ owner-marker liveness across platforms (#3186) (14) +2026-10-07T10:01:42.1468145Z ✓ suppresses a live worker on a platform with no process start times 51ms +2026-10-07T10:01:42.1469557Z ✓ attributes a start-time-less marker on a platform that has start times 1ms +2026-10-07T10:01:42.1470931Z ✓ attributes a marker whose pid was reused by another process 50ms +2026-10-07T10:01:42.1472265Z ✓ attributes a marker whose heartbeat stopped, on every platform 1ms +2026-10-07T10:01:42.1473802Z ✓ attributes a marker whose pid is gone 1ms +2026-10-07T10:01:42.1474825Z ✓ ignores a marker from a previous run 1ms +2026-10-07T10:01:42.1475879Z ✓ attributes malformed markers without throwing 1ms +2026-10-07T10:01:42.1477241Z ✓ attributes only the drained owner when two owners share the entry set 0ms +2026-10-07T10:01:42.1478378Z ✓ records one census line per hygiene run, not one per marker 0ms +2026-10-07T10:01:42.1479537Z ✓ reaps only stale foreign owner records across three censuses 10ms +2026-10-07T10:01:42.1480724Z  × declares start-time support exactly when this host's markers carry one 11ms +2026-10-07T10:01:42.1481559Z ✓ keeps the worker heartbeat fresh while the worker runs 0ms +2026-10-07T10:01:42.1482561Z ✓ registers the heartbeat on the test lifecycle, not just defines it 0ms +2026-10-07T10:01:42.1483245Z ✓ beats a stale marker back to live 1ms +2026-10-07T10:01:42.1483792Z ✓ census scope across invocations (#3314, #3306) (8) +2026-10-07T10:01:42.1484745Z ✓ names the test file behind a raw mkdtemp prefix 1013ms +2026-10-07T10:01:42.1486004Z ✓ ignores entries owned by a file no worker of this run loaded 2ms +2026-10-07T10:01:42.1487426Z ✓ judges an entry whose owner ran here, and every entry with no manifest 3ms +2026-10-07T10:01:42.1488748Z ✓ keeps an entry judged when any candidate owner ran here 0ms +2026-10-07T10:01:42.1491576Z ✓ spares another invocation's entries from the sweep 0ms +2026-10-07T10:01:42.1492876Z ✓ reads only this run's file manifest 1ms +2026-10-07T10:01:42.1494914Z ✓ registers a raw mkdtemp prefix from the call site, never from prose 3ms +2026-10-07T10:01:42.1496340Z ✓ spares a sibling's root when this run only mentioned its prefix in prose 2ms +2026-10-07T10:01:42.1546704Z +2026-10-07T10:01:42.1547429Z ⎯⎯⎯⎯⎯⎯ Failed Suites 1 ⎯⎯⎯⎯⎯⎯⎯ +2026-10-07T10:01:42.1547875Z +2026-10-07T10:01:42.1553298Z  FAIL   default  tests/config/result-contract-governance.test.ts > result contract across registered tool surfaces +2026-10-07T10:01:42.1565095Z Error: EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-result-contract-Jm2c4R' +2026-10-07T10:01:42.1567340Z  ❯ tests/config/result-contract-governance.test.ts:87:6 +2026-10-07T10:01:42.1696418Z  85| mcp?.dispose(); +2026-10-07T10:01:42.1697627Z  86| process.chdir(originalCwd); +2026-10-07T10:01:42.1698582Z  87| fs.rmSync(cwd, { recursive: true, force: true }); +2026-10-07T10:01:42.1699399Z  | ^ +2026-10-07T10:01:42.1700006Z  88| }); +2026-10-07T10:01:42.1700524Z  89| +2026-10-07T10:01:42.1700899Z +2026-10-07T10:01:42.1703497Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/61]⎯ +2026-10-07T10:01:42.1703944Z +2026-10-07T10:01:42.1704108Z +2026-10-07T10:01:42.1704760Z ⎯⎯⎯⎯⎯⎯ Failed Tests 57 ⎯⎯⎯⎯⎯⎯⎯ +2026-10-07T10:01:42.1705344Z +2026-10-07T10:01:42.1712642Z  FAIL   tmp-fixture-hygiene  tests/config/tmp-fixture-hygiene.test.ts > tmp-fixture-hygiene > owner-marker liveness across platforms (#3186) > declares start-time support exactly when this host's markers carry one +2026-10-07T10:01:42.1715533Z AssertionError: expected 'orphaned' to be 'live' // Object.is equality +2026-10-07T10:01:42.1716559Z +2026-10-07T10:01:42.1716946Z Expected: "live" +2026-10-07T10:01:42.1717597Z Received: "orphaned" +2026-10-07T10:01:42.1718006Z +2026-10-07T10:01:42.1718702Z  ❯ tests/config/tmp-fixture-hygiene.test.ts:1402:6 +2026-10-07T10:01:42.1967963Z 1400| staleAfterMs: TMP_HYGIENE_OWNER_STALE_MS, +2026-10-07T10:01:42.1968777Z 1401| }), +2026-10-07T10:01:42.1969304Z 1402| ).toBe("live"); +2026-10-07T10:01:42.1969878Z  | ^ +2026-10-07T10:01:42.1970506Z 1403| }); +2026-10-07T10:01:42.1970954Z 1404| +2026-10-07T10:01:42.1971198Z +2026-10-07T10:01:42.1971593Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/61]⎯ +2026-10-07T10:01:42.1971978Z +2026-10-07T10:01:42.1974848Z  FAIL   wall-clock-budget  tests/config/oxlint-advisory-rule-floor-gate.test.ts > oxlint advisory rule-count floor guard (#2700 review round 2, F2) > counts the real advisory --print-config surface and fails closed for absent or malformed evidence +2026-10-07T10:01:42.1977464Z AssertionError: expected null to be +0 // Object.is equality +2026-10-07T10:01:42.1978032Z +2026-10-07T10:01:42.1978263Z - Expected: +2026-10-07T10:01:42.1978716Z 0 +2026-10-07T10:01:42.1978879Z +2026-10-07T10:01:42.1979088Z + Received: +2026-10-07T10:01:42.1979419Z null +2026-10-07T10:01:42.1979899Z +2026-10-07T10:01:42.1980655Z  ❯ tests/config/oxlint-advisory-rule-floor-gate.test.ts:108:62 +2026-10-07T10:01:42.1988828Z 106| }, +2026-10-07T10:01:42.1989527Z 107| ); +2026-10-07T10:01:42.1990519Z 108| expect(advisory.status, advisory.stdout + advisory.stderr).toBe(0); +2026-10-07T10:01:42.1991838Z  | ^ +2026-10-07T10:01:42.1993562Z 109| expect(Number(count(advisory.stdout))).toBeGreaterThanOrEqual(100); +2026-10-07T10:01:42.1995097Z 110| expect(count(JSON.stringify({ rules: { a: "deny", b: "warn" } }))).t… +2026-10-07T10:01:42.1996040Z +2026-10-07T10:01:42.1996683Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/61]⎯ +2026-10-07T10:01:42.1997234Z +2026-10-07T10:01:42.1999175Z  FAIL   wall-clock-budget  tests/scripts/prune-agent-worktrees.test.ts > #3694 live cwd safety rail (planners) > keeps an unselected tree containing a live process cwd +2026-10-07T10:01:42.2001370Z AssertionError: expected [ { …(5) } ] to have a length of +0 but got 1 +2026-10-07T10:01:42.2002136Z +2026-10-07T10:01:42.2002523Z - Expected +2026-10-07T10:01:42.2003375Z + Received +2026-10-07T10:01:42.2003718Z +2026-10-07T10:01:42.2004022Z - 0 +2026-10-07T10:01:42.2004480Z + 1 +2026-10-07T10:01:42.2004782Z +2026-10-07T10:01:42.2005531Z  ❯ tests/scripts/prune-agent-worktrees.test.ts:178:25 +2026-10-07T10:01:42.2010362Z 176| liveProcessCwds: new Set([`${AGENT}/src`]), +2026-10-07T10:01:42.2011268Z 177| }); +2026-10-07T10:01:42.2012127Z 178| expect(result.remove).toHaveLength(0); +2026-10-07T10:01:42.2013561Z  | ^ +2026-10-07T10:01:42.2014741Z 179| expect(result.keep[0]).toMatchObject({ reason: "live-cwd" }); +2026-10-07T10:01:42.2015604Z 180| }); +2026-10-07T10:01:42.2016040Z +2026-10-07T10:01:42.2016556Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/61]⎯ +2026-10-07T10:01:42.2017033Z +2026-10-07T10:01:42.2019052Z  FAIL   wall-clock-budget  tests/scripts/prune-agent-worktrees.test.ts > #3694 live cwd safety rail (planners) > matches a cwd at or under the tree, never a sibling sharing its name prefix +2026-10-07T10:01:42.2021423Z AssertionError: expected undefined to match object { reason: 'live-cwd' } +2026-10-07T10:01:42.2022198Z +2026-10-07T10:01:42.2022548Z - Expected: +2026-10-07T10:01:42.2023008Z { +2026-10-07T10:01:42.2023420Z "reason": "live-cwd", +2026-10-07T10:01:42.2023881Z } +2026-10-07T10:01:42.2024153Z +2026-10-07T10:01:42.2024488Z + Received: +2026-10-07T10:01:42.2024945Z undefined +2026-10-07T10:01:42.2025238Z +2026-10-07T10:01:42.2025998Z  ❯ tests/scripts/prune-agent-worktrees.test.ts:193:31 +2026-10-07T10:01:42.2027052Z 191| }); +2026-10-07T10:01:42.2028044Z 192| expect(plan(`${AGENT}b/src`).remove).toHaveLength(1); +2026-10-07T10:01:42.2029418Z 193| expect(plan(AGENT).keep[0]).toMatchObject({ reason: "live-cwd" }); +2026-10-07T10:01:42.2030663Z  | ^ +2026-10-07T10:01:42.2031419Z 194| }); +2026-10-07T10:01:42.2031932Z 195| +2026-10-07T10:01:42.2033217Z +2026-10-07T10:01:42.2034968Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/61]⎯ +2026-10-07T10:01:42.2035488Z +2026-10-07T10:01:42.2037719Z  FAIL   wall-clock-budget  tests/scripts/prune-agent-worktrees.test.ts > #3694 live cwd safety rail (planners) > planMergedWorktreeRemovals > keeps a merged clean tree that holds a live process cwd +2026-10-07T10:01:42.2042007Z AssertionError: expected [ { …(5) } ] to have a length of +0 but got 1 +2026-10-07T10:01:42.2043058Z +2026-10-07T10:01:42.2044336Z - Expected +2026-10-07T10:01:42.2057600Z + Received +2026-10-07T10:01:42.2058036Z +2026-10-07T10:01:42.2058358Z - 0 +2026-10-07T10:01:42.2058862Z + 1 +2026-10-07T10:01:42.2059194Z +2026-10-07T10:01:42.2059970Z  ❯ tests/scripts/prune-agent-worktrees.test.ts:241:26 +2026-10-07T10:01:42.2061287Z 239| liveProcessCwds: new Set(["/repo/elsewhere/merged-a/src"]), +2026-10-07T10:01:42.2062133Z 240| }); +2026-10-07T10:01:42.2062862Z 241| expect(result.remove).toHaveLength(0); +2026-10-07T10:01:42.2063778Z  | ^ +2026-10-07T10:01:42.2064956Z 242| expect(result.keep[0]).toMatchObject({ reason: "live-cwd" }); +2026-10-07T10:01:42.2097175Z 243| }); +2026-10-07T10:01:42.2097622Z +2026-10-07T10:01:42.2098216Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[6/61]⎯ +2026-10-07T10:01:42.2098752Z +2026-10-07T10:01:42.2101067Z  FAIL   wall-clock-budget  tests/scripts/prune-agent-worktrees.test.ts > #3694 live cwd safety rail (planners) > planMergedWorktreeRemovals > does not protect a named tree from its own leftover processes +2026-10-07T10:01:42.2103853Z AssertionError: expected [] to have a length of 1 but got +0 +2026-10-07T10:01:42.2104580Z +2026-10-07T10:01:42.2104964Z - Expected +2026-10-07T10:01:42.2105547Z + Received +2026-10-07T10:01:42.2105919Z +2026-10-07T10:01:42.2106245Z - 1 +2026-10-07T10:01:42.2106757Z + 0 +2026-10-07T10:01:42.2107086Z +2026-10-07T10:01:42.2107868Z  ❯ tests/scripts/prune-agent-worktrees.test.ts:283:26 +2026-10-07T10:01:42.2109228Z 281| liveProcessCwds: new Set(["/repo/elsewhere/merged-a/src"]), +2026-10-07T10:01:42.2110147Z 282| }); +2026-10-07T10:01:42.2110911Z 283| expect(result.remove).toHaveLength(1); +2026-10-07T10:01:42.2111782Z  | ^ +2026-10-07T10:01:42.2112749Z 284| const unknown = planMergedWorktreeRemovals({ +2026-10-07T10:01:42.2113824Z 285| candidates: [{ ...mergedRow, mtimeMs: 9_999_999 }], +2026-10-07T10:01:42.2114442Z +2026-10-07T10:01:42.2114974Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[7/61]⎯ +2026-10-07T10:01:42.2115478Z +2026-10-07T10:01:42.2118061Z  FAIL   wall-clock-budget  tests/scripts/prune-agent-worktrees.test.ts > SubagentStop hook, end to end (#2486) > still reaps the stopped agent's own tree, and its leftover process, on SubagentStop (#3694 F5) +2026-10-07T10:01:42.2120386Z AssertionError: expected true to be false // Object.is equality +2026-10-07T10:01:42.2120984Z +2026-10-07T10:01:42.2121233Z - Expected +2026-10-07T10:01:42.2121676Z + Received +2026-10-07T10:01:42.2121881Z +2026-10-07T10:01:42.2122080Z - false +2026-10-07T10:01:42.2122436Z + true +2026-10-07T10:01:42.2122635Z +2026-10-07T10:01:42.2123277Z  ❯ tests/scripts/prune-agent-worktrees.test.ts:1861:37 +2026-10-07T10:01:42.2124424Z 1859| const exited = new Promise((resolve) => leftover.once("exit", reso… +2026-10-07T10:01:42.2125490Z 1860| runCli(registeredArgv(), subagentStopPayload(AGENT_ID)); +2026-10-07T10:01:42.2126425Z 1861| expect(fs.existsSync(worktree)).toBe(false); +2026-10-07T10:01:42.2127198Z  | ^ +2026-10-07T10:01:42.2127809Z 1862| await exited; +2026-10-07T10:01:42.2128639Z 1863| // ...and the sibling agent's tree, with its own live process, is … +2026-10-07T10:01:42.2129192Z +2026-10-07T10:01:42.2129819Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[8/61]⎯ +2026-10-07T10:01:42.2130188Z +2026-10-07T10:01:42.2132176Z  FAIL   default  tests/config/global-dir-probe-redirect.test.ts > the recorded resolution is visible through the leaf's reader (#2506) > describes the actual trigger, not a removed test-mode gate +2026-10-07T10:01:42.2138746Z Error: ENAMETOOLONG: name too long, chdir 'D:\a\pi-lens\pi-lens' -> 'C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-probe-reason-9aHXFW\cwd-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +2026-10-07T10:01:42.2142896Z  ❯ tests/config/global-dir-probe-redirect.test.ts:627:12 +2026-10-07T10:01:42.2388218Z 625| process.env.PILENS_PROBE = "1"; +2026-10-07T10:01:42.2426374Z 626| _resetProbeHomeRedirectStateForTests(); +2026-10-07T10:01:42.2427822Z 627| process.chdir(longCwd); +2026-10-07T10:01:42.2428459Z  | ^ +2026-10-07T10:01:42.2429202Z 628| getGlobalPiLensLogDir(); +2026-10-07T10:01:42.2430332Z 629| +2026-10-07T10:01:42.2430841Z +2026-10-07T10:01:42.2431377Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[9/61]⎯ +2026-10-07T10:01:42.2431868Z +2026-10-07T10:01:42.2434182Z  FAIL   default  tests/config/result-contract-governance.test.ts > result contract across registered tool surfaces > keeps every paired registry tool's real rendered text identical +2026-10-07T10:01:42.2438279Z AssertionError: lens_diagnostics: complete rendered text: expected 'Files checked: 1\nTotal diagnostics: …' to be 'Files checked: 1\nTotal diagnostics: …' // Object.is equality +2026-10-07T10:01:42.2439911Z +2026-10-07T10:01:42.2440216Z - Expected +2026-10-07T10:01:42.2440661Z + Received +2026-10-07T10:01:42.2440870Z +2026-10-07T10:01:42.2441101Z @@ -3,9 +3,9 @@ +2026-10-07T10:01:42.2441559Z  Concurrency: 8 +2026-10-07T10:01:42.2442620Z  Outcomes: clean=0, findings=0, unsupported=0, unavailable=0, failed=0, too_large=0, inconclusive=1 +2026-10-07T10:01:42.2443361Z +2026-10-07T10:01:42.2444136Z  Checks not confirmed: 1 (inconclusive/unavailable/unsupported/failed or not started). +2026-10-07T10:01:42.2444806Z +2026-10-07T10:01:42.2445985Z - 0 files confirmed clean, 1 unconfirmed: 1 timed out (check didn't complete within the wait budget). NOT the same as 0 diagnostics. +2026-10-07T10:01:42.2448918Z + 0 files confirmed clean, 1 unconfirmed: from a server that cannot confirm clean (push-only, silent-on-clean; e.g. classic typescript-language-server does not publish on a clean re-check). NOT the same as 0 diagnostics. +2026-10-07T10:01:42.2450964Z +2026-10-07T10:01:42.2451201Z  result ok +2026-10-07T10:01:42.2452040Z - usage tokens=93 elapsed-ms=0 bytes=370 truncated=false +2026-10-07T10:01:42.2453177Z + usage tokens=115 elapsed-ms=0 bytes=458 truncated=false +2026-10-07T10:01:42.2453746Z +2026-10-07T10:01:42.2454364Z  ❯ tests/config/result-contract-governance.test.ts:173:7 +2026-10-07T10:01:42.2455382Z 171| stableRenderedText(entry.name, mcpText), +2026-10-07T10:01:42.2456207Z 172| `${entry.name}: complete rendered text`, +2026-10-07T10:01:42.2457049Z 173| ).toBe(stableRenderedText(entry.name, piText)); +2026-10-07T10:01:42.2457785Z  | ^ +2026-10-07T10:01:42.2458254Z 174| } +2026-10-07T10:01:42.2458935Z 175| const mcpResultValue = mcpResult.result as ToolResult; +2026-10-07T10:01:42.2459443Z +2026-10-07T10:01:42.2460130Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[10/61]⎯ +2026-10-07T10:01:42.2460491Z +2026-10-07T10:01:42.2462349Z  FAIL   default  tests/clients/path-utils.test.ts > normalizeFilePath: POSIX adopts on-disk casing (#3098, the live half of #1024) > a path that does not exist stays case-preserving +2026-10-07T10:01:42.2465081Z AssertionError: expected 'C:/Users/runneradmin/AppData/Local/Te…' to be 'C:/Users/RUNNER~1/AppData/Local/Temp/…' // Object.is equality +2026-10-07T10:01:42.2466085Z +2026-10-07T10:01:42.2466951Z Expected: "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-case-AIGIyF/NOPE/b.ts" +2026-10-07T10:01:42.2468498Z Received: "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-case-AIGIyF/nope/b.ts" +2026-10-07T10:01:42.2469248Z +2026-10-07T10:01:42.2470054Z  ❯ tests/clients/path-utils.test.ts:287:36 +2026-10-07T10:01:42.2499064Z 285| // case-sensitive filesystem `NOPE` and `nope` are two different +2026-10-07T10:01:42.2499946Z 286| // directories — folding one into the other is the #3098 non-goal. +2026-10-07T10:01:42.2500972Z 287| expect(normalizeMapKey(absent)).toBe(absent.replace(/\\/g, "/")); +2026-10-07T10:01:42.2501786Z  | ^ +2026-10-07T10:01:42.2502182Z 288| } finally { +2026-10-07T10:01:42.2502600Z 289| cleanup(); +2026-10-07T10:01:42.2502862Z +2026-10-07T10:01:42.2503187Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[11/61]⎯ +2026-10-07T10:01:42.2503493Z +2026-10-07T10:01:42.2504799Z  FAIL   default  tests/clients/path-utils.test.ts > normalizeFilePath: POSIX adopts on-disk casing (#3098, the live half of #1024) > POSIX relative existing and empty keys keep their prior contract +2026-10-07T10:01:42.2506105Z AssertionError: expected 'SUBDIR/a.ts' to be 'subDir/a.ts' // Object.is equality +2026-10-07T10:01:42.2506504Z +2026-10-07T10:01:42.2506696Z Expected: "subDir/a.ts" +2026-10-07T10:01:42.2507065Z Received: "SUBDIR/a.ts" +2026-10-07T10:01:42.2507254Z +2026-10-07T10:01:42.2507548Z  ❯ tests/clients/path-utils.test.ts:304:50 +2026-10-07T10:01:42.2513675Z 302| ctx.skip(alias.skipReason !== undefined, alias.skipReason ?? ""); +2026-10-07T10:01:42.2514482Z 303| withPlatform("linux", () => { +2026-10-07T10:01:42.2515218Z 304| expect(normalizeFilePath(alias.rawMisCased)).toBe( +2026-10-07T10:01:42.2515755Z  | ^ +2026-10-07T10:01:42.2516479Z 305| alias.onDisk.replace(/\\/g, "/"), +2026-10-07T10:01:42.2517019Z 306| ); +2026-10-07T10:01:42.2517608Z  ❯ Module.withPlatform tests/support/platform-stub.ts:19:10 +2026-10-07T10:01:42.2518471Z  ❯ tests/clients/path-utils.test.ts:303:4 +2026-10-07T10:01:42.2518738Z +2026-10-07T10:01:42.2518949Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[12/61]⎯ +2026-10-07T10:01:42.2519153Z +2026-10-07T10:01:42.2520247Z  FAIL   default  tests/clients/path-utils.test.ts > the uv-members dialect reproduces the pre-fold minimatch answers (#2591) > differs from minimatch(dot:true) on exactly the enumerated cells +2026-10-07T10:01:42.2521404Z AssertionError: expected [ …(3) ] to deeply equal [] +2026-10-07T10:01:42.2521693Z +2026-10-07T10:01:42.2521816Z - Expected +2026-10-07T10:01:42.2522052Z + Received +2026-10-07T10:01:42.2522180Z +2026-10-07T10:01:42.2522275Z - [] +2026-10-07T10:01:42.2522484Z + [ +2026-10-07T10:01:42.2522792Z + "* x\\y folded=true minimatch=false", +2026-10-07T10:01:42.2523403Z + "x\\y x\\y folded=false minimatch=true", +2026-10-07T10:01:42.2523870Z + "**/*/** x\\y folded=false minimatch=true", +2026-10-07T10:01:42.2524179Z + ] +2026-10-07T10:01:42.2524286Z +2026-10-07T10:01:42.2524580Z  ❯ tests/clients/path-utils.test.ts:2351:22 +2026-10-07T10:01:42.2526539Z 2349| } +2026-10-07T10:01:42.2526950Z 2350| } +2026-10-07T10:01:42.2527784Z 2351| expect(unexpected).toEqual([]); +2026-10-07T10:01:42.2528576Z  | ^ +2026-10-07T10:01:42.2529139Z 2352| expect(repaired).toEqual([]); +2026-10-07T10:01:42.2529508Z 2353| expect(cells).toBe( +2026-10-07T10:01:42.2529698Z +2026-10-07T10:01:42.2529922Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[13/61]⎯ +2026-10-07T10:01:42.2530125Z +2026-10-07T10:01:42.2531305Z  FAIL   default  tests/clients/pipeline.test.ts > Pipeline > Format phase > bounds opaque ownership telemetry across many paths (#3226 review P2) +2026-10-07T10:01:42.2532224Z Error: Test timed out in 5000ms. +2026-10-07T10:01:42.2532977Z If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". +2026-10-07T10:01:42.2533921Z  ❯ tests/clients/pipeline.test.ts:763:3 +2026-10-07T10:01:42.2617049Z 761| }); +2026-10-07T10:01:42.2617504Z 762| +2026-10-07T10:01:42.2618365Z 763| it("bounds opaque ownership telemetry across many paths (#3226 revie… +2026-10-07T10:01:42.2619215Z  | ^ +2026-10-07T10:01:42.2620073Z 764| // Recurrence: per-path once keys made opaque recovery retain one h… +2026-10-07T10:01:42.2621215Z 765| // identity per artifact. Drive the real pipeline seam with the rev… +2026-10-07T10:01:42.2621798Z +2026-10-07T10:01:42.2622207Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[14/61]⎯ +2026-10-07T10:01:42.2622479Z +2026-10-07T10:01:42.2623703Z  FAIL   default  tests/clients/pipeline.test.ts > Pipeline > Bus publish (#482 pilens:files:touched) > publishes reason:"format" with the fixed file's path when immediate format changes content +2026-10-07T10:01:42.2625122Z AssertionError: expected "vi.fn()" to be called with arguments: [ 'pilens:files:touched', …(1) ] +2026-10-07T10:01:42.2625540Z +2026-10-07T10:01:42.2625623Z Received: +2026-10-07T10:01:42.2625729Z +2026-10-07T10:01:42.2625856Z  1st vi.fn() call: +2026-10-07T10:01:42.2625994Z +2026-10-07T10:01:42.2626152Z @@ -1,11 +1,18 @@ +2026-10-07T10:01:42.2626401Z  [ +2026-10-07T10:01:42.2626665Z  "pilens:files:touched", +2026-10-07T10:01:42.2627399Z - ObjectContaining { +2026-10-07T10:01:42.2627960Z - "cwd": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-JleaHT", +2026-10-07T10:01:42.2628387Z + { +2026-10-07T10:01:42.2628926Z + "cwd": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-JleaHT", +2026-10-07T10:01:42.2629667Z + "fixes": [ +2026-10-07T10:01:42.2630115Z + { +2026-10-07T10:01:42.2630629Z + "kind": "format", +2026-10-07T10:01:42.2631816Z + "path": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-JleaHT/unformatted.ts", +2026-10-07T10:01:42.2633002Z + "tool": "biome", +2026-10-07T10:01:42.2633573Z + }, +2026-10-07T10:01:42.2634077Z + ], +2026-10-07T10:01:42.2634461Z  "paths": [ +2026-10-07T10:01:42.2635356Z - "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-JleaHT/unformatted.ts", +2026-10-07T10:01:42.2636684Z + "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-JleaHT/unformatted.ts", +2026-10-07T10:01:42.2637567Z  ], +2026-10-07T10:01:42.2638264Z  "reason": "format", +2026-10-07T10:01:42.2638830Z  "source": "pi-lens", +2026-10-07T10:01:42.2639303Z  "v": 1, +2026-10-07T10:01:42.2639667Z  }, +2026-10-07T10:01:42.2639997Z  +2026-10-07T10:01:42.2640158Z +2026-10-07T10:01:42.2640396Z Number of calls: 1 +2026-10-07T10:01:42.2651591Z  +2026-10-07T10:01:42.2652296Z  ❯ tests/clients/pipeline.test.ts:955:17 +2026-10-07T10:01:42.2652949Z 953| ); +2026-10-07T10:01:42.2653290Z 954| +2026-10-07T10:01:42.2653636Z 955| expect(emit).toHaveBeenCalledWith( +2026-10-07T10:01:42.2654030Z  | ^ +2026-10-07T10:01:42.2654401Z 956| "pilens:files:touched", +2026-10-07T10:01:42.2654784Z 957| expect.objectContaining({ +2026-10-07T10:01:42.2654998Z +2026-10-07T10:01:42.2655215Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[15/61]⎯ +2026-10-07T10:01:42.2655429Z +2026-10-07T10:01:42.2656554Z  FAIL   default  tests/clients/pipeline.test.ts > Pipeline > Bus publish (#482 pilens:files:touched) > publishes reason:"autofix" with the fixed file's path when an autofix tool changes content +2026-10-07T10:01:42.2658163Z AssertionError: expected { v: 1, source: 'pi-lens', …(4) } to match object { v: 1, source: 'pi-lens', …(2) } +2026-10-07T10:01:42.2658809Z (2 matching properties omitted from actual) +2026-10-07T10:01:42.2659078Z +2026-10-07T10:01:42.2659208Z - Expected +2026-10-07T10:01:42.2659454Z + Received +2026-10-07T10:01:42.2659584Z +2026-10-07T10:01:42.2659686Z  { +2026-10-07T10:01:42.2659915Z  "paths": [ +2026-10-07T10:01:42.2660405Z - "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-rnEaxd/messy.ts", +2026-10-07T10:01:42.2661088Z + "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-rnEaxd/messy.ts", +2026-10-07T10:01:42.2661530Z  ], +2026-10-07T10:01:42.2661798Z  "reason": "autofix", +2026-10-07T10:01:42.2662102Z  "source": "pi-lens", +2026-10-07T10:01:42.2662371Z  "v": 1, +2026-10-07T10:01:42.2662585Z  } +2026-10-07T10:01:42.2662695Z +2026-10-07T10:01:42.2662987Z  ❯ tests/clients/pipeline.test.ts:1002:34 +2026-10-07T10:01:42.2663364Z 1000| ); +2026-10-07T10:01:42.2663719Z 1001| expect(filesTouchedCall).toBeDefined(); +2026-10-07T10:01:42.2664191Z 1002| expect(filesTouchedCall?.[1]).toMatchObject({ +2026-10-07T10:01:42.2664928Z  | ^ +2026-10-07T10:01:42.2665549Z 1003| v: 1, +2026-10-07T10:01:42.2666126Z 1004| source: "pi-lens", +2026-10-07T10:01:42.2666466Z +2026-10-07T10:01:42.2666882Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[16/61]⎯ +2026-10-07T10:01:42.2667261Z +2026-10-07T10:01:42.2669394Z  FAIL   default  tests/clients/pipeline.test.ts > Pipeline > Bus publish (#482 pilens:files:touched) > includes fix-provenance entries on the format publish +2026-10-07T10:01:42.2671590Z AssertionError: expected { v: 1, source: 'pi-lens', …(4) } to match object { fixes: [ { …(3) } ] } +2026-10-07T10:01:42.2672694Z (5 matching properties omitted from actual) +2026-10-07T10:01:42.2673071Z +2026-10-07T10:01:42.2673277Z - Expected +2026-10-07T10:01:42.2673668Z + Received +2026-10-07T10:01:42.2673880Z +2026-10-07T10:01:42.2674036Z  { +2026-10-07T10:01:42.2674404Z  "fixes": [ +2026-10-07T10:01:42.2674793Z  { +2026-10-07T10:01:42.2675230Z  "kind": "format", +2026-10-07T10:01:42.2676246Z - "path": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-DDmmw5/unformatted2.ts", +2026-10-07T10:01:42.2677884Z + "path": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-DDmmw5/unformatted2.ts", +2026-10-07T10:01:42.2678833Z  "tool": "biome", +2026-10-07T10:01:42.2679266Z  }, +2026-10-07T10:01:42.2679610Z  ], +2026-10-07T10:01:42.2679931Z  } +2026-10-07T10:01:42.2680113Z +2026-10-07T10:01:42.2680595Z  ❯ tests/clients/pipeline.test.ts:1086:22 +2026-10-07T10:01:42.2681253Z 1084| +2026-10-07T10:01:42.2682060Z 1085| const call = emit.mock.calls.find((c) => c[0] === "pilens:files:tou… +2026-10-07T10:01:42.2683085Z 1086| expect(call?.[1]).toMatchObject({ +2026-10-07T10:01:42.2683816Z  | ^ +2026-10-07T10:01:42.2684430Z 1087| fixes: [ +2026-10-07T10:01:42.2684938Z 1088| { +2026-10-07T10:01:42.2685200Z +2026-10-07T10:01:42.2685636Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[17/61]⎯ +2026-10-07T10:01:42.2686004Z +2026-10-07T10:01:42.2688080Z  FAIL   default  tests/clients/pipeline.test.ts > Pipeline > Bus publish (#502 pilens:diagnostics) > publishes the file's diagnostics after dispatch completes +2026-10-07T10:01:42.2690330Z AssertionError: expected "vi.fn()" to be called with arguments: [ 'pilens:diagnostics', …(1) ] +2026-10-07T10:01:42.2691271Z +2026-10-07T10:01:42.2691404Z Received: +2026-10-07T10:01:42.2691573Z +2026-10-07T10:01:42.2691780Z  1st vi.fn() call: +2026-10-07T10:01:42.2692001Z +2026-10-07T10:01:42.2692191Z  [ +2026-10-07T10:01:42.2692634Z  "pilens:diagnostics", +2026-10-07T10:01:42.2693167Z - ObjectContaining { +2026-10-07T10:01:42.2693609Z + { +2026-10-07T10:01:42.2694389Z + "cwd": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-fJ8Nmr", +2026-10-07T10:01:42.2695144Z  "files": [ +2026-10-07T10:01:42.2695643Z - ObjectContaining { +2026-10-07T10:01:42.2696115Z + { +2026-10-07T10:01:42.2696552Z  "diagnostics": [ +2026-10-07T10:01:42.2697107Z - ObjectContaining { +2026-10-07T10:01:42.2698311Z + { +2026-10-07T10:01:42.2699102Z + "col": 1, +2026-10-07T10:01:42.2699792Z  "fixable": true, +2026-10-07T10:01:42.2700963Z + "line": 1, +2026-10-07T10:01:42.2701897Z + "message": "unused var", +2026-10-07T10:01:42.2702618Z  "ruleId": "no-unused-vars", +2026-10-07T10:01:42.2703353Z  "severity": "warning", +2026-10-07T10:01:42.2704046Z  "tool": "eslint", +2026-10-07T10:01:42.2704593Z  }, +2026-10-07T10:01:42.2704991Z  ], +2026-10-07T10:01:42.2705888Z - "path": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-fJ8Nmr/diag.ts", +2026-10-07T10:01:42.2707257Z + "path": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-fJ8Nmr/diag.ts", +2026-10-07T10:01:42.2708093Z  }, +2026-10-07T10:01:42.2708485Z  ], +2026-10-07T10:01:42.2708876Z + "seq": 1, +2026-10-07T10:01:42.2709380Z  "source": "pi-lens", +2026-10-07T10:01:42.2709952Z + "ts": 1791367036698, +2026-10-07T10:01:42.2710427Z  "v": 1, +2026-10-07T10:01:42.2710799Z  }, +2026-10-07T10:01:42.2711143Z  ] +2026-10-07T10:01:42.2711482Z  +2026-10-07T10:01:42.2711647Z +2026-10-07T10:01:42.2711874Z Number of calls: 1 +2026-10-07T10:01:42.2712275Z  +2026-10-07T10:01:42.2712940Z  ❯ tests/clients/pipeline.test.ts:1138:17 +2026-10-07T10:01:42.2713616Z 1136| ); +2026-10-07T10:01:42.2714014Z 1137| +2026-10-07T10:01:42.2714558Z 1138| expect(emit).toHaveBeenCalledWith( +2026-10-07T10:01:42.2715445Z  | ^ +2026-10-07T10:01:42.2716084Z 1139| "pilens:diagnostics", +2026-10-07T10:01:42.2716737Z 1140| expect.objectContaining({ +2026-10-07T10:01:42.2717093Z +2026-10-07T10:01:42.2717461Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[18/61]⎯ +2026-10-07T10:01:42.2717808Z +2026-10-07T10:01:42.2720269Z  FAIL   default  tests/clients/pipeline.test.ts > Pipeline > Bus publish (#502 pilens:diagnostics) > emits an explicit clean [] event when a previously-dirty file's diagnostics clear on a later write +2026-10-07T10:01:42.2722802Z AssertionError: expected { v: 1, source: 'pi-lens', …(4) } to match object { files: [ ObjectContaining{…} ] } +2026-10-07T10:01:42.2723929Z (7 matching properties omitted from actual) +2026-10-07T10:01:42.2724310Z +2026-10-07T10:01:42.2724524Z - Expected +2026-10-07T10:01:42.2724931Z + Received +2026-10-07T10:01:42.2725156Z +2026-10-07T10:01:42.2725322Z  { +2026-10-07T10:01:42.2725706Z  "files": [ +2026-10-07T10:01:42.2726083Z  { +2026-10-07T10:01:42.2726535Z  "diagnostics": [], +2026-10-07T10:01:42.2727541Z - "path": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-7WezlN/flip.ts", +2026-10-07T10:01:42.2729078Z + "path": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-7WezlN/flip.ts", +2026-10-07T10:01:42.2729848Z  }, +2026-10-07T10:01:42.2730163Z  ], +2026-10-07T10:01:42.2730503Z  } +2026-10-07T10:01:42.2730671Z +2026-10-07T10:01:42.2731165Z  ❯ tests/clients/pipeline.test.ts:1243:34 +2026-10-07T10:01:42.2731785Z 1241| +2026-10-07T10:01:42.2732358Z 1242| expect(emit).toHaveBeenCalledTimes(2); +2026-10-07T10:01:42.2733250Z 1243| expect(emit.mock.calls[1][1]).toMatchObject({ +2026-10-07T10:01:42.2734157Z  | ^ +2026-10-07T10:01:42.2734812Z 1244| files: [ +2026-10-07T10:01:42.2735442Z 1245| expect.objectContaining({ +2026-10-07T10:01:42.2735839Z +2026-10-07T10:01:42.2736260Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[19/61]⎯ +2026-10-07T10:01:42.2736653Z +2026-10-07T10:01:42.2739318Z  FAIL   default  tests/clients/read-guard-path-normalization.test.ts > ReadGuard path-key normalization (zero_read false-block regression) > allows an edit checked with backslashes after a read recorded with forward slashes +2026-10-07T10:01:42.2741877Z AssertionError: expected 'block' to be 'allow' // Object.is equality +2026-10-07T10:01:42.2742528Z +2026-10-07T10:01:42.2742834Z Expected: "allow" +2026-10-07T10:01:42.2743364Z Received: "block" +2026-10-07T10:01:42.2743633Z +2026-10-07T10:01:42.2744388Z  ❯ tests/clients/read-guard-path-normalization.test.ts:61:26 +2026-10-07T10:01:42.2745635Z  59| const verdict = guard.checkEdit("\\proj\\providers\\model-fetcher.ts… +2026-10-07T10:01:42.2746382Z  60| +2026-10-07T10:01:42.2746923Z  61| expect(verdict.action).toBe("allow"); +2026-10-07T10:01:42.2747677Z  | ^ +2026-10-07T10:01:42.2748258Z  62| }); +2026-10-07T10:01:42.2748685Z  63| +2026-10-07T10:01:42.2748902Z +2026-10-07T10:01:42.2749290Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[20/61]⎯ +2026-10-07T10:01:42.2749667Z +2026-10-07T10:01:42.2752067Z  FAIL   default  tests/clients/read-guard-path-normalization.test.ts > ReadGuard path-key normalization (zero_read false-block regression) > allows the reverse — read recorded with backslashes, edit checked with forward slashes +2026-10-07T10:01:42.2754862Z AssertionError: expected 'block' to be 'allow' // Object.is equality +2026-10-07T10:01:42.2755538Z +2026-10-07T10:01:42.2755847Z Expected: "allow" +2026-10-07T10:01:42.2756348Z Received: "block" +2026-10-07T10:01:42.2756621Z +2026-10-07T10:01:42.2757365Z  ❯ tests/clients/read-guard-path-normalization.test.ts:70:26 +2026-10-07T10:01:42.2759039Z  68| const verdict = guard.checkEdit("/proj/tests/kilo.test.ts"); +2026-10-07T10:01:42.2759772Z  69| +2026-10-07T10:01:42.2760299Z  70| expect(verdict.action).toBe("allow"); +2026-10-07T10:01:42.2760950Z  | ^ +2026-10-07T10:01:42.2761506Z  71| }); +2026-10-07T10:01:42.2761910Z  72| +2026-10-07T10:01:42.2762101Z +2026-10-07T10:01:42.2762474Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[21/61]⎯ +2026-10-07T10:01:42.2762820Z +2026-10-07T10:01:42.2764736Z  FAIL   default  tests/clients/read-guard-path-normalization.test.ts > ReadGuard path-key normalization (zero_read false-block regression) > getReadHistory matches across separator forms +2026-10-07T10:01:42.2766653Z AssertionError: expected [] to have a length of 1 but got +0 +2026-10-07T10:01:42.2767374Z +2026-10-07T10:01:42.2767566Z - Expected +2026-10-07T10:01:42.2767925Z + Received +2026-10-07T10:01:42.2768113Z +2026-10-07T10:01:42.2768259Z - 1 +2026-10-07T10:01:42.2768555Z + 0 +2026-10-07T10:01:42.2768713Z +2026-10-07T10:01:42.2769320Z  ❯ tests/clients/read-guard-path-normalization.test.ts:77:48 +2026-10-07T10:01:42.2770202Z  75| guard.recordRead(rec("/proj/a.ts")); +2026-10-07T10:01:42.2770687Z  76| +2026-10-07T10:01:42.2771331Z  77| expect(guard.getReadHistory("\\proj\\a.ts")).toHaveLength(1); +2026-10-07T10:01:42.2772254Z  | ^ +2026-10-07T10:01:42.2772856Z  78| }); +2026-10-07T10:01:42.2773247Z  79| +2026-10-07T10:01:42.2773433Z +2026-10-07T10:01:42.2773802Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[22/61]⎯ +2026-10-07T10:01:42.2774150Z +2026-10-07T10:01:42.2776266Z  FAIL   default  tests/clients/read-guard-path-normalization.test.ts > ReadGuard path-key normalization (zero_read false-block regression) > a once-recorded exemption is honored regardless of separator form +2026-10-07T10:01:42.2778603Z AssertionError: expected 'block' to be 'allow' // Object.is equality +2026-10-07T10:01:42.2779588Z +2026-10-07T10:01:42.2779853Z Expected: "allow" +2026-10-07T10:01:42.2780323Z Received: "block" +2026-10-07T10:01:42.2780575Z +2026-10-07T10:01:42.2781199Z  ❯ tests/clients/read-guard-path-normalization.test.ts:84:50 +2026-10-07T10:01:42.2782183Z  82| guard.addExemption("/proj/b.ts"); +2026-10-07T10:01:42.2782633Z  83| +2026-10-07T10:01:42.2783166Z  84| expect(guard.checkEdit("\\proj\\b.ts").action).toBe("allow"); +2026-10-07T10:01:42.2783903Z  | ^ +2026-10-07T10:01:42.2784487Z  85| }); +2026-10-07T10:01:42.2784861Z  86| +2026-10-07T10:01:42.2785067Z +2026-10-07T10:01:42.2786186Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[23/61]⎯ +2026-10-07T10:01:42.2786548Z +2026-10-07T10:01:42.2788054Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph service > builds a TS graph and surfaces importers/callers without duplicate edges +2026-10-07T10:01:42.2789292Z AssertionError: expected [] to include 'C:/Users/runneradmin/AppData/Local/Te…' +2026-10-07T10:01:42.2790044Z  ❯ tests/clients/review-graph.service.test.ts:83:40 +2026-10-07T10:01:42.2836255Z  81| const firstImpact = computeImpactCascade(firstGraph, aPath); +2026-10-07T10:01:42.2837716Z  82| expect(firstImpact.changedSymbols).toContain("alpha"); +2026-10-07T10:01:42.2838791Z  83| expect(firstImpact.directImporters).toContain(normalizeMapKey(bPath… +2026-10-07T10:01:42.2839620Z  | ^ +2026-10-07T10:01:42.2840183Z  84| expect(firstImpact.directCallers).toContain(normalizeMapKey(bPath)); +2026-10-07T10:01:42.2841105Z  85| expect(formatImpactCascade(firstImpact)).toContain("Impact cascade"… +2026-10-07T10:01:42.2841457Z +2026-10-07T10:01:42.2841685Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[24/61]⎯ +2026-10-07T10:01:42.2841894Z +2026-10-07T10:01:42.2842768Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph service > flags cycle-adjacent files and suppresses low-signal output +2026-10-07T10:01:42.2844481Z AssertionError: expected [ 'exported symbol changed' ] to include 'cycle-adjacent file' +2026-10-07T10:01:42.2845658Z  ❯ tests/clients/review-graph.service.test.ts:718:29 +2026-10-07T10:01:42.2846534Z 716| const graph = await buildOrUpdateGraph(env.tmpDir, [aPath], facts); +2026-10-07T10:01:42.2847115Z 717| const impact = computeImpactCascade(graph, aPath); +2026-10-07T10:01:42.2847652Z 718| expect(impact.riskFlags).toContain("cycle-adjacent file"); +2026-10-07T10:01:42.2848120Z  | ^ +2026-10-07T10:01:42.2848417Z 719| +2026-10-07T10:01:42.2848806Z 720| const loneResult = computeImpactCascade(graph, lonePath); +2026-10-07T10:01:42.2849115Z +2026-10-07T10:01:42.2849325Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[25/61]⎯ +2026-10-07T10:01:42.2849517Z +2026-10-07T10:01:42.2850518Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph service > updates cached graph incrementally when only the changed file mtime shifts +2026-10-07T10:01:42.2852452Z AssertionError: expected [] to include 'C:/Users/runneradmin/AppData/Local/Te…' +2026-10-07T10:01:42.2853573Z  ❯ tests/clients/review-graph.service.test.ts:772:36 +2026-10-07T10:01:42.2854245Z 770| expect(graph.buildGeneration).not.toBe(initialGraph.buildGeneratio… +2026-10-07T10:01:42.2854842Z 771| const impact = computeImpactCascade(graph, aPath); +2026-10-07T10:01:42.2855435Z 772| expect(impact.directImporters).toContain(normalizeMapKey(bPath)); +2026-10-07T10:01:42.2856086Z  | ^ +2026-10-07T10:01:42.2856957Z 773| expect(impact.directCallers).toContain(normalizeMapKey(bPath)); +2026-10-07T10:01:42.2857441Z 774| } finally { +2026-10-07T10:01:42.2857606Z +2026-10-07T10:01:42.2857817Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[26/61]⎯ +2026-10-07T10:01:42.2858454Z +2026-10-07T10:01:42.2859941Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph service > rebuilds indexes on workspace cache hit so impact cascade still works +2026-10-07T10:01:42.2861590Z AssertionError: expected [] to include 'C:/Users/runneradmin/AppData/Local/Te…' +2026-10-07T10:01:42.2862316Z  ❯ tests/clients/review-graph.service.test.ts:1039:35 +2026-10-07T10:01:42.2862741Z 1037| +2026-10-07T10:01:42.2863131Z 1038| const impact = computeImpactCascade(secondGraph, aPath); +2026-10-07T10:01:42.2863735Z 1039| expect(impact.directImporters).toContain(normalizeMapKey(bPath)); +2026-10-07T10:01:42.2864257Z  | ^ +2026-10-07T10:01:42.2864598Z 1040| } finally { +2026-10-07T10:01:42.2864887Z 1041| env.cleanup(); +2026-10-07T10:01:42.2865047Z +2026-10-07T10:01:42.2865253Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[27/61]⎯ +2026-10-07T10:01:42.2865677Z +2026-10-07T10:01:42.2867133Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph service > resolves a tree-sitter language import to a real file→file edge (#249) +2026-10-07T10:01:42.2868726Z AssertionError: expected false to be true // Object.is equality +2026-10-07T10:01:42.2869059Z +2026-10-07T10:01:42.2869177Z - Expected +2026-10-07T10:01:42.2869418Z + Received +2026-10-07T10:01:42.2869550Z +2026-10-07T10:01:42.2869652Z - true +2026-10-07T10:01:42.2869864Z + false +2026-10-07T10:01:42.2869975Z +2026-10-07T10:01:42.2870330Z  ❯ tests/clients/review-graph.service.test.ts:1115:28 +2026-10-07T10:01:42.2870926Z 1113| (e) => e.from === aId && e.to === bId && e.kind === "imports", +2026-10-07T10:01:42.2871311Z 1114| ); +2026-10-07T10:01:42.2871639Z 1115| expect(hasResolvedEdge).toBe(true); +2026-10-07T10:01:42.2872028Z  | ^ +2026-10-07T10:01:42.2872506Z 1116| // And it must NOT have fallen back to an unresolved module: node. +2026-10-07T10:01:42.2873070Z 1117| expect(graph.nodes.has("module:./b")).toBe(false); +2026-10-07T10:01:42.2873440Z +2026-10-07T10:01:42.2873813Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[28/61]⎯ +2026-10-07T10:01:42.2874183Z +2026-10-07T10:01:42.2876333Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph: ignore-gated node creation (#694) > never materializes an untracked-AND-gitignored import target as a file node, but keeps a tracked one matching the same pattern +2026-10-07T10:01:42.2877968Z AssertionError: expected false to be true // Object.is equality +2026-10-07T10:01:42.2878524Z +2026-10-07T10:01:42.2878659Z - Expected +2026-10-07T10:01:42.2878920Z + Received +2026-10-07T10:01:42.2879035Z +2026-10-07T10:01:42.2879135Z - true +2026-10-07T10:01:42.2879344Z + false +2026-10-07T10:01:42.2879458Z +2026-10-07T10:01:42.2879808Z  ❯ tests/clients/review-graph.service.test.ts:1186:38 +2026-10-07T10:01:42.2880404Z 1184| const vendorId = `file:${normalizeMapKey(vendorPath)}`; +2026-10-07T10:01:42.2880907Z 1185| expect(graph.nodes.has(genId)).toBe(false); +2026-10-07T10:01:42.2881380Z 1186| expect(graph.nodes.has(vendorId)).toBe(true); +2026-10-07T10:01:42.2881818Z  | ^ +2026-10-07T10:01:42.2882344Z 1187| +2026-10-07T10:01:42.2883006Z 1188| const aId = `file:${normalizeMapKey(aPath)}`; +2026-10-07T10:01:42.2883404Z +2026-10-07T10:01:42.2883641Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[29/61]⎯ +2026-10-07T10:01:42.2884001Z +2026-10-07T10:01:42.2885448Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph: ignore-gated node creation (#694) > degrades to unfiltered (no git binary reachable in the repo) without throwing +2026-10-07T10:01:42.2886669Z AssertionError: expected false to be true // Object.is equality +2026-10-07T10:01:42.2886994Z +2026-10-07T10:01:42.2887110Z - Expected +2026-10-07T10:01:42.2887347Z + Received +2026-10-07T10:01:42.2887463Z +2026-10-07T10:01:42.2887562Z - true +2026-10-07T10:01:42.2887772Z + false +2026-10-07T10:01:42.2887883Z +2026-10-07T10:01:42.2888239Z  ❯ tests/clients/review-graph.service.test.ts:1223:35 +2026-10-07T10:01:42.2888882Z 1221| // still admitted (status quo, not a regression from this change). +2026-10-07T10:01:42.2889435Z 1222| const genId = `file:${normalizeMapKey(genPath)}`; +2026-10-07T10:01:42.2890083Z 1223| expect(graph.nodes.has(genId)).toBe(true); +2026-10-07T10:01:42.2891139Z  | ^ +2026-10-07T10:01:42.2891723Z 1224| } finally { +2026-10-07T10:01:42.2892313Z 1225| env.cleanup(); +2026-10-07T10:01:42.2892546Z +2026-10-07T10:01:42.2892781Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[30/61]⎯ +2026-10-07T10:01:42.2892982Z +2026-10-07T10:01:42.2894182Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph - workspace-package bare specifiers (#775) > resolves a bare specifier pointing at a sibling workspace package to a file-level import edge +2026-10-07T10:01:42.2895461Z AssertionError: expected false to be true // Object.is equality +2026-10-07T10:01:42.2895777Z +2026-10-07T10:01:42.2895888Z - Expected +2026-10-07T10:01:42.2896113Z + Received +2026-10-07T10:01:42.2896335Z +2026-10-07T10:01:42.2896522Z - true +2026-10-07T10:01:42.2896746Z + false +2026-10-07T10:01:42.2896858Z +2026-10-07T10:01:42.2897199Z  ❯ tests/clients/review-graph.service.test.ts:1269:6 +2026-10-07T10:01:42.2898031Z 1267| (e) => e.from === aId && e.to === bId && e.kind === "imports", +2026-10-07T10:01:42.2899085Z 1268| ), +2026-10-07T10:01:42.2899524Z 1269| ).toBe(true); +2026-10-07T10:01:42.2899824Z  | ^ +2026-10-07T10:01:42.2900250Z 1270| } finally { +2026-10-07T10:01:42.2900781Z 1271| env.cleanup(); +2026-10-07T10:01:42.2901058Z +2026-10-07T10:01:42.2901414Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[31/61]⎯ +2026-10-07T10:01:42.2901722Z +2026-10-07T10:01:42.2902830Z  FAIL   default  tests/clients/review-graph.service.test.ts > review graph - workspace-package bare specifiers (#775) > resolves a workspace-package subpath import to a file within the package +2026-10-07T10:01:42.2904046Z AssertionError: expected false to be true // Object.is equality +2026-10-07T10:01:42.2904368Z +2026-10-07T10:01:42.2904480Z - Expected +2026-10-07T10:01:42.2904703Z + Received +2026-10-07T10:01:42.2904824Z +2026-10-07T10:01:42.2904923Z - true +2026-10-07T10:01:42.2905128Z + false +2026-10-07T10:01:42.2905238Z +2026-10-07T10:01:42.2905583Z  ❯ tests/clients/review-graph.service.test.ts:1307:6 +2026-10-07T10:01:42.2906184Z 1305| (e) => e.from === aId && e.to === bId && e.kind === "imports", +2026-10-07T10:01:42.2906737Z 1306| ), +2026-10-07T10:01:42.2907029Z 1307| ).toBe(true); +2026-10-07T10:01:42.2907326Z  | ^ +2026-10-07T10:01:42.2907604Z 1308| } finally { +2026-10-07T10:01:42.2907945Z 1309| env.cleanup(); +2026-10-07T10:01:42.2908111Z +2026-10-07T10:01:42.2908314Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[32/61]⎯ +2026-10-07T10:01:42.2908511Z +2026-10-07T10:01:42.2909413Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > bash grep searchReads registration > registers only the lines shown by the real bash host cap +2026-10-07T10:01:42.2910607Z AssertionError: expected "recordRead" to be called with arguments: [ ObjectContaining{…} ] +2026-10-07T10:01:42.2911011Z +2026-10-07T10:01:42.2911087Z Received: +2026-10-07T10:01:42.2911190Z +2026-10-07T10:01:42.2911312Z  1st recordRead call: +2026-10-07T10:01:42.2911450Z +2026-10-07T10:01:42.2911565Z  [ +2026-10-07T10:01:42.2911818Z - ObjectContaining { +2026-10-07T10:01:42.2912131Z - "effectiveLimit": 2000, +2026-10-07T10:01:42.2912461Z - "effectiveOffset": 1001, +2026-10-07T10:01:42.2912720Z + { +2026-10-07T10:01:42.2912973Z + "effectiveLimit": 3001, +2026-10-07T10:01:42.2913407Z + "effectiveOffset": 1, +2026-10-07T10:01:42.2913731Z + "expandedByLsp": false, +2026-10-07T10:01:42.2914785Z  "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-2802-bash-cap-PXwkjo\\large.ts", +2026-10-07T10:01:42.2915656Z + "requestedLimit": 3001, +2026-10-07T10:01:42.2916289Z + "requestedOffset": 1, +2026-10-07T10:01:42.2916948Z + "timestamp": 1791367028161, +2026-10-07T10:01:42.2917480Z + "turnIndex": 0, +2026-10-07T10:01:42.2917776Z + "writeIndex": 0, +2026-10-07T10:01:42.2918020Z  }, +2026-10-07T10:01:42.2918221Z  ] +2026-10-07T10:01:42.2918630Z  +2026-10-07T10:01:42.2918735Z +2026-10-07T10:01:42.2918876Z Number of calls: 1 +2026-10-07T10:01:42.2919102Z  +2026-10-07T10:01:42.2919539Z  ❯ tests/clients/runtime-tool-result.test.ts:501:23 +2026-10-07T10:01:42.2919993Z 499| } as never); +2026-10-07T10:01:42.2920241Z 500| +2026-10-07T10:01:42.2920569Z 501| expect(recordRead).toHaveBeenCalledWith( +2026-10-07T10:01:42.2920961Z  | ^ +2026-10-07T10:01:42.2921313Z 502| expect.objectContaining({ +2026-10-07T10:01:42.2921640Z 503| filePath, +2026-10-07T10:01:42.2921789Z +2026-10-07T10:01:42.2921996Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[33/61]⎯ +2026-10-07T10:01:42.2922186Z +2026-10-07T10:01:42.2923119Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > bash grep searchReads registration > does not mark a content-identical opaque rewrite as authored +2026-10-07T10:01:42.2924188Z AssertionError: expected false to be true // Object.is equality +2026-10-07T10:01:42.2924506Z +2026-10-07T10:01:42.2924620Z - Expected +2026-10-07T10:01:42.2924856Z + Received +2026-10-07T10:01:42.2924973Z +2026-10-07T10:01:42.2925071Z - true +2026-10-07T10:01:42.2925276Z + false +2026-10-07T10:01:42.2925388Z +2026-10-07T10:01:42.2925705Z  ❯ tests/clients/runtime-tool-result.test.ts:615:6 +2026-10-07T10:01:42.2930427Z 613| expect( +2026-10-07T10:01:42.2931583Z 614| (runtime.readGuard as any).unchangedThisSession.has(filePath), +2026-10-07T10:01:42.2932522Z 615| ).toBe(true); +2026-10-07T10:01:42.2932849Z  | ^ +2026-10-07T10:01:42.2933521Z 616| expect(runtime.readGuard.checkEdit(filePath, [1, 1]).action).toBe( +2026-10-07T10:01:42.2934009Z 617| "block", +2026-10-07T10:01:42.2934164Z +2026-10-07T10:01:42.2934384Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[34/61]⎯ +2026-10-07T10:01:42.2934584Z +2026-10-07T10:01:42.2935555Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > monorepo turn-state cwd alignment > writes turn state under workspace root, not the nested language root +2026-10-07T10:01:42.2936677Z AssertionError: expected 0 to be greater than 0 +2026-10-07T10:01:42.2937442Z  ❯ tests/clients/runtime-tool-result.test.ts:1542:25 +2026-10-07T10:01:42.2945958Z 1540| const turnState = cacheManager.readTurnState(workspaceRoot); +2026-10-07T10:01:42.2946639Z 1541| const files = Object.keys(turnState.files); +2026-10-07T10:01:42.2947652Z 1542| expect(files.length).toBeGreaterThan(0); +2026-10-07T10:01:42.2948401Z  | ^ +2026-10-07T10:01:42.2948950Z 1543| expect(files[0]).toContain("main.go"); +2026-10-07T10:01:42.2949277Z 1544| +2026-10-07T10:01:42.2949397Z +2026-10-07T10:01:42.2949611Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[35/61]⎯ +2026-10-07T10:01:42.2950007Z +2026-10-07T10:01:42.2950935Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > monorepo turn-state cwd alignment > still dispatches pipeline to the language root for linting +2026-10-07T10:01:42.2952183Z AssertionError: expected "vi.fn()" to be called with arguments: [ ObjectContaining{…}, Anything ] +2026-10-07T10:01:42.2952621Z +2026-10-07T10:01:42.2952698Z Received: +2026-10-07T10:01:42.2952795Z +2026-10-07T10:01:42.2952921Z  1st vi.fn() call: +2026-10-07T10:01:42.2953060Z +2026-10-07T10:01:42.2953164Z  [ +2026-10-07T10:01:42.2953433Z - ObjectContaining { +2026-10-07T10:01:42.2954209Z - "cwd": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-monorepo-dispatch-ChzrHD\\workspace\\platform\\svc\\go\\daemon", +2026-10-07T10:01:42.2954803Z + { +2026-10-07T10:01:42.2955097Z + "allowAutonomousWriters": true, +2026-10-07T10:01:42.2955472Z + "autofixMode": "deferred", +2026-10-07T10:01:42.2956121Z + "cwd": "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pi-lens-monorepo-dispatch-ChzrHD\\workspace", +2026-10-07T10:01:42.2956685Z + "dbg": [Function dbg], +2026-10-07T10:01:42.2957752Z  "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-monorepo-dispatch-ChzrHD\\workspace\\platform\\svc\\go\\daemon\\main.go", +2026-10-07T10:01:42.2958490Z + "getFlag": [Function getFlag], +2026-10-07T10:01:42.2959068Z + "getFlagSource": undefined, +2026-10-07T10:01:42.2959405Z + "modifiedRanges": [ +2026-10-07T10:01:42.2959666Z + { +2026-10-07T10:01:42.2959905Z + "end": 1, +2026-10-07T10:01:42.2960178Z + "start": 1, +2026-10-07T10:01:42.2960416Z + }, +2026-10-07T10:01:42.2960625Z + ], +2026-10-07T10:01:42.2960960Z + "nextWriteIndex": [Function nextWriteIndex], +2026-10-07T10:01:42.2961404Z + "onFixRunLoss": [Function onFixRunLoss], +2026-10-07T10:01:42.2961883Z + "onWordIndexUpdated": [Function onWordIndexUpdated], +2026-10-07T10:01:42.2962669Z + "projectRoot": "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pi-lens-monorepo-dispatch-ChzrHD\\workspace", +2026-10-07T10:01:42.2963783Z + "seqState": { +2026-10-07T10:01:42.2964251Z + "getFilesChangedSince": [Function getFilesChangedSince], +2026-10-07T10:01:42.2965067Z + "projectSeq": [Function projectSeq], +2026-10-07T10:01:42.2965515Z + }, +2026-10-07T10:01:42.2965787Z + "sessionGeneration": { +2026-10-07T10:01:42.2966345Z + "branchEpoch": 0, +2026-10-07T10:01:42.2966825Z + "generation": 31, +2026-10-07T10:01:42.2967214Z + "guardedWrite": [Function guardedWrite], +2026-10-07T10:01:42.2968014Z + "isCurrent": [Function isCurrent], +2026-10-07T10:01:42.2968629Z + "scopeId": 31, +2026-10-07T10:01:42.2969248Z + Symbol(pi-lens.session-scope.captured.v1): { +2026-10-07T10:01:42.2969816Z + "branch": { +2026-10-07T10:01:42.2970401Z + "generation": 0, +2026-10-07T10:01:42.2971067Z + "guardedWrite": [Function guardedWrite], +2026-10-07T10:01:42.2971618Z + "isCurrent": [Function isCurrent], +2026-10-07T10:01:42.2971944Z + }, +2026-10-07T10:01:42.2972210Z + "scope": Scope { +2026-10-07T10:01:42.2972519Z + "branch": { +2026-10-07T10:01:42.2972857Z + "bump": [Function bump], +2026-10-07T10:01:42.2973241Z + "capture": [Function capture], +2026-10-07T10:01:42.2973623Z + "current": [Function read], +2026-10-07T10:01:42.2973996Z + "name": "session-branch", +2026-10-07T10:01:42.2974288Z  }, +2026-10-07T10:01:42.2974702Z - Anything, +2026-10-07T10:01:42.2974974Z + "cells": Map {}, +2026-10-07T10:01:42.2975321Z + "coordinatorId": undefined, +2026-10-07T10:01:42.2975643Z + "life": { +2026-10-07T10:01:42.2975958Z + "bump": [Function bump], +2026-10-07T10:01:42.2976334Z + "capture": [Function capture], +2026-10-07T10:01:42.2976706Z + "current": [Function read], +2026-10-07T10:01:42.2977226Z + "name": "runtime-session", +2026-10-07T10:01:42.2977611Z + }, +2026-10-07T10:01:42.2977940Z + "parentScopeId": undefined, +2026-10-07T10:01:42.2978325Z + "retiredReason": undefined, +2026-10-07T10:01:42.2978673Z + "role": "primary", +2026-10-07T10:01:42.2979191Z + "scopeId": 31, +2026-10-07T10:01:42.2979461Z + }, +2026-10-07T10:01:42.2979683Z + }, +2026-10-07T10:01:42.2979899Z + }, +2026-10-07T10:01:42.2980150Z + "signal": undefined, +2026-10-07T10:01:42.2980443Z + "telemetry": { +2026-10-07T10:01:42.2980739Z + "model": "unknown", +2026-10-07T10:01:42.2981030Z + "modelId": "", +2026-10-07T10:01:42.2981311Z + "orderTurn": 6, +2026-10-07T10:01:42.2981605Z + "provider": "", +2026-10-07T10:01:42.2981929Z + "sessionId": "lens-muxxofjr", +2026-10-07T10:01:42.2982515Z + "turnIndex": 1, +2026-10-07T10:01:42.2983053Z + "writeIndex": 1, +2026-10-07T10:01:42.2983391Z + }, +2026-10-07T10:01:42.2983868Z + "toolName": "edit", +2026-10-07T10:01:42.2984797Z + "turnEndCascadeSettleStart": [Function turnEndCascadeSettleStart], +2026-10-07T10:01:42.2985543Z + "wordIndex": null, +2026-10-07T10:01:42.2986014Z + }, +2026-10-07T10:01:42.2986385Z + { +2026-10-07T10:01:42.2986744Z + "biomeClient": {}, +2026-10-07T10:01:42.2987049Z + "fixedThisTurn": { +2026-10-07T10:01:42.2987360Z + "add": [Function add], +2026-10-07T10:01:42.2987695Z + "clear": [Function clear], +2026-10-07T10:01:42.2988056Z + "delete": [Function delete], +2026-10-07T10:01:42.2988398Z + "has": [Function has], +2026-10-07T10:01:42.2988663Z + }, +2026-10-07T10:01:42.2989017Z + "getFormatService": [Function getFormatService], +2026-10-07T10:01:42.2989403Z + "metricsClient": {}, +2026-10-07T10:01:42.2989858Z + "ruffClient": {}, +2026-10-07T10:01:42.2990123Z + }, +2026-10-07T10:01:42.2990317Z  ] +2026-10-07T10:01:42.2990499Z  +2026-10-07T10:01:42.2990598Z +2026-10-07T10:01:42.2990728Z Number of calls: 1 +2026-10-07T10:01:42.2990951Z  +2026-10-07T10:01:42.2991383Z  ❯ tests/clients/runtime-tool-result.test.ts:1621:35 +2026-10-07T10:01:42.2992028Z 1619| // Pipeline must receive the language root (Go module dir) as cwd, +2026-10-07T10:01:42.2992609Z 1620| // not the workspace root — linters need to run from there. +2026-10-07T10:01:42.2993149Z 1621| expect(vi.mocked(runPipeline)).toHaveBeenCalledWith( +2026-10-07T10:01:42.2993611Z  | ^ +2026-10-07T10:01:42.2993980Z 1622| expect.objectContaining({ +2026-10-07T10:01:42.2994314Z 1623| cwd: goModuleDir, +2026-10-07T10:01:42.2994493Z +2026-10-07T10:01:42.2994706Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[36/61]⎯ +2026-10-07T10:01:42.2994889Z +2026-10-07T10:01:42.2995955Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > runtime-tool-result writers across a replacement (#3596) > a session-1 edit parked on its analysers credits nothing in session 2 +2026-10-07T10:01:42.2997706Z AssertionError: expected { verdict: 'block', …(4) } to deeply equal { verdict: 'block', …(4) } +2026-10-07T10:01:42.2998466Z +2026-10-07T10:01:42.2998716Z - Expected +2026-10-07T10:01:42.2999420Z + Received +2026-10-07T10:01:42.2999624Z +2026-10-07T10:01:42.2999783Z  { +2026-10-07T10:01:42.3000195Z  "dispatched": 0, +2026-10-07T10:01:42.3000661Z  "falseBlocks": [ +2026-10-07T10:01:42.3001189Z  "superseded:tool-result", +2026-10-07T10:01:42.3001555Z  ], +2026-10-07T10:01:42.3001797Z - "receipts": [ +2026-10-07T10:01:42.3002342Z - "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-3596-parked-phrEUN\\edit.ts", +2026-10-07T10:01:42.3002811Z - ], +2026-10-07T10:01:42.3003057Z + "receipts": [], +2026-10-07T10:01:42.3003328Z  "turnFiles": [], +2026-10-07T10:01:42.3003623Z  "verdict": "block", +2026-10-07T10:01:42.3003868Z  } +2026-10-07T10:01:42.3003975Z +2026-10-07T10:01:42.3004317Z  ❯ tests/clients/runtime-tool-result.test.ts:2105:8 +2026-10-07T10:01:42.3004922Z 2103| .find((group) => group.kind === "session-scope-read-dropped") +2026-10-07T10:01:42.3005450Z 2104| ?.latestReasons.map((r) => r.subject), +2026-10-07T10:01:42.3005817Z 2105| }).toEqual({ +2026-10-07T10:01:42.3006108Z  | ^ +2026-10-07T10:01:42.3006412Z 2106| verdict: "block", +2026-10-07T10:01:42.3006713Z 2107| turnFiles: [], +2026-10-07T10:01:42.3007292Z  ❯ acrossReplacement tests/clients/runtime-tool-result.test.ts:2051:4 +2026-10-07T10:01:42.3007960Z  ❯ tests/clients/runtime-tool-result.test.ts:2085:3 +2026-10-07T10:01:42.3008260Z +2026-10-07T10:01:42.3008462Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[37/61]⎯ +2026-10-07T10:01:42.3008666Z +2026-10-07T10:01:42.3009777Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > runtime-tool-result writers across a replacement (#3596) > a session-1 pipeline settling after the replacement queues nothing in session 2 +2026-10-07T10:01:42.3011061Z AssertionError: expected { queued: +0, …(3) } to deeply equal { queued: +0, …(3) } +2026-10-07T10:01:42.3011419Z +2026-10-07T10:01:42.3011536Z - Expected +2026-10-07T10:01:42.3011759Z + Received +2026-10-07T10:01:42.3011926Z +2026-10-07T10:01:42.3012100Z  { +2026-10-07T10:01:42.3012746Z  "queued": 0, +2026-10-07T10:01:42.3013377Z  "sideInTurnState": false, +2026-10-07T10:01:42.3013822Z - "sideReceipt": true, +2026-10-07T10:01:42.3014350Z + "sideReceipt": false, +2026-10-07T10:01:42.3014951Z  "summaryEmpty": true, +2026-10-07T10:01:42.3015472Z  } +2026-10-07T10:01:42.3015648Z +2026-10-07T10:01:42.3016207Z  ❯ tests/clients/runtime-tool-result.test.ts:2166:8 +2026-10-07T10:01:42.3017012Z 2164| ), +2026-10-07T10:01:42.3017412Z 2165| summaryEmpty: runtime.turnSummary.isEmpty(), +2026-10-07T10:01:42.3017814Z 2166| }).toEqual({ +2026-10-07T10:01:42.3018101Z  | ^ +2026-10-07T10:01:42.3018385Z 2167| queued: 0, +2026-10-07T10:01:42.3018699Z 2168| sideInTurnState: false, +2026-10-07T10:01:42.3019310Z  ❯ acrossReplacement tests/clients/runtime-tool-result.test.ts:2051:4 +2026-10-07T10:01:42.3019995Z  ❯ tests/clients/runtime-tool-result.test.ts:2120:3 +2026-10-07T10:01:42.3020285Z +2026-10-07T10:01:42.3020489Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[38/61]⎯ +2026-10-07T10:01:42.3020682Z +2026-10-07T10:01:42.3021825Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > runtime-tool-result inline behavior warnings > appends project change log entries for analyzed agent edits +2026-10-07T10:01:42.3022932Z AssertionError: expected [] to have a length of 1 but got +0 +2026-10-07T10:01:42.3023241Z +2026-10-07T10:01:42.3023354Z - Expected +2026-10-07T10:01:42.3023588Z + Received +2026-10-07T10:01:42.3023705Z +2026-10-07T10:01:42.3023801Z - 1 +2026-10-07T10:01:42.3023990Z + 0 +2026-10-07T10:01:42.3024093Z +2026-10-07T10:01:42.3024428Z  ❯ tests/clients/runtime-tool-result.test.ts:2359:20 +2026-10-07T10:01:42.3024835Z 2357| +2026-10-07T10:01:42.3025193Z 2358| const changes = readChangesSince(env.tmpDir, 0); +2026-10-07T10:01:42.3025639Z 2359| expect(changes).toHaveLength(1); +2026-10-07T10:01:42.3026018Z  | ^ +2026-10-07T10:01:42.3026716Z 2360| expect(changes[0]).toMatchObject({ +2026-10-07T10:01:42.3027357Z 2361| seq: 1, +2026-10-07T10:01:42.3027601Z +2026-10-07T10:01:42.3027945Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[39/61]⎯ +2026-10-07T10:01:42.3028420Z +2026-10-07T10:01:42.3029820Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > runtime-tool-result inline behavior warnings > recovers opaque multi-file bash changes without granting ownership +2026-10-07T10:01:42.3031774Z AssertionError: expected [] to deeply equal ArrayContaining{…} +2026-10-07T10:01:42.3032127Z +2026-10-07T10:01:42.3032282Z - Expected +2026-10-07T10:01:42.3032522Z + Received +2026-10-07T10:01:42.3032643Z +2026-10-07T10:01:42.3032780Z - ArrayContaining [ +2026-10-07T10:01:42.3033078Z - ObjectContaining { +2026-10-07T10:01:42.3033812Z - "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-3226-opaque-ownership-A0WZYM\\extracted\\existing.js", +2026-10-07T10:01:42.3034476Z - "source": "opaque-script", +2026-10-07T10:01:42.3034749Z - }, +2026-10-07T10:01:42.3034998Z - ObjectContaining { +2026-10-07T10:01:42.3035713Z - "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-3226-opaque-ownership-A0WZYM\\extracted\\created.js", +2026-10-07T10:01:42.3036954Z - "source": "opaque-script", +2026-10-07T10:01:42.3037262Z - }, +2026-10-07T10:01:42.3037522Z - ObjectContaining { +2026-10-07T10:01:42.3038363Z - "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-3226-opaque-ownership-A0WZYM\\direct.js", +2026-10-07T10:01:42.3038982Z - "source": "agent-write", +2026-10-07T10:01:42.3039250Z - }, +2026-10-07T10:01:42.3039446Z - ] +2026-10-07T10:01:42.3039638Z + [] +2026-10-07T10:01:42.3039751Z +2026-10-07T10:01:42.3040089Z  ❯ tests/clients/runtime-tool-result.test.ts:2712:44 +2026-10-07T10:01:42.3040661Z 2710| expect(fs.readFileSync(filePath)).toEqual(bytes); +2026-10-07T10:01:42.3041031Z 2711| } +2026-10-07T10:01:42.3041401Z 2712| expect(readChangesSince(env.tmpDir, 0)).toEqual( +2026-10-07T10:01:42.3041851Z  | ^ +2026-10-07T10:01:42.3042230Z 2713| expect.arrayContaining([ +2026-10-07T10:01:42.3042859Z 2714| expect.objectContaining({ +2026-10-07T10:01:42.3043226Z +2026-10-07T10:01:42.3043629Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[40/61]⎯ +2026-10-07T10:01:42.3043835Z +2026-10-07T10:01:42.3045421Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > runtime-tool-result inline behavior warnings > publishes pilens:format:queued only when deferFormat reports a NEW queue entry (#673) +2026-10-07T10:01:42.3047039Z AssertionError: expected "vi.fn()" to be called with arguments: [ 'pilens:format:queued', …(1) ] +2026-10-07T10:01:42.3047467Z +2026-10-07T10:01:42.3047539Z Received: +2026-10-07T10:01:42.3047640Z +2026-10-07T10:01:42.3047765Z  1st vi.fn() call: +2026-10-07T10:01:42.3047893Z +2026-10-07T10:01:42.3048003Z  [ +2026-10-07T10:01:42.3048270Z  "pilens:format:queued", +2026-10-07T10:01:42.3048582Z - ObjectContaining { +2026-10-07T10:01:42.3049271Z - "filePath": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-runtime-tool-format-queued-8fa9Nc/src/app.ts", +2026-10-07T10:01:42.3049828Z + { +2026-10-07T10:01:42.3050392Z + "cwd": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-runtime-tool-format-queued-8fa9Nc", +2026-10-07T10:01:42.3051327Z + "filePath": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-runtime-tool-format-queued-8fa9Nc/src/app.ts", +2026-10-07T10:01:42.3051916Z + "kinds": [ +2026-10-07T10:01:42.3052170Z + "autofix", +2026-10-07T10:01:42.3052428Z + "format", +2026-10-07T10:01:42.3052660Z + ], +2026-10-07T10:01:42.3052914Z  "source": "pi-lens", +2026-10-07T10:01:42.3053209Z  "tool": "edit", +2026-10-07T10:01:42.3053450Z  "v": 1, +2026-10-07T10:01:42.3053655Z  }, +2026-10-07T10:01:42.3053850Z  ] +2026-10-07T10:01:42.3054036Z  +2026-10-07T10:01:42.3054127Z +2026-10-07T10:01:42.3054253Z Number of calls: 1 +2026-10-07T10:01:42.3054473Z  +2026-10-07T10:01:42.3054907Z  ❯ tests/clients/runtime-tool-result.test.ts:3104:17 +2026-10-07T10:01:42.3055320Z 3102| +2026-10-07T10:01:42.3055643Z 3103| expect(emit).toHaveBeenCalledTimes(1); +2026-10-07T10:01:42.3056283Z 3104| expect(emit).toHaveBeenCalledWith( +2026-10-07T10:01:42.3057271Z  | ^ +2026-10-07T10:01:42.3057867Z 3105| "pilens:format:queued", +2026-10-07T10:01:42.3058581Z 3106| expect.objectContaining({ +2026-10-07T10:01:42.3058948Z +2026-10-07T10:01:42.3059266Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[41/61]⎯ +2026-10-07T10:01:42.3059473Z +2026-10-07T10:01:42.3060676Z  FAIL   default  tests/clients/runtime-tool-result.test.ts > path attribution across tool_call/tool_result (#1642) > resolves a relative tool_result path against the call's own worktree cwd, never the parent checkout +2026-10-07T10:01:42.3062223Z AssertionError: expected "vi.fn()" to be called with arguments: [ StringContaining{…} ] +2026-10-07T10:01:42.3062641Z +2026-10-07T10:01:42.3062715Z Received: +2026-10-07T10:01:42.3062820Z +2026-10-07T10:01:42.3062996Z  1st vi.fn() call: +2026-10-07T10:01:42.3063129Z +2026-10-07T10:01:42.3063255Z  [ +2026-10-07T10:01:42.3064184Z - StringContaining "tool_result: skipping gitignored file C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-worktree-attribution-jROD2V\\.worktrees\\wt1\\src\\app.ts", +2026-10-07T10:01:42.3065558Z + "tool_call fired for: C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-worktree-attribution-jROD2V\\.worktrees\\wt1\\src\\app.ts (exists: true)", +2026-10-07T10:01:42.3066230Z  ] +2026-10-07T10:01:42.3066333Z +2026-10-07T10:01:42.3066452Z  2nd vi.fn() call: +2026-10-07T10:01:42.3066573Z +2026-10-07T10:01:42.3066678Z  [ +2026-10-07T10:01:42.3067589Z - StringContaining "tool_result: skipping gitignored file C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-worktree-attribution-jROD2V\\.worktrees\\wt1\\src\\app.ts", +2026-10-07T10:01:42.3069355Z + "path_attribution_missing: no recorded resolution basis for toolCallId=call-1642, refusing relative path src/app.ts (would have guessed C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pi-lens-worktree-attribution-jROD2V\\src\\app.ts)", +2026-10-07T10:01:42.3070444Z  ] +2026-10-07T10:01:42.3070633Z  +2026-10-07T10:01:42.3070732Z +2026-10-07T10:01:42.3070867Z Number of calls: 2 +2026-10-07T10:01:42.3071091Z  +2026-10-07T10:01:42.3071518Z  ❯ tests/clients/runtime-tool-result.test.ts:4193:16 +2026-10-07T10:01:42.3072149Z 4191| // and correctly recognized IT as gitignored — proving the basis +2026-10-07T10:01:42.3072768Z 4192| // correction, not a stale skip flag, is what protects the parent. +2026-10-07T10:01:42.3073272Z 4193| expect(dbg).toHaveBeenCalledWith( +2026-10-07T10:01:42.3073629Z  | ^ +2026-10-07T10:01:42.3073970Z 4194| expect.stringContaining( +2026-10-07T10:01:42.3074423Z 4195| `tool_result: skipping gitignored file ${worktreeFile}`, +2026-10-07T10:01:42.3074712Z +2026-10-07T10:01:42.3074916Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[42/61]⎯ +2026-10-07T10:01:42.3075108Z +2026-10-07T10:01:42.3076256Z  FAIL   default  tests/clients/installer/installer-lifecycle.integration.test.ts > installer process lifecycle (#945) > keeps a spawn-verified install whose probe came back inconclusive (#2722) +2026-10-07T10:01:42.3078495Z AssertionError: {"value":"C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-installer-945-MNsbb5\\home\\tools\\node_modules\\.bin\\svelteserver.cmd","log":"","attempt":{"outcome":"succeeded","at":1791367112236}} +2026-10-07T10:01:42.3079676Z : expected 'succeeded' to be 'failed' // Object.is equality +2026-10-07T10:01:42.3079954Z +2026-10-07T10:01:42.3080122Z Expected: "failed" +2026-10-07T10:01:42.3080455Z Received: "succeeded" +2026-10-07T10:01:42.3080629Z +2026-10-07T10:01:42.3081080Z  ❯ tests/clients/installer/installer-lifecycle.integration.test.ts:418:49 +2026-10-07T10:01:42.3087279Z 416| attempt?: { outcome?: string; reason?: string }; +2026-10-07T10:01:42.3087792Z 417| }; +2026-10-07T10:01:42.3088731Z 418| expect(kept.attempt?.outcome, result.stdout).toBe("failed"); +2026-10-07T10:01:42.3089561Z  | ^ +2026-10-07T10:01:42.3089908Z 419| }, +2026-10-07T10:01:42.3090199Z 420| REAL_PROCESS_TIMEOUT_MS, +2026-10-07T10:01:42.3090397Z +2026-10-07T10:01:42.3090619Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[43/61]⎯ +2026-10-07T10:01:42.3090825Z +2026-10-07T10:01:42.3091894Z  FAIL   default  tests/clients/installer/installer-lifecycle.integration.test.ts > installer process lifecycle (#945) > deletes an inconclusive install whose tree is NOT intact (R2-F2) +2026-10-07T10:01:42.3097392Z AssertionError: {"value":"C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-installer-945-trUTQI\\home\\tools\\node_modules\\.bin\\svelteserver.cmd","log":"","attempt":{"outcome":"succeeded","at":1791367116646}} +2026-10-07T10:01:42.3098655Z : expected true to be false // Object.is equality +2026-10-07T10:01:42.3098897Z +2026-10-07T10:01:42.3099016Z - Expected +2026-10-07T10:01:42.3099255Z + Received +2026-10-07T10:01:42.3099372Z +2026-10-07T10:01:42.3099482Z - false +2026-10-07T10:01:42.3099687Z + true +2026-10-07T10:01:42.3099796Z +2026-10-07T10:01:42.3100275Z  ❯ tests/clients/installer/installer-lifecycle.integration.test.ts:452:6 +2026-10-07T10:01:42.3100995Z 450| fs.existsSync(path.join(nodeModules, "svelte-language-server")), +2026-10-07T10:01:42.3101452Z 451| result.stdout, +2026-10-07T10:01:42.3109667Z 452| ).toBe(false); +2026-10-07T10:01:42.3110287Z  | ^ +2026-10-07T10:01:42.3110736Z 453| const payload = JSON.parse(result.stdout) as { +2026-10-07T10:01:42.3111209Z 454| attempt?: { outcome?: string }; +2026-10-07T10:01:42.3111529Z +2026-10-07T10:01:42.3111867Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[44/61]⎯ +2026-10-07T10:01:42.3112082Z +2026-10-07T10:01:42.3112866Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > treats delayed shell-backed startup failure as launch failure +2026-10-07T10:01:42.3114189Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > resolves bare commands through where before spawning +2026-10-07T10:01:42.3115513Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > isCmdShimValid > returns true when the shim target exists +2026-10-07T10:01:42.3117099Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > isCmdShimValid > returns false when the shim target is missing +2026-10-07T10:01:42.3118663Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > isCmdShimValid > returns true for non-npm shims +2026-10-07T10:01:42.3120002Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > isCmdShimValid > returns true when the file cannot be read +2026-10-07T10:01:42.3121469Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > isCmdShimValid > handles .mjs targets +2026-10-07T10:01:42.3122784Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > rejects immediately for an invalid .cmd shim without spawning +2026-10-07T10:01:42.3124037Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > bypasses .ps1 to .cmd sibling on Windows +2026-10-07T10:01:42.3125298Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > bypasses .ps1 to direct node execution when .cmd sibling is missing +2026-10-07T10:01:42.3126114Z Error: Hook timed out in 10000ms. +2026-10-07T10:01:42.3126836Z If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". +2026-10-07T10:01:42.3127695Z  ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 +2026-10-07T10:01:42.3128157Z 174| */ +2026-10-07T10:01:42.3128586Z 175| export function useTrackedTempDirs(...prefixes: string[]): void { +2026-10-07T10:01:42.3129051Z 176| afterEach(async () => { +2026-10-07T10:01:42.3129474Z  | ^ +2026-10-07T10:01:42.3129951Z 177| for (const prefix of prefixes) await cleanupTestEnvironmentsDrained(… +2026-10-07T10:01:42.3130388Z 178| }); +2026-10-07T10:01:42.3130780Z  ❯ tests/clients/lsp/launch.test.ts:47:2 +2026-10-07T10:01:42.3131034Z +2026-10-07T10:01:42.3131238Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[45/61]⎯ +2026-10-07T10:01:42.3131432Z +2026-10-07T10:01:42.3132674Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > resolves bare commands through where before spawning +2026-10-07T10:01:42.3134286Z Error: Test timed out in 5000ms. +2026-10-07T10:01:42.3135635Z If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". +2026-10-07T10:01:42.3137005Z  ❯ tests/clients/lsp/launch.test.ts:177:40 +2026-10-07T10:01:42.3137759Z 175| +2026-10-07T10:01:42.3138228Z 176| // lane: windows-vitest +2026-10-07T10:01:42.3138907Z 177| it.runIf(process.platform === "win32")( +2026-10-07T10:01:42.3139665Z  | ^ +2026-10-07T10:01:42.3140513Z 178| "resolves bare commands through where before spawning", +2026-10-07T10:01:42.3141229Z 179| async () => { +2026-10-07T10:01:42.3141515Z +2026-10-07T10:01:42.3141891Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[46/61]⎯ +2026-10-07T10:01:42.3142230Z +2026-10-07T10:01:42.3143430Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > bypasses .ps1 to .cmd sibling on Windows +2026-10-07T10:01:42.3145755Z Error: LSP server C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-ps1-4E6CKh\test.ps1 exited immediately with code 1. The binary may be missing or corrupted. +2026-10-07T10:01:42.3147566Z  ❯ MockChildProcess. clients/lsp/launch.js:616:28 +2026-10-07T10:01:42.3204231Z 614| ? `npm .cmd shim failed (underlying binary not… +2026-10-07T10:01:42.3205218Z 615| : `The binary may be missing or corrupted.`; +2026-10-07T10:01:42.3206154Z 616| reject(new Error(`LSP server ${command} exited imm… +2026-10-07T10:01:42.3206955Z  | ^ +2026-10-07T10:01:42.3207602Z 617| } +2026-10-07T10:01:42.3208107Z 618| }); +2026-10-07T10:01:42.3209099Z  ❯ tests/clients/lsp/launch.test.ts:150:13 +2026-10-07T10:01:42.3209582Z +2026-10-07T10:01:42.3209967Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[47/61]⎯ +2026-10-07T10:01:42.3210310Z +2026-10-07T10:01:42.3211731Z  FAIL   default  tests/clients/lsp/launch.test.ts > lsp launch > bypasses .ps1 to direct node execution when .cmd sibling is missing +2026-10-07T10:01:42.3213810Z AssertionError: expected undefined to be 'C:\hostedtoolcache\windows\node\22.23…' // Object.is equality +2026-10-07T10:01:42.3214622Z +2026-10-07T10:01:42.3214832Z - Expected: +2026-10-07T10:01:42.3215380Z "C:\\hostedtoolcache\\windows\\node\\22.23.3\\x64\\node.exe" +2026-10-07T10:01:42.3216358Z +2026-10-07T10:01:42.3216642Z + Received: +2026-10-07T10:01:42.3216991Z undefined +2026-10-07T10:01:42.3217451Z +2026-10-07T10:01:42.3218002Z  ❯ tests/clients/lsp/launch.test.ts:353:27 +2026-10-07T10:01:42.3218870Z 351| const result = await launchPromise; +2026-10-07T10:01:42.3219419Z 352| +2026-10-07T10:01:42.3220032Z 353| expect(spawnedCommand).toBe(process.execPath); +2026-10-07T10:01:42.3220791Z  | ^ +2026-10-07T10:01:42.3221774Z 354| expect(spawnedArgs).toContain(jsTarget); +2026-10-07T10:01:42.3222546Z 355| expect(spawnedArgs).toContain("start"); +2026-10-07T10:01:42.3222948Z +2026-10-07T10:01:42.3223314Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[48/61]⎯ +2026-10-07T10:01:42.3223653Z +2026-10-07T10:01:42.3225363Z  FAIL   default  tests/clients/dispatch/runners/go-vet.test.ts > go-vet runner > vets the package containing the file from the module root (not the file in isolation) +2026-10-07T10:01:42.3227599Z AssertionError: expected { timeout: 30000, cwd: 'D:\m' } to match object { cwd: '/m', timeout: 30000 } +2026-10-07T10:01:42.3228355Z +2026-10-07T10:01:42.3228559Z - Expected +2026-10-07T10:01:42.3228964Z + Received +2026-10-07T10:01:42.3229168Z +2026-10-07T10:01:42.3229324Z  { +2026-10-07T10:01:42.3229701Z - "cwd": "/m", +2026-10-07T10:01:42.3230149Z + "cwd": "D:\\m", +2026-10-07T10:01:42.3230632Z  "timeout": 30000, +2026-10-07T10:01:42.3231041Z  } +2026-10-07T10:01:42.3231209Z +2026-10-07T10:01:42.3231809Z  ❯ tests/clients/dispatch/runners/go-vet.test.ts:89:16 +2026-10-07T10:01:42.3244507Z  87| expect(exe).toBe("/usr/local/bin/go"); +2026-10-07T10:01:42.3245870Z  88| expect(args).toEqual(["vet", "./sub"]); +2026-10-07T10:01:42.3247266Z  89| expect(opts).toMatchObject({ cwd: "/m", timeout: 30000 }); +2026-10-07T10:01:42.3248258Z  | ^ +2026-10-07T10:01:42.3248901Z  90| }); +2026-10-07T10:01:42.3249507Z  91| +2026-10-07T10:01:42.3250000Z +2026-10-07T10:01:42.3250591Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[49/61]⎯ +2026-10-07T10:01:42.3251165Z +2026-10-07T10:01:42.3252942Z  FAIL   default  tests/clients/dispatch/runners/go-vet.test.ts > go-vet runner > keeps diagnostics for the edited file but drops sibling-file lines +2026-10-07T10:01:42.3255253Z AssertionError: expected 'D:\m\sub\b.go' to be '/m/sub/b.go' // Object.is equality +2026-10-07T10:01:42.3256581Z +2026-10-07T10:01:42.3257252Z Expected: "/m/sub/b.go" +2026-10-07T10:01:42.3258236Z Received: "D:\m\sub\b.go" +2026-10-07T10:01:42.3258747Z +2026-10-07T10:01:42.3259495Z  ❯ tests/clients/dispatch/runners/go-vet.test.ts:111:39 +2026-10-07T10:01:42.3260749Z 109| expect(res.diagnostics).toHaveLength(1); +2026-10-07T10:01:42.3261961Z 110| expect(res.diagnostics[0].line).toBe(4); +2026-10-07T10:01:42.3263039Z 111| expect(res.diagnostics[0].filePath).toBe("/m/sub/b.go"); +2026-10-07T10:01:42.3263904Z  | ^ +2026-10-07T10:01:42.3264492Z 112| }); +2026-10-07T10:01:42.3264897Z 113| +2026-10-07T10:01:42.3265101Z +2026-10-07T10:01:42.3265464Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[50/61]⎯ +2026-10-07T10:01:42.3265808Z +2026-10-07T10:01:42.3267323Z  FAIL   default  tests/clients/dispatch/runners/go-vet.test.ts > go-vet runner > attributes a './'-prefixed module-root path to the edited file +2026-10-07T10:01:42.3269247Z AssertionError: expected 'D:\m\main.go' to be '/m/main.go' // Object.is equality +2026-10-07T10:01:42.3269900Z +2026-10-07T10:01:42.3270210Z Expected: "/m/main.go" +2026-10-07T10:01:42.3270829Z Received: "D:\m\main.go" +2026-10-07T10:01:42.3271153Z +2026-10-07T10:01:42.3271754Z  ❯ tests/clients/dispatch/runners/go-vet.test.ts:147:39 +2026-10-07T10:01:42.3272639Z 145| expect(res.status).toBe("failed"); +2026-10-07T10:01:42.3273367Z 146| expect(res.diagnostics).toHaveLength(1); +2026-10-07T10:01:42.3274492Z 147| expect(res.diagnostics[0].filePath).toBe("/m/main.go"); +2026-10-07T10:01:42.3275341Z  | ^ +2026-10-07T10:01:42.3275892Z 148| }); +2026-10-07T10:01:42.3276262Z 149| +2026-10-07T10:01:42.3276839Z +2026-10-07T10:01:42.3277229Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[51/61]⎯ +2026-10-07T10:01:42.3277563Z +2026-10-07T10:01:42.3279766Z  FAIL   default  tests/clients/dispatch/runners/reported-path-attribution.test.ts > gleam-check reported-path attribution (#3285) > attributes a codespan-guttered gleam locus line to the dispatched file (#3285) +2026-10-07T10:01:42.3282851Z AssertionError: expected 'C:\Users\runneradmin\AppData\Local\Te…' to be 'C:/Users/runneradmin/AppData/Local/Te…' // Object.is equality +2026-10-07T10:01:42.3283848Z +2026-10-07T10:01:42.3285501Z Expected: "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-3278-gleam-check-FYduuJ/workspace/pkg/src/app.gleam" +2026-10-07T10:01:42.3288386Z Received: "C:\Users\runneradmin\AppData\Local\Temp\pi-lens-3278-gleam-check-FYduuJ\workspace\pkg\src\app.gleam" +2026-10-07T10:01:42.3289657Z +2026-10-07T10:01:42.3290486Z  ❯ tests/clients/dispatch/runners/reported-path-attribution.test.ts:1047:29 +2026-10-07T10:01:42.3368443Z 1045| // from the absolute cwd to `gleam.toml` and joins `src` +2026-10-07T10:01:42.3369490Z 1046| // (`compiler-cli/src/fs.rs:32-62`, `compiler-core/src/paths.rs:42-4… +2026-10-07T10:01:42.3370692Z 1047| expect(observed.reported).toBe(observed.dispatchedPath); +2026-10-07T10:01:42.3371558Z  | ^ +2026-10-07T10:01:42.3372356Z 1048| expectGleamAttached(observed, gleamCheck); +2026-10-07T10:01:42.3373027Z 1049| }); +2026-10-07T10:01:42.3373266Z +2026-10-07T10:01:42.3374022Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[52/61]⎯ +2026-10-07T10:01:42.3374395Z +2026-10-07T10:01:42.3374975Z ⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯ +2026-10-07T10:01:42.3375611Z  +2026-10-07T10:01:42.3376090Z Vitest caught 1 unhandled error during the test run. +2026-10-07T10:01:42.3377492Z This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. +2026-10-07T10:01:42.3378532Z +2026-10-07T10:01:42.3379065Z ⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯ +2026-10-07T10:01:42.3380912Z Error: LSP server C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-ps1-4E6CKh\test.ps1 exited immediately with code 1. The binary may be missing or corrupted. +2026-10-07T10:01:42.3382695Z  ❯ MockChildProcess. clients/lsp/launch.js:616:28 +2026-10-07T10:01:42.3384012Z 614| ? `npm .cmd shim failed (underlying binary not… +2026-10-07T10:01:42.3385000Z 615| : `The binary may be missing or corrupted.`; +2026-10-07T10:01:42.3386004Z 616| reject(new Error(`LSP server ${command} exited imm… +2026-10-07T10:01:42.3386906Z  | ^ +2026-10-07T10:01:42.3387546Z 617| } +2026-10-07T10:01:42.3388106Z 618| }); +2026-10-07T10:01:42.3388982Z  ❯ MockChildProcess.emit node:events:519:28 +2026-10-07T10:01:42.3390070Z  ❯ tests/clients/lsp/launch.test.ts:150:13 +2026-10-07T10:01:42.3391271Z  ❯ callTimer node_modules/vitest/dist/chunks/index.C4tKZ0yW.js:5150:25 +2026-10-07T10:01:42.3393113Z  ❯ runTimersInRange node_modules/vitest/dist/chunks/index.C4tKZ0yW.js:5848:26 +2026-10-07T10:01:42.3394212Z  ❯ doTickInner node_modules/vitest/dist/chunks/index.C4tKZ0yW.js:5943:22 +2026-10-07T10:01:42.3395014Z  ❯ doTick node_modules/vitest/dist/chunks/index.C4tKZ0yW.js:5959:21 +2026-10-07T10:01:42.3395733Z  ❯ node_modules/vitest/dist/chunks/index.C4tKZ0yW.js:6049:22 +2026-10-07T10:01:42.3396520Z  ❯ Immediate. node_modules/vitest/dist/chunks/index.C4tKZ0yW.js:5997:30 +2026-10-07T10:01:42.3397602Z  ❯ processImmediate node:internal/timers:484:21 +2026-10-07T10:01:42.3397901Z +2026-10-07T10:01:42.3398674Z This error originated in "tests/clients/lsp/launch.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. +2026-10-07T10:01:42.3399811Z The last test to run before this error was "bypasses .ps1 to .cmd sibling on Windows". This means either: +2026-10-07T10:01:42.3400447Z - the error was thrown while Vitest was running this test, or +2026-10-07T10:01:42.3401132Z - the error was thrown after the test completed, and this was the most recent test at that point. +2026-10-07T10:01:42.3401702Z ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ +2026-10-07T10:01:42.3401890Z +2026-10-07T10:01:42.3401910Z +2026-10-07T10:01:42.3414930Z  Test Files  14 failed | 99 passed (113) +2026-10-07T10:01:42.3427067Z  Tests  57 failed | 1702 passed | 19 skipped (1778) +2026-10-07T10:01:42.3428200Z  Errors  1 error +2026-10-07T10:01:42.3428795Z  Start at  09:56:56 +2026-10-07T10:01:42.3436706Z  Duration  285.20s (tests 84%, import 12%, transform 2%, setup 1%) +2026-10-07T10:01:42.3462574Z +2026-10-07T10:01:42.3502851Z +2026-10-07T10:01:42.3536227Z ##[error]Error: LSP server C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-ps1-4E6CKh\test.ps1 exited immediately with code 1. The binary may be missing or corrupted. + ❯ MockChildProcess. clients/lsp/launch.js:616:28 + ❯ tests/clients/lsp/launch.test.ts:150:13 + +This error originated in "tests/clients/lsp/launch.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. +The last test to run before this error was "bypasses .ps1 to .cmd sibling on Windows". This means either: +- the error was thrown while Vitest was running this test, or +- the error was thrown after the test completed, and this was the most recent test at that point. + +2026-10-07T10:01:42.3547366Z +2026-10-07T10:01:42.3549225Z ##[error]AssertionError: expected 'orphaned' to be 'live' // Object.is equality + +Expected: "live" +Received: "orphaned" + + ❯ tests/config/tmp-fixture-hygiene.test.ts:1402:6 + + +2026-10-07T10:01:42.3550640Z +2026-10-07T10:01:42.3552843Z ##[error]AssertionError: expected null to be +0 // Object.is equality + +- Expected: +0 + ++ Received: +null + + ❯ tests/config/oxlint-advisory-rule-floor-gate.test.ts:108:62 + + +2026-10-07T10:01:42.3553911Z +2026-10-07T10:01:42.3555325Z ##[error]AssertionError: expected [ { …(5) } ] to have a length of +0 but got 1 + +- Expected ++ Received + +- 0 ++ 1 + + ❯ tests/scripts/prune-agent-worktrees.test.ts:178:25 + + +2026-10-07T10:01:42.3555717Z +2026-10-07T10:01:42.3557793Z ##[error]AssertionError: expected undefined to match object { reason: 'live-cwd' } + +- Expected: +{ + "reason": "live-cwd", +} + ++ Received: +undefined + + ❯ tests/scripts/prune-agent-worktrees.test.ts:193:31 + + +2026-10-07T10:01:42.3558247Z +2026-10-07T10:01:42.3559643Z ##[error]AssertionError: expected [ { …(5) } ] to have a length of +0 but got 1 + +- Expected ++ Received + +- 0 ++ 1 + + ❯ tests/scripts/prune-agent-worktrees.test.ts:241:26 + + +2026-10-07T10:01:42.3560348Z +2026-10-07T10:01:42.3562035Z ##[error]AssertionError: expected [] to have a length of 1 but got +0 + +- Expected ++ Received + +- 1 ++ 0 + + ❯ tests/scripts/prune-agent-worktrees.test.ts:283:26 + + +2026-10-07T10:01:42.3562478Z +2026-10-07T10:01:42.3564251Z ##[error]AssertionError: expected true to be false // Object.is equality + +- Expected ++ Received + +- false ++ true + + ❯ tests/scripts/prune-agent-worktrees.test.ts:1861:37 + + +2026-10-07T10:01:42.3564880Z +2026-10-07T10:01:42.3574810Z ##[error]Error: ENAMETOOLONG: name too long, chdir 'D:\a\pi-lens\pi-lens' -> 'C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-probe-reason-9aHXFW\cwd-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' + ❯ tests/config/global-dir-probe-redirect.test.ts:627:12 + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ +Serialized Error: { errno: -4064, code: 'ENAMETOOLONG', syscall: 'chdir', path: 'D:\a\pi-lens\pi-lens', dest: 'C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-probe-reason-9aHXFW\cwd-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' } + +2026-10-07T10:01:42.3575470Z +2026-10-07T10:01:42.3578693Z ##[error]Error: EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-result-contract-Jm2c4R' + ❯ tests/config/result-contract-governance.test.ts:87:6 + +⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ +Serialized Error: { errno: -4082, code: 'EBUSY', syscall: 'rmdir', path: 'C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-result-contract-Jm2c4R' } + +2026-10-07T10:01:42.3579234Z +2026-10-07T10:01:42.3587416Z ##[error]AssertionError: lens_diagnostics: complete rendered text: expected 'Files checked: 1\nTotal diagnostics: …' to be 'Files checked: 1\nTotal diagnostics: …' // Object.is equality + +- Expected ++ Received + +@@ -3,9 +3,9 @@ + Concurrency: 8 + Outcomes: clean=0, findings=0, unsupported=0, unavailable=0, failed=0, too_large=0, inconclusive=1 + + Checks not confirmed: 1 (inconclusive/unavailable/unsupported/failed or not started). + +- 0 files confirmed clean, 1 unconfirmed: 1 timed out (check didn't complete within the wait budget). NOT the same as 0 diagnostics. ++ 0 files confirmed clean, 1 unconfirmed: from a server that cannot confirm clean (push-only, silent-on-clean; e.g. classic typescript-language-server does not publish on a clean re-check). NOT the same as 0 diagnostics. + + result ok +- usage tokens=93 elapsed-ms=0 bytes=370 truncated=false ++ usage tokens=115 elapsed-ms=0 bytes=458 truncated=false + + ❯ tests/config/result-contract-governance.test.ts:173:7 + + +2026-10-07T10:01:42.3587994Z +2026-10-07T10:01:42.3591224Z ##[error]AssertionError: expected 'C:/Users/runneradmin/AppData/Local/Te…' to be 'C:/Users/RUNNER~1/AppData/Local/Temp/…' // Object.is equality + +Expected: "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-case-AIGIyF/NOPE/b.ts" +Received: "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-case-AIGIyF/nope/b.ts" + + ❯ tests/clients/path-utils.test.ts:287:36 + + +2026-10-07T10:01:42.3591777Z +2026-10-07T10:01:42.3594769Z ##[error]AssertionError: expected 'SUBDIR/a.ts' to be 'subDir/a.ts' // Object.is equality + +Expected: "subDir/a.ts" +Received: "SUBDIR/a.ts" + + ❯ tests/clients/path-utils.test.ts:304:50 + ❯ Module.withPlatform tests/support/platform-stub.ts:19:10 + ❯ tests/clients/path-utils.test.ts:303:4 + + +2026-10-07T10:01:42.3595526Z +2026-10-07T10:01:42.3597921Z ##[error]AssertionError: expected [ …(3) ] to deeply equal [] + +- Expected ++ Received + +- [] ++ [ ++ "* x\\y folded=true minimatch=false", ++ "x\\y x\\y folded=false minimatch=true", ++ "**/*/** x\\y folded=false minimatch=true", ++ ] + + ❯ tests/clients/path-utils.test.ts:2351:22 + + +2026-10-07T10:01:42.3598432Z +2026-10-07T10:01:42.3600383Z ##[error]Error: Test timed out in 5000ms. +If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". + ❯ tests/clients/pipeline.test.ts:763:3 + + +2026-10-07T10:01:42.3601167Z +2026-10-07T10:01:42.3607676Z ##[error]AssertionError: expected "vi.fn()" to be called with arguments: [ 'pilens:files:touched', …(1) ] + +Received: + + 1st vi.fn() call: + +@@ -1,11 +1,18 @@ + [ + "pilens:files:touched", +- ObjectContaining { +- "cwd": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-JleaHT", ++ { ++ "cwd": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-JleaHT", ++ "fixes": [ ++ { ++ "kind": "format", ++ "path": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-JleaHT/unformatted.ts", ++ "tool": "biome", ++ }, ++ ], + "paths": [ +- "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-JleaHT/unformatted.ts", ++ "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-JleaHT/unformatted.ts", + ], + "reason": "format", + "source": "pi-lens", + "v": 1, + }, + + +Number of calls: 1 + + ❯ tests/clients/pipeline.test.ts:955:17 + + +2026-10-07T10:01:42.3608583Z +2026-10-07T10:01:42.3612459Z ##[error]AssertionError: expected { v: 1, source: 'pi-lens', …(4) } to match object { v: 1, source: 'pi-lens', …(2) } +(2 matching properties omitted from actual) + +- Expected ++ Received + + { + "paths": [ +- "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-rnEaxd/messy.ts", ++ "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-rnEaxd/messy.ts", + ], + "reason": "autofix", + "source": "pi-lens", + "v": 1, + } + + ❯ tests/clients/pipeline.test.ts:1002:34 + + +2026-10-07T10:01:42.3613288Z +2026-10-07T10:01:42.3618833Z ##[error]AssertionError: expected { v: 1, source: 'pi-lens', …(4) } to match object { fixes: [ { …(3) } ] } +(5 matching properties omitted from actual) + +- Expected ++ Received + + { + "fixes": [ + { + "kind": "format", +- "path": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-DDmmw5/unformatted2.ts", ++ "path": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-DDmmw5/unformatted2.ts", + "tool": "biome", + }, + ], + } + + ❯ tests/clients/pipeline.test.ts:1086:22 + + +2026-10-07T10:01:42.3619734Z +2026-10-07T10:01:42.3628589Z ##[error]AssertionError: expected "vi.fn()" to be called with arguments: [ 'pilens:diagnostics', …(1) ] + +Received: + + 1st vi.fn() call: + + [ + "pilens:diagnostics", +- ObjectContaining { ++ { ++ "cwd": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-fJ8Nmr", + "files": [ +- ObjectContaining { ++ { + "diagnostics": [ +- ObjectContaining { ++ { ++ "col": 1, + "fixable": true, ++ "line": 1, ++ "message": "unused var", + "ruleId": "no-unused-vars", + "severity": "warning", + "tool": "eslint", + }, + ], +- "path": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-fJ8Nmr/diag.ts", ++ "path": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-fJ8Nmr/diag.ts", + }, + ], ++ "seq": 1, + "source": "pi-lens", ++ "ts": 1791367036698, + "v": 1, + }, + ] + + +Number of calls: 1 + + ❯ tests/clients/pipeline.test.ts:1138:17 + + +2026-10-07T10:01:42.3629382Z +2026-10-07T10:01:42.3633569Z ##[error]AssertionError: expected { v: 1, source: 'pi-lens', …(4) } to match object { files: [ ObjectContaining{…} ] } +(7 matching properties omitted from actual) + +- Expected ++ Received + + { + "files": [ + { + "diagnostics": [], +- "path": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-test-7WezlN/flip.ts", ++ "path": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-test-7WezlN/flip.ts", + }, + ], + } + + ❯ tests/clients/pipeline.test.ts:1243:34 + + +2026-10-07T10:01:42.3634077Z +2026-10-07T10:01:42.3636045Z ##[error]AssertionError: expected 'block' to be 'allow' // Object.is equality + +Expected: "allow" +Received: "block" + + ❯ tests/clients/read-guard-path-normalization.test.ts:61:26 + + +2026-10-07T10:01:42.3636535Z +2026-10-07T10:01:42.3638412Z ##[error]AssertionError: expected 'block' to be 'allow' // Object.is equality + +Expected: "allow" +Received: "block" + + ❯ tests/clients/read-guard-path-normalization.test.ts:70:26 + + +2026-10-07T10:01:42.3639251Z +2026-10-07T10:01:42.3640769Z ##[error]AssertionError: expected [] to have a length of 1 but got +0 + +- Expected ++ Received + +- 1 ++ 0 + + ❯ tests/clients/read-guard-path-normalization.test.ts:77:48 + + +2026-10-07T10:01:42.3641247Z +2026-10-07T10:01:42.3643056Z ##[error]AssertionError: expected 'block' to be 'allow' // Object.is equality + +Expected: "allow" +Received: "block" + + ❯ tests/clients/read-guard-path-normalization.test.ts:84:50 + + +2026-10-07T10:01:42.3643530Z +2026-10-07T10:01:42.3645167Z ##[error]AssertionError: expected [] to include 'C:/Users/runneradmin/AppData/Local/Te…' + ❯ tests/clients/review-graph.service.test.ts:83:40 + + +2026-10-07T10:01:42.3645628Z +2026-10-07T10:01:42.3647246Z ##[error]AssertionError: expected [ 'exported symbol changed' ] to include 'cycle-adjacent file' + ❯ tests/clients/review-graph.service.test.ts:718:29 + + +2026-10-07T10:01:42.3647727Z +2026-10-07T10:01:42.3649004Z ##[error]AssertionError: expected [] to include 'C:/Users/runneradmin/AppData/Local/Te…' + ❯ tests/clients/review-graph.service.test.ts:772:36 + + +2026-10-07T10:01:42.3649517Z +2026-10-07T10:01:42.3651732Z ##[error]AssertionError: expected [] to include 'C:/Users/runneradmin/AppData/Local/Te…' + ❯ tests/clients/review-graph.service.test.ts:1039:35 + + +2026-10-07T10:01:42.3652217Z +2026-10-07T10:01:42.3654067Z ##[error]AssertionError: expected false to be true // Object.is equality + +- Expected ++ Received + +- true ++ false + + ❯ tests/clients/review-graph.service.test.ts:1115:28 + + +2026-10-07T10:01:42.3654542Z +2026-10-07T10:01:42.3656289Z ##[error]AssertionError: expected false to be true // Object.is equality + +- Expected ++ Received + +- true ++ false + + ❯ tests/clients/review-graph.service.test.ts:1186:38 + + +2026-10-07T10:01:42.3656795Z +2026-10-07T10:01:42.3658215Z ##[error]AssertionError: expected false to be true // Object.is equality + +- Expected ++ Received + +- true ++ false + + ❯ tests/clients/review-graph.service.test.ts:1223:35 + + +2026-10-07T10:01:42.3658939Z +2026-10-07T10:01:42.3660399Z ##[error]AssertionError: expected false to be true // Object.is equality + +- Expected ++ Received + +- true ++ false + + ❯ tests/clients/review-graph.service.test.ts:1269:6 + + +2026-10-07T10:01:42.3660827Z +2026-10-07T10:01:42.3662498Z ##[error]AssertionError: expected false to be true // Object.is equality + +- Expected ++ Received + +- true ++ false + + ❯ tests/clients/review-graph.service.test.ts:1307:6 + + +2026-10-07T10:01:42.3662977Z +2026-10-07T10:01:42.3669097Z ##[error]AssertionError: expected "recordRead" to be called with arguments: [ ObjectContaining{…} ] + +Received: + + 1st recordRead call: + + [ +- ObjectContaining { +- "effectiveLimit": 2000, +- "effectiveOffset": 1001, ++ { ++ "effectiveLimit": 3001, ++ "effectiveOffset": 1, ++ "expandedByLsp": false, + "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-2802-bash-cap-PXwkjo\\large.ts", ++ "requestedLimit": 3001, ++ "requestedOffset": 1, ++ "timestamp": 1791367028161, ++ "turnIndex": 0, ++ "writeIndex": 0, + }, + ] + + +Number of calls: 1 + + ❯ tests/clients/runtime-tool-result.test.ts:501:23 + + +2026-10-07T10:01:42.3670027Z +2026-10-07T10:01:42.3671877Z ##[error]AssertionError: expected false to be true // Object.is equality + +- Expected ++ Received + +- true ++ false + + ❯ tests/clients/runtime-tool-result.test.ts:615:6 + + +2026-10-07T10:01:42.3672363Z +2026-10-07T10:01:42.3673718Z ##[error]AssertionError: expected 0 to be greater than 0 + ❯ tests/clients/runtime-tool-result.test.ts:1542:25 + + +2026-10-07T10:01:42.3674184Z +2026-10-07T10:01:42.3697236Z ##[error]AssertionError: expected "vi.fn()" to be called with arguments: [ ObjectContaining{…}, Anything ] + +Received: + + 1st vi.fn() call: + + [ +- ObjectContaining { +- "cwd": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-monorepo-dispatch-ChzrHD\\workspace\\platform\\svc\\go\\daemon", ++ { ++ "allowAutonomousWriters": true, ++ "autofixMode": "deferred", ++ "cwd": "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pi-lens-monorepo-dispatch-ChzrHD\\workspace", ++ "dbg": [Function dbg], + "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-monorepo-dispatch-ChzrHD\\workspace\\platform\\svc\\go\\daemon\\main.go", ++ "getFlag": [Function getFlag], ++ "getFlagSource": undefined, ++ "modifiedRanges": [ ++ { ++ "end": 1, ++ "start": 1, ++ }, ++ ], ++ "nextWriteIndex": [Function nextWriteIndex], ++ "onFixRunLoss": [Function onFixRunLoss], ++ "onWordIndexUpdated": [Function onWordIndexUpdated], ++ "projectRoot": "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pi-lens-monorepo-dispatch-ChzrHD\\workspace", ++ "seqState": { ++ "getFilesChangedSince": [Function getFilesChangedSince], ++ "projectSeq": [Function projectSeq], ++ }, ++ "sessionGeneration": { ++ "branchEpoch": 0, ++ "generation": 31, ++ "guardedWrite": [Function guardedWrite], ++ "isCurrent": [Function isCurrent], ++ "scopeId": 31, ++ Symbol(pi-lens.session-scope.captured.v1): { ++ "branch": { ++ "generation": 0, ++ "guardedWrite": [Function guardedWrite], ++ "isCurrent": [Function isCurrent], ++ }, ++ "scope": Scope { ++ "branch": { ++ "bump": [Function bump], ++ "capture": [Function capture], ++ "current": [Function read], ++ "name": "session-branch", + }, +- Anything, ++ "cells": Map {}, ++ "coordinatorId": undefined, ++ "life": { ++ "bump": [Function bump], ++ "capture": [Function capture], ++ "current": [Function read], ++ "name": "runtime-session", ++ }, ++ "parentScopeId": undefined, ++ "retiredReason": undefined, ++ "role": "primary", ++ "scopeId": 31, ++ }, ++ }, ++ }, ++ "signal": undefined, ++ "telemetry": { ++ "model": "unknown", ++ "modelId": "", ++ "orderTurn": 6, ++ "provider": "", ++ "sessionId": "lens-muxxofjr", ++ "turnIndex": 1, ++ "writeIndex": 1, ++ }, ++ "toolName": "edit", ++ "turnEndCascadeSettleStart": [Function turnEndCascadeSettleStart], ++ "wordIndex": null, ++ }, ++ { ++ "biomeClient": {}, ++ "fixedThisTurn": { ++ "add": [Function add], ++ "clear": [Function clear], ++ "delete": [Function delete], ++ "has": [Function has], ++ }, ++ "getFormatService": [Function getFormatService], ++ "metricsClient": {}, ++ "ruffClient": {}, ++ }, + ] + + +Number of calls: 1 + + ❯ tests/clients/runtime-tool-result.test.ts:1621:35 + + +2026-10-07T10:01:42.3698208Z +2026-10-07T10:01:42.3702958Z ##[error]AssertionError: expected { verdict: 'block', …(4) } to deeply equal { verdict: 'block', …(4) } + +- Expected ++ Received + + { + "dispatched": 0, + "falseBlocks": [ + "superseded:tool-result", + ], +- "receipts": [ +- "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-3596-parked-phrEUN\\edit.ts", +- ], ++ "receipts": [], + "turnFiles": [], + "verdict": "block", + } + + ❯ tests/clients/runtime-tool-result.test.ts:2105:8 + ❯ acrossReplacement tests/clients/runtime-tool-result.test.ts:2051:4 + ❯ tests/clients/runtime-tool-result.test.ts:2085:3 + + +2026-10-07T10:01:42.3703491Z +2026-10-07T10:01:42.3707230Z ##[error]AssertionError: expected { queued: +0, …(3) } to deeply equal { queued: +0, …(3) } + +- Expected ++ Received + + { + "queued": 0, + "sideInTurnState": false, +- "sideReceipt": true, ++ "sideReceipt": false, + "summaryEmpty": true, + } + + ❯ tests/clients/runtime-tool-result.test.ts:2166:8 + ❯ acrossReplacement tests/clients/runtime-tool-result.test.ts:2051:4 + ❯ tests/clients/runtime-tool-result.test.ts:2120:3 + + +2026-10-07T10:01:42.3707727Z +2026-10-07T10:01:42.3709087Z ##[error]AssertionError: expected [] to have a length of 1 but got +0 + +- Expected ++ Received + +- 1 ++ 0 + + ❯ tests/clients/runtime-tool-result.test.ts:2359:20 + + +2026-10-07T10:01:42.3709701Z +2026-10-07T10:01:42.3715238Z ##[error]AssertionError: expected [] to deeply equal ArrayContaining{…} + +- Expected ++ Received + +- ArrayContaining [ +- ObjectContaining { +- "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-3226-opaque-ownership-A0WZYM\\extracted\\existing.js", +- "source": "opaque-script", +- }, +- ObjectContaining { +- "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-3226-opaque-ownership-A0WZYM\\extracted\\created.js", +- "source": "opaque-script", +- }, +- ObjectContaining { +- "filePath": "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-3226-opaque-ownership-A0WZYM\\direct.js", +- "source": "agent-write", +- }, +- ] ++ [] + + ❯ tests/clients/runtime-tool-result.test.ts:2712:44 + + +2026-10-07T10:01:42.3715721Z +2026-10-07T10:01:42.3720763Z ##[error]AssertionError: expected "vi.fn()" to be called with arguments: [ 'pilens:format:queued', …(1) ] + +Received: + + 1st vi.fn() call: + + [ + "pilens:format:queued", +- ObjectContaining { +- "filePath": "C:/Users/RUNNER~1/AppData/Local/Temp/pi-lens-runtime-tool-format-queued-8fa9Nc/src/app.ts", ++ { ++ "cwd": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-runtime-tool-format-queued-8fa9Nc", ++ "filePath": "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-runtime-tool-format-queued-8fa9Nc/src/app.ts", ++ "kinds": [ ++ "autofix", ++ "format", ++ ], + "source": "pi-lens", + "tool": "edit", + "v": 1, + }, + ] + + +Number of calls: 1 + + ❯ tests/clients/runtime-tool-result.test.ts:3104:17 + + +2026-10-07T10:01:42.3721205Z +2026-10-07T10:01:42.3731878Z ##[error]AssertionError: expected "vi.fn()" to be called with arguments: [ StringContaining{…} ] + +Received: + + 1st vi.fn() call: + + [ +- StringContaining "tool_result: skipping gitignored file C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-worktree-attribution-jROD2V\\.worktrees\\wt1\\src\\app.ts", ++ "tool_call fired for: C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-worktree-attribution-jROD2V\\.worktrees\\wt1\\src\\app.ts (exists: true)", + ] + + 2nd vi.fn() call: + + [ +- StringContaining "tool_result: skipping gitignored file C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-worktree-attribution-jROD2V\\.worktrees\\wt1\\src\\app.ts", ++ "path_attribution_missing: no recorded resolution basis for toolCallId=call-1642, refusing relative path src/app.ts (would have guessed C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pi-lens-worktree-attribution-jROD2V\\src\\app.ts)", + ] + + +Number of calls: 2 + + ❯ tests/clients/runtime-tool-result.test.ts:4193:16 + + +2026-10-07T10:01:42.3732794Z +2026-10-07T10:01:42.3738589Z ##[error]AssertionError: {"value":"C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-installer-945-MNsbb5\\home\\tools\\node_modules\\.bin\\svelteserver.cmd","log":"","attempt":{"outcome":"succeeded","at":1791367112236}} +: expected 'succeeded' to be 'failed' // Object.is equality + +Expected: "failed" +Received: "succeeded" + + ❯ tests/clients/installer/installer-lifecycle.integration.test.ts:418:49 + + +2026-10-07T10:01:42.3739426Z +2026-10-07T10:01:42.3744760Z ##[error]AssertionError: {"value":"C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\pi-lens-installer-945-trUTQI\\home\\tools\\node_modules\\.bin\\svelteserver.cmd","log":"","attempt":{"outcome":"succeeded","at":1791367116646}} +: expected true to be false // Object.is equality + +- Expected ++ Received + +- false ++ true + + ❯ tests/clients/installer/installer-lifecycle.integration.test.ts:452:6 + + +2026-10-07T10:01:42.3745549Z +2026-10-07T10:01:42.3749362Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T10:01:42.3750110Z +2026-10-07T10:01:42.3753293Z ##[error]Error: Test timed out in 5000ms. +If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". + ❯ tests/clients/lsp/launch.test.ts:177:40 + + +2026-10-07T10:01:42.3754326Z +2026-10-07T10:01:42.3758111Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T10:01:42.3758860Z +2026-10-07T10:01:42.3761730Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T10:01:42.3762207Z +2026-10-07T10:01:42.3764417Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T10:01:42.3765462Z +2026-10-07T10:01:42.3852489Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T10:01:42.3853357Z +2026-10-07T10:01:42.3856889Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T10:01:42.3857606Z +2026-10-07T10:01:42.3861018Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T10:01:42.3861705Z +2026-10-07T10:01:42.3865121Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T10:01:42.3865797Z +2026-10-07T10:01:42.3869514Z ##[error]Error: LSP server C:\Users\RUNNER~1\AppData\Local\Temp\pi-lens-ps1-4E6CKh\test.ps1 exited immediately with code 1. The binary may be missing or corrupted. + ❯ MockChildProcess. clients/lsp/launch.js:616:28 + ❯ tests/clients/lsp/launch.test.ts:150:13 + + +2026-10-07T10:01:42.3870237Z +2026-10-07T10:01:42.3874153Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T10:01:42.3874860Z +2026-10-07T10:01:42.3878077Z ##[error]AssertionError: expected undefined to be 'C:\hostedtoolcache\windows\node\22.23…' // Object.is equality + +- Expected: +"C:\\hostedtoolcache\\windows\\node\\22.23.3\\x64\\node.exe" + ++ Received: +undefined + + ❯ tests/clients/lsp/launch.test.ts:353:27 + + +2026-10-07T10:01:42.3878763Z +2026-10-07T10:01:42.3882220Z ##[error]Error: Hook timed out in 10000ms. +If this is a long-running hook, pass a timeout value as the last argument or configure it globally with "hookTimeout". + ❯ Module.useTrackedTempDirs tests/clients/test-utils.ts:176:2 + ❯ tests/clients/lsp/launch.test.ts:47:2 + + +2026-10-07T10:01:42.3882919Z +2026-10-07T10:01:42.3885937Z ##[error]AssertionError: expected { timeout: 30000, cwd: 'D:\m' } to match object { cwd: '/m', timeout: 30000 } + +- Expected ++ Received + + { +- "cwd": "/m", ++ "cwd": "D:\\m", + "timeout": 30000, + } + + ❯ tests/clients/dispatch/runners/go-vet.test.ts:89:16 + + +2026-10-07T10:01:42.3886635Z +2026-10-07T10:01:42.3889732Z ##[error]AssertionError: expected 'D:\m\sub\b.go' to be '/m/sub/b.go' // Object.is equality + +Expected: "/m/sub/b.go" +Received: "D:\m\sub\b.go" + + ❯ tests/clients/dispatch/runners/go-vet.test.ts:111:39 + + +2026-10-07T10:01:42.3890707Z +2026-10-07T10:01:42.3892373Z ##[error]AssertionError: expected 'D:\m\main.go' to be '/m/main.go' // Object.is equality + +Expected: "/m/main.go" +Received: "D:\m\main.go" + + ❯ tests/clients/dispatch/runners/go-vet.test.ts:147:39 + + +2026-10-07T10:01:42.3892807Z +2026-10-07T10:01:42.3896387Z ##[error]AssertionError: expected 'C:\Users\runneradmin\AppData\Local\Te…' to be 'C:/Users/runneradmin/AppData/Local/Te…' // Object.is equality + +Expected: "C:/Users/runneradmin/AppData/Local/Temp/pi-lens-3278-gleam-check-FYduuJ/workspace/pkg/src/app.gleam" +Received: "C:\Users\runneradmin\AppData\Local\Temp\pi-lens-3278-gleam-check-FYduuJ\workspace\pkg\src\app.gleam" + + ❯ tests/clients/dispatch/runners/reported-path-attribution.test.ts:1047:29 + + +2026-10-07T10:01:42.6069107Z ##[error]Process completed with exit code 1. +2026-10-07T10:01:42.6291246Z ##[group]Run outcome="failure" +2026-10-07T10:01:42.6291620Z outcome="failure" +2026-10-07T10:01:42.6291834Z { +2026-10-07T10:01:42.6292031Z  echo "## Windows Vitest subset" +2026-10-07T10:01:42.6292395Z  if [[ -f "$RUNNER_TEMP/windows-vitest-files.txt" ]]; then +2026-10-07T10:01:42.6293051Z  node scripts/lib/win32-gate-population.mjs --summary --executed-file-list "$RUNNER_TEMP/windows-vitest-files.txt" +2026-10-07T10:01:42.6293598Z  else +2026-10-07T10:01:42.6294194Z  echo "Not executed: no executed-file list was produced (the checkout or enumeration step did not complete), so the Windows subset summary is unavailable." +2026-10-07T10:01:42.6294837Z  fi +2026-10-07T10:01:42.6295491Z  echo "Windows Vitest subset step outcome: $outcome" +2026-10-07T10:01:42.6295834Z  echo "windows_vitest=$outcome" +2026-10-07T10:01:42.6296138Z } >> "$GITHUB_STEP_SUMMARY" +2026-10-07T10:01:42.6312135Z shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0} +2026-10-07T10:01:42.6312581Z env: +2026-10-07T10:01:42.6312775Z PI_LENS_HOME: D:\a\_temp/pi-lens-home +2026-10-07T10:01:42.6313031Z ##[endgroup] +2026-10-07T10:01:44.4801319Z Post job cleanup. +2026-10-07T10:01:44.6194761Z Cache hit occurred on the primary key node-cache-Windows-x64-npm-f00c2c617419afaa47a33b16ac2421efdb108493928f044326659171a395f910, not saving cache. +2026-10-07T10:01:44.6494026Z Post job cleanup. +2026-10-07T10:01:44.8836842Z [command]"C:\Program Files\Git\bin\git.exe" version +2026-10-07T10:01:44.9111420Z git version 2.55.0.windows.5 +2026-10-07T10:01:44.9174278Z Temporarily overriding HOME='D:\a\_temp\3cc46a83-a1bb-44f2-8080-36a0b4dfdd0f' before making global git config changes +2026-10-07T10:01:44.9175658Z Adding repository directory to the temporary git global config as a safe directory +2026-10-07T10:01:44.9185380Z [command]"C:\Program Files\Git\bin\git.exe" config --global --add safe.directory D:\a\pi-lens\pi-lens +2026-10-07T10:01:44.9491117Z Removing SSH command configuration +2026-10-07T10:01:44.9504700Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core\.sshCommand +2026-10-07T10:01:44.9822406Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\"" +2026-10-07T10:01:45.5313312Z Removing HTTP extra header +2026-10-07T10:01:45.5323712Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader +2026-10-07T10:01:45.5620966Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\"" +2026-10-07T10:01:46.0977964Z Removing includeIf entries pointing to credentials config files +2026-10-07T10:01:46.0994299Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp ^includeIf\.gitdir: +2026-10-07T10:01:46.1289352Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "git config --local --show-origin --name-only --get-regexp remote.origin.url" +2026-10-07T10:01:46.6601768Z Evaluate and set job outputs +2026-10-07T10:01:46.6607410Z Set output 'windows_vitest' +2026-10-07T10:01:46.6609232Z Cleaning up orphan processes diff --git a/tests/scripts/ci-test-diff.test.ts b/tests/scripts/ci-test-diff.test.ts new file mode 100644 index 000000000..c0bf734ea --- /dev/null +++ b/tests/scripts/ci-test-diff.test.ts @@ -0,0 +1,37 @@ +import fs from "node:fs"; +import path from "node:path"; +import { describe, expect, it } from "vitest"; +import { + compareFailureSets, + extractFailingTestIds, + stripLogDecorations, +} from "../../scripts/ci-test-diff.mjs"; + +const fixture = (name: string) => + fs.readFileSync(path.join("tests/fixtures/ci-test-diff", name), "utf8"); + +describe("ci-test-diff failure extraction", () => { + // Recurrence: #4072's Windows logs contain ANSI, CRLF, and Actions timestamps; + // the tool must compare test identities rather than the aggregate failure count. + it("reproduces the 7 fixed / 7 new / 51 unchanged witness", () => { + const master = extractFailingTestIds( + stripLogDecorations(fixture("job-112724408671.log")), + ); + const round2 = extractFailingTestIds( + stripLogDecorations(fixture("job-112734370876.log")), + ); + const diff = compareFailureSets(master, round2); + + expect(master).toHaveLength(58); + expect(round2).toHaveLength(58); + expect(diff.fixed).toHaveLength(7); + expect(diff.newFailures).toHaveLength(7); + expect(diff.unchanged).toHaveLength(51); + }); + + it("normalizes Actions timestamps and terminal decoration", () => { + const raw = + "2026-10-07T00:00:00.000Z \u001b[41m\u001b[1m FAIL \u001b[22m\u001b[49m default tests/a.test.ts\r\n"; + expect(stripLogDecorations(raw)).toBe("FAIL default tests/a.test.ts\n"); + }); +}); From 46c277eed37fc65c68338b10b10c96e1e8c579e5 Mon Sep 17 00:00:00 2001 From: Apostolos Mantzaris Date: Wed, 7 Oct 2026 15:30:33 +0300 Subject: [PATCH 4/9] fix: harden CI test diff (#4072) Validate Vitest summaries before comparing failure identities, preserve project names, and reuse the shared log classifier. Add asymmetric shape and exit-code coverage for the fixer CLI.\n\nRefs #4072 --- docs/pi-lens-fixer.md | 2 +- scripts/ci-test-diff.d.mts | 17 +++++ scripts/ci-test-diff.mjs | 89 ++++++++++++++++++------- scripts/lib/ci-failure-classifier.d.mts | 1 + scripts/lib/ci-failure-classifier.mjs | 21 ++++++ tests/scripts/ci-test-diff.test.ts | 69 +++++++++++++++++++ 6 files changed, 174 insertions(+), 25 deletions(-) diff --git a/docs/pi-lens-fixer.md b/docs/pi-lens-fixer.md index 7a589cf9c..1a788b53d 100644 --- a/docs/pi-lens-fixer.md +++ b/docs/pi-lens-fixer.md @@ -62,7 +62,7 @@ mechanics"; a brief supplies only `lane=`, scope, and the grant. - Witness rule (ADR 0007): #1605 owns the witness lanes, and their fixtures live under `tests/fixtures/witness//`. -- A PR claiming it "reduces failures" quotes the `ci-test-diff` summary. +- A PR claiming it "reduces failures" runs `node scripts/ci-test-diff.mjs `, quotes its summary, and explains any NEW failures before claiming a reduction. - Red-first has one stated exception: when the only red-first path needs broad harness setup, brittle mocks, or a test you would delete right after it proves the fix (shape 7: #1114, #1759), state the exception in `Tests`, name diff --git a/scripts/ci-test-diff.d.mts b/scripts/ci-test-diff.d.mts index a31019ba6..fbcdee237 100644 --- a/scripts/ci-test-diff.d.mts +++ b/scripts/ci-test-diff.d.mts @@ -1,5 +1,22 @@ export declare function stripLogDecorations(log: string): string; export declare function extractFailingTestIds(log: string): string[]; +export declare function summarizeLog( + log: string, + side?: string, +): { + testsFailed: number; + suitesFailed: number; + unhandledErrors: number; +}; +export declare function validateLog( + log: string, + side?: string, +): { + ids: string[]; + testsFailed: number; + suitesFailed: number; + unhandledErrors: number; +}; export declare function compareFailureSets( previous: string[], current: string[], diff --git a/scripts/ci-test-diff.mjs b/scripts/ci-test-diff.mjs index 4fd787d0c..69df8d953 100644 --- a/scripts/ci-test-diff.mjs +++ b/scripts/ci-test-diff.mjs @@ -1,37 +1,71 @@ #!/usr/bin/env node import { execFileSync } from "node:child_process"; import { pathToFileURL } from "node:url"; +import { + extractVitestFailureIds, + stripAnsi, + stripLineTimestamps, +} from "./lib/ci-failure-classifier.mjs"; const DEFAULT_REPOSITORY = "apmantza/pi-lens"; -// oxlint-disable-next-line no-control-regex -- ANSI is the input being removed. -const ANSI_ESCAPE = /\x1b\[[0-?]*[ -/]*[@-~]/g; -const ACTIONS_TIMESTAMP = /^\d{4}-\d\d-\d\dT[^ ]+Z\s*/; -const TEST_PATH = String.raw`(tests/[^\s]+?\.test\.[cm]?[jt]sx?)`; - export function stripLogDecorations(log) { - return log + const withoutFallbackPrefix = log.replace( + /^[^\t\r\n]+\t[^\t\r\n]+\t(?=\d{4}-\d\d-\d\dT)/gm, + "", + ); + return stripLineTimestamps(stripAnsi(withoutFallbackPrefix)) .replace(/^\uFEFF/, "") - .replace(ANSI_ESCAPE, "") - .replace(/\r\n?/g, "\n") - .split("\n") - .map((line) => line.replace(ACTIONS_TIMESTAMP, "")) - .join("\n"); + .replace(/^[ \t]+(?=FAIL\b)/gm, "") + .replace(/\r\n?/g, "\n"); } export function extractFailingTestIds(log) { - const lines = log.split("\n"); - const ids = new Set(); - const failurePattern = new RegExp( - String.raw`^\s*FAIL\s+\S+\s+${TEST_PATH}(?:\s+>\s+(.+?))?\s*$`, + return extractVitestFailureIds(log); +} + +export function summarizeLog(log, side = "job") { + const testsFailed = Number( + log.match(/\bTests\s+(\d+)\s+failed\b/i)?.[1] ?? NaN, ); - for (const line of lines) { - const match = line.match(failurePattern); - if (match) { - const details = match[2] ? ` › ${match[2].replace(/\s+/g, " ")}` : ""; - ids.add(`${match[1]}${details}`); - } + const failedTestsHeader = Number( + log.match(/\bFailed Tests\s+(\d+)\b/i)?.[1] ?? NaN, + ); + const suitesFailed = Number( + log.match(/\bFailed Suites\s+(\d+)\b/i)?.[1] ?? 0, + ); + const unhandledErrors = Number( + log.match(/\bErrors\s+(\d+)\s+error(?:s)?\b/i)?.[1] ?? 0, + ); + if (!Number.isInteger(testsFailed)) { + throw new Error(`${side} log incomplete (no Vitest Tests summary)`); } - return [...ids].sort(); + if ( + Number.isInteger(failedTestsHeader) && + failedTestsHeader !== testsFailed + ) { + throw new Error(`${side} log has mismatched Vitest failure summaries`); + } + return { testsFailed, suitesFailed, unhandledErrors }; +} + +export function validateLog(log, side = "job") { + const summary = summarizeLog(log, side); + const ids = extractFailingTestIds(log); + const expected = summary.testsFailed + summary.suitesFailed; + if ( + summary.unhandledErrors > summary.suitesFailed && + summary.unhandledErrors > 0 + ) { + throw new Error( + `${side} log reports ${summary.unhandledErrors} unhandled errors but only ${summary.suitesFailed} failed suites`, + ); + } + if (ids.length !== expected) { + throw new Error( + `${side} log has ${ids.length} failure IDs; Vitest summary reports ${expected}`, + ); + } + return { ids, ...summary }; } export function compareFailureSets(previous, current) { @@ -102,13 +136,20 @@ export function parseArgs(argv) { export function main(argv = process.argv.slice(2)) { const { jobA, jobB, repository } = parseArgs(argv); - const previous = extractFailingTestIds( + const previousReport = validateLog( stripLogDecorations(fetchJobLog(repository, jobA)), + `job ${jobA}`, ); - const current = extractFailingTestIds( + const currentReport = validateLog( stripLogDecorations(fetchJobLog(repository, jobB)), + `job ${jobB}`, ); + const previous = previousReport.ids; + const current = currentReport.ids; const diff = compareFailureSets(previous, current); + console.log( + `Input: ${jobA} tests=${previousReport.testsFailed} suites=${previousReport.suitesFailed} errors=${previousReport.unhandledErrors}; ${jobB} tests=${currentReport.testsFailed} suites=${currentReport.suitesFailed} errors=${currentReport.unhandledErrors}`, + ); printSet("FIXED", diff.fixed); printSet("NEW", diff.newFailures); printSet("UNCHANGED", diff.unchanged); diff --git a/scripts/lib/ci-failure-classifier.d.mts b/scripts/lib/ci-failure-classifier.d.mts index d10a64ee9..a0cbfee70 100644 --- a/scripts/lib/ci-failure-classifier.d.mts +++ b/scripts/lib/ci-failure-classifier.d.mts @@ -41,6 +41,7 @@ export declare const BARE_FAIL_LINE: RegExp; export declare const ASSERTION_LINE: RegExp; export declare function stripAnsi(text: string): string; export declare function stripLineTimestamps(text: string): string; +export declare function extractVitestFailureIds(log: string): string[]; export declare function classifyFailureLog(rawLog: string): Classification; export declare function readCgroupOomKillCount(log: string): number | null; export declare function describeKernelKillEvidence(log: string): string | null; diff --git a/scripts/lib/ci-failure-classifier.mjs b/scripts/lib/ci-failure-classifier.mjs index 0aeb7a663..18a6bc5b3 100644 --- a/scripts/lib/ci-failure-classifier.mjs +++ b/scripts/lib/ci-failure-classifier.mjs @@ -84,6 +84,27 @@ const MAX_LOG_BYTES = 2 * 1024 * 1024; // snapshot without rebuilding". The project label ("default") sits between // FAIL and the file path. const FAIL_LINE = /^\s*FAIL\s+\S+\s+(\S+\.test\.tsx?)\s*>\s*(.+)$/gm; + +const VITEST_TEST_FILE = /\S+\.(?:test|spec)\.[cm]?[jt]sx?/; + +/** Extract Vitest failure-banner identities from an already-normalized log. */ +export function extractVitestFailureIds(log) { + const ids = new Set(); + for (const rawLine of log.split("\n")) { + const line = rawLine.match(/^\s*FAIL\b\s+(.*)$/)?.[1]; + if (!line) continue; + const fileMatch = line.match(VITEST_TEST_FILE); + if (!fileMatch) continue; + const file = fileMatch[0]; + const prefix = line.slice(0, fileMatch.index).trim(); + const project = prefix ? prefix.split(/\s+/).at(-1) : ""; + const suffix = line.slice(fileMatch.index + file.length); + const testName = suffix.match(/^\s*>\s*(.+?)\s*$/)?.[1]; + const id = `${project ? `${project}::` : ""}${file}${testName ? ` › ${testName.replace(/\s+/g, " ")}` : ""}`; + ids.add(id); + } + return [...ids].sort(); +} // A file-level FAIL with no "> testname" -- a collection/import error never // reaches a single test, so vitest has no test name to print (review round // 1, F2/P2). Deliberately looser than FAIL_LINE: only used when FAIL_LINE diff --git a/tests/scripts/ci-test-diff.test.ts b/tests/scripts/ci-test-diff.test.ts index c0bf734ea..7fb8eb9bc 100644 --- a/tests/scripts/ci-test-diff.test.ts +++ b/tests/scripts/ci-test-diff.test.ts @@ -1,10 +1,13 @@ import fs from "node:fs"; +import { spawnSync } from "node:child_process"; +import os from "node:os"; import path from "node:path"; import { describe, expect, it } from "vitest"; import { compareFailureSets, extractFailingTestIds, stripLogDecorations, + validateLog, } from "../../scripts/ci-test-diff.mjs"; const fixture = (name: string) => @@ -27,6 +30,12 @@ describe("ci-test-diff failure extraction", () => { expect(diff.fixed).toHaveLength(7); expect(diff.newFailures).toHaveLength(7); expect(diff.unchanged).toHaveLength(51); + expect(diff.fixed).toContain( + "default::tests/clients/path-utils.test.ts › normalizeFilePath: dot segments fold into the canonical key (#3184) > an empty string is returned unchanged, not invented into the cwd", + ); + expect(diff.newFailures).toContain( + "default::tests/clients/read-guard-path-normalization.test.ts › ReadGuard path-key normalization (zero_read false-block regression) > getReadHistory matches across separator forms", + ); }); it("normalizes Actions timestamps and terminal decoration", () => { @@ -34,4 +43,64 @@ describe("ci-test-diff failure extraction", () => { "2026-10-07T00:00:00.000Z \u001b[41m\u001b[1m FAIL \u001b[22m\u001b[49m default tests/a.test.ts\r\n"; expect(stripLogDecorations(raw)).toBe("FAIL default tests/a.test.ts\n"); }); + + it("covers collection, unnamed-project, fallback, and non-tests-root FAIL shapes", () => { + const raw = [ + "job\tstep\t2026-10-07T00:00:00.000Z FAIL tests/imp.test.ts [ tests/imp.test.ts ]", + "FAIL tests/single.test.ts > s > a > b", + "FAIL TS clients/other.spec.ts > labelled", + ].join("\n"); + expect(extractFailingTestIds(stripLogDecorations(raw))).toEqual([ + "TS::clients/other.spec.ts › labelled", + "tests/imp.test.ts", + "tests/single.test.ts › s > a > b", + ]); + }); + + it("rejects incomplete or mismatched Vitest summaries", () => { + expect(() => + validateLog("FAIL default tests/a.test.ts > t", "job A"), + ).toThrow("job A log incomplete"); + expect(() => + validateLog("Tests 1 failed\nFailed Tests 2", "job B"), + ).toThrow("mismatched Vitest failure summaries"); + }); + + it("keeps project names in identities", () => { + const log = + "Tests 2 failed\n" + + "Failed Tests 2\n" + + "FAIL web tests/same.test.ts > same\n" + + "FAIL node tests/same.test.ts > same\n"; + expect(validateLog(log).ids).toEqual([ + "node::tests/same.test.ts › same", + "web::tests/same.test.ts › same", + ]); + }); + + it("returns 0 for unchanged, 1 for NEW, and 2 for invalid job logs", () => { + const scratch = fs.mkdtempSync( + path.join(process.env.TMPDIR ?? os.tmpdir(), "ci-test-diff-"), + ); + const gh = path.join(scratch, "gh"); + const fixtureDir = path.resolve("tests/fixtures/ci-test-diff"); + const fixtureA = path.join(fixtureDir, "job-112724408671.log"); + const fixtureB = path.join(fixtureDir, "job-112734370876.log"); + fs.writeFileSync( + gh, + `#!/usr/bin/env node\nconst fs = require("node:fs");\nconst request = process.argv.find((value) => value.includes("/jobs/")) ?? "";\nconst id = request.match(/\\/jobs\\/(\\d+)\\//)?.[1];\nconst file = id === "0" ? null : id === "2" ? ${JSON.stringify(fixtureB)} : ${JSON.stringify(fixtureA)};\nif (file) process.stdout.write(fs.readFileSync(file, "utf8"));\n`, + ); + fs.chmodSync(gh, 0o755); + const env = { ...process.env, PATH: `${scratch}:${process.env.PATH}` }; + const run = (a: string, b: string) => + spawnSync(process.execPath, ["scripts/ci-test-diff.mjs", a, b], { + cwd: path.resolve("."), + encoding: "utf8", + env, + }); + expect(run("1", "1").status).toBe(0); + expect(run("1", "2").status).toBe(1); + expect(run("0", "1").status).toBe(2); + fs.rmSync(scratch, { recursive: true, force: true }); + }); }); From 959c0b45cb01c7f93f707c32678dbaeec050bc28 Mon Sep 17 00:00:00 2001 From: Apostolos Mantzaris Date: Wed, 7 Oct 2026 15:37:07 +0300 Subject: [PATCH 5/9] test: admit CI diff CLI spawn (#4072) Register the required real-process admission for the CLI exit-code witness in the serialized test lane and flake baseline.\n\nRefs #4072 --- tests/clients/flake-shape-ratchet.test.ts | 7 +++++++ tests/scripts/ci-test-diff.test.ts | 1 + tests/support/flake-shape-baseline.json | 1 + vitest.config.ts | 3 +++ 4 files changed, 12 insertions(+) diff --git a/tests/clients/flake-shape-ratchet.test.ts b/tests/clients/flake-shape-ratchet.test.ts index a48143456..4cce50d42 100644 --- a/tests/clients/flake-shape-ratchet.test.ts +++ b/tests/clients/flake-shape-ratchet.test.ts @@ -427,6 +427,13 @@ const ADMITTED_AFTER_BASELINE: Readonly< reason: "the exact local CLI, shallow checkout and `git check-ignore` (#2904) are the subjects; an in-process double cannot prove any of those command boundaries", }, + // 2026-10-07 (#4072 review F2): the executable CLI's exit status is the + // contract; an in-process main() call cannot prove the entry-point boundary. + "real-process-spawn:scripts/ci-test-diff.test.ts": { + detector: "real-process-spawn", + reason: + "the executable CLI exit status is the contract; an in-process main call cannot prove the entry-point boundary", + }, "real-process-spawn:scripts/ci-verdict.test.ts": { detector: "real-process-spawn", reason: diff --git a/tests/scripts/ci-test-diff.test.ts b/tests/scripts/ci-test-diff.test.ts index 7fb8eb9bc..c25de486a 100644 --- a/tests/scripts/ci-test-diff.test.ts +++ b/tests/scripts/ci-test-diff.test.ts @@ -1,3 +1,4 @@ +// flake-shape: real-process-spawn — the CLI's real exit status is the contract; an in-process main() call cannot prove the executable entry point (#4072 review F2). import fs from "node:fs"; import { spawnSync } from "node:child_process"; import os from "node:os"; diff --git a/tests/support/flake-shape-baseline.json b/tests/support/flake-shape-baseline.json index dce92b37f..4d9e46367 100644 --- a/tests/support/flake-shape-baseline.json +++ b/tests/support/flake-shape-baseline.json @@ -69,6 +69,7 @@ "scripts/check-allow-scripts.test.ts": 3, "scripts/check-lockfile-sync.test.ts": 2, "scripts/check-pr-body.test.ts": 9, + "scripts/ci-test-diff.test.ts": 2, "scripts/ci-verdict.test.ts": 4, "scripts/classify-ci-failure-cli.test.ts": 2, "scripts/download-grammars.test.ts": 2, diff --git a/vitest.config.ts b/vitest.config.ts index d9940058c..58eeef448 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -499,6 +499,9 @@ export const wallClockBudgetInclude = [ // subject; an in-process call of the pure policy cannot prove that boundary. "tests/scripts/check-allow-scripts.test.ts", "tests/scripts/check-pr-body.test.ts", + // #4072 review F2: the CLI's real exit status is the contract; an + // in-process main() call cannot prove the executable entry point. + "tests/scripts/ci-test-diff.test.ts", // #3883 F3: the final `ci-verdict: exit` line is emitted by the real // `main()` process; the spawn is the only faithful proof of that boundary. "tests/scripts/ci-verdict.test.ts", From 51d2ab68370cdd860c759dc1d7295d1533d883e1 Mon Sep 17 00:00:00 2001 From: Apostolos Mantzaris Date: Wed, 7 Oct 2026 15:51:19 +0300 Subject: [PATCH 6/9] fix: complete CI diff verification Accept valid green Vitest runs, reconcile unhandled errors, and\nnormalize non-colour project labels in the shared classifier seam. Add\nasymmetric exit, count, and real green-log witnesses for #4072. --- scripts/ci-test-diff.mjs | 17 +++------- scripts/lib/ci-failure-classifier.d.mts | 1 + scripts/lib/ci-failure-classifier.mjs | 9 +++-- .../ci-test-diff/job-green-vitest.log | 8 +++++ tests/scripts/ci-test-diff.test.ts | 34 ++++++++++++++++++- 5 files changed, 54 insertions(+), 15 deletions(-) create mode 100644 tests/fixtures/ci-test-diff/job-green-vitest.log diff --git a/scripts/ci-test-diff.mjs b/scripts/ci-test-diff.mjs index 69df8d953..bcb190fce 100644 --- a/scripts/ci-test-diff.mjs +++ b/scripts/ci-test-diff.mjs @@ -3,6 +3,7 @@ import { execFileSync } from "node:child_process"; import { pathToFileURL } from "node:url"; import { extractVitestFailureIds, + OVERALL_TESTS_FAILED, stripAnsi, stripLineTimestamps, } from "./lib/ci-failure-classifier.mjs"; @@ -24,9 +25,9 @@ export function extractFailingTestIds(log) { } export function summarizeLog(log, side = "job") { - const testsFailed = Number( - log.match(/\bTests\s+(\d+)\s+failed\b/i)?.[1] ?? NaN, - ); + const failedMatch = OVERALL_TESTS_FAILED.exec(log); + const passedMatch = log.match(/^\s*Tests\s+(\d+)\s+passed\b/m); + const testsFailed = Number(failedMatch?.[1] ?? 0); const failedTestsHeader = Number( log.match(/\bFailed Tests\s+(\d+)\b/i)?.[1] ?? NaN, ); @@ -36,7 +37,7 @@ export function summarizeLog(log, side = "job") { const unhandledErrors = Number( log.match(/\bErrors\s+(\d+)\s+error(?:s)?\b/i)?.[1] ?? 0, ); - if (!Number.isInteger(testsFailed)) { + if (!failedMatch && !passedMatch) { throw new Error(`${side} log incomplete (no Vitest Tests summary)`); } if ( @@ -52,14 +53,6 @@ export function validateLog(log, side = "job") { const summary = summarizeLog(log, side); const ids = extractFailingTestIds(log); const expected = summary.testsFailed + summary.suitesFailed; - if ( - summary.unhandledErrors > summary.suitesFailed && - summary.unhandledErrors > 0 - ) { - throw new Error( - `${side} log reports ${summary.unhandledErrors} unhandled errors but only ${summary.suitesFailed} failed suites`, - ); - } if (ids.length !== expected) { throw new Error( `${side} log has ${ids.length} failure IDs; Vitest summary reports ${expected}`, diff --git a/scripts/lib/ci-failure-classifier.d.mts b/scripts/lib/ci-failure-classifier.d.mts index a0cbfee70..3bbea2bf0 100644 --- a/scripts/lib/ci-failure-classifier.d.mts +++ b/scripts/lib/ci-failure-classifier.d.mts @@ -39,6 +39,7 @@ export interface ClassifierDecision { export declare const NET_PATTERN: RegExp; export declare const BARE_FAIL_LINE: RegExp; export declare const ASSERTION_LINE: RegExp; +export declare const OVERALL_TESTS_FAILED: RegExp; export declare function stripAnsi(text: string): string; export declare function stripLineTimestamps(text: string): string; export declare function extractVitestFailureIds(log: string): string[]; diff --git a/scripts/lib/ci-failure-classifier.mjs b/scripts/lib/ci-failure-classifier.mjs index 18a6bc5b3..a62a571c6 100644 --- a/scripts/lib/ci-failure-classifier.mjs +++ b/scripts/lib/ci-failure-classifier.mjs @@ -97,7 +97,12 @@ export function extractVitestFailureIds(log) { if (!fileMatch) continue; const file = fileMatch[0]; const prefix = line.slice(0, fileMatch.index).trim(); - const project = prefix ? prefix.split(/\s+/).at(-1) : ""; + const project = prefix + ? prefix + .split(/\s+/) + .at(-1) + .replace(/^\|+|\|+$/g, "") + : ""; const suffix = line.slice(fileMatch.index + file.length); const testName = suffix.match(/^\s*>\s*(.+?)\s*$/)?.[1]; const id = `${project ? `${project}::` : ""}${file}${testName ? ` › ${testName.replace(/\s+/g, " ")}` : ""}`; @@ -156,7 +161,7 @@ const TYPESCRIPT_ERROR = // The run's own final tally line (real log, same run): " Tests 1 failed | // 9837 passed | 48 skipped (9886)". No file/test detail, but a nonzero // failed count here is unambiguous. -const OVERALL_TESTS_FAILED = /^\s*Tests\s+(\d+)\s+failed\b/m; +export const OVERALL_TESTS_FAILED = /^\s*Tests\s+(\d+)\s+failed\b/m; // #2839: vitest's timeout failure text (real log, run 34389495533 attempt 1, // job 102594125043, PR #2834): "Error: Test timed out in 5000ms." Vitest's // runner uses the same template for hooks: "Error: Hook timed out in 300ms." diff --git a/tests/fixtures/ci-test-diff/job-green-vitest.log b/tests/fixtures/ci-test-diff/job-green-vitest.log new file mode 100644 index 000000000..30ea01fe6 --- /dev/null +++ b/tests/fixtures/ci-test-diff/job-green-vitest.log @@ -0,0 +1,8 @@ + RUN v5.0.3 /home/runner/work/pi-lens/pi-lens + + ✓ tests/scripts/ci-test-diff.test.ts (1 test) 4ms + + Test Files 1 passed (1) + Tests 1 passed (1) + Start at 10:00:00 + Duration 1.23s (transform 10ms, setup 20ms, collect 5ms, tests 4ms, environment 0ms, prepare 100ms) diff --git a/tests/scripts/ci-test-diff.test.ts b/tests/scripts/ci-test-diff.test.ts index c25de486a..f37b05858 100644 --- a/tests/scripts/ci-test-diff.test.ts +++ b/tests/scripts/ci-test-diff.test.ts @@ -79,6 +79,35 @@ describe("ci-test-diff failure extraction", () => { ]); }); + it("normalizes Vitest's non-colour pipe project label", () => { + const log = + "Tests 1 failed\n" + + "Failed Tests 1\n" + + "FAIL |default| tests/same.test.ts > same\n"; + expect(validateLog(log).ids).toEqual([ + "default::tests/same.test.ts › same", + ]); + }); + + it("accepts a green run and reconciles an unhandled error without a suite", () => { + expect(validateLog(fixture("job-green-vitest.log")).ids).toEqual([]); + expect( + validateLog( + "Tests 1 failed\nFailed Suites 0\nErrors 1 error\n" + + "FAIL default tests/late.test.ts > rejects late work", + ), + ).toMatchObject({ testsFailed: 1, suitesFailed: 0, unhandledErrors: 1 }); + }); + + it("rejects a failure count with too few extracted IDs", () => { + expect(() => + validateLog( + "Tests 2 failed\nFailed Tests 2\n" + + "FAIL default tests/only.test.ts > only failure", + ), + ).toThrow("has 1 failure IDs; Vitest summary reports 2"); + }); + it("returns 0 for unchanged, 1 for NEW, and 2 for invalid job logs", () => { const scratch = fs.mkdtempSync( path.join(process.env.TMPDIR ?? os.tmpdir(), "ci-test-diff-"), @@ -89,7 +118,7 @@ describe("ci-test-diff failure extraction", () => { const fixtureB = path.join(fixtureDir, "job-112734370876.log"); fs.writeFileSync( gh, - `#!/usr/bin/env node\nconst fs = require("node:fs");\nconst request = process.argv.find((value) => value.includes("/jobs/")) ?? "";\nconst id = request.match(/\\/jobs\\/(\\d+)\\//)?.[1];\nconst file = id === "0" ? null : id === "2" ? ${JSON.stringify(fixtureB)} : ${JSON.stringify(fixtureA)};\nif (file) process.stdout.write(fs.readFileSync(file, "utf8"));\n`, + `#!/usr/bin/env node\nconst fs = require("node:fs");\nconst request = process.argv.find((value) => value.includes("/jobs/")) ?? "";\nconst id = request.match(/\\/jobs\\/(\\d+)\\//)?.[1];\nconst file = id === "0" ? null : id === "3" ? ${JSON.stringify(path.join(fixtureDir, "job-green-vitest.log"))} : id === "2" ? ${JSON.stringify(fixtureB)} : ${JSON.stringify(fixtureA)};\nif (file) process.stdout.write(fs.readFileSync(file, "utf8"));\n`, ); fs.chmodSync(gh, 0o755); const env = { ...process.env, PATH: `${scratch}:${process.env.PATH}` }; @@ -102,6 +131,9 @@ describe("ci-test-diff failure extraction", () => { expect(run("1", "1").status).toBe(0); expect(run("1", "2").status).toBe(1); expect(run("0", "1").status).toBe(2); + // A→GREEN is clean, while GREEN→B is NEW; direction is the CLI contract. + expect(run("1", "3").status).toBe(0); + expect(run("3", "2").status).toBe(1); fs.rmSync(scratch, { recursive: true, force: true }); }); }); From 6cfc612386bec17e6661e280eed4982e64ef91c7 Mon Sep 17 00:00:00 2001 From: Apostolos Mantzaris Date: Wed, 7 Oct 2026 15:57:03 +0300 Subject: [PATCH 7/9] fix: restore mutate journals conditionally Round 2's journal wrote its backup back unconditionally, so a legitimate edit made after a crash was overwritten (verify HIGH). The journal now holds the sha256 of the original and the mutated bytes, and the file is restored only when its current sha256 equals the mutated one. Every other state writes nothing, prints the three hashes and the journal path, and exits non-zero. A normal run never consumes a journal it did not create; --restore is the only recovery. The matcher also refuses a needle that only a regex literal contains, through @ast-grep/napi instead of a hand-rolled scanner, and the run classifies coloured Vitest output (the CI-only red on 674cd38bc). Refs #4048 Co-Authored-By: Claude Sonnet 5.5 --- .changelog/mutate-4048.md | 2 +- docs/pi-lens-fixer.md | 2 +- scripts/mutate.mjs | 320 +++++++++------ tests/scripts/mutate-fixture.test.ts | 26 ++ tests/scripts/mutate.test.ts | 559 ++++++++++++++++++++++++--- 5 files changed, 738 insertions(+), 171 deletions(-) diff --git a/.changelog/mutate-4048.md b/.changelog/mutate-4048.md index cc29db44d..e76631b83 100644 --- a/.changelog/mutate-4048.md +++ b/.changelog/mutate-4048.md @@ -3,4 +3,4 @@ section: Added audience: internal --- -- Add `scripts/mutate.mjs`, a hash-verified mutation runner that always restores its target and reports mutation outcomes. +- Add `scripts/mutate.mjs`, a mutation runner that journals the original and mutated sha256, restores its target only while the file still holds the mutated bytes (any other state is refused and reported, never overwritten), and reports RED, SURVIVED or ERROR. diff --git a/docs/pi-lens-fixer.md b/docs/pi-lens-fixer.md index 1cf60c49f..69ad955a9 100644 --- a/docs/pi-lens-fixer.md +++ b/docs/pi-lens-fixer.md @@ -60,7 +60,7 @@ mechanics"; a brief supplies only `lane=`, scope, and the grant. ## Evidence -- Use `scripts/mutate.mjs` for bounded hand mutations; it restores and verifies the target automatically. +- Use `scripts/mutate.mjs` for bounded hand mutations; it restores the target automatically, but only while the file still holds the mutated bytes. A leftover journal (`.mutate-backup`) blocks the next run on that file; recover with `--restore`, which refuses and prints the three hashes when the file was edited since. - Witness rule (ADR 0007): #1605 owns the witness lanes, and their fixtures live under `tests/fixtures/witness//`. diff --git a/scripts/mutate.mjs b/scripts/mutate.mjs index 718945f5b..71f53bcc6 100644 --- a/scripts/mutate.mjs +++ b/scripts/mutate.mjs @@ -10,19 +10,22 @@ import { spawn, spawnSync } from "node:child_process"; import { readFileSync, readdirSync, + renameSync, statSync, writeFileSync, unlinkSync, } from "node:fs"; import * as path from "node:path"; import { fileURLToPath } from "node:url"; +import { stripVTControlCharacters } from "node:util"; const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); function usage(message) { if (message) console.error(`mutate.mjs: ${message}`); console.error( - "usage: scripts/mutate.mjs --file --find --replace --tests [--built] [--table] [--restore]", + "usage: scripts/mutate.mjs --file --find --replace --tests [--built] [--table] [--allow-comment]\n scripts/mutate.mjs --restore [--file ]\n" + + "exit codes: 0 or the test runner's code, 1 refused or failed, 2 usage, 4 the run could not restore its file (a journal remains)", ); process.exitCode = 2; } @@ -100,9 +103,8 @@ function parseFind(value) { return value; } -function mutationFor(original, find, replacement, allowComment = false) { +function mutationFor(original, searchable, find, replacement, allowComment) { const needle = parseFind(find); - const searchable = blankCommentsAndStrings(original); const codeIndex = typeof needle === "string" ? searchable.indexOf(needle) @@ -112,7 +114,7 @@ function mutationFor(original, find, replacement, allowComment = false) { })(); if (codeIndex < 0 && !allowComment) throw new Error( - "refusing no-op edit: --find matches only comments/strings or is absent", + "refusing no-op edit: --find matches only comments/strings/regex literals or is absent", ); const originalIndex = codeIndex >= 0 @@ -141,90 +143,131 @@ function mutationFor(original, find, replacement, allowComment = false) { return mutated; } -function blankCommentsAndStrings(source) { - let state = "code"; - let quote = ""; - let escaped = false; - let output = ""; - for (let index = 0; index < source.length; index += 1) { - const current = source[index]; - const next = source[index + 1]; - if (state === "line") { - output += current === "\n" ? "\n" : " "; - if (current === "\n") state = "code"; - continue; - } - if (state === "block") { - output += current === "\n" ? "\n" : " "; - if (current === "*" && next === "/") { - output += " "; - index += 1; - state = "code"; - } - continue; - } - if (state === "string") { - output += current === "\n" ? "\n" : " "; - if (escaped) escaped = false; - else if (current === "\\") escaped = true; - else if (current === quote) state = "code"; - continue; - } - if (current === "/" && next === "/") { - output += " "; - index += 1; - state = "line"; - continue; - } - if (current === "/" && next === "*") { - output += " "; - index += 1; - state = "block"; - continue; - } - if (current === '"' || current === "'" || current === "`") { - output += " "; - state = "string"; - quote = current; - continue; - } - output += current; +// The grammar @ast-grep/napi (a direct dependency) parses each JS/TS family +// file with; any other file type is matched raw, because a JS lexer would +// misread its comments and quotes. +const LEXER_LANGUAGES = { + ".ts": "TypeScript", + ".mts": "TypeScript", + ".cts": "TypeScript", + ".tsx": "Tsx", + ".js": "JavaScript", + ".mjs": "JavaScript", + ".cjs": "JavaScript", + ".jsx": "JavaScript", +}; + +const lexerLanguage = (file) => LEXER_LANGUAGES[path.extname(file)]; + +/** `source` with comments, strings, regex literals and a template's text blanked to spaces (newlines kept), so a needle can only match code. */ +function blankNonCode(source, file, astGrep) { + const language = lexerLanguage(file); + if (!language) return source; + const units = source.split(""); // UTF-16 units, the unit ast-grep reports + const blank = (node) => { + const { start, end } = node.range(); + for (let index = start.index; index < end.index; index += 1) + if (units[index] !== "\n" && units[index] !== "\r") units[index] = " "; + }; + const nonCode = ["comment", "string", "regex", "template_string"].map( + (kind) => ({ kind }), + ); + for (const node of astGrep + .parse(language, source) + .root() + .findAll({ rule: { any: nonCode } })) { + if (node.kind() !== "template_string") blank(node); + else + // A `${…}` substitution is code; the text around it is not. + for (const part of node.children()) + if (part.kind() !== "template_substitution") blank(part); } - return output; + return units.join(""); } -function restoreFile(file, bytes, expectedHash) { - writeFileSync(file, bytes); - const actual = digest(readFileSync(file)); - if (actual !== expectedHash) - throw new Error(`restore sha256 mismatch for ${file}`); -} +// The restore rule (#4048 round 3). A journal holds the original bytes and the +// sha256 of both the original and the mutated bytes. The file is written back +// only when its current sha256 equals the mutated sha256. Every other state +// writes nothing and reports the journal path and the three hashes. +const JOURNAL_SUFFIX = ".mutate-backup"; function journalFor(file) { - return `${file}.mutate-backup`; + return `${file}${JOURNAL_SUFFIX}`; } -function journalHashFor(file) { - return `${journalFor(file)}.sha256`; +function journalOf(file, original, mutated) { + return { + version: 1, + file: path.relative(root, file), + originalSha256: digest(original), + mutatedSha256: digest(mutated), + original: original.toString("base64"), + }; } -function writeJournal(file, bytes) { - writeFileSync(journalFor(file), bytes, { flag: "wx" }); - writeFileSync(journalHashFor(file), digest(bytes), { flag: "wx" }); +// `wx`: creating the journal is the lock that keeps a second run off this file. +function writeJournal(file, journal) { + writeFileSync(journalFor(file), JSON.stringify(journal), { flag: "wx" }); } +function replaceJournal(file, journal) { + const temporary = `${journalFor(file)}.${process.pid}.tmp`; + writeFileSync(temporary, JSON.stringify(journal)); + renameSync(temporary, journalFor(file)); +} + +function readJournal(file) { + const journal = JSON.parse(readFileSync(journalFor(file), "utf8")); + const original = Buffer.from(journal.original, "base64"); + if ( + journal.version !== 1 || + typeof journal.originalSha256 !== "string" || + typeof journal.mutatedSha256 !== "string" || + digest(original) !== journal.originalSha256 + ) + throw new Error( + "unknown version or original bytes do not match their hash", + ); + return { ...journal, original }; +} + +function journalReport(file) { + const current = statExists(file) ? digest(readFileSync(file)) : "absent"; + try { + const journal = readJournal(file); + return { + journal, + current, + text: `original sha256 ${journal.originalSha256}; mutated sha256 ${journal.mutatedSha256}; current sha256 ${current}; journal ${journalFor(file)}`, + }; + } catch (error) { + return { + journal: null, + current, + text: `journal ${journalFor(file)} is unreadable (${error.message}); current sha256 ${current}`, + }; + } +} + +/** Restores `file` from its journal under the rule above. Never throws and never writes on a refusal. */ function restoreJournal(file) { - const backup = journalFor(file); - const hashFile = journalHashFor(file); - if (!statExists(backup) || !statExists(hashFile)) return false; - const bytes = readFileSync(backup); - const expectedHash = readFileSync(hashFile, "utf8").trim(); - if (digest(bytes) !== expectedHash) - throw new Error(`backup sha256 mismatch for ${file}`); - restoreFile(file, bytes, expectedHash); - unlinkSync(backup); - unlinkSync(hashFile); - return true; + if (!statExists(journalFor(file))) return { restored: false, refusal: null }; + const { journal, current, text } = journalReport(file); + const name = path.relative(root, file); + if (!journal || current !== journal.mutatedSha256) + return { restored: false, refusal: `refusing to restore ${name}: ${text}` }; + try { + writeFileSync(file, journal.original); + if (digest(readFileSync(file)) !== journal.originalSha256) + throw new Error("restored bytes do not match the original sha256"); + unlinkSync(journalFor(file)); + return { restored: true, refusal: null }; + } catch (error) { + return { + restored: false, + refusal: `restore of ${name} failed (${error.message}): ${text}`, + }; + } } function journalFiles(directory) { @@ -233,8 +276,8 @@ function journalFiles(directory) { const full = path.join(directory, entry.name); if (entry.isDirectory() && entry.name !== "node_modules") found.push(...journalFiles(full)); - else if (entry.isFile() && entry.name.endsWith(".mutate-backup")) - found.push(full.slice(0, -".mutate-backup".length)); + else if (entry.isFile() && entry.name.endsWith(JOURNAL_SUFFIX)) + found.push(full.slice(0, -JOURNAL_SUFFIX.length)); } return found; } @@ -284,7 +327,13 @@ function runTests(files, onSignal) { child.once("close", (code, signal) => { activeChild = null; process.removeListener("SIGINT", stop); - resolve({ code: code ?? 130, signal, output }); + // Colour codes split "Tests" from "no tests" on CI; classify and + // report the plain text. + resolve({ + code: code ?? 130, + signal, + output: stripVTControlCharacters(output), + }); }); }); } @@ -323,6 +372,24 @@ function statExists(file) { } } +function restoreCommand(options) { + const source = options.file ? path.resolve(root, options.file) : null; + const twin = source && !options.built ? twinFor(source) : null; + const files = source ? [source, ...(twin ? [twin] : [])] : journalFiles(root); + let restored = 0; + let refused = 0; + for (const file of files) { + const outcome = restoreJournal(file); + if (outcome.restored) restored += 1; + if (outcome.refusal) { + refused += 1; + console.error(`mutate.mjs: ${outcome.refusal}`); + } + } + console.log(`restored ${restored} mutation journal(s)`); + return refused === 0 ? 0 : 1; +} + async function main() { let options; try { @@ -331,39 +398,41 @@ async function main() { usage(error.message); return 2; } - if (options.restore) { - const files = options.file - ? [path.resolve(root, options.file)] - : journalFiles(root); - let restored = 0; - for (const file of files) restored += restoreJournal(file) ? 1 : 0; - console.log(`restored ${restored} mutation journal(s)`); - return 0; - } + if (options.restore) return restoreCommand(options); const source = path.resolve(root, options.file); - const target = options.built ? source : source; + const target = source; const candidateTwin = options.built ? null : twinFor(source); const twin = candidateTwin && statExists(candidateTwin) ? candidateTwin : null; const files = [target, ...(twin ? [twin] : [])]; - for (const file of files) { - if (!statExists(file)) - throw new Error(`file does not exist: ${path.relative(root, file)}`); - restoreJournal(file); - if (!gitClean(path.relative(root, file))) - throw new Error(`refusing dirty file: ${path.relative(root, file)}`); + try { + for (const file of files) { + const name = path.relative(root, file); + if (!statExists(file)) throw new Error(`file does not exist: ${name}`); + // A journal is a live run's lock or a dead run's evidence; this run + // cannot tell which, so only --restore ever consumes one. + if (statExists(journalFor(file))) + throw new Error( + `refusing to start on ${name}: a mutation journal exists (a live run, or a run that died; recover with --restore): ${journalReport(file).text}`, + ); + if (!gitClean(name)) throw new Error(`refusing dirty file: ${name}`); + } + } catch (error) { + console.error(`mutate.mjs: ${error.message}`); + return 1; } - const originals = new Map(files.map((file) => [file, readFileSync(file)])); - let activeFiles = []; + // Files whose journal this run created, in creation order. + const owned = []; let result = { code: 2, failed: [], status: "RED" }; let interrupted = false; let handlingSignal = false; - const restoreAll = () => { - for (const [file, bytes] of originals) - restoreFile(file, bytes, digest(bytes)); - for (const file of activeFiles) { - if (statExists(journalFor(file))) restoreJournal(file); + const restoreOwned = () => { + const refusals = []; + for (const file of owned) { + const { refusal } = restoreJournal(file); + if (refusal) refusals.push(refusal); } + return refusals; }; const signalHandler = (signal) => { if (handlingSignal) return; @@ -371,7 +440,8 @@ async function main() { interrupted = true; try { if (activeChild) activeChild.kill("SIGKILL"); - restoreAll(); + for (const refusal of restoreOwned()) + console.error(`mutate.mjs: ${refusal}`); } finally { process.removeAllListeners(signal); process.kill(process.pid, signal); @@ -381,26 +451,45 @@ async function main() { process.once(signal, () => signalHandler(signal)); process.once("uncaughtException", (error) => { try { - restoreAll(); + for (const refusal of restoreOwned()) + console.error(`mutate.mjs: ${refusal}`); } finally { console.error(error.stack ?? error); process.exit(1); } }); try { + const originals = new Map(files.map((file) => [file, readFileSync(file)])); const original = originals.get(target); - for (const [file, bytes] of originals) writeJournal(file, bytes); - activeFiles = [...originals.keys()]; - writeFileSync( - target, + const lexer = lexerLanguage(target) ? await import("@ast-grep/napi") : null; + const text = original.toString("utf8"); + const mutated = Buffer.from( mutationFor( - original.toString("utf8"), + text, + lexer ? blankNonCode(text, target, lexer) : text, options.find, options.replace, options["allow-comment"], ), + "utf8", ); - if (!options.built) build(); + writeJournal(target, journalOf(target, original, mutated)); + owned.push(target); + writeFileSync(target, mutated); + if (twin) { + // The build has not rewritten the twin yet, so "mutated" is what it + // is now; the real mutated hash is recorded the moment the build ends. + const twinBytes = originals.get(twin); + writeJournal(twin, journalOf(twin, twinBytes, twinBytes)); + owned.push(twin); + try { + build(); + } finally { + // Nothing else runs between the build and this record, so the + // twin's current bytes are the build's output, failed build included. + replaceJournal(twin, journalOf(twin, twinBytes, readFileSync(twin))); + } + } if (interrupted) result = { code: 130, failed: ["interrupted"], status: "RED" }; else { @@ -415,10 +504,13 @@ async function main() { } } catch (error) { result = { code: 1, failed: [error.message], status: "RED" }; - } finally { - restoreAll(); - for (const signal of ["SIGINT", "SIGTERM", "SIGHUP"]) - process.removeAllListeners(signal); + } + const refusals = restoreOwned(); + for (const signal of ["SIGINT", "SIGTERM", "SIGHUP"]) + process.removeAllListeners(signal); + if (refusals.length > 0) { + for (const refusal of refusals) console.error(`mutate.mjs: ${refusal}`); + result = { code: 4, failed: refusals, status: "ERROR" }; } console.log("--- mutation transcript ---"); console.log( diff --git a/tests/scripts/mutate-fixture.test.ts b/tests/scripts/mutate-fixture.test.ts index 9df9116d6..33f9c5025 100644 --- a/tests/scripts/mutate-fixture.test.ts +++ b/tests/scripts/mutate-fixture.test.ts @@ -1,12 +1,21 @@ // flake-shape: never-settling-wait — the interrupt witness must keep a real child alive until the CLI sends SIGINT. +import { appendFileSync } from "node:fs"; import { expect, it } from "vitest"; const mutationSafeMarker = true; +// Lexer fixtures for the mutate.test.ts matcher cases (#4048 round 3): a needle +// inside a regex literal or a template's text is not code; the same text inside +// a template substitution, across a division, or after a regex literal holding +// a quote (last in this file) is. +const mutationRegexLiteral = /mutation-regex-only-marker\s+x/; +const mutationQuotient = 8 / 2 / 2; +const mutationTemplate = `mutation-template-only-marker ${mutationQuotient + 1}`; it("mutation fixture remains original", () => { // mutation-comment-only-marker expect(mutationSafeMarker).toBe(true); expect("original").toBe("original"); + expect([mutationRegexLiteral, mutationTemplate]).toHaveLength(2); }); it("mutation fixture has a failure marker", () => { @@ -14,9 +23,26 @@ it("mutation fixture has a failure marker", () => { }); it("mutation fixture can hold an interrupting run", async () => { + // A legitimate edit made while a mutation run is live: the run's own + // cleanup must refuse to overwrite it (#4048 round 3, table row 12). + if (process.env.PI_LENS_MUTATION_EDIT) { + appendFileSync(process.env.PI_LENS_MUTATION_EDIT, "legitimate edit\n"); + expect(true).toBe(true); + return; + } if (!process.env.PI_LENS_MUTATION_RUN) { expect(true).toBe(true); return; } await new Promise(() => {}); }); + +// Kept last: a scanner that reads the quote inside this regex literal as a +// string start desyncs from here to the end of the file, and must not take the +// tests above with it (#4048 round 3). +const mutationQuoteRegex = /https?:\/\/x"/; +const mutationAfterRegex = true; + +it("mutation fixture lexer constants remain original", () => { + expect([mutationQuoteRegex, mutationAfterRegex]).toHaveLength(2); +}); diff --git a/tests/scripts/mutate.test.ts b/tests/scripts/mutate.test.ts index 944b2e6d9..5e94eb92e 100644 --- a/tests/scripts/mutate.test.ts +++ b/tests/scripts/mutate.test.ts @@ -1,9 +1,13 @@ // flake-shape: real-process-spawn — the mutation CLI's child Vitest process and SIGINT restoration are the process boundary under test. import { execFile, spawn } from "node:child_process"; import { createHash } from "node:crypto"; -import { readFileSync } from "node:fs"; +import { readFileSync, rmSync, writeFileSync } from "node:fs"; import { promisify } from "node:util"; -import { expect, it } from "vitest"; +import { expect, it, vi } from "vitest"; + +// Every case spawns a real Vitest child; a shared CI runner needs more than the +// 5 s default (the round-2 orphan-journal test timed out there). +vi.setConfig({ testTimeout: 60_000 }); const execFileAsync = promisify(execFile); const root = process.cwd(); @@ -59,6 +63,8 @@ it("restores the source after a successful test run and reports SURVIVED", async }); it("restores the source after a failing test run and reports RED with a title", async () => { + // Round 2 searched a string-only needle, which the matcher refuses with the + // same exit code 1, so this test never reached RED. A code needle does. const before = digest(); await expect( execFileAsync( @@ -68,15 +74,20 @@ it("restores the source after a failing test run and reports RED with a title", "--file", target, "--find", - "mutation-fail-marker", + "expect(mutationSafeMarker).toBe(true)", "--replace", - "changed", + "expect(mutationSafeMarker).toBe(false)", "--tests", target, ], { cwd: root }, ), - ).rejects.toMatchObject({ code: 1 }); + ).rejects.toMatchObject({ + code: 1, + stdout: expect.stringMatching( + /mutation fixture remains original[\s\S]*RED/, + ), + }); expect(digest()).toBe(before); }); @@ -237,30 +248,40 @@ it("refuses repeated --file options", async () => { }); }); -it("reports a test load failure as ERROR", async () => { - const before = digest(); - await expect( - execFileAsync( - process.execPath, - [ - cli, - "--file", - target, - "--find", - "const mutationSafeMarker =", - "--replace", - "const mutationSafeMarker = =", - "--tests", - target, - ], - { cwd: root }, - ), - ).rejects.toMatchObject({ - code: 1, - stdout: expect.stringContaining("ERROR"), - }); - expect(digest()).toBe(before); -}); +// CI colours Vitest's summary ("Tests" and "no tests" are split by escape +// codes), and a plain terminal does not; PR #4075's first CI run was red on the +// coloured form only. +it.each([ + ["plain", {}], + ["coloured", { FORCE_COLOR: "1" }], +])( + "reports a test load failure as ERROR (%s output)", + async (_name, colour) => { + const before = digest(); + await expect( + execFileAsync( + process.execPath, + [ + cli, + "--file", + target, + "--find", + "const mutationSafeMarker =", + "--replace", + "const mutationSafeMarker = =", + "--tests", + target, + ], + { cwd: root, env: { ...process.env, NO_COLOR: undefined, ...colour } }, + ), + ).rejects.toMatchObject({ + code: 1, + stdout: expect.stringContaining("\nERROR\n"), + }); + expect(digest()).toBe(before); + }, + 60_000, +); async function terminatesAndRestores(signal: "SIGTERM" | "SIGHUP") { const before = digest(); @@ -364,18 +385,446 @@ it("restores a SIGKILLed run on the next --restore invocation", async () => { expect(digest()).toBe(before); }); -it("restores an orphan journal before the next normal invocation", async () => { - const before = digest(); +// ---- #4048 round 3: conditional restore (state table rows in the PR body) ---- + +const builtTarget = "tests/scripts/mutate-built.txt"; +const builtArgs = (file: string, ...extra: string[]) => [ + cli, + "--built", + "--file", + file, + "--find", + file === builtTarget ? "mutation-built-marker" : find, + "--replace", + file === builtTarget ? "changed" : replace, + "--tests", + target, + ...extra, +]; +const shaOf = (file: string) => + createHash("sha256").update(readFileSync(file)).digest("hex"); +const journalOf = (file: string) => `${file}.mutate-backup`; + +type Held = { + child: ReturnType; + stderr: () => string; + closed: Promise<[number | null, NodeJS.Signals | null]>; +}; + +// A live run: journal written, file mutated, the fixture test holding the child. +async function heldRun(file: string, env: Record = {}) { + let stderr = ""; + const child = spawn(process.execPath, builtArgs(file), { + cwd: root, + env: { ...process.env, PI_LENS_MUTATION_RUN: "1", ...env }, + stdio: ["ignore", "pipe", "pipe"], + }); + child.stderr?.on("data", (chunk) => { + stderr += chunk; + }); + const closed = new Promise<[number | null, NodeJS.Signals | null]>( + (resolve) => child.once("close", (code, signal) => resolve([code, signal])), + ); + await new Promise((resolve) => child.stdout?.once("data", resolve)); + return { child, stderr: () => stderr, closed } satisfies Held; +} + +async function crashedRun(file: string) { + const held = await heldRun(file); + held.child.kill("SIGKILL"); + await held.closed; +} + +// Whatever a test leaves behind is put back, so a red assertion cannot dirty +// the tree for the next case. +function forceRestore(file: string, original: Buffer) { + writeFileSync(file, original); + rmSync(journalOf(file), { force: true }); +} + +async function run(args: string[], env: Record = {}) { + try { + const { stdout, stderr } = await execFileAsync(process.execPath, args, { + cwd: root, + env: { ...process.env, ...env }, + }); + return { code: 0, stdout, stderr }; + } catch (error) { + const { code, stdout, stderr } = error as { + code: number; + stdout: string; + stderr: string; + }; + return { code, stdout, stderr }; + } +} + +function expectReport( + output: string, + file: string, + hashes: { original: string; mutated: string; current: string }, +) { + expect(output).toContain(journalOf(file)); + expect(output).toContain(hashes.original); + expect(output).toContain(hashes.mutated); + expect(output).toContain(hashes.current); +} + +it("a second run on the same file refuses while the first run's journal exists", async () => { + // Round-2 recurrence: a normal run restored whatever journal it found, so a + // second run on the same file pulled the live run's mutation out from under it. + const original = readFileSync(builtTarget); + const originalSha = shaOf(builtTarget); + const live = await heldRun(builtTarget); + try { + const mutatedSha = shaOf(builtTarget); + expect(mutatedSha).not.toBe(originalSha); + const second = await run(builtArgs(builtTarget)); + expect(second.code).toBe(1); + expectReport(second.stderr, builtTarget, { + original: originalSha, + mutated: mutatedSha, + current: mutatedSha, + }); + expect(shaOf(builtTarget)).toBe(mutatedSha); + live.child.kill("SIGTERM"); + await live.closed; + expect(shaOf(builtTarget)).toBe(originalSha); + } finally { + live.child.kill("SIGKILL"); + await live.closed; + forceRestore(builtTarget, original); + } +}, 60_000); + +it("two live runs on different files restore independently", async () => { + // Table row 14: journals are per file; neither run touches the other's file. + const builtOriginal = readFileSync(builtTarget); + const fixtureOriginal = readFileSync(target); + const a = await heldRun(builtTarget); + const b = await heldRun(target); + try { + expect(shaOf(builtTarget)).not.toBe( + createHash("sha256").update(builtOriginal).digest("hex"), + ); + expect(shaOf(target)).not.toBe( + createHash("sha256").update(fixtureOriginal).digest("hex"), + ); + a.child.kill("SIGTERM"); + await a.closed; + expect(readFileSync(builtTarget).equals(builtOriginal)).toBe(true); + expect(shaOf(target)).not.toBe( + createHash("sha256").update(fixtureOriginal).digest("hex"), + ); + b.child.kill("SIGTERM"); + await b.closed; + expect(readFileSync(target).equals(fixtureOriginal)).toBe(true); + } finally { + a.child.kill("SIGKILL"); + b.child.kill("SIGKILL"); + await Promise.all([a.closed, b.closed]); + forceRestore(builtTarget, builtOriginal); + forceRestore(target, fixtureOriginal); + } +}, 60_000); + +it("a normal run refuses after a crash and --restore restores", async () => { + // Table rows 5 and 8. Round 2 consumed the orphan journal in the next normal + // run, which cannot tell a dead journal from a live one. + const original = readFileSync(builtTarget); + const originalSha = shaOf(builtTarget); + await crashedRun(builtTarget); + try { + const mutatedSha = shaOf(builtTarget); + const normal = await run(builtArgs(builtTarget)); + expect(normal.code).toBe(1); + expectReport(normal.stderr, builtTarget, { + original: originalSha, + mutated: mutatedSha, + current: mutatedSha, + }); + expect(shaOf(builtTarget)).toBe(mutatedSha); + const restore = await run([cli, "--restore"]); + expect(restore.code).toBe(0); + expect(restore.stdout).toContain("restored 1 mutation journal(s)"); + expect(shaOf(builtTarget)).toBe(originalSha); + expect(await run([cli, "--restore", "--file", builtTarget])).toMatchObject({ + code: 0, + stdout: expect.stringContaining("restored 0 mutation journal(s)"), + }); + } finally { + forceRestore(builtTarget, original); + } +}, 60_000); + +it.each([ + [ + "a normal run", + [ + "--built", + "--file", + builtTarget, + "--find", + "mutation-built-marker", + "--replace", + "x", + "--tests", + target, + ], + ], + ["--restore", ["--restore", "--file", builtTarget]], +])( + "%s refuses a journal whose file was legitimately edited afterwards", + async (_name, args) => { + // The round-2 HIGH (rows 7 and 10): the journal overwrote a later edit. + const original = readFileSync(builtTarget); + const originalSha = shaOf(builtTarget); + await crashedRun(builtTarget); + try { + const mutatedSha = shaOf(builtTarget); + writeFileSync(builtTarget, "legitimate later edit\n"); + const currentSha = shaOf(builtTarget); + const result = await run([cli, ...args]); + expect(result.code).toBe(1); + expectReport(result.stderr, builtTarget, { + original: originalSha, + mutated: mutatedSha, + current: currentSha, + }); + expect(readFileSync(builtTarget, "utf8")).toBe("legitimate later edit\n"); + expect(readFileSync(journalOf(builtTarget), "utf8")).toContain( + originalSha, + ); + } finally { + forceRestore(builtTarget, original); + } + }, + 60_000, +); + +it.each([ + [ + "a normal run", + [ + "--built", + "--file", + builtTarget, + "--find", + "mutation-built-marker", + "--replace", + "x", + "--tests", + target, + ], + ], + ["--restore", ["--restore", "--file", builtTarget]], +])( + "%s refuses a journal whose file already equals the original", + async (_name, args) => { + // Rows 6 and 9: the journal is stale. Nothing is written, the journal stays + // for explicit recovery, and the report names the hashes. + const original = readFileSync(builtTarget); + const originalSha = shaOf(builtTarget); + await crashedRun(builtTarget); + try { + const mutatedSha = shaOf(builtTarget); + writeFileSync(builtTarget, original); + const result = await run([cli, ...args]); + expect(result.code).toBe(1); + expectReport(result.stderr, builtTarget, { + original: originalSha, + mutated: mutatedSha, + current: originalSha, + }); + expect(readFileSync(journalOf(builtTarget), "utf8")).toContain( + mutatedSha, + ); + } finally { + forceRestore(builtTarget, original); + } + }, + 60_000, +); + +it("--restore with no journal is a no-op", async () => { + // Table row 3. Drift this prevents: treating an absent journal as a refusal + // would turn every clean --restore sweep into exit 1. + const before = shaOf(builtTarget); + const result = await run([cli, "--restore", "--file", builtTarget]); + expect(result.code).toBe(0); + expect(result.stdout).toContain("restored 0 mutation journal(s)"); + expect(shaOf(builtTarget)).toBe(before); +}); + +it("an unreadable journal is refused and nothing is written", async () => { + // Row 13: a torn or hand-edited journal proves nothing about the file. + const original = readFileSync(builtTarget); + try { + writeFileSync(journalOf(builtTarget), "{ torn"); + const before = shaOf(builtTarget); + for (const args of [ + [cli, "--restore", "--file", builtTarget], + builtArgs(builtTarget), + ]) { + const result = await run(args); + expect(result.code).toBe(1); + expect(result.stderr).toContain(journalOf(builtTarget)); + expect(result.stderr).toContain(before); + expect(shaOf(builtTarget)).toBe(before); + } + } finally { + forceRestore(builtTarget, original); + } +}, 60_000); + +it.each(["SIGTERM", "SIGINT", "SIGHUP"] as const)( + "a run's own %s cleanup refuses to overwrite a legitimate edit", + async (signal) => { + // Row 12 on the signal path: the in-memory copy in round 2 was written + // back over the edit. + const original = readFileSync(builtTarget); + const originalSha = shaOf(builtTarget); + const live = await heldRun(builtTarget); + try { + const mutatedSha = shaOf(builtTarget); + writeFileSync(builtTarget, "legitimate edit during the run\n"); + const currentSha = shaOf(builtTarget); + live.child.kill(signal); + const [, closeSignal] = await live.closed; + expect(closeSignal).toBe(signal); + expect(readFileSync(builtTarget, "utf8")).toBe( + "legitimate edit during the run\n", + ); + expectReport(live.stderr(), builtTarget, { + original: originalSha, + mutated: mutatedSha, + current: currentSha, + }); + } finally { + live.child.kill("SIGKILL"); + await live.closed; + forceRestore(builtTarget, original); + } + }, + 60_000, +); + +it("a finished run whose file was edited meanwhile reports ERROR, exits 4 and keeps the edit", async () => { + // Row 12 on the normal path: the fixture test edits the file mid-run. + const original = readFileSync(builtTarget); + const originalSha = shaOf(builtTarget); + try { + const result = await run(builtArgs(builtTarget), { + PI_LENS_MUTATION_EDIT: builtTarget, + }); + expect(result.code).toBe(4); + expect(result.stdout).toContain("ERROR"); + expect(result.stdout).toContain(journalOf(builtTarget)); + expect(readFileSync(builtTarget, "utf8")).toMatch(/legitimate edit\n$/); + expect(readFileSync(journalOf(builtTarget), "utf8")).toContain(originalSha); + } finally { + forceRestore(builtTarget, original); + } +}, 60_000); + +it.each([ + ["a regex literal", "mutation-regex-only-marker"], + ["a template literal's text", "mutation-template-only-marker"], +])( + "refuses a needle that only %s contains, unless --allow-comment", + async (_name, needle) => { + // Round-2 MEDIUM: a regex-literal needle was accepted and reported SURVIVED. + const before = digest(); + const refused = await run([ + cli, + "--built", + "--file", + target, + "--find", + needle, + "--replace", + "changed", + "--tests", + target, + ]); + expect(refused.code).toBe(1); + expect(refused.stdout).toContain("comments/strings/regex literals"); + expect(digest()).toBe(before); + const allowed = await run([ + cli, + "--allow-comment", + "--built", + "--file", + target, + "--find", + needle, + "--replace", + "changed", + "--tests", + target, + ]); + expect(allowed.stdout).toContain("SURVIVED"); + expect(digest()).toBe(before); + }, + 60_000, +); + +it.each([ + [ + "code after a regex literal holding a quote", + "mutationAfterRegex = true", + "mutationAfterRegex = false", + ], + ["code across a division", "8 / 2", "9 / 3"], + [ + "code inside a template substitution", + "mutationQuotient + 1", + "mutationQuotient + 2", + ], +])( + "accepts a needle in %s", + async (_name, needle, replacement) => { + // A scanner that treats a slash as a regex start, or a quote in a regex as a + // string start, blanks real code and refuses a valid mutation. + const before = digest(); + const result = await run([ + cli, + "--built", + "--file", + target, + "--find", + needle, + "--replace", + replacement, + "--tests", + target, + ]); + expect(result.code).toBe(0); + expect(result.stdout).toContain("SURVIVED"); + expect(digest()).toBe(before); + }, + 60_000, +); + +it("--restore --file restores the compiled twin along with the source", async () => { + // The twin carries its own journal, created before the build and completed + // after it. Round 2 restored only the named file and left the twin's journal + // to block the next run. A leaf client stands in for any built source: the + // serialized lane runs nothing else against it. + const source = "clients/freshness-cadence.ts"; + const twin = "clients/freshness-cadence.js"; + const sourceOriginal = readFileSync(source); + const twinOriginal = readFileSync(twin); const child = spawn( process.execPath, [ cli, "--file", - target, + source, "--find", - find, + "2_000", "--replace", - replace, + "2_001", "--tests", target, ], @@ -385,25 +834,25 @@ it("restores an orphan journal before the next normal invocation", async () => { stdio: ["ignore", "pipe", "ignore"], }, ); - await new Promise((resolve) => child.stdout?.once("data", resolve)); - child.kill("SIGKILL"); - await new Promise((resolve) => child.once("close", resolve)); - expect(digest()).not.toBe(before); - const { stdout } = await execFileAsync( - process.execPath, - [ - cli, - "--file", - target, - "--find", - find, - "--replace", - replace, - "--tests", - target, - ], - { cwd: root }, + const stdoutSeen = new Promise((resolve) => + child.stdout?.once("data", resolve), ); - expect(stdout).toContain("SURVIVED"); - expect(digest()).toBe(before); -}); + const closed = new Promise((resolve) => child.once("close", resolve)); + try { + await stdoutSeen; + child.kill("SIGKILL"); + await closed; + expect(readFileSync(source).equals(sourceOriginal)).toBe(false); + expect(readFileSync(twin).equals(twinOriginal)).toBe(false); + const restore = await run([cli, "--restore", "--file", source]); + expect(restore.code).toBe(0); + expect(restore.stdout).toContain("restored 2 mutation journal(s)"); + expect(readFileSync(source).equals(sourceOriginal)).toBe(true); + expect(readFileSync(twin).equals(twinOriginal)).toBe(true); + } finally { + child.kill("SIGKILL"); + await closed; + forceRestore(source, sourceOriginal); + forceRestore(twin, twinOriginal); + } +}, 60_000); From 5c8396d42ab96a28edbde9d68b3a62cd7c8bfc97 Mon Sep 17 00:00:00 2001 From: Apostolos Mantzaris Date: Wed, 7 Oct 2026 16:02:20 +0300 Subject: [PATCH 8/9] fix: close CI diff R3 gaps Handle unhandled-error deltas and skipped-only Vitest summaries. Add prescribed R3 witnesses for #4072. --- scripts/ci-test-diff.mjs | 10 +++++++++- tests/scripts/ci-test-diff.test.ts | 15 ++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/scripts/ci-test-diff.mjs b/scripts/ci-test-diff.mjs index bcb190fce..330103697 100644 --- a/scripts/ci-test-diff.mjs +++ b/scripts/ci-test-diff.mjs @@ -27,6 +27,7 @@ export function extractFailingTestIds(log) { export function summarizeLog(log, side = "job") { const failedMatch = OVERALL_TESTS_FAILED.exec(log); const passedMatch = log.match(/^\s*Tests\s+(\d+)\s+passed\b/m); + const skippedMatch = log.match(/^\s*Tests\s+(\d+)\s+skipped\b/m); const testsFailed = Number(failedMatch?.[1] ?? 0); const failedTestsHeader = Number( log.match(/\bFailed Tests\s+(\d+)\b/i)?.[1] ?? NaN, @@ -37,7 +38,7 @@ export function summarizeLog(log, side = "job") { const unhandledErrors = Number( log.match(/\bErrors\s+(\d+)\s+error(?:s)?\b/i)?.[1] ?? 0, ); - if (!failedMatch && !passedMatch) { + if (!failedMatch && !passedMatch && !skippedMatch) { throw new Error(`${side} log incomplete (no Vitest Tests summary)`); } if ( @@ -140,6 +141,13 @@ export function main(argv = process.argv.slice(2)) { const previous = previousReport.ids; const current = currentReport.ids; const diff = compareFailureSets(previous, current); + const newUnhandledErrors = Math.max( + currentReport.unhandledErrors - previousReport.unhandledErrors, + 0, + ); + for (let index = 1; index <= newUnhandledErrors; index += 1) { + diff.newFailures.push(`unhandled error ${index}`); + } console.log( `Input: ${jobA} tests=${previousReport.testsFailed} suites=${previousReport.suitesFailed} errors=${previousReport.unhandledErrors}; ${jobB} tests=${currentReport.testsFailed} suites=${currentReport.suitesFailed} errors=${currentReport.unhandledErrors}`, ); diff --git a/tests/scripts/ci-test-diff.test.ts b/tests/scripts/ci-test-diff.test.ts index f37b05858..e45c49efc 100644 --- a/tests/scripts/ci-test-diff.test.ts +++ b/tests/scripts/ci-test-diff.test.ts @@ -14,6 +14,7 @@ import { const fixture = (name: string) => fs.readFileSync(path.join("tests/fixtures/ci-test-diff", name), "utf8"); +// The green fixture is hand-composed in Vitest 5.0.3's real summary shape. describe("ci-test-diff failure extraction", () => { // Recurrence: #4072's Windows logs contain ANSI, CRLF, and Actions timestamps; // the tool must compare test identities rather than the aggregate failure count. @@ -99,6 +100,10 @@ describe("ci-test-diff failure extraction", () => { ).toMatchObject({ testsFailed: 1, suitesFailed: 0, unhandledErrors: 1 }); }); + it("accepts a skipped-only run as a zero-failure side", () => { + expect(validateLog("Tests 2 skipped\n").ids).toEqual([]); + }); + it("rejects a failure count with too few extracted IDs", () => { expect(() => validateLog( @@ -118,7 +123,11 @@ describe("ci-test-diff failure extraction", () => { const fixtureB = path.join(fixtureDir, "job-112734370876.log"); fs.writeFileSync( gh, - `#!/usr/bin/env node\nconst fs = require("node:fs");\nconst request = process.argv.find((value) => value.includes("/jobs/")) ?? "";\nconst id = request.match(/\\/jobs\\/(\\d+)\\//)?.[1];\nconst file = id === "0" ? null : id === "3" ? ${JSON.stringify(path.join(fixtureDir, "job-green-vitest.log"))} : id === "2" ? ${JSON.stringify(fixtureB)} : ${JSON.stringify(fixtureA)};\nif (file) process.stdout.write(fs.readFileSync(file, "utf8"));\n`, + `#!/usr/bin/env node\nconst fs = require("node:fs");\nconst request = process.argv.find((value) => value.includes("/jobs/")) ?? "";\nconst id = request.match(/\\/jobs\\/(\\d+)\\//)?.[1];\nconst file = id === "0" ? null : id === "3" ? ${JSON.stringify(path.join(fixtureDir, "job-green-vitest.log"))} : id === "4" ? ${JSON.stringify(path.join(scratch, "job-unhandled.log"))} : id === "2" ? ${JSON.stringify(fixtureB)} : ${JSON.stringify(fixtureA)};\nif (file) process.stdout.write(fs.readFileSync(file, "utf8"));\n`, + ); + fs.writeFileSync( + path.join(scratch, "job-unhandled.log"), + "Tests 1 passed\nErrors 1 error\n", ); fs.chmodSync(gh, 0o755); const env = { ...process.env, PATH: `${scratch}:${process.env.PATH}` }; @@ -134,6 +143,10 @@ describe("ci-test-diff failure extraction", () => { // A→GREEN is clean, while GREEN→B is NEW; direction is the CLI contract. expect(run("1", "3").status).toBe(0); expect(run("3", "2").status).toBe(1); + const unhandled = run("3", "4"); + expect(unhandled.status).toBe(1); + expect(unhandled.stdout).toContain("NEW (1)"); + expect(unhandled.stdout).toContain("unhandled error 1"); fs.rmSync(scratch, { recursive: true, force: true }); }); }); From b07c24ebd1f73c6bd6d692e212ac4040e5967227 Mon Sep 17 00:00:00 2001 From: Apostolos Mantzaris Date: Wed, 7 Oct 2026 16:07:57 +0300 Subject: [PATCH 9/9] docs(fixer): document the stuck-journal and live --restore limits Orchestrator decisions 1-2 on #4075 (verify r4 rows 6/9): a journal left after a crash at the original bytes needs a manual delete; --restore is crash recovery only. Refs #4075 Co-Authored-By: Claude Opus 5.5 --- docs/pi-lens-fixer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pi-lens-fixer.md b/docs/pi-lens-fixer.md index 69ad955a9..961498181 100644 --- a/docs/pi-lens-fixer.md +++ b/docs/pi-lens-fixer.md @@ -60,7 +60,7 @@ mechanics"; a brief supplies only `lane=`, scope, and the grant. ## Evidence -- Use `scripts/mutate.mjs` for bounded hand mutations; it restores the target automatically, but only while the file still holds the mutated bytes. A leftover journal (`.mutate-backup`) blocks the next run on that file; recover with `--restore`, which refuses and prints the three hashes when the file was edited since. +- Use `scripts/mutate.mjs` for bounded hand mutations; it restores the target automatically, but only while the file still holds the mutated bytes. A leftover journal (`.mutate-backup`) blocks the next run on that file; recover with `--restore`, which refuses and prints the three hashes when the file was edited since. If a crash left the file already at its original bytes, `--restore` also refuses; check the printed hashes and delete the journal by hand. `--restore` is crash recovery only: run against a live `mutate.mjs` run on the same file, it pulls that run's mutation, and that run then reports ERROR (exit 4). - Witness rule (ADR 0007): #1605 owns the witness lanes, and their fixtures live under `tests/fixtures/witness//`.