Repository navigation
Conversation
…following it Entire-Checkpoint: ac30c22e4ef3
Entire-Checkpoint: ecf45229a146
4 tasks
…config-mcp-json-writes-still-follow-an-exi
…Json symlink rows gate the fix
admarble
deleted the
feature/1160-fix-mcp-config-mcp-json-writes-still-follow-an-exi
branch
September 25, 2026 22:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
writeFileSynctosrc/lib/fs.ts(same replace-the-link rule as fix(writers): update/init/sync write through an existing symlink at a sequant-owned destination (#1053 class) #1122'swriteFile) and route the threemcp-config.tswrites through it.1160case inmcp-config.test.tsand a unit test for the helper; annotate themcpJsonsymlink rows in the writer-state matrix. The letter staysM, but it now comes from the file arm ofclassify(link replaced, target byte-identical, elseV) instead of the write-through symlink arm.AC verification
writer-state-matrix.test.tsgreen (729 tests across the three touched files)mcp-config.test.ts > ... > 1160: ...grep -n "fs.writeFileSync" src/lib/mcp-config.tsprints nothingNot run: the full
npm test. Build, lint and the three touched test files pass.Mutation-verified: AC-2 — replaced the helper with direct fs.writeFileSync in mcp-config.ts; src/lib/mcp-config.test.ts > mcp-config > symlinked .mcp.json (#1160) > 1160 case failed; restored.
Mutation-verified: AC-1 — restored direct fs.writeFileSync at the three mcp-config.ts writes; src/lib/tests/writer-state-matrix.test.ts failed exactly the four .mcp.json local/foreign symlink × init/init --force cells (4 failed | 645 passed); restored.
Runner fix after QA (
0addb27e): QA showed that AC-1's matrix evidence didn't gate the fix.classifyreturnedMboth for a replaced link carrying merged content and for a merge written through the link, so the matrix passed 649/649 with the fix reverted. The symlink arm now reports a merge written through a link asW, which the legend already defines as a write-through. No current cell used that path (still 649/649), and reverting the fix now fails exactly the four.mcp.jsonsymlink cells.Closes #1160
🤖 Generated with Claude Code