Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
Assigneeszack

Relationships

#4661 Root-help property test in command_routes_property_test.ts fails when help is the value of --log-level

Opened by zack · 11/11/2026· Shipped 11/11/2026

The property 'selectRoute: root help only when argv holds no word, no -- and no option outside the root globals and help' (src/cli/command_routes_property_test.ts, added in #4646) is flaky. fast-check found the counterexample [--log-level, help] after 989 of 1000 runs (seed 1332094062, path 988:1) during verify-build for #4647.

In that argv, help is the value --log-level consumes, not a command word, so selectRoute correctly answers rootHelp: the global action rejects the level (Invalid log level: help) before any child is consulted, the same on the stub tree and the full tree. The assertion that no arg equals HELP_COMMAND does not allow for the value position, unlike the route-word assertion next to it, which already accepts valueOf.

Fix: let the HELP_COMMAND check accept the value position too (arg !== HELP_COMMAND || valueOf), and pin the counterexample as an example-based case. Reproduce with fc.assert seed 1332094062 path 988:1.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 5 MOREREVIEW+ 6 MOREPR_LINKED+ 2 MORESESSION_SUMMARIZED

Shipped

11/11/2026, 7:45:05 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
zack assigned zack11/11/2026, 7:14:27 PM

Sign in to post a ripple.