TL;DR: faf_write can no longer overwrite the birth certificate or your context files, and faf_dna never issues a second one.
In Plain English
Old state. faf_write wrote any path it was given inside the
project, with a plain overwrite. It could replace .faf-dna, project.faf or your CLAUDE.md, and reply OK. If .faf-dna was deleted, faf_dna issued a new one.
Fix. faf_write refuses .faf-dna every time.
Existing context files need overwrite: true. faf_dna creates the
certificate once, and if git shows one existed, it tells you how to restore it instead of
issuing another.
New state. The birth certificate is written once. Your context files are overwritten only when you ask for it.
What happened since The Instructions Edition
Last write-up was The Instructions Edition (v4.1.0). Short tour to today:
- 4.1.1 — one rule for project questions: read
project.faffirst. - 4.1.2 — the birth certificate is written once, and your context files are overwritten only when you ask. This post.
Why it matters if you use Cursor, Windsurf or Claude Code
.faf-dna is written once, when the project is first scored: its honest
starting point. Every later score is measured against it. A birth certificate an agent can rewrite proves
nothing.
- Agents call tools freely. A write tool that can replace your
CLAUDE.mdwithout asking is a risk you shouldn't have to watch for. - History stays true. If
.faf-dnagoes missing, git still has it.faf_dnapoints you there rather than starting a new history.
What 4.1.2 is
| When the agent asks for… | Before | Now |
|---|---|---|
faf_write to .faf-dna | replaced, replied OK | refused, with or without overwrite: true, by any spelling or link |
faf_write over an existing project.faf, *.faf, CLAUDE.md or AGENTS.md | replaced | refused unless it passes overwrite: true |
faf_write into .git/ or outside the project | written | refused |
faf_dna twice at the same moment | two certificates reported | exactly one created |
faf_dna after .faf-dna was deleted | a new one issued | refused when git shows it existed, with the restore steps |
The restore steps it prints, latest version first:
git log --all --reflog --diff-filter=AM --oneline -- .faf-dna git checkout <sha> -- .faf-dnaIt looks in every branch, the reflog, a stash, a linked worktree and a shared clone's source. If it can't read the history, it refuses rather than guess. New files and other files in the project write as before, and writes land in one step with file permissions kept.
How we got it right
- An audit of the five FAF MCP servers found the problem, with exact reproductions.
- The fix was reviewed independently before merge, and each review's findings were fixed.
- After publishing, we installed 4.1.2 from npm on a clean machine and ran the cases by hand:
.faf-dnarefused and byte-for-byte unchanged, an existingproject.fafrefused,.git/hooksrefused, a new file written, and a deleted-but-committed certificate refused with the restore steps.
Not claimed
faf_writeandfaf_dnaare in the full tool set (FAF_TOOLS=all). Every tool stays callable by name either way.- It doesn't stop you deleting
.faf-dnaby hand. Git keeps the record, andfaf_dnapoints you to it. - Other files in the project are written as before.
Try it
Cursor (.cursor/mcp.json), or any IDE that runs a local MCP server:
{ "mcpServers": { "faf-mcp": { "command": "npx", "args": ["--yes", "faf-mcp"], "env": { "FAF_TOOLS": "all" } } } }Claude Code:
claude mcp add faf-mcp -e FAF_TOOLS=all -- npx --yes faf-mcp@4.1.2FAF_TOOLS=all lists the full set, including faf_write and faf_dna. Without it you get the 15 core tools.
Technical details
- Version: faf-mcp 4.1.2 (November 5, 2026), The Instructions Edition
- Where: npm · the MCP Registry
- Changes: #110 · #111 · release notes
Feedback welcome
Questions, nits, suggestions — guide the next version. Tell us what you want to see.