Repository navigation
Conversation
- Add state schema with Zod validation (state-schema.ts) - Add StateManager with atomic writes using temp file + rename (state-manager.ts) - Add state hook for skills to update state in standalone mode (state-hook.ts) - Add rebuild from logs and cleanup utilities (state-utils.ts) - Update sequant run to track phase transitions - Enhance sequant status to display issue progress - Add comprehensive tests for all new functionality The state file is stored at .sequant/state.json and tracks: - Issue status (not_started, in_progress, ready_for_merge, merged, blocked, abandoned) - Phase progress (pending, in_progress, completed, failed, skipped) - PR information, worktree paths, session IDs for resume Co-Authored-By: Claude Opus 4.5 <[email protected]>
8 tasks
- Add --rebuild flag to rebuild state from run logs via CLI - Add --cleanup flag to remove stale/orphaned entries via CLI - Add --dry-run modifier for cleanup preview - Add --max-age option to remove old entries - Add tests for new CLI flags Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Rebuild tests now create actual log files and verify state output - Cleanup tests create state with orphaned worktrees and old entries - Tests verify actual behavior, not just console output strings - Added test for actual state modification after cleanup Co-Authored-By: Claude Opus 4.5 <[email protected]>
admarble
deleted the
feature/115-add-persistent-state-tracking-for-workflow-phases
branch
January 18, 2026 18:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.sequant/state.jsonfor tracking issue progress across sessionssequant runto write state on phase transitionssequant statuswith--issuesflag to display tracked issues and their phase progressChanges
New files:
state-schema.ts- Zod schemas and types for workflow statestate-manager.ts- CRUD operations with atomic writesstate-hook.ts- Utility for skills to update state in standalone modestate-utils.ts- Rebuild and cleanup utilitiesModified files:
run.ts- Integrated state tracking on phase transitionsstatus.ts- Added issue state display with--issuesand--jsonflagsindex.ts- Exported new state management APIsTest plan
npm run buildsucceedsCloses #115
🤖 Generated with Claude Code