Repository navigation
Closed
Labels
cliCLI commands and interfaceenhancementNew 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: #1193 Tier: mechanical Graph: tracker #1203
Narrowed on 2026-09-28 to the two contradictions every user hits. The product-direction half moved to #1209 (decided: the manifest stays required; init --manifest-only and sync --only skills are added). AC-3, the plugin-user fix, was added on 2026-09-28 per that decision.
Problem.
- The two remedies contradict each other.
- When skills are missing, the skills pre-flight says "run
sequant sync" (skills-preflight.ts:239-241), without saying that sync also rewrites tracked hooks,settings.json,scripts/devand sequant-ownedAGENTS.md. - The run-level message says "commit .claude/skills" (
run-orchestrator.ts:1199-1235).
- When skills are missing, the skills pre-flight says "run
- The README's plugin path doesn't deliver. The plugin section (
README.md:44-48) says no npm is needed and to use/sequant:setup. That skill writes a manifest but no.claude/skills/, and runs need project-scope skills (feat(run): pre-flight the skills install — missing .claude/skills/ should fail fast, not flail for 30 minutes as a spec retry #813). A plugin-only user reachessequant runand fails pre-flight.
AC
- AC-1: The skills pre-flight and the run-orchestrator print one consistent remedy for missing skills, and it names the tracked files
sequant syncwill rewrite. Evidence:npx vitest run src/lib/workflow/skills-preflight.test.ts - AC-2: The README plugin-install section states that
.claude/skills/{spec,exec,qa}must exist and be committed forsequant run, and how to get them. Evidence:grep -n "skills/{spec,exec,qa}" README.md(matches 0 lines on main today; README:59 already mentions.claude/skills/, so a bare.claude/skillsgrep would pass without any change) - AC-3:
/sequant:setupcopies the phase skills (spec,exec,qa) from the installed plugin into.claude/skills/and tells the user to commit them, in all three setup-skill copies. Evidence:grep -n ".claude/skills/spec" skills/setup/SKILL.md .claude/skills/setup/SKILL.md templates/skills/setup/SKILL.md
Related: #813, #1090, #988, #990, #1209.
Graph metadata
- Blocked by: fix(run): spec runs in the main checkout, which the skills pre-flight never checks — a stale checkout silently degrades spec (#933 regression) #1193
- Blocks: feat(adopt):
init --manifest-onlyandsync --only skills— cheap, documented adoption; the manifest stays the single installed marker #1209
May touch
src/lib/workflow/skills-preflight.tssrc/lib/workflow/run-orchestrator.tsREADME.md.claude/skills/setup/SKILL.mdskills/setup/SKILL.mdtemplates/skills/setup/SKILL.md
File overlap (don't run in the same wave; merge one first):
- fix(run): spec runs in the main checkout, which the skills pre-flight never checks — a stale checkout silently degrades spec (#933 regression) #1193:
src/lib/workflow/run-orchestrator.ts,src/lib/workflow/skills-preflight.ts - feat(logs): run log records each phase's model and the sequant version #1198:
src/lib/workflow/run-orchestrator.ts - feat(adopt):
init --manifest-onlyandsync --only skills— cheap, documented adoption; the manifest stays the single installed marker #1209:src/lib/workflow/skills-preflight.ts
Metadata
Metadata
Assignees
Labels
cliCLI commands and interfaceenhancementNew feature or requestgraph-2026-09-fieldField-report graph 2026-09-28: downstream non-Node adoption gapsplannedImplementation plan approved
Activity
[-]feat(adopt): a minimal adoption path — run without a full init, a skills-only remedy, and an honest README plugin path[/-][+]fix(adopt): missing-skills remedies contradict each other, and the README plugin path omits the skills that runs need[/+]admarble commentedon Sep 29, 2026
Context for wave 2 (graph-run #1203) — the blocker #1193 is merged (PR #1211), and it rewrote both remedy sites. On current main the skills pre-flight remedy ("run
sequant syncto install them") is atskills-preflight.ts:284, and the run-level "commit .claude/skills" messages are atrun-orchestrator.ts:1293and:1330. Read ADRdocs/adr/0002-spec-stays-in-main-checkout.md(new in #1211) before you change pre-flight wording, because the remedy must stay consistent with it.Launch constraints (read before starting) — all phases, including the
qaphase:execandqaphases must NOT run the fullnpm test. Every MCP phase has a hard 30-minute wall, and wave-1 exec phases ran 25–29 min. Run only the AC Evidence commands and the test files next to the code you change, in the foreground withtimeout. CI runs the full suite.failedTestfield in<!-- SEQUANT_MUTATION: … -->must start with the test file path (src/…/x.test.ts > describe > case). A describe name or bare test title there floors /qa §6i to AC_NOT_MET.Refs #1203or "tracker tracker(graph): field report 2026-09-28 — downstream non-Node adoption gaps (10 nodes) #1203". Never put a closing verb (Fixes/Closes/Resolves) next to tracker(graph): field report 2026-09-28 — downstream non-Node adoption gaps (10 nodes) #1203 anywhere in the PR body, tables included. The PR should close only this issue.docs(#1203): /spec flags vacuous Evidence — run each check against th…
admarble commentedon Sep 29, 2026
Complexity: Standard (3 ACs, 5 directories)
AC Quality Check
npx vitest run src/lib/workflow/skills-preflight.test.tsalready passes onmaintoday (30/30, verified) with no code change — the AC needs a new test case in that file asserting the unified remedy text (naming the tracked filessequant syncrewrites) before the command gates anything. Add it as part of the fix, scoped to the new assertion, and it must fail before the fix and pass after.main: bothgrepfor.claude/skills/{spec,exec,qa}(README) and.claude/skills/spec(all 3 setup copies) return 0 matches today, so they're non-vacuous as written.## Non-Goalssection in the issue body — scope assessment below has no explicit boundary to read.Scope Assessment
Non-Goals:⚠️ Not found in issue body.
src/lib/workflow, root,.claude/skills/setup,skills/setup,templates/skills/setup)Verdict:⚠️ SCOPE_WARNING — directory spread is inflated by the mandatory 3-way skill mirror (one logical change, three tracked copies per
reference_skill_authoring_pitfalls.md), not genuine scope creep. Issue's own**Tier:** mechanicallabel supports treating this as Standard, not Complex. No split recommended.Acceptance Criteria
AC-1: One consistent missing-skills remedy, naming what
sequant syncrewritesVerification: Unit Test
Scenario: Given a checkout/worktree missing
.claude/skills/{spec,exec,qa}→ WhenrunSkillsPreflight(main-checkout, non-stale case) andrun-orchestrator's worktree-missing-skills path (run-orchestrator.ts:1293,:1330) each produce a message → Then both read as the same remedy and that remedy namessequant sync's full rewrite set: hooks,.claude/settings.json,scripts/dev, and sequant-ownedAGENTS.md(confirmed insrc/commands/sync.ts—force: trueon the "managed skills/agents/hooks trees", plus conditionalAGENTS.mdregeneration).Assumptions: Targets the missing-skills remedy path only. Does not touch the separate ADR-0002 stale-main-checkout remedy (
run-orchestrator.ts:1166), which is intentionally different (sync doesn't fix staleness).AC-2: README plugin-install section documents the skills requirement
Verification: Manual Test (content check — automatable via the AC's own
grep)Scenario: Given a plugin-only user reads the "Inside Claude Code (plugin)" section (
README.md:44-48) → When they finish/plugin install+/sequant:setup→ Then the README already told them.claude/skills/{spec,exec,qa}must exist and be committed beforesequant runworks, and how to get them (points at AC-3's new setup step, orsequant sync).Assumptions: This is documentation only; no runtime behavior changes.
AC-3:
/sequant:setupcopies the phase skills into.claude/skills/Verification: Manual Test (grep evidence + a dry-run of
/sequant:setupin a scratch project)Scenario: Given a plugin user with no npm install → When
/sequant:setupruns → Then it copies${CLAUDE_PLUGIN_ROOT}/skills/{spec,exec,qa}(recursively —skills/qahasreferences/andscripts/subdirs) into.claude/skills/{spec,exec,qa}, tells the user to commit them, and this is present identically in all three mirrored copies (.claude/skills/setup/SKILL.md,skills/setup/SKILL.md,templates/skills/setup/SKILL.md— confirmed byte-identical today, 408 lines each).Assumptions: Mirrors the existing "Copy Constitution Template" step (step 8,
cp "${CLAUDE_PLUGIN_ROOT:-./templates}/memory/constitution.md" ...) already in the same file — same pattern, new step.Implementation Plan
Phase 1: Unify the missing-skills remedy (AC-1)
src/lib/workflow/skills-preflight.ts(~line 284), extend theremedystring to name the fullsequant syncrewrite set (hooks,.claude/settings.json,scripts/dev,AGENTS.md), not just "install them."src/lib/workflow/run-orchestrator.ts, threadpreflight.remedyinto the two worktree-missing-skills messages (~1293, ~1330) instead of the ad hoc "commit .claude/skills" strings currently built independently — todayrun-orchestrator.tsreadspreflight.causebut neverpreflight.remedy(verified by grep), which is exactly how the two sites drifted. Leave the ADR-0002 stale-checkout message (~1166) untouched — different failure mode.skills-preflight.test.tsper the AC Quality Check note above.Phase 2: Document the plugin path's skills requirement (AC-2)
README.md's plugin-install section (~44-48) stating.claude/skills/{spec,exec,qa}must exist and be committed, and pointing at/sequant:setup(post-Phase-3) orsequant sync.Phase 3:
/sequant:setupcopies phase skills (AC-3)setup/SKILL.mdcopies (alongside existing step 8) that recursively copies${CLAUDE_PLUGIN_ROOT:-./templates}/skills/{spec,exec,qa}into.claude/skills/{spec,exec,qa}and tells the user to commit them.Design Review
skills-preflight.ts(already computes it) andrun-orchestrator.ts(already prints it) — no new module. README and setup-skill changes are pure documentation/skill-authoring, no code layer involved.preflight.remedyfield through to the orchestrator's messages rather than hand-writing prose at each call site — that duplication is the literal root cause of the contradiction this issue reports, so the fix should close the path that let them diverge, not just make today's wording match by hand (which would drift again next time either file is touched alone).cp/CLAUDE_PLUGIN_ROOTpattern, just recursive and for three directories instead of one file.skills-preflight.tsalready returns aremedyfield for this;run-orchestrator.tsjust never reads it. A new abstraction would solve an already-solved problem.Feature Quality Planning
All standard checks pass. Notable items:
run-orchestrator.ts) and feat(adopt):init --manifest-onlyandsync --only skills— cheap, documented adoption; the manifest stays the single installed marker #1209 (open,skills-preflight.ts). Neither has an active worktree (checked) — no immediate collision, but don't run in the same wave if either starts; merge one first.Open Questions
sequant syncas a fallback for plugin users, or only the new/sequant:setupcopy step (AC-3)? — Recommendation: mention both, since a plugin user who already ran/sequant:setuponce (before this fix ships) still needs a remedy;sequant syncrequires npm/npx though, which plugin-only users may not have. Impact if wrong: a plugin-only user with a pre-fix.claude/skills/gap gets a remedy that assumes npm.Recommended Workflow
Phases: exec → qa
Quality Loop: disabled
Reasoning: Mechanical, well-scoped fix (issue's own
Tier: mechanicallabel) across 3 ACs with existing test infrastructure already in place (skills-preflight.test.tshas 30 passing tests) — atestgenphase would add ceremony for what's one new test case plus prose edits, not new test scaffolding.Label Review
Current: enhancement, cli, graph-2026-09-field
Recommended: +
plannedReason: Plan reviewed and ready for exec; no additional labels warranted (not UI, not security-sensitive, not a breaking change).
Quality Loop: Won't auto-enable — SCOPE_WARNING is attributable to the mandated 3-way file mirror, not genuine scope creep, and the issue is explicitly
mechanical.admarble commentedon Sep 29, 2026
QA Verdict: AC_NOT_MET
AC coverage: 2/3 met
Gaps:
fix(#1201): main-checkout remedy names what sync rewrites; setup chec…
admarble commentedon Sep 29, 2026
Runner follow-up (graph-run #1203) — QA verdict
AC_NOT_MET. Fixed on PR #1216 @1deb6db5:run-orchestrator.ts, from fix(run): spec runs in the main checkout, which the skills pre-flight never checks — a stale checkout silently degrades spec (#933 regression) #1193) now carries the same sync caveat through a sharedSYNC_REWRITES_NOTE. It still leads withgit pulland keeps fix(run): spec runs in the main checkout, which the skills pre-flight never checks — a stale checkout silently degrades spec (#933 regression) #1193's "no commit .claude/skills here" rule, which the spec wanted preserved (ADR-0002: sync doesn't fix staleness). Orchestrator messages are now asserted in two tests.rm -rfbefore acpthat fails outside a plugin install. It now checks every source first. Ran the snippet: withCLAUDE_PLUGIN_ROOTunset, the committed skill survived and a skip line printed. With it set,spec exec qa _sharedwere copied and the../_sharedlinks resolve.Executed:
npx vitest run src/lib/workflow/skills-preflight.test.ts src/lib/workflow/skills-preflight.integration.test.ts src/lib/workflow/run-orchestrator.test.ts→ 40/40; AC-2/AC-3 greps match. Mutation markers in the PR body.admarble commentedon Sep 29, 2026
QA Verdict: AC_MET_BUT_NOT_A_PLUS
AC coverage: 3/3 met
Gaps:
fix(#1201): _shared in the setup commit list, summary and README; iso…
admarble commentedon Sep 29, 2026
Runner follow-up, round 2 (graph-run #1203). The second QA pass returned
AC_MET_BUT_NOT_A_PLUS. Fixed on PR #1216 @0883e6fd:.claude/skills/_shared.Mutation-verified (marker in the PR body).
npx vitest run src/lib/workflow/skills-preflight.test.ts→ 31/31, and CItest= success.fix(#1201): unify missing-skills remedy, document plugin skills requi…