# Reproduce the Terrace T01 authoring package

Status: PROPOSED DESIGN CANDIDATE. Blender executed; Unreal not tested.

```bash
# from the repo root, with Blender's Python (5.2.2 LTS bpy wheel on Python 3.13)
BPY=/path/to/venv/bin/python        # pip install bpy==5.2.2
$BPY docs/crown-key-production/R02/claude-tooling/terrace/author_t01.py \
     --out docs/crown-key-production/R02/claude-tooling/terrace/T01
python docs/crown-key-production/R02/claude-tooling/terrace/author_t01.py --seal  docs/crown-key-production/R02/claude-tooling/terrace/T01   # rewrite MANIFEST.json
python docs/crown-key-production/R02/claude-tooling/terrace/author_t01.py --check docs/crown-key-production/R02/claude-tooling/terrace/T01   # hashes match MANIFEST.json (no Blender)
```

`--out` must be a `T01*` folder directly inside `claude-tooling/terrace/`; it is deleted and rebuilt. Anything else is refused.
`--seal` also lists the hashes of every read-only input (contract, materials, props, routes, cameras, pipeline code).

What the script does:

1. **Stage 1.** Runs the merged PR #51 pipeline unchanged on `production-run/R01/terrace/BUILDING_DIMENSIONS.json`
   (`tools/contracts/blockout.py --views`): contract blockout `.blend`, `BLOCKOUT.glb` (collision), `ANNOTATIONS.glb`,
   eleven neutral renders, and the ray, floor-support, duplicate-floor and glTF round-trip checks.
2. **Stage 2.** Reopens that `.blend`, applies `materials/material_library.json` to the room surfaces named in
   `MATERIALS_AND_PROPS.json` bindings, replaces the 19 `furniture_proxy` boxes with named prop variants built from
   `materials/prop_bill.json` inside each proxy's footprint and height, adds simple convex collision hulls, re-runs
   the checks without the proxies, renders Codex's ten requested views in Workbench, exports and round-trips both `.glb` files.

Determinism: four runs gave byte-identical `.glb`, `.png` and `.json` files. The `.blend` files differ
byte-for-byte between runs (Blender writes run-specific data) and are marked `byte_reproducible: false`.
No contract, kit file or sealed R01 package is modified by this script.
