diff --git a/apps/desktop/bench/README.md b/apps/desktop/bench/README.md new file mode 100644 index 00000000..d1c5a694 --- /dev/null +++ b/apps/desktop/bench/README.md @@ -0,0 +1,31 @@ +# CF-8 retention reproduction + +These opt-in benchmarks reproduce the reviewed history/log workloads for #281 through existing Electron/main/native-adapter fixtures. They are outside the ordinary E2E directory and do not run in routine CI. No real model or model server is used; the synthetic CLI reports command-shaped events without executing the displayed command. Installed apps and user profiles are not replaced. + +From an owned worktree with the pinned pnpm dependencies installed, fetch both exact source objects before running. The current comparison source is PR #503’s pre-squash head, so a fresh clone of `main` may not contain it. These commands fetch source only; they do not switch or modify the worktree: + +```sh +git fetch origin 89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1 44fb41eecf718cf6648b7c8ee95cab1e85e0e072 +node scripts/cf8-retention.mjs \ + --output /absolute/private/new-retention-directory \ + --baseline 89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1 \ + --current 44fb41eecf718cf6648b7c8ee95cab1e85e0e072 +``` + +The output parent must exist; the final directory must be new. The CLI creates it privately, refuses existing files/directories and dangling symlinks, and never retries or deletes a failed run. Source exports and generated drivers stay in a new owned `apps/desktop/.probes/cf8-retention-*` directory. Each source’s seeded homes and repositories live under its private `fixtures/` directory, with locators written before further fixture setup. Worker exit cleanup is disabled only for this benchmark. The existing seeding helper uses that private root synchronously, then the ordinary runtime temporary-directory context is restored before app launch. All inputs, build logs, manifests, raw measurement logs and partial/final observations remain retained for review and guarded worktree cleanup. + +Both full commit identities are mandatory. Sources are exported and verified against their Git blobs, built sequentially and rechecked before measurement. They share the driver's already-installed pinned dependencies and freshly built common core, so all three core source trees must match and the driver's core must be clean. Before building, the desktop’s installed core alias and resolved package entry must bind to that driver core; package metadata and the built entry are recorded and rechecked before launches. This compares rebuilt source, not historical shipped binaries or a recreation of the historical lockfile. These named-Mac workloads currently require macOS; offline hash verification is separate. + +After both builds finish, current-source history/log cases run before baseline-source cases, serially, with one worker, no retries and a first-failure stop. Each source has three fresh-app history replicates (three 200-turn/1,400-item histories, three warm opens and 63 measured opens) and three fresh-app log replicates (one warm-up and 21 measured streams, each 3 MiB logical output in 48 deltas). Renderer GC is forced only at matched warm detached endpoints; intermediate renderer and all main snapshots use natural GC. The one/five-second detach samples are declared observation times, not readiness waits. The legacy-only shallow ASCII read and expected full-output violation remain explicit; current 256 KiB preview/IPC assertions are unchanged. + +`--prepare-only` performs source/build/driver preparation without launching an app. Recheck retained inputs without executing a workload with: + +```sh +node scripts/cf8-retention.mjs --verify /absolute/private/new-retention-directory/current-manifest.json +``` + +Verification binds source/build/common-core/dependency links, installed core package/entry identity and the original/generated driver files to their recorded hashes. Driver paths must remain regular, canonical paths under the declared driver root; matching-byte symlinks cannot redirect relative imports. Measurements separately report the target source and the diagnostic driver's checkout identity; the latter is never presented as the exported application's Git HEAD. The manifest records uncommitted driver bytes explicitly if preparation precedes an implementation commit. + +Successful execution requires all twelve original cases to pass, all six observations per source to report complete state and returned app-close calls, and source/build/driver checks to remain valid afterwards. The receipts contain host/runtime identities, timestamps, load averages, per-replicate data and first failures. Local paths and process IDs remain private; public aggregates must omit them without changing numeric observations. + +Numbers vary with host load, dependency/runtime versions and group ordering. Two animation frames are a sampling point rather than exhaustive settlement; sampled values are not operation high-water marks. There is no new memory or latency budget, universal ceiling, causal improvement, leak-freedom, real-provider, native-platform or human-accessibility claim. This tooling addresses the portable measurement procedure; #281's visual inventory and remaining native/device/human/child requirements remain separate. diff --git a/apps/desktop/bench/retention-env.d.ts b/apps/desktop/bench/retention-env.d.ts new file mode 100644 index 00000000..d76b4c9f --- /dev/null +++ b/apps/desktop/bench/retention-env.d.ts @@ -0,0 +1,3 @@ +import type { ModexBridge } from "../src/shared/types"; +declare global { interface Window { modex?: ModexBridge; } } +export {}; diff --git a/apps/desktop/bench/retention/history-fixture.ts b/apps/desktop/bench/retention/history-fixture.ts new file mode 100644 index 00000000..b62253cb --- /dev/null +++ b/apps/desktop/bench/retention/history-fixture.ts @@ -0,0 +1,21 @@ +const TURNS = 200; +export function longTranscript(threadId: string): Record[] { + const out: Record[] = []; + const at = new Date(Date.now() - TURNS * 60_000).toISOString(); + for (let turn = 0; turn < TURNS; turn++) { + const user = `u-${turn}`; + const origin = (item: string) => ({ thread: threadId, turn: user, attempt: `a-${turn}`, backend: "codex", native: { runtime: "R", thread: "nt", turn: `nu-${turn}`, item } }); + out.push({ id: user, kind: "user", text: `Request ${turn}: tidy the module and run its tests.`, at }); + out.push({ id: `r-${turn}`, kind: "thinking", text: `Plan for ${turn}: ${"read the module, then test it. ".repeat(10)}`, reasoning: "summary", status: "done", outcome: "succeeded", durationMs: 2000, origin: origin(`r-${turn}`), at }); + out.push({ id: `c-${turn}`, kind: "assistant", text: `Looking at module ${turn}. ${"Reading the files first. ".repeat(8)}`, phase: "commentary", nativePhase: "commentary", outcome: "succeeded", origin: origin(`c-${turn}`), at }); + for (let k = 0; k < 3; k++) { + const id = `t-${turn}-${k}`; + out.push({ id, kind: "tool", name: "shell", title: `$ npm test -- part ${k}`, args: { command: `npm test -- part ${k}` }, status: "done", ok: true, outcome: "succeeded", + exec: { command: `/bin/zsh -lc 'npm test -- part ${k}'`, cwd: "/repo" }, exitCode: 0, output: `ok ${turn}.${k}\n`.repeat(400), outputBytes: 4000, durationMs: 1200, origin: origin(id), at }); + } + out.push({ id: `f-${turn}`, kind: "assistant", text: `Answer ${turn}.\n\n- Tidied module ${turn}.\n- Tests pass.\n\n\`\`\`ts\nexport const value${turn} = ${turn};\n\`\`\`\n${"More detail on the change. ".repeat(20)}`, + phase: "final", nativePhase: "final_answer", outcome: "succeeded", origin: origin(`f-${turn}`), at }); + } + return out; +} + diff --git a/apps/desktop/bench/retention/history.spec.ts b/apps/desktop/bench/retention/history.spec.ts new file mode 100644 index 00000000..02f5e7c2 --- /dev/null +++ b/apps/desktop/bench/retention/history.spec.ts @@ -0,0 +1,98 @@ +import { test, expect } from "@playwright/test"; +import fs from "node:fs"; +import path from "node:path"; +import os from "node:os"; +import crypto from "node:crypto"; +import { execFileSync } from "node:child_process"; +import { pathToFileURL } from "node:url"; +import { appDir, launch, seedHome, tid, items } from "./target-support"; +import { longTranscript } from "./history-fixture"; + +import { root, sourceHead, driverHead, driverRoot, manifest, verifySource } from "./source-guard"; +for (let replicate = 1; replicate <= 3; replicate++) { + test(`three-history natural-GC observations replicate ${replicate}`, async () => { + const { home, repo } = seedHome(); + const receipt = path.join(root, `history-${replicate}.json`); + expect(fs.existsSync(receipt)).toBe(false); + fs.writeFileSync(receipt, JSON.stringify({ state: "fixture-seeded", sourceHead, sourceRole: manifest.role, fixture: { home, repo }, at: new Date().toISOString() }, null, 2) + "\n", { flag: "wx", mode: 0o600 }); + const now = new Date().toISOString(); + const ids = ["history-a", "history-b", "history-c"]; + const files = ids.map(id => path.join(home, "app", "threads", id + ".json")); + const digest = (file: string) => crypto.createHash("sha256").update(fs.readFileSync(file)).digest("hex"); + for (const [index, id] of ids.entries()) { + const saved = longTranscript(id); + saved[0]!.text = `Distinct history ${id}: tidy module group ${index}.`; + fs.writeFileSync(files[index]!, JSON.stringify(saved)); + } + const beforeHashes = files.map(digest); + const statePath = path.join(home, "app", "state.json"); + const state = JSON.parse(fs.readFileSync(statePath, "utf8")); + state.threads = ids.map(id => ({ id, projectId: "p1", title: id, titleSource: "manual", createdAt: now, updatedAt: now, cwd: repo, backend: "codex", mode: "chat", plan: false, model: "", status: "idle" })); + fs.writeFileSync(statePath, JSON.stringify(state)); + const out: Record = { diagnosticDriverHead: execFileSync("git", ["rev-parse", "HEAD"], { cwd: driverRoot, encoding: "utf8" }).trim(), sourceHead, sourceRole: manifest.role, fixture: { home, repo }, replicate, startedAt: now, state: "started", samples: [], + workload: { histories: 3, shape: "200 turns/1400 items each; distinct thread provenance and first request, otherwise same deterministic shape", warmupOpens: 3, measuredOpens: 63, opensPerHistory: 21, savedBytes: files.map(f => fs.statSync(f).size), savedSha256: beforeHashes }, + host: { cpu: os.cpus()[0]?.model, cores: os.cpus().length, memoryBytes: os.totalmem(), release: os.release(), arch: os.arch(), node: process.version, loadAverage: os.loadavg() }, + instrumentation: "Renderer forced GC only after three-history warmup and at final detached endpoint. All 63 per-open samples and timed post-detach observations are natural-GC snapshots. Main always natural GC. Two RAF plus positive last-answer/nondeferred checks are a sampling point, not exhaustive async settlement. Trace off. No latency/memory-ceiling/leak-freedom or historical-improvement claim." }; + expect(out.diagnosticDriverHead).toBe(driverHead); + const persist = () => fs.writeFileSync(receipt, JSON.stringify(out, null, 2) + "\n"); persist(); + let opened: Awaited> | undefined; + try { + out.sourceVerification = verifySource(); + expect(appDir).toBe(manifest.appDir); + opened = await launch(home); + const { app, page } = opened; + const cdp = await page.context().newCDPSession(page); + out.native = await app.evaluate(({ app, BrowserWindow }) => ({ appVersion: app.getVersion(), electron: process.versions.electron, chromium: process.versions.chrome, mainPid: process.pid, executablePath: process.execPath, appPath: app.getAppPath(), userData: app.getPath("userData"), rendererPids: BrowserWindow.getAllWindows().map(w => w.webContents.getOSProcessId()) })); + expect(out.native.appPath).toBe(manifest.appDir); expect(out.native.appVersion).toBe(manifest.appVersion); + out.document = await page.evaluate(() => location.href); expect(out.document).toBe(pathToFileURL(path.join(appDir, "dist/renderer/index.html")).href); + const observe = async (phase: string, forcedGc = false) => { + await page.evaluate(() => new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(() => resolve())))); + if (forcedGc) await cdp.send("HeapProfiler.collectGarbage"); + const heap = await cdp.send("Runtime.getHeapUsage"); + const dom = await cdp.send("Memory.getDOMCounters"); + const main = await app.evaluate(async ({ app }) => ({ pid: process.pid, node: process.memoryUsage(), nativeKiB: await process.getProcessMemoryInfo(), metrics: app.getAppMetrics() })); + return { at: new Date().toISOString(), phase, forcedGc, heap, dom, main, renderedItems: await items(page).count(), selectedThreadIds: await page.locator('[data-testid="thread-row"][aria-current="true"]').evaluateAll(rows => rows.map(row => row.getAttribute("data-thread-id"))) }; + }; + const detach = async () => { await page.keyboard.press("Meta+n"); await expect(tid(page, "draft-view")).toBeVisible(); return Date.now(); }; + const open = async (id: string) => { + await detach(); + const row = page.locator(`[data-testid="thread-row"][data-thread-id="${id}"]`); + await row.getByRole("button", { name: id, exact: true }).click(); + await expect(row).toHaveAttribute("aria-current", "true"); + await expect(items(page, "user").first()).toContainText(`Distinct history ${id}:`); + const last = items(page, "assistant").last(); + await expect(last).toContainText("Answer 199."); + await expect(last.locator("[data-markdown-deferred]")).toHaveCount(0); + await expect(items(page)).toHaveCount(1400); + }; + out.cold = await observe("cold draft natural"); + for (const id of ids) await open(id); + await detach(); + out.warmDetachedBefore = await observe("after warming all three histories, detached", true); persist(); + for (let index = 0; index < 63; index++) { + const id = ids[index % ids.length]!; + await open(id); + out.samples.push({ history: id, open: index + 1, ...await observe(`natural open ${index + 1}`) }); persist(); + } + const detachedAt = await detach(); + out.detachTimeOrigin = "draft-view positively observed, before immediate measurement"; + out.detachedNatural = await observe("detached, immediate natural"); persist(); + out.detachedTimedNatural = []; + for (const intervalMs of [1000, 5000]) { + // A declared measurement time point, not a readiness wait or retry. + await new Promise(resolve => setTimeout(resolve, Math.max(0, detachedAt + intervalMs - Date.now()))); + out.detachedTimedNatural.push({ requestedAfterDetachMs: intervalMs, actualAfterDetachMs: Date.now() - detachedAt, ...await observe(`detached natural +${intervalMs}ms`) }); persist(); + } + out.warmDetachedAfter = await observe("final warm detached endpoint", true); + out.savedAfterSha256 = files.map(digest); expect(out.savedAfterSha256).toEqual(beforeHashes); + expect(out.samples).toHaveLength(63); expect(out.samples.every((s: any) => !s.forcedGc && s.renderedItems === 1400 && s.selectedThreadIds.length === 1 && s.selectedThreadIds[0] === s.history)).toBe(true); + expect(out.warmDetachedBefore.renderedItems).toBe(0); expect(out.warmDetachedAfter.renderedItems).toBe(0); + out.state = "observations-complete"; persist(); + } catch (error) { out.state = "failed"; out.failure = String(error); persist(); throw error; } + finally { + try { if (opened) { await opened.app.close(); out.appClose = "returned"; } else out.appClose = "launch returned no app handle"; } + catch (error) { out.appClose = "failed"; out.closeError = String(error); throw error; } + finally { out.finishedAt = new Date().toISOString(); persist(); } + } + }); +} diff --git a/apps/desktop/bench/retention/log-fixture.ts b/apps/desktop/bench/retention/log-fixture.ts new file mode 100644 index 00000000..00cc5e93 --- /dev/null +++ b/apps/desktop/bench/retention/log-fixture.ts @@ -0,0 +1,57 @@ +import fs from "node:fs"; +import path from "node:path"; +export const CHUNK = "x".repeat(64 * 1024 - 1) + "\n"; +export const CHUNKS = 48; +export const PREVIEW = 256 * 1024; +// Canonical synthetic CLI plus local counter observations; never executes the emitted shell command. +export function fakeCodex(dir: string): string { + const cli = path.join(dir, "codex-stream.cjs"); + fs.writeFileSync(cli, `#!${process.execPath} +if (process.argv.includes('--version')) { console.log('codex-cli 0.163.0'); process.exit(0); } +if (process.argv.includes('login') || process.argv.includes('auth')) { console.log('Logged in using ChatGPT'); process.exit(0); } +const emit = (o) => process.stdout.write(JSON.stringify(o) + '\\n'); +const audit = (kind, fields) => require('node:fs').appendFileSync(${JSON.stringify(path.join(dir, "stream-calls.jsonl"))}, JSON.stringify({kind,pid:process.pid,...fields}) + '\\n'); +const chunk = ${JSON.stringify(CHUNK)}; +let turn = 0; +const cwds = new Map(); +require('node:readline').createInterface({ input: process.stdin }).on('line', (line) => { + const msg = JSON.parse(line); + const p = msg.params || {}; + if (msg.method === 'initialize') return emit({ id: msg.id, result: { userAgent: 'codex-stream/0.163.0' } }); + if (msg.method === 'initialized') return; + if (msg.method === 'account/read') return emit({ id: msg.id, result: { account: { type: 'chatgpt' }, requiresOpenaiAuth: true } }); + if (msg.method === 'model/list') return emit({ id: msg.id, result: { data: [{ id: 'fixture', model: 'fixture', displayName: 'Fixture', isDefault: true }], nextCursor: null } }); + if (msg.method === 'thread/start' || msg.method === 'thread/resume') { + const id = p.threadId || 'thr-' + cwds.size; + cwds.set(id, p.cwd || ''); + return emit({ id: msg.id, result: { thread: { id } } }); + } + if (msg.method === 'turn/start') { + const id = 'turn-' + (++turn); + const n = (method, params) => emit({ method, params: { threadId: p.threadId, turnId: id, ...params } }); + emit({ id: msg.id, result: { turn: { id } } }); + if (/modex-title-/.test(cwds.get(p.threadId) || '')) { + audit('title-start', {threadId:p.threadId,turnId:id}); + n('item/completed', { item: { id: 'name-' + turn, type: 'agentMessage', text: 'Stream', phase: 'final_answer' } }); + return emit({ method: 'turn/completed', params: { threadId: p.threadId, turn: { id, status: 'completed', error: null } } }); + } + audit('coding-start', {threadId:p.threadId,turnId:id}); + emit({ method: 'turn/started', params: { threadId: p.threadId, turn: { id } } }); + const command = "/bin/zsh -lc 'yes | head -c 3145728'"; + n('item/started', { item: { type: 'commandExecution', id: 'c1', command, cwd: '/repo', status: 'inProgress' } }); + let sent = 0; + const next = () => { + if (sent < ${CHUNKS}) { sent++; n('item/commandExecution/outputDelta', { itemId: 'c1', delta: chunk }); return setTimeout(next, 10); } + audit('coding-finish', {threadId:p.threadId,turnId:id,deltas:sent,rawBytes:Buffer.byteLength(chunk)*sent}); + n('item/completed', { item: { type: 'commandExecution', id: 'c1', command, cwd: '/repo', status: 'completed', exitCode: 0, aggregatedOutput: chunk.repeat(${CHUNKS}) } }); + n('item/completed', { item: { type: 'agentMessage', id: 'm1', text: 'Streamed the log.', phase: 'final_answer' } }); + emit({ method: 'turn/completed', params: { threadId: p.threadId, turn: { id, status: 'completed', error: null } } }); + }; + return setTimeout(next, 10); + } + if (msg.id !== undefined && msg.method) emit({ id: msg.id, error: { code: -32601, message: 'fixture does not implement ' + msg.method } }); +}); +`, { mode: 0o755 }); + return cli; +} + diff --git a/apps/desktop/bench/retention/playwright.config.ts b/apps/desktop/bench/retention/playwright.config.ts new file mode 100644 index 00000000..83176e6e --- /dev/null +++ b/apps/desktop/bench/retention/playwright.config.ts @@ -0,0 +1,10 @@ +import { defineConfig } from "@playwright/test"; +import path from "node:path"; +const output = process.env.MODEX_RETENTION_OUTPUT; +if (!output || !path.isAbsolute(output)) throw new Error("An explicit private MODEX_RETENTION_OUTPUT is required."); +export default defineConfig({ + testDir: ".", testMatch: ["history.spec.ts", "stream.spec.ts"], workers: 1, + timeout: 180_000, expect: { timeout: 15_000 }, retries: 0, maxFailures: 1, + reporter: [["list"], ["json", { outputFile: path.join(output, "report.json") }]], + outputDir: path.join(output, "artifacts"), use: { trace: "off" }, +}); diff --git a/apps/desktop/bench/retention/ported-from.json b/apps/desktop/bench/retention/ported-from.json new file mode 100644 index 00000000..b149b870 --- /dev/null +++ b/apps/desktop/bench/retention/ported-from.json @@ -0,0 +1,20 @@ +{ + "existingReviewedDrivers": [ + { + "driver": "cf8-natural-retention-44fb-first-pass-archive/retention.spec.ts", + "sha256": "1888e3cda3b695cdb5fc77487e27ee027c86bd616dfc99b3d967a1bcf1e4cc9a" + }, + { + "driver": "cf8-log-retention-44fb-first-pass-archive/stream.spec.ts", + "sha256": "023a9ac36028ae873438f140b0eb486dcdca2c3c54634ed461a6a21e84b545d9" + }, + { + "driver": "cf8-historical-controls-89c-first-pass-archive/stream.spec.ts", + "sha256": "e6a0cd06f6d8677ecb7eaf55d6e1712005642f7ec1bc99d698a77e294280c033" + } + ], + "historyFixtureSha256": "4efa44b94816aacc724ce339ddfc390751d42d73598174e3a716b09cb4bca109", + "logFixtureSha256": "82f18ea8a875e70ef7bc1e520788cad317263b0d82448176f8915a137b562a24", + "workloadsAndBudgetsChanged": false, + "parameterized": "source/output/support paths, source version/driver identity, explicit legacy/current output assertions" +} diff --git a/apps/desktop/bench/retention/source-guard.ts b/apps/desktop/bench/retention/source-guard.ts new file mode 100644 index 00000000..a3d3c72e --- /dev/null +++ b/apps/desktop/bench/retention/source-guard.ts @@ -0,0 +1,21 @@ +import path from "node:path"; +import { execFileSync } from "node:child_process"; +import { verifyManifest } from "../../../../scripts/lib/cf8-retention.mjs"; + +const manifestFile = process.env.MODEX_RETENTION_MANIFEST; +const output = process.env.MODEX_RETENTION_OUTPUT; +const expectedManifest = process.env.MODEX_RETENTION_MANIFEST_SHA256; +if (!manifestFile || !output || !path.isAbsolute(output) || !expectedManifest || !/^[0-9a-f]{64}$/.test(expectedManifest)) throw new Error("Run the explicit retention CLI with new private output; no workload is enabled by default."); +export const manifest = verifyManifest(manifestFile, expectedManifest); +export const root = output; +export const sourceHead: string = manifest.source.sha; +export const driverHead: string = manifest.driver.head; +export const driverRoot: string = manifest.dependencies.root; +export const legacy = manifest.role === "baseline"; + +export function verifySource() { + const checked = verifyManifest(manifestFile!, expectedManifest!); + const actualHead = execFileSync("git", ["rev-parse", "HEAD"], { cwd: driverRoot, encoding: "utf8" }).trim(); + if (actualHead !== driverHead) throw new Error("Diagnostic driver checkout changed; retained source/build inputs do not authorize a new driver."); + return { role: checked.role, source: checked.source.sha, tree: checked.source.tree, sourceFilesVerified: checked.source.files.length, builtFilesVerified: checked.build.files.length, commonCoreFilesVerified: checked.dependencies.coreFiles.length, kind: checked.kind, driverHeadMeaning: "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" }; +} diff --git a/apps/desktop/bench/retention/stream.spec.ts b/apps/desktop/bench/retention/stream.spec.ts new file mode 100644 index 00000000..c525656e --- /dev/null +++ b/apps/desktop/bench/retention/stream.spec.ts @@ -0,0 +1,118 @@ +import { test, expect } from "@playwright/test"; +import fs from "node:fs"; +import path from "node:path"; +import os from "node:os"; +import crypto from "node:crypto"; +import { execFileSync } from "node:child_process"; +import { pathToFileURL } from "node:url"; +import { appDir, launch, seedHome, tid, items } from "./target-support"; +import { fakeCodex, CHUNK, CHUNKS, PREVIEW } from "./log-fixture"; + +import { root, sourceHead, driverHead, driverRoot, manifest, legacy, verifySource } from "./source-guard"; +for (let replicate = 1; replicate <= 3; replicate++) { + test(`repeated synthetic log streaming memory replicate ${replicate}`, async () => { + const { home, repo } = seedHome({ default_backend: "codex" }); + const receipt = path.join(root, `stream-${replicate}.json`); + expect(fs.existsSync(receipt)).toBe(false); + fs.writeFileSync(receipt, JSON.stringify({ state: "fixture-seeded", sourceHead, sourceRole: manifest.role, fixture: { home, repo }, at: new Date().toISOString() }, null, 2) + "\n", { flag: "wx", mode: 0o600 }); + const callLog = path.join(home, "stream-calls.jsonl"); fs.writeFileSync(callLog, "", { flag: "wx" }); + const cli = fakeCodex(home); + const retainedCli = path.join(root, `stream-${replicate}-cli.cjs`); + fs.copyFileSync(cli, retainedCli, fs.constants.COPYFILE_EXCL); + const stateFile = path.join(home, "app", "state.json"); + const state = JSON.parse(fs.readFileSync(stateFile, "utf8")); state.settings.codex_bin = cli; fs.writeFileSync(stateFile, JSON.stringify(state)); + const calls = (): any[] => fs.readFileSync(callLog, "utf8").split("\n").filter(Boolean).map(line => JSON.parse(line)); + const out: Record = { startedAt: new Date().toISOString(), diagnosticDriverHead: execFileSync("git", ["rev-parse", "HEAD"], { cwd: driverRoot, encoding: "utf8" }).trim(), sourceHead, sourceRole: manifest.role, replicate, state: "started", samples: [], + workload: { warmupStreams: 1, measuredStreams: 21, bytesPerStream: Buffer.byteLength(CHUNK) * CHUNKS, deltasPerStream: CHUNKS, deltaSpacingMs: 10, openedPreviewBytes: legacy ? null : PREVIEW, expectedLegacyOutputViolation: legacy }, + fixture: { home, repo, scriptSha256: crypto.createHash("sha256").update(fs.readFileSync(cli)).digest("hex"), retainedScript: retainedCli, synthetic: true }, + host: { cpu: os.cpus()[0]?.model, cores: os.cpus().length, memoryBytes: os.totalmem(), release: os.release(), arch: os.arch(), node: process.version, loadAverage: os.loadavg() }, + instrumentation: "Existing synthetic native-CLI fixture, no real inference or emitted command execution. Per-thread main IPC observer calls original send. All per-stream renderer/main memory samples natural; renderer GC only matched warm detached before/after endpoints. Timed detached natural samples at declared1s/5s. Two RAF sampling is not exhaustive settlement. No latency/memory-ceiling/leak-freedom/historical improvement or fullCF8 acceptance claim. Trace off." }; + expect(out.diagnosticDriverHead).toBe(driverHead); + const persist = () => fs.writeFileSync(receipt, JSON.stringify(out, null, 2) + "\n"); persist(); + let opened: Awaited> | undefined; + try { + out.sourceVerification = verifySource(); + expect(appDir).toBe(manifest.appDir); + opened = await launch(home); const { app, page } = opened; + const cdp = await page.context().newCDPSession(page); + out.native = await app.evaluate(({ app, BrowserWindow }) => ({ appVersion: app.getVersion(), electron: process.versions.electron, chromium: process.versions.chrome, mainPid: process.pid, executablePath: process.execPath, appPath: app.getAppPath(), userData: app.getPath("userData"), rendererPids: BrowserWindow.getAllWindows().map(w => w.webContents.getOSProcessId()) })); + expect(out.native.appPath).toBe(manifest.appDir); expect(out.native.appVersion).toBe(manifest.appVersion); out.document = await page.evaluate(() => location.href); expect(out.document).toBe(pathToFileURL(path.join(appDir, "dist/renderer/index.html")).href); + await app.evaluate(({ BrowserWindow }) => { + const g = globalThis as any; g.__streamMemory = { byThread: {} }; + const contents = BrowserWindow.getAllWindows()[0]!.webContents; const original = contents.send.bind(contents); + contents.send = (channel: string, ...args: unknown[]) => { + if (channel === "thread:event") { + const event = args[0] as any; + const m = g.__streamMemory.byThread[event.threadId] ??= { bytes: 0, events: 0, largestEvent: 0, largestOutput: 0, first: 0, idle: 0 }; + const size = Buffer.byteLength(JSON.stringify(event)); m.bytes += size; m.events++; m.largestEvent = Math.max(m.largestEvent, size); + const output = event.item?.output ?? event.patch?.output; + if (typeof output === "string") m.largestOutput = Math.max(m.largestOutput, Buffer.byteLength(output)); + if (!m.first && (event.type === "item" || event.type === "item_update")) m.first = performance.now(); + if (event.type === "status" && event.status === "idle" && m.first && !m.idle) m.idle = performance.now(); + } + return original(channel, ...args); + }; + }); + const observe = async (phase: string, forcedGc = false) => { + await page.evaluate(() => new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(() => resolve())))); + if (forcedGc) await cdp.send("HeapProfiler.collectGarbage"); + return { at: new Date().toISOString(), phase, forcedGc, heap: await cdp.send("Runtime.getHeapUsage"), dom: await cdp.send("Memory.getDOMCounters"), + main: await app.evaluate(async ({ app }) => ({ pid: process.pid, node: process.memoryUsage(), nativeKiB: await process.getProcessMemoryInfo(), metrics: app.getAppMetrics() })), + renderedItems: await items(page).count(), selectedThreadIds: await page.locator('[data-testid="thread-row"][aria-current="true"]').evaluateAll(rows => rows.map(row => row.getAttribute("data-thread-id"))) }; + }; + const detach = async () => { await page.keyboard.press("Meta+n"); await expect(tid(page, "draft-view")).toBeVisible(); return Date.now(); }; + const stream = async (cycle: number) => { + await detach(); const beforeIds = await page.evaluate(async () => (await window.modex!.invoke("state:get", undefined)).threads.map(t => t.id)); + const marker = `Print a long log for private memory cycle ${cycle}`; + await tid(page, "composer-input").fill(marker); const sentAt = Date.now(); await page.keyboard.press("Meta+Enter"); + await expect(items(page, "user").first()).toContainText(marker); await expect(items(page, "assistant").last()).toContainText("Streamed the log.", { timeout: 60000 }); + const selected = page.locator('[data-testid="thread-row"][aria-current="true"]'); await expect(selected).toHaveCount(1); + const threadId = await selected.getAttribute("data-thread-id"); expect(threadId).toBeTruthy(); expect(beforeIds).not.toContain(threadId); + await expect.poll(() => app.evaluate(({}, id) => (globalThis as any).__streamMemory.byThread[id!]?.idle ?? 0, threadId)).toBeGreaterThan(0); + const main = await app.evaluate(({}, id) => ({ ...(globalThis as any).__streamMemory.byThread[id!] }), threadId); + if (legacy) { + expect(main.largestOutput).toBe(Buffer.byteLength(CHUNK) * CHUNKS); + expect(main.largestOutput).toBeGreaterThan(PREVIEW); + } else { + expect(main.largestOutput).toBeLessThanOrEqual(PREVIEW); expect(main.bytes).toBeLessThan(CHUNKS * (PREVIEW + 4096)); + } + await tid(page, "turn-label").last().click(); const tool = items(page, "tool").filter({ hasText: "yes | head" }); await expect(tool).toHaveCount(1); + await tid(tool, "item-toggle").click(); + let renderedOutputAsciiBytes: number | undefined; + if (legacy) { + await expect(tid(tool, "tool-output")).toBeVisible(); await expect(tid(tool, "tool-truncated")).toHaveCount(0); + // Retained legacy-only shallow read: avoid copying/encoding its full ASCII string. + renderedOutputAsciiBytes = await tid(tool, "tool-output").evaluate(el => { + const walker = document.createTreeWalker(el, NodeFilter.SHOW_TEXT); let size = 0; + for (let node = walker.nextNode(); node; node = walker.nextNode()) size += (node as Text).length; + return size; + }); + expect(renderedOutputAsciiBytes).toBe(Buffer.byteLength(CHUNK) * CHUNKS); + } else await expect(tid(tool, "tool-truncated")).toHaveText("Showing the last 256 KB of 3.0 MB."); + const native = calls(); const starts = native.filter(c => c.kind === "coding-start"); const finishes = native.filter(c => c.kind === "coding-finish"); + expect(starts).toHaveLength(cycle + 1); expect(finishes).toHaveLength(cycle + 1); expect(finishes.every(c => c.deltas === CHUNKS && c.rawBytes === Buffer.byteLength(CHUNK) * CHUNKS)).toBe(true); + return { cycle, threadId, marker, renderedOutputAsciiBytes, expectedLegacyOutputViolation: legacy, mainIpc: main, fixtureCodingStarts: starts.length, fixtureCodingFinishes: finishes.length, sendToAnswerAndPreviewObservedMs: Date.now() - sentAt, memory: await observe(`natural stream ${cycle}`) }; + }; + out.cold = await observe("cold draft natural"); out.warmup = await stream(0); await detach(); + out.warmDetachedBefore = await observe("warm detached baseline", true); persist(); + for (let cycle = 1; cycle <= 21; cycle++) { out.samples.push(await stream(cycle)); persist(); } + const detachedAt = await detach(); out.detachTimeOrigin = "draft positively observed before immediate sample"; + out.detachedNatural = await observe("detached immediate natural"); out.detachedTimedNatural = []; + for (const intervalMs of [1000, 5000]) { + // Declared measurement interval, not a readiness wait/retry. + await new Promise(resolve => setTimeout(resolve, Math.max(0, detachedAt + intervalMs - Date.now()))); + out.detachedTimedNatural.push({ requestedAfterDetachMs: intervalMs, actualAfterDetachMs: Date.now() - detachedAt, ...await observe(`detached natural +${intervalMs}ms`) }); persist(); + } + out.warmDetachedAfter = await observe("final warm detached endpoint", true); + expect(out.samples).toHaveLength(21); expect(new Set([out.warmup.threadId, ...out.samples.map((s: any) => s.threadId)]).size).toBe(22); + expect(out.samples.every((s: any) => !s.memory.forcedGc && s.memory.selectedThreadIds.length === 1 && s.memory.selectedThreadIds[0] === s.threadId)).toBe(true); + expect(out.warmDetachedBefore.renderedItems).toBe(0); expect(out.warmDetachedAfter.renderedItems).toBe(0); + out.state = "observations-complete"; persist(); + } catch (error) { out.state = "failed"; out.failure = String(error); persist(); throw error; } + finally { + try { if (opened) { await opened.app.close(); out.appClose = "returned"; } else out.appClose = "launch returned no app handle"; } + catch (error) { out.appClose = "failed"; out.closeError = String(error); throw error; } + finally { out.fixtureCalls = calls(); const retainedLog = path.join(root, `stream-${replicate}-calls.jsonl`); fs.copyFileSync(callLog, retainedLog, fs.constants.COPYFILE_EXCL); out.fixture.retainedCalls = retainedLog; out.finishedAt = new Date().toISOString(); persist(); } + } + }); +} diff --git a/apps/desktop/bench/retention/target-support.ts b/apps/desktop/bench/retention/target-support.ts new file mode 100644 index 00000000..701392f8 --- /dev/null +++ b/apps/desktop/bench/retention/target-support.ts @@ -0,0 +1,14 @@ +// Only the target-module import is rebound in the generated driver copy. +import fs from "node:fs"; +import path from "node:path"; +import { appDir, launch, seedHome as seedTargetHome, tid, items } from "../../e2e/support"; +export { appDir, launch, tid, items }; + +/** Keep fixture inputs private without changing the app/runtime temporary directory. */ +export function seedHome(settings: Record = {}) { + const root = process.env.MODEX_RETENTION_FIXTURE_ROOT; + if (!root || !path.isAbsolute(root) || !fs.lstatSync(root).isDirectory() || fs.lstatSync(root).isSymbolicLink()) throw new Error("A private retained fixture root is required."); + const previous = process.env.TMPDIR; + try { process.env.TMPDIR = root; return seedTargetHome(settings); } + finally { if (previous === undefined) delete process.env.TMPDIR; else process.env.TMPDIR = previous; } +} diff --git a/apps/desktop/package.json b/apps/desktop/package.json index ec575804..f84acc6c 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -10,7 +10,7 @@ "build": "pnpm run build:main && pnpm run build:renderer && pnpm run build:usage", "build:main": "node scripts/prepare-terminal.mjs && tsc -p tsconfig.main.json && node scripts/copy-main-assets.mjs", "build:renderer": "vite build", - "typecheck": "tsc -p tsconfig.main.json --noEmit && tsc -p tsconfig.renderer.json --noEmit", + "typecheck": "tsc -p tsconfig.main.json --noEmit && tsc -p tsconfig.renderer.json --noEmit && tsc -p tsconfig.retention.json", "test": "pnpm run build:main && node --test \"dist/test/**/*.test.js\" && node --test test/browser-dev.test.mjs test/native-packages.test.mjs test/native-update-acceptance.test.mjs test/native-update-fault.test.mjs test/update-acceptance-artifacts.test.mjs test/code-review-isolation.native.test.mjs", "test:review-isolation": "node --test test/code-review-isolation.native.test.mjs", "start": "electron .", diff --git a/apps/desktop/tsconfig.retention.json b/apps/desktop/tsconfig.retention.json new file mode 100644 index 00000000..a9b7c3ab --- /dev/null +++ b/apps/desktop/tsconfig.retention.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.renderer.json", + "compilerOptions": { "types": ["node"], "allowJs": true, "checkJs": false }, + "include": ["bench/retention/**/*.ts", "bench/retention-env.d.ts"] +} diff --git a/docs/reviews/2026-11-12-cf8-portable-reproduction.json b/docs/reviews/2026-11-12-cf8-portable-reproduction.json new file mode 100644 index 00000000..2ea5895a --- /dev/null +++ b/docs/reviews/2026-11-12-cf8-portable-reproduction.json @@ -0,0 +1,2545 @@ +{ + "schema": 1, + "at": "2026-11-12T14:05:57.222513+00:00", + "diagnosticDriverHead": "91c033e45452bedd29dba2e4365da087c9ad673a", + "diagnosticDriverTree": "7d6a7a4f1c1f2a92dd1875f981158b08c0ef30f0", + "sourceRebuildOnly": true, + "order": [ + "current", + "baseline" + ], + "workloadsReceiptSha256": "cd67d122a4f3d6b40ce4a19a5919221ffbaf3359a2cc7234da1a7739a4ea19b4", + "groups": { + "current": { + "source": { + "sha": "44fb41eecf718cf6648b7c8ee95cab1e85e0e072", + "tree": "3ba66a41d3e6eb3801de50649f9bfa718d362a5f" + }, + "appVersion": "0.4.2", + "manifestSha256": "dceb73369bba858726617531dcb513a0e31bee294e2096a36f6a9b29dff2ccc7", + "reportSha256": "7e6445c50f8a2f95787b4fa1c1af719982c6457f753fcc3cc8d5ab95a2927e5b", + "passed": 6, + "skipped": 0, + "retries": 0, + "history": [ + { + "replicate": 1, + "rawReceiptSha256": "00ed096cfc2edf7c807671ae2d53dac0e46a516f26a5ad53f4cbe4986da5a6d5", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 6.47705078125, + 6.90185546875, + 12.77490234375 + ] + }, + "native": { + "appVersion": "0.4.2", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "current", + "source": "44fb41eecf718cf6648b7c8ee95cab1e85e0e072", + "tree": "3ba66a41d3e6eb3801de50649f9bfa718d362a5f", + "sourceFilesVerified": 1291, + "builtFilesVerified": 778, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "histories": 3, + "shape": "200 turns/1400 items each; distinct thread provenance and first request, otherwise same deterministic shape", + "warmupOpens": 3, + "measuredOpens": 63, + "opensPerHistory": 21, + "savedBytes": [ + 2994024, + 2994024, + 2994024 + ], + "savedSha256": [ + "32554934e5a1b4b8f78350000e7896b6483e570c70f367fd79f67bce2bcdbdd8", + "490d1f0e6762f7504400689e9e805fc74c88847ec8caa89b07af464243ae0004", + "0481cc21a8feacfe159bb0fb7a8a61a7edbc50ee9e586be804de52ba5e18ba63" + ] + }, + "startedAt": "2026-11-12T13:57:55.484Z", + "finishedAt": "2026-11-12T13:58:13.728Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T13:57:59.355Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 14966152, + "totalSize": 16384000, + "embedderHeapUsedSize": 2940520, + "backingStorageSize": 916940 + }, + "dom": { + "documents": 1, + "nodes": 320, + "jsEventListeners": 269 + }, + "mainNode": { + "rss": 228786176, + "heapTotal": 43073536, + "heapUsed": 34321924, + "external": 13069708, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 86289, + "shared": 1040 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T13:58:13.557Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 15817684, + "totalSize": 19267584, + "embedderHeapUsedSize": 3181480, + "backingStorageSize": 754622 + }, + "dom": { + "documents": 1, + "nodes": 320, + "jsEventListeners": 230 + }, + "mainNode": { + "rss": 250298368, + "heapTotal": 56475648, + "heapUsed": 27127404, + "external": 10960519, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 106129, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T13:58:08.518Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 65851500, + "totalSize": 133038080, + "embedderHeapUsedSize": 66340384, + "backingStorageSize": 1041060 + }, + "dom": { + "documents": 1, + "nodes": 51298, + "jsEventListeners": 11901 + }, + "mainNode": { + "rss": 250085376, + "heapTotal": 56475648, + "heapUsed": 26795268, + "external": 4669048, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 106001, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1001, + "at": "2026-11-12T13:58:09.518Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 66005460, + "totalSize": 133038080, + "embedderHeapUsedSize": 66470224, + "backingStorageSize": 1041060 + }, + "dom": { + "documents": 1, + "nodes": 51298, + "jsEventListeners": 11940 + }, + "mainNode": { + "rss": 250331136, + "heapTotal": 56475648, + "heapUsed": 27015792, + "external": 10960519, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 106193, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5002, + "at": "2026-11-12T13:58:13.518Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 66040528, + "totalSize": 133038080, + "embedderHeapUsedSize": 66461944, + "backingStorageSize": 1041060 + }, + "dom": { + "documents": 1, + "nodes": 51298, + "jsEventListeners": 11940 + }, + "mainNode": { + "rss": 250281984, + "heapTotal": 56475648, + "heapUsed": 27071596, + "external": 10960519, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 106113, + "shared": 1040 + } + } + ], + "sampleCount": 63, + "naturalSampleRendererHeapRangeBytes": [ + 26905096, + 102045832 + ], + "naturalSampleMainHeapRangeBytes": [ + 25698224, + 39550672 + ] + }, + { + "replicate": 2, + "rawReceiptSha256": "aec469e7e514c04e93ef5e4b4686dd288b0ca9df1a9a96ffbbb3d10a7545a3e6", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 6.720703125, + 6.9375, + 12.65087890625 + ] + }, + "native": { + "appVersion": "0.4.2", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "current", + "source": "44fb41eecf718cf6648b7c8ee95cab1e85e0e072", + "tree": "3ba66a41d3e6eb3801de50649f9bfa718d362a5f", + "sourceFilesVerified": 1291, + "builtFilesVerified": 778, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "histories": 3, + "shape": "200 turns/1400 items each; distinct thread provenance and first request, otherwise same deterministic shape", + "warmupOpens": 3, + "measuredOpens": 63, + "opensPerHistory": 21, + "savedBytes": [ + 2994024, + 2994024, + 2994024 + ], + "savedSha256": [ + "5cbbf8771daddf6860812345a0f26bf881ae3f8c2e8468dc91e17001383ff958", + "55ccad5d29cf5f29bdc7f675d5c2d1b83f48ebdb1cfd3956004808104bb886d2", + "6e618c881d156b413829d899325a12d4f6b2a7adce9bc5b469e8612148aab553" + ] + }, + "startedAt": "2026-11-12T13:58:13.779Z", + "finishedAt": "2026-11-12T13:58:29.597Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T13:58:15.199Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 14966832, + "totalSize": 16908288, + "embedderHeapUsedSize": 2770800, + "backingStorageSize": 916939 + }, + "dom": { + "documents": 1, + "nodes": 320, + "jsEventListeners": 269 + }, + "mainNode": { + "rss": 228802560, + "heapTotal": 43859968, + "heapUsed": 34185272, + "external": 6778249, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 85969, + "shared": 1072 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T13:58:29.450Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 15944148, + "totalSize": 19529728, + "embedderHeapUsedSize": 3098464, + "backingStorageSize": 754621 + }, + "dom": { + "documents": 1, + "nodes": 320, + "jsEventListeners": 230 + }, + "mainNode": { + "rss": 250937344, + "heapTotal": 56213504, + "heapUsed": 32841940, + "external": 10963219, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 107745, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T13:58:24.400Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 60866764, + "totalSize": 139591680, + "embedderHeapUsedSize": 64582336, + "backingStorageSize": 1041054 + }, + "dom": { + "documents": 1, + "nodes": 51562, + "jsEventListeners": 11933 + }, + "mainNode": { + "rss": 250789888, + "heapTotal": 56213504, + "heapUsed": 32504860, + "external": 4671748, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 107521, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1003, + "at": "2026-11-12T13:58:25.410Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 61116944, + "totalSize": 139591680, + "embedderHeapUsedSize": 64597200, + "backingStorageSize": 1041054 + }, + "dom": { + "documents": 1, + "nodes": 51562, + "jsEventListeners": 11972 + }, + "mainNode": { + "rss": 250937344, + "heapTotal": 56213504, + "heapUsed": 32730336, + "external": 10963219, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 107745, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5003, + "at": "2026-11-12T13:58:29.408Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 61152012, + "totalSize": 139591680, + "embedderHeapUsedSize": 64597200, + "backingStorageSize": 1041054 + }, + "dom": { + "documents": 1, + "nodes": 51562, + "jsEventListeners": 11972 + }, + "mainNode": { + "rss": 250937344, + "heapTotal": 56213504, + "heapUsed": 32786132, + "external": 10963219, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 107745, + "shared": 1040 + } + } + ], + "sampleCount": 63, + "naturalSampleRendererHeapRangeBytes": [ + 26860952, + 101733864 + ], + "naturalSampleMainHeapRangeBytes": [ + 25742392, + 40117844 + ] + }, + { + "replicate": 3, + "rawReceiptSha256": "7ad300270be5aa44e5bd41ebb61ba6079c4dd3d7e3292442ab09e485b2fb729c", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 7.373046875, + 7.0703125, + 12.59814453125 + ] + }, + "native": { + "appVersion": "0.4.2", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "current", + "source": "44fb41eecf718cf6648b7c8ee95cab1e85e0e072", + "tree": "3ba66a41d3e6eb3801de50649f9bfa718d362a5f", + "sourceFilesVerified": 1291, + "builtFilesVerified": 778, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "histories": 3, + "shape": "200 turns/1400 items each; distinct thread provenance and first request, otherwise same deterministic shape", + "warmupOpens": 3, + "measuredOpens": 63, + "opensPerHistory": 21, + "savedBytes": [ + 2994024, + 2994024, + 2994024 + ], + "savedSha256": [ + "d4a98f72d9add6b5ce5d882105d8707174d850f6d447030d13474098eb03866d", + "f36a365f88ed6573f68e5bca0785108fcac240b426b9b332a914658a27061aef", + "01c9a3cd53371a337f0be80fc4d55afffb57f64e6ba3e280314e152c6f1d152e" + ] + }, + "startedAt": "2026-11-12T13:58:29.647Z", + "finishedAt": "2026-11-12T13:58:45.770Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T13:58:31.185Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 14956496, + "totalSize": 16646144, + "embedderHeapUsedSize": 3216648, + "backingStorageSize": 916934 + }, + "dom": { + "documents": 1, + "nodes": 320, + "jsEventListeners": 269 + }, + "mainNode": { + "rss": 228524032, + "heapTotal": 43335680, + "heapUsed": 34092684, + "external": 6778242, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 85425, + "shared": 1072 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T13:58:45.452Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 15985152, + "totalSize": 20054016, + "embedderHeapUsedSize": 3019888, + "backingStorageSize": 754622 + }, + "dom": { + "documents": 1, + "nodes": 320, + "jsEventListeners": 230 + }, + "mainNode": { + "rss": 250691584, + "heapTotal": 56737792, + "heapUsed": 32768876, + "external": 10963159, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 107265, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T13:58:40.392Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 74236952, + "totalSize": 142999552, + "embedderHeapUsedSize": 89097424, + "backingStorageSize": 1085255 + }, + "dom": { + "documents": 1, + "nodes": 68313, + "jsEventListeners": 17216 + }, + "mainNode": { + "rss": 250544128, + "heapTotal": 56737792, + "heapUsed": 32436556, + "external": 4671700, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 107057, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1000, + "at": "2026-11-12T13:58:41.395Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 74278268, + "totalSize": 142999552, + "embedderHeapUsedSize": 89073320, + "backingStorageSize": 1085255 + }, + "dom": { + "documents": 1, + "nodes": 68313, + "jsEventListeners": 17216 + }, + "mainNode": { + "rss": 250691584, + "heapTotal": 56737792, + "heapUsed": 32657268, + "external": 10963159, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 107265, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5000, + "at": "2026-11-12T13:58:45.397Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 74313356, + "totalSize": 142999552, + "embedderHeapUsedSize": 89073320, + "backingStorageSize": 1085255 + }, + "dom": { + "documents": 1, + "nodes": 68313, + "jsEventListeners": 17216 + }, + "mainNode": { + "rss": 250691584, + "heapTotal": 56737792, + "heapUsed": 32713068, + "external": 10963159, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 107265, + "shared": 1040 + } + } + ], + "sampleCount": 63, + "naturalSampleRendererHeapRangeBytes": [ + 26886332, + 98352316 + ], + "naturalSampleMainHeapRangeBytes": [ + 25676424, + 40080232 + ] + } + ], + "stream": [ + { + "replicate": 1, + "rawReceiptSha256": "c74f39eeb136ec35a0232547971445ceaf46ef9880d392245405468028ea31a3", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 7.1484375, + 7.046875, + 12.4931640625 + ] + }, + "native": { + "appVersion": "0.4.2", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "current", + "source": "44fb41eecf718cf6648b7c8ee95cab1e85e0e072", + "tree": "3ba66a41d3e6eb3801de50649f9bfa718d362a5f", + "sourceFilesVerified": 1291, + "builtFilesVerified": 778, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "warmupStreams": 1, + "measuredStreams": 21, + "bytesPerStream": 3145728, + "deltasPerStream": 48, + "deltaSpacingMs": 10, + "openedPreviewBytes": 262144, + "expectedLegacyOutputViolation": false + }, + "startedAt": "2026-11-12T13:58:45.853Z", + "finishedAt": "2026-11-12T13:59:18.841Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T13:58:48.022Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 6003108, + "totalSize": 7225344, + "embedderHeapUsedSize": 1928312, + "backingStorageSize": 1010203 + }, + "dom": { + "documents": 1, + "nodes": 246, + "jsEventListeners": 220 + }, + "mainNode": { + "rss": 321290240, + "heapTotal": 66060288, + "heapUsed": 47131592, + "external": 11701129, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 147569, + "shared": 1040 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T13:59:18.697Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 8921668, + "totalSize": 10092544, + "embedderHeapUsedSize": 1996952, + "backingStorageSize": 5468146 + }, + "dom": { + "documents": 1, + "nodes": 374, + "jsEventListeners": 241 + }, + "mainNode": { + "rss": 378650624, + "heapTotal": 99631104, + "heapUsed": 66680916, + "external": 18845057, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 181089, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T13:59:13.665Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 23254692, + "totalSize": 45760512, + "embedderHeapUsedSize": 7816488, + "backingStorageSize": 5732389 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 3399 + }, + "mainNode": { + "rss": 378421248, + "heapTotal": 99631104, + "heapUsed": 66407740, + "external": 12553586, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 180865, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1001, + "at": "2026-11-12T13:59:14.664Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 23423336, + "totalSize": 45760512, + "embedderHeapUsedSize": 7811296, + "backingStorageSize": 5732389 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 3445 + }, + "mainNode": { + "rss": 378519552, + "heapTotal": 99631104, + "heapUsed": 66556272, + "external": 18845057, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 180977, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5003, + "at": "2026-11-12T13:59:18.674Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 23460192, + "totalSize": 45760512, + "embedderHeapUsedSize": 7856752, + "backingStorageSize": 5732389 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 3445 + }, + "mainNode": { + "rss": 378634240, + "heapTotal": 99631104, + "heapUsed": 66625040, + "external": 18845057, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 181073, + "shared": 1040 + } + } + ], + "fixtureScriptSha256": "97f40633a287bd515df52f0495d20841100735439ba0621bcdbf1b11a062a101", + "fixtureCodingStarts": 22, + "fixtureCodingFinishes": 22, + "measuredIpcBytes": 13948015, + "sampleCount": 21, + "maximumSampledOutputBytes": 262144, + "naturalSampleRendererHeapRangeBytes": [ + 11158176, + 23772992 + ], + "naturalSampleMainHeapRangeBytes": [ + 37662652, + 76973232 + ], + "sendToAnswerAndPreviewObservedMs": [ + 1083, + 1114, + 1130, + 1264, + 1348, + 1207, + 1467, + 1364, + 1292, + 1354, + 1288, + 1175, + 1073, + 1114, + 1098, + 1082, + 1109, + 1153, + 1106, + 1132, + 1091 + ] + }, + { + "replicate": 2, + "rawReceiptSha256": "bba851b56d4a702c66bb18054c7e6e2c314b8921f26bda4f606208314a7549de", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 6.705078125, + 6.9462890625, + 12.23583984375 + ] + }, + "native": { + "appVersion": "0.4.2", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "current", + "source": "44fb41eecf718cf6648b7c8ee95cab1e85e0e072", + "tree": "3ba66a41d3e6eb3801de50649f9bfa718d362a5f", + "sourceFilesVerified": 1291, + "builtFilesVerified": 778, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "warmupStreams": 1, + "measuredStreams": 21, + "bytesPerStream": 3145728, + "deltasPerStream": 48, + "deltaSpacingMs": 10, + "openedPreviewBytes": 262144, + "expectedLegacyOutputViolation": false + }, + "startedAt": "2026-11-12T13:59:18.891Z", + "finishedAt": "2026-11-12T13:59:51.033Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T13:59:20.937Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 6011000, + "totalSize": 6963200, + "embedderHeapUsedSize": 1988344, + "backingStorageSize": 1010203 + }, + "dom": { + "documents": 1, + "nodes": 246, + "jsEventListeners": 220 + }, + "mainNode": { + "rss": 312918016, + "heapTotal": 57917440, + "heapUsed": 40151060, + "external": 25398217, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 141169, + "shared": 1040 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T13:59:50.881Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 8161792, + "totalSize": 9306112, + "embedderHeapUsedSize": 2008480, + "backingStorageSize": 6254414 + }, + "dom": { + "documents": 1, + "nodes": 374, + "jsEventListeners": 241 + }, + "mainNode": { + "rss": 377634816, + "heapTotal": 98582528, + "heapUsed": 66728912, + "external": 24677362, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 180929, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T13:59:45.855Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 21489540, + "totalSize": 43188224, + "embedderHeapUsedSize": 7882880, + "backingStorageSize": 6518654 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 3205 + }, + "mainNode": { + "rss": 377520128, + "heapTotal": 98582528, + "heapUsed": 66468588, + "external": 18385891, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 180817, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1000, + "at": "2026-11-12T13:59:46.856Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 21658556, + "totalSize": 43188224, + "embedderHeapUsedSize": 7847816, + "backingStorageSize": 6518654 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 3251 + }, + "mainNode": { + "rss": 377618432, + "heapTotal": 98582528, + "heapUsed": 66615884, + "external": 24677362, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 180913, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5001, + "at": "2026-11-12T13:59:50.856Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 21695412, + "totalSize": 43188224, + "embedderHeapUsedSize": 7847816, + "backingStorageSize": 6518654 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 3251 + }, + "mainNode": { + "rss": 377634816, + "heapTotal": 98582528, + "heapUsed": 66672964, + "external": 24677362, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 180929, + "shared": 1040 + } + } + ], + "fixtureScriptSha256": "e9c337bd5641d021d85eb0d5ee64fb171fbc784d4ff10570af8c3cb08879034c", + "fixtureCodingStarts": 22, + "fixtureCodingFinishes": 22, + "measuredIpcBytes": 13948015, + "sampleCount": 21, + "maximumSampledOutputBytes": 262144, + "naturalSampleRendererHeapRangeBytes": [ + 10803860, + 20973636 + ], + "naturalSampleMainHeapRangeBytes": [ + 37103452, + 66296560 + ], + "sendToAnswerAndPreviewObservedMs": [ + 1101, + 1073, + 1106, + 1091, + 1149, + 1108, + 1116, + 1097, + 1131, + 1083, + 1092, + 1114, + 1097, + 1138, + 1073, + 1118, + 1105, + 1322, + 1383, + 1492, + 1158 + ] + }, + { + "replicate": 3, + "rawReceiptSha256": "fdc9df8d607d0a621b6a4e74883281553054175d2d3af01308b4e532987752ad", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 6.1396484375, + 6.76416015625, + 11.98388671875 + ] + }, + "native": { + "appVersion": "0.4.2", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "current", + "source": "44fb41eecf718cf6648b7c8ee95cab1e85e0e072", + "tree": "3ba66a41d3e6eb3801de50649f9bfa718d362a5f", + "sourceFilesVerified": 1291, + "builtFilesVerified": 778, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "warmupStreams": 1, + "measuredStreams": 21, + "bytesPerStream": 3145728, + "deltasPerStream": 48, + "deltaSpacingMs": 10, + "openedPreviewBytes": 262144, + "expectedLegacyOutputViolation": false + }, + "startedAt": "2026-11-12T13:59:51.087Z", + "finishedAt": "2026-11-12T14:00:30.522Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T13:59:53.255Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 6099800, + "totalSize": 7225344, + "embedderHeapUsedSize": 1931648, + "backingStorageSize": 1010242 + }, + "dom": { + "documents": 1, + "nodes": 246, + "jsEventListeners": 253 + }, + "mainNode": { + "rss": 308985856, + "heapTotal": 63602688, + "heapUsed": 47796124, + "external": 11701129, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 144769, + "shared": 1040 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T14:00:30.323Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 8427120, + "totalSize": 9830400, + "embedderHeapUsedSize": 2009520, + "backingStorageSize": 5992229 + }, + "dom": { + "documents": 1, + "nodes": 374, + "jsEventListeners": 241 + }, + "mainNode": { + "rss": 412925952, + "heapTotal": 125124608, + "heapUsed": 89118968, + "external": 25398901, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 214418, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T14:00:25.289Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 20593096, + "totalSize": 43450368, + "embedderHeapUsedSize": 7353424, + "backingStorageSize": 6256469 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 2965 + }, + "mainNode": { + "rss": 412745728, + "heapTotal": 125124608, + "heapUsed": 88854788, + "external": 19107430, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 214306, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1002, + "at": "2026-11-12T14:00:26.300Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 20762144, + "totalSize": 43450368, + "embedderHeapUsedSize": 7344480, + "backingStorageSize": 6256469 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 3011 + }, + "mainNode": { + "rss": 412925952, + "heapTotal": 125124608, + "heapUsed": 89001744, + "external": 25398901, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 214418, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5001, + "at": "2026-11-12T14:00:30.300Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 20799000, + "totalSize": 43450368, + "embedderHeapUsedSize": 7365144, + "backingStorageSize": 6256469 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 3011 + }, + "mainNode": { + "rss": 412925952, + "heapTotal": 125124608, + "heapUsed": 89057680, + "external": 25398901, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 214418, + "shared": 1040 + } + } + ], + "fixtureScriptSha256": "c8a0e93d6061478c454cc62cf8ed2db042b41a44b23fc94d14644e9bda1c49bd", + "fixtureCodingStarts": 22, + "fixtureCodingFinishes": 22, + "measuredIpcBytes": 13948015, + "sampleCount": 21, + "maximumSampledOutputBytes": 262144, + "naturalSampleRendererHeapRangeBytes": [ + 10042440, + 21405416 + ], + "naturalSampleMainHeapRangeBytes": [ + 38489288, + 105401212 + ], + "sendToAnswerAndPreviewObservedMs": [ + 1116, + 1095, + 1165, + 1936, + 1121, + 1169, + 1231, + 1718, + 1627, + 1841, + 1848, + 1582, + 1804, + 1677, + 1218, + 1841, + 1118, + 1255, + 1106, + 1773, + 1971 + ] + } + ] + }, + "baseline": { + "source": { + "sha": "89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1", + "tree": "1b417309f0afb1fce6738547f7e3982787d184f2" + }, + "appVersion": "0.2.0", + "manifestSha256": "e592a0be8c54b4bb64c186844ba8fea77fd1e7f7cefccf377590a17a7dcc2472", + "reportSha256": "78c4f73020f86e43c72dccf9f0f2eef6eeecaf90d1c0bb283b66c2edfbe37347", + "passed": 6, + "skipped": 0, + "retries": 0, + "history": [ + { + "replicate": 1, + "rawReceiptSha256": "9151855b3d53cdcc69f3d8c932f3a64d99f22d9498faed1cba0edd6af8b7506a", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 10.66650390625, + 7.81787109375, + 12.1279296875 + ] + }, + "native": { + "appVersion": "0.2.0", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "baseline", + "source": "89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1", + "tree": "1b417309f0afb1fce6738547f7e3982787d184f2", + "sourceFilesVerified": 724, + "builtFilesVerified": 542, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "histories": 3, + "shape": "200 turns/1400 items each; distinct thread provenance and first request, otherwise same deterministic shape", + "warmupOpens": 3, + "measuredOpens": 63, + "opensPerHistory": 21, + "savedBytes": [ + 2994024, + 2994024, + 2994024 + ], + "savedSha256": [ + "9a0703757c6cc3a15c3ca97850fea9627ee177dcb411323a9c5c2e2adc24ac1f", + "42f6d4e3a4d76a04828207406be2b1af322421d037957d3ce07d7252a59577c1", + "649135c3bfeadf665c74f98340223796146885eb3a2b9c3d49a2b7d04054e127" + ] + }, + "startedAt": "2026-11-12T14:00:32.425Z", + "finishedAt": "2026-11-12T14:00:46.858Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T14:00:33.810Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 17332940, + "totalSize": 21102592, + "embedderHeapUsedSize": 4305608, + "backingStorageSize": 645099 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 269 + }, + "mainNode": { + "rss": 227213312, + "heapTotal": 41156608, + "heapUsed": 32788468, + "external": 6755327, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 85201, + "shared": 1072 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T14:00:46.692Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 15009740, + "totalSize": 16646144, + "embedderHeapUsedSize": 2549280, + "backingStorageSize": 588713 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 230 + }, + "mainNode": { + "rss": 248954880, + "heapTotal": 54820864, + "heapUsed": 31659436, + "external": 10940306, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 105441, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T14:00:41.652Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 37432400, + "totalSize": 102105088, + "embedderHeapUsedSize": 21479760, + "backingStorageSize": 650136 + }, + "dom": { + "documents": 1, + "nodes": 16144, + "jsEventListeners": 4581 + }, + "mainNode": { + "rss": 248758272, + "heapTotal": 54820864, + "heapUsed": 31322408, + "external": 4648835, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 105281, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1002, + "at": "2026-11-12T14:00:42.661Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 37581820, + "totalSize": 102105088, + "embedderHeapUsedSize": 21456096, + "backingStorageSize": 650136 + }, + "dom": { + "documents": 1, + "nodes": 16144, + "jsEventListeners": 4620 + }, + "mainNode": { + "rss": 248922112, + "heapTotal": 54820864, + "heapUsed": 31547664, + "external": 10940306, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 105441, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5002, + "at": "2026-11-12T14:00:46.662Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 37616828, + "totalSize": 102105088, + "embedderHeapUsedSize": 21456096, + "backingStorageSize": 650136 + }, + "dom": { + "documents": 1, + "nodes": 16144, + "jsEventListeners": 4620 + }, + "mainNode": { + "rss": 248954880, + "heapTotal": 54820864, + "heapUsed": 31603628, + "external": 10940306, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 105441, + "shared": 1040 + } + } + ], + "sampleCount": 63, + "naturalSampleRendererHeapRangeBytes": [ + 27138648, + 95356312 + ], + "naturalSampleMainHeapRangeBytes": [ + 24550044, + 38924768 + ] + }, + { + "replicate": 2, + "rawReceiptSha256": "db6bcd8009815cc293021cda0f824dc3f6f927f1c60ba2b724b664bbb138aa10", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 10.0625, + 7.82568359375, + 12.0546875 + ] + }, + "native": { + "appVersion": "0.2.0", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "baseline", + "source": "89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1", + "tree": "1b417309f0afb1fce6738547f7e3982787d184f2", + "sourceFilesVerified": 724, + "builtFilesVerified": 542, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "histories": 3, + "shape": "200 turns/1400 items each; distinct thread provenance and first request, otherwise same deterministic shape", + "warmupOpens": 3, + "measuredOpens": 63, + "opensPerHistory": 21, + "savedBytes": [ + 2994024, + 2994024, + 2994024 + ], + "savedSha256": [ + "552486da532344d1206e07bf6706f952007294b905c65ad350a0a1862522d134", + "396e7e644bae0a0daf434570aa33b27bc293ff79f9cb34189c3bc685ce3ce384", + "6dd29937e1d5e59281077937f2b842ff277e310cd3a04a1d0f2babcb346bf7bc" + ] + }, + "startedAt": "2026-11-12T14:00:46.930Z", + "finishedAt": "2026-11-12T14:01:00.932Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T14:00:48.205Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 14458388, + "totalSize": 16121856, + "embedderHeapUsedSize": 2718680, + "backingStorageSize": 587611 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 269 + }, + "mainNode": { + "rss": 227377152, + "heapTotal": 42205184, + "heapUsed": 32862084, + "external": 6755332, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 85201, + "shared": 1072 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T14:01:00.778Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 15008972, + "totalSize": 16384000, + "embedderHeapUsedSize": 1822296, + "backingStorageSize": 588149 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 230 + }, + "mainNode": { + "rss": 249495552, + "heapTotal": 55607296, + "heapUsed": 31581508, + "external": 10940246, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 105537, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T14:00:55.743Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 15149136, + "totalSize": 98959360, + "embedderHeapUsedSize": 3132208, + "backingStorageSize": 588528 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 230 + }, + "mainNode": { + "rss": 249266176, + "heapTotal": 55607296, + "heapUsed": 31244460, + "external": 4648775, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 105265, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1002, + "at": "2026-11-12T14:00:56.754Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 15306724, + "totalSize": 98959360, + "embedderHeapUsedSize": 2954592, + "backingStorageSize": 588567 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 269 + }, + "mainNode": { + "rss": 249462784, + "heapTotal": 55607296, + "heapUsed": 31469736, + "external": 10940246, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 105537, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5002, + "at": "2026-11-12T14:01:00.753Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 15345728, + "totalSize": 98959360, + "embedderHeapUsedSize": 2954592, + "backingStorageSize": 588567 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 269 + }, + "mainNode": { + "rss": 249495552, + "heapTotal": 55607296, + "heapUsed": 31525700, + "external": 10940246, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 105537, + "shared": 1040 + } + } + ], + "sampleCount": 63, + "naturalSampleRendererHeapRangeBytes": [ + 26650896, + 51530280 + ], + "naturalSampleMainHeapRangeBytes": [ + 24485804, + 38833468 + ] + }, + { + "replicate": 3, + "rawReceiptSha256": "93a7a3e071665874721db9c911481f7a0e5bcd8b38c2acf19555df6925a2917c", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 10.07275390625, + 7.9326171875, + 12.01806640625 + ] + }, + "native": { + "appVersion": "0.2.0", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "baseline", + "source": "89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1", + "tree": "1b417309f0afb1fce6738547f7e3982787d184f2", + "sourceFilesVerified": 724, + "builtFilesVerified": 542, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "histories": 3, + "shape": "200 turns/1400 items each; distinct thread provenance and first request, otherwise same deterministic shape", + "warmupOpens": 3, + "measuredOpens": 63, + "opensPerHistory": 21, + "savedBytes": [ + 2994024, + 2994024, + 2994024 + ], + "savedSha256": [ + "9f428ba20d44a427092937fb611d163b242417fd4b83c55242cbd22b1fe4e289", + "8227b66f9730bae77c9e9e09fd663a8964576364e4c229e3a1736ce59de14421", + "8acb3f40e7b441d36b3b46093d62a332103271b0d646f7c7fbd2b0548ea0fbda" + ] + }, + "startedAt": "2026-11-12T14:01:01.078Z", + "finishedAt": "2026-11-12T14:01:15.233Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T14:01:02.360Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 14456612, + "totalSize": 16646144, + "embedderHeapUsedSize": 3511776, + "backingStorageSize": 587771 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 269 + }, + "mainNode": { + "rss": 227622912, + "heapTotal": 41680896, + "heapUsed": 32862608, + "external": 6755327, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 85809, + "shared": 1072 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T14:01:15.082Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 15009612, + "totalSize": 16908288, + "embedderHeapUsedSize": 2585696, + "backingStorageSize": 588145 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 230 + }, + "mainNode": { + "rss": 249249792, + "heapTotal": 55083008, + "heapUsed": 31584936, + "external": 10940246, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 105553, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T14:01:10.043Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 37550244, + "totalSize": 100007936, + "embedderHeapUsedSize": 22446000, + "backingStorageSize": 649699 + }, + "dom": { + "documents": 1, + "nodes": 16144, + "jsEventListeners": 4620 + }, + "mainNode": { + "rss": 249102336, + "heapTotal": 55083008, + "heapUsed": 31247500, + "external": 4648775, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 105329, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1002, + "at": "2026-11-12T14:01:11.053Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 37699972, + "totalSize": 100007936, + "embedderHeapUsedSize": 22613080, + "backingStorageSize": 649699 + }, + "dom": { + "documents": 1, + "nodes": 16144, + "jsEventListeners": 4659 + }, + "mainNode": { + "rss": 249298944, + "heapTotal": 55083008, + "heapUsed": 31473164, + "external": 10940246, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 105617, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5002, + "at": "2026-11-12T14:01:15.053Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 37734960, + "totalSize": 100007936, + "embedderHeapUsedSize": 22613080, + "backingStorageSize": 649699 + }, + "dom": { + "documents": 1, + "nodes": 16144, + "jsEventListeners": 4659 + }, + "mainNode": { + "rss": 249249792, + "heapTotal": 55083008, + "heapUsed": 31529128, + "external": 10940246, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 105553, + "shared": 1040 + } + } + ], + "sampleCount": 63, + "naturalSampleRendererHeapRangeBytes": [ + 27597608, + 76823792 + ], + "naturalSampleMainHeapRangeBytes": [ + 24481524, + 38835132 + ] + } + ], + "stream": [ + { + "replicate": 1, + "rawReceiptSha256": "9dbf803f8fd637ad54e6ce2aac0c33a5063d4eec0faf77b8ac78f21640d8fcaa", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 13.18701171875, + 8.6943359375, + 12.21630859375 + ] + }, + "native": { + "appVersion": "0.2.0", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "baseline", + "source": "89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1", + "tree": "1b417309f0afb1fce6738547f7e3982787d184f2", + "sourceFilesVerified": 724, + "builtFilesVerified": 542, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "warmupStreams": 1, + "measuredStreams": 21, + "bytesPerStream": 3145728, + "deltasPerStream": 48, + "deltaSpacingMs": 10, + "openedPreviewBytes": null, + "expectedLegacyOutputViolation": true + }, + "startedAt": "2026-11-12T14:01:15.293Z", + "finishedAt": "2026-11-12T14:02:03.736Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T14:01:18.796Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 5641912, + "totalSize": 6701056, + "embedderHeapUsedSize": 1893240, + "backingStorageSize": 3734022 + }, + "dom": { + "documents": 1, + "nodes": 243, + "jsEventListeners": 253 + }, + "mainNode": { + "rss": 311148544, + "heapTotal": 89440256, + "heapUsed": 72171068, + "external": 25256517, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 166098, + "shared": 1040 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T14:02:03.547Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 73381428, + "totalSize": 74563584, + "embedderHeapUsedSize": 2173480, + "backingStorageSize": 3734781 + }, + "dom": { + "documents": 1, + "nodes": 371, + "jsEventListeners": 241 + }, + "mainNode": { + "rss": 284000256, + "heapTotal": 89980928, + "heapUsed": 87251124, + "external": 4676821, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 135666, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T14:01:58.515Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 243530940, + "totalSize": 296189952, + "embedderHeapUsedSize": 59256744, + "backingStorageSize": 6883145 + }, + "dom": { + "documents": 1, + "nodes": 939, + "jsEventListeners": 4522 + }, + "mainNode": { + "rss": 444563456, + "heapTotal": 220397568, + "heapUsed": 202564308, + "external": 15361196, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 292802, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1002, + "at": "2026-11-12T14:01:59.515Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 243693400, + "totalSize": 296189952, + "embedderHeapUsedSize": 59256744, + "backingStorageSize": 6883145 + }, + "dom": { + "documents": 1, + "nodes": 939, + "jsEventListeners": 4568 + }, + "mainNode": { + "rss": 444661760, + "heapTotal": 220397568, + "heapUsed": 202711412, + "external": 21652667, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 292914, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5002, + "at": "2026-11-12T14:02:03.514Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 243730160, + "totalSize": 296189952, + "embedderHeapUsedSize": 59259064, + "backingStorageSize": 6883145 + }, + "dom": { + "documents": 1, + "nodes": 939, + "jsEventListeners": 4568 + }, + "mainNode": { + "rss": 283951104, + "heapTotal": 89980928, + "heapUsed": 87192652, + "external": 4676821, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 135618, + "shared": 1040 + } + } + ], + "fixtureScriptSha256": "033eb8d581072c5e7737de5776eacf1adab6a2951d3d157e07cfd5f3f76ad76b", + "fixtureCodingStarts": 22, + "fixtureCodingFinishes": 22, + "measuredIpcBytes": 1684722248, + "sampleCount": 21, + "maximumSampledOutputBytes": 3145728, + "naturalSampleRendererHeapRangeBytes": [ + 37593344, + 243164112 + ], + "naturalSampleMainHeapRangeBytes": [ + 64829416, + 205187272 + ], + "sendToAnswerAndPreviewObservedMs": [ + 1818, + 1636, + 1677, + 1757, + 1810, + 1794, + 1855, + 1805, + 1779, + 2136, + 2108, + 1902, + 1813, + 1867, + 1656, + 1950, + 2079, + 1883, + 1844, + 1763, + 2101 + ] + }, + { + "replicate": 2, + "rawReceiptSha256": "949c10791533a108df96c31e4861bc966b074bcef3aa65fbf69d79e73a44f6d4", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 9.67431640625, + 8.4677734375, + 11.93212890625 + ] + }, + "native": { + "appVersion": "0.2.0", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "baseline", + "source": "89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1", + "tree": "1b417309f0afb1fce6738547f7e3982787d184f2", + "sourceFilesVerified": 724, + "builtFilesVerified": 542, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "warmupStreams": 1, + "measuredStreams": 21, + "bytesPerStream": 3145728, + "deltasPerStream": 48, + "deltaSpacingMs": 10, + "openedPreviewBytes": null, + "expectedLegacyOutputViolation": true + }, + "startedAt": "2026-11-12T14:02:03.831Z", + "finishedAt": "2026-11-12T14:02:59.124Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T14:02:06.930Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 5550864, + "totalSize": 6438912, + "embedderHeapUsedSize": 1581064, + "backingStorageSize": 3733983 + }, + "dom": { + "documents": 1, + "nodes": 243, + "jsEventListeners": 220 + }, + "mainNode": { + "rss": 294174720, + "heapTotal": 72531968, + "heapUsed": 55488856, + "external": 4809206, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 148209, + "shared": 1040 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T14:02:58.942Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 73350900, + "totalSize": 74563584, + "embedderHeapUsedSize": 1869464, + "backingStorageSize": 3734781 + }, + "dom": { + "documents": 1, + "nodes": 371, + "jsEventListeners": 241 + }, + "mainNode": { + "rss": 419086336, + "heapTotal": 201981952, + "heapUsed": 183996952, + "external": 21652636, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 267922, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T14:02:53.890Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 115294760, + "totalSize": 148570112, + "embedderHeapUsedSize": 28863376, + "backingStorageSize": 6881252 + }, + "dom": { + "documents": 1, + "nodes": 585, + "jsEventListeners": 412 + }, + "mainNode": { + "rss": 418988032, + "heapTotal": 201981952, + "heapUsed": 183738164, + "external": 15361165, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 267826, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1000, + "at": "2026-11-12T14:02:54.892Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 115459368, + "totalSize": 148570112, + "embedderHeapUsedSize": 28863376, + "backingStorageSize": 6881252 + }, + "dom": { + "documents": 1, + "nodes": 585, + "jsEventListeners": 458 + }, + "mainNode": { + "rss": 419086336, + "heapTotal": 201981952, + "heapUsed": 183885224, + "external": 21652636, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 267922, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5003, + "at": "2026-11-12T14:02:58.899Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 115496160, + "totalSize": 148570112, + "embedderHeapUsedSize": 28863376, + "backingStorageSize": 6881252 + }, + "dom": { + "documents": 1, + "nodes": 585, + "jsEventListeners": 458 + }, + "mainNode": { + "rss": 419086336, + "heapTotal": 201981952, + "heapUsed": 183941144, + "external": 21652636, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 267922, + "shared": 1040 + } + } + ], + "fixtureScriptSha256": "d4b5fad7869e469ac6aff32dbab80b49756e854df638a47621f4de5a59dc75e8", + "fixtureCodingStarts": 22, + "fixtureCodingFinishes": 22, + "measuredIpcBytes": 1684722248, + "sampleCount": 21, + "maximumSampledOutputBytes": 3145728, + "naturalSampleRendererHeapRangeBytes": [ + 38058956, + 249467592 + ], + "naturalSampleMainHeapRangeBytes": [ + 56492920, + 183568272 + ], + "sendToAnswerAndPreviewObservedMs": [ + 1720, + 2156, + 2172, + 2172, + 2072, + 2198, + 2238, + 2233, + 2239, + 2266, + 2211, + 2282, + 2245, + 2235, + 2242, + 2190, + 2256, + 2291, + 2215, + 2239, + 2269 + ] + }, + { + "replicate": 3, + "rawReceiptSha256": "24c369d359023e2d56de054fcf88eda64cae75839bfd689acccfec56100fc0e0", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 8.8037109375, + 8.3701171875, + 11.67431640625 + ] + }, + "native": { + "appVersion": "0.2.0", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "baseline", + "source": "89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1", + "tree": "1b417309f0afb1fce6738547f7e3982787d184f2", + "sourceFilesVerified": 724, + "builtFilesVerified": 542, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "warmupStreams": 1, + "measuredStreams": 21, + "bytesPerStream": 3145728, + "deltasPerStream": 48, + "deltaSpacingMs": 10, + "openedPreviewBytes": null, + "expectedLegacyOutputViolation": true + }, + "startedAt": "2026-11-12T14:02:59.284Z", + "finishedAt": "2026-11-12T14:03:54.867Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T14:03:02.432Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 8701212, + "totalSize": 9584640, + "embedderHeapUsedSize": 1777288, + "backingStorageSize": 588255 + }, + "dom": { + "documents": 1, + "nodes": 243, + "jsEventListeners": 220 + }, + "mainNode": { + "rss": 311410688, + "heapTotal": 89964544, + "heapUsed": 72162128, + "external": 25256505, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 166514, + "shared": 1040 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T14:03:54.701Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 73345416, + "totalSize": 74563584, + "embedderHeapUsedSize": 1876848, + "backingStorageSize": 3734781 + }, + "dom": { + "documents": 1, + "nodes": 371, + "jsEventListeners": 241 + }, + "mainNode": { + "rss": 285261824, + "heapTotal": 90767360, + "heapUsed": 87638440, + "external": 4676821, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 137474, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T14:03:49.658Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 115128776, + "totalSize": 140443648, + "embedderHeapUsedSize": 28832664, + "backingStorageSize": 6881370 + }, + "dom": { + "documents": 1, + "nodes": 585, + "jsEventListeners": 366 + }, + "mainNode": { + "rss": 451100672, + "heapTotal": 223789056, + "heapUsed": 202680264, + "external": 15361196, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 299698, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1002, + "at": "2026-11-12T14:03:50.666Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 115293388, + "totalSize": 140443648, + "embedderHeapUsedSize": 28832664, + "backingStorageSize": 6881370 + }, + "dom": { + "documents": 1, + "nodes": 585, + "jsEventListeners": 412 + }, + "mainNode": { + "rss": 451198976, + "heapTotal": 223789056, + "heapUsed": 202827224, + "external": 21652667, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 299794, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5002, + "at": "2026-11-12T14:03:54.668Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 115330180, + "totalSize": 140443648, + "embedderHeapUsedSize": 28832664, + "backingStorageSize": 6881370 + }, + "dom": { + "documents": 1, + "nodes": 585, + "jsEventListeners": 412 + }, + "mainNode": { + "rss": 285261824, + "heapTotal": 90767360, + "heapUsed": 87580016, + "external": 4676821, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 137474, + "shared": 1040 + } + } + ], + "fixtureScriptSha256": "3ad40b1a6be2a2592466a9fa71b111a83d84a36492224039e41b1e145ea20c0a", + "fixtureCodingStarts": 22, + "fixtureCodingFinishes": 22, + "measuredIpcBytes": 1684722248, + "sampleCount": 21, + "maximumSampledOutputBytes": 3145728, + "naturalSampleRendererHeapRangeBytes": [ + 25380444, + 252571560 + ], + "naturalSampleMainHeapRangeBytes": [ + 64876368, + 204888372 + ], + "sendToAnswerAndPreviewObservedMs": [ + 2238, + 2204, + 2154, + 2227, + 2196, + 2330, + 2261, + 2270, + 2385, + 2219, + 2205, + 2233, + 2175, + 2193, + 2169, + 2178, + 2280, + 2165, + 2209, + 1723, + 2274 + ] + } + ] + } + }, + "limits": "Descriptive source-rebuild experiments; no provider, universal memory, latency improvement, leak-freedom, native platform or human acceptance claim", + "localValidation": { + "build": 0, + "typecheck": 0, + "unitPass": 2566, + "unitSkip": 36, + "unitFailure": 0, + "unitCancellation": 0, + "focusedGuards": 36, + "benchmarkPass": 12, + "benchmarkSkip": 0, + "benchmarkRetry": 0, + "unitTotal": 2602, + "focusedGuardsIncludedInUnits": true + } +} diff --git a/docs/reviews/2026-11-12-cf8-portable-reproduction.md b/docs/reviews/2026-11-12-cf8-portable-reproduction.md new file mode 100644 index 00000000..dc627197 --- /dev/null +++ b/docs/reviews/2026-11-12-cf8-portable-reproduction.md @@ -0,0 +1,41 @@ +# Portable CF-8 retention reproduction + +The opt-in [benchmark procedure](../../apps/desktop/bench/README.md) reproduces #281’s archived repeated history/log shapes from explicit source revisions. It prepares and verifies both exports before launching twelve fresh Electron apps, using existing synthetic CLI fixtures with no real inference or execution of the command shown in the transcript. It retains the seeded homes, repositories, generated drivers, source/build manifests, first logs and observations in a new private output directory. Ordinary E2E fixture cleanup is unchanged. + +## Qualified source and result + +The complete local qualification ran on diagnostic driver `91c033e45452bedd29dba2e4365da087c9ad673a`, tree `7d6a7a4f1c1f2a92dd1875f981158b08c0ef30f0`, from 2026-11-12 13:53:34 to 14:03:55 UTC. Build, typechecks and the full unit command returned zero: 2,566 passes, 36 skips, zero failures or cancellations. All 36 focused benchmark guards passed. Twelve retention cases then passed with zero skips, retries or flaky outcomes; all twelve receipts report complete observations and returned app-close calls. Both offline manifest verifications passed afterward. Root audit verified every receipt hash, source identity, retained input location, unchanged saved history hash, synthetic script/call log and workload count. Recorded main/renderer PIDs were absent at that audit; this is not exhaustive descendant-process evidence. + +The compared sources are baseline `89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1` (version 0.2.0) and current `44fb41eecf718cf6648b7c8ee95cab1e85e0e072` (version 0.4.2, the pre-squash #503 head). These are source exports rebuilt with the same current pinned dependencies and common core, not historical shipped binaries or a historical lockfile recreation. The driver’s installed core alias, package metadata and actual resolved entry bind to the same first-party core. Each launch verifies source/build/core/driver identities and the actual app path. Baseline has 724 source blobs and 542 desktop build files; current has 1,291 source blobs, 778 desktop build files and 60 common-core build files. The current 778+60 inventory resolves the original series’ 838-file count without missing bytes. + +The host was Apple M5 Max, 18 cores, 128 GiB RAM, arm64, kernel `27.2.0`, Node `v24.22.0`, Electron `44.4.5`, Chromium `152.0.7977.130`. Current ran first, then baseline, sequentially without randomization. Per-replicate host load, timestamps, source verification, exact numeric endpoints, natural-sample ranges, IPC totals and original receipt hashes are in the [public aggregate](2026-11-12-cf8-portable-reproduction.json). Local paths and PIDs are omitted; numeric observations are unchanged. Full per-open/per-stream samples remain in the private raw receipts identified by those hashes. + +| Median of three replicates | Baseline | Current | +| --- | ---: | ---: | +| History renderer warm detached before, bytes | 14,458,388 | 14,966,152 | +| History renderer warm detached after, bytes | 15,009,612 | 15,944,148 | +| History main natural heap after, bytes | 31,584,936 | 32,768,876 | +| History main natural private after, KiB | 105,537 | 107,265 | +| Log measured window traffic, bytes | 1,684,722,248 | 13,948,015 | +| Log maximum sampled output, bytes | 3,145,728 | 262,144 | +| Log renderer warm detached after, bytes | 73,350,900 | 8,427,120 | +| Log main natural heap after, bytes | 87,638,440 | 66,728,912 | +| Log main natural private after, KiB | 137,474 | 181,089 | + +Each history app performs three warm opens and 63 measured opens across three 200-turn/1,400-item histories. Each log app performs one warm-up plus 21 measured streams, each 3 MiB logical output in 48 deltas; the final event repeats aggregated output, so logical bytes are not wire bytes. Each log receipt contains 22 synthetic coding starts and finishes. Baseline positively observes full 3,145,728-byte output and its expected violation of the current output cap; current retains the 262,144-byte preview/IPC assertions and truncation label. No assertion, deadline or workload count was relaxed. + +These reproduce the archived workload shapes, rather than exact historic allocation or traffic totals: runtime load, timestamps and synthetic thread identities vary between runs. Renderer GC is forced only at the matched warm detached endpoints; intermediate renderer and all main snapshots use natural GC. The one/five-second detach samples are observation times; two animation frames do not prove exhaustive settlement. Sample ranges are not high-water marks. Current main private memory is higher in this log run despite a lower renderer endpoint; neither this series nor the original establishes an overall memory reduction, leak freedom, a universal ceiling or a causal repair. + +## Review, failures and reproducibility boundaries + +Fresh independent review of implementation `545e9968` found two Important issues: worker cleanup removed seeded inputs, and the desktop’s actual resolved core was insufficiently bound. A third finding was raised from Minor to Important after a control proved that a matching-byte symlink could select an unbound relative import. All three received failing regressions before repair in one coalesced pass. The repaired source retains benchmark inputs using a seed-only private temporary root restored before app launch, binds actual core metadata/entry before building and launching, and rejects noncanonical, missing, traversing or symlinked driver paths. The review was source review with validation pending; the subsequent full qualification above verifies the repaired source, without a second review or an invented approval. + +The original `545e9968` full qualification stopped before measurement when two unchanged unit cases exceeded their 6-second Stop and 5-second demo deadlines. Both passed unchanged in a separately recorded focused control; the timing cause remains unestablished. That failed qualification and its first logs are retained. The later run was justified by the actual review repairs, passed the entire suite and invoked the twelve-case benchmark once. A deliberate pre-measurement review hold on the first run was never reached. Earlier setup failures involving an unnecessary dependency-free core directory and a wrong typecheck working directory are also retained; neither was a measured app failure. No automatic retries were used. + +The README explicitly fetches both full comparison SHAs, since fresh `main` clones may lack the pre-squash head. A separate fresh bare-repository control fetched both exact commits successfully; this tests source availability, not a second complete installation or measurement series. The CLI refuses unavailable/short refs, existing outputs, dangling links, divergent/dirty common core, traversal, changed source/build/driver bytes and changed dependency links. A failed worker retains its seeded input locator before other setup. Preparation and measurement stop at the first failure and never delete or overwrite an earlier run. + +Independent review SHA-256: `5b01bc207d88ed2fe0f50c3cb65c7f33f804cc623126ef7448147b18ae1ecb5d`. Complete local validation SHA-256: `35fc3ce5f88593352ceeaad16797c8c62c359026a45402b37c07cdf7b192a590`. Terminal root audit SHA-256: `036b3f964a560207e0af4cae90065b2166142c24e937f708d6d1c38a2081b95d`. Original review, RED/GREEN logs, first failures, full manifests and raw receipts remain in the private closeout evidence store. + +Review boundaries remain explicit: the owned diagnostic trusts developer Git/PATH/Node configuration, does not attest every third-party dependency or Electron byte, and does not provide atomic protection against a hostile concurrent filesystem writer. Standalone verification checks listed bytes against supplied metadata; orchestrated use also binds the recorded manifest digest. Power loss, forced termination and disk exhaustion can leave incomplete receipts, which cannot satisfy the twelve-case completion gate. Original workload errors remain in per-case receipts even if teardown surfaces a later close error. Two archived fixture files intentionally preserve their original extra EOF blank lines, so full-branch `git diff --check` reports those two cosmetic warnings. Ordinary local UI E2E was not repeated for tooling-only changes; required hosted and protected-queue checks remain delivery gates. + +This procedure supplies portable repeated-series measurement tooling for the combined reproducible capture/performance criterion. The [unified candidate receipt](2026-11-12-cf8-reproduction-candidate.md) adds the visual-difference inventory, both source-export capture controls and exact-candidate performance qualification. It does not complete #281’s real-provider/native/platform/device/human acceptance, child issue gates, rollout or release. S5’s existing literal acceptance and its original numeric receipt remain separate. No new issue box is checked by this tooling receipt, and Code Review/LocalExecution defaults and admission remain unchanged. diff --git a/docs/reviews/2026-11-12-cf8-reproduction-candidate.json b/docs/reviews/2026-11-12-cf8-reproduction-candidate.json new file mode 100644 index 00000000..750e44b3 --- /dev/null +++ b/docs/reviews/2026-11-12-cf8-reproduction-candidate.json @@ -0,0 +1,5446 @@ +{ + "at": "2026-11-12T15:14:37.120961+00:00", + "candidateSource": "8771c3c2d7ef16de9ca12940eac2937119ae69b7", + "candidateTree": "307bce5ea4dc305ca11d227e23c436d942a0deb4", + "captureSource": "18aa43f689227ec7c20dae2751e2292026483dc4", + "captureEquivalence": "18\u2192877onlythree documentation files differ; all792source18exportdesktopbuildfiles equal candidate877driverbuild; no canonicalfixture/runtime input changed", + "visualManifest": "2026-11-12-cf8-visual-reproduction/screenshots/manifest.json", + "visualManifestSha256": "fb67e805a1f23708a17d17012de7257535baf6ced0fe348db06bafd30fb6d3dc", + "retention": { + "schema": 1, + "at": "2026-11-12T15:10:28.008731+00:00", + "diagnosticDriverHead": "8771c3c2d7ef16de9ca12940eac2937119ae69b7", + "diagnosticDriverTree": "307bce5ea4dc305ca11d227e23c436d942a0deb4", + "sourceRebuildOnly": true, + "order": [ + "current", + "baseline" + ], + "workloadsReceiptSha256": "3a9eaf7efa6065de1ab48b26aa5b3fadf9568735e46d39360aa768e2f8fbac32", + "groups": { + "current": { + "source": { + "sha": "8771c3c2d7ef16de9ca12940eac2937119ae69b7", + "tree": "307bce5ea4dc305ca11d227e23c436d942a0deb4" + }, + "appVersion": "0.4.2", + "manifestSha256": "85143b1ddc2eaf318949363351490ffa7a637a9138760fd5503a4fd92dd8da70", + "reportSha256": "5501502d0cf07d8c1b5bb1d0960171278338821df6bf7022390b2aa9ddfd6e67", + "passed": 6, + "skipped": 0, + "retries": 0, + "history": [ + { + "replicate": 1, + "rawReceiptSha256": "9cf7f8dde6d7285f7bee1b2896a938722d528ba4592a5e237d2c1b19afee1e95", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 8.00341796875, + 8.947265625, + 7.71728515625 + ] + }, + "native": { + "appVersion": "0.4.2", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "current", + "source": "8771c3c2d7ef16de9ca12940eac2937119ae69b7", + "tree": "307bce5ea4dc305ca11d227e23c436d942a0deb4", + "sourceFilesVerified": 1333, + "builtFilesVerified": 792, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "histories": 3, + "shape": "200 turns/1400 items each; distinct thread provenance and first request, otherwise same deterministic shape", + "warmupOpens": 3, + "measuredOpens": 63, + "opensPerHistory": 21, + "savedBytes": [ + 2994024, + 2994024, + 2994024 + ], + "savedSha256": [ + "7b95f2e0799bbc412efc8300d6e80ffecfbbfe88253cffb7ab10a80762ac5653", + "c0c911c72f80f4d6f9964019fc741811aa0c04bb0cf2b617c3634d4796afb9cc", + "e895f4f41807cf73d50b396a934d8f8a674b3d58a38ff78503c16516b588df6c" + ] + }, + "startedAt": "2026-11-12T15:02:26.733Z", + "finishedAt": "2026-11-12T15:02:41.734Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T15:02:28.104Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 14958444, + "totalSize": 16908288, + "embedderHeapUsedSize": 2789984, + "backingStorageSize": 918227 + }, + "dom": { + "documents": 1, + "nodes": 320, + "jsEventListeners": 269 + }, + "mainNode": { + "rss": 234012672, + "heapTotal": 48185344, + "heapUsed": 38054648, + "external": 6778331, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 91121, + "shared": 1072 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T15:02:41.557Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 15798040, + "totalSize": 17170432, + "embedderHeapUsedSize": 2619320, + "backingStorageSize": 755965 + }, + "dom": { + "documents": 1, + "nodes": 320, + "jsEventListeners": 230 + }, + "mainNode": { + "rss": 266076160, + "heapTotal": 68288512, + "heapUsed": 52199664, + "external": 10972969, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 121345, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T15:02:36.516Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 41923956, + "totalSize": 100794368, + "embedderHeapUsedSize": 25711888, + "backingStorageSize": 964385 + }, + "dom": { + "documents": 1, + "nodes": 17335, + "jsEventListeners": 5389 + }, + "mainNode": { + "rss": 265469952, + "heapTotal": 68026368, + "heapUsed": 51862368, + "external": 4681498, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 120705, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1002, + "at": "2026-11-12T15:02:37.527Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 42077784, + "totalSize": 100794368, + "embedderHeapUsedSize": 25692280, + "backingStorageSize": 964385 + }, + "dom": { + "documents": 1, + "nodes": 17335, + "jsEventListeners": 5428 + }, + "mainNode": { + "rss": 265945088, + "heapTotal": 68026368, + "heapUsed": 52088064, + "external": 10972969, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 121233, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5000, + "at": "2026-11-12T15:02:41.527Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 42112860, + "totalSize": 100794368, + "embedderHeapUsedSize": 25684024, + "backingStorageSize": 964385 + }, + "dom": { + "documents": 1, + "nodes": 17335, + "jsEventListeners": 5428 + }, + "mainNode": { + "rss": 266010624, + "heapTotal": 68288512, + "heapUsed": 52143856, + "external": 10972969, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 121281, + "shared": 1040 + } + } + ], + "sampleCount": 63, + "naturalSampleRendererHeapRangeBytes": [ + 27560404, + 102007056 + ], + "naturalSampleMainHeapRangeBytes": [ + 25808584, + 51690136 + ] + }, + { + "replicate": 2, + "rawReceiptSha256": "b6fde1afd3a3565ceb9bc8942131a7a9103eab8915988cd307150100033c4f3b", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 8.00830078125, + 8.9130859375, + 7.7265625 + ] + }, + "native": { + "appVersion": "0.4.2", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "current", + "source": "8771c3c2d7ef16de9ca12940eac2937119ae69b7", + "tree": "307bce5ea4dc305ca11d227e23c436d942a0deb4", + "sourceFilesVerified": 1333, + "builtFilesVerified": 792, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "histories": 3, + "shape": "200 turns/1400 items each; distinct thread provenance and first request, otherwise same deterministic shape", + "warmupOpens": 3, + "measuredOpens": 63, + "opensPerHistory": 21, + "savedBytes": [ + 2994024, + 2994024, + 2994024 + ], + "savedSha256": [ + "5df8c5a3c84937c87d585bbe32c82385178547ed2b257b467771ba437db57137", + "1a1e1e1318d827b3766390c7224762bb2f3ab394506f6264929590197608b506", + "9fb52b5cc910d13a3d1c4b699afb77ed926ed4cca42cb44ccd006162f9ff2a0b" + ] + }, + "startedAt": "2026-11-12T15:02:41.870Z", + "finishedAt": "2026-11-12T15:02:57.047Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T15:02:43.312Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 14957808, + "totalSize": 16646144, + "embedderHeapUsedSize": 2784080, + "backingStorageSize": 918395 + }, + "dom": { + "documents": 1, + "nodes": 320, + "jsEventListeners": 269 + }, + "mainNode": { + "rss": 233783296, + "heapTotal": 47661056, + "heapUsed": 38060516, + "external": 6778331, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 90577, + "shared": 1072 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T15:02:56.884Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 15788420, + "totalSize": 19005440, + "embedderHeapUsedSize": 3208632, + "backingStorageSize": 756137 + }, + "dom": { + "documents": 1, + "nodes": 320, + "jsEventListeners": 230 + }, + "mainNode": { + "rss": 265289728, + "heapTotal": 68026368, + "heapUsed": 51484732, + "external": 10972545, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 120241, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T15:02:51.841Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 75543532, + "totalSize": 136445952, + "embedderHeapUsedSize": 89757744, + "backingStorageSize": 1086767 + }, + "dom": { + "documents": 1, + "nodes": 68313, + "jsEventListeners": 17177 + }, + "mainNode": { + "rss": 264650752, + "heapTotal": 67764224, + "heapUsed": 51152196, + "external": 4681086, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 119569, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1003, + "at": "2026-11-12T15:02:52.841Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 75696896, + "totalSize": 136445952, + "embedderHeapUsedSize": 89917440, + "backingStorageSize": 1086767 + }, + "dom": { + "documents": 1, + "nodes": 68313, + "jsEventListeners": 17177 + }, + "mainNode": { + "rss": 265142272, + "heapTotal": 68026368, + "heapUsed": 51373144, + "external": 10972545, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 120113, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5002, + "at": "2026-11-12T15:02:56.845Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 75731968, + "totalSize": 136445952, + "embedderHeapUsedSize": 89909320, + "backingStorageSize": 1086767 + }, + "dom": { + "documents": 1, + "nodes": 68313, + "jsEventListeners": 17177 + }, + "mainNode": { + "rss": 265207808, + "heapTotal": 68026368, + "heapUsed": 51428924, + "external": 10972545, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 120177, + "shared": 1040 + } + } + ], + "sampleCount": 63, + "naturalSampleRendererHeapRangeBytes": [ + 37270236, + 113246388 + ], + "naturalSampleMainHeapRangeBytes": [ + 25624444, + 50975068 + ] + }, + { + "replicate": 3, + "rawReceiptSha256": "32725647ec22ba2bf689062e0fc481dca6f0e3f2b3dc686530a4b42f68c2260e", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 7.82666015625, + 8.8330078125, + 7.71923828125 + ] + }, + "native": { + "appVersion": "0.4.2", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "current", + "source": "8771c3c2d7ef16de9ca12940eac2937119ae69b7", + "tree": "307bce5ea4dc305ca11d227e23c436d942a0deb4", + "sourceFilesVerified": 1333, + "builtFilesVerified": 792, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "histories": 3, + "shape": "200 turns/1400 items each; distinct thread provenance and first request, otherwise same deterministic shape", + "warmupOpens": 3, + "measuredOpens": 63, + "opensPerHistory": 21, + "savedBytes": [ + 2994024, + 2994024, + 2994024 + ], + "savedSha256": [ + "c6d7a16eee9bc331fabe4d466aee0352e62be58229b16ccd33f32acd4a8f34f6", + "6405181c19f1e74a08eb97a7bfc3d0b0ccbcf7f0b6a4c16c1b310fcd9491f5c2", + "ebeec9c6134f02b9d168f0cebc1a86b17d00f5c2fa5265434ccc22ae5d995664" + ] + }, + "startedAt": "2026-11-12T15:02:57.171Z", + "finishedAt": "2026-11-12T15:03:12.318Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T15:02:58.703Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 14958816, + "totalSize": 16646144, + "embedderHeapUsedSize": 2596928, + "backingStorageSize": 918217 + }, + "dom": { + "documents": 1, + "nodes": 320, + "jsEventListeners": 269 + }, + "mainNode": { + "rss": 229113856, + "heapTotal": 43089920, + "heapUsed": 34287108, + "external": 6778305, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 85777, + "shared": 1072 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T15:03:12.161Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 15790664, + "totalSize": 18743296, + "embedderHeapUsedSize": 6270072, + "backingStorageSize": 755965 + }, + "dom": { + "documents": 1, + "nodes": 320, + "jsEventListeners": 230 + }, + "mainNode": { + "rss": 251445248, + "heapTotal": 56492032, + "heapUsed": 33533864, + "external": 10963655, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 107825, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T15:03:07.107Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 94251816, + "totalSize": 200933376, + "embedderHeapUsedSize": 111383864, + "backingStorageSize": 1132990 + }, + "dom": { + "documents": 1, + "nodes": 271000, + "jsEventListeners": 23957 + }, + "mainNode": { + "rss": 251248640, + "heapTotal": 56492032, + "heapUsed": 33201052, + "external": 4672196, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 107585, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1001, + "at": "2026-11-12T15:03:08.109Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 94293644, + "totalSize": 200933376, + "embedderHeapUsedSize": 111565480, + "backingStorageSize": 1132990 + }, + "dom": { + "documents": 1, + "nodes": 271000, + "jsEventListeners": 23957 + }, + "mainNode": { + "rss": 251428864, + "heapTotal": 56492032, + "heapUsed": 33422192, + "external": 10963655, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 107825, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5001, + "at": "2026-11-12T15:03:12.111Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 94328744, + "totalSize": 200933376, + "embedderHeapUsedSize": 111565480, + "backingStorageSize": 1132990 + }, + "dom": { + "documents": 1, + "nodes": 271000, + "jsEventListeners": 23957 + }, + "mainNode": { + "rss": 251445248, + "heapTotal": 56492032, + "heapUsed": 33477972, + "external": 10963655, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 107825, + "shared": 1040 + } + } + ], + "sampleCount": 63, + "naturalSampleRendererHeapRangeBytes": [ + 38169004, + 151971776 + ], + "naturalSampleMainHeapRangeBytes": [ + 25797096, + 40163040 + ] + } + ], + "stream": [ + { + "replicate": 1, + "rawReceiptSha256": "c89089a10aefab121a12308fd43c22cd943613da7163c19bd317a2f5bfd556d9", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 7.353515625, + 8.67724609375, + 7.6826171875 + ] + }, + "native": { + "appVersion": "0.4.2", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "current", + "source": "8771c3c2d7ef16de9ca12940eac2937119ae69b7", + "tree": "307bce5ea4dc305ca11d227e23c436d942a0deb4", + "sourceFilesVerified": 1333, + "builtFilesVerified": 792, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "warmupStreams": 1, + "measuredStreams": 21, + "bytesPerStream": 3145728, + "deltasPerStream": 48, + "deltaSpacingMs": 10, + "openedPreviewBytes": 262144, + "expectedLegacyOutputViolation": false + }, + "startedAt": "2026-11-12T15:03:12.638Z", + "finishedAt": "2026-11-12T15:03:55.778Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T15:03:15.594Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 6113624, + "totalSize": 6963200, + "embedderHeapUsedSize": 1931280, + "backingStorageSize": 1011716 + }, + "dom": { + "documents": 1, + "nodes": 246, + "jsEventListeners": 253 + }, + "mainNode": { + "rss": 288505856, + "heapTotal": 40468480, + "heapUsed": 19837984, + "external": 4688221, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 114529, + "shared": 1040 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T15:03:55.612Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 8158688, + "totalSize": 9306112, + "embedderHeapUsedSize": 2015704, + "backingStorageSize": 6255970 + }, + "dom": { + "documents": 1, + "nodes": 374, + "jsEventListeners": 241 + }, + "mainNode": { + "rss": 367329280, + "heapTotal": 86573056, + "heapUsed": 53123976, + "external": 18320297, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 167778, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T15:03:50.588Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 19977940, + "totalSize": 45547520, + "embedderHeapUsedSize": 7100336, + "backingStorageSize": 6520210 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 2859 + }, + "mainNode": { + "rss": 367230976, + "heapTotal": 86573056, + "heapUsed": 52795328, + "external": 12028826, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 167682, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1001, + "at": "2026-11-12T15:03:51.588Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 20146884, + "totalSize": 45547520, + "embedderHeapUsedSize": 7071320, + "backingStorageSize": 6520210 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 2905 + }, + "mainNode": { + "rss": 367329280, + "heapTotal": 86573056, + "heapUsed": 53012212, + "external": 18320297, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 167778, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5001, + "at": "2026-11-12T15:03:55.589Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 20183740, + "totalSize": 45547520, + "embedderHeapUsedSize": 7071320, + "backingStorageSize": 6520210 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 2905 + }, + "mainNode": { + "rss": 367329280, + "heapTotal": 86573056, + "heapUsed": 53068040, + "external": 18320297, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 167778, + "shared": 1040 + } + } + ], + "fixtureScriptSha256": "04682ca6f393f34d707a295965d0346985da3563339a2c4c710085aca38b3482", + "fixtureCodingStarts": 22, + "fixtureCodingFinishes": 22, + "measuredIpcBytes": 13948603, + "sampleCount": 21, + "maximumSampledOutputBytes": 262144, + "naturalSampleRendererHeapRangeBytes": [ + 11168260, + 23124568 + ], + "naturalSampleMainHeapRangeBytes": [ + 24868928, + 102765724 + ], + "sendToAnswerAndPreviewObservedMs": [ + 1741, + 1756, + 1619, + 2042, + 1597, + 1837, + 1566, + 1727, + 1828, + 1723, + 1885, + 2014, + 1730, + 1604, + 1531, + 1346, + 1322, + 1394, + 1232, + 1381, + 1438 + ] + }, + { + "replicate": 2, + "rawReceiptSha256": "35a8da3328f03ced3a10b1c8d679f0cb8dc0b89e0048a804303a644a2b1caee8", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 6.22900390625, + 8.22900390625, + 7.56298828125 + ] + }, + "native": { + "appVersion": "0.4.2", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "current", + "source": "8771c3c2d7ef16de9ca12940eac2937119ae69b7", + "tree": "307bce5ea4dc305ca11d227e23c436d942a0deb4", + "sourceFilesVerified": 1333, + "builtFilesVerified": 792, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "warmupStreams": 1, + "measuredStreams": 21, + "bytesPerStream": 3145728, + "deltasPerStream": 48, + "deltaSpacingMs": 10, + "openedPreviewBytes": 262144, + "expectedLegacyOutputViolation": false + }, + "startedAt": "2026-11-12T15:03:55.923Z", + "finishedAt": "2026-11-12T15:04:35.016Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T15:03:58.311Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 6327472, + "totalSize": 6963200, + "embedderHeapUsedSize": 1972768, + "backingStorageSize": 1011716 + }, + "dom": { + "documents": 1, + "nodes": 246, + "jsEventListeners": 253 + }, + "mainNode": { + "rss": 321732608, + "heapTotal": 66600960, + "heapUsed": 47211756, + "external": 11701143, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 147393, + "shared": 1040 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T15:04:34.746Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 8156336, + "totalSize": 9306112, + "embedderHeapUsedSize": 1992984, + "backingStorageSize": 6255847 + }, + "dom": { + "documents": 1, + "nodes": 374, + "jsEventListeners": 241 + }, + "mainNode": { + "rss": 344227840, + "heapTotal": 68681728, + "heapUsed": 32571412, + "external": 11045225, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 144401, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T15:04:29.705Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 19238700, + "totalSize": 41615360, + "embedderHeapUsedSize": 7108312, + "backingStorageSize": 6520087 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 2619 + }, + "mainNode": { + "rss": 344178688, + "heapTotal": 68681728, + "heapUsed": 32243516, + "external": 4753754, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 144353, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1001, + "at": "2026-11-12T15:04:30.714Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 19407608, + "totalSize": 41615360, + "embedderHeapUsedSize": 7103048, + "backingStorageSize": 6520087 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 2665 + }, + "mainNode": { + "rss": 344276992, + "heapTotal": 68681728, + "heapUsed": 32459536, + "external": 11045225, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 144449, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5002, + "at": "2026-11-12T15:04:34.704Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 19444464, + "totalSize": 41615360, + "embedderHeapUsedSize": 7114536, + "backingStorageSize": 6520087 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 2665 + }, + "mainNode": { + "rss": 344227840, + "heapTotal": 68681728, + "heapUsed": 32515476, + "external": 11045225, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 144401, + "shared": 1040 + } + } + ], + "fixtureScriptSha256": "8e5f13ab9198edf3e0dad524537808a574a5e14a6f5dcf08e479cc124089b899", + "fixtureCodingStarts": 22, + "fixtureCodingFinishes": 22, + "measuredIpcBytes": 13948603, + "sampleCount": 21, + "maximumSampledOutputBytes": 262144, + "naturalSampleRendererHeapRangeBytes": [ + 9994276, + 23140796 + ], + "naturalSampleMainHeapRangeBytes": [ + 24857428, + 103817412 + ], + "sendToAnswerAndPreviewObservedMs": [ + 1332, + 1451, + 1565, + 1498, + 1273, + 1515, + 1388, + 1549, + 1362, + 1620, + 1260, + 1475, + 1540, + 1506, + 1373, + 1454, + 1503, + 1390, + 1599, + 1132, + 1962 + ] + }, + { + "replicate": 3, + "rawReceiptSha256": "db019074e7dc85c0e9602b403da3ee8e364de40781bbeb44ea95173b314ecec3", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 6.1875, + 7.95068359375, + 7.48974609375 + ] + }, + "native": { + "appVersion": "0.4.2", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "current", + "source": "8771c3c2d7ef16de9ca12940eac2937119ae69b7", + "tree": "307bce5ea4dc305ca11d227e23c436d942a0deb4", + "sourceFilesVerified": 1333, + "builtFilesVerified": 792, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "warmupStreams": 1, + "measuredStreams": 21, + "bytesPerStream": 3145728, + "deltasPerStream": 48, + "deltaSpacingMs": 10, + "openedPreviewBytes": 262144, + "expectedLegacyOutputViolation": false + }, + "startedAt": "2026-11-12T15:04:35.494Z", + "finishedAt": "2026-11-12T15:05:20.343Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T15:04:38.937Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 6016668, + "totalSize": 7487488, + "embedderHeapUsedSize": 2067208, + "backingStorageSize": 1011677 + }, + "dom": { + "documents": 1, + "nodes": 246, + "jsEventListeners": 253 + }, + "mainNode": { + "rss": 288227328, + "heapTotal": 39944192, + "heapUsed": 19834224, + "external": 4688221, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 115537, + "shared": 1040 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T15:05:20.196Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 8685884, + "totalSize": 10092544, + "embedderHeapUsedSize": 1998040, + "backingStorageSize": 5731764 + }, + "dom": { + "documents": 1, + "nodes": 374, + "jsEventListeners": 241 + }, + "mainNode": { + "rss": 392282112, + "heapTotal": 109690880, + "heapUsed": 74894232, + "external": 19827748, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 193906, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T15:05:15.172Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 23671396, + "totalSize": 44859392, + "embedderHeapUsedSize": 7753360, + "backingStorageSize": 5996007 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 3567 + }, + "mainNode": { + "rss": 392167424, + "heapTotal": 109690880, + "heapUsed": 74567520, + "external": 13536277, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 193794, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1002, + "at": "2026-11-12T15:05:16.183Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 23875372, + "totalSize": 44859392, + "embedderHeapUsedSize": 7762952, + "backingStorageSize": 5996007 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 3613 + }, + "mainNode": { + "rss": 392282112, + "heapTotal": 109690880, + "heapUsed": 74782416, + "external": 19827748, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 193906, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5002, + "at": "2026-11-12T15:05:20.171Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 23912232, + "totalSize": 44859392, + "embedderHeapUsedSize": 7767664, + "backingStorageSize": 5996007 + }, + "dom": { + "documents": 1, + "nodes": 629, + "jsEventListeners": 3613 + }, + "mainNode": { + "rss": 392282112, + "heapTotal": 109690880, + "heapUsed": 74838296, + "external": 19827748, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 193906, + "shared": 1040 + } + } + ], + "fixtureScriptSha256": "8418d0a06668c1460bfcaf54d71885073efe29b9eff7c92f6aedd4c6bc9069e8", + "fixtureCodingStarts": 22, + "fixtureCodingFinishes": 22, + "measuredIpcBytes": 13948603, + "sampleCount": 21, + "maximumSampledOutputBytes": 262144, + "naturalSampleRendererHeapRangeBytes": [ + 9318996, + 23155708 + ], + "naturalSampleMainHeapRangeBytes": [ + 20397820, + 107819292 + ], + "sendToAnswerAndPreviewObservedMs": [ + 2327, + 2285, + 2236, + 2171, + 2244, + 2105, + 2097, + 2095, + 1828, + 1755, + 1733, + 1849, + 1181, + 1172, + 1843, + 1098, + 1172, + 1091, + 1116, + 1079, + 1082 + ] + } + ] + }, + "baseline": { + "source": { + "sha": "89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1", + "tree": "1b417309f0afb1fce6738547f7e3982787d184f2" + }, + "appVersion": "0.2.0", + "manifestSha256": "8e7e45530a85957695422f08db393ba4ca78acf1caf9a9cc2106e8e6cdbcbed7", + "reportSha256": "cdeeaec08d84703f9be198cd93fc374a8be4506b13fa654feda2b4a5ed23dc57", + "passed": 6, + "skipped": 0, + "retries": 0, + "history": [ + { + "replicate": 1, + "rawReceiptSha256": "e12a74e7b7c3dbc2f9ec5ad7f91f36503efe746e188797dc84588cd14e079cee", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 6.435546875, + 7.72802734375, + 7.431640625 + ] + }, + "native": { + "appVersion": "0.2.0", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "baseline", + "source": "89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1", + "tree": "1b417309f0afb1fce6738547f7e3982787d184f2", + "sourceFilesVerified": 724, + "builtFilesVerified": 542, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "histories": 3, + "shape": "200 turns/1400 items each; distinct thread provenance and first request, otherwise same deterministic shape", + "warmupOpens": 3, + "measuredOpens": 63, + "opensPerHistory": 21, + "savedBytes": [ + 2994024, + 2994024, + 2994024 + ], + "savedSha256": [ + "e8a107765b3d94947896d27480c939c6fbff375745b416518ac5acbe88e51842", + "dabc0f68b3b47dec315cfc336cb7c8dac61660e2c2c93842a9e38b298158e190", + "fb3edcd87ef412745456f2d139ac5071b4a7b33fd980f6d917661c880f06fdf2" + ] + }, + "startedAt": "2026-11-12T15:05:21.852Z", + "finishedAt": "2026-11-12T15:05:35.386Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T15:05:23.073Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 14457996, + "totalSize": 16908288, + "embedderHeapUsedSize": 3434024, + "backingStorageSize": 587789 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 269 + }, + "mainNode": { + "rss": 227115008, + "heapTotal": 41680896, + "heapUsed": 32913896, + "external": 6755383, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 84497, + "shared": 1072 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T15:05:35.233Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 15008644, + "totalSize": 16121856, + "embedderHeapUsedSize": 2653312, + "backingStorageSize": 588201 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 230 + }, + "mainNode": { + "rss": 249528320, + "heapTotal": 55607296, + "heapUsed": 32286232, + "external": 10940743, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 105425, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T15:05:30.199Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 42693656, + "totalSize": 100794368, + "embedderHeapUsedSize": 39939096, + "backingStorageSize": 709809 + }, + "dom": { + "documents": 1, + "nodes": 31971, + "jsEventListeners": 8893 + }, + "mainNode": { + "rss": 249282560, + "heapTotal": 55607296, + "heapUsed": 31953624, + "external": 4649284, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 105121, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1000, + "at": "2026-11-12T15:05:31.191Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 42843424, + "totalSize": 100794368, + "embedderHeapUsedSize": 39932440, + "backingStorageSize": 709809 + }, + "dom": { + "documents": 1, + "nodes": 31971, + "jsEventListeners": 8932 + }, + "mainNode": { + "rss": 249495552, + "heapTotal": 55607296, + "heapUsed": 32174312, + "external": 10940743, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 105425, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5002, + "at": "2026-11-12T15:05:35.201Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 42878412, + "totalSize": 100794368, + "embedderHeapUsedSize": 39932440, + "backingStorageSize": 709809 + }, + "dom": { + "documents": 1, + "nodes": 31971, + "jsEventListeners": 8932 + }, + "mainNode": { + "rss": 249528320, + "heapTotal": 55607296, + "heapUsed": 32230276, + "external": 10940743, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 105425, + "shared": 1040 + } + } + ], + "sampleCount": 63, + "naturalSampleRendererHeapRangeBytes": [ + 27719176, + 60382624 + ], + "naturalSampleMainHeapRangeBytes": [ + 24551524, + 38889468 + ] + }, + { + "replicate": 2, + "rawReceiptSha256": "2346a3ec34dfd0d20705affd588144c82205051eaaf6810dd3d7da0e399480fd", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 7.236328125, + 7.85302734375, + 7.478515625 + ] + }, + "native": { + "appVersion": "0.2.0", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "baseline", + "source": "89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1", + "tree": "1b417309f0afb1fce6738547f7e3982787d184f2", + "sourceFilesVerified": 724, + "builtFilesVerified": 542, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "histories": 3, + "shape": "200 turns/1400 items each; distinct thread provenance and first request, otherwise same deterministic shape", + "warmupOpens": 3, + "measuredOpens": 63, + "opensPerHistory": 21, + "savedBytes": [ + 2994024, + 2994024, + 2994024 + ], + "savedSha256": [ + "d6c96c4b454f35d1fe0d9e3b6a4eaa85cf021e779bcc837d6f7c975214f84bba", + "9f23ac7a9ece4df942b9c7822ad2f5c44c052842d3784443650d6cf2e9cfdf82", + "16c88261a014488aa290e4ae1980e50df45e10ad24e099228b98261fd1e6b6c5" + ] + }, + "startedAt": "2026-11-12T15:05:35.449Z", + "finishedAt": "2026-11-12T15:05:48.996Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T15:05:36.744Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 14459672, + "totalSize": 15859712, + "embedderHeapUsedSize": 2666128, + "backingStorageSize": 587615 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 269 + }, + "mainNode": { + "rss": 227065856, + "heapTotal": 41418752, + "heapUsed": 32912292, + "external": 6755383, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 84481, + "shared": 1072 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T15:05:48.851Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 14999056, + "totalSize": 16646144, + "embedderHeapUsedSize": 1825368, + "backingStorageSize": 588205 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 230 + }, + "mainNode": { + "rss": 256229376, + "heapTotal": 62685184, + "heapUsed": 47040976, + "external": 10948446, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 113057, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T15:05:43.828Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 15250068, + "totalSize": 99745792, + "embedderHeapUsedSize": 3140208, + "backingStorageSize": 588617 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 269 + }, + "mainNode": { + "rss": 255655936, + "heapTotal": 62160896, + "heapUsed": 46731392, + "external": 4656987, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 112529, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1002, + "at": "2026-11-12T15:05:44.826Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 15296800, + "totalSize": 99745792, + "embedderHeapUsedSize": 3009144, + "backingStorageSize": 588623 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 269 + }, + "mainNode": { + "rss": 256098304, + "heapTotal": 62685184, + "heapUsed": 46929204, + "external": 10948446, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 112961, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5001, + "at": "2026-11-12T15:05:48.825Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 15335816, + "totalSize": 99745792, + "embedderHeapUsedSize": 2631512, + "backingStorageSize": 588623 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 269 + }, + "mainNode": { + "rss": 256180224, + "heapTotal": 62685184, + "heapUsed": 46985168, + "external": 10948446, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 113009, + "shared": 1040 + } + } + ], + "sampleCount": 63, + "naturalSampleRendererHeapRangeBytes": [ + 26643288, + 51472956 + ], + "naturalSampleMainHeapRangeBytes": [ + 25852672, + 46554380 + ] + }, + { + "replicate": 3, + "rawReceiptSha256": "8852f15e3ca2cdb4554be27e7014917bc562984207d03916fdf66b6076108539", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 7.52294921875, + 7.90380859375, + 7.50390625 + ] + }, + "native": { + "appVersion": "0.2.0", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "baseline", + "source": "89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1", + "tree": "1b417309f0afb1fce6738547f7e3982787d184f2", + "sourceFilesVerified": 724, + "builtFilesVerified": 542, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "histories": 3, + "shape": "200 turns/1400 items each; distinct thread provenance and first request, otherwise same deterministic shape", + "warmupOpens": 3, + "measuredOpens": 63, + "opensPerHistory": 21, + "savedBytes": [ + 2994024, + 2994024, + 2994024 + ], + "savedSha256": [ + "4eb1347a619242bb6a9c7a81a96777f45e3cd52d1d0d877a78ef88f5eca3a77d", + "2b439d4ffb15c4c2d4ced7286387cd8839ee82eed82f8363c12aade2fafad02c", + "e849ef8f3278d26e41c54925063fd2202aaabaf930d3d4eb14fb0e9240bb5f4b" + ] + }, + "startedAt": "2026-11-12T15:05:49.043Z", + "finishedAt": "2026-11-12T15:06:02.347Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T15:05:50.282Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 14337784, + "totalSize": 17432576, + "embedderHeapUsedSize": 3569272, + "backingStorageSize": 587746 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 230 + }, + "mainNode": { + "rss": 227082240, + "heapTotal": 41156608, + "heapUsed": 32919064, + "external": 6755279, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 84001, + "shared": 1072 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T15:06:02.198Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 15015392, + "totalSize": 16646144, + "embedderHeapUsedSize": 2777512, + "backingStorageSize": 588201 + }, + "dom": { + "documents": 1, + "nodes": 317, + "jsEventListeners": 230 + }, + "mainNode": { + "rss": 249446400, + "heapTotal": 55083008, + "heapUsed": 32283616, + "external": 10940743, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 106289, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T15:05:57.159Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 42561452, + "totalSize": 100794368, + "embedderHeapUsedSize": 40814096, + "backingStorageSize": 709805 + }, + "dom": { + "documents": 1, + "nodes": 31971, + "jsEventListeners": 8971 + }, + "mainNode": { + "rss": 249217024, + "heapTotal": 55083008, + "heapUsed": 31946280, + "external": 4649272, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 106001, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1002, + "at": "2026-11-12T15:05:58.168Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 42711204, + "totalSize": 100794368, + "embedderHeapUsedSize": 40835680, + "backingStorageSize": 709805 + }, + "dom": { + "documents": 1, + "nodes": 31971, + "jsEventListeners": 9010 + }, + "mainNode": { + "rss": 249413632, + "heapTotal": 55083008, + "heapUsed": 32171768, + "external": 10940743, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 106289, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5002, + "at": "2026-11-12T15:06:02.169Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 42746192, + "totalSize": 100794368, + "embedderHeapUsedSize": 40835680, + "backingStorageSize": 709805 + }, + "dom": { + "documents": 1, + "nodes": 31971, + "jsEventListeners": 9010 + }, + "mainNode": { + "rss": 249446400, + "heapTotal": 55083008, + "heapUsed": 32227732, + "external": 10940743, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 106289, + "shared": 1040 + } + } + ], + "sampleCount": 63, + "naturalSampleRendererHeapRangeBytes": [ + 26652164, + 58650452 + ], + "naturalSampleMainHeapRangeBytes": [ + 24551804, + 38889988 + ] + } + ], + "stream": [ + { + "replicate": 1, + "rawReceiptSha256": "4d2595d94c39e25cb1dfc31fa3e9e9dd153913d3671bb8adca6b81ee732f36e5", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 7.19091796875, + 7.81005859375, + 7.47705078125 + ] + }, + "native": { + "appVersion": "0.2.0", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "baseline", + "source": "89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1", + "tree": "1b417309f0afb1fce6738547f7e3982787d184f2", + "sourceFilesVerified": 724, + "builtFilesVerified": 542, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "warmupStreams": 1, + "measuredStreams": 21, + "bytesPerStream": 3145728, + "deltasPerStream": 48, + "deltaSpacingMs": 10, + "openedPreviewBytes": null, + "expectedLegacyOutputViolation": true + }, + "startedAt": "2026-11-12T15:06:02.407Z", + "finishedAt": "2026-11-12T15:06:39.579Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T15:06:04.679Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 5640392, + "totalSize": 6701056, + "embedderHeapUsedSize": 1934288, + "backingStorageSize": 3734050 + }, + "dom": { + "documents": 1, + "nodes": 243, + "jsEventListeners": 253 + }, + "mainNode": { + "rss": 310902784, + "heapTotal": 90226688, + "heapUsed": 72202908, + "external": 25256531, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 165297, + "shared": 1040 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T15:06:39.425Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 73350804, + "totalSize": 74563584, + "embedderHeapUsedSize": 1879336, + "backingStorageSize": 3734809 + }, + "dom": { + "documents": 1, + "nodes": 371, + "jsEventListeners": 241 + }, + "mainNode": { + "rss": 441122816, + "heapTotal": 220971008, + "heapUsed": 202893660, + "external": 21652681, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 289537, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T15:06:34.389Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 99491176, + "totalSize": 125190144, + "embedderHeapUsedSize": 28789976, + "backingStorageSize": 6881122 + }, + "dom": { + "documents": 1, + "nodes": 585, + "jsEventListeners": 412 + }, + "mainNode": { + "rss": 441073664, + "heapTotal": 220971008, + "heapUsed": 202634912, + "external": 15361210, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 289473, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1002, + "at": "2026-11-12T15:06:35.388Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 99655788, + "totalSize": 125190144, + "embedderHeapUsedSize": 28789976, + "backingStorageSize": 6881122 + }, + "dom": { + "documents": 1, + "nodes": 585, + "jsEventListeners": 458 + }, + "mainNode": { + "rss": 441171968, + "heapTotal": 220971008, + "heapUsed": 202781988, + "external": 21652681, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 289569, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5000, + "at": "2026-11-12T15:06:39.398Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 99692580, + "totalSize": 125190144, + "embedderHeapUsedSize": 28789976, + "backingStorageSize": 6881122 + }, + "dom": { + "documents": 1, + "nodes": 585, + "jsEventListeners": 458 + }, + "mainNode": { + "rss": 441122816, + "heapTotal": 220971008, + "heapUsed": 202837824, + "external": 21652681, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 289537, + "shared": 1040 + } + } + ], + "fixtureScriptSha256": "41e108919ffd33a74606f6052101f7a1e50b981af70ed71d38e1a60f94e75d24", + "fixtureCodingStarts": 22, + "fixtureCodingFinishes": 22, + "measuredIpcBytes": 1684722836, + "sampleCount": 21, + "maximumSampledOutputBytes": 3145728, + "naturalSampleRendererHeapRangeBytes": [ + 9145684, + 243097044 + ], + "naturalSampleMainHeapRangeBytes": [ + 64859936, + 204994144 + ], + "sendToAnswerAndPreviewObservedMs": [ + 1258, + 1225, + 1234, + 1274, + 1270, + 1789, + 1282, + 1263, + 2059, + 1979, + 1251, + 1240, + 1867, + 1266, + 1266, + 1266, + 1249, + 1263, + 1270, + 1242, + 1316 + ] + }, + { + "replicate": 2, + "rawReceiptSha256": "922f61a0190ac3226e3184f8c2b9b68bcffe039202078cfc575b5730e0a25a61", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 6.82861328125, + 7.642578125, + 7.42724609375 + ] + }, + "native": { + "appVersion": "0.2.0", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "baseline", + "source": "89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1", + "tree": "1b417309f0afb1fce6738547f7e3982787d184f2", + "sourceFilesVerified": 724, + "builtFilesVerified": 542, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "warmupStreams": 1, + "measuredStreams": 21, + "bytesPerStream": 3145728, + "deltasPerStream": 48, + "deltaSpacingMs": 10, + "openedPreviewBytes": null, + "expectedLegacyOutputViolation": true + }, + "startedAt": "2026-11-12T15:06:39.629Z", + "finishedAt": "2026-11-12T15:07:14.463Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T15:06:41.771Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 8797532, + "totalSize": 9846784, + "embedderHeapUsedSize": 1865664, + "backingStorageSize": 588322 + }, + "dom": { + "documents": 1, + "nodes": 243, + "jsEventListeners": 253 + }, + "mainNode": { + "rss": 310738944, + "heapTotal": 90226688, + "heapUsed": 72202616, + "external": 25256531, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 165122, + "shared": 1040 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T15:07:14.314Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 76519852, + "totalSize": 77709312, + "embedderHeapUsedSize": 2265672, + "backingStorageSize": 589081 + }, + "dom": { + "documents": 1, + "nodes": 371, + "jsEventListeners": 241 + }, + "mainNode": { + "rss": 443662336, + "heapTotal": 222216192, + "heapUsed": 203196572, + "external": 56976601, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 290338, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T15:07:09.281Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 368681324, + "totalSize": 482934784, + "embedderHeapUsedSize": 89656672, + "backingStorageSize": 3737823 + }, + "dom": { + "documents": 1, + "nodes": 1293, + "jsEventListeners": 8677 + }, + "mainNode": { + "rss": 443547648, + "heapTotal": 222216192, + "heapUsed": 202936492, + "external": 50685130, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 290210, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1001, + "at": "2026-11-12T15:07:10.290Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 368843612, + "totalSize": 482934784, + "embedderHeapUsedSize": 89662672, + "backingStorageSize": 3737823 + }, + "dom": { + "documents": 1, + "nodes": 1293, + "jsEventListeners": 8723 + }, + "mainNode": { + "rss": 443645952, + "heapTotal": 222216192, + "heapUsed": 203084312, + "external": 56976601, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 290306, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5001, + "at": "2026-11-12T15:07:14.281Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 368880372, + "totalSize": 482934784, + "embedderHeapUsedSize": 89670432, + "backingStorageSize": 3737823 + }, + "dom": { + "documents": 1, + "nodes": 1293, + "jsEventListeners": 8723 + }, + "mainNode": { + "rss": 443662336, + "heapTotal": 222216192, + "heapUsed": 203140736, + "external": 56976601, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 290322, + "shared": 1040 + } + } + ], + "fixtureScriptSha256": "5517c734ea89eabcba2603d603bb84bb28166a809de084d816a2c64c994ab620", + "fixtureCodingStarts": 22, + "fixtureCodingFinishes": 22, + "measuredIpcBytes": 1684722836, + "sampleCount": 21, + "maximumSampledOutputBytes": 3145728, + "naturalSampleRendererHeapRangeBytes": [ + 44085512, + 368313948 + ], + "naturalSampleMainHeapRangeBytes": [ + 64794672, + 204989844 + ], + "sendToAnswerAndPreviewObservedMs": [ + 1248, + 1232, + 1246, + 1400, + 1261, + 1268, + 1238, + 1271, + 1271, + 1295, + 1232, + 1300, + 1272, + 1255, + 1255, + 1249, + 1247, + 1276, + 1618, + 1237, + 1226 + ] + }, + { + "replicate": 3, + "rawReceiptSha256": "85927baec99ede84d120c444969f3597ebe7f09a7880f3c5d0acdd8e748912de", + "host": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryBytes": 137438953472, + "release": "27.2.0", + "arch": "arm64", + "node": "v24.22.0", + "loadAverage": [ + 6.6494140625, + 7.50634765625, + 7.38525390625 + ] + }, + "native": { + "appVersion": "0.2.0", + "electron": "44.4.5", + "chromium": "152.0.7977.130" + }, + "sourceVerification": { + "role": "baseline", + "source": "89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1", + "tree": "1b417309f0afb1fce6738547f7e3982787d184f2", + "sourceFilesVerified": 724, + "builtFilesVerified": 542, + "commonCoreFilesVerified": 60, + "kind": "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary", + "driverHeadMeaning": "Separate diagnostic checkout identity; measured source is an explicitly verified export, not this HEAD" + }, + "workload": { + "warmupStreams": 1, + "measuredStreams": 21, + "bytesPerStream": 3145728, + "deltasPerStream": 48, + "deltaSpacingMs": 10, + "openedPreviewBytes": null, + "expectedLegacyOutputViolation": true + }, + "startedAt": "2026-11-12T15:07:14.511Z", + "finishedAt": "2026-11-12T15:07:49.120Z", + "appClose": "returned", + "warmDetachedBefore": { + "at": "2026-11-12T15:07:16.673Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 5544056, + "totalSize": 6438912, + "embedderHeapUsedSize": 1946104, + "backingStorageSize": 3734011 + }, + "dom": { + "documents": 1, + "nodes": 243, + "jsEventListeners": 220 + }, + "mainNode": { + "rss": 310870016, + "heapTotal": 89964544, + "heapUsed": 72148812, + "external": 25256507, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 165137, + "shared": 1040 + } + }, + "warmDetachedAfter": { + "at": "2026-11-12T15:07:48.971Z", + "forcedGc": true, + "rendererHeap": { + "usedSize": 67085748, + "totalSize": 68534272, + "embedderHeapUsedSize": 2193400, + "backingStorageSize": 10026265 + }, + "dom": { + "documents": 1, + "nodes": 371, + "jsEventListeners": 241 + }, + "mainNode": { + "rss": 479330304, + "heapTotal": 257605632, + "heapUsed": 239549040, + "external": 21652989, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 325106, + "shared": 1040 + } + }, + "detachedNatural": { + "at": "2026-11-12T15:07:43.939Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 253219608, + "totalSize": 314195968, + "embedderHeapUsedSize": 59450424, + "backingStorageSize": 13174657 + }, + "dom": { + "documents": 1, + "nodes": 939, + "jsEventListeners": 4568 + }, + "mainNode": { + "rss": 479215616, + "heapTotal": 257605632, + "heapUsed": 239292864, + "external": 15361530, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 324978, + "shared": 1040 + } + }, + "detachedTimedNatural": [ + { + "requestedAfterDetachMs": 1000, + "actualAfterDetachMs": 1002, + "at": "2026-11-12T15:07:44.939Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 253259980, + "totalSize": 314195968, + "embedderHeapUsedSize": 59450424, + "backingStorageSize": 13174657 + }, + "dom": { + "documents": 1, + "nodes": 939, + "jsEventListeners": 4568 + }, + "mainNode": { + "rss": 479313920, + "heapTotal": 257605632, + "heapUsed": 239436304, + "external": 21652989, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 325090, + "shared": 1040 + } + }, + { + "requestedAfterDetachMs": 5000, + "actualAfterDetachMs": 5002, + "at": "2026-11-12T15:07:48.940Z", + "forcedGc": false, + "rendererHeap": { + "usedSize": 253296772, + "totalSize": 314195968, + "embedderHeapUsedSize": 59567088, + "backingStorageSize": 13174657 + }, + "dom": { + "documents": 1, + "nodes": 939, + "jsEventListeners": 4568 + }, + "mainNode": { + "rss": 479330304, + "heapTotal": 257605632, + "heapUsed": 239493232, + "external": 21652989, + "arrayBuffers": 0 + }, + "mainNativeKiB": { + "private": 325106, + "shared": 1040 + } + } + ], + "fixtureScriptSha256": "0476fc02915c12629abb2bca39efe7e4e7b17b95e61b06d555601a22fa388656", + "fixtureCodingStarts": 22, + "fixtureCodingFinishes": 22, + "measuredIpcBytes": 1684722836, + "sampleCount": 21, + "maximumSampledOutputBytes": 3145728, + "naturalSampleRendererHeapRangeBytes": [ + 26070036, + 255714200 + ], + "naturalSampleMainHeapRangeBytes": [ + 64947740, + 239116120 + ], + "sendToAnswerAndPreviewObservedMs": [ + 1298, + 1253, + 1255, + 1300, + 1235, + 1280, + 1266, + 1269, + 1290, + 1285, + 1245, + 1269, + 1251, + 1271, + 1261, + 1263, + 1261, + 1259, + 1257, + 1300, + 1251 + ] + } + ] + } + }, + "limits": "Descriptive source-rebuild experiments; no provider, universal memory, latency improvement, leak-freedom, native platform or human acceptance claim", + "reusedLocalQualification": { + "source": "91c033e45452bedd29dba2e4365da087c9ad673a", + "build": 0, + "typecheck": 0, + "unitPass": 2566, + "unitSkip": 36, + "unitFailure": 0, + "unitCancellation": 0, + "focusedGuardsIncludedInUnits": 36, + "reason": "OnlyREADME/docs differ through877; appinputs/buildbytes unchanged" + }, + "candidateRetention": { + "pass": 12, + "skip": 0, + "retry": 0 + }, + "sourceCI": { + "head": "8771c3c2d7ef16de9ca12940eac2937119ae69b7", + "run": 43236477996, + "macJob": 131245219340, + "conclusion": "success", + "scope": "Sourcequalification,notmain/queue/release/device/humanacceptance" + } + }, + "canonical": { + "at": "2026-11-12T15:12:31.554863+00:00", + "source": "8771c3c2d7ef16de9ca12940eac2937119ae69b7", + "rawReceiptSha256": "d3adb3cfbf9763c31eb801c5bdd251fc44fcff9c604009047a5945546e591dcd", + "reportSha256": "068ae7f42ad50efae54969dfbe09ca71d021b04826085fd38b29270ae71ed479", + "pass": 2, + "skip": 0, + "retry": 0, + "scope": "FivefreshElectronprocesses: first200turntranscriptopenafterwindowready; 500msapprovedmedianbudget, notappstartup/providerlatency. Synthetic3MiBlogstreampreview/IPCcapsunchanged.", + "measurement": { + "measuredAt": "2026-11-12T15:07:58.567Z", + "sha": "8771c3c2d7ef16de9ca12940eac2937119ae69b7", + "machine": { + "cpu": "Apple M5 Max", + "cores": 18, + "memoryGiB": 128, + "platform": "darwin", + "arch": "arm64", + "release": "27.2.0", + "loadAverage": [ + 7.0810546875, + 7.43408203125, + 7.35986328125 + ] + }, + "coldLaunches": [ + { + "processMemory": { + "before": { + "at": "2026-11-12T15:07:50.526Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 75617, + "shared": 656 + }, + "node": { + "rss": 218710016, + "heapTotal": 34471936, + "heapUsed": 18531328, + "external": 4669742, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496069850.169, + "type": "Browser", + "memory": { + "workingSetSize": 213584, + "peakWorkingSetSize": 213584 + } + }, + { + "creationTime": 1794496070071.853, + "type": "GPU", + "memory": { + "workingSetSize": 99360, + "peakWorkingSetSize": 99408 + } + }, + { + "creationTime": 1794496070073.795, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496070118.897, + "type": "Tab", + "memory": { + "workingSetSize": 133552, + "peakWorkingSetSize": 133552 + } + } + ] + }, + "after": { + "at": "2026-11-12T15:07:50.994Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 81297, + "shared": 1072 + }, + "node": { + "rss": 223608832, + "heapTotal": 37748736, + "heapUsed": 27464956, + "external": 4702152, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496069850.169, + "type": "Browser", + "memory": { + "workingSetSize": 218368, + "peakWorkingSetSize": 221024 + } + }, + { + "creationTime": 1794496070071.853, + "type": "GPU", + "memory": { + "workingSetSize": 104736, + "peakWorkingSetSize": 104928 + } + }, + { + "creationTime": 1794496070073.795, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496070118.897, + "type": "Tab", + "memory": { + "workingSetSize": 356240, + "peakWorkingSetSize": 358608 + } + } + ] + }, + "afterEachOpen": [ + { + "at": "2026-11-12T15:07:50.618Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80017, + "shared": 1072 + }, + "node": { + "rss": 222953472, + "heapTotal": 37486592, + "heapUsed": 24997832, + "external": 4669972, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496069850.169, + "type": "Browser", + "memory": { + "workingSetSize": 217728, + "peakWorkingSetSize": 220016 + } + }, + { + "creationTime": 1794496070071.853, + "type": "GPU", + "memory": { + "workingSetSize": 102960, + "peakWorkingSetSize": 102960 + } + }, + { + "creationTime": 1794496070073.795, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496070118.897, + "type": "Tab", + "memory": { + "workingSetSize": 192624, + "peakWorkingSetSize": 192624 + } + } + ] + }, + { + "at": "2026-11-12T15:07:50.714Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80449, + "shared": 1072 + }, + "node": { + "rss": 223215616, + "heapTotal": 37748736, + "heapUsed": 25575536, + "external": 4670162, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496069850.169, + "type": "Browser", + "memory": { + "workingSetSize": 217984, + "peakWorkingSetSize": 220608 + } + }, + { + "creationTime": 1794496070071.853, + "type": "GPU", + "memory": { + "workingSetSize": 103680, + "peakWorkingSetSize": 103696 + } + }, + { + "creationTime": 1794496070073.795, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496070118.897, + "type": "Tab", + "memory": { + "workingSetSize": 253696, + "peakWorkingSetSize": 253696 + } + } + ] + }, + { + "at": "2026-11-12T15:07:50.793Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80529, + "shared": 1072 + }, + "node": { + "rss": 223281152, + "heapTotal": 37748736, + "heapUsed": 26081656, + "external": 4670401, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496069850.169, + "type": "Browser", + "memory": { + "workingSetSize": 218048, + "peakWorkingSetSize": 220656 + } + }, + { + "creationTime": 1794496070071.853, + "type": "GPU", + "memory": { + "workingSetSize": 104192, + "peakWorkingSetSize": 104400 + } + }, + { + "creationTime": 1794496070073.795, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496070118.897, + "type": "Tab", + "memory": { + "workingSetSize": 271136, + "peakWorkingSetSize": 271136 + } + } + ] + }, + { + "at": "2026-11-12T15:07:50.877Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80657, + "shared": 1072 + }, + "node": { + "rss": 223379456, + "heapTotal": 37748736, + "heapUsed": 26746820, + "external": 4691465, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496069850.169, + "type": "Browser", + "memory": { + "workingSetSize": 218144, + "peakWorkingSetSize": 220704 + } + }, + { + "creationTime": 1794496070071.853, + "type": "GPU", + "memory": { + "workingSetSize": 104512, + "peakWorkingSetSize": 104688 + } + }, + { + "creationTime": 1794496070073.795, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496070118.897, + "type": "Tab", + "memory": { + "workingSetSize": 317520, + "peakWorkingSetSize": 319200 + } + } + ] + }, + { + "at": "2026-11-12T15:07:50.975Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 81265, + "shared": 1072 + }, + "node": { + "rss": 223608832, + "heapTotal": 37748736, + "heapUsed": 27330448, + "external": 4702092, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496069850.169, + "type": "Browser", + "memory": { + "workingSetSize": 218368, + "peakWorkingSetSize": 220816 + } + }, + { + "creationTime": 1794496070071.853, + "type": "GPU", + "memory": { + "workingSetSize": 104720, + "peakWorkingSetSize": 104928 + } + }, + { + "creationTime": 1794496070073.795, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496070118.897, + "type": "Tab", + "memory": { + "workingSetSize": 355936, + "peakWorkingSetSize": 355936 + } + } + ] + } + ] + }, + "turns": 200, + "items": 1400, + "savedBytes": 3001221, + "viewport": { + "width": 1380, + "height": 880, + "scale": 2 + }, + "firstOpenMs": 60, + "repeatOpenMs": [ + 55, + 45, + 50, + 44 + ], + "repeatMedianMs": 50, + "rendererLongTasks": { + "first": { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + "repeats": [ + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + } + ] + }, + "threadItemsIpcMs": [ + 5, + 4, + 4 + ], + "selectedAtLaunch": false, + "renderedItems": 1400, + "threadEventsOnOpen": { + "thread": 1 + } + }, + { + "processMemory": { + "before": { + "at": "2026-11-12T15:07:51.925Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 75921, + "shared": 656 + }, + "node": { + "rss": 218595328, + "heapTotal": 34209792, + "heapUsed": 18734676, + "external": 6777332, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496071223.222, + "type": "Browser", + "memory": { + "workingSetSize": 213472, + "peakWorkingSetSize": 213472 + } + }, + { + "creationTime": 1794496071425.033, + "type": "GPU", + "memory": { + "workingSetSize": 99536, + "peakWorkingSetSize": 99584 + } + }, + { + "creationTime": 1794496071427.015, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496071471.359, + "type": "Tab", + "memory": { + "workingSetSize": 134912, + "peakWorkingSetSize": 134912 + } + } + ] + }, + "after": { + "at": "2026-11-12T15:07:52.372Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 81153, + "shared": 1072 + }, + "node": { + "rss": 223461376, + "heapTotal": 37224448, + "heapUsed": 27552644, + "external": 6778431, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496071223.222, + "type": "Browser", + "memory": { + "workingSetSize": 218224, + "peakWorkingSetSize": 220880 + } + }, + { + "creationTime": 1794496071425.033, + "type": "GPU", + "memory": { + "workingSetSize": 105712, + "peakWorkingSetSize": 105920 + } + }, + { + "creationTime": 1794496071427.015, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496071471.359, + "type": "Tab", + "memory": { + "workingSetSize": 352320, + "peakWorkingSetSize": 354784 + } + } + ] + }, + "afterEachOpen": [ + { + "at": "2026-11-12T15:07:52.014Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80033, + "shared": 1072 + }, + "node": { + "rss": 222887936, + "heapTotal": 37224448, + "heapUsed": 25237796, + "external": 6777562, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496071223.222, + "type": "Browser", + "memory": { + "workingSetSize": 217664, + "peakWorkingSetSize": 219856 + } + }, + { + "creationTime": 1794496071425.033, + "type": "GPU", + "memory": { + "workingSetSize": 103664, + "peakWorkingSetSize": 103664 + } + }, + { + "creationTime": 1794496071427.015, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496071471.359, + "type": "Tab", + "memory": { + "workingSetSize": 193232, + "peakWorkingSetSize": 193232 + } + } + ] + }, + { + "at": "2026-11-12T15:07:52.107Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80481, + "shared": 1072 + }, + "node": { + "rss": 223166464, + "heapTotal": 37224448, + "heapUsed": 25751332, + "external": 6777692, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496071223.222, + "type": "Browser", + "memory": { + "workingSetSize": 217936, + "peakWorkingSetSize": 220528 + } + }, + { + "creationTime": 1794496071425.033, + "type": "GPU", + "memory": { + "workingSetSize": 104592, + "peakWorkingSetSize": 104592 + } + }, + { + "creationTime": 1794496071427.015, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496071471.359, + "type": "Tab", + "memory": { + "workingSetSize": 220976, + "peakWorkingSetSize": 220976 + } + } + ] + }, + { + "at": "2026-11-12T15:07:52.192Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80497, + "shared": 1072 + }, + "node": { + "rss": 223215616, + "heapTotal": 37224448, + "heapUsed": 26318848, + "external": 6777882, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496071223.222, + "type": "Browser", + "memory": { + "workingSetSize": 217984, + "peakWorkingSetSize": 220624 + } + }, + { + "creationTime": 1794496071425.033, + "type": "GPU", + "memory": { + "workingSetSize": 105008, + "peakWorkingSetSize": 105024 + } + }, + { + "creationTime": 1794496071427.015, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496071471.359, + "type": "Tab", + "memory": { + "workingSetSize": 256784, + "peakWorkingSetSize": 256784 + } + } + ] + }, + { + "at": "2026-11-12T15:07:52.277Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80545, + "shared": 1072 + }, + "node": { + "rss": 223248384, + "heapTotal": 37224448, + "heapUsed": 26863868, + "external": 6778181, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496071223.222, + "type": "Browser", + "memory": { + "workingSetSize": 218016, + "peakWorkingSetSize": 220656 + } + }, + { + "creationTime": 1794496071425.033, + "type": "GPU", + "memory": { + "workingSetSize": 105456, + "peakWorkingSetSize": 105616 + } + }, + { + "creationTime": 1794496071427.015, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496071471.359, + "type": "Tab", + "memory": { + "workingSetSize": 312288, + "peakWorkingSetSize": 314048 + } + } + ] + }, + { + "at": "2026-11-12T15:07:52.353Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 81153, + "shared": 1072 + }, + "node": { + "rss": 223461376, + "heapTotal": 37224448, + "heapUsed": 27416808, + "external": 6778371, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496071223.222, + "type": "Browser", + "memory": { + "workingSetSize": 218224, + "peakWorkingSetSize": 220672 + } + }, + { + "creationTime": 1794496071425.033, + "type": "GPU", + "memory": { + "workingSetSize": 105712, + "peakWorkingSetSize": 105920 + } + }, + { + "creationTime": 1794496071427.015, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496071471.359, + "type": "Tab", + "memory": { + "workingSetSize": 352000, + "peakWorkingSetSize": 352000 + } + } + ] + } + ] + }, + "turns": 200, + "items": 1400, + "savedBytes": 3001221, + "viewport": { + "width": 1380, + "height": 880, + "scale": 2 + }, + "firstOpenMs": 60, + "repeatOpenMs": [ + 46, + 52, + 49, + 46 + ], + "repeatMedianMs": 49, + "rendererLongTasks": { + "first": { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + "repeats": [ + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + } + ] + }, + "threadItemsIpcMs": [ + 5, + 5, + 4 + ], + "selectedAtLaunch": false, + "renderedItems": 1400, + "threadEventsOnOpen": { + "thread": 1 + } + }, + { + "processMemory": { + "before": { + "at": "2026-11-12T15:07:53.301Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 75489, + "shared": 656 + }, + "node": { + "rss": 218464256, + "heapTotal": 34734080, + "heapUsed": 18734560, + "external": 6777332, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496072594.829, + "type": "Browser", + "memory": { + "workingSetSize": 213344, + "peakWorkingSetSize": 213344 + } + }, + { + "creationTime": 1794496072791.848, + "type": "GPU", + "memory": { + "workingSetSize": 98848, + "peakWorkingSetSize": 98896 + } + }, + { + "creationTime": 1794496072793.939, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47712, + "peakWorkingSetSize": 47712 + } + }, + { + "creationTime": 1794496072838.423, + "type": "Tab", + "memory": { + "workingSetSize": 134912, + "peakWorkingSetSize": 134912 + } + } + ] + }, + "after": { + "at": "2026-11-12T15:07:53.745Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 81153, + "shared": 1072 + }, + "node": { + "rss": 223494144, + "heapTotal": 37748736, + "heapUsed": 27552580, + "external": 6778431, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496072594.829, + "type": "Browser", + "memory": { + "workingSetSize": 218256, + "peakWorkingSetSize": 220896 + } + }, + { + "creationTime": 1794496072791.848, + "type": "GPU", + "memory": { + "workingSetSize": 104416, + "peakWorkingSetSize": 104624 + } + }, + { + "creationTime": 1794496072793.939, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47712, + "peakWorkingSetSize": 47712 + } + }, + { + "creationTime": 1794496072838.423, + "type": "Tab", + "memory": { + "workingSetSize": 352240, + "peakWorkingSetSize": 354672 + } + } + ] + }, + "afterEachOpen": [ + { + "at": "2026-11-12T15:07:53.392Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 79889, + "shared": 1072 + }, + "node": { + "rss": 222969856, + "heapTotal": 37748736, + "heapUsed": 25237536, + "external": 6777562, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496072594.829, + "type": "Browser", + "memory": { + "workingSetSize": 217744, + "peakWorkingSetSize": 219744 + } + }, + { + "creationTime": 1794496072791.848, + "type": "GPU", + "memory": { + "workingSetSize": 102656, + "peakWorkingSetSize": 102672 + } + }, + { + "creationTime": 1794496072793.939, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47712, + "peakWorkingSetSize": 47712 + } + }, + { + "creationTime": 1794496072838.423, + "type": "Tab", + "memory": { + "workingSetSize": 193664, + "peakWorkingSetSize": 193664 + } + } + ] + }, + { + "at": "2026-11-12T15:07:53.486Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80337, + "shared": 1072 + }, + "node": { + "rss": 223019008, + "heapTotal": 37748736, + "heapUsed": 25752640, + "external": 6777801, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496072594.829, + "type": "Browser", + "memory": { + "workingSetSize": 217792, + "peakWorkingSetSize": 220416 + } + }, + { + "creationTime": 1794496072791.848, + "type": "GPU", + "memory": { + "workingSetSize": 103312, + "peakWorkingSetSize": 103328 + } + }, + { + "creationTime": 1794496072793.939, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47712, + "peakWorkingSetSize": 47712 + } + }, + { + "creationTime": 1794496072838.423, + "type": "Tab", + "memory": { + "workingSetSize": 220784, + "peakWorkingSetSize": 220912 + } + } + ] + }, + { + "at": "2026-11-12T15:07:53.568Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80353, + "shared": 1072 + }, + "node": { + "rss": 223084544, + "heapTotal": 37748736, + "heapUsed": 26320456, + "external": 6777991, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496072594.829, + "type": "Browser", + "memory": { + "workingSetSize": 217856, + "peakWorkingSetSize": 220480 + } + }, + { + "creationTime": 1794496072791.848, + "type": "GPU", + "memory": { + "workingSetSize": 103856, + "peakWorkingSetSize": 103872 + } + }, + { + "creationTime": 1794496072793.939, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47712, + "peakWorkingSetSize": 47712 + } + }, + { + "creationTime": 1794496072838.423, + "type": "Tab", + "memory": { + "workingSetSize": 256624, + "peakWorkingSetSize": 256624 + } + } + ] + }, + { + "at": "2026-11-12T15:07:53.649Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80353, + "shared": 1072 + }, + "node": { + "rss": 223084544, + "heapTotal": 37748736, + "heapUsed": 26864256, + "external": 6778181, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496072594.829, + "type": "Browser", + "memory": { + "workingSetSize": 217856, + "peakWorkingSetSize": 220512 + } + }, + { + "creationTime": 1794496072791.848, + "type": "GPU", + "memory": { + "workingSetSize": 104176, + "peakWorkingSetSize": 104368 + } + }, + { + "creationTime": 1794496072793.939, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47712, + "peakWorkingSetSize": 47712 + } + }, + { + "creationTime": 1794496072838.423, + "type": "Tab", + "memory": { + "workingSetSize": 312240, + "peakWorkingSetSize": 314032 + } + } + ] + }, + { + "at": "2026-11-12T15:07:53.725Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 81025, + "shared": 1072 + }, + "node": { + "rss": 223363072, + "heapTotal": 37748736, + "heapUsed": 27418072, + "external": 6778371, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496072594.829, + "type": "Browser", + "memory": { + "workingSetSize": 218128, + "peakWorkingSetSize": 220512 + } + }, + { + "creationTime": 1794496072791.848, + "type": "GPU", + "memory": { + "workingSetSize": 104416, + "peakWorkingSetSize": 104624 + } + }, + { + "creationTime": 1794496072793.939, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47712, + "peakWorkingSetSize": 47712 + } + }, + { + "creationTime": 1794496072838.423, + "type": "Tab", + "memory": { + "workingSetSize": 351888, + "peakWorkingSetSize": 351888 + } + } + ] + } + ] + }, + "turns": 200, + "items": 1400, + "savedBytes": 3001221, + "viewport": { + "width": 1380, + "height": 880, + "scale": 2 + }, + "firstOpenMs": 60, + "repeatOpenMs": [ + 47, + 51, + 49, + 46 + ], + "repeatMedianMs": 49, + "rendererLongTasks": { + "first": { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + "repeats": [ + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + } + ] + }, + "threadItemsIpcMs": [ + 5, + 4, + 5 + ], + "selectedAtLaunch": false, + "renderedItems": 1400, + "threadEventsOnOpen": { + "thread": 1 + } + }, + { + "processMemory": { + "before": { + "at": "2026-11-12T15:07:54.612Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 75809, + "shared": 656 + }, + "node": { + "rss": 218742784, + "heapTotal": 34734080, + "heapUsed": 18616252, + "external": 4680179, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496073972.277, + "type": "Browser", + "memory": { + "workingSetSize": 213616, + "peakWorkingSetSize": 213616 + } + }, + { + "creationTime": 1794496074166.818, + "type": "GPU", + "memory": { + "workingSetSize": 98672, + "peakWorkingSetSize": 98704 + } + }, + { + "creationTime": 1794496074168.946, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47696, + "peakWorkingSetSize": 47696 + } + }, + { + "creationTime": 1794496074213.56, + "type": "Tab", + "memory": { + "workingSetSize": 134512, + "peakWorkingSetSize": 134512 + } + } + ] + }, + "after": { + "at": "2026-11-12T15:07:55.074Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 81473, + "shared": 1072 + }, + "node": { + "rss": 223887360, + "heapTotal": 37748736, + "heapUsed": 27436684, + "external": 4681278, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496073972.277, + "type": "Browser", + "memory": { + "workingSetSize": 218640, + "peakWorkingSetSize": 221296 + } + }, + { + "creationTime": 1794496074166.818, + "type": "GPU", + "memory": { + "workingSetSize": 104224, + "peakWorkingSetSize": 104432 + } + }, + { + "creationTime": 1794496074168.946, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47696, + "peakWorkingSetSize": 47696 + } + }, + { + "creationTime": 1794496074213.56, + "type": "Tab", + "memory": { + "workingSetSize": 339616, + "peakWorkingSetSize": 342272 + } + } + ] + }, + "afterEachOpen": [ + { + "at": "2026-11-12T15:07:54.699Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80145, + "shared": 1072 + }, + "node": { + "rss": 223166464, + "heapTotal": 37748736, + "heapUsed": 25120504, + "external": 4680409, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496073972.277, + "type": "Browser", + "memory": { + "workingSetSize": 217936, + "peakWorkingSetSize": 220000 + } + }, + { + "creationTime": 1794496074166.818, + "type": "GPU", + "memory": { + "workingSetSize": 102560, + "peakWorkingSetSize": 102560 + } + }, + { + "creationTime": 1794496074168.946, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47696, + "peakWorkingSetSize": 47696 + } + }, + { + "creationTime": 1794496074213.56, + "type": "Tab", + "memory": { + "workingSetSize": 193120, + "peakWorkingSetSize": 193120 + } + } + ] + }, + { + "at": "2026-11-12T15:07:54.795Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80625, + "shared": 1072 + }, + "node": { + "rss": 223444992, + "heapTotal": 37748736, + "heapUsed": 25631556, + "external": 4680539, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496073972.277, + "type": "Browser", + "memory": { + "workingSetSize": 218208, + "peakWorkingSetSize": 220816 + } + }, + { + "creationTime": 1794496074166.818, + "type": "GPU", + "memory": { + "workingSetSize": 103216, + "peakWorkingSetSize": 103232 + } + }, + { + "creationTime": 1794496074168.946, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47696, + "peakWorkingSetSize": 47696 + } + }, + { + "creationTime": 1794496074213.56, + "type": "Tab", + "memory": { + "workingSetSize": 245600, + "peakWorkingSetSize": 248128 + } + } + ] + }, + { + "at": "2026-11-12T15:07:54.878Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80689, + "shared": 1072 + }, + "node": { + "rss": 223526912, + "heapTotal": 37748736, + "heapUsed": 26196416, + "external": 4680729, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496073972.277, + "type": "Browser", + "memory": { + "workingSetSize": 218288, + "peakWorkingSetSize": 220880 + } + }, + { + "creationTime": 1794496074166.818, + "type": "GPU", + "memory": { + "workingSetSize": 103600, + "peakWorkingSetSize": 103808 + } + }, + { + "creationTime": 1794496074168.946, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47696, + "peakWorkingSetSize": 47696 + } + }, + { + "creationTime": 1794496074213.56, + "type": "Tab", + "memory": { + "workingSetSize": 279840, + "peakWorkingSetSize": 279840 + } + } + ] + }, + { + "at": "2026-11-12T15:07:54.956Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80737, + "shared": 1072 + }, + "node": { + "rss": 223543296, + "heapTotal": 37748736, + "heapUsed": 26743356, + "external": 4681028, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496073972.277, + "type": "Browser", + "memory": { + "workingSetSize": 218304, + "peakWorkingSetSize": 220944 + } + }, + { + "creationTime": 1794496074166.818, + "type": "GPU", + "memory": { + "workingSetSize": 104016, + "peakWorkingSetSize": 104208 + } + }, + { + "creationTime": 1794496074168.946, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47696, + "peakWorkingSetSize": 47696 + } + }, + { + "creationTime": 1794496074213.56, + "type": "Tab", + "memory": { + "workingSetSize": 327136, + "peakWorkingSetSize": 327136 + } + } + ] + }, + { + "at": "2026-11-12T15:07:55.042Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 81457, + "shared": 1072 + }, + "node": { + "rss": 223870976, + "heapTotal": 37748736, + "heapUsed": 27301804, + "external": 4681218, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496073972.277, + "type": "Browser", + "memory": { + "workingSetSize": 218624, + "peakWorkingSetSize": 220976 + } + }, + { + "creationTime": 1794496074166.818, + "type": "GPU", + "memory": { + "workingSetSize": 104224, + "peakWorkingSetSize": 104432 + } + }, + { + "creationTime": 1794496074168.946, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47696, + "peakWorkingSetSize": 47696 + } + }, + { + "creationTime": 1794496074213.56, + "type": "Tab", + "memory": { + "workingSetSize": 335376, + "peakWorkingSetSize": 337904 + } + } + ] + } + ] + }, + "turns": 200, + "items": 1400, + "savedBytes": 3001221, + "viewport": { + "width": 1380, + "height": 880, + "scale": 2 + }, + "firstOpenMs": 59, + "repeatOpenMs": [ + 57, + 48, + 48, + 43 + ], + "repeatMedianMs": 48, + "rendererLongTasks": { + "first": { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + "repeats": [ + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + } + ] + }, + "threadItemsIpcMs": [ + 5, + 4, + 6 + ], + "selectedAtLaunch": false, + "renderedItems": 1400, + "threadEventsOnOpen": { + "thread": 1 + } + }, + { + "processMemory": { + "before": { + "at": "2026-11-12T15:07:55.999Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 75313, + "shared": 656 + }, + "node": { + "rss": 218660864, + "heapTotal": 33947648, + "heapUsed": 18741732, + "external": 6777332, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496075297.514, + "type": "Browser", + "memory": { + "workingSetSize": 213552, + "peakWorkingSetSize": 213552 + } + }, + { + "creationTime": 1794496075491.766, + "type": "GPU", + "memory": { + "workingSetSize": 98352, + "peakWorkingSetSize": 98400 + } + }, + { + "creationTime": 1794496075493.651, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496075537.932, + "type": "Tab", + "memory": { + "workingSetSize": 135216, + "peakWorkingSetSize": 135216 + } + } + ] + }, + "after": { + "at": "2026-11-12T15:07:56.448Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 81345, + "shared": 1072 + }, + "node": { + "rss": 223707136, + "heapTotal": 37486592, + "heapUsed": 27558900, + "external": 6778431, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496075297.514, + "type": "Browser", + "memory": { + "workingSetSize": 218464, + "peakWorkingSetSize": 221104 + } + }, + { + "creationTime": 1794496075491.766, + "type": "GPU", + "memory": { + "workingSetSize": 104144, + "peakWorkingSetSize": 104352 + } + }, + { + "creationTime": 1794496075493.651, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496075537.932, + "type": "Tab", + "memory": { + "workingSetSize": 351520, + "peakWorkingSetSize": 353952 + } + } + ] + }, + "afterEachOpen": [ + { + "at": "2026-11-12T15:07:56.087Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80097, + "shared": 1072 + }, + "node": { + "rss": 223281152, + "heapTotal": 37486592, + "heapUsed": 25244544, + "external": 6777562, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496075297.514, + "type": "Browser", + "memory": { + "workingSetSize": 218048, + "peakWorkingSetSize": 219936 + } + }, + { + "creationTime": 1794496075491.766, + "type": "GPU", + "memory": { + "workingSetSize": 102032, + "peakWorkingSetSize": 102048 + } + }, + { + "creationTime": 1794496075493.651, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496075537.932, + "type": "Tab", + "memory": { + "workingSetSize": 193504, + "peakWorkingSetSize": 193504 + } + } + ] + }, + { + "at": "2026-11-12T15:07:56.180Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80545, + "shared": 1072 + }, + "node": { + "rss": 223297536, + "heapTotal": 37486592, + "heapUsed": 25758992, + "external": 6777801, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496075297.514, + "type": "Browser", + "memory": { + "workingSetSize": 218064, + "peakWorkingSetSize": 220720 + } + }, + { + "creationTime": 1794496075491.766, + "type": "GPU", + "memory": { + "workingSetSize": 103136, + "peakWorkingSetSize": 103152 + } + }, + { + "creationTime": 1794496075493.651, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496075537.932, + "type": "Tab", + "memory": { + "workingSetSize": 221264, + "peakWorkingSetSize": 221264 + } + } + ] + }, + { + "at": "2026-11-12T15:07:56.265Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80593, + "shared": 1072 + }, + "node": { + "rss": 223363072, + "heapTotal": 37486592, + "heapUsed": 26326780, + "external": 6777991, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496075297.514, + "type": "Browser", + "memory": { + "workingSetSize": 218128, + "peakWorkingSetSize": 220768 + } + }, + { + "creationTime": 1794496075491.766, + "type": "GPU", + "memory": { + "workingSetSize": 103664, + "peakWorkingSetSize": 103856 + } + }, + { + "creationTime": 1794496075493.651, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496075537.932, + "type": "Tab", + "memory": { + "workingSetSize": 256320, + "peakWorkingSetSize": 256320 + } + } + ] + }, + { + "at": "2026-11-12T15:07:56.347Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80609, + "shared": 1072 + }, + "node": { + "rss": 223379456, + "heapTotal": 37486592, + "heapUsed": 26870372, + "external": 6778181, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496075297.514, + "type": "Browser", + "memory": { + "workingSetSize": 218144, + "peakWorkingSetSize": 220784 + } + }, + { + "creationTime": 1794496075491.766, + "type": "GPU", + "memory": { + "workingSetSize": 103936, + "peakWorkingSetSize": 104128 + } + }, + { + "creationTime": 1794496075493.651, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496075537.932, + "type": "Tab", + "memory": { + "workingSetSize": 311360, + "peakWorkingSetSize": 313200 + } + } + ] + }, + { + "at": "2026-11-12T15:07:56.429Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 81201, + "shared": 1072 + }, + "node": { + "rss": 223592448, + "heapTotal": 37486592, + "heapUsed": 27424392, + "external": 6778371, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496075297.514, + "type": "Browser", + "memory": { + "workingSetSize": 218352, + "peakWorkingSetSize": 220800 + } + }, + { + "creationTime": 1794496075491.766, + "type": "GPU", + "memory": { + "workingSetSize": 104144, + "peakWorkingSetSize": 104352 + } + }, + { + "creationTime": 1794496075493.651, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496075537.932, + "type": "Tab", + "memory": { + "workingSetSize": 351024, + "peakWorkingSetSize": 351024 + } + } + ] + } + ] + }, + "turns": 200, + "items": 1400, + "savedBytes": 3001221, + "viewport": { + "width": 1380, + "height": 880, + "scale": 2 + }, + "firstOpenMs": 60, + "repeatOpenMs": [ + 47, + 47, + 50, + 50 + ], + "repeatMedianMs": 50, + "rendererLongTasks": { + "first": { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + "repeats": [ + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + } + ] + }, + "threadItemsIpcMs": [ + 5, + 4, + 4 + ], + "selectedAtLaunch": false, + "renderedItems": 1400, + "threadEventsOnOpen": { + "thread": 1 + } + } + ], + "longTranscript": { + "processMemory": { + "before": { + "at": "2026-11-12T15:07:50.526Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 75617, + "shared": 656 + }, + "node": { + "rss": 218710016, + "heapTotal": 34471936, + "heapUsed": 18531328, + "external": 4669742, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496069850.169, + "type": "Browser", + "memory": { + "workingSetSize": 213584, + "peakWorkingSetSize": 213584 + } + }, + { + "creationTime": 1794496070071.853, + "type": "GPU", + "memory": { + "workingSetSize": 99360, + "peakWorkingSetSize": 99408 + } + }, + { + "creationTime": 1794496070073.795, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496070118.897, + "type": "Tab", + "memory": { + "workingSetSize": 133552, + "peakWorkingSetSize": 133552 + } + } + ] + }, + "after": { + "at": "2026-11-12T15:07:50.994Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 81297, + "shared": 1072 + }, + "node": { + "rss": 223608832, + "heapTotal": 37748736, + "heapUsed": 27464956, + "external": 4702152, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496069850.169, + "type": "Browser", + "memory": { + "workingSetSize": 218368, + "peakWorkingSetSize": 221024 + } + }, + { + "creationTime": 1794496070071.853, + "type": "GPU", + "memory": { + "workingSetSize": 104736, + "peakWorkingSetSize": 104928 + } + }, + { + "creationTime": 1794496070073.795, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496070118.897, + "type": "Tab", + "memory": { + "workingSetSize": 356240, + "peakWorkingSetSize": 358608 + } + } + ] + }, + "afterEachOpen": [ + { + "at": "2026-11-12T15:07:50.618Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80017, + "shared": 1072 + }, + "node": { + "rss": 222953472, + "heapTotal": 37486592, + "heapUsed": 24997832, + "external": 4669972, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496069850.169, + "type": "Browser", + "memory": { + "workingSetSize": 217728, + "peakWorkingSetSize": 220016 + } + }, + { + "creationTime": 1794496070071.853, + "type": "GPU", + "memory": { + "workingSetSize": 102960, + "peakWorkingSetSize": 102960 + } + }, + { + "creationTime": 1794496070073.795, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496070118.897, + "type": "Tab", + "memory": { + "workingSetSize": 192624, + "peakWorkingSetSize": 192624 + } + } + ] + }, + { + "at": "2026-11-12T15:07:50.714Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80449, + "shared": 1072 + }, + "node": { + "rss": 223215616, + "heapTotal": 37748736, + "heapUsed": 25575536, + "external": 4670162, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496069850.169, + "type": "Browser", + "memory": { + "workingSetSize": 217984, + "peakWorkingSetSize": 220608 + } + }, + { + "creationTime": 1794496070071.853, + "type": "GPU", + "memory": { + "workingSetSize": 103680, + "peakWorkingSetSize": 103696 + } + }, + { + "creationTime": 1794496070073.795, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496070118.897, + "type": "Tab", + "memory": { + "workingSetSize": 253696, + "peakWorkingSetSize": 253696 + } + } + ] + }, + { + "at": "2026-11-12T15:07:50.793Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80529, + "shared": 1072 + }, + "node": { + "rss": 223281152, + "heapTotal": 37748736, + "heapUsed": 26081656, + "external": 4670401, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496069850.169, + "type": "Browser", + "memory": { + "workingSetSize": 218048, + "peakWorkingSetSize": 220656 + } + }, + { + "creationTime": 1794496070071.853, + "type": "GPU", + "memory": { + "workingSetSize": 104192, + "peakWorkingSetSize": 104400 + } + }, + { + "creationTime": 1794496070073.795, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496070118.897, + "type": "Tab", + "memory": { + "workingSetSize": 271136, + "peakWorkingSetSize": 271136 + } + } + ] + }, + { + "at": "2026-11-12T15:07:50.877Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 80657, + "shared": 1072 + }, + "node": { + "rss": 223379456, + "heapTotal": 37748736, + "heapUsed": 26746820, + "external": 4691465, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496069850.169, + "type": "Browser", + "memory": { + "workingSetSize": 218144, + "peakWorkingSetSize": 220704 + } + }, + { + "creationTime": 1794496070071.853, + "type": "GPU", + "memory": { + "workingSetSize": 104512, + "peakWorkingSetSize": 104688 + } + }, + { + "creationTime": 1794496070073.795, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496070118.897, + "type": "Tab", + "memory": { + "workingSetSize": 317520, + "peakWorkingSetSize": 319200 + } + } + ] + }, + { + "at": "2026-11-12T15:07:50.975Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 81265, + "shared": 1072 + }, + "node": { + "rss": 223608832, + "heapTotal": 37748736, + "heapUsed": 27330448, + "external": 4702092, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496069850.169, + "type": "Browser", + "memory": { + "workingSetSize": 218368, + "peakWorkingSetSize": 220816 + } + }, + { + "creationTime": 1794496070071.853, + "type": "GPU", + "memory": { + "workingSetSize": 104720, + "peakWorkingSetSize": 104928 + } + }, + { + "creationTime": 1794496070073.795, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47664, + "peakWorkingSetSize": 47664 + } + }, + { + "creationTime": 1794496070118.897, + "type": "Tab", + "memory": { + "workingSetSize": 355936, + "peakWorkingSetSize": 355936 + } + } + ] + } + ] + }, + "turns": 200, + "items": 1400, + "savedBytes": 3001221, + "viewport": { + "width": 1380, + "height": 880, + "scale": 2 + }, + "firstOpenMs": 60, + "repeatOpenMs": [ + 55, + 45, + 50, + 44 + ], + "repeatMedianMs": 50, + "rendererLongTasks": { + "first": { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + "repeats": [ + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + }, + { + "count": 0, + "totalMs": 0, + "maxMs": 0 + } + ] + }, + "threadItemsIpcMs": [ + 5, + 4, + 4 + ], + "selectedAtLaunch": false, + "renderedItems": 1400, + "threadEventsOnOpen": { + "thread": 1 + } + }, + "firstOpenBudget": { + "approvedBy": "Val", + "approvedOn": "2026-10-22", + "limitMs": 500, + "samplesMs": [ + 60.29999998211861, + 59.5, + 60.099999994039536, + 58.80000001192093, + 59.79999998211861 + ], + "medianMs": 59.79999998211861 + }, + "logStream": { + "processMemory": { + "before": { + "at": "2026-11-12T15:07:57.319Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 75185, + "shared": 1072 + }, + "node": { + "rss": 218644480, + "heapTotal": 34209792, + "heapUsed": 17661464, + "external": 4668755, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496076673.584, + "type": "Browser", + "memory": { + "workingSetSize": 213536, + "peakWorkingSetSize": 213536 + } + }, + { + "creationTime": 1794496076866.533, + "type": "GPU", + "memory": { + "workingSetSize": 99568, + "peakWorkingSetSize": 99584 + } + }, + { + "creationTime": 1794496076868.534, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47616, + "peakWorkingSetSize": 47616 + } + }, + { + "creationTime": 1794496076916.613, + "type": "Tab", + "memory": { + "workingSetSize": 134992, + "peakWorkingSetSize": 134992 + } + } + ] + }, + "after": { + "at": "2026-11-12T15:07:58.350Z", + "units": { + "nativeMemory": "KiB", + "nodeMemory": "bytes" + }, + "main": { + "native": { + "private": 148065, + "shared": 1040 + }, + "node": { + "rss": 320700416, + "heapTotal": 66158592, + "heapUsed": 47635564, + "external": 42634147, + "arrayBuffers": 0 + } + }, + "processes": [ + { + "creationTime": 1794496076673.584, + "type": "Browser", + "memory": { + "workingSetSize": 313200, + "peakWorkingSetSize": 313200 + } + }, + { + "creationTime": 1794496076866.533, + "type": "GPU", + "memory": { + "workingSetSize": 101984, + "peakWorkingSetSize": 102000 + } + }, + { + "creationTime": 1794496076868.534, + "type": "Utility", + "name": "Network Service", + "memory": { + "workingSetSize": 47920, + "peakWorkingSetSize": 47920 + } + }, + { + "creationTime": 1794496076916.613, + "type": "Tab", + "memory": { + "workingSetSize": 159072, + "peakWorkingSetSize": 159136 + } + } + ] + } + }, + "loggedBytes": 3145728, + "deltas": 48, + "deltaSpacingMs": 10, + "sentToWindow": { + "bytes": 664016, + "events": 56, + "largestEventBytes": 262260, + "largestOutputBytes": 262144 + }, + "mainStreamMs": 678, + "mainCpuMs": 136, + "sendToAnswerShownMs": 1026, + "rendererLongTasks": { + "count": 0, + "totalMs": 0, + "maxMs": 0 + } + } + }, + "limits": "Unpackagednativefixture/namedhost; no liveprovider/installedrelease/device/human/overallmemoryclaim" + }, + "sourceCI": { + "head": "8771c3c2d7ef16de9ca12940eac2937119ae69b7", + "previewCheckout": "b7a176fc56f4153e7976deae74e8ca2a9fa4cb2e", + "previewTreeEqualsCandidate": true, + "run": 43236477996, + "macJob": 131245219340, + "iPhoneJob": 131245219122, + "all12ObservedChecks": "success", + "counts": { + "unitPass": 2566, + "unitSkip": 36, + "desktopPass": 523, + "desktopSkip": 8, + "sitePass": 8, + "webPass": 4, + "fail": 0, + "cancel": 0, + "observedRetry": 0 + }, + "qualificationOnly": true + }, + "privateReceiptDigests": { + "cf8-8771c3c-candidate-performance-first/execution.json": "a993d58299293c41331d9aba58aca94daf8ede53e3db8046c75197930b12b585", + "cf8-8771c3c-candidate-retention-terminal-root-audit.json": "705bd63dc9b05160671b47af6a2b14b380795280f4d3f62d10c73e9e08c3ee54", + "cf8-18aa43f-source-export-reproduction-first/terminal-reproduction-audit.json": "6ccc9d925efdfe2a3bde0d7c93d458831d2f2c1e1a0bcda455fe9724f3470231", + "cf8-reference0e674-source-export-reproduction-first/terminal-reproduction-audit.json": "71cdaad7fd34191afc30a745e3a69b7e72e803f66e5f841cf5609fc1f61cbdf0" + }, + "limits": [ + "Unpackaged native synthetic fixtures, common current pinned dependencies and named host; no real-provider/installed-release/device/human acceptance", + "Fixed-order descriptive samples; no causal improvement, universal memory ceiling, leak freedom or pixel parity", + "The original89/44S5 series remains unchanged and separately accepted; these new89/877 observations qualify the selectedcandidate", + "New documentation/base head requires its own hosted/protected qualification;877success is not assigned to another head" + ] +} diff --git a/docs/reviews/2026-11-12-cf8-reproduction-candidate.md b/docs/reviews/2026-11-12-cf8-reproduction-candidate.md new file mode 100644 index 00000000..84ecba4f --- /dev/null +++ b/docs/reviews/2026-11-12-cf8-reproduction-candidate.md @@ -0,0 +1,45 @@ +# CF-8 capture and performance reproduction candidate + +This receipt qualifies application candidate `8771c3c2d7ef16de9ca12940eac2937119ae69b7`, tree `307bce5ea4dc305ca11d227e23c436d942a0deb4`, with reproducible reference/candidate captures and current performance observations. It supplies evidence for #281’s combined reproducibility criterion; protected delivery and the final literal on-main audit remain separate gates. Full CF-8 native/provider/device/human/child and rollout acceptance remains open. + +## Reference and candidate captures + +The [visual package](2026-11-12-cf8-visual-reproduction/README.md) preserves 33 candidate images, their reference/candidate hashes, the reproduction recipe and listed visual differences. The archived reference is `0e674e75237f393b8a1ba712061f5b303a61d5b4` (version 0.3.0); candidate captures are from `18aa43f689227ec7c20dae2751e2292026483dc4`. Only three documentation files differ between `18aa43f` and `8771c3c`; their canonical fixture and application inputs are unchanged, and all 792 rebuilt desktop files matched at audit. Capture source identity is retained rather than relabelled as the later diagnostic HEAD. + +The first direct-checkout capture run passed fourteen cases and retained all 33 inspected candidate images. Separate source-export controls then exercised each source’s unchanged fourteen cases once, with zero skips/retries and all 33 filenames/dimensions reproduced. Before/after guards verified the candidate export and the historical reference’s 928 source files and 628 desktop build files. The source exports use the same current pinned dependencies/common core and are not historical shipped binaries. The recipe uses the existing preparer in an owned worktree; it does not reset or switch the branch, inherit a packaged-app override or replace an installed app. The original inspected images and subsequent controls keep separate hashes; the inline recipe wrapper is syntax-checked and mapped to the executed commands, not claimed as another capture run. + +The inventory lists actual remaining differences: narrow approval content, inner JSON scrolling and partly scrolled headings at 900×600; different answer wrapping/stack positions; Coven composer outline/focus appearance; and varying synthetic paths, repository suffixes and observed durations. Wider captures retain plan/action/outcome structure; typed captures retain attempt, reasoning-summary, denied-command and final-answer ordering. All three themes and both declared viewports are represented. No universal pixel parity, exhaustive defect detection or human approval is asserted. + +## Exact candidate performance + +A new first retention series compares baseline `89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1` with candidate `8771c3c`. All twelve fresh-app cases passed without skips/retries, all twelve observations completed, all app-close calls returned and both manifests verified afterward. Root audit verified receipt hashes, source identities, retained inputs, unchanged saved histories, synthetic scripts/call logs and positive workload counts. Recorded primary/renderer PIDs were absent at audit, without an exhaustive descendant-process claim. The earlier [89/44 series](2026-11-12-cf8-portable-reproduction.md) remains unchanged; this new target qualifies the selected candidate rather than reopening accepted S5. + +The host remains Apple M5 Max, 18 cores, 128 GiB RAM, arm64, kernel `27.2.0`, Node `v24.22.0`, Electron `44.4.5`. Current ran first, then baseline, serially with common current pinned dependencies. Each source has three history apps with three 200-turn/1,400-item histories, three warm opens and 63 measured opens each, plus three log apps with one warm-up and 21 measured streams each. Every stream has 3 MiB logical output in 48 deltas; repeated aggregate events mean logical bytes are not wire bytes. Positive identity/completion/native-call assertions and existing preview/IPC limits are unchanged. No emitted shell command is executed by this retention fixture and no real inference runs. + +| Median of three replicates | Baseline 89c98f2 | Candidate 8771c3c | +| --- | ---: | ---: | +| History renderer warm detached before, bytes | 14,457,996 | 14,958,444 | +| History renderer warm detached after, bytes | 15,008,644 | 15,790,664 | +| History main natural heap after, bytes | 32,286,232 | 51,484,732 | +| History main natural private after, KiB | 106,289 | 120,241 | +| Log measured window traffic, bytes | 1,684,722,836 | 13,948,603 | +| Log maximum sampled output, bytes | 3,145,728 | 262,144 | +| Log renderer warm detached after, bytes | 73,350,804 | 8,158,688 | +| Log main natural heap after, bytes | 203,196,572 | 53,123,976 | +| Log main natural private after, KiB | 290,338 | 167,778 | + +Renderer GC is forced only at matched warm detached endpoints. Intermediate renderer and all main snapshots use natural GC; the one/five-second detach observations and two-frame sampling point do not prove exhaustive settlement. The main history snapshot is higher for the candidate; this is not an overall memory-improvement claim. Uniform all-x logs, retained legitimate histories/sidebar entries, fixed order, dynamic metadata and host load limit causal interpretation. These are descriptive snapshots, not operation high-water marks, universal heap/RSS ceilings or leak-freedom evidence. + +The canonical performance spec also passed both unchanged cases once at actual driver HEAD `8771c3c`. Across five fresh processes, first opening of the 200-turn transcript after window readiness took 60.3, 59.5, 60.1, 58.8 and 59.8 ms; median 59.8 ms satisfies Val’s existing 500 ms gate. This measures transcript opening after app readiness, not whole-app startup or provider latency. Its 3 MiB log case observed 664,016 IPC bytes and maximum sampled output of 262,144 bytes, retaining the 256 KiB limit. No timing or assertion was relaxed. + +The [numeric aggregate](2026-11-12-cf8-reproduction-candidate.json) preserves exact per-replicate endpoints/ranges, host load, observation times, source/driver identities and raw-receipt digests, plus the canonical measurements. It omits local executable/app/profile paths and PIDs without changing numeric observations. Full per-open/per-stream samples and all first logs remain in the private evidence store. The [portable retention procedure](../../apps/desktop/bench/README.md) accepts the full baseline and candidate SHAs above in a new private output directory. The canonical command is `MODEX_MEASURE=/absolute/private/new-measurement.json pnpm --filter @modex/desktop exec playwright test e2e/transcript-measure.spec.ts --workers=1 --retries=0 --max-failures=1`; run from the qualified owned source with application overrides cleared and preserve the original report/log before any further invocation. + +## Qualification and delivery limits + +Original signed implementation `91c033e` passed local build/typechecks and 2,566 units with 36 skips, including all 36 benchmark guards; subsequent changes through `8771c3c` are README/documentation only. The older `545e996` full run had two unit deadline cancellations before measurement, both passed unchanged in a focused control, and the timing cause remains unestablished. Review-driven repairs and their RED/GREEN tests, original setup failures and two deliberate fixture EOF blank-line warnings remain in the [tooling receipt](2026-11-12-cf8-portable-reproduction.md). No first failure is replaced by this later successful qualification. + +Source CI run `43236477996` at `8771c3c` passed all twelve observed checks. Its actual preview checkout `b7a176fc56f4153e7976deae74e8ca2a9fa4cb2e` has parents `5a580d4f` and `8771c3c` and exactly the candidate tree above. Raw logs independently show 2,566 unit passes/36 skips, 523 desktop passes/eight skips, eight site passes and four web passes, with zero failures/cancellations or observed retries; the separate iPhone workflow also passed. This is source qualification, not protected-queue/main, physical phone, installed release or human acceptance. Any later documentation/base head requires its own applicable checks and actual merged-tree audit. + +CodeQL’s generated-test string-literal finding was traced to a standalone Node/Playwright module with no HTML or shell embedding. Four adversarial string controls round-tripped exact data with no injected expression or marker; the [reasoned inline disposition](https://github.com/TypeSafeAI/modex/pull/514#discussion_r4551746844) does not suppress the rule or dismiss the alert. A future different parsing context would require its own boundary analysis. The owned diagnostic’s trust and non-atomic filesystem/persistence limits remain those in the tooling receipt. + +Only after this tooling/visual/performance package is on main and its full combined clause is audited may the corresponding #281 box advance. The remaining full fresh-release candidate, live Codex/Claude, human keyboard/VoiceOver, physical/older-Companion/two-network, child issue and rollout requirements remain separate; existing deferrals are not passes. No feature admission/default, credential budget, model download or release publication changes here. diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/README.md b/docs/reviews/2026-11-12-cf8-visual-reproduction/README.md new file mode 100644 index 00000000..b0356387 --- /dev/null +++ b/docs/reviews/2026-11-12-cf8-visual-reproduction/README.md @@ -0,0 +1,61 @@ +# CF-8 visual reference/candidate inventory candidate + +This evidence package preserves 33 unchanged candidate PNGs from canonical fixture capture at signed source `18aa43f689227ec7c20dae2751e2292026483dc4`, compared with the 33 hash-verified historical captures at `0e674e75237f393b8a1ba712061f5b303a61d5b4`. The tests passed fourteen cases with zero skips, retries or failures. Every filename and pixel dimension matches its historical counterpart. These are fixture captures, not model-provider or installed-release screenshots. + +The manifest contains the exact reproduction command, source/tree identities, reference manifest digest, each candidate/reference image digest and explicit remaining differences. Waiting, completed, restored, failed and live states cover Graphite, Jev and OpenCoven at 900×600 and 1440×900; typed turns add one 900×600 capture per theme. The golden-path case verifies an actual synthetic-native edit/check, Save to Notes, Open and restart without rerunning it; it does not replace the separate saved-Note human review. + +At 900×600, current approval content is narrower and has an inner horizontal JSON scrollbar. The initial waiting/live capture scroll position places part of the approval heading above the transcript viewport, while waiting actions remain visible. Completed/restored answers wrap differently and their plan/answer/Note stack positions shift. The Coven composer’s rounded outline/focus appearance differs. Synthetic temporary paths, repository suffixes and observed durations vary. Wider captures retain the plan/action/outcome structure; typed captures retain attempt, reasoning summary, denied command and final answer. These differences are listed rather than labelled universal pixel parity or approved on Val’s behalf. + +The portable repeated-history/log tooling and the [current candidate performance receipt](../2026-11-12-cf8-reproduction-candidate.md) accompany this visual package in the same delivery. This evidence adds no acceptance checkbox before protected on-main delivery and a literal clause audit. All other CF-8 native/provider/device/human/child and rollout gates remain independent. + +## Reproduce the pinned capture source + +The following recipe was checked with driver `8771c3c2d7ef16de9ca12940eac2937119ae69b7`, the pinned installed dependencies and the same common core. It exports/builds capture source `18aa43f` inside the owned scratch area, leaving the worktree branch unchanged. The baseline build is part of the existing preparer; no retention workload runs under `--prepare-only`. Source/build/core/driver verification runs before and after capture. The source-export control passed fourteen cases and produced all 33 matching filenames/dimensions; all 792 exported desktop build files were byte-identical to the direct-checkout build at audit. The original inspected images and the second reproduction series have separate hashes; timestamps and temporary paths are expected to vary. + +Run from an owned worktree containing the portable tooling after the pinned install. The output uses a new private directory. The common-core guard must pass; a later incompatible driver/core fails explicitly rather than changing the comparison. The wrapper clears inherited application/provider overrides, uses ordinary fixture cleanup, retains first logs/reports and stops on failure. It launches the source export through the existing synthetic fixtures and never replaces an installed app. + +```sh +( + set -eu + capture_source=18aa43f689227ec7c20dae2751e2292026483dc4 + capture_root="$(mktemp -d "${TMPDIR:-/tmp}/modex-capture-XXXXXX")" + printf 'Capture output: %s\n' "$capture_root" + git fetch origin 89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1 "$capture_source" + node scripts/cf8-retention.mjs --output "$capture_root/preparation" --baseline 89c98f280292b13fd9b1c7af1bf2fe65cd2fa0d1 --current "$capture_source" --prepare-only > "$capture_root/preparation-first.log" 2>&1 + mkdir "$capture_root/screenshots" + node --input-type=module - "$capture_root" "$capture_source" <<'JS' +import fs from 'node:fs'; +import path from 'node:path'; +import { spawnSync } from 'node:child_process'; +import { verifyManifest, workloadEnvironment } from './scripts/lib/cf8-retention.mjs'; +const root = process.argv[2]; +const preparation = JSON.parse(fs.readFileSync(path.join(root, 'preparation/preparation.json'), 'utf8')); +if (preparation.state !== 'prepared') throw new Error('Source preparation did not complete.'); +const current = preparation.sources.find(source => source.role === 'current'); +const manifest = verifyManifest(current.manifest, current.manifestSha256); +if (manifest.source.sha !== process.argv[3]) throw new Error('Unexpected capture source.'); +const env = workloadEnvironment(); +delete env.MODEX_KEEP_TEST_TMP; +env.MODEX_SCREENSHOTS = path.join(root, 'screenshots'); +env.PLAYWRIGHT_JSON_OUTPUT_NAME = path.join(root, 'report.json'); +const args = ['exec', 'playwright', 'test', 'e2e/conversation-fidelity.spec.ts', 'e2e/typed-turns.spec.ts', '--workers=1', '--retries=0', '--max-failures=1', '--output', path.join(root, 'artifacts'), '--reporter=json']; +const log = fs.openSync(path.join(root, 'capture-first.log'), 'wx', 0o600); +let result; +try { + result = spawnSync('pnpm', args, { cwd: manifest.appDir, env, stdio: ['ignore', log, log] }); +} finally { + fs.closeSync(log); + verifyManifest(current.manifest, current.manifestSha256); +} +if (result.error) throw result.error; +if (result.status !== 0) process.exit(result.status ?? 1); +const report = JSON.parse(fs.readFileSync(env.PLAYWRIGHT_JSON_OUTPUT_NAME, 'utf8')); +if (report.stats.expected !== 14 || ['unexpected', 'skipped', 'flaky'].some(key => report.stats[key] !== 0)) throw new Error('Incomplete capture report.'); +if (fs.readdirSync(env.MODEX_SCREENSHOTS).filter(name => name.endsWith('.png')).length !== 33) throw new Error('Incomplete capture set.'); +JS +) +``` + +The executed control uses the same preparer, full revisions, export app directory, cleared environment, fixed Playwright arguments, manifest checks and result gate. Its original command/phase receipts and first logs are retained privately; the sanitized reproduction control records their digests and all second-series image digests. The inline wrapper above is syntax-checked and mapped to that executed command sequence; it is not claimed as an additional third capture run. + +The same source-export recipe was also executed against the historical reference commit `0e674e75237f393b8a1ba712061f5b303a61d5b4`: its unchanged fourteen cases passed once, producing all 33 matching filenames/dimensions, with before/after verification of 928 source files and 628 desktop build files. To select that source, change only `capture_source` to its full SHA and let the recipe allocate a new output directory. The [historical reference reproduction control](reference-reproduction-control.json) preserves those separate raw-receipt and image hashes. This rebuild used version 0.3.0 source with common current dependencies; the tool’s `current` operand selects a source for preparation and does not relabel the historical reference as current main. Neither source-control run requires pixel-identical output. diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/reference-reproduction-control.json b/docs/reviews/2026-11-12-cf8-visual-reproduction/reference-reproduction-control.json new file mode 100644 index 00000000..23495472 --- /dev/null +++ b/docs/reviews/2026-11-12-cf8-visual-reproduction/reference-reproduction-control.json @@ -0,0 +1,255 @@ +{ + "at": "2026-11-12T14:54:57.158289+00:00", + "diagnosticDriver": "8771c3c2d7ef16de9ca12940eac2937119ae69b7", + "historicalReferenceSource": "0e674e75237f393b8a1ba712061f5b303a61d5b4", + "sourceTree": "ffc1efa5d84753d86d0c46e1e570a488bf2c1a9b", + "sourceAppVersion": "0.3.0", + "scope": "Original historical0e674 capture fixtures rebuilt with common pinned current dependencies, not the historical shipped binary or original host/environment", + "preparerRoleMeaning": "The tool current operand selects0e674 for source preparation; it does not label it as currentmain or currentcapturecandidate. Baseline89also rebuilt but not launched by prepare-only.", + "executionReceiptSha256": "e46d929337de8952fab5abb309d1a84fd23c3e007fb1e21bf9741fdacf10c29f", + "reportSha256": "26921e5544c858212e19eeff547f9c3dbe3e887d7cca933d429fe5ce5f26fe0a", + "sourceManifestSha256": "0c3146bce2f29be58083959719b529c34fa43f4106527cb4403ad66bb4cb841d", + "sourceFilesVerified": 928, + "desktopBuildFilesVerified": 628, + "pass": 14, + "skip": 0, + "retry": 0, + "captureCount": 33, + "allHistoricalReferenceHashesVerified": 33, + "allDimensionsMatchArchivedReferences": true, + "beforeAndAfterManifestVerification": true, + "images": [ + { + "file": "completed-coven-1440x900.png", + "sourceExportReproductionSha256": "492dd332fb71ab306d4c86bf5abd5cac716d4a9283faddb61299e98d7abfb908", + "archivedReferenceSha256": "21e70411b1d801576789b2a4a593a26744c9d05859dfea6d329daa784bc8f127", + "width": 1440, + "height": 900 + }, + { + "file": "completed-coven-900x600.png", + "sourceExportReproductionSha256": "4619d8683053d4a708c83f8826c76491bfcaabfd8265aa72b52444042d1342d0", + "archivedReferenceSha256": "5c84af450e1374acbce0051effc7e2d854390c6e3558b3bb47a5b74c385b3a00", + "width": 900, + "height": 600 + }, + { + "file": "completed-graphite-1440x900.png", + "sourceExportReproductionSha256": "e905fde8d8f1c8834e0736974213d88fa88ca78f6135aa6d35420466f6ecc8cf", + "archivedReferenceSha256": "5ead77933b34820d7d3b3a209953d991a371c483abfdb2645556a572c8dabfbe", + "width": 1440, + "height": 900 + }, + { + "file": "completed-graphite-900x600.png", + "sourceExportReproductionSha256": "cc438b7136503c65a2fadf6500ceacb4e91befb3a36c1fd7db200eb88f3faf5c", + "archivedReferenceSha256": "39c44c8fcd0fd5d3cc19f1041e8576620972a343298f784c681ada2e77f0f58b", + "width": 900, + "height": 600 + }, + { + "file": "completed-jev-1440x900.png", + "sourceExportReproductionSha256": "6a512d9d89009f31e7c6d6ea4a0296dd133b865ca4c3c5c55262347fa6b18496", + "archivedReferenceSha256": "976109468059ded740deb96c3017d238e69e25ffc94e26f0a1656825a9e0a87a", + "width": 1440, + "height": 900 + }, + { + "file": "completed-jev-900x600.png", + "sourceExportReproductionSha256": "4f3dab3cdae42fdc84776d5e55879052b347f1dbe85d6c0d6a29469ae335ef9b", + "archivedReferenceSha256": "a4359a8d2c07ad46e7cc215b9cf25174b896f9e7456995737057de945b0bb9c6", + "width": 900, + "height": 600 + }, + { + "file": "failed-coven-1440x900.png", + "sourceExportReproductionSha256": "25c6147001e8c6f783a76e7ea023f21226ba135b6f2085cd8732e81316f9d272", + "archivedReferenceSha256": "1e066a6c60cee6ab71a8d5dec11b93fd60d0e8e02db52d3aa1f487db53232239", + "width": 1440, + "height": 900 + }, + { + "file": "failed-coven-900x600.png", + "sourceExportReproductionSha256": "3ad2c1a232d226f77c5f0a487da473166cc51a02a8758b081d7b70b4473c8ab1", + "archivedReferenceSha256": "215f46411073f8a66f10a098230857a1ebde62664accdd25b0e6263ddd504312", + "width": 900, + "height": 600 + }, + { + "file": "failed-graphite-1440x900.png", + "sourceExportReproductionSha256": "a5204f6803a06adb9eaff4c06a244195d296a9f0d2104c5cc6f33e7865879b86", + "archivedReferenceSha256": "3841dac6fe6fb20f3da23ef0198c8c0e86fe84ba8c06feeb3dedb32adf5c4798", + "width": 1440, + "height": 900 + }, + { + "file": "failed-graphite-900x600.png", + "sourceExportReproductionSha256": "f9dd3e5ba9c593508b277ee8df6cb42b70607b4506f28ed8845d096c7154b7db", + "archivedReferenceSha256": "d672598db58bfcdee519612d4cd428ac74e708fea6d5ca893c40013d26dccc4e", + "width": 900, + "height": 600 + }, + { + "file": "failed-jev-1440x900.png", + "sourceExportReproductionSha256": "3cf80d056f129b3b28aed3075c8e870e728b2f3d139f21cdc2b080e8f9f750a9", + "archivedReferenceSha256": "a084e32bdeb20f6effd02ccd9ea88ad3156ad726133acfd2a7d499b721b0c484", + "width": 1440, + "height": 900 + }, + { + "file": "failed-jev-900x600.png", + "sourceExportReproductionSha256": "e589b0a5b4c16bb9e15e5cdfce592f0abcb1c4c720c90b8b27cb157e415b57a3", + "archivedReferenceSha256": "a52ad34fdcd18cc0a2246acf2f14b74a58a13938ecafee702a536c1da7d19450", + "width": 900, + "height": 600 + }, + { + "file": "live-coven-1440x900.png", + "sourceExportReproductionSha256": "605979b98c10b2b83de6817b9625c71cb7fccfa85a912e1be226ebec7a1c544e", + "archivedReferenceSha256": "2c432b49e9cc3782c77a574f8a31a9f66246c127026f044680018f2fec5b4aa6", + "width": 1440, + "height": 900 + }, + { + "file": "live-coven-900x600.png", + "sourceExportReproductionSha256": "aa5e7aad7187c3daa7e2f1acd287f5241049c56cfcd5c816986fc7511aef06be", + "archivedReferenceSha256": "f0241d0e1074b02a12d716470f0a4827bb5fa66162336191cdf489650035eca9", + "width": 900, + "height": 600 + }, + { + "file": "live-graphite-1440x900.png", + "sourceExportReproductionSha256": "210fa222088fe9799b0d2793f14fce5c82f1a6f67579e6ed790e7f55aab23aca", + "archivedReferenceSha256": "c5e898c8eae22682b3c0aca2d8110440525a90f828a0ba67b7861e899c657b61", + "width": 1440, + "height": 900 + }, + { + "file": "live-graphite-900x600.png", + "sourceExportReproductionSha256": "54befa6886736cc36ab62ae3d53909cf212151475ce5c62e0665a0f2f30cb1c1", + "archivedReferenceSha256": "119163f665f0282c9cc1da616640fbb1f22f6151bcb0515e936e86e47747897d", + "width": 900, + "height": 600 + }, + { + "file": "live-jev-1440x900.png", + "sourceExportReproductionSha256": "effb00f3899eed84eba32288a38dbd07ead184881eb93b15851a17d7892c077c", + "archivedReferenceSha256": "9b95341203a0b210064e8314943193627c90ec2ba4dd385f871341d2daeacf86", + "width": 1440, + "height": 900 + }, + { + "file": "live-jev-900x600.png", + "sourceExportReproductionSha256": "e5cd335106c7100967dc49d037ec0f1eed46eeba921018b49cfd763efe92890e", + "archivedReferenceSha256": "f039cdb8b64910c23aa0d1f8d286fc5f13176307785cbe46c07ee30e6df152ee", + "width": 900, + "height": 600 + }, + { + "file": "restored-coven-1440x900.png", + "sourceExportReproductionSha256": "5e714e90369f4ef9e501abbb7301987af4848824052b828428ed56ad8b0e88ee", + "archivedReferenceSha256": "0ece5c85ac3cd809af23f3acb2330218502fa88a694e1eec5484308020fdf769", + "width": 1440, + "height": 900 + }, + { + "file": "restored-coven-900x600.png", + "sourceExportReproductionSha256": "86162abd2d3e2c748fb1054c213662c80d16380f1e8be88aa172ae0e7c53e8fe", + "archivedReferenceSha256": "017ab8d47160c4349e3a9ccbb69164fbb650fc072f28e694b9eadb63982fd28d", + "width": 900, + "height": 600 + }, + { + "file": "restored-graphite-1440x900.png", + "sourceExportReproductionSha256": "7eb6b1c128de9f33eb83f4f7a9df9e1290bdbe4a002f482e1b40331a06752ad8", + "archivedReferenceSha256": "d3121a9f1a26aef21b4686070071291dcdc0e2c277bbbe8f0c2caed146347327", + "width": 1440, + "height": 900 + }, + { + "file": "restored-graphite-900x600.png", + "sourceExportReproductionSha256": "d79adaa3cfbccecf34472d06d54aee98ea7da16b7165ffda520ec4d574dd28c9", + "archivedReferenceSha256": "3cbb56e622092a9cefa2fbca260331513a17f9c57830715eaca6f04e2f383703", + "width": 900, + "height": 600 + }, + { + "file": "restored-jev-1440x900.png", + "sourceExportReproductionSha256": "8454abd93b23f04c2f971133fd12963816f50a4ac94668c1e75ef199f3a0437c", + "archivedReferenceSha256": "d8d4a199830c7bcd448908d625a6efce3f7b8e048b37025585001a78026f11a5", + "width": 1440, + "height": 900 + }, + { + "file": "restored-jev-900x600.png", + "sourceExportReproductionSha256": "1236ee2003ec1a4092ed27a007e21460166b02a668c859845354fba3e267c1cb", + "archivedReferenceSha256": "9ec40eedf1fd989c9ea7c543ab88573b086f932740ac064b6286d55d4302385a", + "width": 900, + "height": 600 + }, + { + "file": "typed-turn-coven-900x600.png", + "sourceExportReproductionSha256": "72d3554a77a67214b9cc1221682cd5d928207bab6620ad872057b855c18ed450", + "archivedReferenceSha256": "1c1346e082672985b76e81c12d4e0fb1bb8aaf4c0c20300fd8abb6ec81a99cc5", + "width": 900, + "height": 600 + }, + { + "file": "typed-turn-graphite-900x600.png", + "sourceExportReproductionSha256": "b279d8d8f7390ad364cbe4fa8d115320c60e6e499b9dd5a621c7f8853d1d6c06", + "archivedReferenceSha256": "a18c94345fd239e71be79bfdcdcb90f8d061abe4c3acb2191b57ef81cdb2a1b6", + "width": 900, + "height": 600 + }, + { + "file": "typed-turn-jev-900x600.png", + "sourceExportReproductionSha256": "79ea975f8af552a28ad8403e88e937a5636d7cbfbcb2b308dff7913cdae4a90f", + "archivedReferenceSha256": "3d0ad7d57bdefbcc0377b02a85d9df10b30a59ae45123ff69ef61b1627af839f", + "width": 900, + "height": 600 + }, + { + "file": "waiting-coven-1440x900.png", + "sourceExportReproductionSha256": "7be325d942cdb9c867b81400d55f5d7ed3fe22437b50e2d0cd110e8067a17ccd", + "archivedReferenceSha256": "4002ac3ae9676673a05af623a5387278702137574f0a4e00d44eec3c49900621", + "width": 1440, + "height": 900 + }, + { + "file": "waiting-coven-900x600.png", + "sourceExportReproductionSha256": "5316d64201a23922f980b89a9fb4cfab37fbe919b14bc7d10c31e5c1cdcd8b4b", + "archivedReferenceSha256": "19066d45c12fc61452f18ef044d7241da058a2e9fcb1b62cbb5909f58feadfc1", + "width": 900, + "height": 600 + }, + { + "file": "waiting-graphite-1440x900.png", + "sourceExportReproductionSha256": "14f86527b70cc28805cd416109eb00a130353188121f6c9bfb6a57cc9e73aa2d", + "archivedReferenceSha256": "b1343efcee1ad67efb2790384b5e8e3533bb6baf53388142d22f29e50cd89c04", + "width": 1440, + "height": 900 + }, + { + "file": "waiting-graphite-900x600.png", + "sourceExportReproductionSha256": "ca944d25287f1eeb266c43d991a868fc660acecc5d691dd673c471504d3b551e", + "archivedReferenceSha256": "b0450cd77b9b02e44f7d75b16ceef84eafdc9bd2d21a17d681e6a6c95551dcfb", + "width": 900, + "height": 600 + }, + { + "file": "waiting-jev-1440x900.png", + "sourceExportReproductionSha256": "57a7a95357a012f83d2e6c2563c09650ee947fbb7738b40f22c035da59f65380", + "archivedReferenceSha256": "586e06bbc7603bf776302a6124dc705ddec3802f5a82263b980a3a946318e6a4", + "width": 1440, + "height": 900 + }, + { + "file": "waiting-jev-900x600.png", + "sourceExportReproductionSha256": "9fd5023ecd02122abf0c818b8383a30f889722d35ad017f0b524c58a3a366a8f", + "archivedReferenceSha256": "8cb2af7ec1ecaa47fcf6deca530bd17ddf670b12922c928592d8dc448eafcb9f", + "width": 900, + "height": 600 + } + ], + "limits": "Historicalreferencebytes remainarchived unchanged; these newcaptures reproducefixture states/names/dimensions, notexact pixels. Timestamps/temp paths/host/fonts can differ; no provider/human/installedrelease/causalperformance claim." +} diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/reproduction-control.json b/docs/reviews/2026-11-12-cf8-visual-reproduction/reproduction-control.json new file mode 100644 index 00000000..74f143f7 --- /dev/null +++ b/docs/reviews/2026-11-12-cf8-visual-reproduction/reproduction-control.json @@ -0,0 +1,226 @@ +{ + "at": "2026-11-12T14:47:25.326979+00:00", + "diagnosticDriver": "8771c3c2d7ef16de9ca12940eac2937119ae69b7", + "source": "18aa43f689227ec7c20dae2751e2292026483dc4", + "sourceTree": "9c2b128ec1c5385a5d8b6252b93d7357e7ef6ffd", + "scope": "Existing canonical14case33image suites from byte-verified source18 export with common pinned installed dependencies; not a historical shipped binary or liveprovider test", + "executionReceiptSha256": "9cddeae02404b49ecdacb881bd761ace32794d20042b1da4a0747df6a2206e6c", + "manifestSha256": "357f572784729297e87a353bdf7dc9f1607c69b13557ef931b4dfb6e8d66fa1f", + "sourceFilesVerified": 1333, + "desktopBuildFilesVerified": 792, + "pass": 14, + "skip": 0, + "retry": 0, + "captureCount": 33, + "allDimensionsMatchOriginal": true, + "beforeAndAfterManifestVerification": true, + "driverAndExportBuildInventory": { + "exportFiles": 792, + "driverFiles": 792, + "changedHashes": [], + "onlyExport": [], + "onlyDriver": [], + "allBytesEqual": true + }, + "images": [ + { + "file": "completed-coven-1440x900.png", + "sha256": "4ef9b8bbb569e7ec1574cf1819e3943530ffff52ed9613243cfcfba4e07f8ce9", + "width": 1440, + "height": 900 + }, + { + "file": "completed-coven-900x600.png", + "sha256": "06f3becc42d13d5a0a23b091a08adc2c895b21648116c6516d6526ecfa02331c", + "width": 900, + "height": 600 + }, + { + "file": "completed-graphite-1440x900.png", + "sha256": "2fb7f9f83de5f8bc861cfe8c91c65b019cd73fbc60df85d60f85a0c2ff7314df", + "width": 1440, + "height": 900 + }, + { + "file": "completed-graphite-900x600.png", + "sha256": "31d0bafdfd65196cb0488e54358a3c4c852532dcb32b13964472164543998bd0", + "width": 900, + "height": 600 + }, + { + "file": "completed-jev-1440x900.png", + "sha256": "d73907349d1c9651d450420439455b10d63e7fbe15aa6e78a8aaa1f02b156d9d", + "width": 1440, + "height": 900 + }, + { + "file": "completed-jev-900x600.png", + "sha256": "356db0fdac2dada69a63f54c1b7cc7ffb5af6f8e9c5ad05e67dd03a610e8edf4", + "width": 900, + "height": 600 + }, + { + "file": "failed-coven-1440x900.png", + "sha256": "62946cf0405e3874e379d8b8174a0949d62bb27826c8f6c5dac53e481828857f", + "width": 1440, + "height": 900 + }, + { + "file": "failed-coven-900x600.png", + "sha256": "ac9974ea1795884a3e78db8bd027f9cee38b26fcddfed2753ec93745e5f9ba4a", + "width": 900, + "height": 600 + }, + { + "file": "failed-graphite-1440x900.png", + "sha256": "ee7bbff18f617b7bf7eacb576e74333ff9a18bc6d97d82c83b82048e0a0b54fa", + "width": 1440, + "height": 900 + }, + { + "file": "failed-graphite-900x600.png", + "sha256": "a97ad9bc93bf0d11e7c41bbc5a23de04f6ca80d5d511965b71d2f87b04ae0ddb", + "width": 900, + "height": 600 + }, + { + "file": "failed-jev-1440x900.png", + "sha256": "f1525e0975383a4bd5e13d3bee4ca68406bf798b960ba34e57a353400f15222c", + "width": 1440, + "height": 900 + }, + { + "file": "failed-jev-900x600.png", + "sha256": "db3badb9281a0b2f7f27ce29c684ca48955724fb9a36c2ade09452946140236a", + "width": 900, + "height": 600 + }, + { + "file": "live-coven-1440x900.png", + "sha256": "2ec146b3ca6c594388e4c592c1634962598d1f38e13864ba4aed1efa98fe5cd2", + "width": 1440, + "height": 900 + }, + { + "file": "live-coven-900x600.png", + "sha256": "b241438e04020b2709426522f77783e1fd285219dd3097d00f204f6105c681f7", + "width": 900, + "height": 600 + }, + { + "file": "live-graphite-1440x900.png", + "sha256": "bcfae9c95c4f429ba52f72279d3e2afcfba1176ead6828d5b4ccd6d90d4e593b", + "width": 1440, + "height": 900 + }, + { + "file": "live-graphite-900x600.png", + "sha256": "dd4477228783fb5ea7d78baec4778e70b0f8071e413bac141e07d30f4d6773a0", + "width": 900, + "height": 600 + }, + { + "file": "live-jev-1440x900.png", + "sha256": "2cf0e80527a99268af6371e77975e3e7f07c1de9cef625ff8665283cde675470", + "width": 1440, + "height": 900 + }, + { + "file": "live-jev-900x600.png", + "sha256": "041b575ba0ac03030239b2a4eb04c098b651cd0d47a0f9b9960370241be347e1", + "width": 900, + "height": 600 + }, + { + "file": "restored-coven-1440x900.png", + "sha256": "f7988c973f70af57378b071294701e58d310002ba2675693bc7acbcbc9d324c2", + "width": 1440, + "height": 900 + }, + { + "file": "restored-coven-900x600.png", + "sha256": "a4ea2b3e86aa5f64564004442f3321de13cff14a7dd351ef24dc18cfade74e60", + "width": 900, + "height": 600 + }, + { + "file": "restored-graphite-1440x900.png", + "sha256": "aad585080d29806c749c236f52c7c68b248820fc8981e7d5e17a2412ae6d2cda", + "width": 1440, + "height": 900 + }, + { + "file": "restored-graphite-900x600.png", + "sha256": "29a8c10aec5b074c7419030afccd7beb9685dafdbff20c55a5bdd9538611d35f", + "width": 900, + "height": 600 + }, + { + "file": "restored-jev-1440x900.png", + "sha256": "1884f132debae100d192b622336bc6db1096d9713923b7b2ef7ae19a4626c8e7", + "width": 1440, + "height": 900 + }, + { + "file": "restored-jev-900x600.png", + "sha256": "c9fe669ee5ff32b28484220ef06d94361861c67d747fd1c10c15afe1e87558c9", + "width": 900, + "height": 600 + }, + { + "file": "typed-turn-coven-900x600.png", + "sha256": "9375b48b4002b6325a04342d2f4cb0424414d130c3ddfb8987083966c643c615", + "width": 900, + "height": 600 + }, + { + "file": "typed-turn-graphite-900x600.png", + "sha256": "29628aea4ec30838e08a92d5531fc1f4b89211d02810cfadc6402c81abc312d8", + "width": 900, + "height": 600 + }, + { + "file": "typed-turn-jev-900x600.png", + "sha256": "dddeda3b72434a18961a57090a9ab3f2925c002bc2eef8a15edde799962203a5", + "width": 900, + "height": 600 + }, + { + "file": "waiting-coven-1440x900.png", + "sha256": "0567acd16e61fb6c07f378b2ecfc1e9ad8517470754a94728eb262cb2917a7ca", + "width": 1440, + "height": 900 + }, + { + "file": "waiting-coven-900x600.png", + "sha256": "6641e8aaae2dd5b2b2f54c9789d0c97ab2e324e29c6a1c0bd2688a86b5cc42dd", + "width": 900, + "height": 600 + }, + { + "file": "waiting-graphite-1440x900.png", + "sha256": "578c0e215812212d5488ea8e480f3a656b217b12bf481ca2a3fe18fd7a281079", + "width": 1440, + "height": 900 + }, + { + "file": "waiting-graphite-900x600.png", + "sha256": "b63db3030c721c0125c173b7f45ac71a22ddbd144930094e31dab27289d97204", + "width": 900, + "height": 600 + }, + { + "file": "waiting-jev-1440x900.png", + "sha256": "2ace6df93bc7a687d15c8d9e4dab12f3918b87ee1241c724ca06058195a1ef01", + "width": 1440, + "height": 900 + }, + { + "file": "waiting-jev-900x600.png", + "sha256": "7f4310614cf17a5647f08fc026b0be2aa9d66dd4b8d05aa8f5f55a0350bb726a", + "width": 900, + "height": 600 + } + ], + "limits": "Pixel bytes need not repeat: source-generated temp repository names, paths, timestamps/durations, font rendering and host context vary. Original inspected33pairs and this new reproduction series remain separate." +} diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-coven-1440x900.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-coven-1440x900.png new file mode 100644 index 00000000..deb1291a Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-coven-1440x900.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-coven-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-coven-900x600.png new file mode 100644 index 00000000..7c05d5bc Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-coven-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-graphite-1440x900.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-graphite-1440x900.png new file mode 100644 index 00000000..47d8c2c8 Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-graphite-1440x900.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-graphite-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-graphite-900x600.png new file mode 100644 index 00000000..7887f1f8 Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-graphite-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-jev-1440x900.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-jev-1440x900.png new file mode 100644 index 00000000..8f021d2e Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-jev-1440x900.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-jev-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-jev-900x600.png new file mode 100644 index 00000000..c77c07d0 Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/completed-jev-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-coven-1440x900.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-coven-1440x900.png new file mode 100644 index 00000000..9a6cf576 Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-coven-1440x900.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-coven-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-coven-900x600.png new file mode 100644 index 00000000..f4e69d64 Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-coven-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-graphite-1440x900.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-graphite-1440x900.png new file mode 100644 index 00000000..6de3206c Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-graphite-1440x900.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-graphite-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-graphite-900x600.png new file mode 100644 index 00000000..2bf62d46 Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-graphite-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-jev-1440x900.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-jev-1440x900.png new file mode 100644 index 00000000..92a0b269 Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-jev-1440x900.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-jev-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-jev-900x600.png new file mode 100644 index 00000000..57e449a5 Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/failed-jev-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-coven-1440x900.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-coven-1440x900.png new file mode 100644 index 00000000..d2dd946a Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-coven-1440x900.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-coven-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-coven-900x600.png new file mode 100644 index 00000000..fa1a5785 Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-coven-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-graphite-1440x900.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-graphite-1440x900.png new file mode 100644 index 00000000..8dc5f2ce Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-graphite-1440x900.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-graphite-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-graphite-900x600.png new file mode 100644 index 00000000..f59d2bdd Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-graphite-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-jev-1440x900.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-jev-1440x900.png new file mode 100644 index 00000000..b884bd0d Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-jev-1440x900.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-jev-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-jev-900x600.png new file mode 100644 index 00000000..ada9b69f Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/live-jev-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/manifest.json b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/manifest.json new file mode 100644 index 00000000..4f14f8fe --- /dev/null +++ b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/manifest.json @@ -0,0 +1,379 @@ +{ + "schema": 1, + "candidateSource": "18aa43f689227ec7c20dae2751e2292026483dc4", + "candidateTree": "9c2b128ec1c5385a5d8b6252b93d7357e7ef6ffd", + "candidateSourceMeaning": "Canonical fixture capture from local source build; not a packaged release or live-provider screenshot", + "referenceSource": "0e674e75237f393b8a1ba712061f5b303a61d5b4", + "referenceManifest": "docs/screenshots/conversation-fidelity/2026-10-22-candidate/manifest.json", + "referenceManifestSha256": "95c7a66a46a8d8404c27f952235e8a575e87cf76073578d30e94f8ccfbf8f7e1", + "captureStartedAt": "2026-11-12T14:11:06.016214+00:00", + "command": "MODEX_SCREENSHOTS=/absolute/private/new-capture-directory pnpm --filter @modex/desktop exec playwright test e2e/conversation-fidelity.spec.ts e2e/typed-turns.spec.ts --workers=1 --retries=0 --max-failures=1", + "preparation": "From an owned helper-created worktree at candidateSource, install pinned pnpm dependencies, run pnpm build, create a new private capture directory, then run command. Canonical fixtures use synthetic CLIs and their own temporary repositories. Preserve first logs/report; do not overwrite a failed run.", + "captureScale": "CSS pixels, 1x; animations disabled by existing capture helper", + "testResult": { + "pass": 14, + "skip": 0, + "retry": 0, + "fail": 0 + }, + "visibleDifferences": [ + { + "scope": "waiting/live at900x600, all3themes", + "observed": "Current approval body is narrower with an inner horizontal JSON scrollbar; initial captured scroll position places part of the Allow Edit heading above the transcript viewport. Approve/Deny controls remain visible in waiting captures. This is a disclosed remaining difference, not demonstrated inability to scroll/read or a passed human review." + }, + { + "scope": "completed/restored at900x600", + "observed": "Current final answer wraps across two lines where reference is one; plan/answer/Note stack positions differ. Both retain reported plan status, the unverified-change caveat and Save/Update Note actions." + }, + { + "scope": "Coven composer", + "observed": "The captured Coven composer outline/focus appearance differs between reference and candidate; static images do not establish focus state, cause, accessibility impact or approval." + }, + { + "scope": "allstates/themes/viewports", + "observed": "Synthetic temp repository/path suffixes and observed durations vary. Wider captures retain the same plan/action/outcome structure; typed-turn captures retain attempt/reasoning-summary/denied-command/final-answer sequence. Themes intentionally differ in shell arrangement and colour." + } + ], + "notClaimed": [ + "Pixel parity, human visual approval, accessibility acceptance or exhaustive visual defect detection", + "Real provider, physical phone, older Companion or packaged/installed release acceptance", + "A new memory/latency budget or a causal comparison of implementation changes" + ], + "files": [ + { + "file": "completed-coven-1440x900.png", + "state": "completed", + "theme": "coven", + "viewport": "1440x900", + "width": 1440, + "height": 900, + "sha256": "151350f5a5833d8cb51c43e5cc7ad7933828e03d81bf4fa09a035912babf5d05", + "referenceSha256": "21e70411b1d801576789b2a4a593a26744c9d05859dfea6d329daa784bc8f127" + }, + { + "file": "completed-coven-900x600.png", + "state": "completed", + "theme": "coven", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "866cb0397bc6daea8bf7d2f585b967615e651b3f4b32f168f769951df805084b", + "referenceSha256": "5c84af450e1374acbce0051effc7e2d854390c6e3558b3bb47a5b74c385b3a00" + }, + { + "file": "completed-graphite-1440x900.png", + "state": "completed", + "theme": "graphite", + "viewport": "1440x900", + "width": 1440, + "height": 900, + "sha256": "215390e584abc897ef7003186f06cbfda810e6348412fa839f5c2898d7786e0e", + "referenceSha256": "5ead77933b34820d7d3b3a209953d991a371c483abfdb2645556a572c8dabfbe" + }, + { + "file": "completed-graphite-900x600.png", + "state": "completed", + "theme": "graphite", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "4a18b0c2a57344e7349db3f81ec73b3fdee2b65b917b0ab63edb157871ccfcbe", + "referenceSha256": "39c44c8fcd0fd5d3cc19f1041e8576620972a343298f784c681ada2e77f0f58b" + }, + { + "file": "completed-jev-1440x900.png", + "state": "completed", + "theme": "jev", + "viewport": "1440x900", + "width": 1440, + "height": 900, + "sha256": "092e9231d54eb2069e1f7b2c916fb81f0a51406b59cd0ad1f4f9b0058b631bc8", + "referenceSha256": "976109468059ded740deb96c3017d238e69e25ffc94e26f0a1656825a9e0a87a" + }, + { + "file": "completed-jev-900x600.png", + "state": "completed", + "theme": "jev", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "d04392a2d4265a17fb2e5150ebd33aa1b4cab7aa1a531c2590964e8bd3f4db4f", + "referenceSha256": "a4359a8d2c07ad46e7cc215b9cf25174b896f9e7456995737057de945b0bb9c6" + }, + { + "file": "failed-coven-1440x900.png", + "state": "failed", + "theme": "coven", + "viewport": "1440x900", + "width": 1440, + "height": 900, + "sha256": "d71ebfa272b59a721ac202b991010aed0a600b258ae49838bf2e67388d4efc3d", + "referenceSha256": "1e066a6c60cee6ab71a8d5dec11b93fd60d0e8e02db52d3aa1f487db53232239" + }, + { + "file": "failed-coven-900x600.png", + "state": "failed", + "theme": "coven", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "77188695f8a779d2d157807da727beb9ba220f000e5dda01353b18b060f8a36a", + "referenceSha256": "215f46411073f8a66f10a098230857a1ebde62664accdd25b0e6263ddd504312" + }, + { + "file": "failed-graphite-1440x900.png", + "state": "failed", + "theme": "graphite", + "viewport": "1440x900", + "width": 1440, + "height": 900, + "sha256": "d2749f28fbd452e597d9f2b15aaae96eeddab054357851270ec8bc4309c3bf0a", + "referenceSha256": "3841dac6fe6fb20f3da23ef0198c8c0e86fe84ba8c06feeb3dedb32adf5c4798" + }, + { + "file": "failed-graphite-900x600.png", + "state": "failed", + "theme": "graphite", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "5e924c640a27447dfe850c269cdb4064b08b97bfa4cddcce81af18f8e780f9b7", + "referenceSha256": "d672598db58bfcdee519612d4cd428ac74e708fea6d5ca893c40013d26dccc4e" + }, + { + "file": "failed-jev-1440x900.png", + "state": "failed", + "theme": "jev", + "viewport": "1440x900", + "width": 1440, + "height": 900, + "sha256": "fd492d807033051dfd6818f5efb377e1f70e80909ae30a29741a32a96782c3ac", + "referenceSha256": "a084e32bdeb20f6effd02ccd9ea88ad3156ad726133acfd2a7d499b721b0c484" + }, + { + "file": "failed-jev-900x600.png", + "state": "failed", + "theme": "jev", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "7eaa828b54ba3fcc5ec40494cad6222a65d6b638f466d454fcd4cc4a7e18143e", + "referenceSha256": "a52ad34fdcd18cc0a2246acf2f14b74a58a13938ecafee702a536c1da7d19450" + }, + { + "file": "live-coven-1440x900.png", + "state": "live", + "theme": "coven", + "viewport": "1440x900", + "width": 1440, + "height": 900, + "sha256": "48c38fb8b8a39a41943276806d3b6ccfd2f23c2c1d421e108060049f6564eff9", + "referenceSha256": "2c432b49e9cc3782c77a574f8a31a9f66246c127026f044680018f2fec5b4aa6" + }, + { + "file": "live-coven-900x600.png", + "state": "live", + "theme": "coven", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "aa460feb6a803863bd8b66b59a3fc03d40a6cd046a09e7ac022d8813b829164e", + "referenceSha256": "f0241d0e1074b02a12d716470f0a4827bb5fa66162336191cdf489650035eca9" + }, + { + "file": "live-graphite-1440x900.png", + "state": "live", + "theme": "graphite", + "viewport": "1440x900", + "width": 1440, + "height": 900, + "sha256": "53fdcbb6841339e2e918c4f0c5a10cf5c76209f641a85b5c1f5ab2704ffaf822", + "referenceSha256": "c5e898c8eae22682b3c0aca2d8110440525a90f828a0ba67b7861e899c657b61" + }, + { + "file": "live-graphite-900x600.png", + "state": "live", + "theme": "graphite", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "0ca9b17548522222d42881d45af6ae72243f22833c833c50e657f4af4d8aeed0", + "referenceSha256": "119163f665f0282c9cc1da616640fbb1f22f6151bcb0515e936e86e47747897d" + }, + { + "file": "live-jev-1440x900.png", + "state": "live", + "theme": "jev", + "viewport": "1440x900", + "width": 1440, + "height": 900, + "sha256": "52836935340d739b7f95e1ef1f9b35f56f2ff816870f304ceb2471daa1a9c278", + "referenceSha256": "9b95341203a0b210064e8314943193627c90ec2ba4dd385f871341d2daeacf86" + }, + { + "file": "live-jev-900x600.png", + "state": "live", + "theme": "jev", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "d7d7aa50e0871c57b3d4951f59cb7bef65bd460cf4340194ec354e6c52d20a72", + "referenceSha256": "f039cdb8b64910c23aa0d1f8d286fc5f13176307785cbe46c07ee30e6df152ee" + }, + { + "file": "restored-coven-1440x900.png", + "state": "restored", + "theme": "coven", + "viewport": "1440x900", + "width": 1440, + "height": 900, + "sha256": "417ae656114801cc44d7f4436ca0db20085b43f5ed340e86049c09cb79f64d37", + "referenceSha256": "0ece5c85ac3cd809af23f3acb2330218502fa88a694e1eec5484308020fdf769" + }, + { + "file": "restored-coven-900x600.png", + "state": "restored", + "theme": "coven", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "fb396ef0d2ae21166dce15a82cbfebb21970211b6a6f1ffcceeb39b28213d99f", + "referenceSha256": "017ab8d47160c4349e3a9ccbb69164fbb650fc072f28e694b9eadb63982fd28d" + }, + { + "file": "restored-graphite-1440x900.png", + "state": "restored", + "theme": "graphite", + "viewport": "1440x900", + "width": 1440, + "height": 900, + "sha256": "c3ae9a59f7a6b6f3320a84f32451925f5bf4907b93a90c027e941289b9e537cc", + "referenceSha256": "d3121a9f1a26aef21b4686070071291dcdc0e2c277bbbe8f0c2caed146347327" + }, + { + "file": "restored-graphite-900x600.png", + "state": "restored", + "theme": "graphite", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "e631796df3669c50fb4892cfe752e85f703276722d0f0eb7cd059ed7b1266dc8", + "referenceSha256": "3cbb56e622092a9cefa2fbca260331513a17f9c57830715eaca6f04e2f383703" + }, + { + "file": "restored-jev-1440x900.png", + "state": "restored", + "theme": "jev", + "viewport": "1440x900", + "width": 1440, + "height": 900, + "sha256": "4d57fa15e24a5277c26c52f1f373f808051b70528a4a623f320cc1a09b006654", + "referenceSha256": "d8d4a199830c7bcd448908d625a6efce3f7b8e048b37025585001a78026f11a5" + }, + { + "file": "restored-jev-900x600.png", + "state": "restored", + "theme": "jev", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "6742aaaf82372ed59f3d66a25d25118227899e097b6b33e42da1fde61bb20aca", + "referenceSha256": "9ec40eedf1fd989c9ea7c543ab88573b086f932740ac064b6286d55d4302385a" + }, + { + "file": "typed-turn-coven-900x600.png", + "state": "typed-turn", + "theme": "coven", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "c85a10bfd259f4cf9f3f4e4d31fc0cf4d437afce7f2ef0defee56fb3040a87fd", + "referenceSha256": "1c1346e082672985b76e81c12d4e0fb1bb8aaf4c0c20300fd8abb6ec81a99cc5" + }, + { + "file": "typed-turn-graphite-900x600.png", + "state": "typed-turn", + "theme": "graphite", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "a3c2373bd757dd0791e4901f5c65104b5e0c968b378d5c137e4aa146552533df", + "referenceSha256": "a18c94345fd239e71be79bfdcdcb90f8d061abe4c3acb2191b57ef81cdb2a1b6" + }, + { + "file": "typed-turn-jev-900x600.png", + "state": "typed-turn", + "theme": "jev", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "52fd2e0ea64dbf70430e58a1532c1dc39c7fe9fb018ce8ce6fd2198c9f93bf55", + "referenceSha256": "3d0ad7d57bdefbcc0377b02a85d9df10b30a59ae45123ff69ef61b1627af839f" + }, + { + "file": "waiting-coven-1440x900.png", + "state": "waiting", + "theme": "coven", + "viewport": "1440x900", + "width": 1440, + "height": 900, + "sha256": "427e0fc86b94975d5f34a5fb55fffaa541325bada4bfaab92e31a7f0568c8501", + "referenceSha256": "4002ac3ae9676673a05af623a5387278702137574f0a4e00d44eec3c49900621" + }, + { + "file": "waiting-coven-900x600.png", + "state": "waiting", + "theme": "coven", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "d53fe1cc9f35ea6f30521973098b0c6386bf33fc631e6e4df2cf4d8133c795fe", + "referenceSha256": "19066d45c12fc61452f18ef044d7241da058a2e9fcb1b62cbb5909f58feadfc1" + }, + { + "file": "waiting-graphite-1440x900.png", + "state": "waiting", + "theme": "graphite", + "viewport": "1440x900", + "width": 1440, + "height": 900, + "sha256": "889c9d69ada1c033c5c30563bdd5d6d57dbc726894bfdb22204bf59d2fe0dce9", + "referenceSha256": "b1343efcee1ad67efb2790384b5e8e3533bb6baf53388142d22f29e50cd89c04" + }, + { + "file": "waiting-graphite-900x600.png", + "state": "waiting", + "theme": "graphite", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "346489ac9b6c6e75f7d6871393f26a45a0974389f3091a1c42fc51f52d8c71b9", + "referenceSha256": "b0450cd77b9b02e44f7d75b16ceef84eafdc9bd2d21a17d681e6a6c95551dcfb" + }, + { + "file": "waiting-jev-1440x900.png", + "state": "waiting", + "theme": "jev", + "viewport": "1440x900", + "width": 1440, + "height": 900, + "sha256": "2c019921b5c02c104cb293259bc338ecc5be998d6bb2bf0727b9a3ec7abf7371", + "referenceSha256": "586e06bbc7603bf776302a6124dc705ddec3802f5a82263b980a3a946318e6a4" + }, + { + "file": "waiting-jev-900x600.png", + "state": "waiting", + "theme": "jev", + "viewport": "900x600", + "width": 900, + "height": 600, + "sha256": "b97c5a152ed3012c15840ea77627c579a09c658594399b63573b73a4208aad88", + "referenceSha256": "8cb2af7ec1ecaa47fcf6deca530bd17ddf670b12922c928592d8dc448eafcb9f" + } + ], + "reproductionControl": "../reproduction-control.json", + "reproductionControlSha256": "6ccc9d925efdfe2a3bde0d7c93d458831d2f2c1e1a0bcda455fe9724f3470231", + "reproductionMethod": "Use the existing prepare-only byte-verified source export, then run canonical capture specs in the exported appDir with ambient MODEX/provider overrides removed. Exact recipe in parent README; no branch reset/switch.", + "historicalReferenceReproductionControl": "../reference-reproduction-control.json", + "historicalReferenceReproductionControlSha256": "71cdaad7fd34191afc30a745e3a69b7e72e803f66e5f841cf5609fc1f61cbdf0" +} diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-coven-1440x900.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-coven-1440x900.png new file mode 100644 index 00000000..f311d64f Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-coven-1440x900.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-coven-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-coven-900x600.png new file mode 100644 index 00000000..31fe98f2 Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-coven-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-graphite-1440x900.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-graphite-1440x900.png new file mode 100644 index 00000000..0c45273a Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-graphite-1440x900.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-graphite-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-graphite-900x600.png new file mode 100644 index 00000000..e0add2ae Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-graphite-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-jev-1440x900.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-jev-1440x900.png new file mode 100644 index 00000000..8e3591de Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-jev-1440x900.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-jev-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-jev-900x600.png new file mode 100644 index 00000000..218cbd04 Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/restored-jev-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/typed-turn-coven-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/typed-turn-coven-900x600.png new file mode 100644 index 00000000..39e47309 Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/typed-turn-coven-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/typed-turn-graphite-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/typed-turn-graphite-900x600.png new file mode 100644 index 00000000..65b9ce59 Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/typed-turn-graphite-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/typed-turn-jev-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/typed-turn-jev-900x600.png new file mode 100644 index 00000000..8df9aa3e Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/typed-turn-jev-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-coven-1440x900.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-coven-1440x900.png new file mode 100644 index 00000000..8d0d5ca3 Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-coven-1440x900.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-coven-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-coven-900x600.png new file mode 100644 index 00000000..6e15dba1 Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-coven-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-graphite-1440x900.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-graphite-1440x900.png new file mode 100644 index 00000000..f842bf2d Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-graphite-1440x900.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-graphite-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-graphite-900x600.png new file mode 100644 index 00000000..24e6e3a8 Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-graphite-900x600.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-jev-1440x900.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-jev-1440x900.png new file mode 100644 index 00000000..9b59cf1b Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-jev-1440x900.png differ diff --git a/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-jev-900x600.png b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-jev-900x600.png new file mode 100644 index 00000000..1515b18f Binary files /dev/null and b/docs/reviews/2026-11-12-cf8-visual-reproduction/screenshots/waiting-jev-900x600.png differ diff --git a/docs/status.md b/docs/status.md index 0f624985..6569bfa7 100644 --- a/docs/status.md +++ b/docs/status.md @@ -76,6 +76,8 @@ site. The landing page's "Try the demo" opens it. See [apps/web](../apps/web/REA - **Model-picker search** (#381, #502). Protected main `bf497f7` has connection/model filtering with exact IDs, retained query/focus through metadata completion, and keyboard return to the filter. Its signed merge exactly matches the reviewed/tested tree; the protected queue passed 2,478 units with 36 skips, 520 desktop E2E cases with eight skips and seven site cases. The separate source iPhone suite passed 43 ordinary cases and one expected-failure selftest; installer/human/admission limits remain. The full #381 preservation and qualification matrix stays open. [Delivery and limits](reviews/2026-11-12-model-search.md). +- **Reproducible CF-8 captures and performance** (#281). The opt-in [procedure](../apps/desktop/bench/README.md) verifies source/build/core/driver identity and retains inputs/first logs. [Unified candidate qualification](reviews/2026-11-12-cf8-reproduction-candidate.md) records twelve retention cases and two canonical performance cases at `8771c3c`, fourteen-case/33-image source-export controls for both historical reference and candidate, exact image hashes and listed visual differences. Source `8771c3c` also passed hosted units/macOS/iPhone/site/web checks with its actual preview tree verified. The combined criterion still needs protected delivery and a literal on-main audit; all other native/provider/device/human/child acceptance remains open, with no release or admission claim. + The published application source is `6a97d23aaea315b29008890f25dde2d7ea07f1d0` (v0.4.1). v0.4.2 is in preparation with Code Review hidden ([review](reviews/2026-11-03-v0.4.2-release-review.md)). Later source deliveries remain unreleased: #462 records local-model context provenance; #461 enforces local-only auxiliary dispatch; #465 refuses known cloud-routed and non-generative models; #463 (`32f1cb4`) defers Markdown far from the view so long threads open fast. Main still does not construct `LocalExecution`; native qualification and product admission remain separate gates. #459, #460 and #464 (`3d72c6e`, the CR-3 acceptance re-run) are evidence/documentation deliveries after the release source. Also unreleased, since that summary: #467 (`8a28df3`) adds the Claude account pool with OrcaRouter keys; #477 (`49aa449`) keeps Code Review links right after a repository rename; #487 (`b785054`) adds CF-3 draft and YOLO regressions; #488 (`68fe543`) adds owner-authorized worktree retirement; #490 (`a4f2f70`) adds the Code Review setting and its gates, and turned Code Review on by default. #492 (`4297235`) turned that default off, because Val chose v0.4.2 with Code Review hidden on 2026-11-03. #468, #470, #472, #473, #474, #476 and #483 are evidence or documentation only. diff --git a/docs/superpowers/plans/2026-11-12-cf8-retention-reproduction.md b/docs/superpowers/plans/2026-11-12-cf8-retention-reproduction.md new file mode 100644 index 00000000..8fa61197 --- /dev/null +++ b/docs/superpowers/plans/2026-11-12-cf8-retention-reproduction.md @@ -0,0 +1,43 @@ +# CF-8 Retention Reproduction Implementation Plan + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. + +**Goal:** Make the already-reviewed historical/current retention measurements reproducible from an owned fresh checkout without private paths, weakening assertions or changing application behavior. + +**Architecture:** Keep the existing three-replicate, 63-open history and 21-stream log workloads and their natural/forced-GC boundaries. A local-only CLI prepares byte-verified source exports at explicit full Git revisions, builds them with the driver's common pinned dependencies, generates the existing-harness driver entry points and writes exclusive durable receipts. Preparation completes before any measurement starts; failures preserve the original logs and inputs without automatic retries. + +**Tech Stack:** Node built-ins, pinned pnpm, existing Playwright/Electron fixtures; no new dependencies. + +**Spec:** #281's reproducible performance/capture acceptance criterion and the exact workload/limits in `docs/reviews/2026-11-12-cf8-retention.md` on pending PR #507; archived first-pass history/log drivers remain the reference input. This tooling slice cannot complete the combined visual/native/human criterion by itself. + +## Global Constraints + +- Three fresh-app replicates per workload/source; three 200-turn/1,400-item histories, three warm opens, 63 measured opens; one warm log stream and 21 measured streams, each 48 deltas and 3 MiB logical output. +- No new timing, memory-ceiling, improvement, leak-freedom, provider, release or acceptance claims. The historical source is rebuilt with common current dependencies; it is not a historical shipped binary. +- Require explicit full source revisions, preserve exact build/source/runtime identities, validate source and build bytes before every app launch, keep output exclusive and retain first failures. +- No real model use, installs/downloads, network-isolation changes, feature activation, global CLI settings or installed-app replacement. All launches use existing private synthetic fixtures. +- Scratch exports/generated drivers stay under owned `apps/desktop/.probes/`; durable requested output is private and retained. Never overwrite an existing output or remove unknown data. + +## Review Focus + +- Existing/symlinked output paths must be refused without changing their contents. +- Invalid source revisions or changed common core dependencies must fail before any build or app launch. +- Tampered source/build files and traversal/symlink manifest entries must fail verification. +- Interrupted preparation and failed measurement must preserve the first failure and cannot silently advance to the next source/workload. +- A source export must never be described as the driver's Git HEAD or as a historically installed release. + +## Task 1: Portable preparation, guarded workloads and reproduction receipt + +**Files:** Create `scripts/cf8-retention.mjs`, `scripts/lib/cf8-retention.mjs`, `scripts/test/cf8-retention.test.mjs`, and `apps/desktop/bench/retention/*`; update the CF-8 review/status documentation in the same delivery PR. + +**Interfaces:** CLI `--output --baseline --current ` prepares both sources and runs all twelve fresh-app cases, serially without retries. `--prepare-only` retains validated build inputs without launching; `--verify ` rechecks retained source/build/dependency identity without executing code; `--help` has no side effects. Per-source manifests record role, source SHA/tree, app version, source/build hashes, common dependency identity and generated-driver identity. Every measurement binds to that manifest and records the actual diagnostic driver revision separately. + +- [ ] Write process-level failing tests for absent CLI help, exclusive output/source-identity refusal and offline manifest tamper/traversal/symlink rejection; observe RED before implementing each behavior. +- [ ] Implement strict arguments, exclusive private output/scratch creation, Git source export/hash guards, unchanged common-core/dependency checks and sequential logged desktop builds. No shell-interpolated commands or destructive cleanup. +- [ ] Port the reviewed fixture/history/log code with output/source/support imports parameterized; preserve positive workload/call-count/output assertions, legacy negative control and GC timing. Keep these opt-in benchmark files outside the ordinary E2E test directory. +- [ ] Run focused tests, fresh build/typecheck/full units, then one complete twelve-case historical/current reproduction on the named host. Preserve the first failure and diagnose it before any separately recorded further invocation. +- [ ] Compare portable receipts/workload identity to the original archived runs, inspect all terminal statuses/source guards and obtain independent review of the complete branch. Commit signed, push, qualify and deliver through protection; retain all unmet #281 criteria. + +Expected: focused guards pass, full checks pass with exact counts/skips, all twelve benchmark cases return complete observations and app-close outcomes at their manifest-bound sources; failures remain explicit and do not count as passes. + +Execution method: native implementation in this session, within the existing goal's authorized verification-tooling scope; no new product decision or activation is made. diff --git a/scripts/cf8-retention.mjs b/scripts/cf8-retention.mjs new file mode 100644 index 00000000..4ced506d --- /dev/null +++ b/scripts/cf8-retention.mjs @@ -0,0 +1,18 @@ +#!/usr/bin/env node +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import { assertNewPath, parseArguments, verifyManifest, prepareRetention, runPreparedWorkloads } from "./lib/cf8-retention.mjs"; +const help = `Reproduce the CF-8 retention workloads with common current pinned dependencies. + +Usage: node scripts/cf8-retention.mjs --output --baseline --current [--prepare-only] + node scripts/cf8-retention.mjs --verify + node scripts/cf8-retention.mjs --help + +Source exports are rebuilt, not historical shipped binaries. Measurements are descriptive. +`; +try { + const args = parseArguments(process.argv.slice(2)); + if (args.help) process.stdout.write(help); + else if (args.verify) { verifyManifest(args.verify); process.stdout.write("Verified retained source/build/dependency files; no workload launched.\n"); } + else { assertNewPath(args.output); const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); const prepared = prepareRetention({ repoRoot: root, ...args }); const result = args.prepareOnly ? prepared : runPreparedWorkloads({ repoRoot: root, prepared }); process.stdout.write(JSON.stringify(result) + "\n"); } +} catch (error) { process.stderr.write(String(error.message) + "\n"); process.exitCode = Number.isInteger(error.exitCode) ? error.exitCode : 1; } diff --git a/scripts/lib/cf8-retention.mjs b/scripts/lib/cf8-retention.mjs new file mode 100644 index 00000000..6a617b92 --- /dev/null +++ b/scripts/lib/cf8-retention.mjs @@ -0,0 +1,315 @@ +import fs from "node:fs"; +import path from "node:path"; +import crypto from "node:crypto"; +import { execFileSync, spawnSync } from "node:child_process"; +import { fileURLToPath } from "node:url"; + +export const sha256 = bytes => crypto.createHash("sha256").update(bytes).digest("hex"); +const revision = value => typeof value === "string" && /^[0-9a-f]{40}$/.test(value); +const hash = value => typeof value === "string" && /^[0-9a-f]{64}$/.test(value); +export function assertNewPath(target) { + try { fs.lstatSync(target); } catch (error) { if (error.code === "ENOENT") return; throw error; } + throw new Error("Output path already exists; choose a new private directory."); +} +export function parseArguments(args) { + if (args.length === 1 && args[0] === "--help") return { help: true }; + const out = {}; + for (let i = 0; i < args.length; i++) { + const flag = args[i]; + if (!["--output", "--baseline", "--current", "--verify", "--prepare-only"].includes(flag) || Object.hasOwn(out, flag.slice(2))) throw new Error(`Unknown or duplicate retention argument: ${flag}`); + if (flag === "--prepare-only") { out["prepare-only"] = true; continue; } + const value = args[++i]; + if (!value || value.startsWith("--")) throw new Error(`Missing value for ${flag}`); + out[flag.slice(2)] = value; + } + if (out.verify) { + if (Object.keys(out).length !== 1) throw new Error("--verify cannot be combined with workload arguments."); + return { verify: path.resolve(out.verify) }; + } + if (!out.output || !revision(out.baseline) || !revision(out.current)) throw new Error("Specify --output and a full 40-character Git revision for both --baseline and --current."); + return { output: path.resolve(out.output), baseline: out.baseline, current: out.current, prepareOnly: out["prepare-only"] === true }; +} +function regularFile(root, relative) { + if (typeof relative !== "string" || !relative || relative.includes("\\") || path.isAbsolute(relative) || relative.split("/").some(part => !part || part === "." || part === "..")) throw new Error("Unsafe manifest path."); + let cursor = root; + for (const part of relative.split("/")) { + cursor = path.join(cursor, part); + if (fs.lstatSync(cursor).isSymbolicLink()) throw new Error(`Manifest symlink refused: ${relative}`); + } + if (!fs.statSync(cursor).isFile()) throw new Error(`Manifest entry is not a regular file: ${relative}`); + return cursor; +} +function verifyFiles(root, entries, label) { + if (!Array.isArray(entries) || entries.length === 0) throw new Error(`Missing ${label} file manifest.`); + const seen = new Set(); + for (const entry of entries) { + if (!entry || !hash(entry.sha256) || seen.has(entry.path)) throw new Error(`Invalid ${label} manifest entry.`); + const file = regularFile(root, entry.path); seen.add(entry.path); + if (entry.mode !== undefined && (!["100644", "100755"].includes(entry.mode) || ((fs.statSync(file).mode & 0o111) !== 0) !== (entry.mode === "100755"))) throw new Error(`${label} mode mismatch: ${entry.path}`); + if (sha256(fs.readFileSync(file)) !== entry.sha256) throw new Error(`${label} hash mismatch: ${entry.path}`); + } +} +export function verifyManifest(file, expectedSha256) { + const bytes = fs.readFileSync(file); + if (expectedSha256 !== undefined && (!hash(expectedSha256) || sha256(bytes) !== expectedSha256)) throw new Error("Manifest identity hash mismatch."); + const manifest = JSON.parse(bytes.toString("utf8")); + if (manifest.schema !== 1 || !["baseline", "current"].includes(manifest.role) || !revision(manifest.source?.sha) || !revision(manifest.source?.tree) || !revision(manifest.driver?.head)) throw new Error("Invalid retained source identity manifest."); + for (const root of [manifest.source.root, manifest.dependencies?.root]) if (typeof root !== "string" || !path.isAbsolute(root) || !fs.lstatSync(root).isDirectory() || fs.lstatSync(root).isSymbolicLink()) throw new Error("Invalid retained manifest root."); + verifyFiles(manifest.source.root, manifest.source.files, "Source"); + verifyFiles(manifest.source.root, manifest.build?.files, "Build"); + const lock = regularFile(manifest.dependencies.root, "pnpm-lock.yaml"); + if (!hash(manifest.dependencies.lockSha256) || sha256(fs.readFileSync(lock)) !== manifest.dependencies.lockSha256) throw new Error("Dependency lock hash mismatch."); + if (!manifest.dependencies.coreBinding) throw new Error("Missing desktop core binding."); + verifyFiles(manifest.dependencies.root, manifest.dependencies.coreFiles, "Dependency core build"); + const actualCore = resolveDesktopCoreBinding(manifest.dependencies.root); + for (const key of ["root", "aliasPath", "packagePath", "packageSha256", "entryPath", "entrySha256"]) if (actualCore[key] !== manifest.dependencies.coreBinding[key]) throw new Error("Desktop core binding identity mismatch: " + key); + if (!Array.isArray(manifest.dependencies.links)) throw new Error("Missing dependency links."); + for (const link of manifest.dependencies.links) if (typeof link.path !== "string" || typeof link.realPath !== "string" || fs.realpathSync(link.path) !== link.realPath) throw new Error("Dependency link identity mismatch."); + if (!Array.isArray(manifest.driver.files) || manifest.driver.files.length === 0) throw new Error("Missing driver manifest."); + const driverPaths = new Set(); + for (const entry of manifest.driver.files) { + if (typeof entry.path !== "string" || !path.isAbsolute(entry.path) || path.resolve(entry.path) !== entry.path || !hash(entry.sha256) || driverPaths.has(entry.path)) throw new Error("Unsafe driver path or invalid driver identity."); + const relative = path.relative(manifest.dependencies.root, entry.path); + if (!relative || path.isAbsolute(relative) || relative === ".." || relative.startsWith(".." + path.sep)) throw new Error("Unsafe driver path outside the declared driver root."); + let file; + try { file = regularFile(manifest.dependencies.root, relative); } catch (error) { throw new Error("Driver " + error.message); } + driverPaths.add(entry.path); + if (sha256(fs.readFileSync(file)) !== entry.sha256) throw new Error("Driver hash mismatch."); + } + return manifest; +} + +export function resolveSourceRevision(repoRoot, ref) { + if (!revision(ref)) throw new Error("A full 40-character Git revision is required."); + try { + const actual = execFileSync("git", ["rev-parse", "--verify", ref + "^{commit}"], { cwd: repoRoot, encoding: "utf8", stdio: ["ignore", "pipe", "pipe"] }).trim(); + if (actual !== ref) throw new Error("not a commit identity"); + return { sha: actual, tree: execFileSync("git", ["rev-parse", actual + "^{tree}"], { cwd: repoRoot, encoding: "utf8" }).trim() }; + } catch { throw new Error("Source revision is unavailable or is not the exact commit; fetch the explicit source commit first."); } +} + +export function assertCommonCore(repoRoot, refs) { + if (!Array.isArray(refs) || refs.length < 2 || refs.some(ref => !revision(ref))) throw new Error("Explicit source commits are required for common core verification."); + const trees = refs.map(ref => execFileSync("git", ["rev-parse", "--verify", ref + ":packages/core"], { cwd: repoRoot, encoding: "utf8", stdio: ["ignore", "pipe", "pipe"] }).trim()); + if (trees.some(tree => tree !== trees[0])) throw new Error("Common dependency core source differs between measured and driver commits; prepare matching independent dependencies instead."); + return trees[0]; +} + +export function exportSource({ repoRoot, ref, destination }) { + assertNewPath(destination); + const identity = resolveSourceRevision(repoRoot, ref); + const listing = execFileSync("git", ["ls-tree", "-r", "--full-tree", "-z", ref], { cwd: repoRoot, encoding: "utf8", maxBuffer: 64 * 1024 * 1024 }); + const entries = listing.split("\0").filter(Boolean).map(line => { + const match = /^(100644|100755) blob ([0-9a-f]{40})\t(.+)$/s.exec(line); + if (!match) throw new Error("Unsupported source entry; only regular Git blob files can be measured."); + const [, mode, blob, name] = match; + if (path.isAbsolute(name) || name.includes("\\") || name.split("/").some(part => !part || part === "." || part === "..")) throw new Error("Unsafe source export path."); + return { mode, blob, path: name }; + }); + if (!entries.length) throw new Error("Missing source files."); + const archive = execFileSync("git", ["archive", "--format=tar", ref], { cwd: repoRoot, maxBuffer: 256 * 1024 * 1024 }); + fs.mkdirSync(destination, { mode: 0o700 }); + execFileSync("tar", ["-xf", "-", "-C", destination], { input: archive, stdio: ["pipe", "pipe", "pipe"] }); + const files = entries.map(entry => { + const file = regularFile(destination, entry.path), bytes = fs.readFileSync(file); + const actualBlob = crypto.createHash("sha1").update(Buffer.from(`blob ${bytes.length}\0`)).update(bytes).digest("hex"); + if (actualBlob !== entry.blob) throw new Error(`Exported source does not match Git blob: ${entry.path}`); + const executable = (fs.statSync(file).mode & 0o111) !== 0; + if (executable !== (entry.mode === "100755")) throw new Error(`Exported source mode mismatch: ${entry.path}`); + return { ...entry, sha256: sha256(bytes), bytes: bytes.length }; + }); + return { ...identity, root: destination, archiveSha256: sha256(archive), files }; +} + +export function runLogged({ command, args, cwd, log, env = process.env }) { + const fd = fs.openSync(log, "wx", 0o600), startedAt = new Date().toISOString(); + let result; + try { + result = spawnSync(command, args, { cwd, env, stdio: ["ignore", fd, fd], windowsHide: true }); + if (result.error) fs.writeSync(fd, String(result.error.message) + "\n"); + } finally { fs.closeSync(fd); } + return { command, args, cwd, log, startedAt, finishedAt: new Date().toISOString(), exit: result.status ?? 1, rawStatus: result.status, signal: result.signal, executionError: result.error?.code ?? null, sha256: sha256(fs.readFileSync(log)) }; +} + +function collectFiles(root, relative) { + const result = []; + const visit = name => { + const file = path.join(root, name), stat = fs.lstatSync(file); + if (stat.isSymbolicLink()) throw new Error(`Unexpected build symlink: ${name}`); + if (stat.isDirectory()) { for (const child of fs.readdirSync(file).sort()) visit(name + "/" + child); } + else if (stat.isFile()) result.push({ path: name, sha256: sha256(fs.readFileSync(file)), bytes: stat.size, mode: (stat.mode & 0o111) ? "100755" : "100644" }); + else throw new Error(`Unsupported build entry: ${name}`); + }; + visit(relative); + if (!result.length) throw new Error(`Missing built files: ${relative}`); + return result; +} + +/** Only local source/build preparation. The separate workload phase starts after this returns. */ +export function prepareRetention({ repoRoot, output, baseline, current }) { + assertNewPath(output); + const refs = { baseline: resolveSourceRevision(repoRoot, baseline), current: resolveSourceRevision(repoRoot, current) }; + const driverHead = execFileSync("git", ["rev-parse", "HEAD"], { cwd: repoRoot, encoding: "utf8" }).trim(); + const commonCoreTree = assertCommonCore(repoRoot, [baseline, current, driverHead]); + const coreDirty = execFileSync("git", ["status", "--porcelain", "--untracked-files=all", "--", "packages/core"], { cwd: repoRoot, encoding: "utf8" }); + if (coreDirty.trim()) throw new Error("Common dependency core has working changes; preserve them and use a clean owned driver checkout."); + resolveDesktopCoreBinding(repoRoot, { requireBuilt: false }); + for (const identity of Object.values(refs)) { + for (const file of ["apps/desktop/package.json", "apps/desktop/e2e/support.ts", "apps/desktop/vite.config.ts"]) { + try { execFileSync("git", ["cat-file", "-e", identity.sha + ":" + file], { cwd: repoRoot, stdio: ["ignore", "pipe", "pipe"] }); } + catch { throw new Error(`Required desktop source is absent at the explicit commit: ${file}`); } + } + } + if (process.platform !== "darwin") throw new Error("These named-Mac retention workloads currently require macOS; offline --verify is available separately."); + execFileSync("bash", [path.join(repoRoot, "scripts/worktree.sh"), "check"], { cwd: repoRoot, stdio: ["ignore", "pipe", "pipe"] }); + const probes = path.join(repoRoot, "apps/desktop/.probes"); + try { if (!fs.lstatSync(probes).isDirectory() || fs.lstatSync(probes).isSymbolicLink()) throw new Error("Scratch root must be an owned real directory."); } + catch (error) { if (error.code !== "ENOENT") throw error; fs.mkdirSync(probes, { mode: 0o700 }); } + fs.mkdirSync(output, { mode: 0o700 }); + const scratch = fs.mkdtempSync(path.join(probes, "cf8-retention-")); fs.chmodSync(scratch, 0o700); + const stateFile = path.join(output, "preparation.json"), state = { schema: 1, startedAt: new Date().toISOString(), state: "preparing", driverHead, driverHeadMeaning: "Diagnostic checkout HEAD; actual driver file hashes are recorded separately, including uncommitted work", commonCoreTree, output, scratch, commands: [], sources: [] }; + const persist = () => fs.writeFileSync(stateFile, JSON.stringify(state, null, 2) + "\n", { mode: 0o600 }); persist(); + const env = { ...process.env }; + for (const key of Object.keys(env)) if (key.startsWith("MODEX_")) delete env[key]; + const run = (label, command, args, cwd) => { + state.phase = label; persist(); process.stdout.write(`[retention] ${label}\n`); + const result = runLogged({ command, args, cwd, env, log: path.join(output, label + ".log") }); state.commands.push(result); persist(); + if (result.exit !== 0) { const error = new Error(`${label} failed with original exit ${result.exit}; retained ${result.log}`); error.exitCode = result.exit; throw error; } + return result; + }; + try { + run("common-core-build", "pnpm", ["--filter", "@modex/core", "build"], repoRoot); + const dependencies = { root: repoRoot, lockSha256: sha256(fs.readFileSync(path.join(repoRoot, "pnpm-lock.yaml"))), commonCoreTree, coreFiles: collectFiles(repoRoot, "packages/core/dist"), coreBinding: resolveDesktopCoreBinding(repoRoot), links: [] }; + const toolFiles = ["scripts/cf8-retention.mjs", "scripts/lib/cf8-retention.mjs"]; + if (fs.existsSync(path.join(repoRoot, "apps/desktop/bench/retention"))) toolFiles.push(...collectFiles(repoRoot, "apps/desktop/bench/retention").map(x => x.path)); + const driver = { head: driverHead, workingTreeDirty: execFileSync("git", ["status", "--porcelain=v1", "--untracked-files=all"], { cwd: repoRoot, encoding: "utf8" }).trim().length !== 0, fileHashMeaning: "Actual driver bytes are bound separately; checkout HEAD is not a claim that uncommitted files belong to that commit", node: process.version, files: toolFiles.map(name => ({ path: path.join(repoRoot, name), sha256: sha256(fs.readFileSync(path.join(repoRoot, name))) })) }; + for (const role of ["baseline", "current"]) { + const destination = path.join(scratch, role), source = exportSource({ repoRoot, ref: refs[role].sha, destination }); + const links = linkCommonDependencies({ repoRoot, destination }); + const appDir = path.join(destination, "apps/desktop"), appPackage = JSON.parse(fs.readFileSync(path.join(appDir, "package.json"), "utf8")); + run(role + "-desktop-build", "pnpm", ["run", "build"], appDir); + verifyFiles(source.root, source.files, "Source"); + const driverParent = path.join(scratch, "drivers"); fs.mkdirSync(driverParent, { recursive: true, mode: 0o700 }); + const generated = createWorkloadDrivers({ templateDir: path.join(repoRoot, "apps/desktop/bench/retention"), destination: path.join(driverParent, role), targetAppDir: appDir, libraryFile: path.join(repoRoot, "scripts/lib/cf8-retention.mjs") }); + const manifest = { schema: 1, role, source, appDir, appVersion: appPackage.version, build: { files: collectFiles(destination, "apps/desktop/dist") }, dependencies: { ...dependencies, links }, driver: { ...driver, directory: generated.directory, files: [...driver.files, ...generated.files] }, kind: "Byte-verified source export rebuilt with common current pinned dependencies, not a historical shipped binary" }; + const manifestFile = path.join(output, role + "-manifest.json"); fs.writeFileSync(manifestFile, JSON.stringify(manifest, null, 2) + "\n", { flag: "wx", mode: 0o600 }); verifyManifest(manifestFile); + state.sources.push({ role, sha: source.sha, tree: source.tree, appVersion: appPackage.version, manifest: manifestFile, manifestSha256: sha256(fs.readFileSync(manifestFile)) }); persist(); + } + state.state = "prepared"; state.finishedAt = new Date().toISOString(); persist(); + return { output, scratch, sources: state.sources }; + } catch (error) { + state.state = "failed"; state.failure = String(error.message); state.finishedAt = new Date().toISOString(); persist(); throw error; + } +} + +export function linkCommonDependencies({ repoRoot, destination }) { + const links = []; + for (const relative of ["node_modules", "apps/desktop/node_modules"]) { + const installed = path.join(repoRoot, relative), link = path.join(destination, relative); + if (!fs.existsSync(installed)) throw new Error(`Missing pinned installed dependencies: ${relative}`); + fs.symlinkSync(fs.realpathSync(installed), link, "dir"); links.push({ path: link, realPath: fs.realpathSync(installed) }); + } + return links; +} + +export function createWorkloadDrivers({ templateDir, destination, targetAppDir, libraryFile }) { + assertNewPath(destination); + const files = collectFiles(templateDir, "."); + const expected = ["history.spec.ts", "stream.spec.ts", "source-guard.ts", "target-support.ts", "playwright.config.ts"]; + if (expected.some(name => !files.some(file => path.normalize(file.path) === name))) throw new Error("Incomplete retention driver templates."); + const sourceImport = 'from "../../../../scripts/lib/cf8-retention.mjs"'; + const guard = fs.readFileSync(path.join(templateDir, "source-guard.ts"), "utf8"); + if (guard.split(sourceImport).length !== 2) throw new Error("Retention source-guard import is not the expected single binding."); + const targetImport = 'from "../../e2e/support"'; + const support = fs.readFileSync(path.join(templateDir, "target-support.ts"), "utf8"); + if (support.split(targetImport).length !== 2) throw new Error("Retention target-support import is not the expected single binding."); + fs.mkdirSync(destination, { mode: 0o700 }); + for (const file of files) { + const target = path.join(destination, file.path); fs.mkdirSync(path.dirname(target), { recursive: true, mode: 0o700 }); + let bytes = fs.readFileSync(path.join(templateDir, file.path)); + if (path.normalize(file.path) === "target-support.ts") bytes = Buffer.from(support.replace(targetImport, "from " + JSON.stringify(path.join(targetAppDir, "e2e/support.ts")))); + if (path.normalize(file.path) === "source-guard.ts") bytes = Buffer.from(guard.replace(sourceImport, "from " + JSON.stringify(libraryFile))); + fs.writeFileSync(target, bytes, { flag: "wx", mode: 0o600 }); + } + return { directory: destination, files: collectFiles(destination, ".").map(file => ({ path: path.resolve(destination, file.path), sha256: file.sha256 })) }; +} + +export function workloadEnvironment() { + const env = { ...process.env }; + for (const key of Object.keys(env)) if (key.startsWith("MODEX_")) delete env[key]; + env.MODEX_KEEP_TEST_TMP = "1"; + for (const key of ["OPENAI_API_KEY", "ANTHROPIC_API_KEY", "ANTHROPIC_AUTH_TOKEN", "JEV_API_KEY", "TYPESAFE_API_KEY", "GH_TOKEN", "GITHUB_TOKEN", "OPENAI_BASE_URL", "ANTHROPIC_BASE_URL"]) delete env[key]; + return env; +} + +export function runPreparedWorkloads({ repoRoot, prepared }) { + const state = { schema: 1, startedAt: new Date().toISOString(), state: "running", order: ["current", "baseline"], commands: [], sources: [], limits: "Descriptive source-rebuild experiments; no provider, universal memory, latency improvement, leak-freedom, native platform or human acceptance claim" }; + const receipt = path.join(prepared.output, "workloads.json"); assertNewPath(receipt); + const persist = () => fs.writeFileSync(receipt, JSON.stringify(state, null, 2) + "\n", { mode: 0o600 }); persist(); + try { + for (const role of state.order) { + const source = prepared.sources.find(entry => entry.role === role); + if (!source) throw new Error(`Prepared source is absent: ${role}`); + const manifest = verifyManifest(source.manifest, source.manifestSha256); + const output = path.join(prepared.output, role); assertNewPath(output); fs.mkdirSync(output, { mode: 0o700 }); + const fixtureRoot = path.join(output, "fixtures"); fs.mkdirSync(fixtureRoot, { mode: 0o700 }); + state.activeRole = role; state.activeFixtureRoot = fixtureRoot; persist(); + const env = { ...workloadEnvironment(), MODEX_RETENTION_FIXTURE_ROOT: fixtureRoot, MODEX_RETENTION_MANIFEST: source.manifest, MODEX_RETENTION_MANIFEST_SHA256: source.manifestSha256, MODEX_RETENTION_OUTPUT: output }; + const config = path.join(manifest.driver.directory, "playwright.config.ts"); + const discovery = runLogged({ command: "pnpm", args: ["exec", "playwright", "test", "--config", config, "--list"], cwd: path.join(repoRoot, "apps/desktop"), env, log: path.join(output, "list-first.log") }); state.commands.push(discovery); persist(); + if (discovery.exit !== 0) { const error = new Error(`${role} discovery failed before app launch with original exit ${discovery.exit}; retained ${discovery.log}`); error.exitCode = discovery.exit; throw error; } + const discoveryReport = path.join(output, "report.json"); + if (fs.existsSync(discoveryReport)) fs.copyFileSync(discoveryReport, path.join(output, "list-report.json"), fs.constants.COPYFILE_EXCL); + verifyManifest(source.manifest, source.manifestSha256); + process.stdout.write(`[retention] ${role}: six fresh-app cases, no retries\n`); + const result = runLogged({ command: "pnpm", args: ["exec", "playwright", "test", "--config", path.join(manifest.driver.directory, "playwright.config.ts")], cwd: path.join(repoRoot, "apps/desktop"), env, log: path.join(output, "first.log") }); state.commands.push(result); persist(); + if (result.exit !== 0) { const error = new Error(`${role} measurement failed with original exit ${result.exit}; retained ${result.log}`); error.exitCode = result.exit; throw error; } + const report = JSON.parse(fs.readFileSync(path.join(output, "report.json"), "utf8")); + if (report.stats?.expected !== 6 || report.stats.unexpected !== 0 || report.stats.skipped !== 0 || report.stats.flaky !== 0 || report.errors?.length) throw new Error(`Incomplete or nonpassing ${role} measurement report.`); + const observations = []; + for (const kind of ["history", "stream"]) for (let replicate = 1; replicate <= 3; replicate++) { + const file = path.join(output, `${kind}-${replicate}.json`), observation = JSON.parse(fs.readFileSync(file, "utf8")); + if (observation.state !== "observations-complete" || observation.appClose !== "returned" || observation.sourceHead !== manifest.source.sha || observation.samples?.length !== (kind === "history" ? 63 : 21)) throw new Error(`Incomplete ${role}/${kind}/${replicate} observation.`); + for (const key of ["home", "repo"]) { + const retained = observation.fixture?.[key]; + if (typeof retained !== "string" || !fs.lstatSync(retained).isDirectory() || fs.lstatSync(retained).isSymbolicLink() || path.dirname(fs.realpathSync(retained)) !== fs.realpathSync(fixtureRoot)) throw new Error(`Missing or unbound retained ${role}/${kind}/${replicate}/${key} input.`); + } + if (!fs.existsSync(path.join(observation.fixture.home, "app/state.json")) || !fs.existsSync(path.join(observation.fixture.repo, "README.md"))) throw new Error(`Retained fixture state is incomplete: ${role}/${kind}/${replicate}`); + observations.push({ kind, replicate, file, sha256: sha256(fs.readFileSync(file)), retainedFixture: observation.fixture }); + } + verifyManifest(source.manifest, source.manifestSha256); + state.sources.push({ role, source: manifest.source.sha, reportSha256: sha256(fs.readFileSync(path.join(output, "report.json"))), passed: 6, skipped: 0, retries: 0, observations }); persist(); + } + state.state = "observations-complete"; state.finishedAt = new Date().toISOString(); persist(); return state; + } catch (error) { state.state = "failed"; state.failure = String(error.message); state.finishedAt = new Date().toISOString(); persist(); throw error; } +} + +/** Resolve metadata only: never import or execute the installed core module. */ +export function resolveDesktopCoreBinding(repoRoot, { requireBuilt = true } = {}) { + try { + const root = fs.realpathSync(path.join(repoRoot, "packages/core")); + const aliasPath = path.resolve(repoRoot, "apps/desktop/node_modules/@modex/core"); + if (fs.realpathSync(aliasPath) !== root) throw new Error("desktop dependency resolves to a different common core"); + const packagePath = regularFile(root, "package.json"), packageBytes = fs.readFileSync(packagePath); + if (JSON.parse(packageBytes.toString("utf8")).name !== "@modex/core") throw new Error("unexpected core package metadata"); + const resolved = execFileSync(process.execPath, ["--input-type=module", "--eval", 'process.stdout.write(import.meta.resolve("@modex/core"))'], { cwd: path.join(repoRoot, "apps/desktop"), encoding: "utf8", stdio: ["ignore", "pipe", "pipe"] }); + const candidate = fileURLToPath(resolved); + const physicalAlias = path.join(fs.realpathSync(path.dirname(aliasPath)), path.basename(aliasPath)); + let relative; + for (const base of [root, aliasPath, physicalAlias]) { + const part = path.relative(base, candidate); + if (part && !path.isAbsolute(part) && part !== ".." && !part.startsWith(".." + path.sep)) { relative = part; break; } + } + if (!relative || relative.split(path.sep)[0] !== "dist") throw new Error("core entry is outside its bound compiled directory"); + const entryPath = path.join(root, relative); + let cursor = root, missing = false; + for (const part of relative.split(path.sep)) { + cursor = path.join(cursor, part); + try { if (fs.lstatSync(cursor).isSymbolicLink()) throw new Error("core entry contains a symlink"); } + catch (error) { if (error.code !== "ENOENT") throw error; missing = true; break; } + } + if (missing && requireBuilt) throw new Error("core entry has not been built"); + if (!missing && !fs.statSync(entryPath).isFile()) throw new Error("core entry is not a regular file"); + return { root, aliasPath, packagePath, packageSha256: sha256(packageBytes), entryPath, entrySha256: missing ? null : sha256(fs.readFileSync(entryPath)) }; + } catch (error) { throw new Error("Desktop core binding is invalid: " + error.message); } +} diff --git a/scripts/test/cf8-retention.test.mjs b/scripts/test/cf8-retention.test.mjs new file mode 100644 index 00000000..9f3db0b4 --- /dev/null +++ b/scripts/test/cf8-retention.test.mjs @@ -0,0 +1,263 @@ +import test from "node:test"; +import assert from "node:assert/strict"; +import { spawnSync } from "node:child_process"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; + +const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../.."); +const cli = path.join(root, "scripts/cf8-retention.mjs"); + +test("retention CLI describes explicit sources and offline verification without starting a workload", () => { + const result = spawnSync(process.execPath, [cli, "--help"], { encoding: "utf8", cwd: root }); + assert.equal(result.status, 0, result.stderr); + for (const flag of ["--baseline", "--current", "--output", "--prepare-only", "--verify"]) assert.ok(result.stdout.includes(flag), flag); + assert.match(result.stdout, /common.*dependencies/i); +}); + +import fs from "node:fs"; +import os from "node:os"; +import crypto from "node:crypto"; +const digest = text => crypto.createHash("sha256").update(text).digest("hex"); +const invoke = args => spawnSync(process.execPath, [cli, ...args], { encoding: "utf8", cwd: root }); +function temporary(t) { + const dir = fs.mkdtempSync(path.join(os.tmpdir(), "modex-retention-guard-")); + t.after(() => fs.rmSync(dir, { recursive: true, force: true })); + return dir; +} +function manifestFixture(t) { + const dir = temporary(t), source = path.join(dir, "source"), dependencies = path.join(dir, "dependencies"); + fs.mkdirSync(path.join(source, "apps/desktop/dist"), { recursive: true }); + fs.mkdirSync(dependencies); + const driverDir = path.join(dependencies, "driver"); fs.mkdirSync(driverDir); + fs.writeFileSync(path.join(driverDir, "entry.mjs"), 'import { value } from "./neighbor.mjs"; export { value };\n'); + fs.writeFileSync(path.join(driverDir, "neighbor.mjs"), 'export const value = "bound";\n'); + fs.writeFileSync(path.join(dependencies, "pnpm-lock.yaml"), "pinned fixture lock\n"); + const core = path.join(dependencies, "packages/core"), alias = path.join(dependencies, "apps/desktop/node_modules/@modex/core"); + fs.mkdirSync(path.join(core, "dist/src"), { recursive: true }); fs.mkdirSync(path.dirname(alias), { recursive: true }); + fs.writeFileSync(path.join(dependencies, "apps/desktop/package.json"), '{"name":"desktop-fixture","type":"module"}'); + const packageText = '{"name":"@modex/core","type":"module","main":"./dist/src/index.js","exports":{".":{"default":"./dist/src/index.js"}}}'; + const entryText = 'export const core = 1;\n'; fs.writeFileSync(path.join(core, "package.json"), packageText); fs.writeFileSync(path.join(core, "dist/src/index.js"), entryText); fs.symlinkSync(core, alias, "dir"); + const coreBinding = { root: fs.realpathSync(core), aliasPath: path.resolve(alias), packagePath: fs.realpathSync(path.join(core, "package.json")), packageSha256: digest(packageText), entryPath: fs.realpathSync(path.join(core, "dist/src/index.js")), entrySha256: digest(entryText) }; + + const files = [["apps/desktop/package.json", '{"version":"0.2.0"}\n'], ["apps/desktop/dist/main.js", 'throw new Error("verification must not execute this file");\n']]; + for (const [name, text] of files) fs.writeFileSync(path.join(source, name), text); + const manifest = { schema: 1, role: "baseline", source: { sha: "a".repeat(40), tree: "b".repeat(40), root: source, files: [{ path: files[0][0], sha256: digest(files[0][1]) }] }, build: { files: [{ path: files[1][0], sha256: digest(files[1][1]) }] }, dependencies: { root: dependencies, lockSha256: digest("pinned fixture lock\n"), links: [], coreFiles: [{ path: "packages/core/dist/src/index.js", sha256: digest(entryText) }], coreBinding }, driver: { head: "c".repeat(40), files: ["entry.mjs", "neighbor.mjs"].map(name => ({ path: path.join(driverDir, name), sha256: digest(fs.readFileSync(path.join(driverDir, name))) })) } }; + const file = path.join(dir, "manifest.json"); + const write = () => fs.writeFileSync(file, JSON.stringify(manifest)); write(); + return { dir, source, manifest, file, write, core, alias }; +} + +test("existing retention output is refused before source resolution and remains untouched", t => { + const dir = temporary(t), output = path.join(dir, "retained"); fs.mkdirSync(output); fs.writeFileSync(path.join(output, "sentinel"), "keep me"); + const result = invoke(["--output", output, "--baseline", "a".repeat(40), "--current", "b".repeat(40), "--prepare-only"]); + assert.notEqual(result.status, 0); assert.match(result.stderr, /output.*already exists/i); + assert.deepEqual(fs.readdirSync(output), ["sentinel"]); assert.equal(fs.readFileSync(path.join(output, "sentinel"), "utf8"), "keep me"); +}); +test("a dangling output symlink is preserved and refused", t => { + const dir = temporary(t), output = path.join(dir, "retained"), missing = path.join(dir, "missing"); fs.symlinkSync(missing, output); + const result = invoke(["--output", output, "--baseline", "a".repeat(40), "--current", "b".repeat(40)]); + assert.notEqual(result.status, 0); assert.match(result.stderr, /output.*already exists/i); assert.equal(fs.readlinkSync(output), missing); assert.equal(fs.existsSync(missing), false); +}); +test("a source shorthand is refused without creating output", t => { + const dir = temporary(t), output = path.join(dir, "new"); + const result = invoke(["--output", output, "--baseline", "HEAD", "--current", "b".repeat(40)]); + assert.notEqual(result.status, 0); assert.match(result.stderr, /full 40.character.*revision/i); assert.equal(fs.existsSync(output), false); +}); +test("offline verification checks retained bytes without executing the app", t => { + const f = manifestFixture(t), result = invoke(["--verify", f.file]); + assert.equal(result.status, 0, result.stderr); assert.match(result.stdout, /verified.*no workload launched/i); +}); +test("offline verification refuses a changed source byte", t => { + const f = manifestFixture(t); fs.appendFileSync(path.join(f.source, f.manifest.source.files[0].path), "changed"); + const result = invoke(["--verify", f.file]); assert.notEqual(result.status, 0); assert.match(result.stderr, /source.*hash mismatch/i); +}); +test("offline verification refuses a changed built byte", t => { + const f = manifestFixture(t); fs.appendFileSync(path.join(f.source, f.manifest.build.files[0].path), "changed"); + const result = invoke(["--verify", f.file]); assert.notEqual(result.status, 0); assert.match(result.stderr, /build.*hash mismatch/i); +}); +test("offline verification refuses manifest traversal even for matching bytes", t => { + const f = manifestFixture(t); fs.writeFileSync(path.join(f.dir, "outside"), "outside"); f.manifest.source.files.push({ path: "../outside", sha256: digest("outside") }); f.write(); + const result = invoke(["--verify", f.file]); assert.notEqual(result.status, 0); assert.match(result.stderr, /unsafe.*path/i); +}); +test("offline verification refuses source symlinks even to matching bytes", t => { + const f = manifestFixture(t), sourceFile = path.join(f.source, f.manifest.source.files[0].path), other = path.join(f.dir, "outside"); fs.renameSync(sourceFile, other); fs.symlinkSync(other, sourceFile); + const result = invoke(["--verify", f.file]); assert.notEqual(result.status, 0); assert.match(result.stderr, /symlink/i); +}); +test("offline verification refuses a changed dependency lock", t => { + const f = manifestFixture(t); fs.appendFileSync(path.join(f.manifest.dependencies.root, "pnpm-lock.yaml"), "changed"); + const result = invoke(["--verify", f.file]); assert.notEqual(result.status, 0); assert.match(result.stderr, /dependency.*hash mismatch/i); +}); + +test("an unavailable full source revision fails before creating output", t => { + const dir = temporary(t), output = path.join(dir, "new"); + const result = invoke(["--output", output, "--baseline", "0".repeat(40), "--current", "b".repeat(40), "--prepare-only"]); + assert.notEqual(result.status, 0); assert.match(result.stderr, /source revision is unavailable/i); assert.equal(fs.existsSync(output), false); +}); +test("offline verification refuses a manifest with no measured source files", t => { + const f = manifestFixture(t); f.manifest.source.files = []; f.write(); const result = invoke(["--verify", f.file]); + assert.notEqual(result.status, 0); assert.match(result.stderr, /missing source file manifest/i); +}); +test("offline verification refuses a replaced declared dependency link", t => { + const f = manifestFixture(t), link = path.join(f.dir, "linked-dependencies"); fs.symlinkSync(f.manifest.dependencies.root, link); f.manifest.dependencies.links = [{ path: link, realPath: fs.realpathSync(f.manifest.dependencies.root) }]; f.write(); + const before = invoke(["--verify", f.file]); assert.equal(before.status, 0, before.stderr); + fs.unlinkSync(link); fs.mkdirSync(link); + const after = invoke(["--verify", f.file]); assert.notEqual(after.status, 0); assert.match(after.stderr, /dependency link identity mismatch/i); +}); + +import * as retention from "../lib/cf8-retention.mjs"; +function sourceRepository(t) { + const dir = temporary(t), env = { ...process.env, GIT_AUTHOR_NAME: "retention fixture", GIT_AUTHOR_EMAIL: "fixture@modex.local", GIT_COMMITTER_NAME: "retention fixture", GIT_COMMITTER_EMAIL: "fixture@modex.local" }; + const git = args => { + const result = spawnSync("git", args, { cwd: dir, env, encoding: "utf8" }); assert.equal(result.status, 0, result.stderr); return result.stdout.trim(); + }; + git(["init", "-q"]); fs.mkdirSync(path.join(dir, "packages/core/src"), { recursive: true }); + fs.writeFileSync(path.join(dir, "packages/core/src/engine.ts"), "export const core = 1;\n"); fs.writeFileSync(path.join(dir, "app.txt"), "first"); + const commit = label => { git(["add", "."]); git(["-c", "commit.gpgsign=false", "commit", "-qm", label]); return git(["rev-parse", "HEAD"]); }; + const baseline = commit("baseline"); fs.writeFileSync(path.join(dir, "app.txt"), "second"); const current = commit("app change"); + fs.writeFileSync(path.join(dir, "packages/core/src/engine.ts"), "export const core = 2;\n"); const changedCore = commit("core change"); + return { dir, git, baseline, current, changedCore }; +} +test("common dependency preparation accepts different app sources with identical core bytes", t => { + const f = sourceRepository(t); assert.doesNotThrow(() => retention.assertCommonCore(f.dir, [f.baseline, f.current])); +}); +test("common dependency preparation refuses source refs with different core bytes", t => { + const f = sourceRepository(t); assert.throws(() => retention.assertCommonCore(f.dir, [f.baseline, f.changedCore]), /common.*core.*differs/i); +}); +test("a full annotated-tag object cannot masquerade as the measured commit", t => { + const f = sourceRepository(t); f.git(["-c", "tag.gpgSign=false", "tag", "-am", "fixture tag", "fixture-tag", f.current]); + const tag = f.git(["rev-parse", "fixture-tag"]); assert.throws(() => retention.resolveSourceRevision(f.dir, tag), /not the exact commit/i); +}); + +test("a source export reproduces the requested commit instead of the newer working checkout", t => { + const f = sourceRepository(t), destination = path.join(f.dir, "exported"); + const source = retention.exportSource({ repoRoot: f.dir, ref: f.baseline, destination }); + assert.equal(source.sha, f.baseline); assert.equal(source.tree, f.git(["rev-parse", f.baseline + "^{tree}"])); + assert.equal(fs.readFileSync(path.join(destination, "app.txt"), "utf8"), "first"); + assert.equal(fs.readFileSync(path.join(destination, "packages/core/src/engine.ts"), "utf8"), "export const core = 1;\n"); + assert.deepEqual(source.files.map(x => x.path), ["app.txt", "packages/core/src/engine.ts"]); + assert.equal(source.files.find(x => x.path === "app.txt").sha256, digest("first")); + assert.equal(fs.existsSync(path.join(destination, ".git")), false); +}); +test("source export refuses tracked symlinks before creating a destination", t => { + const f = sourceRepository(t), destination = path.join(f.dir, "exported"); fs.symlinkSync("app.txt", path.join(f.dir, "linked")); f.git(["add", "linked"]); f.git(["-c", "commit.gpgsign=false", "commit", "-qm", "linked source"]); + const ref = f.git(["rev-parse", "HEAD"]); + assert.throws(() => retention.exportSource({ repoRoot: f.dir, ref, destination }), /unsupported source entry/i); assert.equal(fs.existsSync(destination), false); +}); +test("source export does not replace a previously prepared destination", t => { + const f = sourceRepository(t), destination = path.join(f.dir, "exported"); fs.mkdirSync(destination); fs.writeFileSync(path.join(destination, "sentinel"), "retain"); + assert.throws(() => retention.exportSource({ repoRoot: f.dir, ref: f.baseline, destination }), /already exists/i); + assert.equal(fs.readFileSync(path.join(destination, "sentinel"), "utf8"), "retain"); +}); + +test("a failed build command retains stdout, stderr and its original exit status", t => { + const dir = temporary(t), log = path.join(dir, "first.log"); + const result = retention.runLogged({ command: process.execPath, args: ["-e", 'process.stdout.write("original stdout\\n"); process.stderr.write("original stderr\\n"); process.exit(7);'], cwd: dir, log }); + assert.equal(result.exit, 7); assert.equal(fs.readFileSync(log, "utf8"), "original stdout\noriginal stderr\n"); assert.equal(result.sha256, digest("original stdout\noriginal stderr\n")); +}); +test("a retained build log cannot be replaced or trigger a second invocation", t => { + const dir = temporary(t), log = path.join(dir, "first.log"), effect = path.join(dir, "effect"); fs.writeFileSync(log, "retain original failure"); + assert.throws(() => retention.runLogged({ command: process.execPath, args: ["-e", `require('node:fs').writeFileSync(${JSON.stringify(effect)}, 'ran')`], cwd: dir, log }), /EEXIST/); + assert.equal(fs.readFileSync(log, "utf8"), "retain original failure"); assert.equal(fs.existsSync(effect), false); +}); + +test("shared dependencies work when the dependency-free core has no node_modules directory", t => { + const dir = temporary(t), repoRoot = path.join(dir, "driver"), destination = path.join(dir, "source"); + for (const base of [repoRoot, destination]) fs.mkdirSync(path.join(base, "apps/desktop"), { recursive: true }); + fs.mkdirSync(path.join(repoRoot, "node_modules")); fs.mkdirSync(path.join(repoRoot, "apps/desktop/node_modules")); + const links = retention.linkCommonDependencies({ repoRoot, destination }); + assert.equal(links.length, 2); assert.equal(fs.realpathSync(path.join(destination, "node_modules")), fs.realpathSync(path.join(repoRoot, "node_modules"))); + assert.equal(fs.realpathSync(path.join(destination, "apps/desktop/node_modules")), fs.realpathSync(path.join(repoRoot, "apps/desktop/node_modules"))); + assert.equal(fs.existsSync(path.join(destination, "packages/core/node_modules")), false); +}); + +test("driver generation never replaces a retained driver directory", t => { + const dir = temporary(t), templateDir = path.join(dir, "template"), destination = path.join(dir, "driver"); fs.mkdirSync(templateDir); fs.mkdirSync(destination); fs.writeFileSync(path.join(destination, "sentinel"), "retain"); + assert.throws(() => retention.createWorkloadDrivers({ templateDir, destination, targetAppDir: dir, libraryFile: cli }), /already exists/i); + assert.equal(fs.readFileSync(path.join(destination, "sentinel"), "utf8"), "retain"); +}); +test("driver generation refuses a symlinked template before creating its output", t => { + const dir = temporary(t), templateDir = path.join(dir, "template"), destination = path.join(dir, "driver"); fs.mkdirSync(templateDir); fs.writeFileSync(path.join(dir, "outside.ts"), "retain"); fs.symlinkSync(path.join(dir, "outside.ts"), path.join(templateDir, "history.spec.ts")); + assert.throws(() => retention.createWorkloadDrivers({ templateDir, destination, targetAppDir: dir, libraryFile: cli }), /symlink/i); + assert.equal(fs.existsSync(destination), false); +}); + +test("a recorded manifest digest prevents metadata rebinding despite unchanged file bytes", t => { + const f = manifestFixture(t), recorded = digest(fs.readFileSync(f.file)); + f.manifest.appVersion = "changed after preparation"; f.write(); + assert.throws(() => retention.verifyManifest(f.file, recorded), /manifest identity hash mismatch/i); +}); +test("offline verification detects a changed executable mode as a source change", t => { + const f = manifestFixture(t); f.manifest.source.files[0].mode = "100644"; f.write(); + fs.chmodSync(path.join(f.source, f.manifest.source.files[0].path), 0o755); + const result = invoke(["--verify", f.file]); assert.notEqual(result.status, 0); assert.match(result.stderr, /source mode mismatch/i); +}); + +test("benchmark inputs survive a failed real Playwright worker and its exit cleanup", { timeout: 30_000, skip: process.platform === "win32" }, t => { + const probes = path.join(root, "apps/desktop/.probes"); fs.mkdirSync(probes, { recursive: true }); + const dir = fs.mkdtempSync(path.join(probes, "cf8-retain-worker-control-")); t.after(() => fs.rmSync(dir, { recursive: true, force: true })); + const inputs = path.join(dir, "retained-inputs"), locator = path.join(dir, "fixture.json"), runtimeTemp = path.join(dir, "runtime-temp"); fs.mkdirSync(inputs, { mode: 0o700 }); fs.mkdirSync(runtimeTemp, { mode: 0o700 }); + const generated = retention.createWorkloadDrivers({ templateDir: path.join(root, "apps/desktop/bench/retention"), destination: path.join(dir, "generated-driver"), targetAppDir: path.join(root, "apps/desktop"), libraryFile: path.join(root, "scripts/lib/cf8-retention.mjs") }); + fs.writeFileSync(path.join(dir, "fixture.spec.ts"), `import { test } from "@playwright/test"; import fs from "node:fs"; import os from "node:os"; import { seedHome } from ${JSON.stringify(path.join(generated.directory, "target-support.ts"))}; test("intentional early fixture failure", () => { const before = os.tmpdir(); const fixture = seedHome(); fs.writeFileSync(${JSON.stringify(locator)}, JSON.stringify({ ...fixture, runtimeBefore: before, runtimeAfter: os.tmpdir() })); throw new Error("intentional benchmark fixture failure before app launch"); });\n`); + fs.writeFileSync(path.join(dir, "playwright.config.ts"), `export default { testDir: ".", testMatch: "fixture.spec.ts", outputDir: ${JSON.stringify(path.join(dir, 'test-results'))}, workers: 1, retries: 0, maxFailures: 1, reporter: "list", use: { trace: "off" } };\n`); + const child = spawnSync("pnpm", ["exec", "playwright", "test", "--config", path.join(dir, "playwright.config.ts")], { cwd: path.join(root, "apps/desktop"), encoding: "utf8", env: { ...retention.workloadEnvironment(), TMPDIR: runtimeTemp, MODEX_RETENTION_FIXTURE_ROOT: inputs }, maxBuffer: 2 * 1024 * 1024 }); + assert.equal(child.status, 1, child.stdout + child.stderr); assert.match(child.stdout + child.stderr, /intentional benchmark fixture failure before app launch/); + const seeded = JSON.parse(fs.readFileSync(locator, "utf8")); + for (const key of ["home", "repo"]) assert.equal(path.dirname(seeded[key]), inputs); + assert.equal(seeded.runtimeBefore, runtimeTemp); assert.equal(seeded.runtimeAfter, runtimeTemp, "runtime temp context must be restored before app launch"); + assert.ok(fs.existsSync(path.join(seeded.home, "app/state.json")), "retained state must survive failed worker exit"); + assert.ok(fs.existsSync(path.join(seeded.repo, "README.md")), "retained disposable repository must survive failed worker exit"); +}); + +test("matching-byte driver file symlinks cannot redirect relative module resolution", t => { + const f = manifestFixture(t), file = f.manifest.driver.files[0].path, moved = path.join(f.dir, "moved-driver.mjs"); fs.renameSync(file, moved); fs.symlinkSync(moved, file); + const result = invoke(["--verify", f.file]); assert.notEqual(result.status, 0); assert.match(result.stderr, /driver.*symlink/i); +}); +test("matching-byte driver ancestor symlinks are refused", t => { + const f = manifestFixture(t), dir = path.dirname(f.manifest.driver.files[0].path), moved = path.join(f.dir, "moved-driver"); fs.renameSync(dir, moved); fs.symlinkSync(moved, dir, "dir"); + const result = invoke(["--verify", f.file]); assert.notEqual(result.status, 0); assert.match(result.stderr, /driver.*symlink/i); +}); +test("driver manifest dot traversal is refused even when it reads matching bytes", t => { + const f = manifestFixture(t), dir = path.dirname(f.manifest.driver.files[0].path); f.manifest.driver.files[0].path = dir + "/../driver/entry.mjs"; f.write(); + const result = invoke(["--verify", f.file]); assert.notEqual(result.status, 0); assert.match(result.stderr, /unsafe driver path/i); +}); +test("a driver manifest cannot omit all driver provenance", t => { + const f = manifestFixture(t); f.manifest.driver.files = []; f.write(); + const result = invoke(["--verify", f.file]); assert.notEqual(result.status, 0); assert.match(result.stderr, /missing driver manifest/i); +}); + +test("a retargeted desktop core alias is refused while recorded core build bytes stay unchanged", t => { + const f = manifestFixture(t), other = path.join(f.dir, "other-core"); fs.cpSync(f.core, other, { recursive: true }); fs.unlinkSync(f.alias); fs.symlinkSync(other, f.alias, "dir"); + const result = invoke(["--verify", f.file]); assert.notEqual(result.status, 0); assert.match(result.stderr, /core binding/i); + assert.equal(digest(fs.readFileSync(path.join(f.core, "dist/src/index.js"))), f.manifest.dependencies.coreFiles[0].sha256); +}); +test("changed core entry metadata is refused even when all recorded build files are unchanged", t => { + const f = manifestFixture(t), otherEntry = path.join(f.core, "dist/src/other.js"); fs.writeFileSync(otherEntry, "export const other = 2;\n"); f.manifest.dependencies.coreFiles.push({ path: "packages/core/dist/src/other.js", sha256: digest(fs.readFileSync(otherEntry)) }); f.write(); + const pkg = JSON.parse(fs.readFileSync(path.join(f.core, "package.json"), "utf8")); pkg.exports["."].default = "./dist/src/other.js"; fs.writeFileSync(path.join(f.core, "package.json"), JSON.stringify(pkg)); + const result = invoke(["--verify", f.file]); assert.notEqual(result.status, 0); assert.match(result.stderr, /core binding/i); +}); +test("desktop core binding resolves the expected package and entry without executing the module", t => { + const f = manifestFixture(t), effect = path.join(f.dir, "module-executed"), entry = path.join(f.core, "dist/src/index.js"); + fs.writeFileSync(entry, `import fs from 'node:fs'; fs.writeFileSync(${JSON.stringify(effect)}, 'ran'); export const core = 1;\n`); + const result = retention.resolveDesktopCoreBinding(f.manifest.dependencies.root); + assert.deepEqual(result, { ...f.manifest.dependencies.coreBinding, entrySha256: digest(fs.readFileSync(entry)) }); assert.equal(fs.existsSync(effect), false); +}); +test("prebuild core binding works before its declared compiled entry exists", t => { + const f = manifestFixture(t); fs.unlinkSync(path.join(f.core, "dist/src/index.js")); + const result = retention.resolveDesktopCoreBinding(f.manifest.dependencies.root, { requireBuilt: false }); + assert.deepEqual(result, { ...f.manifest.dependencies.coreBinding, entrySha256: null }); +}); + +test("a retargeted installed core stops preparation before its first build", { skip: process.platform !== "darwin" }, t => { + const f = manifestFixture(t), repoRoot = f.manifest.dependencies.root; + fs.mkdirSync(path.join(repoRoot, "apps/desktop/e2e")); fs.mkdirSync(path.join(repoRoot, "scripts")); + fs.writeFileSync(path.join(repoRoot, "apps/desktop/e2e/support.ts"), "export {};\n"); fs.writeFileSync(path.join(repoRoot, "apps/desktop/vite.config.ts"), "export default {};\n"); fs.writeFileSync(path.join(repoRoot, "scripts/worktree.sh"), "exit 0\n"); fs.writeFileSync(path.join(repoRoot, ".gitignore"), "node_modules/\npackages/core/dist/\n"); + const env = { ...process.env, GIT_AUTHOR_NAME: "retention fixture", GIT_AUTHOR_EMAIL: "fixture@modex.local", GIT_COMMITTER_NAME: "retention fixture", GIT_COMMITTER_EMAIL: "fixture@modex.local" }; + const git = args => { const result = spawnSync("git", args, { cwd: repoRoot, env, encoding: "utf8" }); assert.equal(result.status, 0, result.stderr); return result.stdout.trim(); }; + git(["init", "-q"]); git(["add", "."]); git(["-c", "commit.gpgsign=false", "commit", "-qm", "fixture source"]); const ref = git(["rev-parse", "HEAD"]); + const other = path.join(f.dir, "other-core"); fs.cpSync(f.core, other, { recursive: true }); fs.unlinkSync(f.alias); fs.symlinkSync(other, f.alias, "dir"); + const bin = path.join(f.dir, "bin"), effect = path.join(f.dir, "build-started"), output = path.join(f.dir, "output"); fs.mkdirSync(bin); + fs.writeFileSync(path.join(bin, "pnpm"), `#!${process.execPath}\nrequire('node:fs').writeFileSync(${JSON.stringify(effect)}, 'ran'); process.exit(91);\n`, { mode: 0o755 }); + const previous = process.env.PATH; process.env.PATH = bin + path.delimiter + previous; t.after(() => { if (previous === undefined) delete process.env.PATH; else process.env.PATH = previous; }); + assert.throws(() => retention.prepareRetention({ repoRoot, output, baseline: ref, current: ref }), /desktop core binding/i); + assert.equal(fs.existsSync(effect), false, "no build command may start against another installed core"); assert.equal(fs.existsSync(output), false); +});