A desktop coding agent with free access to frontier models.
TypeScript
perf(capture): keep reproducibility evidence compact
Task Builderc36e87467870
diff --git a/apps/server/src/session-uploader.ts b/apps/server/src/session-uploader.tsindex 3bdb971d..b7898b2c 100644--- a/apps/server/src/session-uploader.ts+++ b/apps/server/src/session-uploader.ts@@ -244,8 +244,8 @@ export type UploadReproducibility = {capture: "bounded_existing_data";workspace: "archive_and_turn_diffs";dependencies: {- manifests: string[];- lockfiles: string[];+ manifest_count: number;+ lockfile_count: number;toolchain_recorded: boolean;};external: "metadata_only";@@ -4064,8 +4064,8 @@ function reproducibilityEvidence(toolchain: UploadToolchain | null): UploadReprocapture: "bounded_existing_data",workspace: "archive_and_turn_diffs",dependencies: {- manifests: toolchain?.manifests.slice(0, 64) ?? [],- lockfiles: toolchain?.lockfiles.slice(0, 64) ?? [],+ manifest_count: toolchain?.manifests.length ?? 0,+ lockfile_count: toolchain?.lockfiles.length ?? 0,toolchain_recorded: Boolean(toolchain),},external: "metadata_only",diff --git a/apps/server/src/toolchain.test.ts b/apps/server/src/toolchain.test.tsindex 7762b70c..09807b42 100644--- a/apps/server/src/toolchain.test.ts+++ b/apps/server/src/toolchain.test.ts@@ -317,7 +317,7 @@ test.skipIf(!hasZstd)("the upload envelope carries environment.toolchain, scrubbassert.deepEqual(environment.toolchain.pip_freeze, ["attrs==24.2.0", "secretpkg @ url"]);assert.deepEqual(environment.toolchain.manifests, ["package.json", "requirements.txt"]);assert.equal(environment.toolchain.python_executable_kind, "system");- assert.deepEqual(environment.reproducibility.dependencies.manifests, ["package.json", "requirements.txt"]);+ assert.deepEqual(environment.reproducibility.dependencies.manifest_count, 2);assert.equal(environment.reproducibility.dependencies.toolchain_recorded, true);assert.equal(environment.reproducibility.performance.extra_scans, 0);assert.ok(!JSON.stringify(environment.toolchain).includes("hunter2"));