Repository navigation
fix(#1485): plain sync and doctor still steer a skills-only install into a full install — sync ignores the recorded scope, doctor names bare sync - #1498
Merged
admarble merged 3 commits intoOct 18, 2026
Conversation
…t path name the scoped remedy Entire-Checkpoint: b626638b5c2c
…eal scopedRemedy Entire-Checkpoint: 3f553fdb0011
…ays --only skills was passed Entire-Checkpoint: 59b8ee651d1a
6 tasks
admarble
deleted the
feature/1485-fix-sync-plain-sync-and-doctor-still-steer-a-skill
branch
October 18, 2026 23:49
Closed
6 tasks done
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
Plain
syncnow keeps a skills-only scope, anddoctorand the sync fast path name the scoped fix. Exec's change is6d85d29ce. The runner's fixes after QA aref55b0a901and19e19f545(see Runner fix after QA).Changes
src/commands/sync.ts:skillsOnlyis resolved once after the manifest is read, from--only skillsor a manifest withgroupsincluding"skills". That one decision now covers the fast path, the dry-run preview, the apply filter and the manifest write.copyTemplatesalso gets the effective scope. Before this, the rawonlyflag was passed through and hooks would still have been written.scopedRemedy.sequant init)".groups, orgroups: [], still gets a full sync.src/commands/doctor.ts: the Skills Version check usesscopedRemedy. A manifest with nogroupsand no.claude/hooks,.claude/settings.jsonor.claude/agentsgets an advisory naming the"groups": ["skills"]hand edit.getInstallScopeis untouched.src/mcp/server.ts: thesequant://installdescription no longer says "runsequant update".sequant initwidens it. Thesed … | grep -c "sequant init"check prints 1.CHANGELOG.md: added an entry for this fix and corrected the unreleased fix(sync): a --only skills install warns 'N file(s) differ' forever, and the suggested sync --force overwrites the repo's constitution #1409 line that said a full sync removes the scope.sync.install-scope.integration.test.ts, and for AC-2 and AC-3 indoctor.test.ts.Checks
npm run buildandnpm run lintpass.npx vitest run --changed origin/mainplus the named test files, the update tests,src/mcpandscripts/qa/tautology-detector-cli.test.ts. 235 tests passed.vi.mocklist ofmanifest.jsneeded no change:doctornever callsgetInstallScope.doctor.tsnow also exportsformatSkillsOutdatedMessage.doctor.test.tsmocks./sync.js, so its AC-2 test exercises the call site and not the realscopedRemedy.Mutation results
Each mutation was applied on top of the committed change, the test failed, and I restored it.
skillsOnlyfrom--onlyalone failed two tests, "plain sync keeps a skills-only scope" and its--dry-runvariant.scopedRemedy's partial branch return the full-install text failed "no remedy widens a partial install".undefinedin thedoctorcall failed "names sync --only skills on a skills-only install".groupscheck failed "advises the groups edit when hooks, settings and agents are all absent".Runner fix after QA
QA returned AC_NOT_MET (5/6). AC-4 requires its test to check every per-install producer through
scopedRemedy, anddoctorwas missing:doctor.test.tsmocksscopedRemedy, and the integration test never ran doctor's message. The QA run also cut off the AC-4 marker and never wrote the AC-5 one.f55b0a901: doctor'sSkills Versionwarning moved into an exportedformatSkillsOutdatedMessage(status, cli)indoctor.ts, anddoctorCommandcalls it. The AC-4 test now pushes that message (outdated variant, realareSkillsOutdatedand the realscopedRemedy) into the checked lines. It asserts- run: sequant syncis present, so the doctor line can't drop out silently.f55b0a901, with the test filter, then the whole file, and restored afterwards (15/15 pass):Mutation-verified: AC-4 —
scopedRemedy's partial branch returns the full-install text; "no remedy widens a partial install" failed (1 failed, 14 skipped; the whole file had 3 failed, AC-1 and #1409 AC-2 among them); restored.Mutation-verified: AC-4 (doctor only) —
formatSkillsOutdatedMessagepassesundefinedas the scope; "no remedy widens a partial install" failed, and it was the only failure in the file; restored.Mutation-verified: AC-5 —
skillsOnlyderived from--onlyalone; "plain sync keeps a skills-only scope" and its--dry-runvariant failed; restored.Mutation-verified: AC-2 — re-run on
f55b0a901: scope replaced withundefinedinformatSkillsOutdatedMessage; "names sync --only skills on a skills-only install" failed; restored.Evidence commands, run verbatim on
f55b0a901: AC-1 1 passed; AC-2 2 passed; AC-3 3 passed; AC-4 1 passed; AC-5 3 passed (0 failed in all five); AC-6 printed1.npx tsc --noEmitis clean. The freeze grep printed nothing.QA re-run on
f55b0a901: NEEDS_VERIFICATION, 6/6 met. The only blocker was CI still pending. QA also dropped one finding as cosmetic: a plainsyncthat kept the skills-only scope ended with "Skills have been updated (--only skills: …)", naming a flag the user never passed. That line gives the wrong cause of the scoping, so I fixed it:19e19f545: the summary now names the actual cause:--only skillswhen the flag was passed, andskills-only installwhen the manifest's scope was kept. The new test "plain sync keeps a skills-only scope: the summary names the recorded scope, not a flag the user never passed" is under the AC-5 filter.Mutation-verified: AC-5 (summary text) — the summary hardcodes
--only skillsagain; the new summary test failed (1 failed, 15 passed); restored, 16/16 pass.Fixes #1485
🤖 Generated by
sequant run