{"version":303,"agent":"capacity","message":"Status for an agent behind shared lists its base version's kept paths, not a layout of every known file (abso 711, abso - Performance's fix; Capacity ships it)\n\n- agentPaths and pathsOf listed an agent's files with agentView(agent).paths(). For an agent behind shared on a stored writer, that lays out every known file's history: 21,939-28,410 statements the first time, 11,330-26,075 each repeat, nothing kept. On prod abso this afternoon, 28 status calls ran 29,000-40,000 statements each while the object reset (Observability).\n- An agent with nothing of its own (agent.mine empty) sees exactly its base version, so its paths are that version's kept file list (keptPaths, as pathsAt already uses: about 30 statements). An agent with a draft, or a store without kept paths, is laid out as before.\n- Performance's measurement on a copy of abso's tables, first status of 12 agents: median 26,040 statements before, 203 after (max 4,686, the three with drafts); 44.2 s in all before, 4.8 s after; every status body byte for byte the same.\n\nChecks: core tsc clean; Biome clean; node --test worker/project/test/known-paths (new: agentPaths and pathsOf on a writer match the in-memory project, for agents behind shared, at shared and with drafts), files-reads, project, reviewers: 33 of 33 pass.","time":1792174242510,"timeIso":"2026-10-16T18:10:42.510Z","changes":4,"change":5103,"files":["worker/project/project-status.ts","worker/project/test/known-paths.test.ts"],"draft":null,"diff":[{"path":"worker/project/project-status.ts","added":14,"removed":2,"diff":"--- a/worker/project/project-status.ts\n+++ b/worker/project/project-status.ts\n@@ -49,6 +49,18 @@\n }\n \n /**\n+ * An agent with nothing of its own sees exactly its base version, so its paths are that version's kept file list\n+ * (pathindex.ts), when there is one: no layout of every known file (abso - Performance, abso 711).\n+ */\n+function viewPaths(host: SnapshotHost, agent: AgentState): string[] {\n+\tconst kept =\n+\t\tagent.mine.length === 0\n+\t\t\t? host.keptPaths?.(host.spaceNamed(agent.space === SHARED ? null : agent.space), agent.base)\n+\t\t\t: undefined;\n+\treturn kept ?? host.agentView(agent).paths();\n+}\n+\n+/**\n  * The paths in an agent's view now (#37): what its folder should hold.\n  * Reading it changes nothing. Binary files are included.\n  */\n@@ -62,7 +74,7 @@\n \treturn {\n \t\tversion: agent.base,\n \t\tdraft: agent.space === SHARED ? null : agent.space,\n-\t\tfiles: host.agentView(agent).paths(),\n+\t\tfiles: viewPaths(host, agent),\n \t};\n }\n \n@@ -94,7 +106,7 @@\n \t\tagent: agent.name,\n \t\tversion: agent.base,\n \t\tdraft: agent.space === SHARED ? null : agent.space,\n-\t\tfiles: host.agentView(agent).paths(),\n+\t\tfiles: viewPaths(host, agent),\n \t};\n }\n "},{"path":"worker/project/test/known-paths.test.ts","added":17,"removed":0,"diff":"--- a/worker/project/test/known-paths.test.ts\n+++ b/worker/project/test/known-paths.test.ts\n@@ -105,3 +105,20 @@\n \t] as const)\n \t\tassert.deepEqual(project.pathsAt(version).files, oracle.draftOf(agent)!.view.paths(), `paths at ${version}`);\n });\n+\n+test(\"an agent's files on a writer, from its base version's kept list when it has nothing of its own, as the in-memory project says\", () => {\n+\t// abso - Performance (abso 711): a status for an agent behind shared listed its files by laying out every known file.\n+\tconst oracle = new Project(new MemoryStore());\n+\tconst project = writer();\n+\thistory(oracle);\n+\thistory(project);\n+\t// v0 and v1 are behind shared with nothing of their own, v2 is at shared, and bob, cy, dee and eve have drafts.\n+\tfor (const agent of [\"v0\", \"v1\", \"v2\", \"bob\", \"cy\", \"dee\", \"eve\"]) {\n+\t\tassert.deepEqual(project.agentPaths(agent), oracle.agentPaths(agent), agent);\n+\t\tassert.deepEqual(project.pathsOf(agent), oracle.pathsOf(agent), `${agent} for a reader`);\n+\t}\n+\tassert.deepEqual(project.agentPaths(\"v0\").files, project.pathsAt(0).files);\n+\tassert.equal(project.agentPaths(\"v0\").files.includes(\"src/gone.ts\"), true);\n+\tassert.equal(project.agentPaths(\"v1\").files.includes(\"src/gone.ts\"), false);\n+\tassert.equal(project.agentPaths(\"eve\").files.includes(\"src/draft-new.ts\"), true);\n+});"}],"ci":null}