Repository navigation
Closed
Labels
enhancementNew feature or requestgraph-2026-09-fieldField-report graph 2026-09-28: downstream non-Node adoption gapsplannedImplementation plan approved
Description
Epic: field-2026-09-28 (downstream non-Node adoption) Blocked by: #1201 Tier: mechanical Graph: tracker #1203
Decided 2026-09-28 (owner). This issue was a human gate; the ACs below record the decision. Split out of #1201.
Decision.
runkeeps requiring.sequant-manifest.json. The manifest is the single "installed" marker:doctor,status,update,sync,version-preflight,index.ts,runandsequant://install(fix(mcp): sequant://install is computed once at server start and swallows errors — reports "not installed" after a later init or on any read error #1195) all read it. A manifest-optionalrunwould create a second definition of installed that all of them would have to reconcile. Instead, creating a manifest becomes cheap and documented. The minimal manifest is not a hack:inititself writesfiles: {}(manifest.ts:75), and nothing readsfiles.syncgains a group selector,--only skills. Since fix(sync/init/update): one ownership rule for project files — the clobbering class fixed file-by-file in #708/#814/#990/#1042/#1071/#1078 #1090 and sync overwrites .claude/settings.json wholesale, deleting project-owned hook matcher groups #1078,syncpreserves user-modified files, so it doesn't clobber. The remaining objection is additions: hooks, agents andscripts/devlanding in a repo that only wanted the phase skills.
Rejected: a manifest-optional run (two installed-markers), and documenting a manual copy instead of a flag (it drifts from the package version).
AC
- AC-1:
sequant runwith no manifest exits non-zero, prints the minimal manifest JSON (version,stack,installedAt,files: {}), and says that file alone is sufficient, or thatsequant init --manifest-onlywrites it. Evidence:npx vitest run src/commands/run.test.ts - AC-2:
sequant init --manifest-onlycreates.sequant-manifest.jsonand no other file, leaves an existing manifest untouched, and is registered with.option()inbin/cli.ts. Evidence:npx vitest run src/commands/init.test.ts - AC-3:
sequant sync --only skillswrites nothing outside.claude/skills/**and.sequant-manifest.json, and is registered with.option()inbin/cli.ts. Evidence:npx vitest run src/commands/sync.test.ts - AC-4: The skills pre-flight's missing-skills remedy (made consistent by fix(adopt): missing-skills remedies contradict each other, and the README plugin path omits the skills that runs need #1201) and the README's "Commit
.claude/skills/" note (README:59, which says the fix issequant sync) both namesequant sync --only skills. Evidence:npx vitest run src/lib/workflow/skills-preflight.test.ts
Graph metadata
May touch
bin/cli.tssrc/commands/run.tssrc/commands/init.tssrc/commands/sync.tssrc/lib/workflow/skills-preflight.tsREADME.md
File overlap (don't run in the same wave; merge one first):
- fix(adopt): missing-skills remedies contradict each other, and the README plugin path omits the skills that runs need #1201:
src/lib/workflow/skills-preflight.ts,README.md
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestgraph-2026-09-fieldField-report graph 2026-09-28: downstream non-Node adoption gapsplannedImplementation plan approved
Activity
[-]decision(adopt): should `sequant run` work without a manifest, and should `sync` gain a skills-only mode?[/-][+]feat(adopt): `init --manifest-only` and `sync --only skills` — cheap, documented adoption; the manifest stays the single installed marker[/+]admarble commentedon Sep 29, 2026
Context before wave 3 (main @ 1b0fa9a). #1201 has merged (PR #1216). What it changed that this issue's AC-4 now depends on:
skills-preflight.tsbuilds one sharedremedystring, with aSYNC_REWRITES_NOTE(defined around:45) that names whatsequant syncrewrites.run-orchestrator.tsthreadspreflight.remedyinto both worktree messages. AC-4 should change that single remedy. Do not add a second message..claude/skills/" note is now atREADME.md:61(was :59). fix(adopt): missing-skills remedies contradict each other, and the README plugin path omits the skills that runs need #1201 also added a plugin-install paragraph atREADME.md:52. It sayssequant syncis not an option for a plugin-only setup, and that/sequant:setup(3 mirrored SKILL.md copies) copies the phase skills in.sync --only skillswording must not contradict that paragraph. The plugin-only path still has no npm.Run rules for the phase agents (spec, exec and qa):
npm test. Run the targetednpx vitest run <files>named in the ACs, in the foreground with atimeout. Every MCP-dispatched phase has a hard 30-minute wall, and in wave 2 an exec ran up to 27 minutes. This applies to the qa phase too, not only exec.failedTestmust start with the test file path (src/…test.ts > <describe> > <case>). If it starts with a describe name, §6i floors the verdict to AC_NOT_MET.Closes #<this issue>for this issue andRefs #1203for the tracker. NeverCloses #1203..sequant/settings.jsonmust handle JSONC (comments and trailing commas), not bareJSON.parse/jq.admarble commentedon Sep 29, 2026
Complexity: Standard (4 ACs, ~5 directories)
AC Quality Check
Parser note (non-blocking):
extractAcceptanceCriteriareturns 0 items for this issue — every AC line is- AC-N: ...with no- [ ]/- [x]checkbox, andac-parser.ts's five patterns all require one. Scope assessment then self-skips ("Trivial issue (0 AC items, 0 directories)"). This is the same house style #1201 (the issue this one was split from) used, and that shipped through spec→exec→qa fine — so this is a known, accepted format for this graph's decision issues, not a defect to fix here. Flagging only so state.json's AC tracking isn't mistaken for "nothing to check."Each AC is otherwise well-formed: one line, a concrete
Evidence:command naming a real test file, no vague/unmeasurable language.No
## Non-Goalsheading (consistent with #1201's format — a decision record, not a feature request).Scope Assessment
Non-Goals:⚠️ Not present (see AC Quality Check — decision-issue format).
Manual read (tool self-skipped on 0 parsed AC): 3 distinct changes (manifest-only init, sync group selector, remedy-message consistency) across ~5 directories (
bin/,src/commands/,src/lib/,src/lib/workflow/, repo root forREADME.md) plus 4 test files. Bounded and mechanical, matching the issue's ownTier: mechanicallabel.Verdict: ✅ SCOPE_OK (manual read; not machine-verified — see note above)
Acceptance Criteria
AC-1:
sequant runwith no manifest names the minimal manifest andinit --manifest-onlyVerification: Integration Test
Scenario: Given no
.sequant-manifest.jsonin cwd → Whensequant run <issue>is invoked → Then it exits non-zero, prints a minimal manifest JSON shape (version,stack,installedAt,files: {}), and states either "that file alone is sufficient" or thatsequant init --manifest-onlywrites it.Assumptions:
run.ts:57-61's currentrejectPreflight("❌ Sequant is not initialized. Run \sequant init` first.")is the exact site to replace; no test currently asserts this message (checkedrun.test.ts`), so this is new coverage, not a rewrite of an existing assertion.AC-2:
sequant init --manifest-onlyVerification: Integration Test
Scenario: Given a project with no manifest → When
sequant init --manifest-onlyruns → Then only.sequant-manifest.jsonis created (no.claude/,.sequant/logs, templates, etc.). Given a manifest already exists → When run again → Then it is left byte-identical.Assumptions: Stack resolution for the minimal manifest is non-interactive by construction (detect or fall back to
"generic", mirroringinitCommand's existingskipPromptsdefault) — this flag has no interactive mode.AC-3:
sequant sync --only skillsVerification: Integration Test
Scenario: Given an initialized project → When
sequant sync --only skillsruns → Then only paths under.claude/skills/**and.sequant-manifest.jsonare written;.mcp.json,AGENTS.md,.opencode/,scripts/dev/,.claude/settings.json,.claude/agents/,.claude/hooks/,.claude/memory/are untouched.Assumptions:
--dry-run --only skillsmust preview the same restricted set (parity with the existing dry-run/apply invariantsync.tsalready enforces for plain sync, #722/#1030).AC-4: Consistent
sequant sync --only skillsremedyVerification: Integration Test⚠️ This is not a literal string swap.
Scenario: Given a missing skill triggers the pre-flight → When the remedy is printed (worktree case via
skills-preflight.ts'sremedyfield, and main-checkout case viarun-orchestrator.ts's inline message) → Then both namesequant sync --only skills. Given the README's "Commit.claude/skills/" note → Then it names the same command.Assumptions:
skills-preflight.test.ts(the evidence file) exercises both sites throughRunOrchestrator.run()— see Implementation Plan Phase 3.Implementation Plan
Phase 1:
sync --only skills(AC-3) — do first, AC-4's remedy names itonly?: "skills"toCopyTemplatesOptions(src/lib/templates.ts); incopyTemplates, skip theagents/hooks/memorycopyDircalls, the scripts/dev symlink-or-copy step, and the.claude/settings.jsonwrite whenonly === "skills"— keep only theskillscopyDirand the skills-version-marker write.syncCommand(src/commands/sync.ts), threadoptions.onlythrough: skipsyncSequantMcpPin, AGENTS.md regen/preview, anddecideOpencodeShimSync/refreshOpencodeShimentirely whenonly === "skills". Filter thecomputeTemplateChangesresult (both the version-match fast path and the--dry-runpreview) to paths under.claude/skills/before reporting, so the printed summary matches what actually gets written.--only <group>to thesynccommand inbin/cli.ts, validated against an allow-list (currently just["skills"]) the same wayvalidatePhasesFlagvalidates--phases— reject an unknown group with a clear error rather than silently ignoring it.Phase 2:
init --manifest-only(AC-2)initCommand(src/commands/init.ts), add an early branch mirroring the existing--upgrade-skillsearly-return (right afterassertTemplatesDirExists): ifoptions.manifestOnly, checkgetManifest()— if present, report "already exists, left untouched" and return; if absent, resolvestacknon-interactively (options.stack ?? (await detectStack()) ?? "generic"), callcreateManifest(stack, packageManager), print confirmation, and return before any directory/template/settings work.--manifest-onlyto theinitcommand inbin/cli.ts.Phase 3: Unify the remedy message (AC-4) — depends on Phase 1
src/lib/workflow/skills-preflight.ts: change theremedyfield's recommended command to`sequant sync --only skills`. The trailing(${SYNC_REWRITES_NOTE})parenthetical becomes false for this command (--only skillsdeliberately does not rewrite hooks/settings/scripts/AGENTS.md) — replace it with an accurate note (e.g., "writes only.claude/skills/**and the manifest") rather than dropping the caveat silently.src/lib/workflow/run-orchestrator.ts:1166-1174: same swap for the main-checkout abort message (currently`run \`sequant sync\` in it (${SYNC_REWRITES_NOTE})`).skills-preflight.test.tsthat currently expectSYNC_REWRITES_NOTE's content (hooks /.claude/settings.json/scripts/dev/AGENTS.md) in the remedy text — lines ~266-273, ~564, ~592, ~625-626. These will fail once the caveat text changes; update them to assert the new note instead of deleting the coverage.README.md's "Commit.claude/skills/" note (~line 59): change`sequant sync`to`sequant sync --only skills`.Design Review
init.ts/sync.ts(command layer) for the two new flags,templates.ts(the existing copy/diff engine) for the skills-only scoping,skills-preflight.ts+run-orchestrator.tsfor the remedy text — each change extends the module that already owns that behavior.only?: "skills"filter through the existingcopyTemplates/computeTemplateChanges/ownership-decision machinery. Rejected: a standalonesyncSkillsOnly()that callscopyDiron.claude/skillsdirectly — cheaper to write, but re-opens the exact dry-run/apply divergence update: --dry-run reports "0 modified" but apply rewrites every SKILL.md (dry-run vs apply divergence) #722 and fix(sync): dry-run lists files apply never writes — the template walk maps templates/opencode/** to .claude/opencode/** (phantom drift nag in serve; update plants unrendered {{PHASE}} files) #1030 already fixed by centralizing that logic once.--upgrade-skills's early-return branch ininitCommand(for--manifest-only);validatePhasesFlag's CLI allow-list validator (for--only);resolveOwnershipDecisions/printOwnershipDecisions's single-source-of-truth pattern (for--only skillspreview/apply parity).--only skillsreally touch nothing else?" — AC-3's evidence must assert.mcp.json/AGENTS.md/.opencode/are byte-identical after the run, not just that skills changed. Also: the owner already rejected a manifest-optionalrunand a manual-copy doc in the issue's own Decision section — that trade-off is settled, not open for re-litigation in this PR.ADR: Design Review Q2 names a rejected alternative (a standalone skills-only writer). Per
docs/adr/README.md, the exec PR should adddocs/adr/0003-<slug>.mdrecording the "threadonlythrough the existing copy/diff/ownership pipeline" decision — can be short, matching the issue's own "mechanical" framing.Feature Quality Planning
All standard checks pass. Notable items:
[Unreleased]/Added(see the feat(pr): opt out of closing keywords —Refs #Nfor issues a PR should not close #1197/chore(upstream+skills): close the v2.1.42→2.1.281 gap and fold native engineering rubrics as portable references #1135 entries); exec should add one covering both new flags.Open Questions
run-orchestrator.ts's main-checkout remedy (Phase 3, step 2) really change too, or onlyskills-preflight.ts's ownremedyfield? — Recommendation: change both.skills-preflight.test.ts(the AC-4 evidence file) exercises the orchestrator's message directly viaRunOrchestrator.run()(see tests at lines ~594-627), so leaving it as baresequant syncwould fail the evidence command and reintroduce the exact inconsistency fix(adopt): missing-skills remedies contradict each other, and the README plugin path omits the skills that runs need #1201 fixed. Impact if wrong: AC-4's own evidence command fails, or the two messages drift apart again.Minimal manifest: {"version": "<pkg>", "stack": "generic", "installedAt": "<iso>", "files": {}} — write it yourself, or run \sequant init --manifest-only`.` Impact if wrong: low, AC-1 only requires the three named elements be present, not exact copy.Recommended Workflow
Phases: spec → testgen → exec → qa
Quality Loop: disabled
Reasoning: All 4 ACs declare
Evidence:resolving tonpx vitest run <file>.test.tsagainst existing integration-style suites (Integration Test method) — testgen stubs the 4 new cases acrossrun.test.ts/init.test.ts/sync.test.ts/skills-preflight.test.tsbefore implementation. Scope is bounded and well-specified (owner already made the design decision in the issue body); nocomplex/refactorlabel, no UI surface — quality loop not warranted.Label Review
Current: enhancement, graph-2026-09-field
Recommended: enhancement, graph-2026-09-field, planned
Reason: Planning complete; no scope-warning or complexity signal to add further labels.
Quality Loop: Won't auto-enable — SCOPE_OK (manual read), no complexity label.
→
gh issue edit 1209 --add-label plannedadmarble commentedon Sep 29, 2026
Test Stubs Generated
Counts explained:
Integration Test Stubs (colocated, matching this repo's convention — not
__tests__/integration/)src/commands/run.test.ts—describe("runCommand manifest pre-flight (#1209 AC-1)")init --manifest-only/initpointer, non-zero exit)vi.mock("../lib/manifest.js")and importedrunCommand(not previously exercised in this file)src/commands/init.test.ts—describe("--manifest-only (#1209 AC-2)").sequant-manifest.json; existing manifest left byte-identical on re-run)"generic")getManifestto the existing../lib/manifest.jsmocksrc/commands/sync.test.ts—describe("--only skills (#1209 AC-3)").claude/skills/**+ manifest;--dry-run --only skillspreviews the same restricted set)--onlygroup value)onlyis not yet onSyncOptions— Phase 1 of the spec's implementation plan adds it; stubs anticipate that shape via a type-only castsrc/lib/workflow/skills-preflight.test.ts— two new casesrunSkillsPreflight(feat(run): pre-flight the skills install — missing .claude/skills/ should fail fast, not flail for 30 minutes as a spec retry #813 AC-1/AC-3): remedy namessequant sync --only skillsRunOrchestrator(fix(run): skills preflight validates the main checkout, not the worktrees agents run in (#813 follow-up) #933) main-checkout case: abort message namessequant sync --only skillsNot covered by these stubs
.claude/skills/" note) assertion — the AC'sEvidence:command only runsskills-preflight.test.ts, which cannot assert README prose. Left as a manual/exec-time check.--only <group>and--manifest-onlyflag registration inbin/cli.ts— no dedicated CLI-flag test file exists in this repo; covered implicitly by the command-level stubs above plus manual verification during/exec.All 10 new stubs were run and confirmed to fail on
throw new Error(...)(not on unrelated mock/setup crashes) against the current (pre-implementation) code —npx vitest run src/commands/run.test.ts src/commands/init.test.ts src/commands/sync.test.ts src/lib/workflow/skills-preflight.test.ts: 10 failed (all stub markers) / 275 passed (pre-existing, untouched).Next steps:
throw new Error(...)with actual test logic)/exec 1209to implement the featurenpm testGenerated with Claude Code
admarble commentedon Sep 29, 2026
Resuming exec (2026-09-29). The first wave-3 run was killed at 16:24 UTC by the MCP no-progress watchdog, which fires after 30 minutes with no phase boundary. This exec had been running for 36 to 44 minutes. Your committed WIP is on the branch and in the worktree, so pick up from it; do not start over.
npm testin exec or in qa. The last WIP commit said "before mutation testing and full suite". The full suite takes 10 to 13 minutes, and it is what pushed this phase past the wall. Run only the targetednpx vitest run <files>from the ACs, plusnpx tsc --noEmit, in the foreground with atimeout. The runner runs the full suite.git statusever shows tracked files deleted that you did not delete, stop and say so. Do not commit them. After the kill, the feat(logs): run log records each phase's model and the sequant version #1198 worktree had 44 top-level tracked files deleted (bin/, evals/, stacks/, CHANGELOG.md, LICENSE, …); the runner has restored them.admarble commentedon Sep 29, 2026
QA Verdict: AC_MET_BUT_NOT_A_PLUS
AC coverage: 4/4 met
Gaps:
fix(#1209): manifest-missing message names the file; sync --only skil…
admarble commentedon Sep 29, 2026
Runner verification of PR #1221 (QA: AC_MET_BUT_NOT_A_PLUS, 4/4), now at 4795bc1
QA's two
fix_nowfindings were real, and both are fixed:run's manifest-missing message now names.sequant-manifest.json, and the AC-1 test asserts it.sync --only skillsno longer prints "Skills, hooks, and memory files have been updated." It now says only skills and the manifest were written, and a new test covers it.Checks the runner ran:
tsc --noEmitis clean. The five AC test files passed: 291 tests.npm run build, in a fresh temp git repo), covering QA's "no real-filesystem test" note:init --manifest-onlycreated only.sequant-manifest.json.sync --only skillswrote 48 paths under.claude/skills/**plus.sequant-manifest.json, and nothing else.feat(#1209): feat(adopt):from the title.closingIssuesReferencesis [1209].Note: the resumed exec ran for 24 minutes and made no new commits. The earlier WIP commits carried all the work.
feat(#1209): `init --manifest-only` and `sync --only skills` — cheap,…