You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: Interactive stack selection and multi-stack support in /setup #197
Update template processing to read from stack config
Generate combined {{STACK_NOTES}} with all stack sections
Verification Criteria
AC-4 Test Scenario:
Given: Monorepo with frontend/next.config.js and backend/requirements.txt
When: detectAllStacks() is called
Then: Returns [{ stack: "nextjs", path: "frontend" }, { stack: "python", path: "backend" }]
AC-5 Test Scenario:
Given: User selected Next.js (primary) and Python (additional)
When: Constitution is generated
Then: constitution.md contains both "### Next.js" and "### Python" sections
Open Questions
Detection depth: Default to 1 level (immediate subdirectories) or configurable?
Recommendation: 1 level to avoid performance issues
Primary vs additional distinction: Should primary stack determine dev URL and commands?
Recommendation: Yes, additional stacks add notes only
Selection UI: Checkbox multi-select or sequential prompts?
Recommendation: Checkbox for single-step selection
Activity
admarble commentedon Jan 31, 2026
📋 Spec Review — Implementation Plan
Acceptance Criteria Checklist
/setuphas an interactive mode (--interactiveor-iflag)Key Finding
AC-1, AC-2, and AC-3 are already implemented in
src/commands/init.ts:The primary work is AC-4 and AC-5 for multi-stack support.
Implementation Plan
Phase 1: Verify Existing Features (AC-1, AC-2, AC-3)
STACKSconstant are listed in selectionPhase 2: Multi-Stack Detection (AC-4)
Create
detectAllStacks()function insrc/lib/stacks.tsArray<{ stack: string, path: string }>node_modules/,.git/,vendor/, etc.Add unit tests with fixture directories
Phase 3: Multi-Stack Selection UI (AC-4, AC-5)
.claude/.sequant/stack.jsonPhase 4: Combined Stack Notes (AC-5)
getStackNotes()to accept array of stacks{{STACK_NOTES}}with all stack sectionsVerification Criteria
AC-4 Test Scenario:
AC-5 Test Scenario:
Open Questions
Detection depth: Default to 1 level (immediate subdirectories) or configurable?
Primary vs additional distinction: Should primary stack determine dev URL and commands?
Selection UI: Checkbox multi-select or sequential prompts?
Recommended Workflow
Phases:
spec → exec → qaQuality Loop: Disabled (well-defined feature, no breaking changes)
Generated by
/spec 197feat(#197): Interactive stack selection and multi-stack support
admarble commentedon Jan 31, 2026
🚀 Implementation Progress Update
AC Coverage Summary
/setuphas an interactive mode (--interactiveor-iflag)src/commands/init.ts:66(pre-existing)src/commands/init.ts:280-293(pre-existing)src/commands/init.ts:307-323(pre-existing)src/lib/stacks.ts:486-535(new)src/lib/stacks.ts:712-752(new)Key Files Changed
src/lib/stacks.tsdetectStackInDirectory(),detectAllStacks(),getMultiStackNotes()src/lib/stack-config.ts.sequant/stack.jsonpersistencesrc/commands/init.tssrc/lib/templates.tsadditionalStacksto template processingTest Results
npm test: 143 tests pass for changed files (stacks, stack-config, init, templates)npm run build: Compiles successfullyPR Status
✅ Created: #214
Self-Evaluation
Generated by
/exec 197admarble commentedon Jan 31, 2026
🔍 QA Review for Issue #197
AC Coverage
/setuphas interactive mode flag--interactiveoptioninit.ts:289-301init.ts:307-327detectAllStacks()atstacks.ts:494-537getMultiStackNotes()atstacks.ts:722-751Coverage: 5/5 AC items fully met ✅
CI Status ❌
Failure cause: 2 unused imports:
src/commands/init.ts:14-type DetectedStacknever usedsrc/lib/stacks.ts:6-joinfrom "path" never usedQuality Metrics
Test Results
All 132 tests for changed files pass:
stacks.test.ts- 100 tests ✅stack-config.test.ts- 15 tests ✅init.test.ts- 17 tests ✅Verdict:
AC_NOT_METReason: CI lint failure blocks merge.
All acceptance criteria are functionally met. Fix required:
type DetectedStackimport frominit.ts:14import { join } from "path"fromstacks.ts:6Next Steps
/qa 197Generated by
/qa 197fix(#197): Remove unused imports to fix lint
docs(#197): Add changelog, installation docs, and multi-stack UI tests
feat(#197): Interactive stack selection and multi-stack support (#214)
docs: Add #197 interactive stack selection to what-weve-built.md