Use Layer.t throughout day11 codebase
Replace ad-hoc Fpath.(dir / "layer.json") and Dir.path patterns
with Layer.of_hash, Layer.exists, Layer.is_ok, Layer.meta_path,
Layer.log_path, Layer.fs across all day11 modules:
- build_layer.ml: extract_layer takes ~layer, result_of_layer
uses Layer.is_ok, cache check uses Layer.exists
- Build.layer added alongside Build.dir for typed access
- cmd_batch/cmd_build: is_cached and on_cascade use Layer.t
- cmd_query/cmd_log: use Layer.meta_path/log_path
- generate.ml: is_cached uses Layer.exists/is_ok
- build_meta, rerun, tool_layer, layer_cli updated
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>