Repository navigation
Description
Summary
sequant update --dry-run and the actual sequant update (apply) disagree about what will change. In a downstream project whose installed skills predate the <!-- sequant:local-override --> overlay header (added to every bundled SKILL.md in #711 / 2.6.2), --dry-run reports nothing to do, but the apply then rewrites all 17 SKILL.md files (plus AGENTS.md).
Repro
- Have a project whose
.claude/skills/.sequant-versionpredates 2.6.2 and whoseSKILL.mdfiles do not yet contain the<!-- sequant:local-override -->header (i.e. last synced before bug(customization): .claude/.local/skills (and likely hooks) never load — documented override layer is non-functional #711 landed). - Run
sequant update --dry-run:Summary: New files: 0 Modified: 0 ✓ Unchanged: 48 Local overrides: 0 ✔ Everything is up to date! - Run
sequant update --yes. It reports the same "Everything is up to date!" summary — but the working tree now shows 22 modified files: everySKILL.mdgained the 2-line override header,.sequant-version+.sequant-manifest.jsonbumped, andAGENTS.mdrefreshed. - Re-run
sequant update --dry-run→ now correctly reportsModified: 0(converged).
So the first dry-run under-reported by 22 files: it claimed Modified: 0 / Local overrides: 0 while real, applicable template changes were pending.
Impact
--dry-run(the fix(update): no non-interactive path — crashes without a TTY, add --yes #709 preview meant to be trustworthy in CI/automation) gives a false "up to date" for exactly the content driftupdate/syncare supposed to surface — the same content-truth class as fix(update/sync): sync reports 'up to date' on content drift; update overwrites in-place customizations (constitution) #708 / fix(sync): areSkillsOutdated/checkAndWarnSkillsOutdated pre-flight is version-only — misses content drift (sibling of #708) #713.- A releaser/operator relying on
--dry-runto gate an update would skip a genuinely-needed sync.
Hypothesis (lead, not confirmed)
The 2.6.2 templates now ship the <!-- sequant:local-override --> marker in-band. computeTemplateChanges likely keys on that marker to classify a file as local-override/skip when counting Modified, so the dry-run summary excludes files that the apply path (copyTemplates) still writes. The dry-run summary count and the apply write-set need to be reconciled to a single source of truth (the #708/#710 intent), and the override-classifier should distinguish "template ships the marker" from "user added a local override."
Suggested fix direction
- Make the
--dry-runsummary count the exact setcopyTemplateswould write. - Ensure the local-override classifier triggers on a real
.claude/.local/skills/<name>/overrides.mdpresence (the supported mechanism), not on the marker comment embedded in the managedSKILL.mdtemplate itself. - Add a regression test: installed file missing the override header vs template containing it must surface as
Modifiedin--dry-run.
Activity
admarble commentedon Jun 6, 2026
Complexity: Simple (3 implied ACs, 2 directories:
src/commands/,src/lib/)I traced both paths and could not reproduce the literal repro against current
main(2.6.2 HEAD). Two structural facts make the describedupdate --dry-runvsupdate --applydivergence impossible as written:updateshares one source of truth.updateCommandderives its summary and its write-set from a singlecomputeTemplateChanges()call (src/commands/update.ts:169). The apply loop writes onlyapplySet = newFiles + modifiedFiles(update.ts:184-260). The dry-run prints those same counts. They cannot disagree within a run, and--dry-runwrites nothing (locked byupdate.integration.test.ts:212), so a second invocation sees identical state.computeTemplateChangesalready classifies a header-missing SKILL.md asmodified. I reproduced this directly: template-with-header vs installed-without-header →status: "modified", notunchanged. Soupdate --dry-rundoes surface it..claude/.local/twin, not the in-band marker (templates.ts:231-234checksfileExists(localOverridePath)). The issue's suggested-fix docs: Add pre-release checklist #2 is already satisfied in current code.Most likely real mechanism (the apply in the repro refreshed
AGENTS.mdand rewrote every SKILL.md — neither is somethingupdatedoes;updatehas nocopyTemplates/AGENTS.md call):sync, notupdate.syncat a mismatched (pre-2.6.2) version marker skips the content-diff short-circuit andcopyTemplates(force:true)rewrites everything + regeneratesAGENTS.md(sync.ts:291-360). There is nosync --dry-runand the mismatch path emits no per-file preview — so a precedingupdate --dry-run(which uses fresh content-diff) and asyncapply (which uses the version marker) legitimately disagree.npxversion skew: the dry-run ran a cached older CLI whose bundled templates lacked the override header (→unchanged), while the apply ran@latestwhose templates carry it.Recommendation: exec must reproduce first (install a pre-2.6.2-marker fixture, run the exact two commands) to confirm which path diverges, then fix that path. Do not blind-patch
computeTemplateChanges— it is already correct on the axes the issue names. See feedback: evaluate whether a gap can actually occur before writing code.AC Quality Check
The issue has no
- [ ]checklist; ACs are derived from "Suggested fix direction". Derived ACs are concrete/measurable. One latent assumption flagged in AC-1.Scope Assessment
Non-Goals:⚠️ none stated. Recommend bounding to: no behavioral change to the apply write-set itself; no new
sync --dry-runsurface unless repro proves it necessary.src/commands,src/lib)Verdict: ✅ SCOPE_OK
Acceptance Criteria
AC-1: A preview never under-reports the apply write-set
Verification: Integration Test
Scenario: Given a project whose installed
SKILL.mdfiles lack the<!-- sequant:local-override -->header while the bundled templates contain it → When the preview path runs (update --dry-run, and — if repro implicates it — thesyncmismatch path) → Then the reportedModified/to-write count equals the exact set the subsequent apply writes (non-zero).Assumptions (validate in repro): the divergence is reproducible on a pre-2.6.2 marker with a single, consistent CLI version. If it only reproduces under
npxversion skew, the fix is documentation/guard, not logic.AC-2: Local-override classification is driven by a real
.claude/.local/override, not the in-band markerVerification: Unit Test (on
computeTemplateChanges)Scenario: Given a managed
SKILL.mdthat drifted from the template AND no.claude/.local/skills/<name>/twin → When classified → Thenmodified(notlocal-override); Given the same with a.claude/.local/twin present → Thenlocal-override.Note: current code already passes this; the test locks the invariant against regression.
AC-3: Regression test — header-missing installed file vs header-bearing template surfaces as
Modifiedin previewVerification: Integration Test
Scenario: Given installed
qa/SKILL.mdwithout the override header and bundled template with it → When the preview runs → Then that file appears in theModifiedset (count ≥ 1), and a same-state apply writes exactly that file.Implementation Plan
Phase 1: Reproduce & localize (gate)
.claude/skills/.sequant-version= a pre-2.6.2 value,SKILL.mdfiles stripped of the override header; point the CLI at current bundled templates.updateandsync. Capture which command's preview-vs-apply diverges. If neither diverges with a single CLI version, document the version-skew root cause and pivot AC-1 to a guard/doc fix.Phase 2: Fix the confirmed divergence
sync: give the version-mismatch path a truthful pre-apply preview (reusecomputeTemplateChangesto print the write-set beforecopyTemplates), and/or addsync --dry-runso the documented preview surface exists. Reconcile the printed set withcopyTemplates' actual write-set as the single source of truth.updatebug surfaces: reconcile at theapplySet/summary level only.Phase 3: Lock with tests
update.integration.test.tsandtemplates.test.ts; mirror insync.test.tsifsyncis implicated).Design Review
src/lib/templates.ts(computeTemplateChanges/copyTemplates); the preview surfaces live insrc/commands/{update,sync}.ts. Any fix should keepcomputeTemplateChangesas the one set both preview and apply consult — extend the consuming command, not duplicate diff logic.updatepath orcomputeTemplateChangesclassification. Add the regression tests that prove the invariant, and fix only the surface the repro implicates (most likely:syncpreview gap). Rejected: rewriting the override classifier to read the marker — that would re-introduce the exact coupling the issue warns against and break in-place customization protection.Open Questions
sync, notupdate? — Recommendation: assume yes until repro shows otherwise (AGENTS.md refresh + full-tree rewrite aresync-only). Impact if wrong: Phase 2 targets the wrong command.syncgain a--dry-run? — Recommendation: add it only if repro confirmssyncis the diverging path; it's the cleanest way to makesync's preview trustworthy (parity withupdate --dry-run). Impact: small new surface + tests.npxversion skew? — Recommendation: rule it out explicitly in Phase 1 by pinning one CLI version across both commands. Impact: changes the fix class from logic → guard/doc.Recommended Workflow
Phases: exec → qa
Quality Loop: disabled (focused bug; ≤3 ACs)
Reasoning: CLI/logic bug with integration-test verification.
testgenis optional — the three ACs map to a small, well-understood set of integration/unit tests that exec can author inline. Gate exec on Phase 1 reproduction: if the literal bug doesn't reproduce, the deliverable may be regression tests + asyncpreview fix rather than anupdatepatch.Label Review
Current:
bugRecommended:
bug(addneeds-reproif your workflow uses it)Reason: Plan is reproduction-gated; the literal
updatedivergence does not reproduce on current main, so confirm the real path before coding.Quality Loop: Won't auto-enable (SCOPE_OK, ≤8 ACs).
admarble commentedon Jun 6, 2026
/exec progress — implemented (PR #723)
Phase 1 (reproduction gate) — done
Built a pre-2.6.2-marker fixture (header-missing
SKILL.md,.sequant-version = 2.6.1) and ran the real code paths:updatedoes NOT diverge.computeTemplateChangesclassifies all 17 header-missingSKILL.mdasmodified, soupdate --dry-runreports 17 modified, 0 new (+1 protectedlocal-override= constitution) — never the issue's "0 modified".update's summary and write-set come from one call; they can't disagree.syncis the real gap. On a version mismatch,syncskips the content-diff short-circuit and runscopyTemplates(force:true)— rewriting the whole tree (+AGENTS.md) — with no--dry-runand no per-file preview. This matches the repro's symptoms (full-tree rewrite + AGENTS.md refresh aresync-only). The reporter's "apply" wassync, and/ornpxversion skew gave the preceding dry-run older (header-less) templates.Phase 2 (fix)
Added
sequant sync --dry-run/-d: reusescomputeTemplateChanges(single source of truth) to report the exact set the apply writes —new+modified+local-override(the force copy overwrites in-place customizations, so they're counted, never under-reported) — mutates nothing, and exits non-zero when work is pending so the preview can gate CI. Did not touchupdate,computeTemplateChanges, or the apply write-set (spec non-goals).Phase 3 (tests)
sync.test.ts— AC-1 dry-run tests (preview = write-set, no mutation, exit code, local-override counting)templates.test.ts— AC-2 (override keyed on real.claude/.local/twin, not the marker) + AC-3 (header-missing vs header-bearing →modified)AC coverage
.claude/.local/twinModifiedin previewChecks
npm run build✅ ·npm run lint✅ (0 warnings) ·npx vitest run(sync/templates/update-integration/doctor/cli-integration) ✅ 102 passedFiles changed
src/commands/sync.ts,bin/cli.ts,src/commands/sync.test.ts,src/lib/templates.test.ts,CHANGELOG.md,docs/reference/cheat-sheet.mdPR: #723 · Next:
/qa 722admarble commentedon Jun 6, 2026
QA Review for Issue #722 (PR #723)
Reviewed inline (worktree diff, 269 lines / ~67 lines of real logic). Reproduction-gated bug — QA independently re-ran the Phase 1 fixture and confirmed the spec's call.
AC Coverage
sync --dry-runreportsnew+modified+local-override. Fixture verify: preview = 18 (17 modified + 1 override), real apply changed 18 files. Equal, non-zero, no mutation..claude/.local/twin, not the in-band markertemplates.ts:231-234(fileExists(localOverridePath)) unchanged; newtemplates.test.tstest locks: no twin →modified, twin present →local-override.Modifiedin previewtemplates.test.tstest; live repro shows 17 header-missing SKILL.md →modified(never a false "0").Coverage: 3/3 AC items fully met.
Reproduction Re-Verification (gate)
Re-ran the fixture (pre-2.6.2 marker, header-stripped SKILL.md) against the real code:
updatedoes not diverge —computeTemplateChangesclassifies all 17 header-missing files asmodified;update --dry-runreports 17 modified, 0 new, never the issue's "0 modified".update.ts:169derives summary and write-set from one call. The literalupdaterepro is not reproducible — confirmed.syncwas the real gap — version-mismatch path runscopyTemplates(force:true)(full-tree rewrite +AGENTS.md) with no preview surface. The fix adds one.CI Status
build (22.x)typecheckvalidate-pluginvalidate-skillsCI Summary: 4 passed, 0 pending, 0 failed ·
mergeStateStatus: CLEAN. (Diff touches.ts— markdown-only relaxation N/A; all gating checks green.)Quality Metrics
any)Test Coverage Analysis
src/commands/sync.tssrc/commands/sync.test.ts(4 new dry-run tests)bin/cli.ts(flag wiring)sync --help; one-line pass-throughsrc/lib/templates.test.tsCoverage: Core logic fully covered; CLI flag is a trivial pass-through verified by smoke test. Targeted suites: 49 passed; related suites (sync/templates/update-integration/doctor/cli-integration): 102 passed (from exec).
CLI Registration Verification
Option files modified: Yes (
SyncOptionsgaineddryRun)dryRunconst { dryRun } = options+if (dryRun)(sync.ts)-d, --dry-runin bin/cli.tsVerification Status: Passed
Execution Evidence
sequant sync --help-d, --dry-runshownsyncCommand)sync --dry-runon bare repoEvidence status: Complete
Code Review
Strengths:
computeTemplateChanges, the same diffcopyTemplates/update/the pre-flight consult; no duplicated diff logic.copyTemplates(the force-rewrite path). Both branches mutate nothing. Control flow verified for all four (force × version-match) combinations.local-overridebecausesync's force copy overwrites in-place customizations — avoids re-introducing the exact under-reporting update: --dry-run reports "0 modified" but apply rewrites every SKILL.md (dry-run vs apply divergence) #722 describes.bin/cli.ts:656 syncCommand({ quiet: true })is unaffected (nodryRun); exit-code-1 only fires inside the new branch.update,computeTemplateChanges, and the apply write-set untouched (spec non-goals honored).Issues: None blocking.
Suggestions (non-blocking):
sync --dry-runexits non-zero on pending work, butupdate --dry-runexits 0 — an intentional asymmetry (sync is the CI-safe automation surface) but worth aligning eventually.Anti-Pattern Detection
No
any, no empty catches, no secrets, no await-in-loop, no resource leaks introduced. N/A — nopackage.jsonchange.Risk Assessment
computeTemplateChangesmapstemplates/scripts/*→.claude/scripts/*whilecopyTemplatessymlinks them toscripts/dev/*; in a real install.claude/scripts/may not exist, so scripts could show asnewin the preview. Pre-existing and shared withupdate --dry-run(identical source of truth) — not introduced here, and consistency withupdateis the design goal.--helpsmoke + the unit-tested branch). Acceptable for a one-line pass-through.updatealready has--dry-runand a single source of truth; thecheckAndWarnSkillsOutdatedpre-flight is already content-aware (fix(sync): areSkillsOutdated/checkAndWarnSkillsOutdated pre-flight is version-only — misses content drift (sibling of #708) #713);initis first-install (no preview needed).syncwas the only apply surface lacking a preview — now addressed. No unaddressed cross-file siblings.sync.tsthere is exactly one apply path (copyTemplates); the dry-run guard precedes it and the matching-version short-circuit is the only other report path (correctly delegated to). No sibling apply sites.Adversarial Re-Read
Findings: Walked the diff adversarially: (1) ran the implementation against the issue's verbatim motivating example — the literal
update --dry-run"0 modified" does NOT reproduce (update reports 17 modified), validating that the fix correctly targetssyncrather than blind-patchingupdate; (2) audited the evidence claims — the "preview 18 = apply 18" is a genuine post-fix validation (the--dry-runflag is net-new), not a pre-fix bug repro; (3) inspected process state — clean tree, branch 0 behind main, all changes committed; (4) cited sibling sites (above); (5) checked Non-Goals — the apply write-set is unchanged, andsync --dry-runwas added only because the repro implicatedsync(within the spec's stated condition). One real follow-up surfaced: the new truthful preview reveals thatsync(version-mismatch or--force) overwrites in-place customizations including.claude/memory/constitution.md— confirmed in the fixture (real apply changed the constitution), whereasupdateprotects it (#708/#711). This is pre-existing, out of #722's scope (explicit non-goal: no apply-write-set change), and the PR surfaces it correctly. Recommend a follow-up issue to givesyncthe same in-place-customization protectionupdatehas.Status: Gaps Found (follow-up recommendation; no missing AC)
CHANGELOG Verification
fix(#722)commit)[Unreleased]entry### Added, references #722)Result: CHANGELOG requirements met.
Verdict: AC_MET_BUT_NOT_A_PLUS
All 3 ACs are MET with strong execution evidence (preview write-set proven equal to the real apply write-set), CI is green, build/lint/tests pass, CLI wiring is correct, and the spec non-goals are honored. This is high-quality, well-scoped, well-tested work and is mergeable.
Not flagged
READY_FOR_MERGEonly because QA surfaced a meaningful (pre-existing, out-of-scope) behavior worth tracking:syncoverwrites in-place customizations (constitution) on the mismatch/force path, which the new dry-run now truthfully reports. Recommend a follow-up issue; it does not block this PR.Documentation
[Unreleased]entry addeddocs/reference/cheat-sheet.mdupdated withsync --dry-run/docs 722if admin-facing docs are desiredNext Steps
sync(mismatch/--force) overwrites in-place customizations (constitution) — give itupdate'slocal-overrideprotection" (fix(update/sync): sync reports 'up to date' on content drift; update overwrites in-place customizations (constitution) #708/bug(customization): .claude/.local/skills (and likely hooks) never load — documented override layer is non-functional #711 family).update --dry-runexit-code behavior withsync --dry-run(exit non-zero on pending work) for a consistent CI-gate contract.admarble commentedon Jun 6, 2026
Quality Loop Complete — No Iteration Needed
Issue: #722 · Iterations: 0/3 · Final Status: READY (mergeable; no AC gaps)
The loop parsed the QA verdict (
AC_MET_BUT_NOT_A_PLUS) and found no actionable AC gaps:NOT_MET, 0PARTIALLY_MET)mergeStateStatus: CLEAN· HEADf8cd04eunchangedThe single QA finding is a prose recommendation, not an unmet AC: the new truthful
sync --dry-runpreview surfaces a pre-existing behavior wheresync(version-mismatch /--force) overwrites in-place customizations (constitution), unlikeupdate. Fixing that would change the apply write-set — the explicit non-goal of #722's spec — so it belongs in a separate follow-up issue, not this loop.No code changes made (iterating would either no-op against the No-Diff Guard or introduce out-of-scope creep).
Recommended next steps
syncthe samelocal-overrideprotectionupdatehas (fix(update/sync): sync reports 'up to date' on content drift; update overwrites in-place customizations (constitution) #708/bug(customization): .claude/.local/skills (and likely hooks) never load — documented override layer is non-functional #711 family).admarble commentedon Jun 7, 2026
QA Re-Review (fresh session) for Issue #722 — PR #723
Independent second-look at commit
f8cd04e(a full QA already exists at this SHA; this is a fresh-session re-verification, not a re-post). I concur with the prior verdict.What I re-verified independently
npm run build(tsc)sequant sync --help-d, --dry-runregistered and wired tosyncCommandbuild 22.x,typecheck,validate-plugin,validate-skills),mergeStateStatus: CLEANAC Coverage (independently confirmed)
sync --dry-runreportsnew + modified + local-override(sync.ts:323–390), reuses the samecomputeTemplateChanges()the apply consults; tests assert nocopyTemplates/writeFileandexitCode === 1on pending work..claude/.local/twin (not in-band marker)templates.ts:231-234unchanged (fileExists(localOverridePath)); new test proves no-twin →modified, twin →local-override(also proves SKILL.md isn't blanket-isCustomizableFile).Modifiedtemplates.test.tsregression; the literalupdate --dry-run"0 modified" repro is structurally impossible (onecomputeTemplateChangescall drives both summary & write-set; header-missing classifiesmodified).Scope-pivot judgment
The issue names
update --dry-run; the PR fixessync --dry-runinstead. This is not scope creep — the approved/specwas explicitly reproduction-gated and pre-authorized exactly this pivot ("addsync --dry-runonly if repro confirmssyncis the diverging path"). Theupdatenon-reproduction is test-backed (AC-3 passes), and spec non-goals (no change toupdate/computeTemplateChanges/apply write-set) are honored.Adversarial re-read
--dry-runcorrectly delegates to the report-only short-circuit (sync.ts:292–321): reports drift + exits 1, mutates nothing. Minor UX note: that path prints "runupdateorsync --force" rather than the per-file preview list — cosmetic, not a defect.copyTemplates(force:true)force-writes all template files, but observable changes (git) =new+modified+local-override= the preview count. The one pre-existing seam (templates/scripts/*path mapping) is shared withupdate --dry-run— not introduced here.syncon force/version-mismatch overwrites in-place customizations incl..claude/memory/constitution.md, whichupdateprotects (fix(update/sync): sync reports 'up to date' on content drift; update overwrites in-place customizations (constitution) #708/bug(customization): .claude/.local/skills (and likely hooks) never load — documented override layer is non-functional #711). The new dry-run now truthfully surfaces this; recommend a follow-up issue to givesyncupdate'slocal-overrideprotection. Does not block this PR.Verdict: AC_MET_BUT_NOT_A_PLUS
All 3 ACs MET, CI green, build/tests pass, CLI wiring correct, scope pivot legitimate and spec-sanctioned. Mergeable. Not
READY_FOR_MERGEonly because of the (pre-existing, out-of-scope) sync-overwrites-customizations behavior worth tracking as a follow-up.Next steps
sync(force/version-mismatch) overwrites in-place customizations (constitution) — give itupdate'slocal-overrideprotection" (fix(update/sync): sync reports 'up to date' on content drift; update overwrites in-place customizations (constitution) #708/bug(customization): .claude/.local/skills (and likely hooks) never load — documented override layer is non-functional #711 family).admarble commentedon Jun 7, 2026
/fullsolve QA — #722 (verdict: READY_FOR_MERGE)
Existing PR #723 already resolves this. I re-verified the implementation against the issue's three suggested-fix directions, with emphasis on adversarially checking the PR's central reframing.
Key finding: the PR's reframing is correct
The issue hypothesizes
update --dry-runis broken. It is not. Verified in source:updatederives both its summary counts and its apply write-set from a singlecomputeTemplateChanges()call (src/commands/update.ts:169,172-186) — they cannot diverge..claude/.local/twin (hasLocalOverride) — not the in-band<!-- sequant:local-override -->marker (src/lib/templates.ts:231-242). A header-missingSKILL.mdwith no.local/twin →status: "modified".updatereturns at the empty-applySet short-circuit before any write (update.ts:188-199), so "Everything is up to date" + 22 writes is impossible in one invocation on current code — confirming the reporter sawnpxversion skew (dry-run ran pre-bug(customization): .claude/.local/skills (and likely hooks) never load — documented override layer is non-functional #711 templates, apply ran 2.6.2 templates), not anupdatebug.The real remaining gap was that
synchad no preview and silentlycopyTemplates(force:true)rewrote the whole tree. The PR closes that.AC coverage (from issue's "Suggested fix direction")
sync --dry-runreportsnew + modified + local-override(force overwrites in-place customizations, so they're counted, never under-reported); mutates nothing; exits non-zero when work is pending so it can gate CI..local/, not the marker: verified in source; locked by regression testtemplates.test.tsAC-2.templates.test.tsAC-3, real-fs, passing.Verification
templates.test.ts+sync.test.ts), real filesystem (not mocked classifier).-d, --dry-runregistered, Commander →dryRunmatchesSyncOptions.docs/reference/cheat-sheet.mdupdated.Risk assessment
--dry-runfalls through the report-only short-circuit (prints "version current but N differ" rather than the full per-file preview) — functionally correct (never mutates, exits 1 on drift), minor UX asymmetry only.copyTemplates(force)technically also rewritesunchangedfiles with byte-identical content. The reported set (new+modified+local-override) is the correct observable change-set — reporting identical-byte rewrites would be noise.Recommendation: merge #723. Left for human merge gate (no auto-merge).
admarble commentedon Jun 8, 2026
Follow-up filed: #724 —
update --dry-runexit-code parity withsync --dry-run(set exit 1 on pending changes). Split out from this fix because it changesupdate --dry-run's exit code (always-0 → 1-on-pending), which is a potential breaking change for scripts and warrants its own release note. PR #723 remains ready to merge as-is.fix(#722): add sync --dry-run so the sync preview can't under-report …
fix(#724): exit non-zero on update --dry-run when work is pending (#725)
fix(#814): plain sync preserves CUSTOMIZABLE_FILES (constitution) (#815)
fix(#814): plain sync preserves CUSTOMIZABLE_FILES; separate overwrit…
fix(#1090): announce a preserved file once, and make the post-copy re…