Repository navigation
Conversation
Add reconciliation engine that fetches live issue/PR state from GitHub via a single batch GraphQL query, auto-heals unambiguous drift (merged PRs, closed issues, missing worktrees), flags ambiguous drift to users, and shows next-action hints per issue row. - Add batchFetchIssueAndPRStatus() to GitHubProvider for single-call batch queries - Create src/lib/workflow/reconcile.ts with classifyDrift(), getNextActionHint(), formatRelativeTime(), and reconcileState() functions - Add --offline flag to preserve pure local-state behavior - Wire MCP sequant_status tool through reconciliation pipeline - Add lastSynced field to WorkflowState schema - 30 unit tests covering all AC items Entire-Checkpoint: dff05e4f371d
When GitHub is unreachable and a worktree is missing, the ambiguous drift warning previously said "issue still open" even though we don't actually know the issue state. Split into two distinct messages: confirmed open → "still open on GitHub", unknown → "GitHub state unknown (API unreachable)". Both remain ambiguous (no auto-heal). Entire-Checkpoint: dff05e4f371d
admarble
deleted the
feature/423-sequant-status-reconcile-on-read-with-github-as-so
branch
March 25, 2026 05:37
admarble
added a commit
that referenced
this pull request
Mar 25, 2026
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 statusinvocationmerged, closed issues →abandoned, missing worktrees → cleared)→ gh pr merge 419,→ sequant run 422)--offlineflag for air-gapped/rate-limited scenariossequant_statustool through same reconciliation pipelineAC Coverage
batchFetchIssueAndPRStatus()in github.ts, single GraphQL callclassifyDrift()+reconcileState()in reconcile.tsgetNextActionHint()+ hint column in tableformatRelativeTime()+ footer in status output--offlinein bin/cli.ts,offlineoption in reconcilereconcileState()before returning dataclassifyDrift()returns ambiguous type, shown as warningsKey Files Changed
src/lib/workflow/reconcile.ts— New reconciliation enginesrc/lib/workflow/platforms/github.ts— Batch GraphQL query methodsrc/commands/status.ts— ReplacedrefreshMergedStatuses()withreconcileState()src/mcp/tools/status.ts— Wired through reconciliationsrc/lib/workflow/state-schema.ts— AddedlastSyncedfieldbin/cli.ts— Added--offlineflagsrc/lib/workflow/reconcile.test.ts— 30 unit testsTest Plan
npm run buildpassesnpm run lintpassessequant statusshows reconciled data with next-action hintssequant status --offlineshows local-only datasequant status --jsonincludes nextAction and lastSynced fieldsCloses #423
🤖 Generated with Claude Code