Repository navigation
feat: validate sourced physical material properties and elastic stability - #934
Conversation
|
Thanks for taking this out of draft. The sourced property cards and the stability checks are a good base for the materials work. The red in Native Linux tests (4/4) comes from this PR, not from flakiness or main: Every command label in the registry needs a catalog entry now. Adding |
|
Current-upstream CI exposed the new English command-label coverage guard. Fixed the validator label in English and complete Japanese/Chinese catalogs; all 22 focused localization/UI tests pass locally. The runtime card implementation is unchanged. Global local CI was repeated and still stops only at the existing Windows MCP warnings tracked by #907. Fresh remote CI is running for this correction; the prior integrated run is not claimed green. |
|
Thanks @0xlillith, merged. The source and condition review is exactly the footing the materials work needs. I'll add the German and Korean labels for the two new commands myself in a small follow-up, so no need to touch this again. |
Fixes #923. Refs #922, #785 and #792.
Physical material definitions currently provide density and a scalar look. This adds a bounded, renderer-independent candidate data card and read-only
material.properties.validate {card}so engineering properties can be checked before a later assignment/persistence integration. It does not change existing assigned density, mass, appearance, document format, library storage or rendering capabilities.Cards describe density, isotropic/orthotropic elasticity, tensile/compressive/yield/shear strength, directional thermal conductivity/expansion and specific heat in explicit SI fields. Each property block references a source and optional temperature, dry-basis moisture, strain rate and specimen/grade/process state. Unknown data stays unknown; every used source remains explicitly unreviewed, including caller-declared open licenses. No engineering dataset, material preset, asset, dependency or third-party implementation is added.
Isotropic E/Poisson stability accepts auxetic values and derives G/K. Orthotropic validation uses the declared nu12/nu23/nu31 convention, reciprocity and positive definiteness of the scaled symmetric compliance, plus positive shear moduli; it does not impose the isotropic nu < 0.5 rule on wood. Unrepresentable reciprocals/derived response are rejected. Negative expansion and dry-basis moisture above one are supported. Scalar strengths are measurements, not a complete directional failure envelope. A family label does not certify a constitutive model or enable FEA.
JSON is admitted before cloning/deserialization with node/depth/byte/collection limits. Typed metadata, numbers, source links, duplicate kinds and unknown fields are checked. The command preserves document/history/selection/camera and a live stale sketch/model. No referenced source is fetched. The contract, limits, original synthetic example and staged follow-ups are in
docs/physical-material-cards.md; ROADMAP and the generated command catalog are updated.Validation
Current base: upstream
3669d4b3, integrated in84a8880b. ROADMAP keeps both physical-card and upstream library sections; the generated command catalog preserves both sets of commands. No code conflicts; unrelated primary-checkout changes remain preserved.-D warnings: passes.cargo xtask ciwas run on the current base. Format, 42-asset attribution, licence freshness and layering pass; global Clippy stops at the two pre-existing Windows MCPunused_mutwarnings (crates/mcp/src/lib.rs,crates/mcp/src/tests.rs), addressed independently by fix: restrict MCP mutable bindings to Unix builds #907. The full local gate is not claimed green. No lint suppression, geometry assertion weakening or golden changes are included.This changes data/CLI validation, with no model/viewport behavior to illustrate. The actual analytic CLI output and automated rejection/state tests are the evidence; there are no rendered-material screenshots or claims of visual improvements in this slice.
Integration boundary
The phased physical/visual roadmap and family-specific acceptance proposals are in #922. Persistence/editor/library work needs separate migration, ownership and undo/reopen review, coordinated with #849/#863. Optical PBR/texture/HDRI consumption follows the existing renderer contract requested in #813 and resource utilities #837/#909. This contribution does not establish a competing renderer, resource store or persistent pack schema and closes only the standalone validation slice.