{"version":13,"agent":"engine","message":"The client names an imported version's original author (abso issue 23). The hosted Worker's admin route for imported history lays an author beside agent on every publish of a shared version (version 647 in abso). abso log, show, blame's Publishes, why and where now say who first wrote a version when there's an author, and the agent who published it otherwise (byWhom in history-answers.ts), the way git names a commit's author beside its committer. Code that matches agents (publish's checks, settle, news) keeps using agent. No change for projects without imported history. Tests: client/test/imported-history.test.ts; check passes (703).","time":1791514684603,"timeIso":"2026-10-09T02:58:04.603Z","changes":4,"change":116,"files":["client/src/changes.ts","client/src/history-answers.ts","client/src/history.ts","client/test/imported-history.test.ts"],"draft":null,"diff":[{"path":"client/src/changes.ts","added":3,"removed":2,"diff":"--- a/client/src/changes.ts\n+++ b/client/src/changes.ts\n@@ -25,6 +25,7 @@\n \twriteKnown,\n } from \"./folder.ts\";\n import { fileArg, when } from \"./history.ts\";\n+import { byWhom } from \"./history-answers.ts\";\n import { applyMode, PLAIN, readKnownModes, writeKnownModes } from \"./modes.ts\";\n import { refusedText, screenAnswer } from \"./safety.ts\";\n \n@@ -385,7 +386,7 @@\n \t\t`${spaceName(answer.draft)} is at version ${answer.version}.${path === undefined ? \"\" : answer.versions.length === 0 ? ` No version changed ${named}.` : ` The versions that changed ${named}, newest first:`}`,\n \t\t...(path !== undefined && answer.versions.length === 0 && !existsHere(root, path) ? [nothingAt(root, path)] : []),\n \t\t...answer.versions.flatMap((v) => [\n-\t\t\t`version ${v.version} by ${v.agent}, ${when(v.time)}${answer.draft === null ? ciMarkText(v.ci) : \"\"}: ${v.message}`,\n+\t\t\t`version ${v.version} by ${byWhom(v)}, ${when(v.time)}${answer.draft === null ? ciMarkText(v.ci) : \"\"}: ${v.message}`,\n \t\t\t`  ${plural(v.files.length, \"file\")}: ${v.files.slice(0, LOG_FILES).join(\", \")}${v.files.length > LOG_FILES ? `, and ${v.files.length - LOG_FILES} more` : \"\"}`,\n \t\t\t...notes(v),\n \t\t]),\n@@ -422,7 +423,7 @@\n \tconst changed = pairRenames(answer.diff);\n \tconst d = diffs(changed);\n \tconst lines = [\n-\t\t`version ${answer.version} of ${spaceName(answer.draft)} by ${answer.agent}, ${when(answer.time)}: ${answer.message}`,\n+\t\t`version ${answer.version} of ${spaceName(answer.draft)} by ${byWhom(answer)}, ${when(answer.time)}: ${answer.message}`,\n \t\t...notes(answer),\n \t\tchanged.length === 0 ? \"It changed no files.\" : `${totals(changed)}.`,\n \t\t...d.text,"},{"path":"client/src/history-answers.ts","added":13,"removed":0,"diff":"--- a/client/src/history-answers.ts\n+++ b/client/src/history-answers.ts\n@@ -27,9 +27,20 @@\n \treadonly from?: string;\n \treadonly similarity?: number;\n }\n+/**\n+ * Who to name for a version: its original author when the project's history\n+ * was imported (abso issue 23, like git's author beside its committer), else\n+ * the agent who published it. Code that matches agents keeps using agent.\n+ */\n+export function byWhom(p: { readonly agent: string; readonly author?: string }): string {\n+\treturn p.author ?? p.agent;\n+}\n+\n export interface LogEntry {\n \treadonly version: number;\n \treadonly agent: string;\n+\t/** Who first wrote it, when the project's history was imported (abso issue 23); agent is who published it here. */\n+\treadonly author?: string;\n \treadonly message: string;\n \treadonly time: number;\n \treadonly changes: number;\n@@ -92,6 +103,8 @@\n export interface Publish {\n \treadonly version: number;\n \treadonly agent: string;\n+\t/** Who first wrote it, when the project's history was imported (abso issue 23). */\n+\treadonly author?: string;\n \treadonly message: string;\n \treadonly time: number;\n }"},{"path":"client/src/history.ts","added":4,"removed":3,"diff":"--- a/client/src/history.ts\n+++ b/client/src/history.ts\n@@ -8,6 +8,7 @@\n import type { Env, Output } from \"./commands.ts\";\n import { findRoot, readConfig } from \"./config.ts\";\n import { relativeTo } from \"./folder.ts\";\n+import { byWhom } from \"./history-answers.ts\";\n \n function open(env: Env): { root: string; api: Api; agent: string } {\n \tconst root = findRoot(env.cwd);\n@@ -46,7 +47,7 @@\n }\n \n function published(p: Publish | null): string {\n-\treturn p === null ? \"not published\" : `version ${p.version} by ${p.agent} (${when(p.time)}): \"${p.message}\"`;\n+\treturn p === null ? \"not published\" : `version ${p.version} by ${byWhom(p)} (${when(p.time)}): \"${p.message}\"`;\n }\n \n export async function runBlame(args: Parsed, env: Env): Promise<Output> {\n@@ -71,7 +72,7 @@\n \tfor (const a of b.atoms) {\n \t\tif (a.publish === null) continue;\n \t\tconst own = a.message && a.message !== a.publish.message ? ` (the change itself: \"${a.message}\")` : \"\";\n-\t\tconst line = `  v${a.publish.version} by ${a.publish.agent}, ${when(a.publish.time)}: ${a.publish.message}${own}`;\n+\t\tconst line = `  v${a.publish.version} by ${byWhom(a.publish)}, ${when(a.publish.time)}: ${a.publish.message}${own}`;\n \t\tif (!versions.has(a.publish.version) || own) versions.set(a.publish.version, line);\n \t}\n \tconst whose =\n@@ -172,7 +173,7 @@\n \t\tlines.push(\n \t\t\t`${file}:`,\n \t\t\tlast\n-\t\t\t\t? `  last changed in version ${last.version} by ${last.agent}, ${when(last.time)}: ${last.message}`\n+\t\t\t\t? `  last changed in version ${last.version} by ${byWhom(last)}, ${when(last.time)}: ${last.message}`\n \t\t\t\t: \"  in no published version yet\",\n \t\t\t...(drafts.length > 0\n \t\t\t\t? drafts.map("},{"path":"client/test/imported-history.test.ts","added":15,"removed":0,"diff":"--- /dev/null\n+++ b/client/test/imported-history.test.ts\n@@ -0,0 +1,15 @@\n+// Imported history (abso issue 23): a version whose history was imported names\n+// its original author, the way git names a commit's author beside its\n+// committer. Every other version names the agent who published it.\n+\n+import assert from \"node:assert/strict\";\n+import { test } from \"node:test\";\n+import { byWhom } from \"../src/history-answers.ts\";\n+\n+test(\"a version names its original author when it has one, else its agent\", () => {\n+\tassert.equal(\n+\t\tbyWhom({ agent: \"replay-a1\", author: \"Ada Lovelace <ada@example.com>\" }),\n+\t\t\"Ada Lovelace <ada@example.com>\",\n+\t);\n+\tassert.equal(byWhom({ agent: \"ann\" }), \"ann\");\n+});"}],"ci":null}