Skip to content

feat(#133): add --qa-gate option for chain mode - #136

Merged
admarble merged 9 commits into
mainfrom
feature/133-chain-mode-add-qa-gate-option-to-prevent-stale-dow
Jan 20, 2026
Merged

admarble merged 9 commits into
mainfrom
feature/133-chain-mode-add-qa-gate-option-to-prevent-stale-dow

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Add --qa-gate flag to sequant run command that pauses chain execution when QA fails
  • Prevents downstream issues from building on potentially broken code in chain mode
  • Adds waiting_for_qa_gate status to state tracking with clear CLI messaging

Changes

  • State Schema: Added waiting_for_qa_gate status to IssueStatusSchema
  • CLI: Added --qa-gate flag (requires --chain)
  • Run Command: Implemented QA gate logic in sequential execution loop with clear pause messaging
  • Status Command: Updated to display and color-code waiting_for_qa_gate status
  • Dashboard: Updated to handle new status with proper styling and summary stats
  • Documentation: Added comprehensive docs for QA gate mode in run-command.md and feature-branch-workflow.md

Test plan

  • npm run build passes
  • npm test passes (unrelated pre-existing doctor test failures)
  • --qa-gate flag shows in CLI help
  • Manual test: Run npx sequant run 1 2 3 --sequential --chain --qa-gate with a QA failure scenario

Usage

# Basic usage
npx sequant run 1 2 3 --sequential --chain --qa-gate

# With quality loop for automatic retry before gating
npx sequant run 1 2 3 --sequential --chain --qa-gate --quality-loop

# With custom base branch
npx sequant run 1 2 3 --sequential --chain --qa-gate --base feature/dashboard

Closes #133

🤖 Generated with Claude Code

admarble and others added 8 commits January 18, 2026 12:50
- `sequant status 42` now works (positional arg for issue number)
- Adds --issues, --json, --rebuild, --cleanup, --dry-run, --max-age flags
- Completes #118 (CLI status command) functionality

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- @anthropic-ai/claude-agent-sdk 0.2.11 → 0.2.12
- @typescript-eslint/* 8.52.0 → 8.53.0
- @types/node 22.19.3 → 22.19.7

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Implements two visualization options for workflow state:

Option A (Web Dashboard):
- Hono-based local server with htmx + Pico CSS
- Grid layout showing issues with phase progress
- SSE-based live updates when state.json changes
- CLI command: `sequant dashboard`

Option C (VS Code Extension):
- Tree view sidebar showing issues and phases
- FileSystemWatcher for real-time updates
- Context menu actions for terminal/GitHub

Recommendation: Pursue Option A (lower barrier, better overview UX)

Closes #114

Co-Authored-By: Claude Opus 4.5 <[email protected]>
…isualization-options

feat(#114): explore dashboard visualization options
- Switch from raw TransformStream to Hono's streamSSE helper
- Fix htmx script URL to avoid 301 redirect race condition
- Use callback-based client tracking for broadcasts
- Fixes SSE live updates not working in browser

The previous implementation used TransformStream which didn't
work properly with Node.js and the htmx SSE extension. The
htmx script also redirected (301) which caused a race condition
where the SSE extension loaded before htmx was available.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add a QA gate option to chain mode that pauses chain execution when QA
fails, preventing downstream issues from building on potentially broken
code. This addresses the timing issue where later issues in a chain
could be based on pre-fix code from earlier issues.

Changes:
- Add `waiting_for_qa_gate` status to IssueStatusSchema
- Add `--qa-gate` CLI flag (requires --chain)
- Implement QA gate logic in sequential execution loop
- Add clear messaging when chain is paused for QA
- Update status command to display waiting_for_qa_gate state
- Update dashboard to handle new status
- Add comprehensive documentation

Usage: npx sequant run 1 2 3 --sequential --chain --qa-gate

Closes #133

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Merge origin/main to resolve conflicts in dashboard/server.ts.
Both sets of changes preserved:
- New phases from main (verify, merger)
- QA gate status (waiting_for_qa_gate) from #133
@admarble
admarble merged commit dfd008e into main Jan 20, 2026
@admarble
admarble deleted the feature/133-chain-mode-add-qa-gate-option-to-prevent-stale-dow branch January 20, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chain mode: Add QA gate option to prevent stale downstream issues

1 participant