Skip to content

docs: list the no-runnable-command reasons next to the fallback reasons - #150

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
sarankumar1325:docs/no-runnable-command-reasons
Nov 16, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
sarankumar1325:docs/no-runnable-command-reasons

Conversation

@sarankumar1325

Copy link
Copy Markdown
Contributor

Closes #127

The whole list is done in one PR: all 22 literal refusal reasons in src/planner/test-command.ts.

Docs

There's a new ### No runnable command section at the end of the fallback tables in docs/using-diffci.md. It says where the reason shows up (no command: <reason> in check, No runnable command: <reason> in the job summary, commandSynthesis.status: "UNAVAILABLE" in Core's plan). Each row gives the message, an example cause taken from the code path that refuses, and what to do. Usually that's "run the full suite", with a config hint where there is one (a plain vitest run script, an inline project list, the config's include/exclude). The template at L530 is written with …. blockers.join("; ") at L285 joins adapter and discovery blockers, which are already documented as fallback reasons, so it gets no row.

Test

  • scripts/fallback-reasons.mjs gets a sibling noCommandReasons(), also declared in fallback-reasons.d.mts. It reads test-command.ts for these: a refusalReason: "..." (including the multi-line one at L469), a refuse("..."), a refusalReason ?? "..." default, and the return "..." from projectGroups, whose string becomes the refusal. It finds exactly the 22 reasons, and node scripts/fallback-reasons.mjs --no-command prints them after the fallback list. The plain output is unchanged.
  • tests/fallback-reasons-docs.test.ts has a second case. It requires each reason as a | `reason` | row in the new section, and checks the extractor finds more than 15 reasons, like the existing size guard.
  • Mutation check: deleting the Invalid Go package target row makes the test fail and name src/planner/test-command.ts:409.

No reasons or planning behaviour changed. npm test gives 1075 passed. npm run typecheck and npm run audit:boundary pass.

Signed off for the DCO. Written with an AI coding assistant; I checked each row against the code path that produces it.

Adds a No runnable command table to docs/using-diffci.md, one row per
literal refusal reason in src/planner/test-command.ts, and a
noCommandReasons() extractor in scripts/fallback-reasons.mjs so the
docs test fails when a new reason has no row.

Closes DiffCI#127

Signed-off-by: sarankumar1325 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T09:12:06.791820Z 7a55d4e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@adityankale190895
adityankale190895 merged commit f4233f6 into DiffCI:main Nov 16, 2026
13 checks passed
adityankale190895 added a commit that referenced this pull request Nov 16, 2026
Rewrite the README entry as prose grouped by area, covering #145-#150 that the
credit job appended as raw titles, and credit #149/#150 next to the
no-runnable-command table.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adityankale190895 <[email protected]>
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.

Docs: list the "no command" reasons next to the fallback reasons

2 participants