Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

Support canonical shaft holes in native FEA and preserve bounded torus-b

Yuechen Li893a9001cf99
diff --git a/Aetheris.FEA.Tests/ProductionFeaX1Tests.cs b/Aetheris.FEA.Tests/ProductionFeaX1Tests.cs
index aff7a23f..88f500e5 100644
--- a/Aetheris.FEA.Tests/ProductionFeaX1Tests.cs
+++ b/Aetheris.FEA.Tests/ProductionFeaX1Tests.cs
@@ -9,6 +9,37 @@ namespace Aetheris.FEA.Tests;
public sealed class ProductionFeaX1Tests
{
+ [Fact]
+ public void CanonicalShaftHole_RemovesMaterialAndChangesMechanics()
+ {
+ var source = CanonicalBeam.Replace("Analysis LinearElastic", """
+ Modify beam {
+ Hole<Shaft> Opening {
+ On: +Z
+ Center: Point2(4mm, 0mm)
+ Diameter: 8mm
+ End: ThroughAll
+ }
+ }
+ Analysis LinearElastic
+ """);
+ var compilation = FirmamentAnalysisCompiler.Compile(source);
+ Assert.True(compilation.IsSuccess, Describe(compilation));
+ var region = Assert.IsType<Aetheris.Continuum.Regions.Analytic.BlockWithCylindricalHoleRegion>(compilation.Analysis!.Body.ContinuumRegion);
+ Assert.Equal(.004, region.HoleRadius, 12);
+ Assert.Equal(.064, region.HoleCenter.X, 12);
+ Assert.Equal(Aetheris.Continuum.Cir.ContinuumPointClassification.Outside, region.Classify(region.HoleCenter));
+ var withHole = Solve(compilation.Analysis);
+ var plain = Solve(FirmamentAnalysisCompiler.Compile(CanonicalBeam).Analysis!);
+ Assert.True(withHole.IsSuccess, Describe(withHole));
+ Assert.True(withHole.System.CutCells > 0);
+ Assert.True(withHole.MaximumDisplacementMeters > plain.MaximumDisplacementMeters);
+ Assert.InRange(withHole.Equilibrium.ResidualNewton.Length, 0, 1e-4);
+ var sideHole = FirmamentAnalysisCompiler.Compile(source.Replace("On: +Z", "On: +X"));
+ Assert.False(sideHole.IsSuccess);
+ Assert.Contains(sideHole.Diagnostics, item => item.Code == "firmament-analysis-native-feature-unsupported");
+ }
+
private const string CanonicalBeam = """
Model CantileverWitness {
Units: mm
diff --git a/Aetheris.FEA/Firmament/FirmamentAnalysisCompiler.cs b/Aetheris.FEA/Firmament/FirmamentAnalysisCompiler.cs
index 6a6a5687..323b6778 100644
--- a/Aetheris.FEA/Firmament/FirmamentAnalysisCompiler.cs
+++ b/Aetheris.FEA/Firmament/FirmamentAnalysisCompiler.cs
@@ -118,8 +118,33 @@ public static class FirmamentAnalysisCompiler
var scale=UnitScale(units);if(scale is null){diagnostics.Add(Error("firmament-analysis-length-unit-unsupported",$"Analysis body length unit '{units}' is unsupported; use mm, cm, or m.",sourcePath));return Done(null,diagnostics,started);}
var size=sizeRaw.Select(value=>value*scale.Value).ToArray();var bounds=new BoundingBox3D(new(0,0,0),new(size[0],size[1],size[2]));
var modify=Regex.Match(stripped,$@"\bmodify\s+{Regex.Escape(bodyName)}\s*\{{",RegexOptions.CultureInvariant|RegexOptions.IgnoreCase);double? holeRadius=null;
- if(modify.Success){var modifyOpen=stripped.IndexOf('{',modify.Index);var modifyClose=MatchingBrace(stripped,modifyOpen);var radiusMatch=Regex.Match(stripped[(modifyOpen+1)..modifyClose],@"\bradius\s*:\s*(?<v>[-+0-9.eE]+)",RegexOptions.CultureInvariant);if(radiusMatch.Success)holeRadius=Number(radiusMatch.Groups["v"].Value)*scale.Value;}
- region=holeRadius is null?new AxisAlignedBoxRegion(new RegionId(bodyName+":cir"),bounds):new BlockWithCylindricalHoleRegion(new RegionId(bodyName+":cir"),bounds,holeRadius.Value);
+ Point3D? holeCenter = null;
+ var modifications = parse.Document?.ModifyBlocks?.Where(item => item.TargetSolid == bodyName).ToArray() ?? [];
+ var semanticHoles = modifications.SelectMany(item => item.SemanticHoles).ToArray();
+ if (semanticHoles.Length > 0)
+ {
+ // Consume the parser's normalized engineering feature, not a textual radius
+ // search: canonical Hole<Shaft> expresses Diameter and otherwise vanished.
+ var hole = semanticHoles[0];
+ if (semanticHoles.Length != 1 || modifications.Any(item => item.Regions.Count > 0 || item.EdgeFinishes?.Count > 0)
+ || hole.Variant != FirmamentV2SemanticHoleVariant.Shaft
+ || hole.EndCondition.Kind != FirmamentV2SemanticHoleEndKind.ThroughAll
+ || hole.EntryFace.Axis is not ("+Z" or "-Z")
+ || hole.Placement is FirmamentV2ConstructionPlaneHolePlacement)
+ return Done(null, [Error("firmament-analysis-native-feature-unsupported",
+ "Native analysis admits one face-local Z through-shaft hole in a Box. Analyze exported STEP for other feature combinations.", sourcePath)], started);
+ holeRadius = hole.ShaftDiameter * scale.Value / 2;
+ // Native analysis retains its established [0, size] coordinates. CAD's
+ // face-local coordinates are relative to the center of the Box face.
+ holeCenter = new(size[0] / 2 + hole.Center.U * scale.Value,
+ size[1] / 2 + hole.Center.V * scale.Value, size[2] / 2);
+ if (!double.IsFinite(holeRadius.Value) || holeRadius <= 0
+ || holeCenter.Value.X - holeRadius <= 0 || holeCenter.Value.X + holeRadius >= size[0]
+ || holeCenter.Value.Y - holeRadius <= 0 || holeCenter.Value.Y + holeRadius >= size[1])
+ return Done(null, [Error("firmament-analysis-native-hole-outside", "The analysis hole must remain strictly inside the Box's XY boundary.", sourcePath)], started);
+ }
+ else if(modify.Success){var modifyOpen=stripped.IndexOf('{',modify.Index);var modifyClose=MatchingBrace(stripped,modifyOpen);var radiusMatch=Regex.Match(stripped[(modifyOpen+1)..modifyClose],@"\bradius\s*:\s*(?<v>[-+0-9.eE]+)",RegexOptions.CultureInvariant);if(radiusMatch.Success)holeRadius=Number(radiusMatch.Groups["v"].Value)*scale.Value;}
+ region=holeRadius is null?new AxisAlignedBoxRegion(new RegionId(bodyName+":cir"),bounds):new BlockWithCylindricalHoleRegion(new RegionId(bodyName+":cir"),bounds,holeRadius.Value,holeCenter);
if(!parse.IsSuccess) diagnostics.Add(new("firmament-analysis-geometry-parser-fallback",AnalysisDiagnosticSeverity.Warning,"The bounded analysis body recognizer admitted Box/through-cylinder syntax while the general geometry parser reported: "+string.Join(",",parse.Diagnostics),analysisSpan));
bodyId=bodyName;sourceKind="FirmamentNative";
}
diff --git a/Aetheris.Kernel.Core/Brep/Tessellation/SurfaceMeshIr.cs b/Aetheris.Kernel.Core/Brep/Tessellation/SurfaceMeshIr.cs
index b93e848c..06a4fd7c 100644
--- a/Aetheris.Kernel.Core/Brep/Tessellation/SurfaceMeshIr.cs
+++ b/Aetheris.Kernel.Core/Brep/Tessellation/SurfaceMeshIr.cs
@@ -1263,7 +1263,7 @@ public static class SurfaceMeshIrTessellator
public CurveGeometryKind RightKind => RightPlan.CurveKind;
}
- private static bool TryGetFourSidedBoundary(BrepBody body, FaceId faceId, IReadOnlyDictionary<EdgeId, SharedEdgeSamplePlan> plans, out FourSidedBoundary boundary, int startOffset = 0)
+ private static bool TryGetFourSidedBoundary(BrepBody body, FaceId faceId, IReadOnlyDictionary<EdgeId, SharedEdgeSamplePlan> plans, out FourSidedBoundary boundary, int startOffset = 0, bool allowClosed = false)
{
boundary = default!;
var loops = body.GetLoopIds(faceId);
@@ -1272,7 +1272,7 @@ public static class SurfaceMeshIrTessellator
var coedges = sourceCoedges.Length == 4
? Enumerable.Range(0, 4).Select(index => sourceCoedges[(index + startOffset) % 4]).ToArray()
: sourceCoedges;
- if (coedges.Length != 4 || coedges.Any(coedge => plans[coedge.EdgeId].IsClosed)) return false;
+ if (coedges.Length != 4 || (!allowClosed && coedges.Any(coedge => plans[coedge.EdgeId].IsClosed))) return false;
IReadOnlyList<SurfaceMeshVertex> Samples(Coedge coedge)
{
var samples = plans[coedge.EdgeId].Samples.ToArray();
@@ -1403,6 +1403,44 @@ public static class SurfaceMeshIrTessellator
List<SurfaceMeshVertex> vertices,
ref int nextVertexId)
{
+ // A swept bend has two closed minor rings and one bounded major arc
+ // used twice as a seam. Those rings do not imply a complete torus.
+ for (var offset = 0; offset < 4; offset++)
+ {
+ if (!TryGetFourSidedBoundary(body, faceId, plans, out var band, offset, allowClosed: true)
+ || !band.TopPlan.IsClosed || !band.BottomPlan.IsClosed
+ || band.LeftPlan.IsClosed || band.RightPlan.IsClosed
+ || band.LeftPlan.EdgeId != band.RightPlan.EdgeId
+ || band.TopKind != CurveGeometryKind.Circle3 || band.BottomKind != CurveGeometryKind.Circle3
+ || band.LeftKind != CurveGeometryKind.Circle3) continue;
+ var ring = band.Top.Select(sample => TryProjectPointToTorusUv(torus, sample.Position)).ToArray();
+ var seam = band.Left.Select(sample => TryProjectPointToTorusUv(torus, sample.Position)).ToArray();
+ if (ring.Any(uv => uv is null) || seam.Any(uv => uv is null)) return null;
+ // Validate ring correspondence before adding any vertices.
+ for (var column = 0; column < ring.Length; column++)
+ if ((torus.Evaluate(seam[^1]!.Value.U, ring[column]!.Value.V) - band.Bottom[column].Position).Length > 1e-7d)
+ return null;
+ var bandGrid = new int[seam.Length, ring.Length];
+ for (var row = 0; row < seam.Length; row++)
+ for (var column = 0; column < ring.Length; column++)
+ {
+ if (row == 0) bandGrid[row, column] = band.Top[column].Id;
+ else if (row == seam.Length - 1) bandGrid[row, column] = band.Bottom[column].Id;
+ else if (column == 0) bandGrid[row, column] = band.Left[row].Id;
+ else if (column == ring.Length - 1) bandGrid[row, column] = band.Right[row].Id;
+ else
+ {
+ var u = seam[row]!.Value.U; var v = ring[column]!.Value.V;
+ bandGrid[row, column] = nextVertexId++;
+ vertices.Add(new SurfaceMeshVertex(bandGrid[row, column], torus.Evaluate(u, v), u, v));
+ }
+ }
+ var bandCells = new List<SurfaceMeshCell>();
+ for (var row = 0; row < seam.Length - 1; row++)
+ for (var column = 0; column < ring.Length - 1; column++)
+ bandCells.Add(new QuadCell(Orient([bandGrid[row,column],bandGrid[row,column+1],bandGrid[row+1,column+1],bandGrid[row+1,column]],sameSense)));
+ return new SurfacePatch(faceId, new SurfaceMeshSupport(SurfaceMeshSupportKind.Torus,Torus:torus), body.GetLoopIds(faceId), bandCells, sameSense, HasPeriodicVSeam:true);
+ }
// Root/concave fillet: four directed circle uses delimit a genuine
// bounded torus domain (major-angle across each split face, minor-angle
// across the fillet). Preserve that coedge ordering; reversing both
diff --git a/Aetheris.Kernel.Firmament.Tests/CircularSweepTests.cs b/Aetheris.Kernel.Firmament.Tests/CircularSweepTests.cs
index 7d16c4bc..429045b6 100644
--- a/Aetheris.Kernel.Firmament.Tests/CircularSweepTests.cs
+++ b/Aetheris.Kernel.Firmament.Tests/CircularSweepTests.cs
@@ -8,6 +8,35 @@ namespace Aetheris.Kernel.Firmament.Tests;
public sealed class CircularSweepTests
{
+ [Fact]
+ public void PaperclipDisplayMesh_PreservesBoundedBendsAndClosedTopology()
+ {
+ var compiled = FirmamentBuildAndExport.CompileSource(PaperclipTemplateLibrary.Source);
+ Assert.True(compiled.IsSuccess);
+ var body = Step242Importer.ImportBody(compiled.Value.StepText).Value;
+ var options = Aetheris.Kernel.Core.Brep.Tessellation.DisplayTessellationOptions.Default;
+ Assert.True(Aetheris.Kernel.Core.Brep.Tessellation.SurfaceMeshIrTessellator.TryBuild(body,
+ Aetheris.Kernel.Core.Brep.Tessellation.SurfaceMeshPolicy.FromDisplayOptions(options), out var mesh));
+ var bends = mesh.Patches.Where(patch => patch.Support.Kind == Aetheris.Kernel.Core.Brep.Tessellation.SurfaceMeshSupportKind.Torus).ToArray();
+ Assert.Equal(3, bends.Length);
+ Assert.All(bends, patch => { Assert.False(patch.HasPeriodicUSeam); Assert.True(patch.HasPeriodicVSeam); });
+ Assert.True(Aetheris.Kernel.Core.Brep.Tessellation.SurfaceMeshIrTessellator.TryLowerToTriangleMesh(mesh, out _, out var topology));
+ Assert.True(topology.IsWatertight);
+ var byId = mesh.Vertices.ToDictionary(vertex => vertex.Id);
+ // The centerline bend joins all occur at y >= 14 mm, except the lower
+ // return at y = 0. No bend may complete its un-authored other half.
+ foreach (var patch in bends)
+ {
+ var centerY = patch.Support.Torus!.Value.Center.Y;
+ foreach (var id in patch.Cells.SelectMany(cell => cell.VertexIds).Distinct())
+ {
+ var y = byId[id].Position.Y;
+ if (centerY > 1) Assert.True(y >= centerY - 0.500001);
+ else Assert.True(y <= centerY + 0.500001);
+ }
+ }
+ }
+
[Fact]
public void ConceptPathCircularSweep_ProducesAnalyticEnclosedStepRoundTrip()
{
diff --git a/docs/public/firmament/fea.md b/docs/public/firmament/fea.md
index ae03ade5..30d15996 100644
--- a/docs/public/firmament/fea.md
+++ b/docs/public/firmament/fea.md
@@ -37,3 +37,7 @@ Model CantileverWitness {
The A36 witness [`material-resolved-cantilever.firmament`](../../../fixtures/Canonical/FEA/material-resolved-cantilever.firmament) is a 100 × 30 × 15 mm beam under a 500 N tip load. At `Lattice: [16, 2, 2]`, Preview 3 reports `25.0619 µm`; Euler–Bernoulli beam theory with the catalog's 200 GPa modulus predicts about `24.7 µm`. This is a narrow sanity comparison, not a general accuracy claim.
Native selectors preserve the body identifier: the example uses `Beam.face(-X)` and `Beam.face(+X)`. Imported selectors use AP242 identity such as `body.face(#170)` after bounded inline import. [`inline-step-cantilever.firmament`](../../../fixtures/Canonical/FEA/inline-step-cantilever.firmament) is the qualified imported example. Arbitrary imported containment is not promised; affected bodies fail loudly with `firmament-analysis-inline-step-containment-unsupported`.
+
+Native Box analysis also consumes one canonical face-local `Hole<Shaft>` with `On: +Z` or `On: -Z` and `End: ThroughAll`. The analysis compiler uses the parsed diameter and center, so the opening removes occupied material. It maps the Box-centered CAD coordinates into the existing native analysis `[0, Size]` coordinate frame. Multiple semantic holes, side holes, counterbores, blind holes, construction-plane placements, and mixed hole/edge-finish modifications require the exported STEP analysis route and fail with `firmament-analysis-native-feature-unsupported` in this native lane. The complete [investor plate witness](../../../fixtures/InvestorPitch/loaded-plate-native.firmament) exercises this path.
+
+The `build` command consumes geometry sources, while `fea` consumes sources containing `Analysis`. For a shared geometry and analysis demonstration, export the geometry file first and analyze that exact file with `inlineSTEP`; the report records the geometry hash. See [the reproducible investor demonstration](../investor-pitch.md).
diff --git a/docs/public/investor-pitch.md b/docs/public/investor-pitch.md
new file mode 100644
index 00000000..94fa2837
--- /dev/null
+++ b/docs/public/investor-pitch.md
@@ -0,0 +1,26 @@
+# Reproducible investor demonstration
+
+The investor demonstration uses the real CLI to produce three Standard Paperclip variants, two Standard Library HexBolt variants, G0/G1 eight-section ergonomic bodies, a CNC-policy coupon, and a loaded aluminum plate. All geometry sources live under `fixtures/InvestorPitch/`.
+
+Run from the repository root with PowerShell 7 and the repository's .NET SDK:
+
+```powershell
+pwsh -NoProfile -File scripts/build-vc-pitch-evidence.ps1
+```
+
+The script builds the CLI, exports each model, analyzes and verifies STEP, generates previews, checks repeated STEP hashes, runs FEA on two lattices and through the native route, and verifies an expected CNC policy rejection. Generated files go to ignored `artifacts/local/vc-pitch/`. `-OutputRoot` changes that destination. The analysis source's imported path is rewritten to the chosen output root.
+
+Paperclip edits specialize `Standard.Products.Office.Paperclip` using `with`. The longer variant scales both straight legs by 15%; bend lengths stay constant. HexBolt uses the existing compatibility template with an under-head length of 35 or 50 mm; the thread designation remains metadata on cylindrical geometry.
+
+The plate is 120 x 40 x 8 mm with a 12 mm through-hole. The catalog supplies 6061-T6 material data. A 1000 N total load acts on the +X end and the -X end is fixed. The imported analysis uses inspected STEP face identities `#141` and `#170`; those are tied to this deterministic geometry, not general-purpose face selectors. Native analysis consumes the same dimensions and canonical shaft hole. The package includes a separate A36 cantilever sanity case.
+
+CNC evidence checks the implemented minimum-tool-radius rule: the 4 mm diameter hole passes a 0.75 mm minimum and fails a 3 mm minimum. The coupon's other policy fields are not separate DFM proofs.
+
+The presentation source, editable PPTX, PDF viewing copy, rendered assets, per-slide claim manifest, external-source metadata, engineering interpretation and reproduction README are delivered in the generated investor package. Market and commercial sections identify historical sourced figures and proposed business assumptions. They do not assert revenue or customer traction.
+
+For source validation:
+
+```powershell
+dotnet build Aetheris.slnx -f net10.0 -m:1
+dotnet test Aetheris.slnx -f net10.0 --no-build --filter 'Category!=SlowCorpus'
+```
diff --git a/docs/public/reference/supported-features.md b/docs/public/reference/supported-features.md
index 18fefb9c..3fd630d0 100644
--- a/docs/public/reference/supported-features.md
+++ b/docs/public/reference/supported-features.md
@@ -12,7 +12,7 @@
| Circular Sweep | Bounded (X0) | Open planar XY Concept Path, tangent line/arc segments, constant circular diameter, analytic cylinder/torus faces, capped solid; no general 3D/variable/rail/twist sweep |
| Wire coils | Bounded (WIRE-X1) | Semantic AxisCoil plus Cylinder/Frustum/Sphere SurfaceCoil, explicit handedness/clearance, constant circular wire, evaluable winding authority, deterministic cubic non-rational STEP tube; no variable pitch/section, arbitrary support, intentional contact, dynamics, or knots |
| Formed Wire | Bounded (WIRE-X0) | One open, continuous, unbranched constant circular wire; explicit 3D StartFrame; ordered Straight and signed planar Bend operations through ±180° in current local Up/Right planes; exact line/arc centerline, ideal cut length/volume/mass, analytic cylinders/tori/caps, terminals, and fail-closed no-contact validation. No coils, knots, branches, variable section, springback, or intentional contact. See [guide](../firmament/wire-form.md). |
-| SectionChain ruled loft substrate | Bounded (SURF-X3b subset) | Firmament authoring lowers into ordered framed, same-topology semantic SectionChain IR; one-to-one ruled transitions; shared edges; Cap/Open; strict pcurves; deterministic intersection checks; persistent typed BodyState Add/Remove through documented planar housing lanes; no generic CSG authoring, rational product surface, or faceted fallback. See [Section chains](../firmament/section-chains.md). |
+| SectionChain loft substrate | Bounded (SURF-X4 subset) | Firmament authoring lowers into ordered framed, same-topology semantic SectionChain IR; explicit G0 ruled or default G1 local polynomial transitions; shared edges and tangent fields; Cap/Open; strict pcurves; deterministic intersection checks; persistent typed BodyState Add/Remove through documented planar housing lanes; no generic CSG authoring, rational product surface, or faceted fallback. See [Section chains](../firmament/section-chains.md). |
| Structural / weldment | Bounded (X2) | Explicit 3D nodes and straight paths; identifiable members; square/rectangular/round tube, angle, flat/round bar; orientation; catalog material; two-member butt and polygonal miter joints; semantic fillet welds; AP242 member assembly and deterministic JSON Cut List. No coping, curved routing, multi-member miter, connection design, weld analysis, or structural FEA. See [guide](../firmament/structural.md). |
| Semantic piping / routing | Bounded (X3a) | Logical connections; equipment-owned port Interfaces and hollow nozzle stubs; target-port-scoped owner KeepOut exemptions; coincident endpoint mates; explicit orthogonal 3D routes; deterministic A* proposals; editable accepted routes; 90-degree elbows; bounded local rerouting; AP242 assembly, BOM, and pipe Cut List. No freeform, stress-, flow-, slope-, or plant-scale routing. See [guide](../firmament/piping.md). |
| Boss | Bounded | First-class connected finite profile addition; relative `On: Top` resolves the highest current semantic support under the footprint, named `<feature>.Top`/`Base.Top` is explicit, ambiguity fails typed; positive height; lowers through existing `Add`; no arbitrary solid union |
@@ -34,7 +34,7 @@
| Platform qualification | Supported | Windows x64 bundle; NativeAOT Forge Host on `win-x64` |
| Linux/macOS release binaries | Not in Preview 3 | Framework logic tests do not constitute binary qualification |
| Post-Preview-3 feature families | X0 exception | Circular Sweep, WIRE-X0 Formed Wire, and Standard Products Paperclip are bounded X0 additions; other new geometry/PMI/FEA/Forge families remain frozen |
-| General smooth/rail/topology-changing loft, helix, and freeform surface features | Not in Preview 3 | The experimental ruled SectionChain substrate does not qualify arbitrary smooth loft, guide rails, topology-changing correspondence, arbitrary dumb-solid editing, or surface networks. |
+| General smooth/rail/topology-changing loft, helix, and freeform surface features | Not in Preview 3 | Bounded G1 SectionChains do not qualify arbitrary smooth loft, guide rails, topology-changing correspondence, arbitrary dumb-solid editing, G2 continuity, or surface networks. |
| Through profile removal | Bounded semantic operations | Use qualified `Hole`, `Slot`, or another documented opening feature; Pocket never means through-all |
| Arbitrary solid Boolean subtraction / hemispherical cavity | Not in Preview 3 | No public `Union`, `Subtract`, `Intersect`, CSG tree, Sphere-from-Block subtraction, or hemisphere special case |
diff --git a/fixtures/InvestorPitch/bolt-longer.firmament b/fixtures/InvestorPitch/bolt-longer.firmament
new file mode 100644
index 00000000..3ddf5110
--- /dev/null
+++ b/fixtures/InvestorPitch/bolt-longer.firmament
@@ -0,0 +1,59 @@
+Model McMaster91180A151ThreadlessHexBolt {
+ Units: mm
+
+ Record HexBoltSpec {
+ StableId: String
+ NominalDiameter: Length
+ Length: Length
+ HeadAcrossFlats: Length
+ HeadHeight: Length
+ TopFlatDiameter: Length
+ TopChamferAngle: Angle
+ TipChamferLength: Length
+ TipDiameter: Length
+ ThreadLength: Length
+ ThreadDesignation: String
+ PropertyClass: String
+ UnderHeadRadius: Length
+ }
+
+ Static Bolts: HexBoltSpec[] = [
+ HexBoltSpec {
+ StableId: "McMaster91180A151"
+ NominalDiameter: 8mm
+ Length: 50mm
+ HeadAcrossFlats: 13mm
+ HeadHeight: 5.3mm
+ TopFlatDiameter: 12.35mm
+ TopChamferAngle: 25deg
+ TipChamferLength: 0.9375mm
+ TipDiameter: 6.125mm
+ ThreadLength: 22mm
+ ThreadDesignation: "M8 x 1.25"
+ PropertyClass: "8.8"
+ UnderHeadRadius: 0.2mm
+ }
+ ]
+
+ Template HexBolt(HexBoltSpec spec) {
+ StandardPart Bolt {
+ Family: HexBolt
+ StableId: spec.StableId
+ NominalDiameter: spec.NominalDiameter
+ Length: spec.Length
+ HeadAcrossFlats: spec.HeadAcrossFlats
+ HeadHeight: spec.HeadHeight
+ TopFlatDiameter: spec.TopFlatDiameter
+ TopChamferAngle: spec.TopChamferAngle
+ TipChamferLength: spec.TipChamferLength
+ TipDiameter: spec.TipDiameter
+ ThreadLength: spec.ThreadLength
+ ThreadDesignation: spec.ThreadDesignation
+ PropertyClass: spec.PropertyClass
+ UnderHeadRadius: spec.UnderHeadRadius
+ }
+ }
+
+ HexBolt(Bolts[0])
+}
+
diff --git a/fixtures/InvestorPitch/bolt-reference.firmament b/fixtures/InvestorPitch/bolt-reference.firmament
new file mode 100644
index 00000000..cd99aaf5
--- /dev/null
+++ b/fixtures/InvestorPitch/bolt-reference.firmament
@@ -0,0 +1,59 @@
+Model McMaster91180A151ThreadlessHexBolt {
+ Units: mm
+
+ Record HexBoltSpec {
+ StableId: String
+ NominalDiameter: Length
+ Length: Length
+ HeadAcrossFlats: Length
+ HeadHeight: Length
+ TopFlatDiameter: Length
+ TopChamferAngle: Angle
+ TipChamferLength: Length
+ TipDiameter: Length
+ ThreadLength: Length
+ ThreadDesignation: String
+ PropertyClass: String
+ UnderHeadRadius: Length
+ }
+
+ Static Bolts: HexBoltSpec[] = [
+ HexBoltSpec {
+ StableId: "McMaster91180A151"
+ NominalDiameter: 8mm
+ Length: 35mm
+ HeadAcrossFlats: 13mm
+ HeadHeight: 5.3mm
+ TopFlatDiameter: 12.35mm
+ TopChamferAngle: 25deg
+ TipChamferLength: 0.9375mm
+ TipDiameter: 6.125mm
+ ThreadLength: 22mm
+ ThreadDesignation: "M8 x 1.25"
+ PropertyClass: "8.8"
+ UnderHeadRadius: 0.2mm
+ }
+ ]
+
+ Template HexBolt(HexBoltSpec spec) {
+ StandardPart Bolt {
+ Family: HexBolt
+ StableId: spec.StableId
+ NominalDiameter: spec.NominalDiameter
+ Length: spec.Length
+ HeadAcrossFlats: spec.HeadAcrossFlats
+ HeadHeight: spec.HeadHeight
+ TopFlatDiameter: spec.TopFlatDiameter
+ TopChamferAngle: spec.TopChamferAngle
+ TipChamferLength: spec.TipChamferLength
+ TipDiameter: spec.TipDiameter
+ ThreadLength: spec.ThreadLength
+ ThreadDesignation: spec.ThreadDesignation
+ PropertyClass: spec.PropertyClass
+ UnderHeadRadius: spec.UnderHeadRadius
+ }
+ }
+
+ HexBolt(Bolts[0])
+}
+
diff --git a/fixtures/InvestorPitch/cnc-policy-rejected.firmament b/fixtures/InvestorPitch/cnc-policy-rejected.firmament
new file mode 100644
index 00000000..c25403d8
--- /dev/null
+++ b/fixtures/InvestorPitch/cnc-policy-rejected.firmament
@@ -0,0 +1,64 @@
+Concept CncManufacturingPolicy {
+ MinimumToolRadius: Length
+ MinimumWallThickness: Length
+ MinimumFloorThickness: Length
+ MinimumHoleDiameter: Length
+}
+
+Concept CncCouponContract {
+ Bounds: Box3
+ TopPlane: Plane
+ ProbePoints: Point3[]
+}
+
+Record CncPolicySpec {
+ MinimumToolRadius: Length
+ MinimumWallThickness: Length
+ MinimumFloorThickness: Length
+ MinimumHoleDiameter: Length
+}
+
+Static CncShopDefaults: CncPolicySpec = CncPolicySpec {
+ MinimumToolRadius: 0.5mm
+ MinimumWallThickness: 0.8mm
+ MinimumFloorThickness: 1.0mm
+ MinimumHoleDiameter: 1.0mm
+}
+
+Static CncAluminum: CncPolicySpec = CncShopDefaults with {
+ MinimumToolRadius: 3mm
+ MinimumFloorThickness: 1.5mm
+}
+
+Template<Policy: CncPolicySpec>
+Struct CncCoupon: CncCouponContract {
+ Require PositiveLimits => Policy.MinimumToolRadius > 0mm && Policy.MinimumWallThickness > 0mm && Policy.MinimumFloorThickness > 0mm && Policy.MinimumHoleDiameter > 0mm
+ Concept Struct Dfm: CncManufacturingPolicy {
+ MinimumToolRadius: Policy.MinimumToolRadius
+ MinimumWallThickness: Policy.MinimumWallThickness
+ MinimumFloorThickness: Policy.MinimumFloorThickness
+ MinimumHoleDiameter: Policy.MinimumHoleDiameter
+ }
+ Concept Struct Layout: CncCouponContract {
+ Bounds: Box3 { Size: [30mm, 20mm, 6mm] }
+ TopPlane: Bounds.Face(+Z)
+ ProbePoints: Grid { Within: Bounds.Face(+Z).Inset(5mm); Columns: 1; Rows: 1 }
+ }
+ Box Coupon { Bounds: Layout.Bounds }
+ Modify Coupon {
+ Hole<Shaft> Probe {
+ On: Coupon.Top
+ Center: Layout.ProbePoints[0]
+ Diameter: 4mm
+ End: ThroughAll
+ }
+ }
+ Expose {
+ Bounds: Layout.Bounds
+ TopPlane: Coupon.Top
+ ProbePoints: Layout.ProbePoints
+ }
+}
+
+Struct AluminumCoupon = CncCoupon<Policy: CncAluminum>
+
diff --git a/fixtures/InvestorPitch/cnc-policy.firmament b/fixtures/InvestorPitch/cnc-policy.firmament
new file mode 100644
index 00000000..7d0991e5
--- /dev/null
+++ b/fixtures/InvestorPitch/cnc-policy.firmament
@@ -0,0 +1,63 @@
+Concept CncManufacturingPolicy {
+ MinimumToolRadius: Length
+ MinimumWallThickness: Length
+ MinimumFloorThickness: Length
+ MinimumHoleDiameter: Length
+}
+
+Concept CncCouponContract {
+ Bounds: Box3
+ TopPlane: Plane
+ ProbePoints: Point3[]
+}
+
+Record CncPolicySpec {
+ MinimumToolRadius: Length
+ MinimumWallThickness: Length
+ MinimumFloorThickness: Length
+ MinimumHoleDiameter: Length
+}
+
+Static CncShopDefaults: CncPolicySpec = CncPolicySpec {
+ MinimumToolRadius: 0.5mm
+ MinimumWallThickness: 0.8mm
+ MinimumFloorThickness: 1.0mm
+ MinimumHoleDiameter: 1.0mm
+}
+
+Static CncAluminum: CncPolicySpec = CncShopDefaults with {
+ MinimumToolRadius: 0.75mm
+ MinimumFloorThickness: 1.5mm
+}
+
+Template<Policy: CncPolicySpec>
+Struct CncCoupon: CncCouponContract {
+ Require PositiveLimits => Policy.MinimumToolRadius > 0mm && Policy.MinimumWallThickness > 0mm && Policy.MinimumFloorThickness > 0mm && Policy.MinimumHoleDiameter > 0mm
+ Concept Struct Dfm: CncManufacturingPolicy {
+ MinimumToolRadius: Policy.MinimumToolRadius
+ MinimumWallThickness: Policy.MinimumWallThickness
+ MinimumFloorThickness: Policy.MinimumFloorThickness
+ MinimumHoleDiameter: Policy.MinimumHoleDiameter
+ }
+ Concept Struct Layout: CncCouponContract {
+ Bounds: Box3 { Size: [30mm, 20mm, 6mm] }
+ TopPlane: Bounds.Face(+Z)
+ ProbePoints: Grid { Within: Bounds.Face(+Z).Inset(5mm); Columns: 1; Rows: 1 }
+ }
+ Box Coupon { Bounds: Layout.Bounds }
+ Modify Coupon {
+ Hole<Shaft> Probe {
+ On: Coupon.Top
+ Center: Layout.ProbePoints[0]
+ Diameter: 4mm
+ End: ThroughAll
+ }
+ }
+ Expose {
+ Bounds: Layout.Bounds
+ TopPlane: Coupon.Top
+ ProbePoints: Layout.ProbePoints
+ }
+}
+
+Struct AluminumCoupon = CncCoupon<Policy: CncAluminum>
diff --git a/fixtures/InvestorPitch/ergonomic-g0.firmament b/fixtures/InvestorPitch/ergonomic-g0.firmament
new file mode 100644
index 00000000..1614ecb3
--- /dev/null
+++ b/fixtures/InvestorPitch/ergonomic-g0.firmament
@@ -0,0 +1,60 @@
+Model EightSectionErgonomic {
+ Units: mm
+ Concept Struct Stations {
+ D0: Plane { Origin: [0mm,0mm,0mm]; Normal: [1,0,0]; Up: [0,0,1] }
+ D1: Plane { Origin: [12mm,0mm,0mm]; Normal: [1,0,0]; Up: [0,0,1] }
+ D2: Plane { Origin: [27mm,1mm,1mm]; Normal: [1,0,0]; Up: [0,0,1] }
+ D3: Plane { Origin: [43mm,2mm,2mm]; Normal: [1,0,0]; Up: [0,0,1] }
+ D4: Plane { Origin: [59mm,2mm,2mm]; Normal: [1,0,0]; Up: [0,0,1] }
+ D5: Plane { Origin: [75mm,1mm,1mm]; Normal: [1,0,0]; Up: [0,0,1] }
+ D6: Plane { Origin: [89mm,0mm,0mm]; Normal: [1,0,0]; Up: [0,0,1] }
+ D7: Plane { Origin: [100mm,0mm,0mm]; Normal: [1,0,0]; Up: [0,0,1] }
+ }
+ Construction Plane F0 { Trace: Stations.D0 }
+ Construction Plane F1 { Trace: Stations.D1 }
+ Construction Plane F2 { Trace: Stations.D2 }
+ Construction Plane F3 { Trace: Stations.D3 }
+ Construction Plane F4 { Trace: Stations.D4 }
+ Construction Plane F5 { Trace: Stations.D5 }
+ Construction Plane F6 { Trace: Stations.D6 }
+ Construction Plane F7 { Trace: Stations.D7 }
+ Concept Path Small { Start: Point2(-4mm,-3mm) Heading: 0deg Line Bottom { Length: 8mm } Line Right { Turn: 90deg; Length: 6mm } Line Top { Turn: 90deg; Length: 8mm } Close Left }
+ Concept Path Medium { Start: Point2(-10mm,-7mm) Heading: 0deg Line Bottom { Length: 20mm } Line Right { Turn: 90deg; Length: 14mm } Line Top { Turn: 90deg; Length: 20mm } Close Left }
+ Concept Path Large { Start: Point2(-14mm,-10mm) Heading: 0deg Line Bottom { Length: 28mm } Line Right { Turn: 90deg; Length: 20mm } Line Top { Turn: 90deg; Length: 28mm } Close Left }
+ Concept Path Peak { Start: Point2(-16mm,-11mm) Heading: 0deg Line Bottom { Length: 32mm } Line Right { Turn: 90deg; Length: 22mm } Line Top { Turn: 90deg; Length: 32mm } Close Left }
+ Profile PSmall From Small
+ Profile PMedium From Medium
+ Profile PLarge From Large
+ Profile PPeak From Peak
+ SectionChain EightSectionErgonomic {
+ Continuity: G0
+ Transition: Ruled
+ Section Nose { Frame: F0
+ Profile: PSmall
+ Seam: Bottom }
+ Section Front { Frame: F1
+ Profile: PMedium
+ Seam: Bottom }
+ Section PalmFront { Frame: F2
+ Profile: PLarge
+ Seam: Bottom }
+ Section Rise { Frame: F3
+ Profile: PPeak
+ Seam: Bottom }
+ Section Peak { Frame: F4
+ Profile: PPeak
+ Seam: Bottom }
+ Section PalmRear { Frame: F5
+ Profile: PLarge
+ Seam: Bottom }
+ Section Rear { Frame: F6
+ Profile: PMedium
+ Seam: Bottom }
+ Section Tail { Frame: F7
+ Profile: PSmall
+ Seam: Bottom }
+ Start: Cap
+ End: Cap
+ }
+}
+
diff --git a/fixtures/InvestorPitch/ergonomic-g1.firmament b/fixtures/InvestorPitch/ergonomic-g1.firmament
new file mode 100644
index 00000000..e13cd147
--- /dev/null
+++ b/fixtures/InvestorPitch/ergonomic-g1.firmament
@@ -0,0 +1,59 @@
+Model EightSectionErgonomic {
+ Units: mm
+ Concept Struct Stations {
+ D0: Plane { Origin: [0mm,0mm,0mm]; Normal: [1,0,0]; Up: [0,0,1] }
+ D1: Plane { Origin: [12mm,0mm,0mm]; Normal: [1,0,0]; Up: [0,0,1] }
+ D2: Plane { Origin: [27mm,1mm,1mm]; Normal: [1,0,0]; Up: [0,0,1] }
+ D3: Plane { Origin: [43mm,2mm,2mm]; Normal: [1,0,0]; Up: [0,0,1] }
+ D4: Plane { Origin: [59mm,2mm,2mm]; Normal: [1,0,0]; Up: [0,0,1] }
+ D5: Plane { Origin: [75mm,1mm,1mm]; Normal: [1,0,0]; Up: [0,0,1] }
+ D6: Plane { Origin: [89mm,0mm,0mm]; Normal: [1,0,0]; Up: [0,0,1] }
+ D7: Plane { Origin: [100mm,0mm,0mm]; Normal: [1,0,0]; Up: [0,0,1] }
+ }
+ Construction Plane F0 { Trace: Stations.D0 }
+ Construction Plane F1 { Trace: Stations.D1 }
+ Construction Plane F2 { Trace: Stations.D2 }
+ Construction Plane F3 { Trace: Stations.D3 }
+ Construction Plane F4 { Trace: Stations.D4 }
+ Construction Plane F5 { Trace: Stations.D5 }
+ Construction Plane F6 { Trace: Stations.D6 }
+ Construction Plane F7 { Trace: Stations.D7 }
+ Concept Path Small { Start: Point2(-4mm,-3mm) Heading: 0deg Line Bottom { Length: 8mm } Line Right { Turn: 90deg; Length: 6mm } Line Top { Turn: 90deg; Length: 8mm } Close Left }
+ Concept Path Medium { Start: Point2(-10mm,-7mm) Heading: 0deg Line Bottom { Length: 20mm } Line Right { Turn: 90deg; Length: 14mm } Line Top { Turn: 90deg; Length: 20mm } Close Left }
+ Concept Path Large { Start: Point2(-14mm,-10mm) Heading: 0deg Line Bottom { Length: 28mm } Line Right { Turn: 90deg; Length: 20mm } Line Top { Turn: 90deg; Length: 28mm } Close Left }
+ Concept Path Peak { Start: Point2(-16mm,-11mm) Heading: 0deg Line Bottom { Length: 32mm } Line Right { Turn: 90deg; Length: 22mm } Line Top { Turn: 90deg; Length: 32mm } Close Left }
+ Profile PSmall From Small
+ Profile PMedium From Medium
+ Profile PLarge From Large
+ Profile PPeak From Peak
+ SectionChain EightSectionErgonomic {
+ Continuity: G1
+ Section Nose { Frame: F0
+ Profile: PSmall
+ Seam: Bottom }
+ Section Front { Frame: F1
+ Profile: PMedium
+ Seam: Bottom }
+ Section PalmFront { Frame: F2
+ Profile: PLarge
+ Seam: Bottom }
+ Section Rise { Frame: F3
+ Profile: PPeak
+ Seam: Bottom }
+ Section Peak { Frame: F4
+ Profile: PPeak
+ Seam: Bottom }
+ Section PalmRear { Frame: F5
+ Profile: PLarge
+ Seam: Bottom }
+ Section Rear { Frame: F6
+ Profile: PMedium
+ Seam: Bottom }
+ Section Tail { Frame: F7
+ Profile: PSmall
+ Seam: Bottom }
+ Start: Cap
+ End: Cap
+ }
+}
+
diff --git a/fixtures/InvestorPitch/fea-sanity.firmament b/fixtures/InvestorPitch/fea-sanity.firmament
new file mode 100644
index 00000000..42d978ca
--- /dev/null
+++ b/fixtures/InvestorPitch/fea-sanity.firmament
@@ -0,0 +1,19 @@
+Model SteelCantilever {
+ Units: mm
+ Box Beam { Size: [100mm, 30mm, 15mm] }
+
+ Analysis LinearElastic ServiceLoad {
+ Body: Beam
+ Material: Standard.Materials.Steel.ASTM_A36
+ Fixed Root {
+ Region: Beam.face(-X)
+ Components: [X, Y, Z]
+ }
+ Force Tip {
+ Region: Beam.face(+X)
+ Vector: [0N, -500N, 0N]
+ }
+ Results: [Displacement, Strain, Stress, ReactionForce]
+ Lattice: [16, 2, 2]
+ }
+}
diff --git a/fixtures/InvestorPitch/loaded-plate-analysis.firmament b/fixtures/InvestorPitch/loaded-plate-analysis.firmament
new file mode 100644
index 00000000..e01399b9
--- /dev/null
+++ b/fixtures/InvestorPitch/loaded-plate-analysis.firmament
@@ -0,0 +1,17 @@
+Model PitchLoadedPlateAnalysis {
+ Analysis LinearElastic ServiceLoad {
+ Body: inlineSTEP("../../artifacts/local/vc-pitch/engineering/loaded-plate.step")
+ Material: Standard.Materials.Aluminum.6061_T6
+ Fixed Root {
+ Region: body.face(#170)
+ Components: [X, Y, Z]
+ }
+ Force Pull {
+ Region: body.face(#141)
+ Vector: [1000N, 0N, 0N]
+ }
+ Results: [Displacement, Strain, Stress, ReactionForce]
+ Lattice: [12, 4, 2]
+ }
+}
+
diff --git a/fixtures/InvestorPitch/loaded-plate-native.firmament b/fixtures/InvestorPitch/loaded-plate-native.firmament
new file mode 100644
index 00000000..df9cecd7
--- /dev/null
+++ b/fixtures/InvestorPitch/loaded-plate-native.firmament
@@ -0,0 +1,29 @@
+Model PitchLoadedPlate {
+ Units: mm
+ Box Plate { Size: [120mm, 40mm, 8mm] }
+ Modify Plate {
+ Hole<Shaft> ServiceOpening {
+ On: +Z
+ Center: Point2(0mm, 0mm)
+ Diameter: 12mm
+ End: ThroughAll
+ }
+ }
+
+ Analysis LinearElastic ServiceLoad {
+ Body: Plate
+ Material: Standard.Materials.Aluminum.6061_T6
+ Fixed Root {
+ Region: Plate.face(-X)
+ Components: [X, Y, Z]
+ }
+ Force Pull {
+ Region: Plate.face(+X)
+ Vector: [1000N, 0N, 0N]
+ }
+ Results: [Displacement, Strain, Stress, ReactionForce]
+ Lattice: [24, 8, 4]
+ }
+}
+
+
diff --git a/fixtures/InvestorPitch/loaded-plate.firmament b/fixtures/InvestorPitch/loaded-plate.firmament
new file mode 100644
index 00000000..b6d86dc4
--- /dev/null
+++ b/fixtures/InvestorPitch/loaded-plate.firmament
@@ -0,0 +1,13 @@
+Model PitchLoadedPlate {
+ Units: mm
+ Box Plate { Size: [120mm, 40mm, 8mm] }
+ Modify Plate {
+ Hole<Shaft> ServiceOpening {
+ On: +Z
+ Center: Point2(0mm, 0mm)
+ Diameter: 12mm
+ End: ThroughAll
+ }
+ }
+}
+
diff --git a/fixtures/InvestorPitch/paperclip-longer.firmament b/fixtures/InvestorPitch/paperclip-longer.firmament
new file mode 100644
index 00000000..12560175
--- /dev/null
+++ b/fixtures/InvestorPitch/paperclip-longer.firmament
@@ -0,0 +1,9 @@
+Model PitchPaperclipLonger {
+ Units: mm
+ Use Standard.Products.Office
+ Static Longer = Standard.Products.Office.StandardPaperclip with {
+ OuterLegLength: 17.25mm
+ InnerLegLength: 16.1mm
+ }
+ Struct Clip = Standard.Products.Office.Paperclip<P: Longer>
+}
diff --git a/fixtures/InvestorPitch/paperclip-reference.firmament b/fixtures/InvestorPitch/paperclip-reference.firmament
new file mode 100644
index 00000000..6bfed325
--- /dev/null
+++ b/fixtures/InvestorPitch/paperclip-reference.firmament
@@ -0,0 +1,5 @@
+Model PitchPaperclipReference {
+ Units: mm
+ Use Standard.Products.Office
+ Struct Clip = Standard.Products.Office.Paperclip<P: Standard.Products.Office.StandardPaperclip>
+}
diff --git a/fixtures/InvestorPitch/paperclip-wider.firmament b/fixtures/InvestorPitch/paperclip-wider.firmament
new file mode 100644
index 00000000..4cf4be5a
--- /dev/null
+++ b/fixtures/InvestorPitch/paperclip-wider.firmament
@@ -0,0 +1,9 @@
+Model PitchPaperclipWider {
+ Units: mm
+ Use Standard.Products.Office
+ Static Wider = Standard.Products.Office.StandardPaperclip with {
+ OuterBendRadius: 6mm
+ InnerBendRadius: 3.5mm
+ }
+ Struct Clip = Standard.Products.Office.Paperclip<P: Wider>
+}
diff --git a/scripts/build-vc-pitch-evidence.ps1 b/scripts/build-vc-pitch-evidence.ps1
new file mode 100644
index 00000000..30d49f7a
--- /dev/null
+++ b/scripts/build-vc-pitch-evidence.ps1
@@ -0,0 +1,55 @@
+param([string]$OutputRoot = 'artifacts/local/vc-pitch')
+$ErrorActionPreference = 'Stop'
+$repo = Split-Path $PSScriptRoot -Parent
+Set-Location $repo
+$output = [IO.Path]::GetFullPath($OutputRoot, $repo)
+$evidence = Join-Path $output 'evidence'
+$engineering = Join-Path $output 'engineering'
+New-Item -ItemType Directory -Force $evidence,$engineering | Out-Null
+$cli = Join-Path $repo 'Aetheris.CLI/bin/Debug/net10.0/aetheris.dll'
+dotnet build Aetheris.CLI -f net10.0 -m:1
+if ($LASTEXITCODE -ne 0) { throw 'CLI build failed' }
+$commands = [Collections.Generic.List[object]]::new()
+function Invoke-Evidence([string]$Name, [string[]]$Arguments, [int]$ExpectedExit = 0) {
+ $result = & dotnet $cli @Arguments 2>&1
+ $code = $LASTEXITCODE
+ $result | Set-Content (Join-Path $evidence "$Name.json") -Encoding utf8
+ $commands.Add(@{ name=$Name; executable='dotnet'; arguments=@('Aetheris.CLI/bin/Debug/net10.0/aetheris.dll')+$Arguments; exitCode=$code })
+ $commands | ConvertTo-Json -Depth 10 | Set-Content (Join-Path $evidence 'commands.json') -Encoding utf8
+ if ($code -ne $ExpectedExit) { throw "$Name failed: $($result -join [Environment]::NewLine)" }
+ Write-Host "$Name passed"
+}
+$sources = Join-Path $repo 'fixtures/InvestorPitch'
+$names = @('paperclip-reference','paperclip-longer','paperclip-wider','bolt-reference','bolt-longer','ergonomic-g0','ergonomic-g1','cnc-policy','loaded-plate')
+foreach ($name in $names) {
+ $source = Join-Path $sources "$name.firmament"
+ $step = Join-Path $engineering "$name.step"
+ $buildArgs = if ($name.StartsWith('ergonomic')) { @('section-chain','build',$source,'--out',$step,'--json') } else { @('build',$source,'--output',$step,'--json') }
+ Invoke-Evidence "$name-build" $buildArgs
+ Invoke-Evidence "$name-analyze" @('analyze',$step,'--json')
+ Invoke-Evidence "$name-verify" @('verify',$step,'--evidence-dir',(Join-Path $evidence "$name-verification"),'--json')
+ $view = if ($name.StartsWith('paperclip')) { 'top' } elseif ($name.StartsWith('ergonomic')) { 'front' } else { 'iso' }
+ Invoke-Evidence "$name-wireframe" @('wireframe',$step,'--out',(Join-Path $engineering "$name.svg"),'--view',$view,'--density','4','--json')
+ # G1 B-spline surfaces use the exact-support wireframe renderer. The CLI's
+ # analytic-only SurfaceMeshIR exporter does not support that surface family.
+ if ($name -ne 'ergonomic-g1') {
+ Invoke-Evidence "$name-mesh" @('mesh',$step,'--format','obj','--output',(Join-Path $engineering "$name.obj"),'--json')
+ }
+ $before = (Get-FileHash $step -Algorithm SHA256).Hash
+ Invoke-Evidence "$name-repeat" $buildArgs
+ if ((Get-FileHash $step -Algorithm SHA256).Hash -ne $before) { throw "$name STEP is not deterministic" }
+}
+$analysis = (Get-Content (Join-Path $sources 'loaded-plate-analysis.firmament') -Raw).Replace('../../artifacts/local/vc-pitch/engineering/loaded-plate.step', (Join-Path $engineering 'loaded-plate.step').Replace('\','/'))
+$analysisPath = Join-Path $engineering 'loaded-plate.analysis.firmament'
+Set-Content $analysisPath $analysis -Encoding utf8
+Invoke-Evidence 'fea-base' @('fea',$analysisPath,'--out-dir',(Join-Path $engineering 'fea-base'),'--json')
+Invoke-Evidence 'fea-fine' @('fea',$analysisPath,'--lattice','24,8,4','--out-dir',(Join-Path $engineering 'fea-fine'),'--json')
+Invoke-Evidence 'fea-sanity' @('fea',(Join-Path $sources 'fea-sanity.firmament'),'--out-dir',(Join-Path $engineering 'fea-sanity'),'--json')
+Invoke-Evidence 'fea-native' @('fea',(Join-Path $sources 'loaded-plate-native.firmament'),'--out-dir',(Join-Path $engineering 'fea-native'),'--json')
+Invoke-Evidence 'cnc-policy-rejected' @('build',(Join-Path $sources 'cnc-policy-rejected.firmament'),'--output',(Join-Path $engineering 'cnc-rejected.step'),'--json') 1
+if ((Get-Content (Join-Path $evidence 'cnc-policy-rejected.json') -Raw) -notmatch 'minimum-tool-radius-violation') { throw 'Expected CNC rejection reason missing' }
+Get-ChildItem $engineering -File -Recurse | ForEach-Object {
+ @{ file=[IO.Path]::GetRelativePath($output,$_.FullName); sha256=(Get-FileHash $_.FullName -Algorithm SHA256).Hash }
+} | ConvertTo-Json | Set-Content (Join-Path $evidence 'artifact-hashes.json') -Encoding utf8
+git rev-parse HEAD | Set-Content (Join-Path $evidence 'repository-commit.txt')
+dotnet --version | Set-Content (Join-Path $evidence 'dotnet-version.txt')