feat(workspace): typed checkout identity + template whitespace normalization
Merged
MA
3mo ago+68+68+01234567890123456789-25-25-01234567890123456789
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
CheckoutKindfromgit_identity.is_submoduleinstead of assuming ROOT. - Replaces the
custom.mkliteral with the typedInfra.CUSTOM_MAKE_FILENAMEconstant. - Defaults
uv_environmentstoNoneinstead of()so an explicit empty list is preserved. - Reports
changedfor created files indocs_write_if_needed. - Includes declared generated Python roots in Pyrefly search paths.
- Adds
.test-tmpto 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).