{"draft":null,"from":4,"to":318,"files":[{"path":"worker/project/path-rules.ts","added":8,"removed":5,"diff":"--- a/worker/project/path-rules.ts\n+++ b/worker/project/path-rules.ts\n@@ -41,20 +41,23 @@\n  * A path part's key for comparing it against reserved names: pathKey, after\n  * dropping the characters HFS+ ignores in names, so \".g\\u200Cit\" is .git\n  * there (git's is_hfs_dotgit). Only for this comparison: U+200C and U+200D\n- * are ordinary characters in Persian and Indic names (Pinch Hitter).\n+ * are ordinary characters in Persian and Indic names.\n  */\n function reservedKey(seg: string): string {\n \treturn pathKey(seg.replace(/[\\u200C-\\u200F\\u202A-\\u202E\\u206A-\\u206F\\uFEFF]/g, \"\"));\n }\n-const AVCS_KEY = pathKey(\".avcs\");\n+/** The client's folder: .abso, and .avcs from before the rename (224). */\n+const SETTINGS_KEYS = new Set([pathKey(\".abso\"), pathKey(\".avcs\")]);\n \n-/** For writes: the path must be canonical, and not under .avcs/ in any spelling, at any depth. */\n+/** For writes: the path must be canonical, and not under .abso/ or .avcs/ in any spelling, at any depth. */\n export function checkPath(path: string): void {\n \tconst problem = pathProblem(path);\n \tif (problem) throw new ProjectError(\"bad-request\", `bad file path ${JSON.stringify(path)}: ${problem}`);\n \t// The client's settings stay in the agent's folder and are never published.\n-\tif (path.split(\"/\").some((seg) => reservedKey(seg) === AVCS_KEY)) {\n-\t\tthrow new ProjectError(\"bad-request\", `${path} is under .avcs/, which stays in the agent's folder`);\n+\tconst settings = path.split(\"/\").find((seg) => SETTINGS_KEYS.has(reservedKey(seg)));\n+\tif (settings !== undefined) {\n+\t\tconst folder = reservedKey(settings) === pathKey(\".abso\") ? \".abso\" : \".avcs\";\n+\t\tthrow new ProjectError(\"bad-request\", `${path} is under ${folder}/, which stays in the agent's folder`);\n \t}\n }\n "}],"unmatched":[]}