Repository navigation
Conversation
…l scope A skills-only install (init --manifest-only + sync --only skills) counted every hook, agent, scripts/dev file and settings.json it never installed as drift, and its remedy (sync --force) overwrote the constitution. The manifest now records the install scope in an optional groups field owned by src/lib/manifest.ts; drift and the remedy (sync --only skills --force) are scoped to it. A manifest without the field is a full install. ADR-0014. Entire-Checkpoint: afbcf3d7b9ec
…-a-only-skills-install-warns-n-file-s-diff # Conflicts: # docs/adr/README.md
admarble
deleted the
feature/1409-fix-sync-a-only-skills-install-warns-n-file-s-diff
branch
October 16, 2026 13:40
This was referenced Oct 16, 2026
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
Fix:
.sequant-manifest.jsonnow records the install scope in an optionalgroupsfield, whichsrc/lib/manifest.tsowns.getInstallScope.createManifest(…, { groups })andupdateManifest({ addGroup | full }).init --manifest-onlywritesgroups: [].sync --only skillsadds"skills". A full sync removes the field, recording a full install.sync --onlynever adds the field to a manifest that lacks it, so it can't narrow a full install.Drift:
computeContentDriftfilters the template changes to the recorded scope (filterToInstallScope). A manifest without the field reads as a full install, so the behaviour there is unchanged.Remedy:
scopedRemedy()insync.tsis now the one place that builds the remedy for a partial install. It givessync --only skills --forcefor content drift andsync --only skillsfor a version mismatch. Three places use it:checkAndWarnSkillsOutdatedremediationingetSkillsInstallStatus(used by theservestderr line andsequant://install)sync --only skillsand the version is already currentA full install keeps the old text.
Spec open questions:
sync.tsandversion-preflight.ts;doctor.tsis not changed.syncdefaulting to the recorded scope): not done.updateon a scoped install): not done; needs a follow-up issue.Docs: ADR-0015 (
docs/adr/0015-install-scope-recorded-in-manifest.md; renumbered from 0014, which fix(#1405): a fresh machine starts a PR branch worktree from origin/<branch> #1468 also adds) plus its index row, and a CHANGELOGFixedentry.Pre-PR AC Verification
AC mapping
sync.install-scope.integration.test.ts› AC-1 runs a realinit --manifest-only+sync --only skillsin a temp repo.runVersionPreflight("status")returnscleantwice (the second from the drift cache), andcontentDriftis 0… sync --only skills --force. Running that remedy changes nothing outside.claude/skills/**, the manifest and.claude/.sequant/. The constitution is byte-identical, and no hooks, agents,settings.jsonorscripts/devappearsync.test.tsandversion-preflight.test.tspass with no assertion changesgroups: ["skills"]. A manifest with no field reads as a full install.sync --onlynever narrows a full install. A full sync records a full installRunner check:
npx vitest runoversync.install-scope.integration.test.ts,sync.test.ts,init.test.tsandversion-preflight.test.tsgave 124/124 passed. Full-suite evidence is CI's.Mutation verification
computeContentDriftcount the whole template set again; the AC-1 test failed (AC-2 too, since drift was no longer 1); restored. (exec)scopedRemedyalways return null, so the old full-install remedy prints; onlysync.install-scope.integration.test.ts > #1409 skills-only install scope > AC-2: …failed; restored. (re-run by the runner)init --manifest-onlywrite nogroups; the AC-4 record test failed, along with AC-1, AC-2 and twoinit.test.tscases; restored. (exec)groupsfield read as skills-only; only the AC-4 legacy-manifest test failed; restored. (exec)Open for the owner (before merge)
groupsfield, so AC-4 reads it as a full install, andsync --only skillsnever narrows a full install. QA reproduced it with the built CLI: the warning and thesync --forceremedy stay.doctor's version-mismatch remedy (doctor.ts:537-565)syncon a scoped install (sync.ts:578)update, which installs every group but leavesgroupsunchanged (update.ts:373)Fixes #1409
🤖 Generated with Claude Code