This repository has been archived on 2026-11-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
MeltMind-Archive/docs/win-test-select-v1-2026-11-23.md
T

57 lines
8.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 uniformly random exterior surface node on the Gmsh surface mesh, with **no published seed, sampling weights, or thickness filter**.
- **Adopted rule (same rule, not a value-wise replica):**
- Collect all exterior surface nodes of the shared tet mesh (no thickness restriction, matching Greif's documented distribution), sort them 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: `"uniformly random exterior surface node (fixed seed, no thickness filter); same rule as Greif et al. §2 / v5 data card, not a value-wise replica"`.
## 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 Test Recipe, Host & Reporting Rules
- **Screening host:** Horsea (public ABC download); Windows runs Moldex3D only on the frozen BDF manifest.
- **Process recipe ("Windows test recipe", not "same condition"):** Single condition at `270 °C` melt, `45 °C` mold, V/P setting recorded explicitly, substituted material `Celstran PP-GF30-03`, unless Yanqi requests a second condition.
- *Flow / injection-time rule:* Greif et al. (§2) lets Moldflow auto-select flow rate from the geometry, so a single fixed `0.05 s` for every part would not match. Use **Moldex3D's automatic injection-time setting if available**; otherwise use a single fixed rule written down in the manifest before solving. Record each part's actual fill time.
- **Freeze & single-read evaluation:** Hash the final manifest (`N` BDF meshes, gate coordinates/node IDs, stratum tags, backup queue, exclusion log, meshing & Windows test recipes) before any Moldex3D solve or model forward pass. Read each Moldex3D output **once** at evaluation; **normalised arrival time** is the primary comparison.
- **Mandatory reporting label:** `"complex-part test set (≥ 2 of C1–C4), Windows 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.
## 7. Pre-Screening Assignment, Backup & Solve/Eval Binding Rules (Frozen Before Screening)
1. **Multi-stratum assignment:** Assign each eligible part to the **first stratum**, in the fixed precedence order **(4) ≥ 3 criteria → (2) topology → (3) multi-branch → (1) thickness contrast**, that both matches and still has an open primary slot (`< 3`). Record both `matched_strata` and `assigned_stratum`. If all matching strata are full, log `STRATUM_FULL` and skip.
2. **Per-stratum backups (8 total):** After the 12 primary parts (`3 × 4` strata), continue walking the exact same shuffled queue and record the next **2 eligible parts per stratum** (same `4 → 2 → 3 → 1` first-open-slot rule on backup slots `< 2`). A part that fails meshing or Moldex3D solving is replaced **only** by the next unused backup of the **same stratum**, with the failure reason logged. Retain all screening rejections and skips; never change thresholds after screening starts.
3. **Gate-to-inlet-face mapping (778 lesson):** The manifest freezes the gate as an original node ID. After each solve, MeltWin records the inlet faces Moldex3D actually assigned and maps them to original tet IDs. Gate elements are **only** the tets owning an inlet face (as in v3.1), and verification confirms the chosen gate node lies on those inlet faces.
4. **Injection time fallback:** MeltWin first checks whether Moldex3D's automatic injection time works on a new part's first run. If not, use a pre-fixed power law `fill_time = a · V^b` fitted on Greif fold-0 **learning** parts (LOG fill time vs part volume), frozen with its SHA-256 before any solve.
5. **Blind recipe time vs actual fill time at scoring:** Models receive only the pre-solve **recipe time**. Moldex3D's actual solved fill time is **never** used to decode predictions and is reported separately. Primary comparison: **normalised arrival time** (each field divided by its own end), plus **last-1 % location**.