Sorry for the late reply here! The filter options for label use OR, not AND, as you observe. There’s no way to apply an AND there.
There’s an upcoming generalize query/select feature, however, that you’ll be able to use for this. I’m sorry that doesn’t really help you now though.
I’ll bump this priority and see if we can’t get this out in 0.7.5.
This has been added and is available in the latest pre-release (0.8.2.dev1 I believe). Guild now supports a generalized filter spec with the --filter, -F option. You can get some docs using --help for the applicable command - look for “filter by expression” in the help text.
The command for the example above would be:
guild runs -F 'a=1 and b=4'
I created an issue resolution doc for this to document the fix. In particular, see: