Skip to content

fix(#1257): doctor warns on a missing GitHub remote and uncommitted core skills; dry run errors on a missing issue - #1268

Merged
admarble merged 1 commit into
mainfrom
fix/1257-doctor-remote-skills-dryrun-issue
Oct 1, 2026
Merged

admarble merged 1 commit into
mainfrom
fix/1257-doctor-remote-skills-dryrun-issue

Conversation

@admarble

@admarble admarble commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

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 first sequant run:

Check Warns when Message names the fix
GitHub Remote git remote -v is empty, or no remote URL mentions GitHub gh repo create / git remote add origin <url>
Skills Committed .claude/skills/{spec,exec,qa}/SKILL.md exists on disk but git ls-files doesn't list it "Phase worktrees are checked out from git and won't see them. Commit .claude/skills/ …"

Both 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-run on an issue that doesn't exist used to plan it under the placeholder title "Issue #N" and report success. getIssueInfo now returns notFound: true only for gh's Could not resolve to an issue or pull request error. 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

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

…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
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.

fix(doctor/run): doctor and run --dry-run report success when nothing would work

1 participant