Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions ATTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -852,3 +852,14 @@ A frame whose meshes the GPU refuses to stage (device lost or out of memory) is
skipped with a warning instead of panicking (#1469).
Paint callbacks are prepared only after a drawable is acquired, so a skipped
surface frame cannot strand cached meshes without their GPU initialization.
| assets/render/physical/bindings.json | SolidCraft contributors | original physical-reference curation, associations or derived schema-1 export; per-fact public sources retained without relicensing their publications | MIT OR Apache-2.0 |
| assets/render/physical/exports/coverage.json | SolidCraft contributors | original physical-reference curation, associations or derived schema-1 export; per-fact public sources retained without relicensing their publications | MIT OR Apache-2.0 |
| assets/render/physical/exports/native-cards.json | SolidCraft contributors | original physical-reference curation, associations or derived schema-1 export; per-fact public sources retained without relicensing their publications | MIT OR Apache-2.0 |
| assets/render/physical/profiles.json | SolidCraft contributors | original physical-reference curation, associations or derived schema-1 export; per-fact public sources retained without relicensing their publications | MIT OR Apache-2.0 |
| assets/render/physical/quantities.json | SolidCraft contributors | original physical-reference curation, associations or derived schema-1 export; per-fact public sources retained without relicensing their publications | MIT OR Apache-2.0 |
| assets/render/physical/sources.json | SolidCraft contributors | original physical-reference curation, associations or derived schema-1 export; per-fact public sources retained without relicensing their publications | MIT OR Apache-2.0 |
| assets/render/physical/tools/check_physical.py | SolidCraft contributors | original offline physical-reference validation and projection tool | MIT OR Apache-2.0 |
| assets/render/physical/tools/physical.py | SolidCraft contributors | original offline physical-reference validation and projection tool | MIT OR Apache-2.0 |
| assets/render/physical/tools/test_physical.py | SolidCraft contributors | original offline physical-reference validation and projection tool | MIT OR Apache-2.0 |
| assets/render/physical/tools/export_library.py | SolidCraft contributors | original explicit reference-library planner and native no-loss export verifier; no external code | MIT OR Apache-2.0 |
| assets/render/physical/tools/test_export_library.py | SolidCraft contributors | original regressions for native capability refusal, source identity and physical-card preservation | MIT OR Apache-2.0 |
153 changes: 153 additions & 0 deletions assets/render/physical/INTEGRATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
# Physical material integration contract

This resource slice is based on `6d79d44fa403581e4508d7c9df5e163ff85085bf`.
It does not edit the parallel renderer implementation or the native document
format. The native candidate-card schema is in
[`crates/doc/src/physical_material.rs`](../../../crates/doc/src/physical_material.rs).
The personal integration branch separately implements design-owned cards and
library v2; capability checks must use the actual executing build.

## Three independent representations

1. **Extended reference profile:** the authoritative physical data with quantities,
individual source values, SI conversions, conditions, ranges, uncertainty,
directions and unresolved applicability. It is not a solver material model.
2. **Native schema-1 card:** only the supported scalar point properties and complete
admitted elastic blocks. Unsupported data remains in the extended profile and
is listed in `not_projected`; it is never silently discarded.
3. **Assigned document material:** the application's material object, its explicit
mass density, optional physical card and optional appearance. A profile link in
the render catalog is not evidence that this object has been created or assigned.

`exports/native-cards.json` is a bundle of individually valid card objects plus
projection metadata. It is not `solidcraft-library/1`, `solidcraft-library/2`, or
an application command script. Do not pass its whole envelope as a single card.

## Supported current commands

The baseline read-only API is:

```json
{"command":"material.properties.validate","params":{"card":"<individual card object>"}}
```

Replace the placeholder string with the actual JSON object. It validates
numerical/structural consistency and reports missing conditions and source review;
it does not assign, persist or authenticate the data.

The parallel personal runtime's persistence contract, inspected in its engine
source, is `material.create` / `material.edit` with an explicit `physical_card`:

```text
material.create {name, density_g_cm3, physical_card}
material.edit {material, physical_card}
```

A host must first verify that its registered command specification supports
`physical_card`; older command implementations may ignore fields they do not know.
The generated `prepare` plan names this prerequisite and is not executed here.
It does not issue `material.assign`, guess body names or create geometry.

On the persistence implementation, **editing the physical card does not silently
replace the document's mass density**. A discrepancy between card density in kg/m3
and assigned density in g/cm3 must be shown and explicitly resolved. The creation
plan uses the same selected point density in both fields. A range, missing density
or unselected formulation cannot create a falsely precise material.

For an existing body, retain its current physical material until a user explicitly
selects a compatible reference profile. Changing a visual finish must retain
physical fields, mass, joint geometry, body dimensions and material axes. Conversely,
changing an engineering card must not recolor the body or replace its PBR maps.
All document mutations must use the engine command/undo transaction, not direct
JSON mutation or a Python runtime dependency.

## Projection policy

The current native schema permits density, isotropic/orthotropic elasticity,
scalar tensile/compressive/yield/shear strengths, thermal conductivity/expansion
and specific heat. This exporter deliberately does not manufacture missing
constants to fill those fields.

- An isotropic block requires a same-source compatible E and Poisson ratio. Where
Poisson ratio is explicitly derived from the same source's E and G, the formula
and derived status are retained and identified in the native condition text.
- A single directional Young modulus is not a complete orthotropic tensor. Wood
flexural values and printed XY/Z coupon values stay directional in the extended
data; no isotropic substitute is introduced.
- Lower/upper bounds and intervals do not become native nominal point values.
They remain listed omissions. No midpoint or minimum-as-typical substitution.
- Directional thermal data is not copied into three axes. A repeated thermal
diagonal is allowed only for a profile explicitly marked as an isotropic
reference approximation, which the native state text discloses.
- Each native property retains its own temperature, moisture and strain-rate
fields. Other source conditions, including an interval or test method, are
retained in its state text. Unknown conditions are null, not assumed room values.
- Electrical data, hardness scales, radiative properties, porosity and transition
temperatures remain in the richer profile. Typed runtime support for these
quantities is separate work; preserve the extended data when designing it.

A structurally valid empty card is not a usable numerical material. The bundle
labels it `extended_data_only`; the coverage and native report separate those
eleven records from the 48 nonempty partial cards.

## Layers, compounds and analogues

`bindings.json` states whether a concept is a bulk body, layer, deposit, treated
surface, composite, textile, panel, granular material, device or assembly. Read
both `physical_role` and every reference's `relation` before offering assignment.

A constituent reference cannot be directly used as the effective mass density or
stiffness of a foam, laminate, populated PCB, honeycomb or multi-layer blanket.
Layer properties need thickness/coverage; homogenized properties need an explicit
construction and admissible model. Do not turn an unqualified comparison into a
default because it is the first reference in a list.

Lunar-like concepts use named terrestrial simulants only where stated. Bulk
packing density differs from grain density. Angle of repose is not substituted
for an internal friction angle, and terrestrial packing data does not certify
vacuum, gravity or thermal behavior on the Moon.

## Future library v2 export

The integrated runtime's `solidcraft_io::catalog` owns library serialization.
It computes entry revisions from its compact serde representation of provenance
and definition. Do not calculate an assumed equivalent Python hash or hand-write
a catalog revision: cross-language float spelling and omitted fields can differ.

The next runtime adapter should construct `ValidatedCard` through native admission,
use the runtime's catalog types, retain provenance and the extended-profile ID,
and generate the canonical revision through `Entry::new` / `content_revision`.
Tests must cover import, undo/redo, saved reopen, unchanged appearance, density
comparison and retention of unsupported extended fields. This slice performs
none of those document mutations and does not claim them tested.

## Validation boundaries

The supplied runner can invoke a trusted installed CLI only for read-only card
validation. The report identifies its binary hash and explicitly says that it
was not rebuilt by this gate. Numeric admission is not a source-license decision,
a physical experiment, a constitutive validation, a safety factor, a whole-app
build, or evidence of physics-driven rendering.


## Safe native library exporter

`tools/export_library.py --acknowledge-reference` prepares a non-executing plan
for the 46 point-density references and identifies 13 omitted profiles. Omission
is explicit: the application requires a scalar mass density, but these profiles
have no defensible scalar value. Full source profiles remain authoritative.

With `--cli` the helper checks the executable's registered command contract before
creating a new review folder or running a material mutation. It requires explicit
physical-card support, native inspection and library-v2 export. It uses a fresh
CLI process, no geometry and no existing user design. The actual application
serializes the v2 catalog and its revisions; Python does not approximate serde
canonicalization. Every card, source, condition and density is compared before
and after a separate-process cold reopen/re-export. The extended unsupported
properties remain in this package, not falsely marked as embedded in schema 1.

The helper is an offline authoring/integration tool, not an application dependency.
It never runs `material.assign` or changes a PBR appearance. Passing plan and
refusal tests does not imply that modern-runtime persistence was executed; only
a successful helper receipt establishes that separate result. Baseline read-only
native admission and complete library export are deliberately distinct gates.
133 changes: 133 additions & 0 deletions assets/render/physical/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# Sourced physical material references

Expanded data checkpoint: **2026-10-22**. Physical engineering data is maintained
separately from the authored render appearance. The original source files below
are authoritative; exported native cards are reproducible projections, not a
second independently edited dataset.

## Delivered coverage

| Collection | Current coverage |
| --- | --- |
| Named reference profiles | **59**, with **416 numerical records** covering **46 quantity types** |
| Public primary source records | **50**, with locators, retrieval date and review limitations |
| Material concept specifications | **600/600** have an explicit physical role, identification requirements and unknowns |
| Concepts with reference candidates | **306**; these can be substrate, constituent, comparison or named-grade candidates |
| Concepts still requiring a specific formulation | **294**; no unrelated numerical material is substituted |
| Authored PBR surface associations | **48/48** linked to reviewed reference candidates and explicit physical-role rules |
| Schema-1 native projections | **59 envelopes**: **48 nonempty**, **11 extended-only**, **113 native property blocks** |
| References eligible for material creation | **46** have a supported point density; other references do not acquire an invented mass density |

A surface reference association is **not identification of a manufactured part**.
A metallic-looking coating is not a metal substrate; a fibre is not a laminate;
feedstock is not an isotropic printed part; loose granular density is not grain
density. References remain explicitly named and require grade, processing and
conditions to match the intended application. No physical material is silently
assigned to a body, and no appearance edit changes its engineering data.

## Data and relationships

- [profiles.json](profiles.json): the 59 exact material identities, numerical
values/ranges, original units, SI conversion, measurement conditions and limits.
- [sources.json](sources.json): primary-source URLs, selected locators and review
records. Public availability is not a redistribution licence or authentication.
- [quantities.json](quantities.json): units, dimensions and bounds. Hardness scales,
thermal transitions, frequencies and directional measurements remain distinct.
- [bindings.json](bindings.json): all 600 concept specifications and 48 authored
surface relationships, including substrate/stack/recipe dependencies.
- [exports/native-cards.json](exports/native-cards.json): conservative native
schema-1 projections, with every excluded property identified and retained in
the extended profiles. This is not itself a native library import file.
- [exports/coverage.json](exports/coverage.json): generated coverage and exclusions.

The references cover metals and solders, engineering polymers, silicones and
resins, additive-manufacturing feedstock and specimens, woods, cork/MDF, glass and
ceramics, PCB and composite constituents, coatings and terrestrial lunar
simulants. New named references include PMMA sheet, PVC stock, Kevlar 49 fibre,
cured epoxy, UV epoxy and specific alkyd, stoving-enamel and acrylic coatings.

## Properties preserved

Mechanical records include density, Young/shear/Poisson measurements, tensile,
yield, compression, shear, flexural properties, elongation, fracture/tear data
and explicitly identified hardness scales where published. Thermal records
include conductivity, expansion, heat capacity, glass transition, melting,
decomposition and qualified service-temperature statements. Electrical records
retain frequency-specific permittivity/loss, resistivity and dielectric strength.
Optical, moisture, granular and application-thickness records retain their own
units and meaning; they are not reinterpreted as native elastic constants.

Each numerical record preserves a source, original value/unit, conversion,
qualifier, condition fields and limitations. A range is not reduced to its
midpoint; a lower-bound strength is not a typical value. Missing conditions and
uncertainties remain null/unknown. Per-property cure schedules survive native
projection. An isotropic elastic block refuses mismatched source, temperature,
moisture, rate, state or direction rather than combining unrelated constants.

Some new coating profiles contain only published temperature or film-thickness
information. Their cured density, modulus and strength remain unknown. In
particular, liquid/mixed-resin density and package weight are not cured-film
material properties. See [source review](SOURCE_REVIEW.md).

## Validate and inspect

All tools use Python 3.11+ standard-library code. From the repository root:

```sh
python -B assets/render/physical/tools/physical.py validate
python -B -m unittest discover -s assets/render/physical/tools -p 'test_*.py'
python -B assets/render/physical/tools/check_physical.py --cli /trusted/solidcraft-cli
python -B assets/render/physical/tools/physical.py resolve SURF-001
python -B assets/render/physical/tools/physical.py prepare steel-c45 --acknowledge-reference
```

The native check calls the read-only `material.properties.validate` command. It
checks numerical admission and property preservation, **not** source authenticity,
material assignment, solver correctness, persistence or library import. Evidence
and executable hashes stay in ignored `target/physical-material-review/`.

## Native library export without data loss

Generate a non-executing plan for all point-density references:

```sh
python -B assets/render/physical/tools/export_library.py --acknowledge-reference
```

With a trusted runtime that actually supports physical-card persistence and
library v2, create and verify a separate reference library:

```sh
python -B assets/render/physical/tools/export_library.py \
--acknowledge-reference --cli /trusted/card-capable/solidcraft-cli
```

Optional repeated `--profile ID` arguments restrict the selection. The exporter
first verifies the command contract, then uses a fresh CLI design with no
geometry, writes a native v2 library and design into a new `target/` directory,
checks every card/source/condition/density, asks the native library inspector to
verify content revisions, and cold-reopens/re-exports the design. It does not
manually approximate Rust's canonical revision serialization. Existing files,
live GUI sessions, user models and body assignments are untouched.

**The baseline Pegasus CLI validates cards but cannot persist them in materials;
the exporter therefore refuses it before creating anything.** Unit tests and that
refusal are not a successful end-to-end v2 export. A successful modern-runtime run
writes its own receipt; no such runtime receipt is implied by the authored data.
The complete extended dataset must accompany the narrower native library.
Electrical, hardness, ranges, directional measurements and unsupported quantities
must not be claimed to have been embedded in schema 1 merely because a profile
has a native projection.

## Integration and publication

Use [INTEGRATION.md](INTEGRATION.md) to connect the records to the separate Render
branch. `runtime_assignment` remains false until actual target selection and
application acceptance are performed. No native document migration, material-card
schema expansion, rendering shader, solver, model, appearance texture or optical
preset is changed here. Full workspace CI remains a separate integration gate.

All new curation, validators and tooling are original contributor work under
MIT OR Apache-2.0. Publisher data remains attributed to its sources; supplier
brand/grade names do not imply affiliation or certification. Selected numerical
facts are documented without bundling supplier tables, PDFs, artwork or code.
Loading