Files
MeltMind/docs/win-test-select-v1-2026-11-23.md
T

51 lines
6.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# New Windows Complex-Geometry Test Set — Selection Rule (`WIN-TEST-SELECT-v1`)
- **Date:** 2026-11-23
- **Authors:** AGY (draft v0/v1), Claude (review & rulings), source check on Gre24 §2 / Zenodo v5
- **Stage boundary:** **Test-only.** No part in this set ever enters training, standardization, clock fitting, or hyperparameter tuning. Nothing runs until Yanqi confirms `N` (`10–20`) and the frozen manifest SHA-256 is recorded.
## 1. Source Pool, Feasibility Gate & Shared Mesh Recipe
- **Source pool:** Public ABC CAD dataset starting from declared chunk slice `0000–0009`, canonically sorted by 8-digit ABC ID and hashed (`SHA-256`) before sampling. Strictly exclude all 624 Greif v5, 629 Greif v4, and 196 Zenodo `17831586` parts (matched by ABC ID and 24-char family prefix).
- If too few candidates pass the frozen gates, extend strictly by the declared next chunk slices (`0010–0019`, `0020–0029`, …); **never** loosen any threshold after inspecting candidates.
- **Hard geometry/mesh feasibility gate** (logged with explicit reason codes `DISCONNECTED`, `NON_MANIFOLD`, `OUT_OF_SCALE`, `TOO_THIN`, `MESH_FAIL`; never silently dropped):
- Single connected watertight manifold solid (`connected_components == 1`, positive volume).
- Physical scale within Greif's moldable envelope: bounding-box max `20–250 mm`, volume `1–300 cm³`, median interior wall thickness `2·P50(Dw_int) ∈ [0.8, 6.0] mm`, minimum thickness `>= 0.5 mm`.
- **Single shared BDF mesh:** Generate the tetrahedral mesh **once** with a fixed Greif-like-density recipe (`5,000 <= N_nodes <= 120,000`, all positive tet volumes) and export as BDF. Moldex3D **imports that exact BDF** (as in Run 02) so models and Moldex3D share one mesh and the v3.1 element→original-ID mapping applies unchanged. Record the meshing recipe and every BDF SHA-256 in the frozen manifest.
## 2. Gate-Placement Rule (Source-Verified)
- **Reference check:** Greif et al. (§2, OPUS 113920) and the Zenodo v5 data card (`18598121`) document a single random exterior surface node on the Gmsh surface mesh, with **no published seed, sampling weights, or thickness filter**.
- **Adopted rule (explicit, not claimed as an exact replica of Gre24's undocumented draw):**
- Restrict candidate nodes to exterior surface nodes incident to exterior faces whose local wall thickness is `>=` the part's median interior wall thickness (`2·P50(Dw_int)`).
- Sort eligible nodes canonically by original node ID (lexicographic `(x, y, z)` tie-break) and draw **1 node** uniformly with `PCG64(SeedSequence([2026112301, abc_id]))`.
- Label in manifest: `"seeded random exterior surface node (≥ median thickness); not an exact replica of Gre24's undocumented draw"`.
## 3. Measurable Geometry-Only Complexity Criteria (Zero Labels)
Computed strictly on the shared tet mesh + assigned gate using `gre24_features_v2` `Dw`, `Di`, `Df` only. Quantile anchors are computed from **Greif fold-0 learning** only (never test) and frozen before scoring any candidate:
- **C1 (Thickness contrast — ribs/steps/bosses):** `R_th = P90(Dw_int) / P10(Dw_int) >= max(2.5, P75_Greif_learn(R_th))` on interior nodes / tet centroids.
- **C2 (Path tortuosity — bends/baffles/folded shells):** `τ_path = max(Di) / ||x(argmax Di) - x_gate||_2 >= max(1.35, P75_Greif_learn(τ_path))`.
- **C3 (Multi-branch / multi-tip structure):** `N_branch >= 2` distinct local maxima of `Di` separated by geodesic distance `>= 0.25 · max(Di)` (or `>= 2` superlevel components of `Di` at `0.75 · max(Di)`).
- **C4 (Topology or flow-vs-geometry divergence):** surface Euler genus `g >= 1` (through-hole/loop) **or** `1 - Spearman(Di, Df) >= P75_Greif_learn`.
- **Eligibility:** candidate must satisfy **at least 2 of C1–C4**.
## 4. Geometry-Only Near-Duplicate Exclusion
Checked against **all** Greif v5 (624) + v4 (629) + Zenodo `17831586` (196) parts **and** against already-selected Windows test parts (enforcing distinct families):
- **Stage 1 (fast rigid + scale-invariant screen):** volume-weighted inertia ratios `(λ₂/λ₁, λ₃/λ₁)`, fill ratio `V / V_OBB`, isoperimetric ratio `A³ / V²`, genus `g`, and 20-bin Osada D2 pairwise-distance histogram on `4,096` deterministically sampled surface points (normalized to `Rg = 1`). Any pair with `L1(D2) < 0.12`, inertia-ratio `L∞ < 0.10`, and equal genus enters Stage 2.
- **Stage 2 (aligned geometric overlap):** align normalized (`Rg = 1`) 4,096-point clouds across all 24 PCA axis/sign symmetries + bounded ICP; compute symmetric Chamfer `d_CD` and 95th-percentile Hausdorff `d_H95`.
- **Hard rejection:** reject if `d_CD < 0.05 Rg` or `d_H95 < 0.12 Rg` (log borderline `0.05 <= d_CD < 0.08 Rg` for geometry-only inspection); also reject any shared Onshape/ABC document family ID.
## 5. Anti-Cherry-Picking Draw Protocol (`N = 10–20` Parts)
- **Fixed seed & strict queue order:** permute the hashed ABC pool **once** with `PCG64(SeedSequence(2026112301))`. Walk strictly in order with **zero backtracking or manual swaps**.
- **Balanced stratification (4 equal quotas, e.g., 4×4 for `N = 16`, 3×4 for `N = 12`, 5×4 for `N = 20`):**
1. High thickness contrast (`C1`, `g = 0`)
2. Topological loops/holes (`g >= 1` + `C2` or `C4`)
3. Multi-branch / high tortuosity (`C2` + `C3`)
4. Combined high complexity (`>= 3` of `C1–C4`)
- Extra matches for a full stratum are logged (`STRATUM_FULL`) and skipped. Pre-draw a deterministic **5-part backup queue** in strict order solely to replace any part that fails Moldex3D convergence (`SOLVER_FAIL`, logged).
## 6. Windows Fixed Test Recipe, Host & Reporting Rules
- **Screening host:** Horsea (public ABC download); Windows runs Moldex3D only on the frozen BDF manifest.
- **Process recipe:** Single **Windows fixed test recipe** (`270 °C` melt, `45 °C` mold, fixed `0.05 s` nominal fill / flow control, V/P setting recorded explicitly, substituted material `Celstran PP-GF30-03`), unless Yanqi requests a second condition.
- *Process distinction:* Greif et al. (§2) reports Moldflow auto-selects flow rate per geometry; therefore fixed `0.05 s` is explicitly labelled as the **Windows fixed test recipe**, never as an exact match to Greif's per-part process.
- **Freeze & single-read evaluation:** Hash the final manifest (`N` BDF meshes, gate coordinates/node IDs, stratum tags, backup queue, exclusion log, meshing & process recipes) before any Moldex3D solve or model forward pass. Read each Moldex3D output **once** at evaluation.
- **Mandatory reporting label:** `"complex-part test set (≥ 2 of C1–C4), Windows fixed test recipe, cross-solver, material substituted"`. Report **per-stratum** and overall results; do **not** compare averages directly against Greif averages because this test set is harder by construction.