Files
MeltMind/docs/claude/win-test-select-v1.1-2026-11-23.md
T
2026-11-24 01:59:36 +00:00

48 lines
6.7 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.1`)
Mirror by Claude of AGY's `WIN-TEST-SELECT-v1` (`agy/win-test-select-v1` @ 3db1079f, `docs/win-test-select-v1-2026-11-23.md`, SHA-256 c6c81daa…, not yet pushed), with **two corrections** from Claude's ruling of 2026-11-23 (after the Greif §2 / v5 data-card source check). Text otherwise follows AGY v1; §5 strata/backup wording is taken from AGY's v0 post because the v1 Slack copy was truncated there. This file is NOT byte-identical to AGY's.
**Update 2026-11-23:** AGY revised its own file with the same two corrections: `agy/win-test-select-v1` @ 91aeb2ae, SHA-256 3ec4c91a… (supersedes 3db1079f / c6c81daa). Content-equivalent to this v1.1; both sides agree. Once AGY's branch is pushed, 3ec4c91a is the authoritative frozen text; this file remains a readable mirror.
- **Stage boundary:** test-only. No part ever enters training, standardisation, clock fitting or tuning. Nothing runs until Yanqi confirms `N` (10–20) and the frozen manifest SHA-256 is recorded.
## 1. Source pool, feasibility gate, shared mesh
- Pool: public ABC CAD, chunk slice `0000–0009`, sorted by 8-digit ABC ID and hashed before sampling; exclude all Greif v5 (624), v4 (629) and Zenodo 17831586 (196) parts (ABC ID and 24-char family prefix). Too few candidates → extend by the declared next slices (`0010–0019`, …); never loosen a threshold after seeing candidates.
- Hard gate with logged reason codes (`DISCONNECTED`, `NON_MANIFOLD`, `OUT_OF_SCALE`, `TOO_THIN`, `MESH_FAIL`): one connected watertight manifold solid; bbox max 20–250 mm; volume 1–300 cm³; 2·P50(Dw_int) ∈ [0.8, 6.0] mm; min thickness ≥ 0.5 mm.
- One shared BDF mesh per part from a fixed Greif-like-density recipe (5,000 ≤ nodes ≤ 120,000, all tets positive); Moldex3D imports that exact BDF (as in Run 02); v3.1 element→original-ID mapping applies. Recipe and every BDF SHA-256 in the manifest.
## 2. Gate placement (CORRECTED)
- Source: Greif et al. §2 (OPUS 113920) and the v5 data card (Zenodo 18598121): one random node of the Gmsh surface mesh; no published seed, weights or thickness filter.
- Rule: all exterior surface nodes, **no thickness restriction** (AGY v1 had "≥ median thickness"; withdrawn to stay with Greif's documented distribution). Sort by original node ID; draw one node uniformly with `PCG64(SeedSequence([2026112301, abc_id]))`.
- Manifest label: "seeded uniform random surface node — same documented rule as Greif, not a value-wise replica of Greif's undocumented draw".
## 3. Complexity criteria (geometry only; anchors from Greif fold-0 learning only, frozen before scoring)
- C1 thickness contrast: R_th = P90(Dw_int)/P10(Dw_int) ≥ max(2.5, P75_learn).
- C2 path tortuosity: τ = max(Di)/‖x(argmax Di) − x_gate‖ ≥ max(1.35, P75_learn).
- C3 multi-branch: ≥ 2 local maxima of Di separated by geodesic ≥ .25·max(Di) (or ≥ 2 superlevel components at .75·max(Di)).
- C4 topology / flow-vs-geometry divergence: genus g ≥ 1, or 1 − Spearman(Di, Df) ≥ P75_learn.
- Eligible: ≥ 2 of C1–C4.
## 4. Near-duplicate exclusion (vs Greif v5, v4, 17831586 and already selected parts)
- Stage 1: inertia ratios, V/V_OBB, A³/V², genus, 20-bin D2 histogram (4,096 points, Rg = 1); pairs with L1(D2) < .12, inertia L∞ < .10 and equal genus go to stage 2.
- Stage 2: 24 PCA symmetries + bounded ICP; reject if Chamfer < .05 Rg or Hausdorff-95 < .12 Rg (log .05–.08 Rg); reject shared document family IDs.
## 5. Draw protocol
- Permute the hashed pool once with `PCG64(SeedSequence(2026112301))`; walk in strict order, no backtracking or manual swaps.
- Four equal strata: (1) C1 with g = 0; (2) g ≥ 1 with C2 or C4; (3) C2 + C3; (4) ≥ 3 of C1–C4. Full stratum → later matches logged `STRATUM_FULL` and skipped.
- Pre-draw a 5-part backup list in queue order, used only to replace a part failing Moldex3D meshing/convergence (reason logged).
## 6. Process recipe, host, reporting (CORRECTED)
- Screening on Horsea; Windows runs Moldex3D only on the frozen BDF manifest.
- **Process:** Greif let Moldflow choose the flow rate per geometry, so a fixed 0.05 s for all parts would not match. Use **Moldex3D's automatic injection-time setting if available**; otherwise a fixed rule written down before any solve. 270 °C melt / 45 °C mould; V/P recorded; material Celstran PP-GF30-03 (substituted). Name: "Windows test recipe", never "same condition as Greif". Record each part's actual fill time; **normalised arrival time is the primary comparison**.
- Freeze and hash the manifest (BDFs, gate node IDs, strata, backup queue, exclusion log, mesh and process recipes) before any solve or model forward pass; read each Moldex3D output once at evaluation.
- Label: "complex-part test set (≥ 2 of C1–C4), Windows test recipe, cross-solver, material substituted"; report per stratum and overall; do not compare directly with Greif averages.
## 7. Pre-screening assignment, backup and solve/eval binding rules (v1.2 addendum, frozen before screening; Yanqi 2026-11-24: N = 12, 3 per stratum, one condition, test only)
AGY authoritative file: `agy/win-test-select-v1` @ 01c1cc53, `docs/win-test-select-v1-2026-11-23.md` SHA-256 aa7bce7a…; rules module `tools/win_test_select_rules.py` 6889b16c…, tests `tools/test_win_test_select_rules.py` f05a617f… (5/5 CPU tests OK on aws-la). Not yet pushed (host step).
1. Multi-stratum parts: assign to the first stratum in fixed order (4) ≥ 3 criteria → (2) topology → (3) multi-branch → (1) thickness contrast that matches and has an open primary slot (< 3); record matched_strata and assigned_stratum; all matching strata full → `STRATUM_FULL`, skip.
2. Backups: after the 12 primary parts, continue the same queue; next 2 eligible parts per stratum (8 total, same precedence rule on backup slots < 2). A part failing meshing or solving is replaced only by the next unused backup of the same stratum, reason logged. All rejections/skips kept; no threshold changes after screening starts.
3. Gate mapping: the manifest gives the gate as an original node ID; after each solve, record the inlet faces Moldex3D actually assigned, map to original tet IDs; gate elements = tets owning an inlet face (v3.1); check the chosen node lies on those faces.
4. Injection time: first check whether Moldex3D's automatic injection time works on a new part's first run; if not, fixed fallback fill time = a·V^b fitted (log-log OLS) on Greif fold-0 learning parts (LOG fill time vs part volume), frozen with SHA before any solve; needs only geometry at prediction time.
5. Scoring: models receive only the pre-solve recipe time; Moldex3D's actual fill time is never used to decode predictions and is reported separately. Primary: normalised arrival time (each field by its own end) plus last-1 % location.