Commit Graph
1731 Commits
Author SHA1 Message Date
hm 86e25bbe0e merge: W107 CBRA assembly UV-projection memo (bit-exact, default-on) + dual-caliber perf evidence into 1.0.485 2026-11-21 19:21:49 +08:00
hm 3309f8af8b feat(kcp): Wave 18 W107 - bit-exact UV projection memo in CBRA assembly (default on)
- curved_boolean_assemble.cpp: per-assemble thread_local UV memo on the global
  closest_point_param fallback. Key = surface content digest (knots/control
  points/weights IEEE-754 bits) + exact sample point x/y/z bits (no
  quantization); a hit returns the remembered UV, bit-identical to recompute.
  VDE_CB1_UV_MEMO=0 disables (A/B + tests); [CB1-ASM] gains uv_memo_hits/miss.
- Paired same-window A/B (5 pairs, gated 9 fixtures): asm stage -45.0% norm
  (-42.3% raw), total -20.5% norm, process wall median -10.4%; win is entirely
  resync (trim-domain rebuild) re-projection (stage -98.2%; frag -1.1%).
- Default-path KPI bit-identical: 18-line [CBRA] gate canonical 2344 B
  byte-identical to 1.0.484 ref (SHA256 B3ACDDC6..., DIFFCOUNT=0); B5 36/36
  runs pass 5/5 bit_identical digest d1c875b2322e097d; 44-case B1 KPI
  DIFFCOUNT=0/status_changes=0; directed ctest 169/169 0 failed.
- tests: 4 new gtests (equivalence, hit accounting, scope determinism,
  dual-caliber perf).
- docs/planning/wave18/perf-notes.md: A/B tables, profile/mechanism,
  negations (202-body uses legacy brep_union; B5 Amdahl ceiling unchanged).
2026-11-21 19:21:15 +08:00
hm f1c945619b merge: W104 B1 residual root-cause fix (orientation-undefined faces, scoped exemption); dual-gate trade-off matrix into 1.0.485 2026-11-21 19:15:34 +08:00
hm 95c96ae218 feat(kcp): Wave18 W104 orientation-undefined degenerate-face exemption + double-gate merge evaluation
- add opt-in W104DegenerateExemptScope + VDE_W104_DEGENERATE_EXEMPT (env+scope double gate) in brep_validate; exempt faces whose loops are not aligned with the face normal (orientation undefined), not just zero-area faces
- scope exemption to W98 finalize repair hook (brep_boolean.cpp) and quality orientation scan (boolean_quality.cpp) to keep default/core union results bit-identical
- fix residual same-direction edges e4/e106 root cause (f1/f47 loop plane perpendicular to face normal; newell_dot ~ -7e-16/-1.7e-15)
- 7 new gtests in test_b1_seam.cpp (env gate, Newell criterion, no real-flip masking, default path bit-identical, candidate root-cause, W98 hook accept, W98/W99/W104 merge matrix)
- notes: docs/planning/wave18/b1-notes.md (KPI table, double-gate honest matrix, trade-off matrix, minimal rollback set, repro commands)
- measured: default KPI DIFFCOUNT=0, CBRA DIFFCOUNT=0, B5 4/4 d1c875b2322e097d, ctest 157/157; double gate NOT achieved (clean 0/12; snap_clip audit unmovable by W98/W99/W104)
2026-11-21 19:15:09 +08:00
hm f86a2dacff merge: W105 opt-in stitch-bridge/audit-relax unlocks body20 end-cap seam; golden subset [2,9,15,20] fused into 1.0.485 2026-11-21 19:13:31 +08:00
VDE Wave18 cp18-rg 1a0ec5e148 feat(brep): W105 opt-in stitch-audit relax + bridge retry unlocks body20 end-cap seam
202-body golden group subset [2,9,15,20]: whole group status=fused valid=1 wt=1.0 (body20 flips failed->fused).
- SSIRegionGraphOptions: w105_relax_stitch_audit/w105_diag + SSIStitchStats::w105_relax_used (geometry gates unchanged: valid/watertight/dangling/nm revalidated)
- AssemblyFuseOptions: region_graph_w105_stitch_bridge/stitch_relax/diag + env VDE_W105_STITCH_BRIDGE/STITCH_RELAX/DIAG
- assembly_fuse.cpp: bridge retry after first region-graph failure (allow_on_fragments + gap growth), [W105BRIDGE] diag
- ssi_boolean.cpp: rg_stitch relaxed-audit acceptance after normal audit, before weld fallback, [W105STITCH] diag
- tests: 6 new gtests + gated W105GoldenSubsetProbe (VDE_ASM_W105_PROBE) + 202-body default-counts guard
- gates green: CBRA 18-line DIFFCOUNT=0, B5 digest d1c875b2322e097d, W81 fp 33115A50..., ctest 995/995, 202-body counts unchanged
- docs/planning/wave18/rg-notes.md: evidence, gates, rollback, honest boundary (7-body E6 stalled on body24 pair)
2026-11-21 19:12:10 +08:00
hm 24b1d9e031 feat(brep): W106 exact difference precision claim + measured calibration (Wave 18)
W106 = Wave 18 / cp18-exact. 支持域复核 + 把精度承诺从经验值升级为可测标定表 + 两个闭式体积 oracle + env-gated 外推候选. 默认路径零行为变化 (brep_boolean.cpp 未改).

- 新增 exact_difference_precision_claim(): 4 档承诺 (kRejectedOutOfDomain / kRejectedUncertified / kCertifiedVolume 1e-6 runtime-enforced / kValidatedRepresentation no-volume-promise), 只读且与 brep_difference_exact 同源门; 新增 exact_pcurve_tolerance() 尺度相对口径配方 (默认绝对 1e-3 不变).

- 新增闭式 oracle: C0 box minus parallel cylinder overlap (box-cyl 直通/盲孔/内腔升级为运行时认证), C0b box minus strictly-contained analytic primitive / pure-planar body; 盒-圆柱 direct 分支接入 certify.

- 标定矩阵 (measured, 12 rows): certified 子域 worst 2.1e-8 vs 1e-6 gate (48x margin); 不可承诺 1e-9 (C3 cone-host legacy volume-integration error); representation 子域实测 3.5e-10 仅监测; p-curve residual <=3.2e-13, residual*boundary <=5.3e-11.

- env-gated 外推候选 (b): VDE_W106_COAX_CYL_HOST=1 时同轴圆柱宿主 + 共轴多段刀具走闭式轮廓积分认证, 实测 5.9e-12; 默认 nullopt 保持.

- tests: 新增 ExactPrecisionCalibration 8 tests (claim 表钉住 / 认证矩阵 / 表示层无承诺 / 拒绝诚实性 / 残差x边界长 / 尺度容差配方 / 表示无关性 / env-gated 圆柱宿主候选).

Gates: CBRA 18-line DIFFCOUNT=0 BYTE_IDENTICAL=True; B5 pass=4/4 digest d1c875b2322e097d; directed ctest 81/81 passed 0 failed (default + VDE_CURVED_BOOLEAN=1); full oracle suite 82/82.
2026-11-21 19:03:42 +08:00
hm 8259524d6c merge: W98 shell repair opt-in, debris-shell removal, honest B1 residual root cause into 1.0.484 2026-11-21 17:24:19 +08:00
hm 533483e8cb feat(brep): W98 gated debris-shell repair + degenerate-face root-cause evidence (B1 clean residual v3)
VDE_W98_SHELL_REPAIR gates a finalize-time repair: drop isolated <=2-face debris shells via a bit-faithful face-subset clone, then strict orientation fix + validate + volume band; reject rolls back to the original body. Default path is env-off and bit-identical (44-case B1 KPI DIFFCOUNT=0). Adds 8 tests and documents upstream root cause: residual same-direction edges come from zero-area degenerate faces produced by fragment assembly.
2026-11-21 17:23:43 +08:00
hm e8767cf00f merge: W99 region-graph seam ownership opt-ins, honest golden-subset gated probe into 1.0.484 2026-11-21 16:58:03 +08:00
hm d14be9cc4a feat(brep): W99 region-graph seam ownership opt-ins (ownership-on-IN + keep-all-A + [W99CLS]) and gated golden-subset probe 2026-11-21 16:57:12 +08:00
hm 34bad926c1 merge: W101 perf convergence - analytic-face cache in coincident detect, opt-in local UV refinement, asm profiling into 1.0.484 2026-11-21 16:45:12 +08:00
hm c223b61c14 perf(kcp): Wave 17 - CBRA assembly UV-hint projection accel & coincident-face analytic caching (1.0.483)
- assemble: opt-in VDE_CB1_LOCAL_UV local Gauss-Newton UV hint refinement for pcurve/trim-domain sampling (default path unchanged, bit-identical); per-face analytic geometry caching + analytic distance lower-bound prefilter in detect_coincident_faces (decision-equivalent, default on)
- diag: VDE_CB1_ASM_PROF=1 assembly sub-stage timing [CB1-ASM] line
- tests: 3 new CurvedBooleanTopology cases (equivalence / determinism / dual-caliber perf), RUN_SERIAL inherited from global property
- docs: docs/planning/wave17/perf-notes.md
- A/B: 5 paired runs, torus total raw median -14.9% (norm -20.7%), asm -23.5%; gate18 DIFFCOUNT=0 (SHA B3AC...), B5 digest d1c875b2322e097d, ctest -R CurvedBoolean 47/47 passed
2026-11-21 16:44:44 +08:00
hm 3ff827ffa3 feat(io): W17 W100 互操作构型补齐 — 单圆环带面/带孔板/部分圆环/有理 NURBS 往返验证 + 能力矩阵诚实细分 2026-11-21 16:33:33 +08:00
hm 10ebf12958 merge: sync origin/main (CAE SCJ02 auto-size refine / SCE02 periodic window band domain) into 1.0.483 2026-11-21 15:41:50 +08:00
hm fb8277fc05 Merge branch 'feat/kcp16-perf' 2026-11-21 15:01:33 +08:00
hm 4900c2ccb9 Merge branch 'feat/kcp16-io' 2026-11-21 15:01:32 +08:00
hm d5d94df3c9 Merge branch 'feat/kcp16-rg' 2026-11-21 15:01:23 +08:00
hm 448fb70e2d feat(kcp): Wave 16 - W92 B1 closed-shell consistency checker + gated quality caliber (default bit-identical)
- add reusable closed-shell consistency checker (include/vde/brep/shell_consistency.h,
  src/brep/shell_consistency.cpp): edge-use classification (boundary / non-manifold /
  same-direction / periodic-seam exempt), flip-parity BFS, Euler parity, component count,
  per-component signed volume accounting; effective direction = stored loop order x
  sign(loop Newell . face_normal), because stored order is the surface parameter-domain
  boundary order. env VDE_W92_SHELL_CONSISTENCY (default off).
- add quality-gate-only ordered-direction caliber orientation_consistency_ordered()
  (include/vde/brep/brep.h, src/brep/brep_validate.cpp), env VDE_W92_LOOP_ORDERED_ORIENT
  (default off). Deliberately NOT wired into boolean construction / validate(): doing so
  skips the VDE-1246 strict-fix island-split side effects and degrades the W74 candidate
  branch from 58 to 88 faces (verified both ways).
- boolean_quality.cpp: gated shell-consistency gate (boundary/non-manifold/same-direction/
  parity-contradictions/euler parity become the authoritative orientation verdict; default
  path unchanged).
- test_b1_seam.cpp: 7 new W92 tests (checker semantics, closed primitives, imported solid
  structural invariants, volume accounting + flipped face, gated quality gate, candidate
  branch debris-defect detection; candidate tests gated by VDE_W92_TESTS).
- docs/planning/wave16/b1-notes.md: mechanism, gate data tables, honest unmet analysis
  (clean remains 0/12; 58-face candidate carries negative/zero-volume debris components),
  W74 branch nondeterminism {58,88}, upstream clues.

Gates: CBRA 18-line byte-identical (DIFFCOUNT=0); B5 pass=4/4 digest d1c875b2322e097d;
default 44-case B1 KPI DIFFCOUNT=0 vs W86 (import 6/6, clean 0/12, perturbed 0/24);
directed ctest 64/64 passed.
2026-11-21 14:59:55 +08:00
hm 52db670de5 feat(cae/mesh): SCJ02 auto-size refine and SCE02 periodic window band domain
Wave12: three fixes/measurements for the CAE corpus gaps.

1) SCJ02 auto-size failure (src/cae/fea_mesh.cpp +23/-1, auto chain only):
   the watertight-refinement ladder now allows up to 8 levels for auto size
   (explicit max_size keeps 4 levels bit-identical), and when watertightness
   is reached above level 4 the effective target size is capped at
   2 x deflection. SCJ02 auto: tets=0 / relerr 0.999365 -> closed, 56,968
   tets, relerr 0.007790 (~10 s). Fixed 0.25 and SAD02 fixed 5 unchanged.

2) SCE02 windowed cylinder band face (src/mesh/brep_to_mesh.cpp +168,
   tests/brep/test_measure.cpp +56): STEP marks no FACE_OUTER_BOUND, the
   outer loop is one rim circle which degenerates to a zero-area UV line,
   so the ring-driven inline path tessellates 0 triangles for the face.
   New rebuild_periodic_degenerate_outer_domain (guarded: u-closed/v-open
   surface, zero-area outer loop, exactly two degenerate rims, interior
   hole loops) rebuilds the domain as the full-u x rim-v rectangle with the
   window loops demoted to holes, reusing the rim shared-edge (UV, 3D)
   samples so seams stay welded. Face 2: 0 tris -> mesh area 4016.61 vs
   analytic 4028.46 (-0.27%); full surface welded open=0 at defl 0.125.
   Tetrahedralization of SCE02 is still rejected (Delaunay point/threshold
   budget and solid-angle cavity judgement) - tracked for Wave13.

3) KPI windows: 250-file fixed 141/84 (per-file diff 0), auto 169/60
   (count unchanged, one label change SCE02-D20 volume->scale_guard); band
   window fixed 5/8 and auto 1/8 unchanged, zero regressions. Post-A24
   numbers are filled in the Wave12 report (section 6.3), the KPI doc
   (section 3.10 step 4) and remaining-gaps.

Also includes the attribution report (cae-failure-attribution-2026-11-21.md)
and the band-family KPI window list (tests/data/cae_band_family.txt).

Validation: full Release build exit 0; 23 suites 885 passed / 0 failed;
PR gate 1012/1012 (87.50 s); docs gates pass (36 claims, version 1.0.480).
2026-11-21 14:58:39 +08:00
hm 628f837d3a feat(kcp): Wave 16 W93 - region-graph open-chain stitching fallback (opt-in, WIP); body20 negative evidence (task-176)
Adds SSIRegionGraphOptions::open_chain_pairing (default false) and a post-ladder stitch fallback in rg_stitch: snap dangling endpoints within pair_tol, heal_gaps, then 3x heal_dangling_edges/heal_merge_edges, weld_open_curved_edges + compact_used_topology, accepted only when validate/audit pass. AssemblyFuseOptions::region_graph_w93_open_chain_pairing + env VDE_W93_OPEN_CHAIN=1. Default path unchanged (gates re-verified: 18-line CBRA DIFFCOUNT=0, B5 digest d1c875b2322e097d, W81 fingerprint 33115A50 unchanged). Body20 probe: dangling 27->24 (snapped_pairs=2), still invalid; A chain total 187.521 vs B 72.506 refutes the coincident open-chain hypothesis - root cause points to CB3 classification layer.
2026-11-21 14:43:43 +08:00
hm 1e21d72c6f feat(io): Wave 16 W94 - SAT write cone/torus analytic records, single-circle-loop refinement, STEP Bezier clamped knots 2026-11-21 14:34:25 +08:00
cp16-perf acdf3bb3d4 perf(kcp): Wave 16 W95 - seed-grid Lipschitz block pruning (torus cut -22% median, 12 paired A/B), B5 8T Amdahl attribution, 3 trace-equivalence tests 2026-11-21 14:29:14 +08:00
hm 15279baee0 feat(kcp): Wave 16 W93 - region-graph fully contained difference cavity (opt-in), coincident ownership e2e test, targeted gates (task-176) 2026-11-21 14:23:54 +08:00
hm e6af856024 merge: W89 stability - W74 two-run determinism guards, W72 dual-criterion perf gate, B5 prefetch experiments into 1.0.482
# Conflicts:
#	tests/brep/test_b1_seam.cpp
2026-11-21 13:16:24 +08:00
hm 806fa24a0e merge: W88 assembly seam closure - CB3 residual ladder + CB4 fragment contract wiring + shared-edge merge (opt-in) into 1.0.482 2026-11-21 13:14:26 +08:00
hm 5cdd4114bf merge: W87 CB4 geometry stitching - manifold-guarded edge repair (opt-in); nm 13->0, twin split into 1.0.482 2026-11-21 13:14:19 +08:00
cp15-b1 f5ded50922 feat(brep): W86 quality-gate caliber fixes behind VDE_W86_QUALITY_CALIBER
B1 snap_clip clean::union leftover trio (W14): (1) periodic-face/slit seam edges were misclassified as boundary by orientation_consistency distinct-face counting -> use-count + directedness classification; (2) degraded analytic volume (tessellation fallback, 4 faces) was compared against polluted flat mesh-divergence volume (coincident duplicate sheets merged into one partition) -> no volume-failure verdict when analytic is degraded (threshold unchanged); (3) euler=4 proven non-blocking (validate euler=0 parity OK). Both caliber fixes are env-gated (default OFF) so the default boolean path is byte-identical (base-vs-change KPI DIFFCOUNT=0). Remaining blocker: 2 genuine same-direction edges at W74 slit faces f36/f37 (strict orientation fix already fails: corrupted loop topology) - honest 0/12 clean KPI. Evidence: docs/planning/wave15/b1-notes.md; 8 new gated/ungated tests incl MC ground-truth (truth ~1151 vs analytic 984.58 / mesh 1201.36 / shell 1159.38).
2026-11-21 13:13:44 +08:00
cp15-asm 2b11f883ea feat(kcp): Wave 15 W88 - CB3 ON residual ladder, CB4 fragment contract pass-through, seam shared-edge merge + tolerance ladder (opt-in, defaults off)
W88 diagnostics (VDE_W88_DIAG): [W88RG]/[W88CLS] per-fragment CB3 residual, [W88STITCH] per-pass accept/rollback, [W88PAIR]/[W88GATE] per-pair and fused gate.

Opt-in levers (all default off, default path bit-identical):
- on_residual_resolution: 3-level deterministic residual ladder in rg_classify_body
  (relaxed vote -> same-face neighbor parity -> partial coincident ownership);
  honest failure kept when no evidence.
- fragment_domain_contract: pass W81 CB4 fragment-domain contract into rg_stitch
  assembler (previously never set: stale CB3 summary rejected valid regrouped domains).
- seam_shared_edge_merge: heal_merge_vertices/dangling_edges/merge_edges + weld +
  compact + valid/watertight/audit acceptance, smallest-tolerance attempt first.
- seam_tolerance_ladder: 1e-3..5e-1 retry ladder (2*gap pass over-welds 37k vertices).
- 5 unit tests + env-gated golden 7-body probe (VDE_ASM_W88_PROBE=1).

Evidence: golden group members 1-2 fuse; body20 cap still blocked by tangential/ON
fragment (8:8 tie) and unpaired 27-edge cap seam (needs open-chain pairing next wave).
Default 202-body corpus, CBRA 18-line sha256, B5 digest, targeted ctest all unchanged.
2026-11-21 13:03:36 +08:00
hm 3ad0641cfd feat(kcp): Wave 15 - W87 CB4 geometric seam stitching: gated twin/duplicate edge re-pairing with manifold guard (task-169)
W87: add env-gated twin/duplicate-edge re-pairing between domain trim and the
two-pass stitch, plus VDE_W87 diagnostics; default path is untouched.

- brep_heal: new 5-arg unify_coincident_topology(..., bool manifold_guard);
  guard merges same-signature edges only when the union of distinct incident
  faces is <= 2, otherwise keeps the twin edges split (avoids >=3-face
  non-manifold edges). Stats expose twin_edges_split/merge_blocked_by_face_count.
  Existing 4/3/2-arg overloads delegate to impl(..., false): bit-identical.
- curved_boolean_assemble: gated VDE_W87_EDGE_REPAIR=1 path in the weld block
  (guarded weld -> split non-manifold edges -> repair dangling edges into twins
  (union<=2) -> normalize -> pair dangling twins); VDE_W87_DIAG=1 prints
  [w87diag] stage snapshots (edge face-count histogram, dangling endpoints,
  twin groups, UV out-of-range, accept/rollback notes).
- tests: new test_curved_boolean_w87.cpp (7 fast + 1 gated VDE_W87_SLOW=1).

Evidence (task-169): snap_clip default 72/0.459627/74/13 unchanged; repair path
nm 13->0 (wt 0.459627->0.522222, dg 74->86); W75 gates unchanged with repair
(87/0.580769/109/0). 17-fragment pin 33115A50... unchanged; CBRA 18-line
DIFFCOUNT=0; B5 4/4 d1c875b2322e097d; targeted ctest 147/147 pass; 202-body
groups=194 fused=0 stitched=1 single=32 ok=true.
2026-11-21 13:01:54 +08:00
KCP Wave15 5fe189a255 feat(kcp): Wave 15 W89 - W74 two-run determinism, W72 dual-criterion perf gate, B5 prefetch opt-in experiments
A) W74 snap_clip two-run determinism: add opt-in VDE_W89_DIAG branch stamps (boolean_unified entry, mesh cache hit/build, seam/legacy gate decisions, candidate/final stamps, prefetch start) plus 7 gated W89Stability tests covering two same-process fresh runs, three-run candidate-set stability, four-run repeated outcomes, two independent spawned processes, diag passivity and mesh-cache reset isolation. Assertions use the honest candidate-set/satisfies-set stability contract (unknown==0, quality verdict stable cross-process) with bitwise equality only within the same known branch.

B) W72 pathological perf sanity: replace single 200-iter 4000us absolute bound with median-of-3 (3x100 iters, warmup 5) dual criterion - relative to quiet baseline constant (1150us x6) plus order-of-magnitude hard cap (20000us), still masked under VDE_COVERAGE_BUILD.

C) B5 prefetch opt-in experiments: VDE_W89_PREFETCH_CAP (override W31 guard-repair prefetch 512-face cap, applied consistently at guard accept side) and VDE_W89_PREFETCH_EARLY (start snapshot before heal/snap). Both default off; default path bit-identical (legacy snapshot faces=1059 dg=516, B5 digests unchanged). ABBA on box_cylinder/box_cylinder_sphere/torus_box shows no wall-clock gain (+-3%) with identical digests - status quo maintained.

Gates: default zero behavior change; 18-line CBRA gate byte-identical (SHA256 B3ACDDC6...); B5 4/4 digest d1c875b2322e097d; targeted ctest 0 failed out of 88; 7 new tests. Evidence: build/kcp15_evidence/stab. Notes: docs/planning/wave15/stab-notes.md.
2026-11-21 12:54:31 +08:00
hm bc157d9c69 merge: sync origin/main (periodic band trim domains / fixed-size prism sampling) into 1.0.481 release 2026-11-21 12:06:27 +08:00
hm 460890de96 merge: integrate W80 curved-rim sub-arc split for cross-type seam pairing (task-161) 2026-11-21 11:24:16 +08:00
hm b2524761d9 merge: integrate W82 assembly seam-network diagnosis + opt-in closure ladder (task-163) 2026-11-21 11:22:37 +08:00
KCP Wave14 Agent e82b93374e feat(brep): W80 B1 curved-rim sub-range split + honest KPI diagnostics (Wave14)
- w80_split_curved_rim_edges(): split curved rim edges at cutter-face rect
  boundary using real curve parameter, insert same-source vertices via
  curve->evaluate(t), rebuild true sub-arcs with curves::trim_curve and
  re-wire loops -- so B-side w62_match_rim_edge sub-matches can upgrade to
  full matches. Gated by VDE_W80_CURVED_RIM_SPLIT=1 inside W62 region
  channel, default off (default path bit-for-bit unchanged).
- honest diagnostics: [w80] stats + w80_print_topology_diag (VDE_W80_DIAG=1,
  print only, does not change results).
- 7 gated tests (VDE_W80_TESTS=1) in tests/brep/test_b1_seam.cpp including
  explicit no-op proof for straight-chord fixtures.
- KPI: default 44-case per-case diff=0 vs archived W50/W56/W62/W68 baseline;
  candidate env clean 0/12 (honest: not achieved, not relaxed); W80 is a
  provable no-op on B1 fixtures (on_plane=0).
- notes: docs/planning/wave14/b1-notes.md
2026-11-21 11:20:31 +08:00
hm a8577e1c03 feat(asm): W82 seam-network diagnostics and opt-in closure strategies
- assembly_fuse: add W82SeamSnapshot diagnostic aggregation (branch events/open
  chains/floating faces + per-pair failure reason) in region-graph path; failures
  now carry [W82 seam network: ...] evidence after the W76 UV retry note.
- assembly_fuse: add opt-in seam closure ladder (env VDE_W82_SEAM_CLOSURE):
  endpoint snapping, open-chain bridging, shared-edge merge retries against
  SSIRegionGraphOptions, plus coplanar-seam unify+heal closure; every result is
  accepted only via BodyMetrics valid||(watertight && dangling==0) + 2% volume
  band, default path stays bit-identical.
- assembly_fuse.h: 8 new options (all default off) with env overrides.
- tests: 5 default-run unit tests + VDE_ASM_W82_PROBE corpus probe (6 new).

KPI: b1 group fused>=1 not achieved (fused=0). Hard blocker is CB3
'1 tangential/ON fragment unresolved' plus CB4 classification(B) ON=1 early
return; assembly-side tolerances (snap eps to 0.1, bridge growth to 100,
coplanar heal tol to 1.0) cannot close the residual seam (dangling=5).
Default 202-body baseline item-identical to W70/W76 (groups=194 fused=0
stitched=1 single=32 contacts=464 ok=true). CBRA 18-line sha256 and B5
digest d1c875b2322e097d unchanged. W81 interface needs in
docs/planning/wave14/asm-notes.md.
2026-11-21 11:20:16 +08:00
hm 37a14207d0 feat(kcp): Wave 14 - W81 CB4 fragment domain contract (env-gated stale-classification acceptance + gated 17-fragment fingerprint) (task-162) 2026-11-21 11:11:17 +08:00
hm ed971c37d2 feat(mesh/cae): periodic band trim domains and fixed-size prism sampling
Wave11 (agent team: periodic-trim A20, tetra-tuning A21):

- conic band trim domain: bypass the fixed 0.35 rad angular-gap gate for full-turn
  small-bore rims (winding + rim_r_max<=4 + gap<=0.45) so 16-point rims (natural gap
  2*pi/16=0.3927) no longer fall back to the degenerate UV path; append an analytic
  cone-tip fan (conic_band -> tip_fan dispatch, VDE_NO_CONE_TIP_FAN to disable),
  treat degenerate analytic trim domains as untrusted in face_measure (use mesh triple),
  and suppress the false "bound cannot be used as hole" CAM warning for periodic
  single-circle-rim faces at import (real truncated faces still warn).
  SCJ02-D12-L85-M5-N5 @0.25: relerr 5.39% FAIL -> open=0/refine L1, body 9295.71 vs
  mesh 9287.51, relerr 0.0882% (tets=51822); SAD02 fixed-size baselines restored bitwise.
- fixed-size prism sampling: closed circular edge (v_start==v_end) had chord length 0,
  so it always sampled n=8 (inscribed octagon, -9.87% ring area) regardless of max_size.
  Estimate by 16-segment polyline arc length with a 24-segment floor for fixed mode;
  auto mode and non-closed edges unchanged. 76/83 mesh_rejected fixed-size files recover
  (75 PlainWasher + 1201-Z1P-A), 3 sub-2mm washers err ~0.0995 -> 0.0113.
- additive catastrophic refine (err>35%, or solid-angle and err>2%): halve size, watertight
  pre-check, 2 attempts, strictly monotone improvement, <=2 levels, env
  VDE_TETRA_CATASTROPHIC_REFINE (default on). Zero recoveries this batch, cost +3.3%.
- KPI window locking: corpus/real/step gained 105 STEP files externally at 2026-11-21
  09:00, shifting the "smallest 250" window; a new file name containing U+00B4 also made
  std::filesystem::path::string() throw on ACP 936. BatchSweep now accepts VDE_CORPUS_LIST
  (pinned corpus-relative paths, skip-nonansi for unmappable names) and
  tools/run_cae_sweep.ps1 gains -FileList; window pinned in
  tests/data/cae_kpi_files_250.txt (250 files, identical to the Wave7-Wave10 window).

KPI (same pinned window, fixed / auto): tet_ok 63 -> 141 (60.8%, 0 regressions) /
168 unchanged (232/232 per-file identical); fixed mesh_rejected 83 -> 7;
time 429.9 -> 473.7 s / 1160.4 -> 908.6 s.

Tests: test_measure 165, test_step_import 107, test_fea_mesh 86 pass (+2 env skips);
23 suites 883 passed / 0 failed; PR gate 1012/1012 (95.08 s); full Release build ok.
Docs: wave11 report, KPI doc 3.9/6/7/8, remaining-gaps closure record, feedback-status,
VDE-1193 section 9.11.76, VDE-1347 notes.
2026-11-21 10:53:06 +08:00
hm 179137ec2f merge: sync origin/main (CAE trim-domain scale, midsurface diagnostics, near-miss tetra refinement) before 1.0.480 push 2026-11-21 10:04:55 +08:00
hm 902a72403b merge: integrate W74 boundary chord retention + coincident-side orientation + sew curve key (task-154) 2026-11-21 08:40:38 +08:00
hm c2176a48ef feat(kcp): Wave 13 - W74 boundary chord retention, coincident-side orientation, sew curve key (snap_clip union satisfies=1 env-gated) (task-154) 2026-11-21 08:40:33 +08:00
hm af4f79d4a1 fix(cae): trim-domain scale, midsurface diagnostics and near-miss tetra refinement
VDE-1347 / VDE-1346 follow-up on the 1.0.478 real-corpus CAE baseline (250 STEP files):

- Sub-2 mm periodic-face trim domains (A17): the closed-band planarity gate used the
  base-surface control-net extent (imported cylinders/cones span +/-1e6 -> 2.0 mm
  tolerance), so hole walls with radius < 1 mm were classified planar, the band path
  was skipped and the inner cylinder area collapsed to 0 (analytic volume +14.7%).
  mesh_face_trimmed / build_face_trim_domain now use nurbs_surface_is_planar_for_trim
  with the trim-loop local extent. iso7089_M1.6 inner area 0 -> 1.869248 (true
  1.869026), analytic volume 4.13276 -> 3.603139 (true 3.603794); washer family 75/75.
  test_measure 162 -> 164.

- Midsurface diagnostics (A18): cae::MidSurface gains additive diagnostics lines with
  constant-thickness stage counts (thickness_gate/contour_gate/no_opposite/apply_fail)
  and the chain-fallback code/message; failures also append a 'diagnostics:' segment to
  message. The 87 mids=0 KPI files are no longer all lumped as chain_failed.
  test_vde1346_cae_preprocess 17 -> 21 (17 existing cases bit-identical).

- Near-miss volume refinement (A19): in auto_size mode a 2-manifold fallback mesh with
  volume error in (2%, 35%] is retried recursively at half the target size (<=3 levels,
  convergence gate < 0.7x, watertight pre-check), with max_size_used reporting the size
  actually used. HEAD_FRONT 0.030272 -> 0.000571823, FOOT 0.057298 -> 0.000175378,
  wheel axis2 0.101637 -> 0.0182983; explicit max_size is unaffected.
  test_fea_mesh 83 -> 86.

Integration: full Release build OK; 23 suites 879 passed / 0 failed; PR gate 1011/1011
(90.98 s). Upstream test_b1_kpi_regression needed an MSVC __VERSION__ guard to compile;
its DefaultSuiteNoDegradation failure is a pre-existing stale baseline (boolean kernel
changed after the baseline was generated) and is not caused by this batch.

250-file KPI (baseline 1.0.478): fixed-size 63/86 unchanged (A17 fixes the analytic
reference; fixed-size prism sampling stays chord-based); auto-size tet_ok 158 -> 168
(72.4%), rejected 68 -> 61, 0 regressions, 919 s (baseline 927 s). New passes: 4 A19
refinements (HEAD/HEAD_FRONT/FOOT/wheel axis2), 2 A17 bolts, 3 sub-2 mm washers.
Mid-surface KPI: the 87 mids=0 files now break down as 35 single-face sheets, 45
low-face solids (thickness/no-opposite gate), 5 multi-feature and 2 complex parts,
all chain_code=e_not_shell_body - i.e. none are thin-wall shells.

Docs: new wave10 report, KPI doc section, remaining-gaps closing record, feedback status,
api-reference-mesh (refine retry + cae_preprocess diagnostics), VDE-1346/VDE-1347 updates.
2026-11-21 00:31:28 +08:00
hm 1df3fc3676 merge: integrate W76 assembly seam network closure (UV retry, ownership on split fragments) (task-156) 2026-11-21 00:29:22 +08:00
cp13-asm b6d32f881e feat(kcp): Wave 13 W76 assembly seam network diagnosis + env-gated failed-member UV-normalization retry (1.0.480)
- ssi_boolean: VDE_W76_DIAG seam diagnostics ([W76GRAPH]/[W76BR]/[W76FB]/[W76FD]/[W76BE]/[W76TOPO]/[W76EDGE]/[W76OPEN]/[W76FACE]/[W76CLS]) printing open-chain/floating endpoint 3D positions + operand face/edge association; duplicate near-coincident branch dedupe ([W76DEDUP]) for retry path.

- assembly_fuse: VDE_W76_UV_RETRY opt-in per-member retry with VDE_CB3_UV_NORM=1 when member region-graph fails with UnsupportedOperation (budget-guarded, default off, zero default-path change). Root cause: CB2 absolute UV tolerances vs pathological tiny UV domain (span~5e-6) drop all coplanar-cap split curves; retry splits faces so W70 coincident ownership resolves overlap fragments (A keep 10.8333 / B drop 10.60057, conservation ok), remaining blocker moves to CB4 stitch-time reclassification (assemble: classification(B) IN 2/OUT 14/ON 1) outside this task's write scope.

- tests: W76SeamNetworkProbe (VDE_ASM_W76_PROBE) + 5 gate-semantics/retry tests; default 202-body counts identical to W70 baseline (groups=194 fused=0 stitched=1 single=32 contacts=464), CBRA 18-line hash and B5 4/4 digest unchanged, targeted ctest 71/71.
2026-11-21 00:28:38 +08:00
hm 7b37fc0b21 merge: integrate W75 CB2->CB4 domain contract (ext tag, paired runs, relative UV tol, arc events) (task-155) 2026-11-21 00:12:38 +08:00
cp13-cb2 f4dee299be W75 (P0): CB2->CB4 domain contract - extended-piece tag, A/B same-source pairing, face-relative UV tol, arc-length event merge 2026-11-21 00:11:20 +08:00
hm b7c422dfd7 feat(kcp): Wave 13 - W78 pathological rational arc logistic remap (w=1e4 rel 4.5e-13), W66 82.702 probe reconstruction test, W61 erratum (task-158) 2026-11-21 00:00:02 +08:00
hm 37bf17de2f merge: integrate W72 pathological rational arc measure guards + W52 audit recalibration (task-151) 2026-11-20 22:40:19 +08:00
hm 74a27d2316 merge: integrate W70 region-graph coincident ownership + conservation (opt-in; member1/2 owned, fused=0 honest) (task-149) 2026-11-20 22:40:11 +08:00
hm 39935d38a5 W12/W70: region-graph coincident-face explicit ownership + conservation (opt-in)
实现 W70(task-149):\n- SSIRegionGraphOptions/AssemblyFuseOptions 新增 coincident_ownership 等 opt-in 字段(默认关,默认路径零行为变化)\n- ssi_boolean.cpp 区域图分类层:同向重合面片对检测(dot>=1-1e-9、共面容差、对方面域投影采样)、union 语义 A 侧保留/B 侧丢弃单拷贝归属、12x12 密集采样面积守恒检查(部分重叠 5% 容差 + 1e-9*scale 严格路径),失败诚实回退\n- assembly_fuse.cpp fuse_group_region_graph 接线 + [RGCODIAG] 诊断(VDE_RG_COINCIDENT_DIAG)\n- 新增 4 个单测 + 1 个 env-gated W70CoincidentProbe;门禁全绿(CBRA 18 行一致、B5 4/4 d1c875b2322e097d、定向 ctest 63/63)\n- 202-body 实跑:member 1/2 所有权生效且守恒 ok;member 3(body20 face7)仍为 seam 未闭合导致的跨边界片段,fused 仍 0(诚实记录,根因链见 notes)
2026-11-20 22:39:53 +08:00