[build][core] merge actions in key <rules> + code clarification