Skip to content

feat(#119): integrate state updates into all workflow skills - #135

Merged
admarble merged 9 commits into
mainfrom
feature/119-integrate-state-updates-into-all-workflow-skills
Jan 20, 2026
Merged

admarble merged 9 commits into
mainfrom
feature/119-integrate-state-updates-into-all-workflow-skills

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Create CLI helper script (scripts/state/update.ts) for skills to update .sequant/state.json via bash commands
  • Add State Tracking section to all 11 skill SKILL.md files with instructions for updating workflow state
  • Add new phases to state schema: verify and merger to support conditional skills and post-workflow operations
  • Update dashboard to display all phases including the new ones

Changes

Skill State Tracking Type
/spec Standalone skill - updates state at start/complete/fail
/exec Standalone skill - updates state at start/complete/fail
/test Standalone skill - updates state at start/complete/fail
/qa Standalone skill - updates state + issue status
/loop Standalone skill - tracks iterations
/fullsolve Orchestrator - manages state for child skills
/solve Generator - initializes issue state
/security-review Conditional - optional security phase
/testgen Conditional - optional test generation phase
/verify Conditional - CLI verification phase
/merger Post-workflow - marks issues as merged

Design Decisions

  1. Orchestration awareness: Skills check for SEQUANT_ORCHESTRATOR env var and skip state updates when orchestrated (to avoid duplicate updates)
  2. Graceful degradation: State update errors don't block skill execution
  3. CLI-based updates: Skills use bash commands to call scripts/state/update.ts since SKILL.md files are prompts, not code

Test plan

  • Build passes (npm run build)
  • All workflow-related tests pass (npm test -- --run src/lib/workflow/)
  • CLI helper script works correctly (tested init, start, complete commands)
  • Orchestration mode correctly skips state updates when SEQUANT_ORCHESTRATOR is set

Closes #119

🤖 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 state tracking capabilities to all workflow skills, enabling
dashboard visibility and workflow orchestration.

Changes:
- Create CLI helper script (scripts/state/update.ts) for skills to
  update .sequant/state.json via bash commands
- Add State Tracking section to all skill SKILL.md files:
  - Core skills: /spec, /exec, /test, /qa, /loop
  - Orchestrator: /fullsolve (manages state for child skills)
  - Generator: /solve (initializes issue state)
  - Conditional: /security-review, /testgen, /verify
  - Post-workflow: /merger (marks issues as merged)
- Add new phases to state schema: "verify" and "merger"
- Update dashboard to display new phases

Design decisions:
- Skills update state when standalone (SEQUANT_ORCHESTRATOR not set)
- Orchestrators manage state for child skills
- CLI helper exits silently if SEQUANT_ORCHESTRATOR is set
- State errors don't block skill execution (graceful degradation)

Closes #119

Co-Authored-By: Claude Opus 4.5 <[email protected]>
The iteration CLI command now warns instead of silently doing nothing
when called on an issue that doesn't have quality loop enabled.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@admarble
admarble merged commit 5e1d941 into main Jan 20, 2026
@admarble
admarble deleted the feature/119-integrate-state-updates-into-all-workflow-skills branch January 20, 2026 15:47
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.

Integrate state updates into all workflow skills

1 participant