It's all three, in a fixed precedence order, plus a name-shape guess as the last resort. The chain is in `list-indent` in `src/sift/format.scm` (~L895).
On your CI point: yes, that's the stated priority. Nothing is inferred from how a form is used, there's no scanning of other files or dependencies, and the result is idempotent.