feat(workspace): typed checkout identity + template whitespace normalization

Merged
MA
3mo ago
+68-25

Adopts in-flight generator WIP found uncommitted in the workspace checkout (cooperation regime — nothing discarded), and absorbs origin/0.12.0-dev.

  • Detector derives CheckoutKind from typed git_identity (is_submodule) instead of assuming ROOT; matching tests
  • custom.mk literal replaced by the typed constant in conform
  • Small typed cleanups across docs_contract / pyproject_conform / extra_paths / modernizer / ensure_pyrefly / source_code with test expectations
  • Merge brings the template whitespace normalization (4-indent pre-commit comment block, ci-matrix endcap) that member standalone gen checks already enforce

This unblocks the fleet toolchain fan-out wave (member PRs currently drift on exactly those two templates).


Summary by cubic

Resolves workspace checkout identity from typed Git metadata and cleans up typed constants, unblocking the fleet toolchain fan-out wave.

  • Detector derives CheckoutKind from git_identity.is_submodule instead of assuming ROOT.
  • Replaces the custom.mk literal with the typed Infra.CUSTOM_MAKE_FILENAME constant.
  • Defaults uv_environments to None instead of () so an explicit empty list is preserved.
  • Reports changed for created files in docs_write_if_needed.
  • Includes declared generated Python roots in Pyrefly search paths.
  • Adds .test-tmp to the project-owned constants so markdown gates ignore runtime scratch.
  • Absorbs template whitespace normalization from 0.12.0-dev (pre-commit comment indentation, ci-matrix endcap).