[build] compile rule graph: fix action indexing