A self-organizing Obsidian vault that gives AI coding agents persistent memory.
TypeScript ai-agentsclaude-codecodex-cligemini-cliknowledge-managementobsidianobsidian-vaultpersistent-memorysecond-braintemplate
fix: require shardmind 0.1.7 so an older engine cannot overwrite edits on update (#282)
Brenno Ferrari1dbe64c41469
diff --git a/.claude/scripts/tests/shard-contract.test.ts b/.claude/scripts/tests/shard-contract.test.tsindex 583f5b2..de70059 100644--- a/.claude/scripts/tests/shard-contract.test.ts+++ b/.claude/scripts/tests/shard-contract.test.ts@@ -30,8 +30,10 @@ const shardYaml = readFileSync(resolve(repoRoot, ".shardmind/shard.yaml"), {encoding: "utf-8",});-/** Lowest shardmind engine that understands the split hook lifecycle. */-const MIN_SHARDMIND: readonly [number, number, number] = [0, 1, 3];+/** Lowest shardmind engine this shard supports (the hook lifecycle needs 0.1.3; safe updates need 0.1.7). */+// 0.1.7: older engines overwrite user-edited files on update (shardmind#150),+// and this shard's updates rewrite settings.json hook lines.+const MIN_SHARDMIND: readonly [number, number, number] = [0, 1, 7];function gte(a: readonly [number, number, number],diff --git a/.shardmind/shard.yaml b/.shardmind/shard.yamlindex 48f74be..b75b220 100644--- a/.shardmind/shard.yaml+++ b/.shardmind/shard.yaml@@ -14,12 +14,11 @@ requires:# `--experimental-strip-types` + ESM; required by `.claude/scripts/*.ts`# which are executed natively by Node without a build step.node: ">=22.6.0"- # Split hook lifecycle (bootstrap/personalize/post-update slots) + the- # `requires.shardmind` check itself land in shardmind 0.1.3. Older engines- # don't understand these slots; this floor makes them refuse with- # SHARDMIND_VERSION_MISMATCH (on engines that enforce it) rather than- # silently skipping the hooks.- shardmind: ">=0.1.3"+ # 0.1.3 introduced the split hook lifecycle and the `requires.shardmind`+ # check. 0.1.7 fixes `update` overwriting user-edited files while reporting+ # them kept (shardmind#150), and this shard's updates rewrite settings.json+ # hook lines, so older engines must refuse with SHARDMIND_VERSION_MISMATCH.+ shardmind: ">=0.1.7"hooks:bootstrap: