Repository navigation
fix(#1257): doctor warns on a missing GitHub remote and uncommitted core skills; dry run errors on a missing issue - #1268
Merged
Conversation
…ore skills; dry run errors on an issue that does not exist
doctor (inside a git repo): warns when there is no remote, or none pointing at GitHub, and when .claude/skills/{spec,exec,qa} exist on disk but are not tracked by git. getIssueInfo flags gh's "Could not resolve to an issue or pull request" error as notFound; every other gh failure keeps the silent placeholder. run --dry-run names each missing issue and exits 1 before planning.
Claude-Session: https://claude.ai/code/session_01VpUo5Vzp2kJErZDRxF24iy
Entire-Checkpoint: 6bd1a89519f2
This was referenced Oct 17, 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.
Fixes #1257 (AC-2, AC-3, AC-5; AC-1 and AC-4 landed in #1262).
What
sequant doctor, inside a git repo, gains two checks for setups that pass every other check and then fail on the firstsequant run:git remote -vis empty, or no remote URL mentions GitHubgh repo create/git remote add origin <url>.claude/skills/{spec,exec,qa}/SKILL.mdexists on disk butgit ls-filesdoesn't list itBoth are warnings, not failures: a repo can be mid-setup. Neither runs outside a git repo (that already fails since #1262). Skills absent from disk are not flagged; the existing Skills / Core Skills checks own that.
sequant run --dry-runon an issue that doesn't exist used to plan it under the placeholder title "Issue #N" and report success.getIssueInfonow returnsnotFound: trueonly for gh'sCould not resolve to an issue or pull requesterror. Offline, unauthenticated or no-remote failures keep the old silent placeholder. A dry run names each missing issue and exits 1 before planning anything. Real runs are unchanged.Verification
/verify(human-confirmed): doctor in a remote-less repo with uncommitted skills, then after fixing both; dry run against sequant-io/sequant-example for a missing (fix(hooks): scope commit-message extraction to the git-commit segment (#981) #999) and an existing (docs: Add pre-release checklist #2) issue. Evidence on fix(doctor/run):doctorandrun --dry-runreport success when nothing would work #1257.getIssueInfo,doctorCommandor the git check, pluscliandrun-pipelineintegration: 9 files, 203 tests pass.tsc --noEmitclean; prettier clean.execSyncmock now answers like a set-up repo (GitHub remote, tracked files), so the existing "all checks pass" cases still mean what they say.Mutation records
Each mutation below was applied alone and the three gate files were run, then the tree was restored clean. Each failed exactly the named test; no other test failed.
Mutation-verified: AC-2 — no-remote branch disabled; warns when the repository has no remote failed; restored.
Mutation-verified: AC-2 — non-GitHub remotes accepted; warns when no remote points at GitHub failed; restored.
Mutation-verified: AC-3 — untracked skills never reported; warns when core skills exist on disk but are not committed failed; restored.
Mutation-verified: AC-3 — skills absent from disk no longer skipped; does not flag skills that are absent from disk failed; restored.
Mutation-verified: AC-5 — getIssueInfo never sets notFound; flags an issue number gh cannot resolve failed; restored.
Mutation-verified: AC-5 — every gh failure treated as not found; keeps the silent placeholder for any other gh failure failed; restored.
Mutation-verified: AC-5 — dry run ignores missing issues; reports the missing issue and exits 1 without planning it failed; restored.
🤖 Generated with Claude Code