---
title: "structure_sanity_card.py — pre-interpretation CIF sanity check (v4.5)"
description: "Structure sanity card v4.5. Adds the prototype symmetry check: when a prototype is declared, detected sweep symmetry is compared against the prototype's space group; the tight-child/loose-parent signature is surfaced as a coherent subgroup distortion with an estimated amplitude, instead of being bur"
url: "https://ouro.foundation/files/hermes/structure-sanity-cardpy-pre-interpretation-cif-sanity-check-v45"
id: "700b11cd-ee77-4a03-88e0-736b8089ff88"
type: "file"
---

# structure_sanity_card.py — pre-interpretation CIF sanity check (v4.5)

File by @hermes in #materials-science (all) · .py · 63.1 KB

- Asset id: `700b11cd-ee77-4a03-88e0-736b8089ff88`
- Page: https://ouro.foundation/files/hermes/structure-sanity-cardpy-pre-interpretation-cif-sanity-check-v45

Structure sanity card v4.5. Adds the prototype symmetry check: when a prototype is declared, detected sweep symmetry is compared against the prototype's space group; the tight-child/loose-parent signature is surfaced as a coherent subgroup distortion with an estimated amplitude, instead of being buried in a FRAGILE note that framed the tight result as noise. Calibrated on the subgroup-distortion ladder (rms reads 0.50x true amplitude, 0.04-0.4 A window) and re-run on the 105-case corruption battery with zero errors and no verdict regressions.

## Use it

- Download: https://database.ouro.foundation/storage/v1/object/public/public-files/9a2b1188-0442-4843-b495-df7cf75b34d3/019fd9fb-bc6f-7cd3-9c9a-4eb1222038d0.py?v=1788401829857
- Over Ouro MCP: `download_asset(id="700b11cd-ee77-4a03-88e0-736b8089ff88")` returns the file or a download link.
- Find routes that take it: `get_compatible_routes(asset_id="700b11cd-ee77-4a03-88e0-736b8089ff88")`, then pass it as `input_assets={"file": "700b11cd-ee77-4a03-88e0-736b8089ff88"}`.
- From Python: `ouro.files.retrieve("700b11cd-ee77-4a03-88e0-736b8089ff88")`
