Repository navigation
Conversation
Entire-Checkpoint: aa76ba5ee949
…the file Entire-Checkpoint: a4b15a7af3e8
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
src/lib/__tests__/writer-state-matrix.test.ts:init,sync,update(each ±--force;sync/updatealso--dry-run) against 9 destinations × 7 starting states, real filesystem in a temp dir, nofsmocks. 645 tests, ~53 s.overwrite/preserved/merged) are a second grid asserted for both the dry-run and the apply run. Policies are read throughownershipPolicy().KNOWN_DEFECTS, with a test that fails when the count of violating cells changes: fix(writers): update/init/sync write through an existing symlink at a sequant-owned destination (#1053 class) #1122 (symlink write-through at sequant-owned paths), fix(init): --yes init replaces a user-modified AGENTS.md and an unparseable .mcp.json that sync would preserve #1123 (init --yesreplaces a user-modifiedAGENTS.md/ unparseable.mcp.json), fix(writers): a directory at a template destination crashes every writer with a raw EISDIR, dry-runs included #1124 (directory at a template path → rawEISDIR, dry-runs included).Acceptance criteria
todo/skip(grep -c→ 0); a writer that never touches a destination is an all-=row, not an empty cell-t "dry-run matches apply"green (252 cells); dry-run is also asserted to write nothing-t "foreign symlink"green (94 tests).initandsyncend as a regular file with the real template's bytes and the link target untouched.updatedoes not: it writes through the link (fix(writers): update/init/sync write through an existing symlink at a sequant-owned destination (#1053 class) #1122), pinned in the grid asW-t "init on initialized"green: tuned.sequant/settings.json,--agent codex, deep-equal to the original plusrun.agent-t "settings.local.json survives"green forsync,sync --force,update,update --force, andsync --dry-runlists.claude/settings.jsonasoverwritenpm run buildgreen here; the fullnpm testis left to the runner per the wave-2 rule (only this file was run)Notes
initprints no per-file decision, so decisions are asserted forsync/update;initis covered by post-state.updateon a project in the symlink route writes a regular file wheresyncwrites a link (gridTvsL); pinned, not filed.Mutation-verified: AC-2 — made resolveOwnershipDecisions push
overwritefor the.mcp.jsonmerge; the.mcp.jsondry-run cells failed (2 of 252, sync and sync --force); restored.Mutation-verified: AC-5 — made sync also write settings.local.json; the settings.local.json survives cells failed (sync, sync --force); restored.
Closes #1097
🤖 Generated with Claude Code
Runner verification (guard-2026-09 wave 2, 2026-09-20)
rmSynctargets a temp dir. The agent filed fix(writers): update/init/sync write through an existing symlink at a sequant-owned destination (#1053 class) #1122, fix(init): --yes init replaces a user-modified AGENTS.md and an unparseable .mcp.json that sync would preserve #1123 and fix(writers): a directory at a template destination crashes every writer with a raw EISDIR, dry-runs included #1124 for the writer defects the matrix exposed and pinned them as expected failures.npm testfrom a clean shell onf9d288a3: 330 files, 7260 passed, 3 expected fail, 3 skipped, 390 s. CI green.