From 16cfd048f196b49989e898fee64703c8a335965f Mon Sep 17 00:00:00 2001 From: Willie Date: Fri, 9 Oct 2026 00:53:13 +0800 Subject: [PATCH] test(sourcefs): allow the raw writes prefixed naming adds to targets The raw-write ratchet flags SetFrontmatterValue and the rename-back after a failed manifest write. Both only touch target entries (the copied SKILL.md and a just-renamed managed folder), never the skills source, so they are listed with the target reason. --- internal/sourcefs/testdata/raw_writes.tsv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/sourcefs/testdata/raw_writes.tsv b/internal/sourcefs/testdata/raw_writes.tsv index 78c1e1151..a9aa32326 100644 --- a/internal/sourcefs/testdata/raw_writes.tsv +++ b/internal/sourcefs/testdata/raw_writes.tsv @@ -456,6 +456,7 @@ internal/sync/sync.go ensureRealTargetDir os.MkdirAll targetPath target internal/sync/sync.go ensureRealTargetDir os.Remove targetPath target internal/sync/sync.go mergeDirectories os.MkdirAll dstPath source-unmigrated internal/sync/target_naming_migration.go selectActiveTargetNameForSync os.Rename legacyPath, desiredPath target +internal/sync/target_naming_migration.go selectActiveTargetNameForSync os.Rename desiredPath, legacyPath target internal/testutil/git_helpers.go SeedRemoteBranch os.MkdirAll filepath.Dir(full) test-helper internal/testutil/git_helpers.go SeedRemoteBranch os.WriteFile full test-helper internal/testutil/testutil.go (*Sandbox).CreateNestedSkill os.MkdirAll skillDir test-helper @@ -513,6 +514,8 @@ internal/uidist/uidist.go extractTarGz os.MkdirAll filepath.Dir(target) config internal/uidist/uidist.go extractTarGz os.MkdirAll target config internal/uidist/uidist.go extractTarGz os.OpenFile target config internal/utils/frontmatter_write.go SetFrontmatterList os.WriteFile filePath source-unmigrated +internal/utils/frontmatter_write.go SetFrontmatterValue os.WriteFile filePath target +internal/utils/frontmatter_write.go SetFrontmatterValue os.WriteFile filePath target internal/utils/frontmatter_write.go ToggleFrontmatterFlag os.WriteFile filePath source-unmigrated internal/utils/frontmatter_write.go ToggleFrontmatterFlag os.WriteFile filePath source-unmigrated internal/utils/link_windows.go CreateJunction os.Mkdir linkPath source-unmigrated