Skip to content

Reject an empty command catalog - #635

Closed
rudycelekli wants to merge 1 commit into
addyosmani:mainfrom
rudycelekli:fix/command-presence-20261003
Closed

rudycelekli wants to merge 1 commit into
addyosmani:mainfrom
rudycelekli:fix/command-presence-20261003

Conversation

@rudycelekli

Copy link
Copy Markdown
Contributor

Problem and change

Removing every slash command makes the parity validator report 0 commands checked — 0 errors — PASSED. That hides total loss of the supported command surfaces. Reject an empty union without introducing a fixed list of command names.

Reproduction

Empty and absent command directories both pass on main, then fail with a useful diagnostic after this change. The existing matching-command, stem-mapping and missing-twin controls remain green.

Verification

  • Node 24.19.0 on macOS: 175 tests passed, no skips.
  • All five validators passed; routing passed 141 checks with 89/89 rank-1 positives at the unchanged 95% floor.
  • Bash cache controls 29/29, ignore controls 49/49, and session-start payload passed.
  • A targeted guard mutation was caught, then the exact signed source was restored.
  • No paid model calls were used. Linux/Windows and plugin-install checks will be reported by hosted CI; they are not claimed as locally run.

Existing work

Production rules are distinct from #524’s shared-test-helper refactor. A local compatibility check retained all current and added test bodies, exercised #524’s actual helper API, and passed 80 focused tests. #524 has existing conflicts with main; this is not a claim that its entire branch merges or passes.

AI assistance: OpenAI Codex / GPT-6 was used for investigation, code and tests.

Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
@addyosmani

Copy link
Copy Markdown
Owner

Thanks for this, and for the other seven, which were real fixes. I'm passing on this one: it only fires when all three command directories are empty at once, and losing one or two is already caught by the parity check, so it guards a state that couldn't get through review. I'm keeping validator rules tied to failures we've actually seen. Closing.

@addyosmani addyosmani closed this Oct 10, 2026
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.

2 participants