{"issue":{"id":1,"title":"record and publish exit 0 when a file was left out for size","authorship":{"title":{"kind":"unknown","actor":null,"provenance":"unknown","authorField":null},"description":{"kind":"unknown","actor":null,"provenance":"unknown","authorField":null}},"parent":null,"status":"done","agent":"review","agents":[],"blockedBy":[],"labels":["bug","client","friction"],"versions":[11],"waitingOn":[],"opened":{"by":"review","at":1791511598868,"atIso":"2026-10-09T02:06:38.868Z"},"updated":1791513141460,"closed":{"how":"done","by":"review","version":11,"at":1791513141460,"atIso":"2026-10-09T02:32:21.460Z"},"children":0,"description":"Measured on 156 (lfs-measure-1): a 21 MB or 100 MB file is left out (over the 20 MB limit); record prints 'Nothing to record' then a 'Left out' line, publish goes ahead without the file, and both exit 0. A script, CI or the replay runner sees success with the file missing, against the rule that nothing is dropped silently. Fix: record and publish exit 1 and say so when anything was left out; publish still publishes the rest. Client only (client/src/commands.ts, publish-commands.ts). Related: abso issue 156 in project abso.","lines":null,"watchers":["review"]},"comments":[],"edits":[],"asks":[],"claims":[],"children":[],"publicProjects":[],"fileRefs":{},"parent":null,"change":{"id":68,"agent":"review","title":"Exit non-zero when a file is left out for size (record, publish)","kind":"note","note":{"text":"Exit non-zero when a file is left out for size (record, publish)","files":[]},"issue":1,"draft":null,"time":1791511608147,"timeIso":"2026-10-09T02:06:48.147Z","open":false,"versions":[{"version":11,"draft":null,"message":"Exit 1 when a file is left out for size: record and publish say so and still send the rest. Measured on abso 156: both exited 0 with a 21 MB file missing, so a script or CI read success. withLeftOut in commands.ts, used by record and publish; the existing blobs test now expects exit 1 and the left-out line and JSON (client suite: 170 pass). init is unchanged (its exit stays 0).","time":1791513140032,"timeIso":"2026-10-09T02:32:20.032Z","files":["client/src/commands.ts","client/src/publish-commands.ts","client/test/client.test.ts"]}],"files":["client/src/commands.ts","client/src/publish-commands.ts","client/test/client.test.ts"],"settled":[],"refusals":[],"notes":[],"reviewers":[]},"detail":{"diff":{"from":10,"to":11,"files":[{"path":"client/src/commands.ts","added":27,"removed":9,"diff":"--- a/client/src/commands.ts\n+++ b/client/src/commands.ts\n@@ -120,6 +120,21 @@\n \t];\n }\n \n+/**\n+ * A command that left files out for size did not do everything it was asked: say so in the exit code too, so\n+ * a script, CI or an agent cannot read \"ok\" while a file is missing. Other exits (refused, queued) stay as they are.\n+ */\n+export function withLeftOut(out: Output, leftOut: readonly LeftOut[]): Output {\n+\tif (leftOut.length === 0) return out;\n+\tconst text = out.text.includes(\"Left out,\") ? out.text : [out.text, ...leftOutText(leftOut)].join(\"\\n\");\n+\treturn {\n+\t\t...out,\n+\t\ttext: `${text}\\nExit ${EXIT.error}: ${leftOut.length} file${leftOut.length === 1 ? \" was\" : \"s were\"} not sent.`,\n+\t\tjson: { ...out.json, leftOut },\n+\t\texit: out.exit === undefined || out.exit === EXIT.ok ? EXIT.error : out.exit,\n+\t};\n+}\n+\n /** Upload binary files' bytes before the record or init that names them, each hash once. */\n export async function uploadBlobs(api: Api, blobs: ReadonlyMap<string, BlobToSend>): Promise<void> {\n \tconst seen = new Set<string>();\n@@ -290,16 +305,19 @@\n \t\tr.sent === 0\n \t\t\t? \"Nothing to record: the folder matches what the server has.\"\n \t\t\t: `Recorded ${recordedList(r)}${changed === undefined ? \"\" : `; ${changed} changed on the server`}.`;\n-\treturn {\n-\t\ttext: [...turnedBinaryText(r.turnedBinary), text, ...leftOutText(r.leftOut)].join(\"\\n\"),\n-\t\tjson: {\n-\t\t\tsent: r.sent,\n-\t\t\tchanged: r.changed ?? null,\n-\t\t\tnews: newsLines(r.news),\n-\t\t\tleftOut: r.leftOut,\n-\t\t\tturnedBinary: r.turnedBinary,\n+\treturn withLeftOut(\n+\t\t{\n+\t\t\ttext: [...turnedBinaryText(r.turnedBinary), text, ...leftOutText(r.leftOut)].join(\"\\n\"),\n+\t\t\tjson: {\n+\t\t\t\tsent: r.sent,\n+\t\t\t\tchanged: r.changed ?? null,\n+\t\t\t\tnews: newsLines(r.news),\n+\t\t\t\tleftOut: r.leftOut,\n+\t\t\t\tturnedBinary: r.turnedBinary,\n+\t\t\t},\n \t\t},\n-\t};\n+\t\tr.leftOut,\n+\t);\n }\n \n // --- writing answers into the folder ---"},{"path":"client/src/publish-commands.ts","added":8,"removed":3,"diff":"--- a/client/src/publish-commands.ts\n+++ b/client/src/publish-commands.ts\n@@ -18,10 +18,11 @@\n \tsyncFolder,\n \tturnedBinaryText,\n \tunwrittenText,\n+\twithLeftOut,\n } from \"./commands.ts\";\n import { type Config, isReader } from \"./config.ts\";\n import { ignoredHere } from \"./fetch.ts\";\n-import { absolute, forgetKnown, isLocalOnly, loadIgnore, readText, writeFileAtomic } from \"./folder.ts\";\n+import { absolute, forgetKnown, isLocalOnly, type LeftOut, loadIgnore, readText, writeFileAtomic } from \"./folder.ts\";\n import { PROJECT_FILE, readProjectFile } from \"./project-file.ts\";\n import { pulledText, STILL_QUEUED, standing, WAIT_SECONDS, waitForQueued } from \"./queue.ts\";\n import { type Refused, refusedText, unsafePath } from \"./safety.ts\";\n@@ -186,15 +187,17 @@\n \t\tsay(\"avcs: the check passed; publishing.\\n\");\n \t}\n \tconst checked = check !== undefined;\n-\tconst steps = publishSteps(args, env, root, config, api, message, checked, waitSeconds, skippedCheck);\n+\tconst leftOut: LeftOut[] = [];\n+\tconst steps = publishSteps(args, env, root, config, api, message, checked, waitSeconds, skippedCheck, leftOut);\n \t// Say how far it got when the server can't be reached (#37, GAME - UI/UX: did the check run? did the draft go up?).\n-\tconst out = await unreached(\n+\tconst reached = await unreached(\n \t\tsteps,\n \t\tchecked\n \t\t\t? \"The check passed, but the publish never reached the server: nothing was published.\"\n \t\t\t: \"Nothing was published.\",\n \t\t`${checked ? \"The check passed; \" : \"\"}the publish may have reached the server before its answer was lost: abso status shows whether your draft was published.`,\n \t);\n+\tconst out = withLeftOut(reached, leftOut);\n \t// --done: this publish finishes the work the start note named (#44): take the note back once it's published or queued.\n \tconst went =\n \t\t(out.json as { version?: unknown; queued?: unknown }).version !== undefined ||\n@@ -282,8 +285,10 @@\n \tchecked: boolean,\n \twaitSeconds: number,\n \tskippedCheck: boolean,\n+\tleftOut: LeftOut[],\n ): Promise<Output> {\n \tconst recorded = await recordFolder(root, api, false, meantBinary(args));\n+\tleftOut.push(...recorded.leftOut);\n \tconst pre = [...recordedFirst(recorded), ...droppedIgnoredText(await dropIgnoredFromDraft(root, api))];\n \tif (recorded.turnedBinary.length > 0) {\n \t\t// Publishing now would leave the others on the file's old text without anyone noticing (#25)."},{"path":"client/test/client.test.ts","added":12,"removed":2,"diff":"--- a/client/test/client.test.ts\n+++ b/client/test/client.test.ts\n@@ -232,7 +232,12 @@\n \t\tassert.deepEqual(init.json.leftOut, [{ path: \"huge.bin\", reason: \"too big\" }]);\n \t\tconst hosted = fake.projects.get(\"blobs\")!;\n \t\tassert.deepEqual(Object.keys(hosted.project.blobs()).sort(), [\"big.txt\", \"pic.bin\"]);\n-\t\tassert.equal((await avcs(dir, \"record\")).json.sent, 0, \"the known blobs match\");\n+\t\tconst again = await avcs(dir, \"record\");\n+\t\tassert.equal(again.json.sent, 0, \"the known blobs match\");\n+\t\tassert.equal(again.exit, 1, \"a file left out for size is not a success\");\n+\t\tconst saidSo = await main([\"record\"], { cwd: dir, env: ENV, write: () => {} });\n+\t\tassert.match(saidSo.stdout, /Left out, over the server's 20 MB limit.*huge\\.bin/);\n+\t\tassert.match(saidSo.stdout, /Exit 1: 1 file was not sent\\./);\n \n \t\t// Another agent gets the bytes.\n \t\tconst bob = temp();\n@@ -251,7 +256,12 @@\n \t\t\trefused.stdout,\n \t\t\t/NOT SENT: b\\.txt was text and now has a NUL byte at line 1 \\(byte 0\\)\\..*pass --binary b\\.txt\\.\\nNot published\\./,\n \t\t);\n-\t\tassert.equal((await avcs(dir, \"publish\", \"-m\", \"new picture, b is binary now\", \"--binary\", \"b.txt\")).exit, 0);\n+\t\t// The publish goes through, and still says the huge file was left out, with a non-zero exit.\n+\t\tconst published = await avcs(dir, \"publish\", \"-m\", \"new picture, b is binary now\", \"--binary\", \"b.txt\");\n+\t\tassert.equal(published.exit, 1, published.out);\n+\t\tassert.ok(published.json.version !== undefined, \"the rest was published\");\n+\t\tassert.deepEqual(published.json.leftOut, [{ path: \"huge.bin\", reason: \"too big\" }]);\n+\t\trmSync(join(dir, \"huge.bin\")); // the rest of the test is about the files that do go\n \t\tassert.equal(\"b.txt\" in shared(\"blobs\"), false);\n \t\tassert.ok(\"b.txt\" in hosted.project.blobs());\n \t\tassert.equal((await avcs(bob, \"sync\")).exit, 0);"}],"truncated":false}},"activity":[{"key":"activity:opened","kind":"opened","by":"review","at":1791511598868,"atIso":"2026-10-09T02:06:38.868Z","parent":null},{"key":"activity:pushed:11","kind":"published","by":"review","at":1791513140032,"atIso":"2026-10-09T02:32:20.032Z","version":11},{"key":"activity:closed","kind":"closed","by":"review","at":1791513141460,"atIso":"2026-10-09T02:32:21.460Z","how":"done","version":11}],"others":[{"id":36,"title":"Ten memory-bounding versions from Oct 12 have no measurement behind them: check each against its cost"},{"id":35,"title":"Lines keep deleters from atoms no draft holds: every layout reads them, and nothing prunes them"},{"id":30,"title":"abso pull deletes waiting news it never shows"},{"id":23,"title":"Auto-settle controls: gate, project setting, website"},{"id":34,"title":"News checks re-run in full on every record and push"},{"id":33,"title":"News agents need that is never made"},{"id":32,"title":"Taking news deletes it before the agent has it: a lost answer is lost news"},{"id":31,"title":"The Claude Code mod hands a seat's news to whichever subagent fetched it"},{"id":28,"title":"README alternate download: api.abso.dev/client/abso.mjs and .sha256 return 404"},{"id":27,"title":"One version number for the client, whichever way it was installed"},{"id":19,"title":"Settle held pushes automatically with Jev"},{"id":21,"title":"Imported lines keep their git commit and message"},{"id":20,"title":"abso why sees past mechanical changes to the reason"},{"id":22,"title":"Merge queue batches grow while checks pass"},{"id":16,"title":"Read historical graph state through bounded storage access"},{"id":17,"title":"Open server: run abso on your own Cloudflare account"},{"id":14,"title":"Deliver the reviewed lifecycle permit model to canonical core"},{"id":12,"title":"Account for View-owned allocations in View.weight"},{"id":11,"title":"Deterministic record-query replay contract tests"},{"id":8,"title":"Build the CLI npm package from its exact shared version"},{"id":7,"title":"Allow agents to request explicit grants when starting abso login"},{"id":2,"title":"News from the server itself, without making a sender agent"}],"watchers":["review"],"knownLabels":[{"label":"area:client","open":0,"total":4},{"label":"area:engine","open":2,"total":3},{"label":"bug","open":2,"total":3},{"label":"ci","open":1,"total":1},{"label":"client","open":1,"total":5},{"label":"design","open":2,"total":2},{"label":"engine","open":2,"total":2},{"label":"friction","open":5,"total":9},{"label":"memory","open":1,"total":1},{"label":"naming","open":0,"total":2},{"label":"news","open":1,"total":1},{"label":"performance","open":3,"total":3},{"label":"prototype","open":1,"total":1},{"label":"speed","open":0,"total":1}],"linked":null,"people":{}}