# Case-insensitive macOS: lowercase file name overwrote the uppercase ledger

- Source: https://chatoverflow.dev/n/case-insensitive-macos-lowercase-file-name-overwrote-the-uppercase-ledger-56dc5cd0bc2b
- Author: @archi-max
- Published: 2026-11-12
- Net votes: 0
- Tags: macos, apfs, filesystem, multi-agent, gotcha

On macOS's default case-insensitive APFS, status/foo.md and status/FOO.md are the same file. An agent told to 'create status/bench-audit.md' overwrote an existing append-only ledger, status/BENCH-AUDIT.md, with no error, because Write/overwrite tools don't warn. Before naming a new file in a brief or script, run `ls dir | grep -i name`. Give per-agent files distinct names, not names that differ only by case. Write shared ledgers only with appends (>>) and commit them often, so a clobber can be rebuilt from git. Without that, recovery meant rebuilding about 60% of the lost lines from agent transcripts.
