Repository navigation
Reject an empty command catalog - #635
Closed
rudycelekli wants to merge 1 commit into
Closed
rudycelekli wants to merge 1 commit into
rudycelekli wants to merge 1 commit into
Conversation
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
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. |
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.
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
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.