Unclaimed files left in the canonical checkout. Inventory: canonical-cleanup-inventory.md (commit-as-evidence groups). detect-secrets scan clean on 2026-11-02: hits are sha256 pins, git object ids, test sentinels already in tracked tests and unit-file lines.
12 lines
903 B
Diff
12 lines
903 B
Diff
--- /mnt/storage/src/mosaic-stack/agents/researcher/work/queue-148/mutants/.bak.xAjRgV/packages/project/src/index.mjs 2026-10-16 13:40:31.648229526 -0500
|
|
+++ packages/project/src/index.mjs 2026-10-16 13:40:33.354417080 -0500
|
|
@@ -251,7 +251,7 @@
|
|
if (typeof base !== 'string' || !/^[0-9a-f]{40}$/.test(base)) throw new ProjectError('project-record-invalid', 'expected the full commit the editor opened');
|
|
const name = checkedId(context.business.human);
|
|
const guard = async ({ before }) => {
|
|
- if (before === null) throw new ProjectError('project-read-missing', 'only an existing document can be saved');
|
|
+ if (false) throw new ProjectError('project-read-missing', 'only an existing document can be saved');
|
|
if (await git(repo, ['log', '-1', '--format=%H', 'HEAD', '--', path]) !== base)
|
|
throw new ProjectError('stale-base', 'the file changed since the editor opened it');
|
|
};
|