Repository navigation
Conversation
- Add pre-flight guard to skip issues with ready_for_merge/merged status - Add --force flag to bypass pre-flight guard - Add stale worktree detection (>5 commits behind main) with recreation - Add reconcileStateAtStartup() for auto-cleanup at run start - Add helper functions: isBranchMergedIntoMain, isIssueMergedIntoMain - Update merger skill docs with state update steps and worktree cleanup - Implement graceful degradation (continue on failures) - Add comprehensive unit tests for reconciliation functions Closes #305
9 tasks
…302) * fix(#249): Align ScopeAssessmentSettings with ScopeAssessmentConfig - Add trivialThresholds (maxACItems, maxDirectories) to ScopeAssessmentSettings - Add directorySpread threshold to settings thresholds - Add DEFAULT_TRIVIAL_THRESHOLDS with documented defaults - Update getSettings() to deep merge trivialThresholds - Create convertSettingsToConfig() for settings→config conversion - Export converter from src/lib/scope/index.ts - Update SKILL.md to read settings before scope assessment - Add comprehensive unit tests for converter function Enables users to configure custom scope thresholds via .sequant/settings.json Closes #249 * test(#249): add integration tests for settings → config flow Verify the full pipeline: settings.json → getSettings() → convertSettingsToConfig() → valid ScopeAssessmentConfig. Covers deep merge of partial trivialThresholds and thresholds, partial individual thresholds (missing red), invalid JSON fallback, and default value drift guard. * docs(#249): add scope assessment settings documentation Operational docs for customizing scope thresholds via .sequant/settings.json, including options reference, common workflows, and troubleshooting.
The --force option was defined in RunOptions and checked at runtime, but never registered with Commander in bin/cli.ts. Users would see "use --force to re-run" but the flag was unrecognized by the CLI parser.
admarble
deleted the
feature/305-fix-pre-flight-state-guard-and-worktree-lifecycle-
branch
February 20, 2026 15:44
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
ready_for_mergeormergedstatus to prevent duplicate execution (~140 min API budget wasted per re-run)--forceflag to bypass the guard when intentional re-execution is neededready_for_mergeissues whose PRs have mergedTest Plan
npm run build)npm run lint)npm test)Pre-PR AC Verification
run.ts:286-310run.ts:117-123,run.ts:289run.ts:195-267,run.ts:493-528run.ts:277-285,state-utils.ts:374-454SKILL.md:148-157,201-219SKILL.md:143-157state-utils.test.tsCloses #305
🤖 Generated with Claude Code