Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
Improve CAD model authoring and validation
Yuechen Li0a72e6f134b4
diff --git a/Aetheris.CLI.Tests/AssemblyDomainImportsTests.cs b/Aetheris.CLI.Tests/AssemblyDomainImportsTests.csnew file mode 100644index 00000000..62894c22--- /dev/null+++ b/Aetheris.CLI.Tests/AssemblyDomainImportsTests.cs@@ -0,0 +1,34 @@+using System.Text.Json;++namespace Aetheris.CLI.Tests;++public sealed class AssemblyDomainImportsTests+{+ [Theory]+ [InlineData("network-appliance-product-m6.firmasm")]+ [InlineData("network-appliance-product-m7.firmasm")]+ public void SheetMetalAssemblyAdmitsStepAndReportsDisplayCapabilityAfterDomainBinding(string name)+ {+ var repo = Path.GetFullPath(Path.Combine(AppContext.BaseDirectory,"../../../.."));+ var source = Path.Combine(repo,"fixtures/Compatibility/Firmasm/SheetMetal",name);+ var output = Path.Combine(repo,"artifacts/local/editable-v8-modules/cli-"+Guid.NewGuid().ToString("N"));+ Directory.CreateDirectory(output);+ try {+ foreach (var command in new[] { new[]{"asm","inspect",source,"--json"},new[]{"validate",source,"--json"} }) {+ var stdout = new StringWriter(); var stderr = new StringWriter();+ Assert.Equal(0,CliRunner.Run(command,stdout,stderr));+ using var json = JsonDocument.Parse(stdout.ToString());+ Assert.True(json.RootElement.GetProperty("success").GetBoolean());+ if(command[0]=="validate") Assert.Equal("Built",json.RootElement.GetProperty("validationLevel").GetString());+ }+ var step=Path.Combine(output,"product.step");+ Assert.Equal(0,CliRunner.Run(["build",source,"--output",step,"--json"],new StringWriter(),new StringWriter()));+ Assert.Contains("ISO-10303-21",File.ReadAllText(step));+ var glb=Path.Combine(output,"product.glb");+ var displayError = new StringWriter();+ Assert.Equal(1,CliRunner.Run(["asm","export-glb",source,glb,"--json"],new StringWriter(),displayError));+ Assert.Contains("assembly-mesh-definition-failed",displayError.ToString());+ Assert.False(File.Exists(glb));+ } finally { Directory.Delete(output,true); }+ }+}diff --git a/Aetheris.CLI/AssemblyGlbCommand.cs b/Aetheris.CLI/AssemblyGlbCommand.csindex d8ec85b9..c2305df0 100644--- a/Aetheris.CLI/AssemblyGlbCommand.cs+++ b/Aetheris.CLI/AssemblyGlbCommand.cs@@ -63,9 +63,10 @@ internal static class AssemblyGlbCommand}}var watch = Stopwatch.StartNew();- var compilation = Path.GetExtension(source).Equals(".firmasm", StringComparison.OrdinalIgnoreCase)- ? new FirmamentAssemblyDocumentCompiler().CompileFile(source).Compilation- : new AssemblyM1Pipeline().CompileFile(source, File.ReadAllText(source).Contains("Use SheetMetal.ProductFamilies", StringComparison.Ordinal) ? EnclosureProductFamilies.MaterializeAssemblyPart : null);+ var usesSheetMetalParts = File.ReadAllText(source).Contains("Use SheetMetal.ProductFamilies", StringComparison.Ordinal);+ var compilation = usesSheetMetalParts ? EnclosureProductFamilies.CompileAssemblyFile(source)+ : Path.GetExtension(source).Equals(".firmasm", StringComparison.OrdinalIgnoreCase)+ ? new FirmamentAssemblyDocumentCompiler().CompileFile(source).Compilation : new AssemblyM1Pipeline().CompileFile(source);if (!compilation.IsSuccess) throw new InvalidOperationException(string.Join("\n", compilation.Diagnostics.Select(d => d.Code + ": " + d.Message)));var compilationMilliseconds = watch.Elapsed.TotalMilliseconds; watch.Restart();var pose = AssemblyKinematics.Evaluate(compilation.Ir!, state);diff --git a/Aetheris.CLI/AssemblyUsdCommand.cs b/Aetheris.CLI/AssemblyUsdCommand.csindex 190a7f46..121310bd 100644--- a/Aetheris.CLI/AssemblyUsdCommand.cs+++ b/Aetheris.CLI/AssemblyUsdCommand.cs@@ -40,9 +40,10 @@ internal static class AssemblyUsdCommand}if (!string.Equals(Path.GetExtension(output), ".usda", StringComparison.OrdinalIgnoreCase)) throw new ArgumentException("X0 writes readable .usda files; use external usdcat to convert to .usdc.");var materials = materialPath is null ? null : JsonSerializer.Deserialize<Dictionary<string, AssemblyUsdMaterial>>(File.ReadAllText(materialPath), new JsonSerializerOptions { PropertyNameCaseInsensitive = true });- var compilation = Path.GetExtension(path).Equals(".firmasm", StringComparison.OrdinalIgnoreCase)- ? new FirmamentAssemblyDocumentCompiler().CompileFile(path).Compilation- : new AssemblyM1Pipeline().CompileFile(path, File.ReadAllText(path).Contains("Use SheetMetal.ProductFamilies", StringComparison.Ordinal) ? EnclosureProductFamilies.MaterializeAssemblyPart : null);+ var usesSheetMetalParts = File.ReadAllText(path).Contains("Use SheetMetal.ProductFamilies", StringComparison.Ordinal);+ var compilation = usesSheetMetalParts ? EnclosureProductFamilies.CompileAssemblyFile(path)+ : Path.GetExtension(path).Equals(".firmasm", StringComparison.OrdinalIgnoreCase)+ ? new FirmamentAssemblyDocumentCompiler().CompileFile(path).Compilation : new AssemblyM1Pipeline().CompileFile(path);if (!compilation.IsSuccess) throw new InvalidOperationException(string.Join("\n", compilation.Diagnostics.Select(d => d.Code + ": " + d.Message)));var pose = AssemblyKinematics.Evaluate(compilation.Ir!, state);var watch = Stopwatch.StartNew();diff --git a/Aetheris.CLI/CliRunner.cs b/Aetheris.CLI/CliRunner.csindex 03b8c59b..5b7ae4bf 100644--- a/Aetheris.CLI/CliRunner.cs+++ b/Aetheris.CLI/CliRunner.cs@@ -2369,8 +2369,12 @@ Model CanonicalPanel {return GarmentCommand.Run(["inspect", sourcePath, .. (json ? new[] { "--json" } : Array.Empty<string>())], stdout, stderr);if (FirmamentLanguageAnalysisService.HasAssemblyRoot(validationSource)){- var parsedAssembly = parseOnly ? new AssemblyM0Parser().ParseFile(sourcePath) : null;- var builtAssembly = parseOnly ? null : new AssemblyM1Pipeline().CompileFile(sourcePath);+ var sheetMetalAssembly = validationSource.Contains("Use SheetMetal.ProductFamilies", StringComparison.Ordinal);+ var parsedAssembly = parseOnly ? sheetMetalAssembly+ ? new AssemblyM0Parser().Parse(SheetMetalFirmament.ResolveImports(validationSource),Path.GetFullPath(sourcePath))+ : new AssemblyM0Parser().ParseFile(sourcePath) : null;+ var builtAssembly = parseOnly ? null : sheetMetalAssembly+ ? EnclosureProductFamilies.CompileAssemblyFile(sourcePath) : new AssemblyM1Pipeline().CompileFile(sourcePath);var validAssembly = parsedAssembly?.IsSuccess ?? builtAssembly!.IsSuccess;var payload = new { success=validAssembly, domain="Assembly", validationLevel=!validAssembly ? "BuildRejected" : parseOnly ? "ParsedNotBuilt" : "Built",diagnostics=parsedAssembly?.Diagnostics ?? builtAssembly!.Diagnostics };@@ -4089,9 +4093,9 @@ Model CanonicalPanel {assemblyPerformance = document.Compilation.Performance;success = document.IsSuccess;}- else if (usesTemplateInstances || usesGearParts)+ else if (usesTemplateInstances || usesGearParts || usesSheetMetalParts){- var m1 = new AssemblyM1Pipeline().CompileFile(path, usesSheetMetalParts ? EnclosureProductFamilies.MaterializeAssemblyPart : null);+ var m1 = usesSheetMetalParts ? EnclosureProductFamilies.CompileAssemblyFile(path) : new AssemblyM1Pipeline().CompileFile(path);assemblyIr = m1.Ir;geometryArtifact = m1.Geometry?.Artifact;assemblyDiagnostics = m1.Diagnostics;@@ -5068,7 +5072,7 @@ Model CanonicalPanel {var usesSheetMetalParts = sourceText.Contains("Use SheetMetal.ProductFamilies", StringComparison.Ordinal);var compilation = string.Equals(Path.GetExtension(args[0]), ".firmasm", StringComparison.OrdinalIgnoreCase) && !usesSheetMetalParts? new FirmamentAssemblyDocumentCompiler().CompileFile(args[0]).Compilation- : new AssemblyM1Pipeline().CompileFile(args[0], usesSheetMetalParts ? EnclosureProductFamilies.MaterializeAssemblyPart : null);+ : usesSheetMetalParts ? EnclosureProductFamilies.CompileAssemblyFile(args[0]) : new AssemblyM1Pipeline().CompileFile(args[0]);var export = AssemblyIrAp242Exporter.Export(compilation);if (!export.IsSuccess) { foreach (var diagnostic in export.Diagnostics) stderr.WriteLine($"{diagnostic.Source}: {diagnostic.Message}"); return 1; }var fullOutput = Path.GetFullPath(output); Directory.CreateDirectory(Path.GetDirectoryName(fullOutput)!); File.WriteAllText(fullOutput, export.Value);diff --git a/Aetheris.Kernel.Firmament.Tests/Assembly/AssemblyFrameValueTests.cs b/Aetheris.Kernel.Firmament.Tests/Assembly/AssemblyFrameValueTests.csnew file mode 100644index 00000000..02f2a997--- /dev/null+++ b/Aetheris.Kernel.Firmament.Tests/Assembly/AssemblyFrameValueTests.cs@@ -0,0 +1,104 @@+using Aetheris.Kernel.Firmament.Assembly;+using Aetheris.Kernel.Firmament.Materializer;++namespace Aetheris.Kernel.Firmament.Tests.Assembly;++public sealed class AssemblyFrameValueTests+{+ private const string Source = """+ Record Site { x: Length; y: Length; up: Float }+ Static site: Site = Site { x: 12mm; y: 7mm; up: 1 }+ Assembly Demo {+ <Assembly Demo>+ <Part Post = Panel<L:10mm,W:5mm,H:2mm,R:0mm>>+ Placement { from: Origin; to: World; translateLocal: [site.x,site.y,0mm]; normal: [0,0,site.up]; up: [0,site.up,0]; }+ </Part>+ </Assembly>+ Anchor: Demo;+ }+ """;++ [Fact]+ public void TypedRecordFieldsReachOrdinaryFramePlacement()+ {+ var parsed = new AssemblyM0Parser().Parse(Source);+ Assert.True(parsed.IsSuccess, string.Join("\n", parsed.Diagnostics.Select(d => d.Message)));+ var compiled = new AssemblyM0Compiler().Compile(parsed.Source!);+ Assert.True(compiled.IsSuccess, string.Join("\n", compiled.Diagnostics.Select(d => d.Message)));+ var post = Assert.Single(compiled.Ir!.Instances, i => i.Kind == AssemblyInstanceKind.Part);+ Assert.Equal(12, post.ResolvedTransform!.Matrix[12], 9);+ Assert.Equal(7, post.ResolvedTransform.Matrix[13], 9);+ }++ [Fact]+ public void MistypedRecordFieldRejectsBeforeFrameLowering()+ {+ var parsed = new AssemblyM0Parser().Parse(Source.Replace("x: 12mm", "x: 12deg"));+ Assert.False(parsed.IsSuccess);+ Assert.Contains(parsed.Diagnostics, d => d.Message.Contains("record-field-type-mismatch", StringComparison.Ordinal));+ }++ [Theory]+ [InlineData("12mm", true)]+ [InlineData("12", true)]+ [InlineData("12deg", false)]+ public void SemanticFrameOriginPreservesLengthAndLegacyUnits(string x, bool accepted)+ {+ var source = $$"""+ Assembly Demo {+ <Assembly Demo>+ Semantic Seat { DatumFrame Frame = [{{x}},0,0] x [1,0,0] y [0,1,0] z [0,0,1]; }+ </Assembly>+ Anchor: Demo;+ }+ """;+ var parsed = new AssemblyM0Parser().Parse(source);+ Assert.Equal(accepted, parsed.IsSuccess);+ if (!accepted) Assert.Contains(parsed.Diagnostics, d => d.Code == "assembly-datum-frame-invalid");+ else {+ var semantic = Assert.Single(parsed.Source!.Root.ExposedSemantics);+ Assert.Equal("Seat", semantic.ExposedName);+ }+ }++ [Fact]+ public void DescendantPortsStayOwnedAndDuplicateAssemblyPortsReject()+ {+ const string source = """+ Assembly Demo {+ <Assembly Demo>+ <Part Post = Panel<L:10mm,W:5mm,H:2mm,R:0mm>>+ Semantic Mount { DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; }+ </Part>+ </Assembly>+ Anchor: Demo;+ }+ """;+ var child = new AssemblyM0Parser().Parse(source);+ Assert.True(child.IsSuccess);+ Assert.Empty(child.Source!.Root.ExposedSemantics);+ const string port = "Semantic Seat { DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; }";+ var duplicate = new AssemblyM0Parser().Parse(source.Replace("<Assembly Demo>", "<Assembly Demo>" + port + port));+ Assert.False(duplicate.IsSuccess);+ Assert.Contains(duplicate.Diagnostics, d => d.Code == "assembly-semantic-duplicate-name");+ }++ [Fact]+ public void CamelCaseWireFieldsLowerToTheSameCoilAir()+ {+ const string source = """+ WireForm Spring {+ Diameter: 2mm+ StartFrame { Origin: [0mm,0mm,0mm]; Tangent: [1,0,0]; Up: [0,0,1] }+ Helix Winding { Radius: 9mm; Turns: 1; Pitch: 6mm; Handedness: RightHanded }+ }+ """;+ var lower = source.Replace("Diameter:","diameter:").Replace("Origin:","origin:").Replace("Tangent:","tangent:")+ .Replace("Up:","up:").Replace("Radius:","radius:").Replace("Turns:","turns:").Replace("Pitch:","pitch:").Replace("Handedness:","handedness:");+ var before = WireFormAuthoring.Parse(source); var after = WireFormAuthoring.Parse(lower);+ Assert.True(before.IsSuccess); Assert.True(after.IsSuccess);+ var expected = Assert.IsType<WireAxisCoilAir>(Assert.Single(before.Value!.Operations));+ var actual = Assert.IsType<WireAxisCoilAir>(Assert.Single(after.Value!.Operations));+ Assert.Equal(expected, actual);+ }+}diff --git a/Aetheris.Kernel.Firmament.Tests/Assembly/AssemblyTypedModuleTests.cs b/Aetheris.Kernel.Firmament.Tests/Assembly/AssemblyTypedModuleTests.csnew file mode 100644index 00000000..ed58abfb--- /dev/null+++ b/Aetheris.Kernel.Firmament.Tests/Assembly/AssemblyTypedModuleTests.cs@@ -0,0 +1,148 @@+using Aetheris.Kernel.Firmament.Assembly;++namespace Aetheris.Kernel.Firmament.Tests.Assembly;++public sealed class AssemblyTypedModuleTests+{+ private const string Config = "Record UnitConfig { x: Length } Static standard: UnitConfig = UnitConfig { x: 10mm }";+ private const string Unit = """+ include "config";+ Inventory Record Parts { stock: Part = Firmament("stock").Stock }+ Template<config: UnitConfig>+ Subassembly Unit {+ <Assembly Unit>+ <Part Stock = Parts.stock> Placement { from: Origin; to: World; translateLocal: [config.x,0mm,0mm]; } </Part>+ </Assembly>+ anchor: Unit;+ expose { Semantic Mount = Stock.Mount; }+ }+ """;+ private const string Root = """+ include "config";+ Inventory Record Units { unit: Subassembly = Firmament("unit").Unit }+ Static configs: Set<UnitConfig> {+ C1 => standard+ C2 => standard with { x: 40mm }+ }+ Assembly Engine {+ <Assembly Engine>+ Pattern Cylinders over configs { config => <Assembly Cylinder = Units.unit<config: config>> Placement { from: Origin; to: World; } </Assembly> }+ </Assembly>+ anchor: Engine;+ }+ """;+ private static FirmamentProjectSnapshot Project(string root = Root, string? unit = null, string? config = null) => new("main.firmasm", new Dictionary<string,string> {+ ["main.firmasm"] = root, ["unit.firmament"] = unit ?? Unit, ["config.firmament"] = config ?? Config,+ ["stock.firmament"] = "Model Stock { units: mm Box stock { size: [10mm,20mm,3mm] } expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } } }"+ });+ [Fact]+ public void InventoryPatternUsesCheckedRecordDerivationsWithoutSharingMutableState()+ {+ var result = new AssemblyM1Pipeline().CompileProject(Project());+ Assert.True(result.IsSuccess, string.Join("\n",result.Diagnostics.Select(d => d.Code + ": " + d.Message)));+ Assert.Equal(2,result.Geometry!.InstanceBodies.Count);+ Assert.Single(result.Geometry.DefinitionBodies);+ var step = AssemblyIrAp242Exporter.Export(result);+ Assert.True(step.IsSuccess,string.Join("\n",step.Diagnostics.Select(d => d.Message)));+ var instances = result.Ir!.Instances.Where(i => i.Kind == AssemblyInstanceKind.Part).ToArray();+ Assert.Equal(new[] {10d,40d},instances.Select(i => i.ResolvedTransform!.Matrix[12]).Order().ToArray());+ Assert.All(instances,i => Assert.Contains("Engine.Cylinders.C",i.Path.ToString()));+ }+ [Fact]+ public void PatternBlockOwnsScopedConceptsInterfacesAndMates()+ {+ var root = Root.Replace("config => <Assembly Cylinder = Units.unit<config: config>> Placement { from: Origin; to: World; } </Assembly>", """+ config => {+ <Assembly Cylinder = Units.unit<config: config>></Assembly>+ Concept Struct Layout {+ Axis Base { origin: [config.x,0mm,0mm]; direction: [0,0,1]; reference: [1,0,0]; }+ }+ Interface<Fixed> Installation { datum: Layout.Base; members: [Cylinder.Mount]; }+ Mate Install: Installation { member: Cylinder.Mount; at: 0mm; clocking: 0deg; }+ }+ """);+ var result = new AssemblyM1Pipeline().CompileProject(Project(root));+ Assert.True(result.IsSuccess, string.Join("\n",result.Diagnostics.Select(d => d.Code + ": " + d.Message)));+ Assert.Equal(2,result.Geometry!.InstanceBodies.Count);+ // The exported mount is at the Stock's config.x; seating it at config.x+ // places the whole specialized unit at its original local origin.+ Assert.Equal(new[] {10d,40d},result.Ir!.Instances.Where(i => i.Kind == AssemblyInstanceKind.Part)+ .Select(i => i.ResolvedTransform!.Matrix[12]).Order().ToArray());+ }++ [Fact]+ public void ReorderingKeysPreservesOccurrenceIdentityAndPlacement()+ {+ var first = new AssemblyM1Pipeline().CompileProject(Project());+ var reordered = Root.Replace("C1 => standard\n C2 => standard with { x: 40mm }", "C2 => standard with { x: 40mm }\n C1 => standard");+ Assert.NotEqual(Root,reordered);+ var second = new AssemblyM1Pipeline().CompileProject(Project(reordered));+ Assert.True(first.IsSuccess); Assert.True(second.IsSuccess);+ var byPath = first.Ir!.Instances.Where(i => i.Kind == AssemblyInstanceKind.Part).ToDictionary(i => i.Path.ToString());+ foreach (var instance in second.Ir!.Instances.Where(i => i.Kind == AssemblyInstanceKind.Part)) {+ Assert.Equal(byPath[instance.Path.ToString()].StableId,instance.StableId);+ Assert.Equal(byPath[instance.Path.ToString()].ResolvedTransform!.Matrix,instance.ResolvedTransform!.Matrix);+ }+ }+ [Fact]+ public void UnknownPatternIntentCannotDisappear()+ {+ var source = Root.Replace("config => <Assembly", "config => { Fillet Ignored { radius: 2mm } <Assembly")+ .Replace("</Assembly> }", "</Assembly> } }");+ var result = new AssemblyM1Pipeline().CompileProject(Project(source));+ Assert.False(result.IsSuccess); Assert.Null(result.Geometry);+ Assert.Contains(result.Diagnostics,d => d.Message.Contains("assembly-pattern-body-invalid"));+ }++ [Fact]+ public void ModulePrivateValueCannotCaptureTheCallerRecordArgument()+ {+ var unit = Unit.Replace("Inventory Record Parts", "Static config: UnitConfig = UnitConfig { x: 999mm }\nInventory Record Parts");+ var result = new AssemblyM1Pipeline().CompileProject(Project(unit: unit));+ Assert.True(result.IsSuccess,string.Join("\n",result.Diagnostics.Select(d => d.Message)));+ Assert.Equal(new[] {10d,40d},result.Ir!.Instances.Where(i => i.Kind == AssemblyInstanceKind.Part)+ .Select(i => i.ResolvedTransform!.Matrix[12]).Order().ToArray());+ }+ [Fact]+ public void DuplicateDeclarationsInPatternBlockAreDiagnosed()+ {+ var root = Root.Replace("config => <Assembly", "config => { <Assembly")+ .Replace("</Assembly> }", "</Assembly> <Assembly Cylinder></Assembly> } }");+ var result = new AssemblyM1Pipeline().CompileProject(Project(root));+ Assert.False(result.IsSuccess);+ Assert.Contains(result.Diagnostics,d => d.Message.Contains("assembly-pattern-duplicate-declaration"));+ }++ [Fact]+ public void NestedRecordBundleCrossesInventoryWithoutLosingItsBoundLeaves()+ {+ var config = "Record Rest { x: Length } Record UnitConfig { rest: Rest } Static rest: Rest = Rest { x: 10mm } Static other: Rest = rest with { x: 40mm } Static standard: UnitConfig = UnitConfig { rest: rest }";+ var root = Root.Replace("x: 40mm", "rest: other");+ var unit = Unit.Replace("config.x", "config.rest.x");+ var result = new AssemblyM1Pipeline().CompileProject(Project(root,unit,config));+ Assert.True(result.IsSuccess,string.Join("\n",result.Diagnostics.Select(d => d.Message)));+ Assert.Equal(new[] {10d,40d},result.Ir!.Instances.Where(i => i.Kind == AssemblyInstanceKind.Part)+ .Select(i => i.ResolvedTransform!.Matrix[12]).Order().ToArray());+ }++ [Fact]+ public void DeferredPartMaterializationCannotCaptureAPrivateRecordWithTheCallerName()+ {+ const string root = "include \"config\"; Inventory Record Parts { stock: Part = Firmament(\"unit\").Stock } Assembly Engine { <Assembly Engine><Part Stock = Parts.stock<config: standard>> Placement { from: Origin; to: World; } </Part></Assembly> anchor: Engine; }";+ const string unit = "include \"config\"; Template<config: UnitConfig> Struct Stock { Box stock { size: [config.x,20mm,3mm] } }";+ var result = new AssemblyM1Pipeline().CompileProject(Project(root,unit));+ Assert.False(result.IsSuccess); Assert.Null(result.Geometry);+ Assert.Contains(result.Diagnostics,d => d.Code == "firmament-inventory-part-record-argument-unsupported" && d.SourceSpan?.Source == "main.firmasm");+ }++ [Theory]+ [InlineData("x: 40mm", "x: 40deg")]+ [InlineData("x: 40mm", "typo: 40mm")]+ public void InvalidWithNeverProducesAnAssembly(string before,string after)+ {+ var result = new AssemblyM1Pipeline().CompileProject(Project(Root.Replace(before,after)));+ Assert.False(result.IsSuccess); Assert.Null(result.Geometry);+ Assert.Contains(result.Diagnostics,d => d.Message.Contains("with-") && d.SourceSpan?.Source == "main.firmasm" && d.SourceSpan.Length > 0 && d.LocationNote is not null);+ }+}+diff --git a/Aetheris.Kernel.Firmament/Assembly/AssemblyDatumAuthoring.cs b/Aetheris.Kernel.Firmament/Assembly/AssemblyDatumAuthoring.csindex b7edae38..45730aeb 100644--- a/Aetheris.Kernel.Firmament/Assembly/AssemblyDatumAuthoring.cs+++ b/Aetheris.Kernel.Firmament/Assembly/AssemblyDatumAuthoring.cs@@ -2,6 +2,7 @@ using System.Globalization;using System.Text.RegularExpressions;using Aetheris.Kernel.Core.Math;using Aetheris.Semantics;+using Aetheris.Kernel.Firmament.FirmamentV2.Syntax;namespace Aetheris.Kernel.Firmament.Assembly;@@ -213,10 +214,10 @@ internal static class AssemblyDatumAuthoringif (!contract.Members.Contains(member, StringComparer.Ordinal))diagnostics.Add(new("assembly-datum-member-outside-contract", $"'{member}' is not a member of '{definition!.Name}'."));var axisParts = member.Split('.');- var child = axisParts.Length == 3 && axisParts[0] == root.Name ? root.Children.FirstOrDefault(c => c.Name == axisParts[1]) : null;+ var child = EndpointOwner(root, axisParts);if (child is null)- { diagnostics.Add(new("assembly-datum-member-scope", "Axis seating requires a direct occurrence's published semantic port.")); continue; }- var port = child.ExposedSemantics.FirstOrDefault(p => p.ExposedName == axisParts[2]);+ { diagnostics.Add(new("assembly-datum-member-scope", "Axis seating requires a visible occurrence's published semantic port.")); continue; }+ var port = child.ExposedSemantics.FirstOrDefault(p => p.ExposedName == axisParts[^1]);if (!ValidAxisPort(port)){ diagnostics.Add(new("assembly-axis-port-invalid", $"'{member}' requires an exact Axis and an aligned seating Frame with origin on the axis.")); continue; }if (!Regex.IsMatch(fields, @"\bAt\s*:")) diagnostics.Add(new("assembly-axis-station-missing", "Axis seating requires At in mm."));@@ -234,9 +235,9 @@ internal static class AssemblyDatumAuthoringvar name = resolvedAxis.Transform.Name + "__" + header.Groups["name"].Value;usedFrames[name] = new(name, "World", [axisTarget[12],axisTarget[13],axisTarget[14]], "Z", 0,[sign*axisTarget[8],sign*axisTarget[9],sign*axisTarget[10]], [sign*axisTarget[4],sign*axisTarget[5],sign*axisTarget[6]], axis.Transform.SourceSpan);- var placement = new AssemblyFramePlacementSource(axisParts[2] + ".Frame", new(name, name + ".Frame", [0,0,0], "Z", 0), definition!.Family, header.Groups["name"].Value,+ var placement = new AssemblyFramePlacementSource(axisParts[^1] + ".Frame", new(name, name + ".Frame", [0,0,0], "Z", 0), definition!.Family, header.Groups["name"].Value,new(definition.Name, contract.Datum, member, station, clocking, Enum.TryParse<DatumOrientationRelation>(axisOrientation, out var relation) ? relation : DatumOrientationRelation.SameDirection));- var axisOccurrence = root.Name + "." + child.Name;+ var axisOccurrence = string.Join(".", axisParts[..^1]);if (seats.ContainsKey(axisOccurrence) || !axisSeats.TryAdd(axisOccurrence, (member, definition.Name, contract.Datum, placement)))diagnostics.Add(new("assembly-placement-authority-conflict", $"'{axisOccurrence}' has multiple datum Mates."));continue;@@ -274,9 +275,9 @@ internal static class AssemblyDatumAuthoring}targetSpec = targetSpec with { Name = targetSpec.Name + "__" + header.Groups["name"].Value };usedFrames[targetSpec.Name] = targetSpec;- var seat = new AssemblyDatumSeat(header.Groups["type"].Value, contract.Datum, parts[2] + ".Frame",+ var seat = new AssemblyDatumSeat(header.Groups["type"].Value, contract.Datum, parts[^1] + ".Frame",datum.Transform.Translation.ToArray(), datum.Transform.Normal!.ToArray(), support);- if (axisSeats.ContainsKey(occurrence) || !seats.TryAdd(occurrence, (seat, new(parts[2] + ".Frame", new(header.Groups["name"].Value,+ if (axisSeats.ContainsKey(occurrence) || !seats.TryAdd(occurrence, (seat, new(parts[^1] + ".Frame", new(header.Groups["name"].Value,targetSpec.Name + ".Frame", [0,0,0], "Z", 0)))))diagnostics.Add(new("assembly-placement-authority-conflict", $"'{occurrence}' has multiple datum-directed Mates."));}@@ -286,9 +287,10 @@ internal static class AssemblyDatumAuthoringif (!seats.Any(p => p.Value.Seat.Interface == definition.Name && p.Key + "." + p.Value.Seat.Port[..^6] == member)&& !axisSeats.Any(p => p.Value.Interface == definition.Name && p.Value.Member == member))diagnostics.Add(new("assembly-datum-member-unseated", $"Contract member '{member}' requires one datum Mate."));- var children = root.Children.Select(child =>+ AssemblyMemberSource Apply(AssemblyMemberSource child, string path){- if (axisSeats.TryGetValue(root.Name + "." + child.Name, out var axisSeating))+ child = child with { Children = child.Children.Select(c => Apply(c, path + "." + c.Name)).ToArray() };+ if (axisSeats.TryGetValue(path, out var axisSeating)){if (child.FramePlacement is not null || child.ExplicitTransform is not null)diagnostics.Add(new("assembly-placement-authority-conflict", $"'{root.Name}.{child.Name}' has authored Placement and axis Mate."));@@ -296,27 +298,27 @@ internal static class AssemblyDatumAuthoringProvenance = [.. child.Provenance ?? [], new("concept-axis-seating", axisSeating.Datum, axisSeating.Interface),new("concept-axis-member", axisSeating.Member, axisSeating.Placement.MateName!)] };}- if (!seats.TryGetValue(root.Name + "." + child.Name, out var seating)) return child;+ if (!seats.TryGetValue(path, out var seating)) return child;if (child.FramePlacement is not null || child.ExplicitTransform is not null)diagnostics.Add(new("assembly-placement-authority-conflict", $"'{root.Name}.{child.Name}' has authored Placement and datum Mate."));return child with { FramePlacement = seating.Placement, DatumSeat = seating.Seat,PlacementAuthority = PlacementAuthority.AuthoredFrame,Provenance = [.. child.Provenance ?? [], new("concept-datum-seating", seating.Seat.Datum, seating.Seat.Interface),new("concept-datum-derivation", layout.First(d => d.Identity == seating.Seat.Datum).Transform.From, seating.Seat.Datum)] };- }).ToArray();+ }frames = usedFrames.Values.ToArray();- return root with { Children = children };+ return Apply(root, root.Name);}internal static IReadOnlyList<AssemblyAxisSeatEvidence> ValidateAxisSeats(AssemblySource source, AssemblyIr ir,List<AssemblyDiagnostic> diagnostics){var result = new List<AssemblyAxisSeatEvidence>();- foreach (var child in source.Root.Children.Where(c => c.FramePlacement?.AxisSeat is not null))+ foreach (var (child,path) in Walk(source.Root, source.Root.Name).Where(p => p.Member.FramePlacement?.AxisSeat is not null)){var placement = child.FramePlacement!;var seat = placement.AxisSeat!;- var instance = ir.Instances.Single(i => i.Path.ToString() == source.Root.Name + "." + child.Name);+ var instance = ir.Instances.Single(i => i.Path.ToString() == path);var joint = ir.Joints?.SingleOrDefault(j => j.Name == placement.MateName);if (joint is null || instance.ResolvedTransform is null) continue; // Existing placement diagnostics own unresolved input.if (!AssemblyM0Compiler.TryResolve(AssemblyPath.Parse(seat.Member + ".Axis"), ir.Instances, out var axisReference)) continue;@@ -339,6 +341,27 @@ internal static class AssemblyDatumAuthoringreturn result;}+ private static AssemblyMemberSource? EndpointOwner(AssemblyMemberSource root, string[] path)+ {+ if (path.Length < 3 || path[0] != root.Name) return null;+ var owner = root;+ foreach (var name in path.Skip(1).SkipLast(1))+ {+ if (owner != root && owner.IsEncapsulatedDefinition) return null;+ var next = owner.Children.FirstOrDefault(c => c.Name == name);+ if (next is null) return null;+ owner = next;+ }+ return owner;+ }+ private static IEnumerable<(AssemblyMemberSource Member, string Path)> Walk(AssemblyMemberSource member, string path)+ {+ yield return (member,path);+ if (member.IsEncapsulatedDefinition) yield break;+ foreach (var child in member.Children)+ foreach (var descendant in Walk(child, path + "." + child.Name)) yield return descendant;+ }+private static bool ValidAxisPort(SemanticValue? port){if (port is null || !port.ExposedMembers.TryGetValue("Axis", out var a) || !a.TryBinding<ExactAxisBinding>(out var axis)@@ -359,12 +382,13 @@ internal static class AssemblyDatumAuthoringprivate static double Measure(string fields, string name, string unit, List<AssemblyDiagnostic> diagnostics){- var matches = Regex.Matches(fields, $@"\b{name}\s*:\s*(?<v>[-+0-9.eE]+){unit}\s*;?");- if (!Regex.IsMatch(fields, $@"\b{name}\s*:")) return 0;- if (matches.Count != 1 || Regex.Matches(fields, $@"\b{name}\s*:").Count != 1- || !double.TryParse(matches[0].Groups["v"].Value, NumberStyles.Float, CultureInfo.InvariantCulture, out var result) || !double.IsFinite(result))+ var parsed = FirmamentSyntaxParser.Parse(fields);+ var operands = parsed.Document.Statements.OfType<FieldSyntax>().Where(f => f.Name.Text == name).ToArray();+ if (operands.Length == 0) return 0;+ if (operands.Length != 1 || !FirmamentNumericEvaluation.TryEvaluate(operands[0].Value, out var result)+ || result.Unit != unit || !double.IsFinite(result.Number)){ diagnostics.Add(new("assembly-datum-measure-invalid", $"'{name}' requires one finite value in {unit}.")); return 0; }- return result;+ return result.Number;}private static string Field(string fields, string name, List<AssemblyDiagnostic> diagnostics)@@ -395,18 +419,18 @@ internal static class AssemblyDatumAuthoringif (parts.Length != count) { diagnostics.Add(new("assembly-datum-vector-invalid", $"'{name}' requires {count} components.")); return values; }for (var i = 0; i < count; i++){- var text = parts[i];- if (length && text.EndsWith("mm", StringComparison.Ordinal)) text = text[..^2];- else if (length) diagnostics.Add(new("assembly-datum-unit-invalid", $"'{name}' requires mm lengths."));- if (!double.TryParse(text, NumberStyles.Float, CultureInfo.InvariantCulture, out values[i]) || !double.IsFinite(values[i]))- diagnostics.Add(new("assembly-datum-vector-invalid", $"'{name}' requires finite components."));+ if (!FirmamentNumericEvaluation.TryEvaluateScalar(parts[i], out values[i], out var unit)+ || unit != (length ? "mm" : "") || !double.IsFinite(values[i]))+ diagnostics.Add(new(length ? "assembly-datum-unit-invalid" : "assembly-datum-vector-invalid",+ $"'{name}' requires finite {(length ? "mm length" : "dimensionless")} components."));}return values;}private static void CheckFields(string fields, string[] names, List<AssemblyDiagnostic> diagnostics){- var remaining = Regex.Replace(fields, $@"\b(?:{string.Join('|', names)})\s*:\s*(?:\[[^]]*\]|[-+0-9.eE]+(?:mm|deg)|[A-Za-z_]\w*(?:\.\w+)*)\s*;?", "");- if (!string.IsNullOrWhiteSpace(remaining.Replace(";", ""))) diagnostics.Add(new("assembly-datum-fields-invalid", $"Unknown or malformed datum fields: {remaining.Trim()}"));+ var parsed = FirmamentSyntaxParser.Parse(fields);+ if (!parsed.IsSuccess || parsed.Document.Statements.Any(s => s is not FieldSyntax f || !names.Contains(f.Name.Text)))+ diagnostics.Add(new("assembly-datum-fields-invalid", "Unknown or malformed datum fields; expected " + string.Join(", ", names) + "."));}}diff --git a/Aetheris.Kernel.Firmament/Assembly/AssemblyM0Parser.cs b/Aetheris.Kernel.Firmament/Assembly/AssemblyM0Parser.csindex 55781b74..9f4598b3 100644--- a/Aetheris.Kernel.Firmament/Assembly/AssemblyM0Parser.cs+++ b/Aetheris.Kernel.Firmament/Assembly/AssemblyM0Parser.cs@@ -101,9 +101,24 @@ public sealed class AssemblyM0Parservar patternsPhase = Aetheris.Kernel.Core.Diagnostics.BuildPerfTrace.Phase("m0.patterns");var expandedPatterns = CanonicalStaticAuthoring.ExpandAssemblyPatterns(source,patternDiagnostics);patternsPhase.Dispose();- foreach (var error in patternDiagnostics) diagnostics.Add(new("assembly-pattern-invalid",error));- if (expandedPatterns is null || patternDiagnostics.Count>0) return new(null,diagnostics,watch.Elapsed.TotalMilliseconds);+ var patternOwner = syntax.Document.Statements.OfType<DeclarationSyntax>()+ .FirstOrDefault(d => d.Type.Name.Text == "Assembly" && d.Modifiers.Count == 0)?.Name?.Span;+ foreach (var error in patternDiagnostics) diagnostics.Add(new("assembly-pattern-invalid",error)+ {+ SourceSpan = patternOwner is { } patternAnchor ? new(sourceIdentity,patternAnchor.Start,patternAnchor.Length) : null,+ LocationNote = "Enclosing Assembly declaration; the compile-time value expander did not return an original expression span."+ });+ if (expandedPatterns is null || patternDiagnostics.Count>0) return Done(null);source = expandedPatterns.Source;+ var concreteSyntax = FirmamentSyntaxParser.Parse(source).Document;+ var localLayouts = concreteSyntax.Statements.OfType<DeclarationSyntax>()+ .Where(d => d.Type.Name.Text == "Assembly" && !d.Modifiers.Any(m => m.Name.Text == "Template"))+ .SelectMany(d => d.Body?.Statements.OfType<DeclarationSyntax>() ?? [])+ .Where(d => d.Type.Name.Text == "Struct" && d.Modifiers.Any(m => m.Name.Text == "Concept")).ToArray();+ var layoutText = localLayouts.Select(d => source.Substring(d.Span.Start, d.Span.Length)).ToArray();+ foreach (var declaration in localLayouts.OrderByDescending(d => d.Span.Start))+ source = source.Remove(declaration.Span.Start, declaration.Span.Length).Insert(declaration.Span.Start, new string(' ', declaration.Span.Length));+ source += "\n" + string.Join("\n", layoutText);// Subassembly is a first-class non-parameterized Assembly definition. It// lowers through the existing, locally solved definition authority.source = Regex.Replace(source, @"\bSubassembly\s+(?<name>[A-Za-z_]\w*)\s*\{",@@ -164,12 +179,12 @@ public sealed class AssemblyM0Parserif (body is null) return Done(null);var specializationCache = new Dictionary<string, AssemblyMemberSource>(StringComparer.Ordinal);var treePhase = Aetheris.Kernel.Core.Diagnostics.BuildPerfTrace.Phase("m0.tree");- var tree = ParseTree(body, sourceIdentity, diagnostics, assemblyDefinitions, interfaces, specializationCache, gearAuthorities, Ports, graph);+ var tree = ParseTree(body, sourceIdentity, diagnostics, assemblyDefinitions, interfaces, specializationCache, gearAuthorities, Ports, graph, source);treePhase.Dispose();if (tree is null) return Done(null);if (exported is not null){- tree = tree with { ExposedSemantics = ParseAssemblyExposes(body, tree, sourceIdentity, diagnostics) };+ tree = tree with { ExposedSemantics = [.. tree.ExposedSemantics, .. ParseAssemblyExposes(body, tree, sourceIdentity, diagnostics)] };tree = graph!.QualifyParts(module!, tree);}var mates = ParseMates(body, sourceIdentity, diagnostics);@@ -307,7 +322,7 @@ public sealed class AssemblyM0Parser{public string Name { get; } = name;public AssemblyInstanceKind Kind { get; } = kind;- public string Definition { get; } = definition;+ public string Definition { get; set; } = definition;public List<MutableNode> Children { get; } = [];public List<SemanticValue> Semantics { get; } = [];public MutableNode? Parent { get; set; }@@ -338,13 +353,13 @@ public sealed class AssemblyM0Parserif (body is null) continue;var close = template.Index + template.Length + body.Length + 1;ranges.Add((template.Index, close - template.Index));- var root = ParseTree(body, sourceIdentity, diagnostics, result, interfaces, new Dictionary<string, AssemblyMemberSource>(StringComparer.Ordinal), gearAuthorities, publishedPorts, graph);+ var root = ParseTree(body, sourceIdentity, diagnostics, result, interfaces, new Dictionary<string, AssemblyMemberSource>(StringComparer.Ordinal), gearAuthorities, publishedPorts, graph, source);if (root is null) continue;root = AssemblyDatumAuthoring.Bind(body, root, layout ?? [], interfaces, diagnostics, out var datumFrames, publishedPorts);if (root.Children.Any(c => c.FramePlacement?.JointFamily == MechanicalInterfaceFamily.Revolute))diagnostics.Add(new("assembly-axis-internal-motion-unsupported", "Reusable definitions have rigid solved children. Declare a Revolute mate on the complete occurrence in its owning root assembly."));var exposed = ParseAssemblyExposes(body, root, sourceIdentity, diagnostics);- root = root with { ExposedSemantics = exposed, IsEncapsulatedDefinition = true };+ root = root with { ExposedSemantics = [.. root.ExposedSemantics, .. exposed], IsEncapsulatedDefinition = true };var name = template.Groups["name"].Value;var claimedConcept = template.Groups["concept"].Success ? template.Groups["concept"].Value : null;if (result.Any(item => item.Name == name))@@ -528,7 +543,7 @@ public sealed class AssemblyM0Parserprivate static SemanticValue BindPublicSemantic(SemanticValue exposed, AssemblyIr localIr, string sourceIdentity){var internalPath = exposed.Provenance.LastOrDefault(item => item.Stage == "assembly-expose")?.Evidence;- if (internalPath is null || !AssemblyM0Compiler.TryResolve(AssemblyPath.Parse(localIr.Name + "." + internalPath), localIr.Instances, out var reference)) return exposed;+ if (internalPath is null || !AssemblyM0Compiler.TryResolve(AssemblyPath.Parse(localIr.Instances.Single(i => i.ParentStableId is null).Path + "." + internalPath), localIr.Instances, out var reference)) return exposed;var bindings = exposed.Bindings.Where(binding => binding is TolerancedDimensionBinding).ToList();if (reference!.Value.TryBinding<TypedSemanticAuthorityBinding<GearAir>>(out var gear)){@@ -610,7 +625,7 @@ public sealed class AssemblyM0ParserIReadOnlyList<AssemblyDefinitionSource>? definitions = null, IReadOnlyList<InterfaceDefinition>? interfaces = null,IDictionary<string, AssemblyMemberSource>? specializationCache = null,IReadOnlyDictionary<string, GearAir>? gearAuthorities = null,- Func<string, IReadOnlyList<SemanticValue>>? publishedPorts = null, FirmamentModuleGraph? graph = null)+ Func<string, IReadOnlyList<SemanticValue>>? publishedPorts = null, FirmamentModuleGraph? graph = null, string? bindingSource = null){// One bounded generic argument list is admitted in a Part definition. The// inner '>' belongs to the Firmament Template application, not the XML-like tag.@@ -630,21 +645,22 @@ public sealed class AssemblyM0Parser: Regex.Match(rest, @"^(?<name>[A-Za-z_]\w*)\s*=\s*(?<definition>[A-Za-z_]\w*(?:\s*<[^>]*>)?)$");if (!nodeMatch.Success) { diagnostics.Add(new("assembly-tree-invalid-tag", $"Invalid <{kind}> tree tag '{tag.Value}'.")); continue; }var node = new MutableNode(nodeMatch.Groups["name"].Value, kind == "Assembly" ? AssemblyInstanceKind.Assembly : kind == "Panel" ? AssemblyInstanceKind.Panel : AssemblyInstanceKind.Part,- kind == "Assembly" ? (nodeMatch.Groups["definition"].Success ? NormalizeIdentity(nodeMatch.Groups["definition"].Value) : nodeMatch.Groups["name"].Value) : nodeMatch.Groups["definition"].Value);+ kind == "Assembly" ? (nodeMatch.Groups["definition"].Success ? (graph?.TryReference(nodeMatch.Groups["definition"].Value, out _) == true ? nodeMatch.Groups["definition"].Value.Trim() : NormalizeIdentity(nodeMatch.Groups["definition"].Value)) : nodeMatch.Groups["name"].Value) : nodeMatch.Groups["definition"].Value);if (kind == "Assembly" && nodeMatch.Groups["definition"].Success){AssemblyMemberSource? instantiated;if (graph?.TryReference(node.Definition, out var imported) == true){- var external = graph.ParseAssembly(imported);+ var external = graph.ParseAssembly(imported, node.Definition, bindingSource ?? body);diagnostics.AddRange(external.Diagnostics);if (external.Source is { } unit && external.IsSuccess){- var definition = new AssemblyDefinitionSource(imported.Identity, "__Unit", "__Unit", unit.Root,+ var specializedIdentity = node.Definition.Contains('<') ? imported.Identity + "_" + Convert.ToHexString(System.Security.Cryptography.SHA256.HashData(System.Text.Encoding.UTF8.GetBytes(node.Definition)))[..16] : imported.Identity;+ var definition = new AssemblyDefinitionSource(specializedIdentity, "__Unit", "__Unit", unit.Root,imported.Identity, [new("inventory-module", imported.Path, imported.Definition, imported.Origin)],unit.Anchor, unit.Mates, unit.DimensionalRelations, unit.StackupAsserts, FrameTransforms: unit.FrameTransforms){ LocalInterfaces = unit.Interfaces };- instantiated = InstantiateAssemblyDefinition(node.Name, imported.Identity, [definition], unit.Interfaces,+ instantiated = InstantiateAssemblyDefinition(node.Name, specializedIdentity, [definition], unit.Interfaces,specializationCache ?? new Dictionary<string, AssemblyMemberSource>(StringComparer.Ordinal), imported.Path, diagnostics);}else instantiated = null;@@ -652,6 +668,7 @@ public sealed class AssemblyM0Parserelse instantiated = InstantiateAssemblyDefinition(node.Name, node.Definition, definitions ?? [], interfaces ?? [], specializationCache ?? new Dictionary<string, AssemblyMemberSource>(StringComparer.Ordinal), sourceIdentity, diagnostics);if (instantiated is not null){+ node.Definition = instantiated.DefinitionIdentity;node.Children.AddRange(instantiated.Children.Select(ToMutable));node.Semantics.AddRange(instantiated.ExposedSemantics);node.ExplicitTransform = instantiated.ExplicitTransform;@@ -686,6 +703,18 @@ public sealed class AssemblyM0Parseropen.node.TypedEndpoint = endpoint;}}+ if (open.node.Kind == AssemblyInstanceKind.Assembly)+ {+ // Bind only this occurrence's own Semantic declarations.+ // Descendant Part ports belong to their Part, never the group.+ var own = FirmamentSyntaxParser.Parse(nodeBody).Document.Statements.OfType<DeclarationSyntax>()+ .Where(d => d.Type.Name.Text == "Semantic");+ foreach (var semantic in own)+ open.node.Semantics.AddRange(ParseSemantics(nodeBody.Substring(semantic.Span.Start, semantic.Span.Length),+ open.node.Definition, sourceIdentity, diagnostics));+ foreach (var duplicate in open.node.Semantics.GroupBy(v => v.ExposedName).Where(g => g.Count() > 1))+ diagnostics.Add(new("assembly-semantic-duplicate-name", $"Assembly occurrence '{open.node.Name}' repeats Semantic '{duplicate.Key}'."));+ }var nestedTag = nodeBody.IndexOf('<');var placementBody = open.node.Kind == AssemblyInstanceKind.Assembly && nestedTag >= 0 ? nodeBody[..nestedTag] : nodeBody;var placement = Regex.Match(placementBody, @"\bPlacement\s+(?<authority>ImportedOccurrence|LegacyExplicit)\s*=\s*\[(?<matrix>[^]]+)\]\s*;", RegexOptions.CultureInvariant);@@ -765,7 +794,7 @@ public sealed class AssemblyM0Parservar bindings = new List<SemanticBinding>();foreach (Match axis in Regex.Matches(block, @"\bAxis\s+(?<name>[A-Za-z_]\w*)\s*=\s*\[(?<o>[^]]+)\]\s*->\s*\[(?<d>[^]]+)\]\s*;", RegexOptions.CultureInvariant)){- var o = Vector(axis.Groups["o"].Value); var d = Vector(axis.Groups["d"].Value);+ var o = Vector(axis.Groups["o"].Value, lengths: true); var d = Vector(axis.Groups["d"].Value);if (o is null || d is null) { diagnostics.Add(new("assembly-axis-invalid", $"Semantic '{name}' has an invalid Axis.")); continue; }var binding = new ExactAxisBinding(o[0], o[1], o[2], d[0], d[1], d[2], $"definition:{definition}:{name}:{axis.Groups["name"].Value}");members.Add(new SemanticValue(binding.AxisStableId, new("Axis"), [new AxisCapability()], [binding], exposedName: axis.Groups["name"].Value));@@ -788,7 +817,7 @@ public sealed class AssemblyM0Parser}foreach (Match frame in Regex.Matches(block, @"\bDatumFrame\s+(?<name>[A-Za-z_]\w*)\s*=\s*\[(?<o>[^]]+)\]\s+x\s*\[(?<x>[^]]+)\]\s+y\s*\[(?<y>[^]]+)\]\s+z\s*\[(?<z>[^]]+)\]\s*;", RegexOptions.CultureInvariant)){- var o = Vector(frame.Groups["o"].Value); var x = Vector(frame.Groups["x"].Value); var y = Vector(frame.Groups["y"].Value); var z = Vector(frame.Groups["z"].Value);+ var o = Vector(frame.Groups["o"].Value, lengths: true); var x = Vector(frame.Groups["x"].Value); var y = Vector(frame.Groups["y"].Value); var z = Vector(frame.Groups["z"].Value);if (o is null || x is null || y is null || z is null || !ValidFrame(x, y, z)) { diagnostics.Add(new("assembly-datum-frame-invalid", $"Semantic '{name}' DatumFrame requires a finite orthonormal right-handed X/Y/Z basis.")); continue; }var binding = new ExactDatumFrameBinding(o[0], o[1], o[2], x[0], x[1], x[2], y[0], y[1], y[2], z[0], z[1], z[2], $"definition:{definition}:{name}:{frame.Groups["name"].Value}");members.Add(new SemanticValue(binding.FrameStableId, new("AssemblyDatumFrame"), [new DatumFrameCapability()], [binding], exposedName: frame.Groups["name"].Value));@@ -855,8 +884,17 @@ public sealed class AssemblyM0Parserforeach (var name in names) value = Regex.Replace(value, $@"\b{name}\b[^{{]*\{{(?:[^{{}}]|\{{[^{{}}]*\}})*\}}", string.Empty, RegexOptions.CultureInvariant);return value;}- private static double[]? Vector(string text)- { var values = text.Split(',', StringSplitOptions.TrimEntries).Select(x => double.TryParse(x, NumberStyles.Float, CultureInfo.InvariantCulture, out var n) ? n : double.NaN).ToArray(); return values.Length == 3 && values.All(double.IsFinite) ? values : null; }+ private static double[]? Vector(string text, bool lengths = false)+ {+ double Component(string component)+ {+ if (!lengths) return double.TryParse(component, NumberStyles.Float, CultureInfo.InvariantCulture, out var number) ? number : double.NaN;+ if (!FirmamentNumericEvaluation.TryEvaluateScalar(component, out var value, out var unit)) return double.NaN;+ return unit == "mm" || unit.Length == 0 && double.TryParse(component, NumberStyles.Float, CultureInfo.InvariantCulture, out _) ? value : double.NaN;+ }+ var values = text.Split(',', StringSplitOptions.TrimEntries).Select(Component).ToArray();+ return values.Length == 3 && values.All(double.IsFinite) ? values : null;+ }private static bool ValidFrame(double[] x, double[] y, double[] z){static double Dot(double[] a, double[] b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];diff --git a/Aetheris.Kernel.Firmament/Assembly/AssemblyM1Execution.cs b/Aetheris.Kernel.Firmament/Assembly/AssemblyM1Execution.csindex 44f623dc..bb4fa0fc 100644--- a/Aetheris.Kernel.Firmament/Assembly/AssemblyM1Execution.cs+++ b/Aetheris.Kernel.Firmament/Assembly/AssemblyM1Execution.cs@@ -323,9 +323,22 @@ internal static partial class AssemblyDefinitionMaterializerprivate static IEnumerable<SemanticValue> WindingSemantics(FirmamentWireFormReport? wire,IReadOnlyList<SemanticProvenance> provenance, string sourceIdentity){- foreach (var operation in wire?.Operations ?? [])+ return WindingSemantics((wire?.Operations ?? []).Where(o => o.AxisDatum is not null)+ .Select(o => (o.Name, o.StableId, o.AxisDatum!)), provenance, sourceIdentity);+ }++ internal static IEnumerable<SemanticValue> WindingSemantics(Materializer.WireFormFeatureAir wire,+ IReadOnlyList<SemanticProvenance> provenance, string sourceIdentity) => WindingSemantics(+ wire.Operations.OfType<Materializer.WireAxisCoilAir>().Select(o => (o.Name, o.StableId(wire.Name),+ Materializer.WireFormReportFactory.AxisDatum(o, wire.DiameterMm))), provenance, sourceIdentity);++ private static IEnumerable<SemanticValue> WindingSemantics(+ IEnumerable<(string Name, string StableId, FirmamentWireAxisDatum AxisDatum)> operations,+ IReadOnlyList<SemanticProvenance> provenance, string sourceIdentity)+ {+ foreach (var operation in operations){- if (operation.AxisDatum is not { } datum) continue;+ var datum = operation.AxisDatum;var id = operation.StableId + ":winding-datum";var o = datum.Origin; var x = datum.Radial; var z = datum.Direction;var y = new Vector3D(z[0], z[1], z[2]).Cross(new(x[0], x[1], x[2]));diff --git a/Aetheris.Kernel.Firmament/Assembly/AssemblyPublishedPorts.cs b/Aetheris.Kernel.Firmament/Assembly/AssemblyPublishedPorts.csindex 24dd01ab..c4f10853 100644--- a/Aetheris.Kernel.Firmament/Assembly/AssemblyPublishedPorts.cs+++ b/Aetheris.Kernel.Firmament/Assembly/AssemblyPublishedPorts.cs@@ -17,6 +17,7 @@ internal static class AssemblyPublishedPortsstring sourceIdentity, List<AssemblyDiagnostic> diagnostics, FirmamentProjectSnapshot? project,List<AssemblySourceDependencyIr> dependencies, DerivedValueCache<PublishedPortBinding>? cache = null){+ declarations = FirmamentSourceSpelling.Normalize(declarations);var file = Regex.Match(identity, "^(?:SectionChainFile|LoftFile)<\\\"(?<path>[^\\\"]+)\\\">$");if (file.Success){@@ -111,7 +112,7 @@ internal static class AssemblyPublishedPortsforeach (var error in errors) diagnostics.Add(new("assembly-port-specialization-failed", error));return [];}- return Read(expansion.ExpandedSource, "__AssemblyPart", identity, sourceIdentity, diagnostics);+ return Read(expansion.ExpandedSource, "__AssemblyPart", identity, sourceIdentity, diagnostics, includeWinding: true);}/// <summary>Reuse a binding from an earlier build of the session when its inputs are identical,/// replaying its diagnostics. Only bindings the definition cache can copy are kept, and every@@ -155,14 +156,48 @@ internal static class AssemblyPublishedPorts}internal static IReadOnlyList<SemanticValue> Read(string source,string owner,string identity,- string sourceIdentity,List<AssemblyDiagnostic> diagnostics,SectionChain? chain = null)+ string sourceIdentity,List<AssemblyDiagnostic> diagnostics,SectionChain? chain = null, bool includeWinding = false){source = FirmamentSourceSpelling.Normalize(source);+ var valueErrors = new List<string>();+ var valuesForPorts = new FirmamentCompileTimeValues(source);+ _ = FirmamentV2TemplateExpansion.ReadDataCatalog(source, valueErrors, valuesForPorts, initialize: true);+ if (valueErrors.Count > 0)+ { diagnostics.AddRange(valueErrors.Select(e => new AssemblyDiagnostic("assembly-port-value-invalid", e))); return []; }+ source = FirmamentValueSubstitution.Apply(source, valuesForPorts.MaterialInputs(source)+ .ToDictionary(v => v.Name, v => valuesForPorts.NominalExpression(v.Name), StringComparer.Ordinal));var header = Regex.Match(source,$@"\b(?:Struct|Model)\s+{Regex.Escape(owner)}\s*\{{");if (!header.Success) return [];var body = AssemblyM0Parser.BalancedBody(source,header.Index+header.Length-1,diagnostics,"published part");if (body is null) return [];var result = new List<SemanticValue>();+ // Winding ports are typed WireForm facts needed by a reusable unit's local+ // solve, before M1 builds any bodies. Use the same AIR and datum factory+ // as the post-build report; no authored copy of a coil axis is required.+ if (includeWinding && Materializer.WireFormAuthoring.IsWireFormSource(source))+ {+ var stripped = Strip(source, diagnostics);+ var values = new FirmamentCompileTimeValues(stripped);+ var errors = new List<string>();+ var expanded = FirmamentV2TemplateExpansion.Expand(stripped, errors, values);+ if (expanded is null || errors.Count > 0)+ diagnostics.AddRange(errors.Select(e => new AssemblyDiagnostic("assembly-port-specialization-failed", e)));+ else if (Materializer.WireFormAuthoring.IsWireFormSource(expanded.Source))+ {+ var dataErrors = new List<string>();+ var concrete = CanonicalStaticAuthoring.Expand(expanded.Source, dataErrors, values);+ if (concrete is null || dataErrors.Count > 0)+ { diagnostics.AddRange(dataErrors.Select(e => new AssemblyDiagnostic("assembly-port-specialization-failed", e))); return []; }+ var nominal = FirmamentValueSubstitution.Apply(concrete.Source, values.MaterialInputs(concrete.Source)+ .ToDictionary(v => v.Name, v => values.NominalExpression(v.Name), StringComparer.Ordinal));+ var wire = Materializer.WireFormAuthoring.Parse(nominal);+ if (!wire.IsSuccess || wire.Value is null)+ diagnostics.AddRange(wire.Diagnostics.Select(d => new AssemblyDiagnostic("assembly-port-wireform-invalid", d.Message)));+ else result.AddRange(AssemblyDefinitionMaterializer.WindingSemantics(wire.Value,+ [new("WireForm-AIR", identity, "definition-owned winding datum", SemanticSourceSpan.Generated(sourceIdentity)),+ new("definition-port-publication", identity, "WireForm winding", SemanticSourceSpan.Generated(sourceIdentity))], sourceIdentity));+ }+ }foreach (Match expose in Regex.Matches(body,@"\bExpose\s*\{")){var ports = AssemblyM0Parser.BalancedBody(body,expose.Index+expose.Length-1,diagnostics,"part Expose");diff --git a/Aetheris.Kernel.Firmament/FirmamentV2/CanonicalStaticAuthoring.cs b/Aetheris.Kernel.Firmament/FirmamentV2/CanonicalStaticAuthoring.csindex 39e56141..a27ca1c5 100644--- a/Aetheris.Kernel.Firmament/FirmamentV2/CanonicalStaticAuthoring.cs+++ b/Aetheris.Kernel.Firmament/FirmamentV2/CanonicalStaticAuthoring.cs@@ -21,6 +21,17 @@ internal static class CanonicalStaticAuthoringdiagnostics.AddRange(binding.Diagnostics.Select(d => d.Code + ": " + d.Message));if (binding.Diagnostics.Count > 0) return null;source = binding.Source;+ // Assembly frames consume the same checked Record leaves as mechanical+ // geometry. Alpha-bound identities preserve lexical scope; the existing+ // substitution owner transports their nominal values to domain readers.+ var scalars = new FirmamentCompileTimeValues(source);+ scalars.UseDataBinding(binding);+ _ = FirmamentV2TemplateExpansion.ReadDataCatalog(source, diagnostics, scalars, initialize: true);+ if (diagnostics.Count > 0) return null;+ var inputs = scalars.MaterialInputs(source);+ if (inputs.Any(v => v.Tolerance is not null))+ { diagnostics.Add(Prefix + "assembly-tolerance-consumer-unsupported: Assembly frame values cannot project a manufacturing tolerance; use the owning Part and explicit PMI."); return null; }+ source = FirmamentValueSubstitution.Apply(source, inputs.ToDictionary(v => v.Name, v => scalars.NominalExpression(v.Name), StringComparer.Ordinal));var points = ConceptPointAuthoring.Expand(source, diagnostics);if (points is null) return null;source = points.Source;@@ -29,8 +40,7 @@ internal static class CanonicalStaticAuthoringsource = sites.Source;var syntax = FirmamentSyntaxParser.Parse(source);var headers = FirmamentSyntaxTraversal.Declarations(syntax.Document)- .Where(d => d.Type.Name.Text == "Pattern" && d.Clauses.Any(c => c.Kind == ClauseKind.Over)- && d.Body?.Statements.FirstOrDefault() is MappingSyntax { Value: DeclarationSyntax { Occurrence: true, Type.Name.Text: "Part" or "Assembly" } }).ToArray();+ .Where(d => d.Type.Name.Text == "Pattern" && d.Clauses.Any(c => c.Kind == ClauseKind.Over)).ToArray();if (headers.Length == 0){source = points.Math.Normalize(source, diagnostics);@@ -38,7 +48,7 @@ internal static class CanonicalStaticAuthoring}var catalog = source.Select(c => c is '\r' or '\n' ? c : ' ').ToArray();foreach (var declaration in FirmamentSyntaxTraversal.Declarations(syntax.Document)- .Where(d => d.Type.Name.Text == "Record" || d.Type.Name.Text == "Static" && d.Annotation is SpecializationSyntax { Target: ReferenceSyntax { Name.Text: "Set" } }))+ .Where(d => d.Type.Name.Text is "Record" or "Static" || d.Type.Name.Text == "Table" && d.Modifiers.Any(m => m.Name.Text == "Static")))source.CopyTo(declaration.Span.Start, catalog, declaration.Span.Start, declaration.Span.Length);var catalogSource = new string(catalog);if (spatial)@@ -56,6 +66,8 @@ internal static class CanonicalStaticAuthoringif (data?.Document is null || diagnostics.Count>0) return null;var sets=(data.Document.Sets ?? []).ToDictionary(s=>s.Name,StringComparer.Ordinal);var changes=new List<(int Start,int Length,string Text)>();+ var hoisted = new List<string>();+ var occupied = syntax.Document.Tokens.Where(t => t.Kind == SyntaxTokenKind.Identifier).Select(t => t.Text).ToHashSet(StringComparer.Ordinal);var patterns=new List<FirmamentV2CanonicalPatternDecl>(); var names=new HashSet<string>(); var total=0;foreach (var header in headers){@@ -64,12 +76,18 @@ internal static class CanonicalStaticAuthoringvar sourceName = header.Clauses.Count == 1 ? FirmamentSyntaxValues.Reference(header.Clauses[0].Value) : null;if (sourceName is null || !sets.TryGetValue(sourceName, out var set)){ diagnostics.Add(Prefix + "pattern-source-invalid:" + name); continue; }- var mapping = (MappingSyntax)header.Body!.Statements[0];- var mappedStatements = new[] { mapping.Value }.Concat(header.Body.Statements.Skip(1)).ToArray();- if (mappedStatements.Any(s => s is not DeclarationSyntax { Occurrence: true, Type.Name.Text: "Part" or "Assembly" })+ if (header.Body?.Statements.FirstOrDefault() is not MappingSyntax mapping)+ { diagnostics.Add(Prefix + "assembly-pattern-body-invalid:" + name); continue; }+ var mappedStatements = (mapping.Value is StatementBlockSyntax block ? block.Body.Statements : [mapping.Value]).Concat(header.Body.Statements.Skip(1)).ToArray();+ if (mappedStatements.Any(s => s is not DeclarationSyntax d || !(d.Occurrence && d.Type.Name.Text is "Part" or "Assembly"+ || !d.Occurrence && (d.Type.Name.Text is "Interface" or "Mate" || d.Type.Name.Text == "Struct" && d.Modifiers.Any(m => m.Name.Text == "Concept"))))|| header.Parameters.Count > 0 || header.Modifiers.Count > 0 || header.Initializer is not null || header.Annotation is not null || header.ResultType is not null|| header.Type.Span.Length > header.Type.Name.Span.Length || header.Occurrence || header.HasParameterList){ diagnostics.Add(Prefix + "assembly-pattern-body-invalid:" + name); continue; }+ if (mappedStatements.OfType<DeclarationSyntax>().Where(d => d.Name is not null).GroupBy(d => d.Name!.Text).Any(g => g.Count() > 1))+ { diagnostics.Add(Prefix + "assembly-pattern-duplicate-declaration:" + name); continue; }+ if (mapping.Value is not StatementBlockSyntax && mappedStatements.OfType<DeclarationSyntax>().Any(d => !d.Occurrence))+ { diagnostics.Add(Prefix + "assembly-pattern-body-invalid:" + name); continue; }total+=set.Entries.Count;if (set.Entries.Count>MaxPatternExpansion || total>4096) { diagnostics.Add(Prefix+"pattern-expansion-limit:"+name); continue; }var output=new List<string>(); var associations=new List<FirmamentV2PatternAssociation>();@@ -79,6 +97,29 @@ internal static class CanonicalStaticAuthoringvar substitution = BindSetElement(mapping.Key.Text, entry, diagnostics);if (substitution is null) continue;var bound = mappedStatements.Select(substitution.Statement).ToArray();+ if (mapping.Value is StatementBlockSyntax)+ {+ string PrivateName(string local)+ {+ var identity = name + "\0" + entry.Name + "\0" + local;+ var stem = "__Pattern_" + Convert.ToHexString(System.Security.Cryptography.SHA256.HashData(System.Text.Encoding.UTF8.GetBytes(identity)))[..20] + "_" + local;+ var candidate = stem; var suffix = 0;+ while (!occupied.Add(candidate)) candidate = stem + "_" + ++suffix;+ return candidate;+ }+ var renames = bound.OfType<DeclarationSyntax>().Where(d => !d.Occurrence && d.Name is not null)+ .ToDictionary(d => d.Name!.Text, d => PrivateName(d.Name!.Text), StringComparer.Ordinal);+ var parent = OccurrenceOwner(syntax.Document.Statements, header, []);+ if (parent is null || parent.Count == 0)+ { diagnostics.Add(Prefix + "assembly-pattern-owner-required:" + name); continue; }+ var paths = bound.OfType<DeclarationSyntax>().Where(d => d.Occurrence && d.Name is not null)+ .ToDictionary(d => d.Name!.Text, d => FirmamentSyntaxParser.ParseExpression(string.Join(".", parent.Append(name).Append(entry.Name).Append(d.Name!.Text))).Expression!, StringComparer.Ordinal);+ var scope = new FirmamentSyntaxSubstitution(paths, renames);+ bound = bound.Select(scope.Statement).ToArray();+ foreach (var declaration in bound.OfType<DeclarationSyntax>().Where(d => !d.Occurrence && d.Type.Name.Text is "Struct" or "Interface"))+ hoisted.Add(FirmamentSyntaxWriter.Statement(declaration));+ bound = bound.Where(d => d is not DeclarationSyntax { Occurrence: false, Type.Name.Text: "Struct" or "Interface" }).ToArray();+ }var mappedText = FirmamentSyntaxWriter.Statements(bound, source);var mappedSyntax = new DocumentSyntax("expanded-pattern", bound, [], header.Span);if (FirmamentSyntaxTraversal.Expressions(mappedSyntax).OfType<MemberSyntax>()@@ -92,6 +133,7 @@ internal static class CanonicalStaticAuthoringsites.Recipes.GetValueOrDefault(set.Name)));}foreach (var change in changes.OrderByDescending(c=>c.Start)) source=source.Remove(change.Start,change.Length).Insert(change.Start,change.Text);+ source += "\n" + string.Join("\n", hoisted);source = points.Math.Normalize(source, diagnostics);var conceptualSets = points.Points.ToDictionary(p => ConceptPointAuthoring.SetName(p.Name), p => p);patterns = patterns.Select(pattern => conceptualSets.TryGetValue(pattern.Source, out var collection)@@ -99,6 +141,17 @@ internal static class CanonicalStaticAuthoringreturn diagnostics.Count > 0 ? null : new(source,data.Document with { Patterns=patterns, ConceptPoints=points.Points });}+ private static IReadOnlyList<string>? OccurrenceOwner(IReadOnlyList<StatementSyntax> statements, DeclarationSyntax target, IReadOnlyList<string> path)+ {+ foreach (var statement in statements.OfType<DeclarationSyntax>())+ {+ if (ReferenceEquals(statement, target)) return path;+ if (statement.Body is not null && OccurrenceOwner(statement.Body.Statements, target,+ statement.Occurrence && statement.Name is not null ? path.Append(statement.Name.Text).ToArray() : path) is { } owner) return owner;+ }+ return null;+ }+private static FirmamentSyntaxSubstitution? BindSetElement(string binder, FirmamentV2StaticSetEntry entry, List<string> diagnostics){var values = new Dictionary<string, ExpressionSyntax>(StringComparer.Ordinal);@@ -111,6 +164,7 @@ internal static class CanonicalStaticAuthoring}if (entry.RecordFields is not null){+ if (!Add(binder, entry.Value)) return null;foreach (var field in entry.RecordFields)if (!Add(binder + "." + field.Key, field.Value)) return null;}@@ -410,38 +464,28 @@ internal static class CanonicalStaticAuthoringprivate static IReadOnlyList<FirmamentV2StaticSetEntry> ParseSetEntries(string source, int start, int end, string setName, string elementType,IReadOnlyDictionary<string, FirmamentV2RecordTypeDecl> recordTypes, List<string> diagnostics){- var body = source[start..end];- var headers = Regex.Matches(body, @"(?<![A-Za-z0-9_])(?<name>[A-Za-z_]\w*)\s*=>", RegexOptions.CultureInvariant).Cast<Match>().ToArray();- if (FirmamentLanguageAnalysisService.Lex(headers.Length == 0 ? body : body[..headers[0].Index])- .Any(token => token.Shape != "comment"))- {- diagnostics.Add(Prefix + "set-entry-malformed:" + setName + ":use-name-arrow-value");- }- var result = new List<FirmamentV2StaticSetEntry>(); var names = new HashSet<string>(StringComparer.Ordinal);- for (var index = 0; index < headers.Length; index++)+ var parsed = FirmamentSyntaxParser.Parse(source[start..end]);+ var result = new List<FirmamentV2StaticSetEntry>();+ var names = new HashSet<string>(StringComparer.Ordinal);+ if (!parsed.IsSuccess) { diagnostics.Add(Prefix + "set-entry-malformed:" + setName); return result; }+ foreach (var statement in parsed.Document.Statements){- var header = headers[index]; var entryName = header.Groups["name"].Value;- var valueStart = header.Index + header.Length; var valueEnd = index + 1 < headers.Length ? headers[index + 1].Index : body.Length;- var value = body[valueStart..valueEnd].Trim().TrimEnd(',', ';').Trim();- var span = new FirmamentV2SourceSpan(start + header.Index, valueEnd - header.Index);+ if (statement is not MappingSyntax mapping)+ { diagnostics.Add(Prefix + "set-entry-malformed:" + setName + ":use-name-arrow-value"); continue; }+ var entryName = mapping.Key.Text;if (!names.Add(entryName)) { diagnostics.Add(Prefix + "set-duplicate-entry:" + setName + ":" + entryName); continue; }+ var value = source.Substring(start + mapping.Value.Span.Start, mapping.Value.Span.Length).Trim().TrimEnd(';');+ var span = new FirmamentV2SourceSpan(start + mapping.Span.Start, mapping.Span.Length);IReadOnlyDictionary<string, string>? fields = null;- if (recordTypes.TryGetValue(elementType, out var record))+ if (recordTypes.ContainsKey(elementType)){- var literal = Regex.Match(value, $@"^{Regex.Escape(elementType)}\s*\{{(?<body>[\s\S]*)\}}$", RegexOptions.CultureInvariant);- if (!literal.Success) { diagnostics.Add(Prefix + "set-entry-type-mismatch:" + setName + ":" + entryName + ":expected-" + elementType); continue; }- fields = Fields(literal.Groups["body"].Value);- var missing = record.Fields.Keys.Where(field => !fields.ContainsKey(field)).ToArray();- var extra = fields.Keys.Where(field => !record.Fields.ContainsKey(field)).ToArray();- if (missing.Length > 0) diagnostics.Add(Prefix + "record-missing-field:" + setName + "." + entryName + ":" + string.Join(",", missing));- if (extra.Length > 0) diagnostics.Add(Prefix + "record-extra-field:" + setName + "." + entryName + ":" + string.Join(",", extra));- foreach (var field in fields)- if (record.Fields.TryGetValue(field.Key, out var fieldType) && !ValueMatchesType(field.Value, fieldType))- diagnostics.Add(Prefix + "set-entry-field-type-mismatch:" + setName + ":" + entryName + ":" + field.Key + ":expected-" + fieldType);+ fields = FirmamentV2TemplateExpansion.BindRecordExpression(source, elementType, value,+ "__SetValue_" + setName + "_" + entryName, diagnostics);+ if (fields is null) continue;}else if (!ValueMatchesType(value, elementType)){ diagnostics.Add(Prefix + "set-entry-type-mismatch:" + setName + ":" + entryName + ":expected-" + elementType); continue; }- result.Add(new(entryName, value, index, span, fields));+ result.Add(new(entryName, value, result.Count, span, fields));}return result;}diff --git a/Aetheris.Kernel.Firmament/FirmamentV2/FirmamentV2TemplateExpansion.cs b/Aetheris.Kernel.Firmament/FirmamentV2/FirmamentV2TemplateExpansion.csindex 435d6c51..d5cdd37b 100644--- a/Aetheris.Kernel.Firmament/FirmamentV2/FirmamentV2TemplateExpansion.cs+++ b/Aetheris.Kernel.Firmament/FirmamentV2/FirmamentV2TemplateExpansion.cs@@ -216,12 +216,26 @@ internal static class FirmamentV2TemplateExpansion}var recordFields = pair.Value.RecordFields.ToDictionary(p => p.Key, p => p.Value, StringComparer.Ordinal);ValidateSyntheticRecord(recordName, recordDefinition, recordFields, string.Empty);- staticRecords[recordName] = new TemplateStaticRecordIr(- recordName,- recordType,- recordFields.ToImmutableDictionary(StringComparer.Ordinal),- new FirmamentV2SourceSpan(source.Length, 0),- "ForgeHostRecord");+ // Reify the checked host view as ordinary nested Records. Whole+ // nested values can then forward through the same Template binder;+ // a flattened type marker is never mistaken for a Static name.+ void AddRecord(string name, TemplateRecordTypeIr schema, string prefix)+ {+ var fields = ImmutableDictionary.CreateBuilder<string, string>(StringComparer.Ordinal);+ foreach (var field in schema.Fields)+ {+ var path = prefix + field.Key;+ if (!recordFields.TryGetValue(path, out var value)) continue;+ if (recordTypes.TryGetValue(field.Value, out var nested))+ {+ value = name + "_" + field.Key;+ AddRecord(value, nested, path + ".");+ }+ fields[field.Key] = value;+ }+ staticRecords[name] = new(name, schema.Name, fields.ToImmutable(), new(source.Length, 0), "HostRecord");+ }+ if (!HasErrors(diagnostics)) AddRecord(recordName, recordDefinition, "");expression = recordName;}arguments.Add(new TemplateArgumentIr(pair.Key, expression, new FirmamentV2SourceSpan(source.Length, 0)));@@ -560,14 +574,42 @@ internal static class FirmamentV2TemplateExpansionreturn result.ToImmutable();}+ internal static IReadOnlyDictionary<string, string>? BindRecordExpression(string source, string type,+ string expression, string name, List<string> diagnostics, bool hostView = false)+ {+ // The synthetic declaration is a transport into the existing Record owner,+ // not a second schema or expression evaluator. Authored environments remain lexical.+ var before = diagnostics.Count;+ var input = source + "\nStatic " + name + ": " + type + " = " + expression + ";";+ var scalars = new FirmamentCompileTimeValues(input);+ var catalog = ReadDataCatalog(input, diagnostics, scalars, initialize: true);+ if (diagnostics.Count > before) return null;+ if (!catalog.Records.TryGetValue(name, out var record))+ { diagnostics.Add(UnknownStaticRecord + ":" + name + ":" + type); return null; }+ if (!scalars.TryRecordTransfer(name, type, name, record.SourceSpan, diagnostics, out var fields)) return null;+ if (!hostView) return fields;+ var transported = fields.ToDictionary(p => p.Key, p => p.Value, StringComparer.Ordinal);+ foreach (var field in fields)+ if (catalog.Records.TryGetValue(field.Value, out var nested)) transported[field.Key] = nested.TypeName;+ return transported;+ }+private static IReadOnlyDictionary<string, ImmutableHashSet<string>> ParseEnums(string source) => Regex.Matches(source, @"\bEnum\s+(?<name>[A-Za-z_][A-Za-z0-9_]*)\s*\{(?<body>.*?)\}", RegexOptions.Singleline | RegexOptions.CultureInvariant).Cast<Match>().ToDictionary(m => m.Groups["name"].Value,m => Regex.Matches(m.Groups["body"].Value, @"[A-Za-z_][A-Za-z0-9_]*", RegexOptions.CultureInvariant).Select(v => v.Value).ToImmutableHashSet(StringComparer.Ordinal), StringComparer.Ordinal);+ private static bool MatchesCoordinates(string value, string type)+ {+ if (FirmamentSyntaxParser.ParseExpression(value).Expression is not CallSyntax { Target: ReferenceSyntax target } call+ || target.Name.Text != type || call.Arguments.Count != (type == "Point3" ? 3 : 2)) return false;+ return call.Arguments.All(a => a.Name is null && FirmamentNumericEvaluation.TryEvaluate(a.Value, out var coordinate)+ && coordinate.Unit == (type == "Vector2" ? "" : "mm") && double.IsFinite(coordinate.Number));+ }+private static bool TypeMatches(string value, string type, IReadOnlyDictionary<string, ImmutableHashSet<string>> enums,IReadOnlyDictionary<string, TemplateRecordTypeIr>? recordTypes = null, IReadOnlyDictionary<string, TemplateStaticRecordIr>? staticRecords = null,FirmamentCompileTimeValues? scalars = null) => scalars?.Contains(value) == true ? scalars.HasType(value, type) : type switch{- "Point3" => Regex.IsMatch(value, @"^Point3\(\s*[-+]?\d+(?:\.\d+)?mm\s*,\s*[-+]?\d+(?:\.\d+)?mm\s*,\s*[-+]?\d+(?:\.\d+)?mm\s*\)$"),+ "Point2" or "Point3" or "Vector2" => MatchesCoordinates(value, type),"Length" => Regex.IsMatch(value, @"^[-+]?[0-9]+(?:\.[0-9]+)?mm$", RegexOptions.CultureInvariant),"Angle" => Regex.IsMatch(value, @"^[-+]?[0-9]+(?:\.[0-9]+)?deg$", RegexOptions.CultureInvariant),"String" => Regex.IsMatch(value, "^\"[^\"]*\"$", RegexOptions.CultureInvariant),diff --git a/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentDataBinding.cs b/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentDataBinding.csindex 9f1452b8..60b3bdf2 100644--- a/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentDataBinding.cs+++ b/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentDataBinding.cs@@ -102,6 +102,7 @@ internal sealed class FirmamentDataBindingvar ordinals = new Dictionary<string, int>(StringComparer.Ordinal);foreach (var statement in statements){+ if (statement is StatementBlockSyntax block) { Collect(block.Body.Statements, scope); continue; }if (statement is MappingSyntax m){var child = new Scope(scope, scope.Identity + "/mapping " + m.Key.Text); child.Values.Add(m.Key.Text);@@ -128,6 +129,7 @@ internal sealed class FirmamentDataBindingforeach (var statement in statements){var scope = scopes[statement];+ if (statement is StatementBlockSyntax block) { Rewrite(block.Body.Statements); continue; }if (statement is MappingSyntax m) { Rewrite([m.Value]); continue; }if (statement is FieldSyntax f) { Expression(f.Value, scope, false); continue; }if (statement is ExpressionStatementSyntax e) { Expression(e.Value, scope, false); continue; }diff --git a/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntax.cs b/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntax.csindex 1c8689f9..f44ecebb 100644--- a/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntax.cs+++ b/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntax.cs@@ -20,6 +20,7 @@ public enum BinaryOperator { Pipeline, Direction, Or, And, Equal, NotEqual, Less[JsonDerivedType(typeof(ExpressionStatementSyntax), "expressionStatement")][JsonDerivedType(typeof(ReturnSyntax), "return")][JsonDerivedType(typeof(MappingSyntax), "mapping")]+[JsonDerivedType(typeof(StatementBlockSyntax), "statementBlock")][JsonDerivedType(typeof(RoleRequirementSyntax), "roleRequirement")][JsonDerivedType(typeof(InterfaceRelationSyntax), "interfaceRelation")][JsonDerivedType(typeof(InterfaceFitSyntax), "interfaceFit")]@@ -56,6 +57,7 @@ public sealed record FieldSyntax(IdentifierSyntax Name, ExpressionSyntax Value,public sealed record DirectiveSyntax(DirectiveKind Kind, ExpressionSyntax Value, FirmamentV2SourceSpan Span) : StatementSyntax(Span);public sealed record ExpressionStatementSyntax(ExpressionSyntax Value, FirmamentV2SourceSpan Span) : StatementSyntax(Span);public sealed record ReturnSyntax(ExpressionSyntax Value, FirmamentV2SourceSpan Span) : StatementSyntax(Span);+public sealed record StatementBlockSyntax(BlockSyntax Body, FirmamentV2SourceSpan Span) : StatementSyntax(Span);public sealed record MappingSyntax(IdentifierSyntax Key, StatementSyntax Value, FirmamentV2SourceSpan Span) : StatementSyntax(Span);public sealed record RoleRequirementSyntax(IdentifierSyntax Name, IReadOnlyList<IdentifierSyntax> Capabilities, FirmamentV2SourceSpan Span) : StatementSyntax(Span);public sealed record InterfaceRelationSyntax(IdentifierSyntax Kind, ExpressionSyntax First, ExpressionSyntax Second,diff --git a/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxOrigins.cs b/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxOrigins.csindex 971dbfaa..af2aab7a 100644--- a/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxOrigins.cs+++ b/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxOrigins.cs@@ -40,6 +40,7 @@ internal sealed class FirmamentSyntaxOrigins(DocumentSyntax original, DocumentSy}if (statement is ExpressionStatementSyntax { Value: CallSyntax c }) result[identity + "/invocation"] = c.Span;if (statement is MappingSyntax m) Scope([m.Value], identity);+ if (statement is StatementBlockSyntax b) Scope(b.Body.Statements, identity);}}Scope(syntax.Statements, "document"); return result;diff --git a/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxParser.cs b/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxParser.csindex 9f236b08..57f94b1e 100644--- a/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxParser.cs+++ b/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxParser.cs@@ -107,7 +107,9 @@ public static class FirmamentSyntaxParser{var key = Identifier(); Expect("="); Expect(">");var valueStart = Current.Span.Start;- var value = Current.Kind == SyntaxTokenKind.Identifier || Is("<") ? Statement()+ var value = Is("{") ? new StatementBlockSyntax(Block(context: "Pattern mapping"), Span(valueStart))+ : Peek(1).Text == "with" ? new ExpressionStatementSyntax(Expression(), Span(valueStart))+ : Current.Kind == SyntaxTokenKind.Identifier || Is("<") ? Statement(): new ExpressionStatementSyntax(Expression(), Span(valueStart));return new MappingSyntax(key, value, Span(start));}diff --git a/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxRewriter.cs b/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxRewriter.csindex 38ff63b2..8e0e0083 100644--- a/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxRewriter.cs+++ b/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxRewriter.cs@@ -17,6 +17,7 @@ internal class FirmamentSyntaxRewriterDirectiveSyntax d => d with { Value = Expression(d.Value) },ExpressionStatementSyntax e => e with { Value = Expression(e.Value) },ReturnSyntax r => r with { Value = Expression(r.Value) },+ StatementBlockSyntax b => b with { Body = Block(b.Body) },MappingSyntax m => m with { Value = Statement(m.Value) },InterfaceRelationSyntax r => r with { First = Expression(r.First), Second = Expression(r.Second), Option = Optional(r.Option) },InterfaceFitSyntax f => f with { Shaft = Expression(f.Shaft), Bore = Expression(f.Bore) },diff --git a/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxTraversal.cs b/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxTraversal.csindex e41fae3d..acce83a1 100644--- a/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxTraversal.cs+++ b/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxTraversal.cs@@ -84,6 +84,7 @@ public static class FirmamentSyntaxTraversalFieldSyntax f => ExpressionBodies(f.Value),ExpressionStatementSyntax e => ExpressionBodies(e.Value),ReturnSyntax r => ExpressionBodies(r.Value),+ StatementBlockSyntax b => b.Body.Statements,MappingSyntax m => [m.Value],ReplacementSyntax r => [r.Replacement],_ => []diff --git a/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxWriter.cs b/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxWriter.csindex c845ad3e..0638770f 100644--- a/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxWriter.cs+++ b/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxWriter.cs@@ -21,6 +21,7 @@ internal sealed class FirmamentSyntaxWriter(string? source = null)DirectiveSyntax d => d.Kind.ToString().ToLowerInvariant() + " " + WriteExpression(d.Value),ExpressionStatementSyntax e => WriteExpression(e.Value),ReturnSyntax r => "return " + WriteExpression(r.Value),+ StatementBlockSyntax b => WriteBlock(b.Body),MappingSyntax m => m.Key.Text + " => " + WriteStatement(m.Value),RoleRequirementSyntax r => "Role " + r.Name.Text + " requires " + string.Join(", ", r.Capabilities.Select(c => c.Text)),InterfaceRelationSyntax r => "Lower " + r.Kind.Text + " " + WriteExpression(r.First) + " " + WriteExpression(r.Second) + (r.Option is null ? "" : " " + WriteExpression(r.Option)),diff --git a/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentTemplateSyntax.cs b/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentTemplateSyntax.csindex 20b2b868..b8d6e0b3 100644--- a/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentTemplateSyntax.cs+++ b/Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentTemplateSyntax.cs@@ -109,6 +109,7 @@ internal sealed class FirmamentTemplateSyntax}foreach (var statement in statements){+ if (statement is StatementBlockSyntax block) { Visit(block.Body.Statements, scope, owner); continue; }if (statement is MappingSyntax mapping){Visit([mapping.Value], new(scope, scope.Identity + "/mapping " + mapping.Key.Text), owner);@@ -173,7 +174,7 @@ internal sealed class FirmamentTemplateSyntaxprivate static string? Kind(DeclarationSyntax declaration) => declaration.Type.Name.Text switch{"Struct" when declaration.Modifiers.Any(m => m.Name.Text == "Concept") => "Concept Struct",- "Struct" or "Model" or "Panel" or "SheetMetal" or "ProfileDelta" or "Profile" => declaration.Type.Name.Text,+ "Struct" or "Model" or "Panel" or "SheetMetal" or "ProfileDelta" or "Profile" or "Subassembly" => declaration.Type.Name.Text,_ => null,};}diff --git a/Aetheris.Kernel.Firmament/Materializer/WireForm.cs b/Aetheris.Kernel.Firmament/Materializer/WireForm.csindex 8cbfba1b..b894f737 100644--- a/Aetheris.Kernel.Firmament/Materializer/WireForm.cs+++ b/Aetheris.Kernel.Firmament/Materializer/WireForm.cs@@ -249,7 +249,7 @@ public static class WireFormAuthoringinternal static string? Property(string body, string name){- var match = Regex.Match(body, $@"\b{Regex.Escape(name)}\s*:\s*(?<value>\[[^\]]+\]|[^;\r\n}}]+)", RegexOptions.CultureInvariant);+ var match = Regex.Match(body, $@"\b(?:{Regex.Escape(name)}|{Regex.Escape(FirmamentSourceSpelling.PreferredField(name))})\s*:\s*(?<value>\[[^\]]+\]|[^;\r\n}}]+)", RegexOptions.CultureInvariant);return match.Success ? match.Groups["value"].Value.Trim() : null;}internal static bool TryLength(string? text, out double value)@@ -484,6 +484,12 @@ public static class WireFormBRepMaterializerpublic static class WireFormReportFactory{+ internal static FirmamentWireAxisDatum AxisDatum(WireAxisCoilAir coil, double wireDiameterMm) => new(+ [coil.AxisOrigin.X, coil.AxisOrigin.Y, coil.AxisOrigin.Z],+ [coil.Axis.X, coil.Axis.Y, coil.Axis.Z],+ [coil.StartRadial.X, coil.StartRadial.Y, coil.StartRadial.Z],+ 2 * coil.RadiusMm - wireDiameterMm);+public static FirmamentWireFormReport Create(WireFormBuildResult built, string stepSha256, bool reimportedManifold){var feature = built.Feature;@@ -527,11 +533,7 @@ public static class WireFormReportFactoryoperation is WireKnotPathAir knotRms ? knotRms.ApproximationError.RmsMm : null,operation is WireKnotPathAir knotT1 ? knotT1.Qualification.ClosestParameter1 : null,operation is WireKnotPathAir knotT2 ? knotT2.Qualification.ClosestParameter2 : null,- operation is WireAxisCoilAir datum ? new FirmamentWireAxisDatum(- [datum.AxisOrigin.X, datum.AxisOrigin.Y, datum.AxisOrigin.Z],- [datum.Axis.X, datum.Axis.Y, datum.Axis.Z],- [datum.StartRadial.X, datum.StartRadial.Y, datum.StartRadial.Z],- 2 * datum.RadiusMm - feature.DiameterMm) : null)).ToArray();+ operation is WireAxisCoilAir datum ? AxisDatum(datum, feature.DiameterMm) : null)).ToArray();return new(feature.Name, feature.DiameterMm, feature.Material.Identity.FirmamentPath, feature.Operations.Count,feature.Operations.Count(x => x is WireStraightAir), feature.Operations.Count(x => x is WireBendAir),feature.TotalStraightLengthMm, feature.TotalBendLengthMm, feature.TotalWireLengthMm, built.VolumeMm3, built.MassKilograms,diff --git a/Aetheris.Kernel.Firmament/Modules/FirmamentModuleGraph.cs b/Aetheris.Kernel.Firmament/Modules/FirmamentModuleGraph.csindex d79e8df9..3abed723 100644--- a/Aetheris.Kernel.Firmament/Modules/FirmamentModuleGraph.cs+++ b/Aetheris.Kernel.Firmament/Modules/FirmamentModuleGraph.cs@@ -173,7 +173,7 @@ internal sealed class FirmamentModuleGraphvar actual = declaration.Type.Name.Text;if (!(kind.Name.Text == "Part" ? actual is "Model" or "Struct" or "Part" : actual == kind.Name.Text)){ Error("firmament-inventory-kind-mismatch", $"'{locator}.{export}' is {actual}, but '{field.Name.Text}' requires {kind.Name.Text}.", origin); continue; }- if (declaration.Modifiers.Any(m => m.Name.Text == "Template"))+ if (declaration.Modifiers.Any(m => m.Name.Text == "Template") && actual is not ("Subassembly" or "Struct" or "Model" or "Part")){ Error("firmament-inventory-specialization-required", "Specialize this Template in its defining module and export its concrete Part, Subassembly, Assembly or Scene result.", origin); continue; }}var identity = "__Module_" + Hash(IdentityPath(path) + "\0" + kind.Name.Text + "\0" + export)[..20];@@ -221,8 +221,18 @@ internal sealed class FirmamentModuleGraphError("firmament-inventory-member-unresolved", $"Inventory '{owner.Name.Text}' has no member '{member.Member.Text}'.", At(module, member.Span));else if (!(declaration.Type.Name.Text == "Assembly" ? reference.Kind is "Assembly" or "Subassembly" : declaration.Type.Name.Text == reference.Kind))Error("firmament-inventory-kind-mismatch", $"A {declaration.Type.Name.Text} occurrence cannot use {reference.Kind} '{owner.Name.Text}.{member.Member.Text}'.", At(module, target.Span));- else if (initializer is SpecializationSyntax)- Error("firmament-inventory-specialization-required", "Inventory entries reference concrete modules. Specialize Templates in the defining module before exporting them.", At(module, initializer.Span));+ else if (initializer is SpecializationSyntax && reference.Export?.Modifiers.Where(m => m.Name.Text == "Template")+ .SelectMany(m => m.Arguments).Any(a => a.Value is TypeParameterSyntax) == true)+ Error("firmament-inventory-type-argument-unsupported", "Imported Templates currently accept compile-time values, not caller-defined types. Specialize type parameters in the defining module and export a concrete product.", At(module, initializer.Span));+ else if (initializer is SpecializationSyntax && reference.Kind == "Part" && reference.Export is { } partExport+ && partExport.Modifiers.Where(m => m.Name.Text == "Template").SelectMany(m => m.Arguments).Any(a =>+ a.Value is ReferenceSyntax parameterType && Exports(reference.Module!)+ .Any(d => d.Type.Name.Text == "Record" && d.Name?.Text == parameterType.Name.Text)))+ Error("firmament-inventory-part-record-argument-unsupported", "Imported Part Templates currently admit scalar/enum parameters. Bind Record/type parameters inside their defining module or a typed Subassembly; caller Records are never resolved against private module values.", At(module, initializer.Span));+ else if (initializer is SpecializationSyntax && reference.Export?.Type.Name.Text is not ("Subassembly" or "Struct" or "Model" or "Part"))+ Error("firmament-inventory-specialization-required", "This module kind does not yet admit imported Template specialization.", At(module, initializer.Span));+ else if (initializer is not SpecializationSyntax && reference.Export?.Modifiers.Any(m => m.Name.Text == "Template") == true)+ Error("firmament-inventory-specialization-required", "This Template export requires named typed arguments at its occurrence.", At(module, initializer.Span));else module.Edits.Add(new(target.Span, reference.Identity));}}@@ -237,7 +247,7 @@ internal sealed class FirmamentModuleGraphforeach (var mapping in statements.OfType<MappingSyntax>()){var bodyScope=new Scope(scope); bodyScope.Values.Add(mapping.Key.Text);- Bind(module,[mapping.Value],bodyScope);+ Bind(module,mapping.Value is StatementBlockSyntax block ? block.Body.Statements : [mapping.Value],bodyScope);}}private SemanticSourceSpan DeclarationOrigin(DeclarationSyntax declaration)@@ -308,7 +318,7 @@ internal sealed class FirmamentModuleGraphforeach (var d in node.Syntax.Statements.OfType<DeclarationSyntax>().Where(d => d != selected && !IsInventory(d)&& !d.Modifiers.Any(m => m.Name.Text is "Template" or "Concept") && d.Type.Name.Text is "Model" or "Struct" or "Part" or "Assembly" or "Subassembly" or "Scene"))edits.Add(new(d.Span, Blank(node.Text, d.Span)));- if (node.Syntax.Statements.Contains(selected) && assemblyRoot && selected.Type.Name.Text == "Subassembly") edits.Add(new(selected.Type.Name.Span, "Assembly"));+ if (node.Syntax.Statements.Contains(selected) && assemblyRoot && selected.Type.Name.Text == "Subassembly" && !selected.Modifiers.Any(m => m.Name.Text == "Template")) edits.Add(new(selected.Type.Name.Span, "Assembly"));if (node.Syntax.Statements.Contains(selected) && selected.Type.Name.Text == "Part") edits.Add(new(selected.Type.Name.Span, "Struct"));}var cursor = 0;@@ -337,14 +347,46 @@ internal sealed class FirmamentModuleGraphreferences.TryAdd(identity, reference); return reference;}- internal AssemblyM0Parser.ParseResult ParseAssembly(Reference reference)+ internal AssemblyM0Parser.ParseResult ParseAssembly(Reference reference, string? use = null, string? callerSource = null){var projection = ProjectSource(reference.Module!, reference.Export, assemblyRoot: true);+ if (reference.Export!.Modifiers.Any(m => m.Name.Text == "Template"))+ {+ var codes = new List<string>();+ var application = FirmamentSyntaxParser.ParseExpression(use ?? reference.Identity).Expression as SpecializationSyntax;+ if (application is null)+ return new(null, [new("firmament-template-missing-required-argument", $"Subassembly '{reference.Definition}' requires its typed Template arguments.") { SourceSpan = reference.Origin }], 0);+ var arguments = new Dictionary<string, FirmamentV2TemplateExpansion.HostArgument>(StringComparer.Ordinal);+ var signature = FirmamentV2TemplateExpansion.Inspect(projection.Text, codes).SingleOrDefault(t => t.Name == reference.Definition);+ foreach (var argument in application.Arguments)+ {+ var name = argument.Name?.Text ?? "";+ if (arguments.ContainsKey(name)) { codes.Add(FirmamentV2TemplateExpansion.DuplicateArgument + ":" + name); continue; }+ var expression = FirmamentSyntaxWriter.Expression(argument.Value);+ var parameter = signature?.Parameters.SingleOrDefault(p => p.Name == name);+ var records = FirmamentV2TemplateExpansion.InspectRecords(projection.Text, codes);+ var isRecord = records.Any(r => r.Name == parameter?.TypeName);+ var fields = isRecord ? FirmamentV2TemplateExpansion.BindRecordExpression(callerSource ?? "", parameter!.TypeName,+ expression, "__ModuleArgument_" + name, codes, hostView: true) : null;+ arguments[name] = new(expression, isRecord ? parameter!.TypeName : null, fields);+ }+ var specialized = codes.Count == 0 ? FirmamentV2TemplateExpansion.ExpandHostInvocation(projection.Text,+ reference.Definition, reference.Definition, arguments, codes) : null;+ if (specialized is null || codes.Count > 0)+ return new(null, codes.Select(code => new AssemblyDiagnostic(code.Split(':')[0], code) { SourceSpan = reference.Origin }).ToArray(), 0);+ var concrete = specialized.Source;+ var declaration = FirmamentSyntaxParser.Parse(concrete).Document.Statements.OfType<DeclarationSyntax>()+ .Single(d => d.Name?.Text == reference.Definition && d.Type.Name.Text == "Subassembly");+ concrete = concrete.Remove(declaration.Type.Name.Span.Start, declaration.Type.Name.Span.Length).Insert(declaration.Type.Name.Span.Start, "Assembly");+ // Expanded offsets cannot be mapped exactly. Preserve the declaration's+ // honest enclosing origin rather than pretending generated spans are authored.+ projection = new(concrete, [new(0, concrete.Length, reference.DeclarationOrigin, false)], reference.Path);+ }return new AssemblyM0Parser().ParseBound(projection.Text, reference.Path, this, reference.Module!, projection, reference.Export);}internal AssemblyMemberSource QualifyParts(Module module, AssemblyMemberSource root) => root with{- DefinitionIdentity = root.Kind == AssemblyInstanceKind.Part ? LocalPart(module, root.DefinitionIdentity).Identity : root.DefinitionIdentity,+ DefinitionIdentity = root.Kind == AssemblyInstanceKind.Part ? LocalPart(module, root.DefinitionIdentity).Identity + (root.DefinitionIdentity.Contains('<') ? root.DefinitionIdentity[root.DefinitionIdentity.IndexOf('<')..] : "") : root.DefinitionIdentity,Children = root.Children.Select(child => QualifyParts(module, child)).ToArray()};internal IReadOnlyList<SemanticValue> Ports(Reference reference, string use, List<AssemblyDiagnostic> diagnostics,@@ -355,7 +397,7 @@ internal sealed class FirmamentModuleGraphvar identity = PartIdentity(reference, use);return reference.Export is null || reference.Export.Modifiers.Any(m => m.Name.Text == "Template")? AssemblyPublishedPorts.BindAuthored(identity, projection.Text, reference.Path, diagnostics, Project, [], cache)- : AssemblyPublishedPorts.Read(projection.Text, reference.Definition, use, reference.Path, diagnostics);+ : AssemblyPublishedPorts.Read(projection.Text, reference.Definition, use, reference.Path, diagnostics, includeWinding: true);}internal string PartIdentity(Reference reference, string use){diff --git a/Aetheris.SheetMetal.Tests/SheetMetalM6Tests.cs b/Aetheris.SheetMetal.Tests/SheetMetalM6Tests.csindex b435b2b9..73859c62 100644--- a/Aetheris.SheetMetal.Tests/SheetMetalM6Tests.cs+++ b/Aetheris.SheetMetal.Tests/SheetMetalM6Tests.cs@@ -64,8 +64,12 @@ public sealed class SheetMetalM6Tests[Fact]public void MissingProductConceptMember_IsTypedParserDiagnosticBeforeGeometry(){- var source = File.ReadAllText(Path.Combine(Root(), "fixtures/Compatibility/Firmasm/SheetMetal/network-appliance-product-m7.firmasm"))- .Replace("<Part Lid = RemovablePanLid<Spec: Spec.Lid>>", "<Part Cover = RemovablePanLid<Spec: Spec.Lid>>", StringComparison.Ordinal);+ var source = SheetMetalFirmament.ResolveImports(File.ReadAllText(Path.Combine(Root(), "fixtures/Compatibility/Firmasm/SheetMetal/network-appliance-product-m7.firmasm")));+ // This low-level parser has no dependency on the SheetMetal module. Supply+ // the same domain-owned schemas used by the real product entry point.+ var valid = new AssemblyM0Parser().Parse(source);+ Assert.True(valid.IsSuccess, string.Join("\n",valid.Diagnostics.Select(d => d.Message)));+ source = source.Replace("<Part Lid = RemovablePanLid<Spec: Spec.Lid>>", "<Part Cover = RemovablePanLid<Spec: Spec.Lid>>", StringComparison.Ordinal);var parsed = new AssemblyM0Parser().Parse(source);Assert.False(parsed.IsSuccess);Assert.Contains(parsed.Diagnostics, item => item.Code == "assembly-concept-missing-member" && item.Message.Contains("Lid", StringComparison.Ordinal));diff --git a/Aetheris.SheetMetal/EnclosureProductM6.cs b/Aetheris.SheetMetal/EnclosureProductM6.csindex 4d2c3a3f..afb34643 100644--- a/Aetheris.SheetMetal/EnclosureProductM6.cs+++ b/Aetheris.SheetMetal/EnclosureProductM6.cs@@ -132,12 +132,22 @@ public sealed record ManufacturedEnclosureProduct(/// </summary>public static class EnclosureProductFamilies{+ /// <summary>Prepare this domain's existing library schemas, then use ordinary Assembly M1.</summary>+ public static AssemblyM1CompilationResult CompileAssemblyFile(string path)+ {+ var fullPath = Path.GetFullPath(path);+ if (!File.Exists(fullPath)) return new(null,null,[new AssemblyDiagnostic("assembly-include-file-not-found", $"Module '{fullPath}' was not found.")]);+ var source = SheetMetalFirmament.ResolveImports(File.ReadAllText(fullPath));+ return new AssemblyM1Pipeline().Compile(source,fullPath,MaterializeAssemblyPart);+ }+public static ManufacturedEnclosureProduct MakeEnclosureProduct(EnclosureProductSpec spec, string instanceName = "EnclosureProduct")=> Compile(BuildSource(spec, instanceName), spec, "product:" + instanceName);public static ManufacturedEnclosureProduct Compile(string source, EnclosureProductSpec spec, string sourceIdentity = "<enclosure-product>"){Validate(spec);+ source = SheetMetalFirmament.ResolveImports(source);var parts = new Dictionary<string, ManufacturedSheetMetalResult>(StringComparer.Ordinal);AssemblyPartMaterialization? Materialize(string identity, string? declarations, string identitySource, IList<AssemblyDiagnostic> diagnostics){@@ -218,7 +228,7 @@ public static class EnclosureProductFamilies"Product.Closure", $"Required lid/body overlap is {spec.LidOverlap:G4} mm.", spec.LidOverlap, double.Epsilon));var interference = assembly.Diagnostics.Any(item => item.Code == "assembly-solid-volume-interference");findings.Add(new(ProductDfmFindingKind.Assembly, "assembly-dfm-solid-interference", interference ? SheetMetalDfmStatus.Fail : SheetMetalDfmStatus.Pass,- "Product.Body↔Product.Lid", interference ? "Exact BRep evidence found positive-volume penetration." : "Exact BRep evidence found no unintended positive-volume penetration."));+ "Product.Body↔Product.Lid", interference ? "Exact BRep evidence found positive-volume penetration." : "Exact BRep evidence found no unintended positive-volume penetration."));var bodyHole = bodyInstance.SemanticRoot.ExposedMembers["Attachments"].ExposedMembers["HoleA"];var lidHole = lidInstance.SemanticRoot.ExposedMembers["Attachments"].ExposedMembers["HoleA"];var bodyPoint = (ExactPointBinding)AssemblyWorldQuery.Resolve(assembly.Ir, bodyHole.StableIdentity);@@ -238,7 +248,7 @@ public static class EnclosureProductFamilies.Select(item => new FitToleranceContribution(item.Source, item.SemanticPath, item.WorstCaseClearanceReductionMm)).ToArray();var frameSolutions = (assembly.Ir?.DatumMateSolutions ?? []).Concat((assembly.Ir?.AssemblyDefinitions ?? []).SelectMany(definition => definition.LocalDatumMateSolutions ?? [])).ToArray();var frameContact = frameSolutions.Length > 0 && frameSolutions.All(item => item.Status == "resolved" && item.ConstrainedDegreesOfFreedom == 6);- return new("Product.Closure.Body.LidSeat↔Product.Closure.Lid.BodySeat", fit.NominalClearance, fit.WorstCaseMinimum, fit.WorstCaseMaximum,+ return new("Product.Closure.Body.LidSeat↔Product.Closure.Lid.BodySeat", fit.NominalClearance, fit.WorstCaseMinimum, fit.WorstCaseMaximum,fit.MaximumPenetration, 0, null,frameContact ? "Intended seating relation certified by coincident semantic DatumFrames; contact area is not certified." : "No certified seating-contact witness.","Nominal positive-volume overlap is checked by BrepSolidInterference. Tolerance penetration is an analytic conservative bound; no arbitrary-BRep Boolean volume is claimed.",diff --git a/Aetheris.SheetMetal/SheetMetalFirmament.cs b/Aetheris.SheetMetal/SheetMetalFirmament.csindex fc42b7db..3097dcbf 100644--- a/Aetheris.SheetMetal/SheetMetalFirmament.cs+++ b/Aetheris.SheetMetal/SheetMetalFirmament.cs@@ -41,9 +41,10 @@ public static class SheetMetalFirmamentreturn Compile(File.ReadAllText(full),full);}- public static SheetMetalAuthoringResult Compile(string source,string sourcePath="authored.firmament")+ // Resolve the domain's schemas before any shared Record/Template admission,+ // including assemblies that defer SheetMetal body materialization.+ public static string ResolveImports(string source){- ArgumentNullException.ThrowIfNull(source);if(Regex.IsMatch(source,@"\bUse\s+Profile\.Modifications\s*;",RegexOptions.CultureInvariant)){source=Regex.Replace(source,@"\bUse\s+Profile\.Modifications\s*;",string.Empty,RegexOptions.CultureInvariant);@@ -54,6 +55,13 @@ public static class SheetMetalFirmamentsource=Regex.Replace(source,@"\bUse\s+SheetMetal\.ProductFamilies\s*;",string.Empty,RegexOptions.IgnoreCase|RegexOptions.CultureInvariant);source=SheetMetalTemplateLibrary.Source+Environment.NewLine+source;}+ return source;+ }++ public static SheetMetalAuthoringResult Compile(string source,string sourcePath="authored.firmament")+ {+ ArgumentNullException.ThrowIfNull(source);+ source = ResolveImports(source);IReadOnlyList<ConceptIrTemplateInstantiation> instantiations=[];if(Regex.IsMatch(source,@"\bTemplate\s*<",RegexOptions.CultureInvariant)){diff --git a/demos/Aetheris.EditableV8.Tests/EngineTests.cs b/demos/Aetheris.EditableV8.Tests/EngineTests.csindex de65db9c..983c7742 100644--- a/demos/Aetheris.EditableV8.Tests/EngineTests.cs+++ b/demos/Aetheris.EditableV8.Tests/EngineTests.cs@@ -11,13 +11,13 @@ public sealed class EngineTests{var baseline = new EngineAuthor(new()); var revised = new EngineAuthor(new(Stroke: 94));var source = baseline.Engine(8); var revision = revised.Engine(8);- Assert.NotEqual(source, revision);+ Assert.NotEqual(source.Documents["design.firmament"], revision.Documents["design.firmament"]);var a = baseline.Motion(); var b = revised.Motion();Assert.Equal(a.Bindings.Select(x => x.Name), b.Bindings.Select(x => x.Name));Assert.Equal(3, b.Spec.DeckHeight - a.Spec.DeckHeight);Assert.Equal(3, b.Spec.CrankRadius - a.Spec.CrankRadius);Assert.NotEqual(a.Spec.CrankcaseFloor, b.Spec.CrankcaseFloor);- var repeat = new EngineAuthor(new()); Assert.Equal(source, repeat.Engine(8));+ var repeat = new EngineAuthor(new()); Assert.Equal(source.Documents.OrderBy(p => p.Key), repeat.Engine(8).Documents.OrderBy(p => p.Key));Assert.Equal(JsonSerializer.Serialize(a), JsonSerializer.Serialize(repeat.Motion()));EngineMotion.Validate(a); EngineMotion.Validate(b);foreach (var motion in new[] { a, b }) foreach (var binding in motion.Bindings.Where(b => !b.Kind.EndsWith("Spring", StringComparison.Ordinal)))@@ -33,18 +33,27 @@ public sealed class EngineTestspublic void PhysicalEngineUsesInterfacePlacementAndDimensionalFits(){var engine = new EngineAuthor(new()); var source = engine.Engine(8);- var result = new AssemblyM1Pipeline().Compile(source, "editable-v8-test.firmament");+ var result = new AssemblyM1Pipeline().CompileProject(source.Snapshot);Assert.True(result.IsSuccess, string.Join("\n", result.Diagnostics.Select(d => d.Message)));- Assert.DoesNotContain("LegacyExplicit", source);- Assert.Equal(engine.Bindings.Count - 1, result.Ir!.Mates.Count);- Assert.Equal(32, result.Ir.FitResults.Count);+ Assert.All(source.Documents.Values, text => Assert.DoesNotContain("LegacyExplicit", text));+ Assert.Equal(21, result.Ir!.Instances.Count(i => i.Kind == AssemblyInstanceKind.Assembly && i.ParentStableId is not null));+ Assert.Contains(result.Ir.Instances, i => i.Path.ToString() == "EditableV8.Crankshaft.Crankpin1");+ Assert.Contains(result.Ir.Instances, i => i.Path.ToString() == "EditableV8.Cylinders.C1.Cylinder.Piston");+ Assert.Equal(32, EngineMotion.Fits(result.Ir).Count);+ Assert.All(EngineMotion.Fits(result.Ir), fit => Assert.True(fit.Compatible));Assert.All(result.Geometry!.Artifact.MateResiduals, residual => Assert.True(residual.Passed));+ var localPlacements = result.Ir.AssemblyDefinitions!.SelectMany(d => d.LocalPlacements).ToArray();+ Assert.NotEmpty(localPlacements);+ Assert.All(localPlacements, p => Assert.True(p.Status is PlacementStatus.Anchored or PlacementStatus.Resolved));var export = AssemblyDisplayMeshExporter.Export(result);Assert.Equal(engine.Bindings.Count, export.Occurrences.Count(o => o.DefinitionId != null));Assert.Equal(export.Occurrences.Count, export.Occurrences.Select(o => o.Id).Distinct().Count());- Assert.True(export.Definitions.Count < engine.Bindings.Count / 4);+ Assert.Equal(21, export.Definitions.Count);var solved = EngineMotion.BindAssembly(engine.Motion(), result);+ AssertGeometryReference(export, solved);EngineMotion.ValidateSpringAlignment(solved);+ Assert.Equal(55, solved.Bindings.Single(b => b.Name == "MainJournal1").Rest[14] - engine.Bindings.Single(b => b.Name == "MainJournal1").Rest[14], 8);+ Assert.All(solved.Bindings, b => Assert.Equal("assembly-instance:" + b.SourcePath, b.OccurrenceId));foreach (var binding in solved.Bindings.Where(b => b.SpringAxis != null)){var atZero = EngineMotion.Evaluate(solved, binding, 0);@@ -63,4 +72,37 @@ public sealed class EngineTestsvar failure = Assert.Throws<InvalidOperationException>(() => EngineMotion.Validate(unsafeDesign.Motion()));Assert.Contains("engine-sweep-failed", failure.Message);}+ private static void AssertGeometryReference(AssemblyDisplayMeshDocument mesh, EngineMotionManifest motion)+ {+ var directory = new DirectoryInfo(AppContext.BaseDirectory);+ while (directory is not null && !File.Exists(Path.Combine(directory.FullName, "Aetheris.slnx"))) directory = directory.Parent;+ Assert.NotNull(directory);+ using var reference = JsonDocument.Parse(File.ReadAllText(Path.Combine(directory!.FullName,+ "fixtures/Canonical/EditableV8/geometry-reference.expected.json")));+ var definitions = mesh.Definitions.ToDictionary(d => d.Id, d => Fingerprint(d), StringComparer.Ordinal);+ var occurrences = mesh.Occurrences.ToDictionary(o => o.Id, StringComparer.Ordinal);+ var bindings = motion.Bindings.ToDictionary(b => b.Name, StringComparer.Ordinal);+ Assert.Equal(reference.RootElement.GetProperty("bodyCount").GetInt32(), bindings.Count);+ foreach (var row in reference.RootElement.GetProperty("bindings").EnumerateArray()) {+ var binding = bindings[row.GetProperty("name").GetString()!];+ Assert.True(row.GetProperty("meshSha256").GetString() == definitions[occurrences[binding.OccurrenceId!].DefinitionId!], "Part geometry changed for " + binding.Name);+ var oldRest = row.GetProperty("rest").EnumerateArray().Select(v => v.GetDouble());+ Assert.True(binding.Rest.Zip(oldRest).All(p => double.Abs(p.First - p.Second) <= 1e-9), "Rest geometry changed for " + binding.Name);+ }+ }++ private static string Fingerprint(AssemblyDisplayMeshDefinition definition)+ {+ using var data = new MemoryStream();+ using (var writer = new BinaryWriter(data, System.Text.Encoding.UTF8, leaveOpen: true)) {+ foreach (var values in new[] { definition.Positions, definition.Normals }) {+ writer.Write(values.Length);+ foreach (var value in values) writer.Write(value == 0 ? 0d : value);+ }+ writer.Write(definition.Indices.Length);+ foreach (var index in definition.Indices) writer.Write(index);+ }+ return Convert.ToHexString(System.Security.Cryptography.SHA256.HashData(data.ToArray()));+ }+}diff --git a/demos/Aetheris.EditableV8/Aetheris.EditableV8.csproj b/demos/Aetheris.EditableV8/Aetheris.EditableV8.csprojindex 2c6073c7..ba0d7cea 100644--- a/demos/Aetheris.EditableV8/Aetheris.EditableV8.csproj+++ b/demos/Aetheris.EditableV8/Aetheris.EditableV8.csproj@@ -6,5 +6,6 @@</PropertyGroup><ItemGroup><ProjectReference Include="../../Aetheris.Kernel.Firmament/Aetheris.Kernel.Firmament.csproj" />+ <EmbeddedResource Include="../../fixtures/Canonical/EditableV8/**/*.firmament;../../fixtures/Canonical/EditableV8/**/*.firmasm" LogicalName="EditableV8/%(RecursiveDir)%(Filename)%(Extension)" /></ItemGroup></Project>diff --git a/demos/Aetheris.EditableV8/EngineMotion.cs b/demos/Aetheris.EditableV8/EngineMotion.csindex 8aec8ebd..438f0f84 100644--- a/demos/Aetheris.EditableV8/EngineMotion.cs+++ b/demos/Aetheris.EditableV8/EngineMotion.cs@@ -7,29 +7,40 @@ namespace Aetheris.EditableV8;public sealed record EngineCylinder(int Number, double BankRadians, double CrankpinRadians, double Z, double IgnitionDegrees);public sealed record EngineBinding(string Name, string Kind, int Cylinder, string Category, double[] Rest, string? OccurrenceId = null,- IReadOnlyList<int>? CylinderMembership = null, EngineSpringAxis? SpringAxis = null);+ IReadOnlyList<int>? CylinderMembership = null, EngineSpringAxis? SpringAxis = null, string? SourcePath = null, string? DefinitionExport = null);public sealed record EngineSpringAxis(double[] LocalOrigin, double[] LocalDirection, string StemOccurrenceId);public sealed record EngineMotionManifest(string Schema, V8Spec Spec, int CycleDegrees, double CamRatio,int[] FiringOrder, IReadOnlyList<EngineCylinder> Cylinders, IReadOnlyList<EngineBinding> Bindings);public static class EngineMotion{+ public static IReadOnlyList<InterfaceFitResultIr> Fits(AssemblyIr ir) =>+ [.. ir.FitResults, .. (ir.AssemblyDefinitions ?? []).SelectMany(d => d.LocalFitResults ?? [])];+public static EngineMotionManifest BindAssembly(EngineMotionManifest motion, AssemblyM1CompilationResult assembly){if (!assembly.IsSuccess) throw new ArgumentException("engine-motion-unqualified-assembly");- if (assembly.Ir!.FitResults.Any(f => !f.Compatible)) throw new ArgumentException("engine-motion-incompatible-interface-fit");- var instances = assembly.Ir!.Instances.ToDictionary(i => i.Path.Segments.Last(), StringComparer.Ordinal);- var zShift = instances["MainJournal1"].ResolvedTransform!.Matrix[14] - motion.Bindings.Single(b => b.Name == "MainJournal1").Rest[14];+ if (Fits(assembly.Ir!).Any(f => !f.Compatible)) throw new ArgumentException("engine-motion-incompatible-interface-fit");+ var instances = assembly.Ir!.Instances.Where(i => i.Kind == AssemblyInstanceKind.Part).ToDictionary(i => i.Path.ToString(), StringComparer.Ordinal);+ string PathFor(EngineBinding b) => b.SourcePath ?? assembly.Ir.Name + "." + b.Name;+ var byName = motion.Bindings.ToDictionary(b => b.Name, b => instances[PathFor(b)], StringComparer.Ordinal);+ if (byName.Count != instances.Count) throw new InvalidOperationException("engine-motion-unbound-part");+ var exports = assembly.Ir.InventoryBindings.GroupBy(b => b.DefinitionIdentity)+ .ToDictionary(g => g.Key, g => g.Select(b => b.Export).Distinct(StringComparer.Ordinal).Single(), StringComparer.Ordinal);+ foreach (var binding in motion.Bindings.Where(b => b.DefinitionExport is not null))+ if (exports.GetValueOrDefault(byName[binding.Name].DefinitionIdentity.Split('<')[0]) != binding.DefinitionExport)+ throw new InvalidOperationException("engine-motion-definition-mismatch:" + binding.Name);+ var zShift = byName["MainJournal1"].ResolvedTransform!.Matrix[14] - motion.Bindings.Single(b => b.Name == "MainJournal1").Rest[14];return motion with {Cylinders = motion.Cylinders.Select(c => c with { Z = c.Z + zShift }).ToArray(),Bindings = motion.Bindings.Select(b => {- var instance = instances[b.Name]; EngineSpringAxis? springAxis = null;+ var instance = byName[b.Name]; EngineSpringAxis? springAxis = null;if (b.Kind.EndsWith("Spring", StringComparison.Ordinal)){if (!instance.SemanticRoot.ExposedMembers["Winding"].ExposedMembers["Axis"].TryBinding<ExactAxisBinding>(out var axis))throw new InvalidOperationException("engine-spring-axis-missing:" + b.Name);springAxis = new([axis.OriginX, axis.OriginY, axis.OriginZ], [axis.DirectionX, axis.DirectionY, axis.DirectionZ],- instances[b.Name.Replace("Spring", "Stem", StringComparison.Ordinal)].StableId);+ byName[b.Name.Replace("Spring", "Stem", StringComparison.Ordinal)].StableId);}return b with { OccurrenceId = instance.StableId, Rest = instance.ResolvedTransform!.Matrix.ToArray(), SpringAxis = springAxis };}).ToArray()diff --git a/demos/Aetheris.EditableV8/EngineProject.cs b/demos/Aetheris.EditableV8/EngineProject.csnew file mode 100644index 00000000..11b6a31d--- /dev/null+++ b/demos/Aetheris.EditableV8/EngineProject.cs@@ -0,0 +1,105 @@+using System.Globalization;+using System.Text;+using Aetheris.Kernel.Core.Mechanisms;+using Aetheris.Kernel.Firmament.Assembly;++namespace Aetheris.EditableV8;++/// <summary>Authored Firmament modules plus finite, typed mechanism input data.+/// No geometry or product-tree source is synthesized by the demo.</summary>+public sealed record EngineProject(string EntryPath, IReadOnlyDictionary<string, string> Documents,+ IReadOnlyDictionary<string, string> OccurrencePaths)+{+ private static string N(double value)+ {+ var text = value.ToString("G17", CultureInfo.InvariantCulture);+ // Keep round-trip precision without exponent/unit ambiguity in legacy+ // Record literal consumers. This changes spelling, not numeric values.+ return text.Contains('E') ? value.ToString("F" + Math.Max(0, 16 - (int)Math.Floor(Math.Log10(Math.Abs(value)))), CultureInfo.InvariantCulture) : text;+ }+ private static string Export(string group) => string.Concat(group.Split('-').Select(s => char.ToUpperInvariant(s[0]) + s[1..]));+ internal static string Group(EngineBinding b) => b.Cylinder > 0 ? "cylinder" + b.Cylinder+ : b.Kind == "Crank" ? "crankshaft" : b.Category == "Block" ? "crankcase"+ : b.Rest[12] > 0 ? "cam-right" : "cam-left";++ public FirmamentProjectSnapshot Snapshot => new(EntryPath, Documents);++ public string WriteTo(string directory, string label)+ {+ var root = Path.Combine(directory, label);+ foreach (var (path, source) in Documents) {+ var target = Path.Combine(root, path);+ Directory.CreateDirectory(Path.GetDirectoryName(target)!);+ File.WriteAllText(target, source);+ }+ return Path.Combine(root, EntryPath);+ }++ internal static EngineProject Create(V8Spec spec, IReadOnlyList<EngineBinding> bindings,+ IReadOnlyList<EngineCylinder> cylinders, string stage)+ {+ var assets = typeof(EngineProject).Assembly;+ var documents = assets.GetManifestResourceNames().Where(n => n.StartsWith("EditableV8/", StringComparison.Ordinal))+ .ToDictionary(n => n[11..].Replace('\\', '/'), n => {+ using var reader = new StreamReader(assets.GetManifestResourceStream(n)!);+ return reader.ReadToEnd();+ }, StringComparer.Ordinal);+ var dimensions = new Dictionary<string, double>(StringComparer.Ordinal) {+ ["crankRadius"] = spec.CrankRadius, ["cylinderSpacing"] = spec.CylinderSpacing, ["crankcaseFloor"] = spec.CrankcaseFloor, ["camHeight"] = spec.DeckHeight + 80,+ ["deckHeight"] = spec.DeckHeight, ["sleeveSeatHeight"] = spec.DeckHeight - (spec.Stroke + 29) / 2,+ ["rodLength"] = spec.RodLength, ["rodHeight"] = spec.RodLength + 48, ["rodCenter"] = spec.RodLength / 2,+ ["pistonRadius"] = spec.Bore / 2 - .3, ["skirtInnerRadius"] = spec.Bore / 2 - 4.3,+ ["sleeveOuterRadius"] = spec.Bore / 2 + 6, ["boreRadius"] = spec.Bore / 2,+ ["sleeveMin"] = -(spec.Stroke + 29) / 2, ["sleeveMax"] = (spec.Stroke + 29) / 2,+ ["webHeight"] = spec.CrankRadius + 60, ["webCenter"] = spec.CrankRadius / 2,+ ["journalMin"] = -(spec.CylinderSpacing - 56) / 2, ["journalMax"] = (spec.CylinderSpacing - 56) / 2,+ ["headWidth"] = spec.Bore + 12, ["compressedPitch"] = (36 - spec.ValveLift) / 6,+ ["supportHeight"] = 36 - spec.CrankcaseFloor, ["supportCenter"] = (36 + spec.CrankcaseFloor) / 2,+ ["caseMin"] = -(4 * spec.CylinderSpacing + 16) / 2, ["caseMax"] = (4 * spec.CylinderSpacing + 16) / 2+ };+ documents["design.firmament"] = "// Millimetre dimensions from the same typed specification as the mechanism.\nRecord EngineDimensions {\n"+ + string.Concat(dimensions.Keys.Select(k => $" {k}: Length\n")) + "}\nStatic d: EngineDimensions = EngineDimensions {\n"+ + string.Concat(dimensions.Select(v => $" {v.Key}: {N(v.Value)}mm\n")) + "}\n"+ + "Record SpringDimensions { pitch: Length }\nStatic freeCoil: SpringDimensions = SpringDimensions { pitch: 6mm }\n"+ + $"Static compressedCoil: SpringDimensions = SpringDimensions {{ pitch: {N((36 - spec.ValveLift) / 6)}mm }}\n";+ var stageWitness = stage is "stage-a" or "stage-b";+ var rootName = stageWitness ? "SliderCrankStageA" : "EditableV8";+ var shift = -bindings.Single(b => b.Name == "MainJournal1").Rest[14];+ if (!stageWitness) {+ var rest = new StringBuilder("// Indexed scalar rest data; no Part transforms.\n");+ var configurations = new List<string>();+ foreach (var cylinder in cylinders) {+ var bankSin = double.Sin(cylinder.BankRadians); var bankCos = double.Cos(cylinder.BankRadians);+ var rod = bindings.Single(b => b.Name == "Rod" + cylinder.Number);+ var piston = bindings.Single(b => b.Name == "Piston" + cylinder.Number);+ var intake = PrescribedMotion.ValveLift(-cylinder.IgnitionDegrees, spec.IntakeOpeningDegrees, spec.ValveDurationDegrees, spec.ValveLift);+ var exhaust = PrescribedMotion.ValveLift(-cylinder.IgnitionDegrees, spec.ExhaustOpeningDegrees, spec.ValveDurationDegrees, spec.ValveLift);+ var values = new Dictionary<string,string> {+ ["rodX"] = N(rod.Rest[12] * bankCos - rod.Rest[13] * bankSin) + "mm",+ ["rodY"] = N(rod.Rest[12] * bankSin + rod.Rest[13] * bankCos) + "mm",+ ["rodSin"] = N(-rod.Rest[1] * bankCos - rod.Rest[0] * bankSin),+ ["rodCos"] = N(rod.Rest[0] * bankCos - rod.Rest[1] * bankSin),+ ["pistonY"] = N(piston.Rest[12] * bankSin + piston.Rest[13] * bankCos - 32.5) + "mm",+ ["intakeLift"] = N(intake) + "mm", ["exhaustLift"] = N(exhaust) + "mm",+ ["intakePitch"] = N((36 - intake) / 6) + "mm", ["exhaustPitch"] = N((36 - exhaust) / 6) + "mm"+ };+ rest.AppendLine($"Static restC{cylinder.Number}: CylinderRest = standardRest with {{ " + string.Join("; ", values.Select(v => v.Key + ": " + v.Value)) + " }");+ configurations.Add($" C{cylinder.Number} => standardCylinder with {{ bankSin: {N(bankSin)}; bankCos: {N(bankCos)}; z: {N(cylinder.Z + shift)}mm; rest: restC{cylinder.Number}; journal: EditableV8.Crankshaft.Pin{(cylinder.Number + 1) / 2} }}");+ }+ rest.AppendLine("Static cylinderConfigs: Set<CylinderConfig> {\n" + string.Join("\n", configurations) + "\n}"); documents[cylinders.Count == 4 ? "bank-rest-configurations.firmament" : "rest-configurations.firmament"] = rest.ToString();+ }+ var paths = new Dictionary<string, string>(StringComparer.Ordinal);+ foreach (var group in bindings.GroupBy(b => stageWitness ? stage : Group(b))) {+ if (!stageWitness && group.First().Cylinder > 0) {+ foreach (var binding in group)+ paths[binding.Name] = rootName + ".Cylinders.C" + binding.Cylinder + ".Cylinder."+ + binding.Name[..^binding.Cylinder.ToString(CultureInfo.InvariantCulture).Length];+ continue;+ }+ foreach (var binding in group) paths[binding.Name] = rootName + "." + Export(group.Key) + "." + binding.Name;+ }+ var entry = stageWitness ? stage + ".firmasm" : cylinders.Count == 4 ? "bank.firmasm" : "engine.firmasm";+ return new(entry, documents, paths);+ }++}diff --git a/demos/Aetheris.EditableV8/Program.cs b/demos/Aetheris.EditableV8/Program.csindex 167fa8bc..332982a7 100644--- a/demos/Aetheris.EditableV8/Program.cs+++ b/demos/Aetheris.EditableV8/Program.cs@@ -1,7 +1,5 @@-using System.Globalization;using System.Diagnostics;using System.Security.Cryptography;-using System.Text;using System.Text.Json;using Aetheris.Kernel.Core.Mechanisms;using Aetheris.Kernel.Firmament.Assembly;@@ -44,8 +42,7 @@ public static class ProgramDirectory.CreateDirectory(output);var author = new EngineAuthor(spec);var source = author.StageA();- var path = Path.Combine(output, "stage-a.firmament");- File.WriteAllText(path, source);+ var path = source.WriteTo(output, "stage-a");File.WriteAllText(Path.Combine(output, "spec.json"), JsonSerializer.Serialize(spec, new JsonSerializerOptions { WriteIndented = true }));var result = new AssemblyM1Pipeline().CompileFile(path);foreach (var diagnostic in result.Diagnostics) Console.WriteLine($"{diagnostic.Code}: {diagnostic.Message}");@@ -56,8 +53,7 @@ public static class Programvar mesh = AssemblyDisplayMeshExporter.Export(result);File.WriteAllText(Path.Combine(output, "stage-a.mesh.json"), AssemblyDisplayMeshExporter.Serialize(mesh));Console.WriteLine($"Stage A: {result.Geometry!.DefinitionBodies.Count} definitions, {result.Geometry.InstanceBodies.Count} occurrences.");- var stageBPath = Path.Combine(output, "stage-b.firmament");- File.WriteAllText(stageBPath, new EngineAuthor(spec).StageA(withValves: true));+ var stageBPath = new EngineAuthor(spec).StageA(withValves: true).WriteTo(output, "stage-b");var stageB = new AssemblyM1Pipeline().CompileFile(stageBPath);if (!stageB.IsSuccess) throw new InvalidOperationException(string.Join("\n", stageB.Diagnostics.Select(d => d.Code + ": " + d.Message)));File.WriteAllText(Path.Combine(output, "stage-b.mesh.json"), AssemblyDisplayMeshExporter.Serialize(AssemblyDisplayMeshExporter.Export(stageB)));@@ -66,8 +62,8 @@ public static class Program{design.Validate();var engine = new EngineAuthor(design);- var file = Path.Combine(output, label + ".firmament");- File.WriteAllText(file, engine.Engine(cylinders));+ var project = engine.Engine(cylinders);+ var file = project.WriteTo(output, label);var motion = engine.Motion();var watch = Stopwatch.StartNew();var validation = EngineMotion.Validate(motion);@@ -81,7 +77,7 @@ public static class Programvar springValidation = EngineMotion.ValidateSpringAlignment(motion);File.WriteAllText(Path.Combine(output, label + ".spring-validation.json"), JsonSerializer.Serialize(springValidation));File.WriteAllText(Path.Combine(output, label + ".assembly.json"), JsonSerializer.Serialize(new { instances = built.Ir!.Instances.Count, mates = built.Ir.Mates.Count,- fits = built.Ir.FitResults, residuals = built.Geometry!.Artifact.MateResiduals, authority = built.Ir.Instances.Select(i => new { i.StableId, i.PlacementAuthority }) }, new JsonSerializerOptions { WriteIndented = true }));+ fits = EngineMotion.Fits(built.Ir), localDefinitions = built.Ir.AssemblyDefinitions!.Select(d => new { d.DefinitionIdentity, d.LocalMates, d.LocalPlacements, d.LocalFitResults }), residuals = built.Geometry!.Artifact.MateResiduals, authority = built.Ir.Instances.Select(i => new { i.StableId, i.PlacementAuthority }) }, new JsonSerializerOptions { WriteIndented = true }));File.WriteAllText(Path.Combine(output, label + ".mesh.json"), AssemblyDisplayMeshExporter.Serialize(display));watch.Restart();var export = AssemblyIrAp242Exporter.Export(built);@@ -99,10 +95,14 @@ public static class ProgramConsole.WriteLine($"{label}: {display.Definitions.Count} definitions, {display.Occurrences.Count} occurrences, {display.Definitions.Sum(d => d.Indices.Length / 3)} triangles; {JsonSerializer.Serialize(validation)}");}File.WriteAllText(Path.Combine(output, "performance.json"), JsonSerializer.Serialize(performance, new JsonSerializerOptions { WriteIndented = true }));- var files = Directory.GetFiles(output).Where(f => Path.GetFileName(f) != "hashes.json").OrderBy(Path.GetFileName, StringComparer.Ordinal).ToArray();- var hashes = files.Where(f => Path.GetFileName(f) != "performance.json").ToDictionary(f => Path.GetFileName(f)!, f => Convert.ToHexString(SHA256.HashData(File.ReadAllBytes(f))));+ var files = Directory.GetFiles(output, "*", SearchOption.AllDirectories).Where(f => Path.GetFileName(f) != "hashes.json").OrderBy(Path.GetFileName, StringComparer.Ordinal).ToArray();+ var hashes = files.Where(f => Path.GetFileName(f) != "performance.json").ToDictionary(f => Path.GetRelativePath(output, f).Replace('\\', '/'), f => Convert.ToHexString(SHA256.HashData(File.ReadAllBytes(f))));File.WriteAllText(Path.Combine(output, "hashes.json"), JsonSerializer.Serialize(hashes, new JsonSerializerOptions { WriteIndented = true }));- foreach (var file in files.Append(Path.Combine(output, "hashes.json"))) File.Copy(file, Path.Combine(destination, Path.GetFileName(file)), overwrite: true);+ foreach (var file in files.Append(Path.Combine(output, "hashes.json"))) {+ var target = Path.Combine(destination, Path.GetRelativePath(output, file));+ Directory.CreateDirectory(Path.GetDirectoryName(target)!);+ File.Copy(file, target, overwrite: true);+ }return 0;}catch (Exception error) { Console.Error.WriteLine(error); return 1; }@@ -111,50 +111,10 @@ public static class Programpublic sealed class EngineAuthor(V8Spec spec){- private readonly StringBuilder definitions = new();- private readonly Dictionary<string, string> references = new(StringComparer.Ordinal);- private readonly Dictionary<string, string> partDefinitions = new(StringComparer.Ordinal);public List<EngineBinding> Bindings { get; } = [];public List<EngineCylinder> Cylinders { get; } = [];- private static string N(double value) => value.ToString("G17", CultureInfo.InvariantCulture);-- private string Define(string name, string body, string parameters, string arguments)- {- definitions.AppendLine($"Template < {parameters} > Struct {name} {{ {body} }}");- var reference = name + "<" + arguments + ">";- references.Add(name, reference);- return reference;- }-- private string Ring(string name, double outer, double inner, double height)- => Define(name, """- Circle2 Outside { Center: [0mm,0mm] Radius: Rout }- Circle2 Inside { Center: [0mm,0mm] Radius: Rin }- Profile Section { Loop Outer { Outside |> TraceLoop } Loop Inner { Inside |> TraceLoop } }- Extrude Body { Profile: Section From: Zmin To: Zmax }- """, "Rout: Length, Rin: Length, Zmin: Length, Zmax: Length", $"Rout: {N(outer)}mm, Rin: {N(inner)}mm, Zmin: {N(-height / 2)}mm, Zmax: {N(height / 2)}mm");-- private string Disc(string name, double radius, double height)- => Define(name, """- Circle2 Outside { Center: [0mm,0mm] Radius: R }- Profile Section { Loop Outer { Outside |> TraceLoop } }- Extrude Body { Profile: Section From: Zmin To: Zmax }- """, "R: Length, Zmin: Length, Zmax: Length", $"R: {N(radius)}mm, Zmin: {N(-height / 2)}mm, Zmax: {N(height / 2)}mm");-- private string Plate(string name, double width, double height, double centerY, double depth, params (double Y, double Diameter)[] holes)- {- var cuts = string.Join("\n", holes.Select((hole, i) => $"Hole<Shaft> Pin{i} {{ On: +Z Center: Point2(0mm,HoleY{i}) Diameter: HoleD{i} End: ThroughAll }}"));- var parameters = "W: Length, H: Length, C: Length, Zmin: Length, Zmax: Length" + string.Concat(holes.Select((_,i) => $", HoleY{i}: Length, HoleD{i}: Length"));- var arguments = $"W: {N(width)}mm, H: {N(height)}mm, C: {N(centerY)}mm, Zmin: {N(-depth / 2)}mm, Zmax: {N(depth / 2)}mm" + string.Concat(holes.Select((hole,i) => $", HoleY{i}: {N(hole.Y)}mm, HoleD{i}: {N(hole.Diameter)}mm"));- return Define(name, $$"""- Rect2 Outside { Center: [0mm,C] Size: [W,H] }- Profile Section { Loop Outer { Outside |> TraceLoop } }- Compose Body {- Base Stock { Profile: Section From: Zmin To: Zmax Role: Stock }- {{cuts}}- }- """, parameters, arguments);- }+ private IReadOnlyDictionary<string, string> occurrencePaths = new Dictionary<string, string>();+ private EngineProject Project(string stage) { var project = EngineProject.Create(spec, Bindings, Cylinders, stage); occurrencePaths = project.OccurrencePaths; return project; }private void Part(string name, string definition, double x, double y, double z, double angle = 0, bool axialY = false,string motion = "Fixed", int cylinder = 0, string category = "Metal")@@ -163,30 +123,22 @@ public sealed class EngineAuthor(V8Spec spec)double[] transform = axialY? [c,-s,0,0, 0,0,-1,0, s,c,0,0, x,y,z,1]: [c,-s,0,0, s,c,0,0, 0,0,1,0, x,y,z,1];- Bindings.Add(new(name, motion, cylinder, category, transform));- partDefinitions.Add(name, definition);+ Bindings.Add(new(name, motion, cylinder, category, transform, DefinitionExport: definition));}- public string StageA(bool withValves = false)+ public EngineProject StageA(bool withValves = false){+ Bindings.Clear(); Cylinders.Clear();var pose = new SliderCrank(spec.CrankRadius, spec.RodLength).Evaluate(0);var r = spec.CrankRadius;- var rod = Define("ConnectingRod", """- Polygon2<Trapezoid> Outside { Center: [0mm,C] BottomWidth: 52mm TopWidth: 28mm Height: H }- Profile Section { Loop Outer { Outside |> TraceLoop } }- Compose Body {- Base Stock { Profile: Section From: -6mm To: 6mm Role: Stock }- Hole<Shaft> BigEnd { On: +Z Center: Point2(0mm,0mm) Diameter: 44.4mm End: ThroughAll }- Hole<Shaft> SmallEnd { On: +Z Center: Point2(0mm,L) Diameter: 16.4mm End: ThroughAll }- }- """, "L: Length, H: Length, C: Length", $"L: {N(spec.RodLength)}mm, H: {N(spec.RodLength + 48)}mm, C: {N(spec.RodLength / 2)}mm");- var crown = Disc("PistonCrown", spec.Bore / 2 - .3, 15);- var lug = Plate("PistonLug", 24, 37, 6.5, 6, (0, 16.4));- var pin = Disc("WristPin", 8, 44);- var sleeve = Ring("CylinderSleeve", spec.Bore / 2 + 6, spec.Bore / 2, spec.Stroke + 29);- var journal = Disc("Crankpin", 22, 26);- var web = Plate("CrankWeb", 60, r + 60, r / 2, 12);- var main = Disc("MainJournal", 25, 20);+ const string rod = "ConnectingRod";+ const string crown = "PistonCrown";+ const string lug = "PistonLug";+ const string pin = "WristPin";+ const string sleeve = "CylinderSleeve";+ const string journal = "Crankpin";+ const string web = "CrankWeb";+ const string main = "MainJournal";Part("Rod1", rod, pose.CrankPin.X, pose.CrankPin.Y, 0, pose.RodAngleRadians);Part("Piston1", crown, 0, pose.PistonPositionMm + 32.5, 0, axialY: true);Part("PistonLug1A", lug, 0, pose.PistonPositionMm, -16);@@ -200,20 +152,13 @@ public sealed class EngineAuthor(V8Spec spec)Part("MainJournal2", main, 0, 0, 35);if (withValves){- var head = Plate("CylinderHead", spec.Bore + 12, 70, 0, 10, (-20, 8.4), (20, 8.4));+ const string head = "CylinderHead";Part("Head1", head, 0, spec.DeckHeight + 13, 0, axialY: true);- var intake = Disc("IntakeValve", 16, 4);- var exhaust = Disc("ExhaustValve", 14, 4);- var stem = Disc("ValveStem", 4, 60);- var retainer = Ring("SpringRetainer", 12, 4.2, 3);- var spring = Define("ValveSpring", """- WireForm Spring {- Diameter: 2mm- Material: Standard.Materials.StainlessSteel.304_Annealed- StartFrame { Origin: [0mm,0mm,0mm]; Tangent: [1,0,0]; Up: [0,0,1] }- AxisCoil Winding { Radius: 9mm; Turns: 6; Pitch: P; Handedness: RightHanded; StartPhase: 0deg }- }- """, "P: Length", "P: 6mm");+ const string intake = "IntakeValve";+ const string exhaust = "ExhaustValve";+ const string stem = "ValveStem";+ const string retainer = "SpringRetainer";+ const string spring = "ValveSpring";foreach (var (name, offset, valve) in new[] { ("Intake", -20d, intake), ("Exhaust", 20d, exhaust) }){Part(name + "Valve1", valve, 0, spec.DeckHeight + 6, offset, axialY: true);@@ -222,24 +167,13 @@ public sealed class EngineAuthor(V8Spec spec)Part(name + "Spring1", spring, 0, spec.DeckHeight + 20, offset, axialY: true);}}- return MatedAssembly("SliderCrankStageA");+ return Project(withValves ? "stage-b" : "stage-a");}- public string Engine(int cylinderCount)+ public EngineProject Engine(int cylinderCount){if (cylinderCount is not (4 or 8)) throw new ArgumentOutOfRangeException(nameof(cylinderCount));- // Share exactly the same admitted part catalog as the independently built single-cylinder stage.- StageA(withValves: true);- Bindings.Clear(); partDefinitions.Clear();- var skirt = Ring("PistonSkirt", spec.Bore / 2 - .3, spec.Bore / 2 - 4.3, 25);- var compressedSpring = Define("CompressedValveSpring", $$"""- WireForm Spring {- Diameter: 2mm- Material: Standard.Materials.StainlessSteel.304_Annealed- StartFrame { Origin: [0mm,0mm,0mm]; Tangent: [1,0,0]; Up: [0,0,1] }- AxisCoil Winding { Radius: 9mm; Turns: 6; Pitch: P; Handedness: RightHanded; StartPhase: 0deg }- }- """, "P: Length", $"P: {N((36 - spec.ValveLift) / 6)}mm");+ Bindings.Clear(); Cylinders.Clear();var phases = new[] { 45d, 135d, 315d, 225d };var firing = new[] { 1, 5, 7, 3, 6, 8, 4, 2 };for (var station = 0; station < 4; station++)@@ -253,8 +187,8 @@ public sealed class EngineAuthor(V8Spec spec)Cylinders.Add(new(number, b, p, z, ignition));var pose = new SliderCrank(spec.CrankRadius, spec.RodLength).Evaluate(0, b, p);void OnAxis(string name, string definition, double distance, double offsetZ = 0, bool axial = true, string motion = "Fixed", string category = "Metal")- => Part(name + number, references[definition], double.Sin(b) * distance, double.Cos(b) * distance, z + offsetZ, b, axial, motion, number, category);- Part("Rod" + number, references["ConnectingRod"], pose.CrankPin.X, pose.CrankPin.Y, z, pose.RodAngleRadians, motion: "Rod", cylinder: number, category: "Rod");+ => Part(name + number, definition, double.Sin(b) * distance, double.Cos(b) * distance, z + offsetZ, b, axial, motion, number, category);+ Part("Rod" + number, "ConnectingRod", pose.CrankPin.X, pose.CrankPin.Y, z, pose.RodAngleRadians, motion: "Rod", cylinder: number, category: "Rod");OnAxis("Piston", "PistonCrown", pose.PistonPositionMm + 32.5, motion: "Piston", category: "Piston");OnAxis("PistonSkirt", "PistonSkirt", pose.PistonPositionMm + 12.5, motion: "Piston", category: "Piston");OnAxis("PistonLugA", "PistonLug", pose.PistonPositionMm, -16, false, "Piston");@@ -271,16 +205,16 @@ public sealed class EngineAuthor(V8Spec spec)OnAxis(name + "Spring", lift > 0 ? "CompressedValveSpring" : "ValveSpring", spec.DeckHeight + 20, offset, motion: name + "Spring", category: "Spring");}}- var crankpin = Disc("PairedCrankpin", 22, 32);- var main = Disc("LongMainJournal", 25, spec.CylinderSpacing - 56);+ const string crankpin = "PairedCrankpin";+ const string main = "LongMainJournal";for (var station = 0; station < 4; station++){var p = phases[station] * double.Pi / 180;Part("Crankpin" + (station + 1), crankpin, double.Sin(p) * spec.CrankRadius, double.Cos(p) * spec.CrankRadius, station * spec.CylinderSpacing, motion: "Crank", category: "Crank");foreach (var side in new[] { -1, 1 })- Part("CrankWeb" + (station + 1) + (side < 0 ? "A" : "B"), references["CrankWeb"], 0, 0, station * spec.CylinderSpacing + side * 22, p, motion: "Crank", category: "Crank");+ Part("CrankWeb" + (station + 1) + (side < 0 ? "A" : "B"), "CrankWeb", 0, 0, station * spec.CylinderSpacing + side * 22, p, motion: "Crank", category: "Crank");}- var support = Plate("MainSupport", 72, 36 - spec.CrankcaseFloor, (36 + spec.CrankcaseFloor) / 2, 16, (0, 50.8));+ const string support = "MainSupport";for (var station = 0; station < 5; station++){var z = (station - .5) * spec.CylinderSpacing;@@ -288,13 +222,13 @@ public sealed class EngineAuthor(V8Spec spec)Part("MainSupport" + (station + 1), support, 0, 0, z, category: "Block");}var length = 4 * spec.CylinderSpacing + 16;- var rail = Plate("CrankcaseRail", 20, 16, 0, length);+ const string rail = "CrankcaseRail";Part("CrankcaseRailA", rail, -26, spec.CrankcaseFloor - 8, spec.CylinderSpacing * 1.5, category: "Block");Part("CrankcaseRailB", rail, 26, spec.CrankcaseFloor - 8, spec.CylinderSpacing * 1.5, category: "Block");- var flywheel = Disc("Flywheel", 75, 16);+ const string flywheel = "Flywheel";Part("Flywheel", flywheel, 0, 0, -spec.CylinderSpacing + 20, motion: "Crank", category: "Crank");- var cam = Disc("Camshaft", 8, length);- var lobe = Ring("TimingLobe", 12, 8.2, 8);+ const string cam = "Camshaft";+ const string lobe = "TimingLobe";foreach (var bank in cylinderCount == 8 ? new[] { 1, -1 } : new[] { 1 }){var b = bank * spec.BankAngle / 2 * double.Pi / 180;@@ -304,98 +238,12 @@ public sealed class EngineAuthor(V8Spec spec)foreach (var offset in new[] { -20, 20 })Part("TimingLobe" + cylinder.Number + (offset < 0 ? "In" : "Ex"), lobe, double.Sin(b) * height, double.Cos(b) * height, cylinder.Z + offset, motion: "Cam", category: "Cam");}- return MatedAssembly("EditableV8");+ return Project(cylinderCount == 8 ? "baseline" : "stage-c");}public EngineMotionManifest Motion() => new("aetheris/engine-motion/1", spec, 720, .5, [1,5,7,3,6,8,4,2], Cylinders,- Bindings.Select(b => b with { CylinderMembership = b.Cylinder > 0 ? [b.Cylinder]+ Bindings.Select(b => b with { SourcePath = occurrencePaths[b.Name], DefinitionExport = b.Cylinder > 0 && b.Name.Contains("Spring", StringComparison.Ordinal) ? "ValveSpring" : b.DefinitionExport, CylinderMembership = b.Cylinder > 0 ? [b.Cylinder]: b.Kind == "Crank" ? Cylinders.Where(c => double.Abs(c.Z - b.Rest[14]) < spec.CylinderSpacing * .6).Select(c => c.Number).ToArray(): b.Kind == "Cam" ? Cylinders.Where(c => double.Sign(c.BankRadians) == double.Sign(b.Rest[12])).Select(c => c.Number).ToArray() : [] }).ToArray());- private string MatedAssembly(string root)- {- const string anchor = "MainJournal1";- var byName = Bindings.ToDictionary(b => b.Name, StringComparer.Ordinal);- static bool IsSpring(EngineBinding b) => b.Name.StartsWith("IntakeSpring", StringComparison.Ordinal) || b.Name.StartsWith("ExhaustSpring", StringComparison.Ordinal);- string Parent(EngineBinding b)- {- if (IsSpring(b)) return b.Name.Replace("Spring", "Stem", StringComparison.Ordinal);- var n = b.Cylinder;- if (n > 0)- {- if (b.Name.StartsWith("Rod", StringComparison.Ordinal)) return "Crankpin" + ((n + 1) / 2);- if (b.Name.StartsWith("WristPin", StringComparison.Ordinal)) return "Rod" + n;- if (b.Name.StartsWith("Piston", StringComparison.Ordinal)) return "WristPin" + n;- if (b.Name.StartsWith("Cylinder", StringComparison.Ordinal)) return "MainSupport" + ((n + 1) / 2);- if (b.Name.StartsWith("Head", StringComparison.Ordinal)) return "Cylinder" + n;- if (b.Name.Contains("Valve", StringComparison.Ordinal) || b.Name.Contains("Retainer", StringComparison.Ordinal))- return (b.Name.StartsWith("Intake", StringComparison.Ordinal) ? "IntakeStem" : "ExhaustStem") + n;- return "Head" + n;- }- if (b.Name.StartsWith("Crankpin", StringComparison.Ordinal)) return "CrankWeb" + b.Name[8..] + "A";- return anchor;- }- var parent = Bindings.Where(b => b.Name != anchor).ToDictionary(b => b.Name, b => Parent(b), StringComparer.Ordinal);- // The stage-A witness has no block support. Its parts register to the shaft datum.- foreach (var key in parent.Keys.ToArray()) if (!byName.ContainsKey(parent[key])) parent[key] = anchor;- var identity = Aetheris.Kernel.Core.Math.Transform3D.Identity.ToRowMajor();- string Frame(double[] m) => $"DatumFrame Frame = [{N(m[12])},{N(m[13])},{N(m[14])}] x [{N(m[0])},{N(m[1])},{N(m[2])}] y [{N(m[4])},{N(m[5])},{N(m[6])}] z [{N(m[8])},{N(m[9])},{N(m[10])}];";- var text = new StringBuilder(definitions.ToString());- text.AppendLine("""- // Interfaces qualify the indexed rest assembly. The exported analytical mechanism- // drives its revolute/slider coordinates; these are not general dynamic mates.- Interface SpringOnStem {- Role Spring requires AxisCapable, DatumFrameCapable, DimensionalCapable;- Role Stem requires AxisCapable, DatumFrameCapable, DimensionalCapable;- Lower AxisCoincident Spring.Axis Stem.Axis;- Lower FrameCoincident Spring.Frame Stem.Frame SameDirection;- Fit Stem.Diameter inside Spring.ClearDiameter;- }- Interface<Fixed> RegisteredSeat { }- Interface JournalBoreSeat {- Role Moving requires DatumFrameCapable, DimensionalCapable;- Role Fixed requires DatumFrameCapable, DimensionalCapable;- Lower FrameCoincident Moving Fixed SameDirection;- Fit Fixed.Diameter inside Moving.Diameter;- }- Interface WristPinSeat {- Role Moving requires DatumFrameCapable, DimensionalCapable;- Role Fixed requires DatumFrameCapable, DimensionalCapable;- Lower FrameCoincident Moving Fixed SameDirection;- Fit Moving.Diameter inside Fixed.Diameter;- }- """);- text.AppendLine($"Assembly {root} {{\n<Assembly {root}>");- foreach (var b in Bindings)- {- text.AppendLine($"<Part {b.Name} = {partDefinitions[b.Name]}>");- var diameter = b.Kind == "Rod" ? " Dimension Diameter = 44.4mm;" : b.Name.StartsWith("WristPin", StringComparison.Ordinal) ? " Dimension Diameter = 16mm;" : "";- if (!IsSpring(b)) text.AppendLine($"Semantic Mount {{ {Frame(identity)}{diameter} }}");- var inverse = Aetheris.Kernel.Core.Math.Transform3D.FromRowMajor(b.Rest).Inverse();- foreach (var child in Bindings.Where(child => parent.GetValueOrDefault(child.Name) == b.Name))- {- var local = Aetheris.Kernel.Core.Math.Transform3D.FromRowMajor(child.Rest) * inverse;- var seatDiameter = child.Kind == "Rod" ? " Dimension Diameter = 44mm;" : child.Name.StartsWith("WristPin", StringComparison.Ordinal) && child.Cylinder > 0 ? " Dimension Diameter = 16.4mm;" : "";- var m = local.ToRowMajor();- var axis = IsSpring(child) ? $" Axis Axis = [{N(m[12])},{N(m[13])},{N(m[14])}] -> [{N(m[8])},{N(m[9])},{N(m[10])}]; Dimension Diameter = 8mm;" : "";- text.AppendLine($"Semantic Seat{child.Name} {{ {Frame(m)}{seatDiameter}{axis} }}");- }- text.AppendLine("</Part>");- }- text.AppendLine($"</Assembly>\nAnchor: {root}.{anchor}.Mount;");- foreach (var b in Bindings.Where(b => b.Name != anchor))- {- if (IsSpring(b))- {- text.AppendLine($"Mate Install{b.Name}: SpringOnStem {{ Spring: {root}.{b.Name}.Winding; Stem: {root}.{parent[b.Name]}.Seat{b.Name}; }}");- continue;- }- var contract = b.Kind == "Rod" ? "JournalBoreSeat" : b.Name.StartsWith("WristPin", StringComparison.Ordinal) && b.Cylinder > 0 ? "WristPinSeat" : "RegisteredSeat";- text.AppendLine(contract == "RegisteredSeat"- ? $"Mate Install{b.Name}: {contract} {{ A: {root}.{b.Name}.Mount; B: {root}.{parent[b.Name]}.Seat{b.Name}; }}"- : $"Mate Install{b.Name}: {contract} {{ Moving: {root}.{b.Name}.Mount; Fixed: {root}.{parent[b.Name]}.Seat{b.Name}; }}");- }- text.AppendLine("}");- return text.ToString();- }}diff --git a/demos/Aetheris.EditableV8/README.md b/demos/Aetheris.EditableV8/README.mdindex e872c6dc..dc53985a 100644--- a/demos/Aetheris.EditableV8/README.md+++ b/demos/Aetheris.EditableV8/README.md@@ -1,6 +1,6 @@# The editable V8-An Aetheris-authored, interface-mated four-stroke mechanism. The browser displays exported definition meshes and animates their stable occurrences using the exported mechanical specification.+An Aetheris-authored, modular four-stroke mechanism. The browser displays exported definition meshes and animates their stable occurrences using the exported mechanical specification.From a checkout with .NET 10, Node/npm, Python 3 and PowerShell:@@ -10,6 +10,8 @@ From a checkout with .NET 10, Node/npm, Python 3 and PowerShell:Open `http://127.0.0.1:8765/`. The command builds the staged assemblies, exports AP242 and meshes, validates the mechanism, installs the existing lockfile-pinned viewer dependency if needed, checks the actual JavaScript evaluator against C#, and serves the result in the foreground. Ctrl+C stops the server. Add `-NoServe` for generation and validation only.+Start at [the authored engine Assembly](../../fixtures/Canonical/EditableV8/engine.firmasm). Parts and Subassemblies use Inventory Records; [the Scene](../../fixtures/Canonical/EditableV8/scene.firmament) provides a static rest-pose consumer.+The current authoring, export, variant and inspection contract is documented in [Editable mechanisms](../../docs/public/firmament/editable-mechanisms.md). See that guide before creating a variant. Outputs default to ignored `artifacts/local/demos/editable-v8/`; no generated meshes belong in source control.Use the baseline/revised buttons, orbit/zoom, camera presets, cylinder selector, bank/cylinder isolation, glass/cutaway/solid views, and crank-angle scrubber. The revised engine adds 6 mm of stroke. Cycle color is illustrative; there is no pressure, torque, combustion, contact-dynamics or FEA model.diff --git a/demos/Aetheris.EditableV8/Run.ps1 b/demos/Aetheris.EditableV8/Run.ps1index 7d4362dc..9785b227 100644--- a/demos/Aetheris.EditableV8/Run.ps1+++ b/demos/Aetheris.EditableV8/Run.ps1@@ -4,7 +4,13 @@ $ErrorActionPreference = 'Stop'$repo = [IO.Path]::GetFullPath((Join-Path $PSScriptRoot '../..'))if (!$Output) { $Output = Join-Path $repo 'artifacts/local/demos/editable-v8' }$Output = [IO.Path]::GetFullPath($Output)-$arguments = @('run', '--project', "$PSScriptRoot/Aetheris.EditableV8.csproj", '-c', 'Release', '--', $Output)+$previousNodeReuse = $env:MSBUILDDISABLENODEREUSE+try {+ $env:MSBUILDDISABLENODEREUSE = '1'+ & dotnet build "$PSScriptRoot/Aetheris.EditableV8.csproj" -c Release -m:1 -nr:false -p:UseSharedCompilation=false+ if ($LASTEXITCODE) { throw 'Engine build failed.' }+} finally { $env:MSBUILDDISABLENODEREUSE = $previousNodeReuse }+$arguments = @("$PSScriptRoot/bin/Release/net10.0/Aetheris.EditableV8.dll", $Output)if ($Spec) { $arguments += [IO.Path]::GetFullPath($Spec) }& dotnet @argumentsif ($LASTEXITCODE) { throw 'Engine generation failed.' }diff --git a/demos/Aetheris.EditableV8/web/index.html b/demos/Aetheris.EditableV8/web/index.htmlindex a1cf2108..2967979d 100644--- a/demos/Aetheris.EditableV8/web/index.html+++ b/demos/Aetheris.EditableV8/web/index.html@@ -6,7 +6,7 @@<main id="scene" aria-label="Interactive Aetheris V8 assembly"></main><header><span class="brand">AETHERIS <i> / </i> ENGINEERING IN MOTION</span><span class="edition">ENGINE—X0 <i>·</i> 01 / MECHANISMS</span></header><section class="intro"><div class="eyebrow">ONE DEFINITION. EVERY REVOLUTION.</div><h1>The editable<br><em>V8.</em></h1><p>A four-stroke mechanism, authored in CAD.<br>Geometry and motion share the same dimensions.</p><div class="rule"></div><span class="eyebrow">90° CROSS-PLANE · 8 CYLINDERS</span></section>-<aside class="left"><section class="panel"><div class="eyebrow">ENGINEERING DEFINITION</div><h2 id="variant-title">V8—A <span>BASELINE</span></h2><dl id="dimensions"></dl><div class="switch"><button id="baseline" class="active">V8—A</button><button id="revised">V8—B <small>+6 mm stroke</small></button></div><p class="note">Switch the specification. See the crank, travel and case regenerate together.</p></section><section class="proof panel"><div class="eyebrow">KINEMATIC SWEEP</div><strong id="proof">Loading evidence…</strong><p id="proof-detail"></p><a id="source-link" href="baseline.firmament" target="_blank">Read the generated Firmament source ↗</a></section></aside>+<aside class="left"><section class="panel"><div class="eyebrow">ENGINEERING DEFINITION</div><h2 id="variant-title">V8—A <span>BASELINE</span></h2><dl id="dimensions"></dl><div class="switch"><button id="baseline" class="active">V8—A</button><button id="revised">V8—B <small>+6 mm stroke</small></button></div><p class="note">Switch the specification. See the crank, travel and case regenerate together.</p></section><section class="proof panel"><div class="eyebrow">KINEMATIC SWEEP</div><strong id="proof">Loading evidence…</strong><p id="proof-detail"></p><a id="source-link" href="baseline/engine.firmasm" target="_blank">Read the modular Firmament source ↗</a></section></aside><aside class="right"><section class="panel cycle"><div class="eyebrow">TRACKING <select id="cylinder" aria-label="Selected cylinder"></select></div><h2 id="phase">Power</h2><div class="stroke-label">ILLUSTRATIVE CYCLE STATE</div><div class="phase-strip"><span>POWER</span><span>EXHAUST</span><span>INTAKE</span><span>COMPRESSION</span></div><dl><div><dt>Piston travel from TDC</dt><dd id="piston-value">—</dd></div><div><dt>Intake / exhaust lift</dt><dd id="lift-value">—</dd></div></dl><svg id="chart" viewBox="0 0 240 100" aria-label="Valve lift through the four-stroke cycle"></svg><div class="chart-key"><span>— INTAKE</span><span>— EXHAUST</span><span>0—720°</span></div></section><section class="panel views"><div class="eyebrow">INSPECT THE ASSEMBLY</div><div class="row" id="cameras"><button class="active" data-camera="hero">Hero</button><button data-camera="front">Front</button><button data-camera="side">Side</button></div><div class="row" id="visibility"><button data-mode="glass" class="active">Glass</button><button data-mode="cutaway">Cutaway</button><button data-mode="solid">Solid</button></div><div class="row"><button id="bank">One bank</button><button id="isolate">One cylinder</button></div><p class="note">Drag to orbit · Scroll to zoom<br>Click a cylinder number to track it.</p></section></aside><section class="bottom"><div class="firing"><span class="eyebrow">FIRING ORDER</span><div id="firing-order"></div><span class="note">One power stroke every 90°</span></div><div class="timeline"><button id="play">Ⅱ Pause</button><button id="back" aria-label="Step back 15 degrees">−15°</button><input id="angle" aria-label="Crank angle" type="range" min="0" max="720" step="0.1" value="0"><button id="forward" aria-label="Step forward 15 degrees">+15°</button><strong id="angle-value">0.0°</strong><label>RPM <input id="rpm" aria-label="Engine RPM" type="number" min="60" max="8000" value="700"></label><label>PLAYBACK <select id="speed"><option value="0.025">1 / 40</option><option selected value="0.05">1 / 20</option><option value="0.1">1 / 10</option><option value="1">1×</option></select></label></div></section><footer><span>EXACT CAD → SHARED MESH DEFINITIONS → OCCURRENCE MOTION</span><span>Prescribed kinematics · Idealized valve actuation · No combustion or performance model</span></footer>diff --git a/demos/Aetheris.EditableV8/web/viewer.mjs b/demos/Aetheris.EditableV8/web/viewer.mjsindex c8a1b4c5..f39a9902 100644--- a/demos/Aetheris.EditableV8/web/viewer.mjs+++ b/demos/Aetheris.EditableV8/web/viewer.mjs@@ -51,7 +51,7 @@ async function load(label) {$('dimensions').innerHTML=[['Bore',`${s.bore.toFixed(0)} mm`],['Stroke',`${s.stroke.toFixed(0)} mm`],['Connecting rod',`${s.rodLength.toFixed(0)} mm`],['Crank radius',`${s.crankRadius.toFixed(0)} mm`]].map(([a,b])=>`<div><dt>${a}</dt><dd>${b}</dd></div>`).join('');$('variant-title').innerHTML=label==='baseline'?'V8—A <span>BASELINE</span>':'V8—B <span>REVISED</span>';for(const name of ['baseline','revised']) $(name).classList.toggle('active',name===label);- $('source-link').href=`${label}.firmament`;+ $('source-link').href=`${label}/engine.firmasm`;$('proof').textContent=`${validation.samples.toLocaleString()} samples · PASS`;$('proof-detail').textContent=`Rod closure < ${validation.rodClosureMm.toExponential(1)} mm. ${packet.definitions.length} shared definitions. ${objects.size} part occurrences.`;$('cylinder').innerHTML=manifest.cylinders.map(c=>`<option value="${c.number}" ${c.number===selected?'selected':''}>CYLINDER ${c.number}</option>`).join('');diff --git a/docs/public/firmament/assembly-authoring-foundation.md b/docs/public/firmament/assembly-authoring-foundation.mdindex 53cedb7b..532df041 100644--- a/docs/public/firmament/assembly-authoring-foundation.md+++ b/docs/public/firmament/assembly-authoring-foundation.md@@ -31,7 +31,7 @@ parent origin, and `World` the current assembly root. Relative ports resolve onthe current occurrence, then its parent; qualified paths obey public boundaries.Named transforms are referenced as `Name.Frame`.-Translations require finite literal mm; rotation requires X/Y/Z and finite deg.+Translations require finite mm lengths; checked scalar Static/Record fields can supply translation and dimensionless basis components. Rotation requires X/Y/Z and finite deg. Manufacturing tolerances belong to the owning Part and explicit PMI, rather than Assembly frame values.Optional paired Normal/Up vectors are dimensionless and expressed in the targetframe. Normal supplies Z, projected Up supplies Y, and Y cross Z supplies X.Zero/parallel vectors fail. Rotation applies in that constructed basis,@@ -106,7 +106,32 @@ provenance; geometry definitions remain shared.Limits: 1024 keys per pattern, 4096 expanded keys per source, unique pattern names,no nested assembly patterns or dynamic collections. Group-node identity placement-is compiler-owned. Independent arbitrary Mate-pattern bodies are outside this slice.+is compiler-owned. A mapping can also contain a bounded declaration block: one or more Part/Assembly+occurrences with local Concept Struct, Interface and Mate declarations. Each key+owns a distinct declaration scope and occurrence paths. Other statements reject;+nested Patterns and dynamic collections remain unsupported.++```firmament+Pattern Cylinders over cylinderConfigs {+ config => {+ <Assembly Cylinder = Units.cylinder<config: config>></Assembly>+ Concept Struct Installation {+ Axis Mount { origin: [0mm,0mm,config.z]; direction: [0,0,1]; reference: [config.bankCos,-config.bankSin,0]; }+ }+ Interface<Fixed> Seat { datum: Installation.Mount; members: [Cylinder.Mount]; }+ Mate Install: Seat { member: Cylinder.Mount; at: 0mm; clocking: 0deg; }+ }+}+```++This fragment belongs inside an Assembly occurrence tree and requires the typed+Inventory/configuration declarations. `Cylinder.Mount` is the complete unit's+public Axis/Frame endpoint. Axis seating may name a visible nested occurrence,+including a complete encapsulated Subassembly; private descendants stay private.+Concept axes accept checked finite scalar expressions. A station requires Length,+clocking requires Angle, and direction/reference components are dimensionless.+Only one placement may drive an occurrence. A dimensional-only fit Interface+checks physical endpoints without adding a placement driver.## Fixed seating@@ -197,3 +222,23 @@ The guitar remains suitable as a presentation witness against the supplied Zooexample. This qualification establishes Aetheris behavior and preserves itsvisual geometry; it does not measure Zoo's build times or certify an independenthead-to-head performance ratio.+++## Typed rest-frame data and Assembly-owned ports++The [editable V8](editable-mechanisms.md) uses named `RestFrame` Records rather+than serializing anonymous matrices into occurrence declarations. Assembly frame+consumers use the existing lexical data binder and typed scalar dependency graph.+Unknown fields and dimensionally invalid Record values reject before placement.++An Assembly occurrence may declare its own `Semantic` datums. These belong to that+occurrence, including during a Subassembly's local solve; descendant Part ports+are not copied onto its root. `Expose` continues to publish selected internal+endpoints. Semantic DatumFrame and Axis origins accept finite millimetre lengths;+bare numeric origins retain their legacy millimetre interpretation. Bases remain+dimensionless.++Concrete WireForm Parts publish their compiler-derived winding Axis, Frame and+ClearDiameter before the local solve. The source AIR and post-build report share+one datum factory; adding a Subassembly boundary does not require hand-copying a+coil axis or materializing the wire before semantic binding.diff --git a/docs/public/firmament/editable-mechanisms.md b/docs/public/firmament/editable-mechanisms.mdindex 9afcbe2a..5f166af6 100644--- a/docs/public/firmament/editable-mechanisms.md+++ b/docs/public/firmament/editable-mechanisms.md@@ -1,6 +1,38 @@# Editable mechanisms and assembly display meshes-The editable V8 demo is a bounded consumer of ordinary Firmament templates, semantic datum frames, interfaces, the executable assembly pipeline, and an analytical slider-crank API. Geometry and mechanism dimensions originate in C# authoring and generated Firmament. The browser consumes the resulting artifacts.+The editable V8 is an authored Firmament project: reusable Parts, one typed+Cylinder Subassembly, a keyed assembly Pattern, and a static Scene. C# supplies+engineering dimensions and a small scalar rest configuration for each cylinder+from the existing analytical mechanism. The browser consumes compiler artifacts+and the bounded slider-crank evaluator.++## Read and edit the project++Start at [engine.firmasm](../../../fixtures/Canonical/EditableV8/engine.firmasm).+One Inventory entry imports [CylinderUnit](../../../fixtures/Canonical/EditableV8/assemblies/cylinder.firmament).+The engine's `Pattern Cylinders over cylinderConfigs` creates eight keyed units+and their installation/rod-journal relationships. The four-cylinder witness uses+the same definition with a smaller configuration Set.++- `parts/` owns engineering geometry and publishes mounting/bore/dimensional ports.+ The parameterized spring shares identical pitches and distinguishes the actually+ compressed geometry.+- `assemblies/cylinder.firmament` owns local Concept axes, Fixed stack interfaces,+ seating Mates and local pin/spring fits. The parent installs the complete unit+ through `Mount` and checks its published `RodBore` against the crankshaft's real+ published pin. There are no copied virtual journal-diameter datums.+- `design.firmament` owns checked dimension Records. `cylinder-config.firmament`+ defines the rest-state input contract. `rest-configurations.firmament` contains+ keyed immutable `with` derivations: bank orientation, station, rod/piston state,+ valve lift, spring pitch and actual journal endpoint.+- Crankshaft, crankcase and cam banks use scalar layout expressions. The project+ contains no per-Part matrix or pose tables.++Edit a Part, Concept layout or unit directly and inspect the consuming root with+Aetheris.CLI. The paired demo workflow refreshes dimension/rest input data from+`V8Spec`; it does not synthesize the product tree or geometry. Moving membership+changes still require matching motion bindings and reject if a Part is missing or+unbound. Motion laws and animation syntax are a separate design pass.## Build and revise@@ -23,23 +55,35 @@ Pass its path with `-Spec`. Property names are case sensitive. Omitted values usThe admitted scalar envelope is bore 80–100 mm, stroke 70–100 mm, rod length 135–170 mm, exactly 90° bank angle, spacing at least bore + 16 mm, and lift 1–10 mm. Passing these scalar bounds does not guarantee geometric clearance: the subsequent sweep can reject combinations with `engine-sweep-failed`. Nonfinite or out-of-range dimensions fail with `engine-spec-outside-admitted-envelope`.-The runner exports a single-cylinder stage A, a valve-equipped stage B, a four-cylinder bank stage C, and baseline/revised V8s. `<variant>.firmament` is an independently compilable dimensioned source artifact. Shared definitions include piston crowns/skirts, rods, sleeves, crank webs, journals, heads, valves and WireForm springs. `<variant>.assembly.json` records actual interface fits, placement authority and world-space residuals. `<variant>.motion.json` records the input and derived dimensions, cylinder bank/phase membership, stable occurrence bindings and solved rest matrices. `<variant>.validation.json` reports the 1° sweep. `<variant>.samples.json` and `browser-parity.json` qualify the same evaluator used by the viewer.+The runner exports a single-cylinder stage A, a valve-equipped stage B, a four-cylinder bank stage C, and baseline/revised V8s. `<variant>/engine.firmasm` (or `bank.firmasm`, `stage-a.firmasm`, `stage-b.firmasm`) is an independently compilable project root with its complete module dependencies beside it. Shared definitions include piston crowns/skirts, rods, sleeves, crank webs, journals, heads, valves and WireForm springs. `<variant>.assembly.json` records actual interface fits, placement authority and world-space residuals. `<variant>.motion.json` records the input and derived dimensions, cylinder bank/phase membership, stable occurrence bindings and solved rest matrices. `<variant>.validation.json` reports the 1° sweep. `<variant>.samples.json` and `browser-parity.json` qualify the same evaluator used by the viewer.## Interfaces and geometry-Each physical occurrence exposes a datum frame. `RegisteredSeat` registers frames; `JournalBoreSeat` also checks a 44 mm journal inside a 44.4 mm rod bore; `WristPinSeat` checks a 16 mm pin inside a 16.4 mm bore. The crank main journal anchors the assembly. Rods register to crankpins, pins to rods, pistons to pins, sleeves to supports, and valve parts to their head/stem seats. Firmament solves the indexed rest assembly and validates the resulting materialized frames. The motion manifest uses these solved transforms, rather than exporting an unrelated placement list.+Concrete Parts publish their own mounting and bore ports. Local Concept axes and+`Interface<Fixed>` seating place each unit's Parts. The engine places each complete+unit once through its public mount. Dimensional-only `JournalFit`, `PinBoreFit`+and `SpringStemFit` check actual component endpoints without adding another+placement driver: 44 mm journals inside 44.4 mm rod bores, 16 mm pins inside+16.4 mm bores, and 8 mm stems inside the WireForm-derived coil clear diameter.+The engine origin retains the former first-main-journal anchor.-`SpringOnStem` constrains the actual `AxisCoil` winding axis to the valve-stem axis, registers its seating frame, and checks the stem diameter against the coil's clear diameter. Firmament exposes `Winding.Axis`, `Winding.Frame` and `Winding.ClearDiameter` directly from the WireForm compiler; a wire's starting tangent is not its coil axis. `<variant>.spring-validation.json` sweeps all 16 springs for coaxiality and fixed-seat drift at 1° intervals. Spring display deformation follows this solved axis, even when it is tilted relative to the source-local Z axis.+The spring's seating member is its real `Winding` endpoint. Firmament publishes+`Winding.Axis`, `Winding.Frame` and `Winding.ClearDiameter` directly from WireForm+AIR. Its starting tangent is not its coil axis. `<variant>.spring-validation.json`+sweeps all 16 springs for coaxiality and fixed-seat drift at 1 degree intervals.+Display deformation follows that compiler-derived axis, including a tilted axis.-These interfaces qualify a rest configuration. They do not implement general dynamic mates or a constraint-based mechanism solver. The demo's typed author computes seat frames from mechanical dimensions, and the prescribed mechanism drives the subsequent motion.+These relationships qualify a rest configuration. They do not implement general+dynamic mates. The motion manifest binds the resulting compiler occurrence IDs+and solved transforms, and the existing prescribed mechanism drives motion.`AssemblyDisplayMeshExporter.Export(AssemblyM1CompilationResult, DisplayTessellationOptions?)` emits `aetheris/assembly-display-mesh/1`: millimetre local meshes with positions, outward normals and triangle indices, shared definition IDs, and individually identified occurrences with world transforms and parent IDs. Matrices use the existing row-vector convention, with translation at indices 12–14. Three.js can consume the array directly because its column-major representation expresses the equivalent column-vector transform. Failed definitions, missing faces, invalid indices and unresolved transforms fail instead of being omitted.The CLI exposes the same exporter:```powershell-dotnet run --project Aetheris.CLI -c Release -- mesh artifacts/local/demos/editable-v8/baseline.firmament --format assembly-json --output artifacts/local/demos/editable-v8/cli.mesh.json --json-dotnet run --project Aetheris.CLI -c Release -- asm inspect artifacts/local/demos/editable-v8/baseline.firmament --json+dotnet run --project Aetheris.CLI -c Release -- mesh artifacts/local/demos/editable-v8/baseline/engine.firmasm --format assembly-json --output artifacts/local/demos/editable-v8/cli.mesh.json --json+dotnet run --project Aetheris.CLI -c Release -- asm inspect artifacts/local/demos/editable-v8/baseline/engine.firmasm --json```Use a packaged `aetheris` executable with the same arguments outside a checkout. `mesh --format assembly-json` accepts executable `.firmament` and `.firmasm` assemblies; it preserves definition sharing and assembly occurrence identity. STEP export remains on the existing `asm export-ap242` path; inspect its `--help` for options.@@ -57,3 +101,24 @@ The V8 uses cross-plane crankpin phases 45°, 135°, 315°, 225°, banks at ±45Every baseline and revised cylinder is swept through 0–720° inclusive at 1° increments. Checks cover rod closure, piston-axis alignment, crank radius, ignition at TDC, parallel piston/head/valve clearance planes, a conservative rod envelope clipped against its sleeve, rod/case floor, swept crank-web envelope/floor, and axial rod/rod/web/support slabs. The report explicitly names this scope. It does not certify all-part interference, physical cam contact, spring stress, gas flow, combustion, torque, pressure or FEA. RPM controls visual playback only.Browser geometry for engine parts is exclusively exported Aetheris geometry. The floor, lighting and UI are presentation elements. No browser hand placement or independent engine primitive reconstruction is required when changing the specification.+++## Source and identity during the module migration++The refactor intentionally introduces hierarchical occurrence paths such as+`EditableV8.Cylinders.C1.Cylinder.Piston` and `EditableV8.Crankshaft.Crankpin1`. Motion binds+these full paths, not the final path segment, so an Assembly and one of its Parts+can share a descriptive name without ambiguity. Baseline and revised projects+keep the same hierarchy and occurrence IDs. Old flat IDs are not retained as a+second identity scheme.++The Scene is a static rest-pose projection. Its placement does not add mechanical+joints or carry the demo's runtime motion evaluator. For static interchange:++```powershell+dotnet Aetheris.CLI/bin/Release/net10.0/aetheris.dll validate fixtures/Canonical/EditableV8/engine.firmasm --json++dotnet Aetheris.CLI/bin/Release/net10.0/aetheris.dll asm export-ap242 fixtures/Canonical/EditableV8/engine.firmasm --out artifacts/local/demos/editable-v8/engine.step --json++dotnet Aetheris.CLI/bin/Release/net10.0/aetheris.dll scene export-glb fixtures/Canonical/EditableV8/scene.firmament artifacts/local/demos/editable-v8/engine.glb --json+```diff --git a/docs/public/firmament/inventory.md b/docs/public/firmament/inventory.mdindex a3649ed1..74c88e7d 100644--- a/docs/public/firmament/inventory.md+++ b/docs/public/firmament/inventory.md@@ -6,7 +6,7 @@ Assembly or Scene easier to organize. Neither form has a one- or two-part limit.Firmament's importable module kinds are Part, Subassembly, Assembly and Scene.Inventory references inside occurrence Patterns bind before expansion.-An Inventory member is a reference to a concrete definition. Adding it to a catalog+An Inventory member is a reference to an exported definition or admitted typed family. Adding it to a catalogdoes not place geometry or establish a Mate; occurrences and relationships do that.## A typed catalog@@ -92,10 +92,22 @@ excluded from the selected Part's engineering compilation. Supporting Records,Statics, Features, Templates and Concept scaffolding remain in their owning module.Identical export or Record names in different imported modules do not collide.-The first pass imports concrete modules. Specialize a Template in its defining-module and export that concrete result, rather than passing caller values across-the Inventory boundary. This preserves definition-scope binding and prevents a-caller value from being captured by an unrelated private Static of the same name.+Part and Subassembly entries can reference typed Template exports. Supply named+arguments at the occurrence, for example `<Assembly Cylinder = Units.cylinder<config: config>>`.+The common Template/Record binder checks the values against the definition's+signature. The definition keeps its own private Records, Statics, Inventory and+supporting declarations. Caller data does not replace that environment. A missing+specialization or an unknown argument rejects. Imported Part Templates currently+admit scalar/enum parameters; bind Record/type arguments in their defining module+or a typed Subassembly. The compiler rejects that unsupported boundary explicitly+rather than capturing a same-named private Record. Assembly and Scene Template imports+remain outside this bounded extension; export concrete products of those kinds.+Caller-defined type arguments also require specialization in the defining module.++`with` derives immutable Record values. It does not edit a module or mutate an+occurrence. A keyed `Set<CylinderConfig>` can contain `standardCylinder with { ... }`+entries and feed one Assembly Pattern. See [the V8 source](../../../fixtures/Canonical/EditableV8/engine.firmasm)+and its [single Cylinder definition](../../../fixtures/Canonical/EditableV8/assemblies/cylinder.firmament).`include "parts/bolt";` remains admitted, including the established explicit`.firmament` spelling. Includes share declarations in the consuming module. Thediff --git a/docs/public/firmament/sheet-metal.md b/docs/public/firmament/sheet-metal.mdindex a1d3c9a9..5d01d504 100644--- a/docs/public/firmament/sheet-metal.md+++ b/docs/public/firmament/sheet-metal.md@@ -41,3 +41,14 @@ Flat inspection distinguishes `MaterialArea` from `BoundingArea`. `MaterialArea`Sheet Metal holes use `Hole Mount { On: Base; Center: (40mm, 20mm); Diameter: 8mm; }`. Model-domain `Hole<Shaft>` is deliberately rejected here with `sheetmetal-hole-domain-syntax`. `On` targets a named planar semantic region (`Base`, a named flange, or a verified exposed region/path), not `face(+Z)`. Manufacturing PMI likewise uses `DatumFeature A { Target: Base; }` inside `Pmi`, together with a named `Manufacturing` block; Model-domain `Datum`/`face(-Z)` syntax is rejected with `sheetmetal-pmi-domain-syntax`.The JSON `part.features` count is the number of lowered cuts/openings in `SheetMetalPartIr`; bends are reported separately as `part.bends`. Authoring and imported reconstruction are separate workflows. Commands such as `sheetmetal recognize`, `recover-flat`, and `recover` operate on imported STEP and may be partial; they do not turn arbitrary geometry into authoritative authored intent.+++### Domain schemas before assembly binding++`Use SheetMetal.ProductFamilies` supplies the family's Record schemas as well as+its Templates. `EnclosureProductFamilies.Compile` and `SheetMetalFirmament.Compile`+resolve those imports through the same owner before shared value admission. API+clients using the low-level Assembly parser directly can call+`SheetMetalFirmament.ResolveImports(source)` first; the Core parser does not+invent or duplicate SheetMetal schemas. This preparation does not materialize+geometry or grant build success.diff --git a/docs/public/firmament/syntax.md b/docs/public/firmament/syntax.mdindex 26af09fc..879cd3e8 100644--- a/docs/public/firmament/syntax.md+++ b/docs/public/firmament/syntax.md@@ -763,8 +763,9 @@ This fragment requires the named resources. Locators normally omit the extensionambiguous matches reject. Place `Components.bracket` through a Part occurrence,`Components.drive` through an Assembly occurrence, or a Scene entry through aScene occurrence. The catalog makes definitions available; occurrences determine-quantity and placement. Entries reference concrete modules; specialize Templates-in the defining module before exporting their results.+quantity and placement. Part and Subassembly entries may reference typed Template exports; supply their+named arguments at the occurrence. Definition-private names remain in the defining+module. Assembly and Scene entries currently import concrete exports.Inventory follows lexical scope and retains imported file identity. Existing`include` remains the concise, unqualified composition form. See@@ -850,3 +851,19 @@ expansion source maps remain unfinished. `validate --json --explain` exposesthe implemented Feature and Template owners, lexical scopes, bound arguments andavailable definition/use receipts, plus compile-time data symbol scopes andidentities, with these limits stated.+++### Modular mechanism example++The [editable V8](editable-mechanisms.md) is a complete Inventory/Part/Subassembly/+Assembly/Scene project. Its construction recipes and product structure are authored+Firmament; typed Records carry dimensions and scalar rest inputs. One `Template<config:+CylinderConfig> Subassembly CylinderUnit` is instantiated eight times by keyed+`Pattern` entries derived with immutable `with`. Pattern mapping blocks admit+occurrences with local Concept Struct, Interface and Mate declarations; each key+owns their scope. No per-Part pose tables are required. Assembly+placements bind scalar Static/Record fields through the same checked value owner.+Assembly-owned Semantic datums bind in the owning occurrence; concrete WireForm+winding ports remain available across module boundaries. See the guide for static+Scene versus prescribed-motion limits and the intentional hierarchical identity+change from the old generated flat source.diff --git a/docs/public/firmament/templates.md b/docs/public/firmament/templates.mdindex dbe80cb0..aea5b3d0 100644--- a/docs/public/firmament/templates.md+++ b/docs/public/firmament/templates.md@@ -20,7 +20,21 @@ Struct StandardPlate = MountingPlate<Width: 80mm, Height: 50mm, Thickness: 8mm>The complete build-qualified version is [`generic-mounting-plate.firmament`](../../../fixtures/Canonical/Templates/generic-mounting-plate.firmament).-The explicit output keyword is significant: current Templates specialize `Struct`, `Model`, `Concept Struct`, `Panel`, `SheetMetal`, `Profile`, or `ProfileDelta` declarations. It is not inferred from the body.+The explicit output keyword is significant: current Templates specialize `Struct`, `Model`, `Concept Struct`, `Panel`, `SheetMetal`, `Profile`, `ProfileDelta`, or module-owned `Subassembly` declarations. It is not inferred from the body.++A typed Subassembly export is specialized through an Inventory occurrence:++```firmament+Template<config: CylinderConfig>+Subassembly CylinderUnit {+ // Local Concept layout, Parts, Interfaces, Mates and public ports.+}+```++This is a definition fragment. Its consuming project supplies `CylinderConfig`+and instantiates `Units.cylinder<config: config>` through an Assembly occurrence;+see [Inventory](inventory.md). The existing one-parameter legacy Assembly Template+form remains compatible. This pass does not broaden it into a new generic syntax.Product Template names have lexical scope. A Model-local definition shadows adocument definition, sibling scopes remain private, and duplicate names in onediff --git a/docs/public/firmament/wire-form.md b/docs/public/firmament/wire-form.mdindex 2e41c1d0..50b73ef0 100644--- a/docs/public/firmament/wire-form.md+++ b/docs/public/firmament/wire-form.md@@ -13,6 +13,10 @@ WireForm BentWire {}```+Fields accept the canonical camelCase spelling (`diameter`, `material`, `radius`,+`turns`, `pitch`) and their established PascalCase aliases. Names and domain+symbols retain their authored case.+`Diameter` and `Material` define the stock. Direct WireForm authoring uses the catalog identity; a typed product policy may carry that identity through a `String` field. `StartFrame` supplies an origin, initial tangent, and perpendicular `Up` reference. A `Straight` advances along the current tangent and preserves the frame. A signed `Bend` rotates the tangent by `Angle` around either the current local `Up` or `Right` axis. Here `Plane` names the current local **plane normal/rotation axis**: `Plane: Up` bends in the tangent/right plane, while `Plane: Right` bends in the tangent/up plane. The frame is transported by the same rigid rotation, avoiding arbitrary spin. Start-frame transformations therefore carry the forming program without global-coordinate bend hacks.`Radius` is always the **centerline bend radius**. X0 applies a geometric-only minimum-radius rule: `Radius > Diameter / 2`. It does not invent material forming tables. Positive angles follow the right-hand rule about the selected local plane normal; negative angles reverse that normal. X0 admits nonzero angles through ±180°.diff --git a/docs/release/FIRMAMENT-ASSEMBLY-REUSE.evidence.json b/docs/release/FIRMAMENT-ASSEMBLY-REUSE.evidence.jsonnew file mode 100644index 00000000..b57adf84--- /dev/null+++ b/docs/release/FIRMAMENT-ASSEMBLY-REUSE.evidence.json@@ -0,0 +1,1581 @@+{+ "schemaVersion": 1,+ "implementationBase": "96aa41ca58f4facd46bb7e8afa93f18524dc068d",+ "verdict": "Success for the approved assembly reuse and public-contract pass; X2 remains open",+ "fullRegression": {+ "failed": 0,+ "passed": 5070,+ "skipped": 0,+ "total": 5070,+ "executingAssemblies": 20+ },+ "focusedCompiler": {+ "failed": 0,+ "passed": 96,+ "skipped": 0,+ "total": 96,+ "executingAssemblies": 1+ },+ "focusedDomainCli": {+ "failed": 0,+ "passed": 2,+ "skipped": 0,+ "total": 2,+ "executingAssemblies": 1+ },+ "focusedSheetMetal": {+ "failed": 0,+ "passed": 8,+ "skipped": 0,+ "total": 8,+ "executingAssemblies": 1+ },+ "fastLane": {+ "failed": 0,+ "passed": 1068,+ "skipped": 0,+ "total": 1068,+ "executingAssemblies": 1+ },+ "buildWarnings": 2,+ "corpus": {+ "schemaVersion": 1,+ "sourceCount": 1326,+ "canonicalSourceCount": 368,+ "canonicalStructurallyParsed": 368,+ "structurallyParsed": 962,+ "standaloneProductionAccepted": 521,+ "inventorySha256": "CB8647D9889E7785583172483BB927E2F927DBBABC2D710BFEA603A6426E8736",+ "unresolvedMismatchCount": 0,+ "universalSemanticParityQualified": false,+ "classifications": {+ "Admitted": 504,+ "AdmittedGeometryWithDfmFindings": 1,+ "AdmittedInConsumerContext": 72,+ "DeclarationModuleRequiresConsumer": 5,+ "ExpectedNegativeRejection": 286,+ "ExperimentalAdmitted": 9,+ "ExperimentalRejected": 31,+ "LegacySerializationAdmitted": 5,+ "LegacySerializationRejected": 324,+ "MalformedOrUnsupportedSourceRejected": 6,+ "MisfiledPositiveFixture": 1,+ "RejectedAtSolveStage": 1,+ "SourceAdmissionRejected": 81+ },+ "canonicalClassifications": {+ "Admitted": 290,+ "AdmittedInConsumerContext": 69,+ "SourceAdmissionRejected": 9+ }+ },+ "existingSourceClassificationChanges": [],+ "newSources": [+ {+ "source": "Canonical/EditableV8/assemblies/cam-left.firmament",+ "sha256": "635120696BE8F2EBA1FBA0B502305C8ADD0F06455581DE69B3815B85D4AFA755",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/assemblies/cam-right.firmament",+ "sha256": "E823DE6BA03EB569BE95F71DD9FC7190886103D083D3E0009CBD98B649F90D7D",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/assemblies/crankcase.firmament",+ "sha256": "C33754AF7B523269B6FF0CAF259D658EFB66A5460429ABB05AC5A0F28953DE1D",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/assemblies/crankshaft.firmament",+ "sha256": "E33C8B0ADB9D7763536F33D6487B280D2F16890D4DA1B23E8E1B3CAA1C93BBA1",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/assemblies/cylinder.firmament",+ "sha256": "86216EB51660E414D3AC8A118BD4B03B3920B720FC596B83C4D141EB0DF2D19B",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/assemblies/stage-a.firmament",+ "sha256": "C3FB386E730B7B5E24822207CE8709133CACC55ED62376DEE3318FB12F5F1C14",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/stage-a.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/assemblies/stage-b.firmament",+ "sha256": "440363C83D0C4479643F0AD7305BFB4568BB24BF919301D43F94B05CF2D03366",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/bank-rest-configurations.firmament",+ "sha256": "5FC1F115DF5FC9920C81CCF022CC3863D7D459DEF1D8308E8A300037521369ED",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/bank.firmasm",+ "sha256": "55D811755AC8C2087A0D43138635AC2036133A5528164BAB8CA6066A09892ACC",+ "structuralSuccess": true,+ "classification": "Admitted",+ "consumers": []+ },+ {+ "source": "Canonical/EditableV8/construction.firmament",+ "sha256": "FADFB8795AE5D32A4BB6A31C1DF148213409CF78DB8598EEE7D512C893358863",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm",+ "Canonical/EditableV8/stage-a.firmasm",+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/cylinder-config.firmament",+ "sha256": "63D780EB312EDB0BBB6A30064700D59A069F2041A5CE34212987EF880D75E73E",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/design.firmament",+ "sha256": "BAA0BAB8F0718DC2776014CF272D7F5C13020BBB2BC7AFBD7EEB6FE90081C91D",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm",+ "Canonical/EditableV8/stage-a.firmasm",+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/engine.firmasm",+ "sha256": "9B5F3FAD39646AB55272CC6D0C7BCE0A442E269127330E7852EA5014028BE97F",+ "structuralSuccess": true,+ "classification": "Admitted",+ "consumers": []+ },+ {+ "source": "Canonical/EditableV8/interfaces.firmament",+ "sha256": "F5A62EE42E8E282F0E5A677BBAE9C236CAA3DE9E68123A798F76EED34B26C2C6",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm",+ "Canonical/EditableV8/stage-a.firmasm",+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/Camshaft.firmament",+ "sha256": "F030F711A3957BC712CE2E1009F4168B4403B4901352838BB0C107E55CF1DF6C",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/ConnectingRod.firmament",+ "sha256": "6E557267BC7E21DB23EBA2769B0CEDDF532A88E5B8271768747CCCF3A55CFBD6",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm",+ "Canonical/EditableV8/stage-a.firmasm",+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/CrankWeb.firmament",+ "sha256": "E30DCDB2A25718F85F7F55388D7A7C023D32C6C3988C4D8950CA37C3D3EE1322",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm",+ "Canonical/EditableV8/stage-a.firmasm",+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/CrankcaseRail.firmament",+ "sha256": "7268DAC6117C13F89E01E37E4B0B3EA527497008039AB8C105C2E8D908E3B726",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/Crankpin.firmament",+ "sha256": "6440DBBCE8F77364B20002F6FB33C74293C94A075873A91C27B6834A05B8DD95",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/stage-a.firmasm",+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/CylinderHead.firmament",+ "sha256": "414826E30FCF6DAE4974EAB6DCB74693A7D94E7BE54ED7A1691E425C2428C42F",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm",+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/CylinderSleeve.firmament",+ "sha256": "7D42995BB8151D71AF8A83951082C45DB6D47E0D8300FFD2476595F1E8A2A476",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm",+ "Canonical/EditableV8/stage-a.firmasm",+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/ExhaustValve.firmament",+ "sha256": "ED5FF0529F6CA342BD315B8BE3454C752DA250D3AE31BF14B915B5466C6A1447",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm",+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/Flywheel.firmament",+ "sha256": "FB027F50360CA9E99ADD9DCAF971EC6F26A7578ACB250837B18B69D482C07023",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/IntakeValve.firmament",+ "sha256": "071B5E964F3BC8953C36A081970F0C7FA790FFE73787D275B2DF9182D9AC98E7",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm",+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/LongMainJournal.firmament",+ "sha256": "B028497ACEDF2FD1E19C6999505ECF2851D0EC629DB43725F75D422A611C9F0F",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/MainJournal.firmament",+ "sha256": "301B3BA1B144D6D4CB6C71D01627A21D0FC18979EB5D01F9471B126E6B0144F1",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/stage-a.firmasm",+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/MainSupport.firmament",+ "sha256": "22A177214C270C145B46D9C1A6F7F9DBF60CA50EEA4928E002DA06D617515C39",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/PairedCrankpin.firmament",+ "sha256": "0D6B37A32044272BE3E27C721738C470B54A2772D98CE72CB81C5143EC50D43B",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/ParameterizedValveSpring.firmament",+ "sha256": "BB5D9D7C70DC23C78E6A57E64642E1FE8C441EBF60A9F7A2D7FD146E82514B95",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/PistonCrown.firmament",+ "sha256": "B78C89E037B9FA25A5E7C593D451A3F3D86C27E88DDDCBADE44EBEAD0757C52D",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm",+ "Canonical/EditableV8/stage-a.firmasm",+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/PistonLug.firmament",+ "sha256": "9DA2CE017E77B1A01378BBD631E902734AAF9E34ABC9E42A5120E360BD327AA8",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm",+ "Canonical/EditableV8/stage-a.firmasm",+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/PistonSkirt.firmament",+ "sha256": "F71CE74D4C5C53A75ADA4665E9681DEE83DD7DA48500FF12981C123D03017AD0",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/SpringRetainer.firmament",+ "sha256": "8F4741EA72B25349992DDC30F1858102B33377DA656B6C361D5702833626D18D",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm",+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/TimingLobe.firmament",+ "sha256": "B48744D11B6B4072A2038CCD1A22A39DAB443ECA5CC7FFA1FB1C712BC3B8F711",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/ValveSpring.firmament",+ "sha256": "248839A3E36295B5F75B29CDDD49AA8C4DF698BA02ABD8AB74965AC76EC8B5E2",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/ValveStem.firmament",+ "sha256": "61F06E5D231A531D0557189F913E095108A895E4AC934966A710978DB00DF510",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm",+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/parts/WristPin.firmament",+ "sha256": "FE74A4E553314F9CAF8EAE24E085C00AB8DF9C2BE5442FE1DFAD6CBE3491C2A4",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/bank.firmasm",+ "Canonical/EditableV8/engine.firmasm",+ "Canonical/EditableV8/stage-a.firmasm",+ "Canonical/EditableV8/stage-b.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/rest-configurations.firmament",+ "sha256": "9FBCAFC7CBF246C7D3C8DBBE3AA6E70F35F3EFA0830FB01E65967678CB60F192",+ "structuralSuccess": true,+ "classification": "AdmittedInConsumerContext",+ "consumers": [+ "Canonical/EditableV8/engine.firmasm"+ ]+ },+ {+ "source": "Canonical/EditableV8/scene.firmament",+ "sha256": "AC0CCFCC3FDDB2C0379E2153B7B5464809B74BF2219B4BE58A074C63A66A033B",+ "structuralSuccess": true,+ "classification": "Admitted",+ "consumers": []+ },+ {+ "source": "Canonical/EditableV8/stage-a.firmasm",+ "sha256": "E25AF40E0230B2E8AEFEF5A87F6280CA7950BE0AAC08C24D81343D9D822E315C",+ "structuralSuccess": true,+ "classification": "Admitted",+ "consumers": []+ },+ {+ "source": "Canonical/EditableV8/stage-b.firmasm",+ "sha256": "6408E0EADCD23D6E62C7B73C4F30476580A153B2532A092DBCF67AC61FB7650D",+ "structuralSuccess": true,+ "classification": "Admitted",+ "consumers": []+ }+ ],+ "v8GeometryParity": [+ {+ "label": "stage-a",+ "physicalParts": 11,+ "definitionsBefore": 8,+ "definitionsAfter": 8,+ "maximumWorldMatrixError": 0,+ "worldTolerance": 1e-09,+ "geometry": [+ {+ "example": "CrankWeb1A",+ "beforeDefinition": "assembly-definition:0C4B9960A4304578",+ "afterDefinition": "assembly-definition:D8E90F0787F6F3EE",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Crankpin1",+ "beforeDefinition": "assembly-definition:430481E918B90413",+ "afterDefinition": "assembly-definition:D955EED703A3BDFE",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Cylinder1",+ "beforeDefinition": "assembly-definition:77370A76F5F2AA7B",+ "afterDefinition": "assembly-definition:96A8CCD8A2A259A4",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "MainJournal1",+ "beforeDefinition": "assembly-definition:A68EF22F1C9E0940",+ "afterDefinition": "assembly-definition:6D4E55B2EF48F20B",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Piston1",+ "beforeDefinition": "assembly-definition:1438ABE389163638",+ "afterDefinition": "assembly-definition:8A83909077FEE6AF",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "PistonLug1A",+ "beforeDefinition": "assembly-definition:4DFBB67FAEB0399F",+ "afterDefinition": "assembly-definition:0324842D51CCC89F",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Rod1",+ "beforeDefinition": "assembly-definition:087B830BBEFB1A71",+ "afterDefinition": "assembly-definition:1D1923E5CC2E7874",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "WristPin1",+ "beforeDefinition": "assembly-definition:8396D23E881714BE",+ "afterDefinition": "assembly-definition:7A1919660A8FD1B3",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ }+ ],+ "passed": true+ },+ {+ "label": "stage-b",+ "physicalParts": 20,+ "definitionsBefore": 14,+ "definitionsAfter": 14,+ "maximumWorldMatrixError": 3.552713678800501e-15,+ "worldTolerance": 1e-09,+ "geometry": [+ {+ "example": "CrankWeb1A",+ "beforeDefinition": "assembly-definition:0C4B9960A4304578",+ "afterDefinition": "assembly-definition:D8E90F0787F6F3EE",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Crankpin1",+ "beforeDefinition": "assembly-definition:430481E918B90413",+ "afterDefinition": "assembly-definition:D955EED703A3BDFE",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Cylinder1",+ "beforeDefinition": "assembly-definition:77370A76F5F2AA7B",+ "afterDefinition": "assembly-definition:96A8CCD8A2A259A4",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "ExhaustRetainer1",+ "beforeDefinition": "assembly-definition:E42B20F757B89770",+ "afterDefinition": "assembly-definition:A56526CB2D87FCDB",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "ExhaustSpring1",+ "beforeDefinition": "assembly-definition:3451AA7AC3498785",+ "afterDefinition": "assembly-definition:472328DE6715AF03",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "ExhaustStem1",+ "beforeDefinition": "assembly-definition:2A66D7E927DE406F",+ "afterDefinition": "assembly-definition:290648FF769BBCEC",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "ExhaustValve1",+ "beforeDefinition": "assembly-definition:33046E1BEB199411",+ "afterDefinition": "assembly-definition:6A7D384BDE402574",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Head1",+ "beforeDefinition": "assembly-definition:CC51CB3973E5BD4B",+ "afterDefinition": "assembly-definition:545F530CADD960CD",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "IntakeValve1",+ "beforeDefinition": "assembly-definition:092A4C82F7AAF1A2",+ "afterDefinition": "assembly-definition:53FB45EF035A38FD",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "MainJournal1",+ "beforeDefinition": "assembly-definition:A68EF22F1C9E0940",+ "afterDefinition": "assembly-definition:6D4E55B2EF48F20B",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Piston1",+ "beforeDefinition": "assembly-definition:1438ABE389163638",+ "afterDefinition": "assembly-definition:8A83909077FEE6AF",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "PistonLug1A",+ "beforeDefinition": "assembly-definition:4DFBB67FAEB0399F",+ "afterDefinition": "assembly-definition:0324842D51CCC89F",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Rod1",+ "beforeDefinition": "assembly-definition:087B830BBEFB1A71",+ "afterDefinition": "assembly-definition:1D1923E5CC2E7874",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "WristPin1",+ "beforeDefinition": "assembly-definition:8396D23E881714BE",+ "afterDefinition": "assembly-definition:7A1919660A8FD1B3",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ }+ ],+ "passed": true+ },+ {+ "label": "stage-c",+ "physicalParts": 98,+ "definitionsBefore": 21,+ "definitionsAfter": 21,+ "maximumWorldMatrixError": 1.7053025658242404e-13,+ "worldTolerance": 1e-09,+ "geometry": [+ {+ "example": "Rod1",+ "beforeDefinition": "assembly-definition:087B830BBEFB1A71",+ "afterDefinition": "assembly-definition:1D1923E5CC2E7874",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Piston1",+ "beforeDefinition": "assembly-definition:1438ABE389163638",+ "afterDefinition": "assembly-definition:8A83909077FEE6AF",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "PistonSkirt1",+ "beforeDefinition": "assembly-definition:3EFB49114910F8CB",+ "afterDefinition": "assembly-definition:479F1C2E414FD7CA",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "PistonLugA1",+ "beforeDefinition": "assembly-definition:4DFBB67FAEB0399F",+ "afterDefinition": "assembly-definition:0324842D51CCC89F",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "WristPin1",+ "beforeDefinition": "assembly-definition:8396D23E881714BE",+ "afterDefinition": "assembly-definition:7A1919660A8FD1B3",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Cylinder1",+ "beforeDefinition": "assembly-definition:77370A76F5F2AA7B",+ "afterDefinition": "assembly-definition:96A8CCD8A2A259A4",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Head1",+ "beforeDefinition": "assembly-definition:CC51CB3973E5BD4B",+ "afterDefinition": "assembly-definition:545F530CADD960CD",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "IntakeValve1",+ "beforeDefinition": "assembly-definition:092A4C82F7AAF1A2",+ "afterDefinition": "assembly-definition:53FB45EF035A38FD",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "IntakeStem1",+ "beforeDefinition": "assembly-definition:2A66D7E927DE406F",+ "afterDefinition": "assembly-definition:290648FF769BBCEC",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "IntakeRetainer1",+ "beforeDefinition": "assembly-definition:E42B20F757B89770",+ "afterDefinition": "assembly-definition:A56526CB2D87FCDB",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "IntakeSpring1",+ "beforeDefinition": "assembly-definition:3451AA7AC3498785",+ "afterDefinition": "assembly-definition:F86A8E88E4D7BC9B",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "ExhaustValve1",+ "beforeDefinition": "assembly-definition:33046E1BEB199411",+ "afterDefinition": "assembly-definition:6A7D384BDE402574",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "IntakeSpring3",+ "beforeDefinition": "assembly-definition:91984FC4F07343DB",+ "afterDefinition": "assembly-definition:8C2E45893C8F4C4A",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Crankpin1",+ "beforeDefinition": "assembly-definition:30EAE7F8FB5DBEA0",+ "afterDefinition": "assembly-definition:42421B6C706777FD",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "CrankWeb1A",+ "beforeDefinition": "assembly-definition:0C4B9960A4304578",+ "afterDefinition": "assembly-definition:D8E90F0787F6F3EE",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "MainJournal1",+ "beforeDefinition": "assembly-definition:DC8C099AD72F6A4E",+ "afterDefinition": "assembly-definition:9B8FD0B23AA6E278",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "MainSupport1",+ "beforeDefinition": "assembly-definition:D1CFA6591DE248AE",+ "afterDefinition": "assembly-definition:5335014F6BD9CD2C",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "CrankcaseRailA",+ "beforeDefinition": "assembly-definition:05CB1CB5BDAF6C0B",+ "afterDefinition": "assembly-definition:E199334EBD95D961",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Flywheel",+ "beforeDefinition": "assembly-definition:9C9CA5FF7A240B12",+ "afterDefinition": "assembly-definition:1B638DA6AE16C1AA",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "CamshaftRight",+ "beforeDefinition": "assembly-definition:2B1EF86EBF66A25F",+ "afterDefinition": "assembly-definition:337257A2D745437D",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "TimingLobe1In",+ "beforeDefinition": "assembly-definition:AD0CDBD8542C68FD",+ "afterDefinition": "assembly-definition:1186B0244BC98480",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ }+ ],+ "passed": true+ },+ {+ "label": "baseline",+ "physicalParts": 171,+ "definitionsBefore": 21,+ "definitionsAfter": 21,+ "maximumWorldMatrixError": 1.7053025658242404e-13,+ "worldTolerance": 1e-09,+ "geometry": [+ {+ "example": "Rod1",+ "beforeDefinition": "assembly-definition:087B830BBEFB1A71",+ "afterDefinition": "assembly-definition:1D1923E5CC2E7874",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Piston1",+ "beforeDefinition": "assembly-definition:1438ABE389163638",+ "afterDefinition": "assembly-definition:8A83909077FEE6AF",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "PistonSkirt1",+ "beforeDefinition": "assembly-definition:3EFB49114910F8CB",+ "afterDefinition": "assembly-definition:479F1C2E414FD7CA",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "PistonLugA1",+ "beforeDefinition": "assembly-definition:4DFBB67FAEB0399F",+ "afterDefinition": "assembly-definition:0324842D51CCC89F",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "WristPin1",+ "beforeDefinition": "assembly-definition:8396D23E881714BE",+ "afterDefinition": "assembly-definition:7A1919660A8FD1B3",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Cylinder1",+ "beforeDefinition": "assembly-definition:77370A76F5F2AA7B",+ "afterDefinition": "assembly-definition:96A8CCD8A2A259A4",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Head1",+ "beforeDefinition": "assembly-definition:CC51CB3973E5BD4B",+ "afterDefinition": "assembly-definition:545F530CADD960CD",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "IntakeValve1",+ "beforeDefinition": "assembly-definition:092A4C82F7AAF1A2",+ "afterDefinition": "assembly-definition:53FB45EF035A38FD",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "IntakeStem1",+ "beforeDefinition": "assembly-definition:2A66D7E927DE406F",+ "afterDefinition": "assembly-definition:290648FF769BBCEC",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "IntakeRetainer1",+ "beforeDefinition": "assembly-definition:E42B20F757B89770",+ "afterDefinition": "assembly-definition:A56526CB2D87FCDB",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "IntakeSpring1",+ "beforeDefinition": "assembly-definition:3451AA7AC3498785",+ "afterDefinition": "assembly-definition:F86A8E88E4D7BC9B",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "ExhaustValve1",+ "beforeDefinition": "assembly-definition:33046E1BEB199411",+ "afterDefinition": "assembly-definition:6A7D384BDE402574",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "IntakeSpring3",+ "beforeDefinition": "assembly-definition:91984FC4F07343DB",+ "afterDefinition": "assembly-definition:8C2E45893C8F4C4A",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Crankpin1",+ "beforeDefinition": "assembly-definition:30EAE7F8FB5DBEA0",+ "afterDefinition": "assembly-definition:42421B6C706777FD",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "CrankWeb1A",+ "beforeDefinition": "assembly-definition:0C4B9960A4304578",+ "afterDefinition": "assembly-definition:D8E90F0787F6F3EE",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "MainJournal1",+ "beforeDefinition": "assembly-definition:DC8C099AD72F6A4E",+ "afterDefinition": "assembly-definition:9B8FD0B23AA6E278",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "MainSupport1",+ "beforeDefinition": "assembly-definition:D1CFA6591DE248AE",+ "afterDefinition": "assembly-definition:5335014F6BD9CD2C",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "CrankcaseRailA",+ "beforeDefinition": "assembly-definition:05CB1CB5BDAF6C0B",+ "afterDefinition": "assembly-definition:E199334EBD95D961",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Flywheel",+ "beforeDefinition": "assembly-definition:9C9CA5FF7A240B12",+ "afterDefinition": "assembly-definition:1B638DA6AE16C1AA",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "CamshaftRight",+ "beforeDefinition": "assembly-definition:2B1EF86EBF66A25F",+ "afterDefinition": "assembly-definition:337257A2D745437D",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "TimingLobe1In",+ "beforeDefinition": "assembly-definition:AD0CDBD8542C68FD",+ "afterDefinition": "assembly-definition:1186B0244BC98480",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ }+ ],+ "passed": true+ },+ {+ "label": "revised",+ "physicalParts": 171,+ "definitionsBefore": 21,+ "definitionsAfter": 21,+ "maximumWorldMatrixError": 2.2737367544323206e-13,+ "worldTolerance": 1e-09,+ "geometry": [+ {+ "example": "Rod1",+ "beforeDefinition": "assembly-definition:087B830BBEFB1A71",+ "afterDefinition": "assembly-definition:1D1923E5CC2E7874",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Piston1",+ "beforeDefinition": "assembly-definition:1438ABE389163638",+ "afterDefinition": "assembly-definition:8A83909077FEE6AF",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "PistonSkirt1",+ "beforeDefinition": "assembly-definition:3EFB49114910F8CB",+ "afterDefinition": "assembly-definition:479F1C2E414FD7CA",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "PistonLugA1",+ "beforeDefinition": "assembly-definition:4DFBB67FAEB0399F",+ "afterDefinition": "assembly-definition:0324842D51CCC89F",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "WristPin1",+ "beforeDefinition": "assembly-definition:8396D23E881714BE",+ "afterDefinition": "assembly-definition:7A1919660A8FD1B3",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Cylinder1",+ "beforeDefinition": "assembly-definition:0D4C356C065797D6",+ "afterDefinition": "assembly-definition:96A8CCD8A2A259A4",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Head1",+ "beforeDefinition": "assembly-definition:CC51CB3973E5BD4B",+ "afterDefinition": "assembly-definition:545F530CADD960CD",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "IntakeValve1",+ "beforeDefinition": "assembly-definition:092A4C82F7AAF1A2",+ "afterDefinition": "assembly-definition:53FB45EF035A38FD",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "IntakeStem1",+ "beforeDefinition": "assembly-definition:2A66D7E927DE406F",+ "afterDefinition": "assembly-definition:290648FF769BBCEC",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "IntakeRetainer1",+ "beforeDefinition": "assembly-definition:E42B20F757B89770",+ "afterDefinition": "assembly-definition:A56526CB2D87FCDB",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "IntakeSpring1",+ "beforeDefinition": "assembly-definition:3451AA7AC3498785",+ "afterDefinition": "assembly-definition:F86A8E88E4D7BC9B",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "ExhaustValve1",+ "beforeDefinition": "assembly-definition:33046E1BEB199411",+ "afterDefinition": "assembly-definition:6A7D384BDE402574",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "IntakeSpring3",+ "beforeDefinition": "assembly-definition:91984FC4F07343DB",+ "afterDefinition": "assembly-definition:8C2E45893C8F4C4A",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Crankpin1",+ "beforeDefinition": "assembly-definition:30EAE7F8FB5DBEA0",+ "afterDefinition": "assembly-definition:42421B6C706777FD",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "CrankWeb1A",+ "beforeDefinition": "assembly-definition:2BFE5CB7B3BE03C2",+ "afterDefinition": "assembly-definition:D8E90F0787F6F3EE",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "MainJournal1",+ "beforeDefinition": "assembly-definition:DC8C099AD72F6A4E",+ "afterDefinition": "assembly-definition:9B8FD0B23AA6E278",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "MainSupport1",+ "beforeDefinition": "assembly-definition:97D4D441CF2E17E0",+ "afterDefinition": "assembly-definition:5335014F6BD9CD2C",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "CrankcaseRailA",+ "beforeDefinition": "assembly-definition:05CB1CB5BDAF6C0B",+ "afterDefinition": "assembly-definition:E199334EBD95D961",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "Flywheel",+ "beforeDefinition": "assembly-definition:9C9CA5FF7A240B12",+ "afterDefinition": "assembly-definition:1B638DA6AE16C1AA",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "CamshaftRight",+ "beforeDefinition": "assembly-definition:2B1EF86EBF66A25F",+ "afterDefinition": "assembly-definition:337257A2D745437D",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ },+ {+ "example": "TimingLobe1In",+ "beforeDefinition": "assembly-definition:AD0CDBD8542C68FD",+ "afterDefinition": "assembly-definition:1186B0244BC98480",+ "positionsIdentical": true,+ "normalsIdentical": true,+ "indicesIdentical": true+ }+ ],+ "passed": true+ }+ ],+ "javascriptParity": [+ {+ "label": "baseline",+ "compared": 27360,+ "maximumError": 2.842170943040401e-14,+ "tolerance": 1e-09,+ "objects": 171,+ "status": "pass"+ },+ {+ "label": "revised",+ "compared": 27360,+ "maximumError": 2.842170943040401e-14,+ "tolerance": 1e-09,+ "objects": 171,+ "status": "pass"+ }+ ],+ "engineValidation": {+ "success": true,+ "domain": "Assembly",+ "validationLevel": "Built",+ "diagnostics": []+ },+ "scene": {+ "success": true,+ "scene": "EngineStudy",+ "definitions": 21,+ "occurrences": 194,+ "bounds": {+ "minimumMm": [+ -232.61731573020282,+ -101.84985911070852,+ -43+ ],+ "maximumMm": [+ 232.61731573020282,+ 232.61731573020285,+ 467+ ]+ }+ },+ "showcaseStepParity": [+ {+ "source": "fixtures/Canonical/Symmetry/radial-bolt-circle.firmament",+ "sourceSha256": "19DAA47DC20CA092A6DDA1CC49AF0B74E7E016F5E4A143AA4C00B7230B81C3CE",+ "expectedSha256": "4B4F8FD69D10E73BB403F1538C6FC13995F895E4C1C17E0605A3E4A008E5356E",+ "actualSha256": "4B4F8FD69D10E73BB403F1538C6FC13995F895E4C1C17E0605A3E4A008E5356E",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Symmetry/partial-radial-pattern.firmament",+ "sourceSha256": "258427029AA0882653801833109AD9FE04542C7448DE1D126291215FC016DE7D",+ "expectedSha256": "7D708B30209B6A03010D9C647F762E453C705BC8F656882BE4F18785B2F08D87",+ "actualSha256": "7D708B30209B6A03010D9C647F762E453C705BC8F656882BE4F18785B2F08D87",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Symmetry/mirrored-revolve.firmament",+ "sourceSha256": "B955033028F838A3A3D7D265BD4EB04A9AAD89E83D95D5EA1C640ECB0953FA6C",+ "expectedSha256": "C44AE2A5B6CFC978AFB24041F0B5C43A4554161FE5880FC6E2D59ADB1B7CAB4A",+ "actualSha256": "C44AE2A5B6CFC978AFB24041F0B5C43A4554161FE5880FC6E2D59ADB1B7CAB4A",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Symmetry/mirrored-profile.firmament",+ "sourceSha256": "1F41E7EBE426306205E01226C36410261798418C385E5E284BD0A4216CAF98BF",+ "expectedSha256": "30D1F927A7295A5B553453BA2D6E936564140839E4497B0C5B46A1682A18F6A1",+ "actualSha256": "30D1F927A7295A5B553453BA2D6E936564140839E4497B0C5B46A1682A18F6A1",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Symmetry/mirrored-hole.firmament",+ "sourceSha256": "39B62FB47C0C42BDF7CD3DE7FCA2E78E785BCD693412FC052628F470F3261EB0",+ "expectedSha256": "4A0DA2E67DA153B38DD7E6389CB329B4BBB6939FEC88541936DF705F49BE62FE",+ "actualSha256": "4A0DA2E67DA153B38DD7E6389CB329B4BBB6939FEC88541936DF705F49BE62FE",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Symmetry/mirrored-feature-with-override.firmament",+ "sourceSha256": "DEBDCE6974743DCBCED725B9FF6B8ED833EF64DBE69A4B94256515E6CDF24B4E",+ "expectedSha256": "052F9FC96919130FA11D2FDE5BEF302BCBE42BA6441A61F7164D43E25EAF8FBB",+ "actualSha256": "052F9FC96919130FA11D2FDE5BEF302BCBE42BA6441A61F7164D43E25EAF8FBB",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Regression/FrontendMigration/preferred-profile-links.firmament",+ "sourceSha256": "41ACDC508CDB714BC0409C864708FD968BB812A83E4FD406B7AA0818670C6C4B",+ "expectedSha256": "E43449262ECDD3DD05EFB73DB821D2E09226637EC1FB1EAF73E07821CD46AA57",+ "actualSha256": "E43449262ECDD3DD05EFB73DB821D2E09226637EC1FB1EAF73E07821CD46AA57",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Features/Holes/through-hole.firmament",+ "sourceSha256": "38E8188DB1BB7C75406570BBCEC9A09DAFA9D4D33A0EDEB746A6C04A973B265C",+ "expectedSha256": "5999F127E5A1477E5825AFA656DCEB7F89241D8F85312B0E6BCD793639A0F548",+ "actualSha256": "5999F127E5A1477E5825AFA656DCEB7F89241D8F85312B0E6BCD793639A0F548",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Templates/generic-mounting-plate.firmament",+ "sourceSha256": "91B69697F5E777438F688FA2D1F0330FEF5C430D064FCA0A7FFF886252567C92",+ "expectedSha256": "B0FF1D05D82135A3630C5E165C09B6C2C467B3FAF98A0825A9AF86B2E1CE76A3",+ "actualSha256": "B0FF1D05D82135A3630C5E165C09B6C2C467B3FAF98A0825A9AF86B2E1CE76A3",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Set/pattern-feature-map.firmament",+ "sourceSha256": "7BF1BA1E508CAE2548EC429724A895F2E50FFDAD057084F17B506C4362A34E40",+ "expectedSha256": "08D4EA1F1336C06A380E30806C02AEE3F08535CAD1592929470EBD64B9882FC2",+ "actualSha256": "08D4EA1F1336C06A380E30806C02AEE3F08535CAD1592929470EBD64B9882FC2",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/PMI/hole-diameter-and-datum.firmament",+ "sourceSha256": "B105A5535F53189938CBA6C9E8644FC9D8C6683F8BB97B04167FA48C411ABBFD",+ "expectedSha256": "9F2F24975267BF425D16A2ECDF863F4A94C0FAD172C932F9868BBB836BD46F5D",+ "actualSha256": "9F2F24975267BF425D16A2ECDF863F4A94C0FAD172C932F9868BBB836BD46F5D",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/PMI/typed-tolerance.firmament",+ "sourceSha256": "7C928F862D443904E87EAD137DB7D55E4D69E03A12F918F3319ECED947245EC9",+ "expectedSha256": "098B515124D46220AAB85F6DBE1568E6B5969FEB55B537BA91AD3DDA587509A5",+ "actualSha256": "098B515124D46220AAB85F6DBE1568E6B5969FEB55B537BA91AD3DDA587509A5",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/PMI/record-template-feature-tolerance.firmament",+ "sourceSha256": "6F88543F7E0D544F460709EE85521620101DCB053CF3C5C7C90F05A96CA63B8D",+ "expectedSha256": "300023D4A6CC156F9224F4937F990926523372C8BF0AB11D8C15851FA256BB18",+ "actualSha256": "300023D4A6CC156F9224F4937F990926523372C8BF0AB11D8C15851FA256BB18",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/AssemblyInterfaces/executable-machine.firmament",+ "sourceSha256": "9CEDEDC63C8EEF28A51F58E0E1E0D85E70104C9014C94508C44F1E9320B42F72",+ "expectedSha256": "912FCCCDF607E0EB9437423BEA0D2E6EB74D9BEDE4D4758D9DF6BF5364C66391",+ "actualSha256": "912FCCCDF607E0EB9437423BEA0D2E6EB74D9BEDE4D4758D9DF6BF5364C66391",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Assembly/template-block-pair.firmament",+ "sourceSha256": "3530A14F1156C588EA5747EE65B338162AEC803243FBBB379D7C11D5265EF211",+ "expectedSha256": "17E1DABEA787334BE13DA18E9771B69927CE46D754CA35783693C2FD76847B24",+ "actualSha256": "17E1DABEA787334BE13DA18E9771B69927CE46D754CA35783693C2FD76847B24",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Assembly/coil-on-stem.firmament",+ "sourceSha256": "056E6354C85B0E54AC6B4E1B79C1E9ED5CBE7A97648748F1C55923B76C85E485",+ "expectedSha256": "9C21BE66AA885DF21DE349169C4E3D14282C2384E661372EC4034E627A5E0A1A",+ "actualSha256": "9C21BE66AA885DF21DE349169C4E3D14282C2384E661372EC4034E627A5E0A1A",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/AssemblyInterfaces/GuitarX0/guitar.firmasm",+ "sourceSha256": "10C11DD2FA4361C87D14E22D318348CE18BE0925119496184E846A603B1CA2DB",+ "expectedSha256": "469E42D07EC1BB3FFDB88D5B0149DA50C21F39631EDC7441C2B3DCF11C41681C",+ "actualSha256": "469E42D07EC1BB3FFDB88D5B0149DA50C21F39631EDC7441C2B3DCF11C41681C",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Sculpting/sculpt-branch-variants.firmament",+ "sourceSha256": "CEFCA8936656C4947A5D434FD75EF6AA23B94D8A3DBB808B340DD376842B9240",+ "expectedSha256": "DDC7B5C388058035E1B6A5FC8D5AC6701FBA3057508448EF00351312D766EF07",+ "actualSha256": "DDC7B5C388058035E1B6A5FC8D5AC6701FBA3057508448EF00351312D766EF07",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Sculpting/sculpt-offset-region.firmament",+ "sourceSha256": "2FB5300A60902B01916B7D2D0C72A83156E365674BA0A5F249BC5D0B7EF00EE7",+ "expectedSha256": "EB310460850C1153C5C1813F2863DCD16595755359E8545558140BBA5F632F05",+ "actualSha256": "EB310460850C1153C5C1813F2863DCD16595755359E8545558140BBA5F632F05",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Sculpting/sculpt-preserve-interface.firmament",+ "sourceSha256": "C2310DAB5E3F591E1260EDA82852F53EE7842B284914D030231C15DA72D50AF4",+ "expectedSha256": "67D5F7D6316FA53F63CEE95C08F45AFEC71E2AA2B89060A41F7F88D29319AD79",+ "actualSha256": "67D5F7D6316FA53F63CEE95C08F45AFEC71E2AA2B89060A41F7F88D29319AD79",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Sculpting/sculpted-housing.firmament",+ "sourceSha256": "CD6647031A073A140C93CE7DBC14C08D801B84C24F0C15816D3C446464CF1D48",+ "expectedSha256": "27136BC65CACE501B84E6EC81BCC186F1F48262ABB2CC9F76D2208951092396F",+ "actualSha256": "27136BC65CACE501B84E6EC81BCC186F1F48262ABB2CC9F76D2208951092396F",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Sculpting/surf-x1-freeform-housing.firmament",+ "sourceSha256": "36CCD4855AC3F8574854AA2499CB7B5BFFE4A892852AE9DDC452714962457B38",+ "expectedSha256": "F509AA95D3B223F876790A755DF0052900E07598A1CB8266D63EA2408EF2DB07",+ "actualSha256": "F509AA95D3B223F876790A755DF0052900E07598A1CB8266D63EA2408EF2DB07",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Sculpting/surf-x1a-trimmed-freeform-housing.firmament",+ "sourceSha256": "990DC7389DBCB4E330B2A316AF4946297B5CA8F13C5BD9A693497792852ABD46",+ "expectedSha256": "5717FD937D9FE93EACF3B49190BB967028C574121AE8850F2D82EA8FC7C1B9B4",+ "actualSha256": "5717FD937D9FE93EACF3B49190BB967028C574121AE8850F2D82EA8FC7C1B9B4",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Sculpting/surf-x2-g1-blend.firmament",+ "sourceSha256": "1BB2EE58823B87D5CF65D227CC7163D36D92E670B43D33B8D6A9DCDB9F6288F9",+ "expectedSha256": "73C2D486D3CED015EBEFA984C41063C54D86BF81E5A575179CA9098EBE23EF22",+ "actualSha256": "73C2D486D3CED015EBEFA984C41063C54D86BF81E5A575179CA9098EBE23EF22",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Sculpting/surf-x2-judged-housing.firmament",+ "sourceSha256": "96BEDCA540DD454F27DA530E9B58E3E4C3DA21F4AEE0CA5422E56372D32EDE8C",+ "expectedSha256": "0BC71E45EE37D7B523063A59E5060610048FBE7DAC227D82CB24B4A8186FDB2A",+ "actualSha256": "0BC71E45EE37D7B523063A59E5060610048FBE7DAC227D82CB24B4A8186FDB2A",+ "exitCode": 0,+ "byteIdentical": true+ },+ {+ "source": "fixtures/Canonical/Sculpting/surf-x2-manual-candidate.firmament",+ "sourceSha256": "CFBA24141D578B8049C61FA491B5978D40E873DA149373D287F5DB5488F40056",+ "expectedSha256": "1B32DB8AFF518EAA86ADBEC212047641B48C5CCD9F57736F9C807D897AFA70B2",+ "actualSha256": "1B32DB8AFF518EAA86ADBEC212047641B48C5CCD9F57736F9C807D897AFA70B2",+ "exitCode": 0,+ "byteIdentical": true+ }+ ],+ "changedSourceHashes": {+ "Aetheris.CLI.Tests/AssemblyDomainImportsTests.cs": "6CA5A5FA02ACDD8383411C51B2A6014B8C5F22AD5854CE575D7475F7225EB1D8",+ "Aetheris.CLI/AssemblyGlbCommand.cs": "36586DAD8693E479C8ADF1A3CDD8462E454BC5C7E9F10A6714F681578D87D40F",+ "Aetheris.CLI/AssemblyUsdCommand.cs": "CB9BBCAF5CCC9D2F78A0ABD4D1C4DD5342B077A3DD47D4755E0E98E09148B11B",+ "Aetheris.CLI/CliRunner.cs": "537C964E0A41827102D92B4E04C0604E1C409DFD9358E15BF62B2C78D195BCBD",+ "Aetheris.Kernel.Firmament.Tests/Assembly/AssemblyFrameValueTests.cs": "72DF75CA23EB8DB32F87EB7EF5520643F89561D1CC87DD3D3A8DD08795242950",+ "Aetheris.Kernel.Firmament.Tests/Assembly/AssemblyTypedModuleTests.cs": "67218C2D3C396CD024B0FF2EC64C55A70D2A2D89B8FB036AC131DCA005D84BE5",+ "Aetheris.Kernel.Firmament/Assembly/AssemblyDatumAuthoring.cs": "FCB4520E6C235BE647B8815E6747926BB3F3C3A968E7A9C4CAFE77CA36F0A293",+ "Aetheris.Kernel.Firmament/Assembly/AssemblyM0Parser.cs": "E9C40B39EB7F51D06F6B86148DD1386DC2F3A8458576E17BCDF5CAEFB1F0BDCB",+ "Aetheris.Kernel.Firmament/Assembly/AssemblyM1Execution.cs": "AE1C22750B51386CD67A2B79C978397526075734BED6A02A722AFDB6056FD90D",+ "Aetheris.Kernel.Firmament/Assembly/AssemblyPublishedPorts.cs": "9DE3981C60D737E1FDCA599E9582F679ED08143C8B235E16A77D41ACC1DB46C9",+ "Aetheris.Kernel.Firmament/FirmamentV2/CanonicalStaticAuthoring.cs": "C6E5E8D6A1DB05C78B301EBC3C3F545A605710C21C453E738E95A01865D000D7",+ "Aetheris.Kernel.Firmament/FirmamentV2/FirmamentV2TemplateExpansion.cs": "C9422B73338F3511286694EF3E6CB208BA675300602DB72AA145D4197BBAA519",+ "Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentDataBinding.cs": "654BE246CF7AEB74381011D228F523A261F958640CC11A59D9CAE22579AAA0EB",+ "Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntax.cs": "040ED4E96B320B55B2A3BC41120EEAE83AF0096B79BB8745F2D6C78A781F62A8",+ "Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxOrigins.cs": "803AADC77AF9E040094B60E6350F910A75CEA698B73B682A32B3AFBF27D04210",+ "Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxParser.cs": "FAFB7C56615535381765C6F5AE768AA36F5DE788835F94EE22424ED3DDC55F09",+ "Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxRewriter.cs": "93B0081091255AEC88994FDD86D1AA2FEE3C1998E2A7DFC5BDC44E976DEB3D8B",+ "Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxTraversal.cs": "72BABF467B77249FC48983B1406176E4281A2BA22233079ECD07DCAC1A0E67B4",+ "Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentSyntaxWriter.cs": "73EB82CC56E200837C4BE4B43A0828EA34ED4C205B68C0E51CC00F8817CBFE59",+ "Aetheris.Kernel.Firmament/FirmamentV2/Syntax/FirmamentTemplateSyntax.cs": "FA9DDAFF44BFF3FE3C56681641FC5155DB26C01D1C2E9656AFE80DAC06DBD123",+ "Aetheris.Kernel.Firmament/Materializer/WireForm.cs": "46D69D22B459B65B9DBF719D85166E9A028828A7C5797F46176826D531B0733F",+ "Aetheris.Kernel.Firmament/Modules/FirmamentModuleGraph.cs": "5AA98D8543B4D14B662F204818E0A04E4B5A8D6481DC3260310BF8062E58B7B6",+ "Aetheris.SheetMetal.Tests/SheetMetalM6Tests.cs": "9F26B67E1273EF53A6EE6A9BF00CED86150E0867DA03B4D6FD7B4A3EDD4994BF",+ "Aetheris.SheetMetal/EnclosureProductM6.cs": "E9EE76A28B9A2A2A91DB96F6F9DABE5B8EBD59AA4769F0D43E67E182A856622C",+ "Aetheris.SheetMetal/SheetMetalFirmament.cs": "DB37740ED73638F70EF7579AACD754D8FE2CAE93F1724AAF1CEA3043C22A594C",+ "demos/Aetheris.EditableV8.Tests/EngineTests.cs": "38E9F89E4C7AB6AD28146571C5312971ED5568F6EED03B5E1E782142B78CF5EE",+ "demos/Aetheris.EditableV8/Aetheris.EditableV8.csproj": "31C404C31D208936325B6778294493703A63133E6A72522A2DA3488AA90396EA",+ "demos/Aetheris.EditableV8/EngineMotion.cs": "9C51C3F0E9FF084F8EDF6631C743548061E21DC1EB04235ED913556213DCA06E",+ "demos/Aetheris.EditableV8/EngineProject.cs": "3F67490C2EAB03CC5BFEED54FF0D454005D8FD02B2E33330E49F5E8CE77564A0",+ "demos/Aetheris.EditableV8/Program.cs": "8C5BB10A236F7D806AFFB4937C32F5D3F96F230A80376D3E8B4EF37C85D3952F",+ "demos/Aetheris.EditableV8/README.md": "5BF13EBE930BB78B190579A177B83393A7A65BBA692938D326BB1B518F8E1F45",+ "demos/Aetheris.EditableV8/Run.ps1": "F65EB56B2956EF377D774B79FA2DC341F2BCE2D471D2D13A0E0BAA85630F8E82",+ "demos/Aetheris.EditableV8/web/index.html": "6F83B30BCFDC000BCA0D130A7D1E21A8BB22041AAC2A542F4C80D8A18123F67E",+ "demos/Aetheris.EditableV8/web/viewer.mjs": "ADCCAF149E9F23BBCC0F642129F4A8AFC2265013E17EA0B6D0DE145478B58720",+ "docs/public/firmament/assembly-authoring-foundation.md": "028D9D59382A885DF1294CA095E849143C127535458E033DAA126691DFC13F79",+ "docs/public/firmament/editable-mechanisms.md": "939BA52A1B05D5B3577DE6F244BE7180D22431F4376B4750093DB2366948498C",+ "docs/public/firmament/inventory.md": "726310041E5AEC4B1714CAAB2BF8FC7A94E4F0E22B35A5CAC74A3C34DEBA794C",+ "docs/public/firmament/sheet-metal.md": "FBFDB29DE45A70BF82013EB4F6E1239EE0C20D93F3B6962B2DB260FEE3CD203D",+ "docs/public/firmament/syntax.md": "B5415154EC82663E2BD9495C83D2EE4E7A5CC6D715101C622ABF1CE318A135F7",+ "docs/public/firmament/templates.md": "660D58F3438BC76DFF619B6B1BD6C7F8397333BBEB239FC4D7B7BB602C040BDF",+ "docs/public/firmament/wire-form.md": "CB97EF18E6FD9A14F877DE46A383BD2E4B584406E41DE00350EC389F8DE6F4F3",+ "fixtures/Canonical/EditableV8/assemblies/cam-left.firmament": "635120696BE8F2EBA1FBA0B502305C8ADD0F06455581DE69B3815B85D4AFA755",+ "fixtures/Canonical/EditableV8/assemblies/cam-right.firmament": "E823DE6BA03EB569BE95F71DD9FC7190886103D083D3E0009CBD98B649F90D7D",+ "fixtures/Canonical/EditableV8/assemblies/crankcase.firmament": "C33754AF7B523269B6FF0CAF259D658EFB66A5460429ABB05AC5A0F28953DE1D",+ "fixtures/Canonical/EditableV8/assemblies/crankshaft.firmament": "E33C8B0ADB9D7763536F33D6487B280D2F16890D4DA1B23E8E1B3CAA1C93BBA1",+ "fixtures/Canonical/EditableV8/assemblies/cylinder.firmament": "86216EB51660E414D3AC8A118BD4B03B3920B720FC596B83C4D141EB0DF2D19B",+ "fixtures/Canonical/EditableV8/assemblies/stage-a.firmament": "C3FB386E730B7B5E24822207CE8709133CACC55ED62376DEE3318FB12F5F1C14",+ "fixtures/Canonical/EditableV8/assemblies/stage-b.firmament": "440363C83D0C4479643F0AD7305BFB4568BB24BF919301D43F94B05CF2D03366",+ "fixtures/Canonical/EditableV8/bank-rest-configurations.firmament": "5FC1F115DF5FC9920C81CCF022CC3863D7D459DEF1D8308E8A300037521369ED",+ "fixtures/Canonical/EditableV8/bank.firmasm": "55D811755AC8C2087A0D43138635AC2036133A5528164BAB8CA6066A09892ACC",+ "fixtures/Canonical/EditableV8/construction.firmament": "FADFB8795AE5D32A4BB6A31C1DF148213409CF78DB8598EEE7D512C893358863",+ "fixtures/Canonical/EditableV8/cylinder-config.firmament": "63D780EB312EDB0BBB6A30064700D59A069F2041A5CE34212987EF880D75E73E",+ "fixtures/Canonical/EditableV8/design.firmament": "BAA0BAB8F0718DC2776014CF272D7F5C13020BBB2BC7AFBD7EEB6FE90081C91D",+ "fixtures/Canonical/EditableV8/engine.firmasm": "9B5F3FAD39646AB55272CC6D0C7BCE0A442E269127330E7852EA5014028BE97F",+ "fixtures/Canonical/EditableV8/geometry-reference.expected.json": "E79FBA10EBC1BA18076BF9DEC045B81A9D16729B402C8A43620880D8FDC38D96",+ "fixtures/Canonical/EditableV8/interfaces.firmament": "F5A62EE42E8E282F0E5A677BBAE9C236CAA3DE9E68123A798F76EED34B26C2C6",+ "fixtures/Canonical/EditableV8/parts/Camshaft.firmament": "F030F711A3957BC712CE2E1009F4168B4403B4901352838BB0C107E55CF1DF6C",+ "fixtures/Canonical/EditableV8/parts/ConnectingRod.firmament": "6E557267BC7E21DB23EBA2769B0CEDDF532A88E5B8271768747CCCF3A55CFBD6",+ "fixtures/Canonical/EditableV8/parts/CrankWeb.firmament": "E30DCDB2A25718F85F7F55388D7A7C023D32C6C3988C4D8950CA37C3D3EE1322",+ "fixtures/Canonical/EditableV8/parts/CrankcaseRail.firmament": "7268DAC6117C13F89E01E37E4B0B3EA527497008039AB8C105C2E8D908E3B726",+ "fixtures/Canonical/EditableV8/parts/Crankpin.firmament": "6440DBBCE8F77364B20002F6FB33C74293C94A075873A91C27B6834A05B8DD95",+ "fixtures/Canonical/EditableV8/parts/CylinderHead.firmament": "414826E30FCF6DAE4974EAB6DCB74693A7D94E7BE54ED7A1691E425C2428C42F",+ "fixtures/Canonical/EditableV8/parts/CylinderSleeve.firmament": "7D42995BB8151D71AF8A83951082C45DB6D47E0D8300FFD2476595F1E8A2A476",+ "fixtures/Canonical/EditableV8/parts/ExhaustValve.firmament": "ED5FF0529F6CA342BD315B8BE3454C752DA250D3AE31BF14B915B5466C6A1447",+ "fixtures/Canonical/EditableV8/parts/Flywheel.firmament": "FB027F50360CA9E99ADD9DCAF971EC6F26A7578ACB250837B18B69D482C07023",+ "fixtures/Canonical/EditableV8/parts/IntakeValve.firmament": "071B5E964F3BC8953C36A081970F0C7FA790FFE73787D275B2DF9182D9AC98E7",+ "fixtures/Canonical/EditableV8/parts/LongMainJournal.firmament": "B028497ACEDF2FD1E19C6999505ECF2851D0EC629DB43725F75D422A611C9F0F",+ "fixtures/Canonical/EditableV8/parts/MainJournal.firmament": "301B3BA1B144D6D4CB6C71D01627A21D0FC18979EB5D01F9471B126E6B0144F1",+ "fixtures/Canonical/EditableV8/parts/MainSupport.firmament": "22A177214C270C145B46D9C1A6F7F9DBF60CA50EEA4928E002DA06D617515C39",+ "fixtures/Canonical/EditableV8/parts/PairedCrankpin.firmament": "0D6B37A32044272BE3E27C721738C470B54A2772D98CE72CB81C5143EC50D43B",+ "fixtures/Canonical/EditableV8/parts/ParameterizedValveSpring.firmament": "BB5D9D7C70DC23C78E6A57E64642E1FE8C441EBF60A9F7A2D7FD146E82514B95",+ "fixtures/Canonical/EditableV8/parts/PistonCrown.firmament": "B78C89E037B9FA25A5E7C593D451A3F3D86C27E88DDDCBADE44EBEAD0757C52D",+ "fixtures/Canonical/EditableV8/parts/PistonLug.firmament": "9DA2CE017E77B1A01378BBD631E902734AAF9E34ABC9E42A5120E360BD327AA8",+ "fixtures/Canonical/EditableV8/parts/PistonSkirt.firmament": "F71CE74D4C5C53A75ADA4665E9681DEE83DD7DA48500FF12981C123D03017AD0",+ "fixtures/Canonical/EditableV8/parts/SpringRetainer.firmament": "8F4741EA72B25349992DDC30F1858102B33377DA656B6C361D5702833626D18D",+ "fixtures/Canonical/EditableV8/parts/TimingLobe.firmament": "B48744D11B6B4072A2038CCD1A22A39DAB443ECA5CC7FFA1FB1C712BC3B8F711",+ "fixtures/Canonical/EditableV8/parts/ValveSpring.firmament": "248839A3E36295B5F75B29CDDD49AA8C4DF698BA02ABD8AB74965AC76EC8B5E2",+ "fixtures/Canonical/EditableV8/parts/ValveStem.firmament": "61F06E5D231A531D0557189F913E095108A895E4AC934966A710978DB00DF510",+ "fixtures/Canonical/EditableV8/parts/WristPin.firmament": "FE74A4E553314F9CAF8EAE24E085C00AB8DF9C2BE5442FE1DFAD6CBE3491C2A4",+ "fixtures/Canonical/EditableV8/rest-configurations.firmament": "9FBCAFC7CBF246C7D3C8DBBE3AA6E70F35F3EFA0830FB01E65967678CB60F192",+ "fixtures/Canonical/EditableV8/scene.firmament": "AC0CCFCC3FDDB2C0379E2153B7B5464809B74BF2219B4BE58A074C63A66A033B",+ "fixtures/Canonical/EditableV8/stage-a.firmasm": "E25AF40E0230B2E8AEFEF5A87F6280CA7950BE0AAC08C24D81343D9D822E315C",+ "fixtures/Canonical/EditableV8/stage-b.firmasm": "6408E0EADCD23D6E62C7B73C4F30476580A153B2532A092DBCF67AC61FB7650D"+ },+ "binaryHashes": {+ "Aetheris.CLI/bin/Release/net10.0/aetheris.dll": "9BC236FB695D6547AE65E6B4A902BC44D2900E8C7AD9E1368F9CEBC75E975653",+ "Aetheris.Kernel.Firmament/bin/Release/net10.0/Aetheris.Kernel.Firmament.dll": "1A0146D09B32B4B182F8B3B1842A6686C6E2A66F9335406DAC0CDFB01522AE3C",+ "Aetheris.SheetMetal/bin/Release/net10.0/Aetheris.SheetMetal.dll": "5318652E21AD91C6E36BF82A2D83FBD96BB361F75998B5702CDFDF480A505163",+ "demos/Aetheris.EditableV8/bin/Release/net10.0/Aetheris.EditableV8.dll": "BCF59C7E433E1389BD00453C9D768332151A71C224CC0F1759107579056A3FFC"+ },+ "remainingBoundaries": [+ "Motion language and general dynamic constraints are a separate design pass.",+ "Imported Part Record/type arguments reject; typed Subassemblies accept checked nested Record values.",+ "Typed Assembly/Scene imports require concrete exports; legacy Assembly compatibility remains.",+ "Full expansion source maps and Template-local Record-to-nested-Template forwarding are not claimed.",+ "Existing sheet-metal trimmed-surface display tessellation limitation rejects explicitly; valid STEP compilation remains available."+ ],+ "runtimeSnapshot": {+ "taskDotnetBuildOrTestHostsAfterQualification": 0,+ "nodeReuse": false,+ "sharedCompilation": false,+ "parallelHeavyQualificationJobs": false+ }+}diff --git a/docs/release/FIRMAMENT-ASSEMBLY-REUSE.md b/docs/release/FIRMAMENT-ASSEMBLY-REUSE.mdnew file mode 100644index 00000000..d4a8596e--- /dev/null+++ b/docs/release/FIRMAMENT-ASSEMBLY-REUSE.md@@ -0,0 +1,182 @@+# Firmament assembly reuse and public contracts++Date: 2026-10-15. Implementation base: `96aa41ca58f4facd46bb7e8afa93f18524dc068d`.++## Result and scope++This pass implements the approved two-part Editable V8 design through production+compilation: keyed typed Subassembly reuse, and Concept-owned layout with+Interface-owned installation/fit relationships. Motion language design remains+separate. **Verdict: Success for this approved slice; X2 remains open.**++The engine imports one `Template<config: CylinderConfig> Subassembly CylinderUnit`.+A finite keyed Set uses immutable `with` derivations and nested `CylinderRest`+Records. One Pattern creates the eight units and their installation/journal-fit+Mates. The Cylinder definition owns sixteen physical Parts, its local layout,+Fixed interfaces, seating Mates and pin/spring fits. The engine installs the+complete public mount once per key.++The eight copied cylinder sources and all eighteen pose/matrix data files are+removed. Crankshaft, crankcase, cam banks and the smaller staged witnesses use+scalar expressions. C# retains the existing prescribed mechanism and writes only+engineering dimensions plus compact scalar rest inputs; it does not generate the+Firmament product tree or replacement meshes.++Read [the engine](../../fixtures/Canonical/EditableV8/engine.firmasm),+[the single Cylinder](../../fixtures/Canonical/EditableV8/assemblies/cylinder.firmament)+and [the authoring guide](../public/firmament/editable-mechanisms.md).++## Compiler ownership and repairs++- Inventory retains typed Subassembly exports in their definition modules and+ specializes them with the existing Template/Record binder. Private supporting+ declarations stay private. Nested checked host Record views become ordinary+ nested Record bindings, rather than type-marker strings masquerading as values.+- Set entry boundaries come from mapping AST nodes. Literal Records, aliases and+ immutable `with` values share the Record owner and its field/type checks. The+ old literal-only Set field checker is removed.+- Mapping blocks are represented in the unified AST, traversal, rewriter, writer,+ lexical data/Template binding and source-origin indexing. Assembly Pattern+ expansion admits occurrence/Concept/Interface/Mate declarations locally,+ qualifies occurrence references and gives local declarations hygienic names.+ Unknown body intent and duplicate declarations reject. Key order does not own+ occurrence identity.+- Imported assembly identities retain expression token boundaries: whitespace+ normalization must not turn `standard with` into `standardwith`. The existing+ legacy one-parameter Assembly compatibility form keeps its normalization.+- Nested visible Axis members can seat a complete unit through its published+ endpoint. Private descendants stay inaccessible. Scalar vector/station values+ use the existing dimension-checked evaluator. Ordinary seating and dimensional+ fit admission have separate responsibilities; fits do not add another driver.+- Published aliases bind against the solved local root path, rather than an+ unrelated private definition name. Occurrence and solved-definition identities+ agree, including AP242 definition-owned child usages.+- Definition-owned Record leaves reach semantic ports. WireForm winding ports are+ obtained from the same AIR/datum factory used after materialization. CamelCase+ wire fields use the existing spelling metadata. The spring seats its actual+ winding endpoint; the starting tangent is not used as a guessed coil axis.+- SheetMetal resolves its existing product/profile library imports before shared+ Record admission. Both normal part compilation and enclosure assembly entry+ points use the same domain-owned resolver. CLI inspection, validation, STEP, USD+ and GLB entry points also use that prepared domain entry instead of providing+ a geometry delegate to an unprepared parser. The low-level parser Concept test+ now supplies that domain context, checks a valid control, then removes the Lid+ member and checks the same specific Concept diagnostic before geometry.++There is no new whole-document parser dispatcher, parallel schema checker,+source-macro system, diagnostic fatality allowlist or global parser state. The+SheetMetal change consolidates its existing import transformations; it does not+add another import spelling or library definition.++## Physical endpoints and identity++The crankshaft publishes its real crankpin ports. The parent compares those+journals with the Cylinder's published rod big-end bore. The local wrist-pin fit+uses the rod's actual small-end port. Spring fits use WireForm clear diameter and+the stem's definition-owned diameter. The former virtual `SeatRodN` and+`SeatWristPinN` copies are gone from the V8.++A physical path is now `EditableV8.Cylinders.C1.Cylinder.Piston`, with logical+motion labels retained only as explicit binding inputs. Baseline/revised sources+retain keyed IDs. This intentionally changes the old flat occurrence hierarchy;+it does not claim byte identity of the V8's complete STEP product structure.+An obsolete concrete compressed-spring module is also removed; pitch specialization owns that variant.+The full V8 has 171 physical Parts, 21 geometry definitions, and 193 total tree+occurrences including the root and compiler-owned Pattern groups.++## Diagnostics and compatibility boundaries++Bad Record overrides retain their explanatory field/type messages. Assembly+value-expansion failures identify the original enclosing Assembly where available+and disclose that the expander supplied no expression-level span. Specialized+module errors retain their defining/export context. This is not a claim of full+expansion source maps.++Imported Part Templates admit scalar/enum inputs. Caller Record/type arguments+are explicitly rejected at that deferred materialization boundary, preventing a+same-named private Record from supplying different geometry. Typed Subassemblies+carry checked Record values, including nested rest bundles. Caller-defined type+arguments and typed Assembly/Scene imports still require definition-module+specialization followed by a concrete export.++The existing legacy Assembly Template route remains a compatibility consumer;+this pass does not remove it before a separate family migration. Template-local+Static Records forwarded to nested product Templates remain a known X2 binding+boundary; this pass does not claim that every such combination is qualified.++No new motion/animation syntax, mechanism solver, kernel operation or Helios+validator is added. The browser evaluator remains the existing prescribed motion+projection. Sheet-metal display export can still reject an unsupported trimmed surface with+`assembly-mesh-definition-failed`; its valid STEP geometry is not silently+substituted. This is a separate existing tessellation capability.+A fresh interactive browser/rendering audit is outside this pass;+actual exported geometry and the real JavaScript evaluator are qualified.++## Qualification++The final release solution build passed with two existing warnings. The complete+serial solution gate passed **5,070 tests in 20 executing assemblies, zero failed+and zero skipped**. The focused compiler lane passed 96 tests, the focused+SheetMetal compatibility lane passed eight, and the Core fast lane passed 1,068. Two CLI domain-import regressions additionally+exercise inspection, full validation, real STEP export and truthful display-mesh+capability rejection for the existing sheet-metal compatibility products.+The full Core lane, including SlowCorpus, passed 1,201; the fast lane is not used+as a substitute for the full gate.++All five original/ported variant comparisons pass. Every compared local position,+normal and index array is exactly equal. Maximum world-matrix differences are:++| Variant | Physical Parts | Geometry definitions | Maximum matrix difference |+| --- | ---: | ---: | ---: |+| Stage A | 11 | 8 | 0 |+| Stage B | 20 | 14 | 3.56e-15 |+| Four-cylinder bank | 98 | 21 | 1.71e-13 |+| Baseline V8 | 171 | 21 | 1.71e-13 |+| Revised V8 | 171 | 21 | 2.28e-13 |++Baseline and revised kinematic/clearance and spring-axis sweeps pass. The real+JavaScript evaluator matches 27,360 scalar matrix components per variant against+C# at the exported sample angles, with maximum error 2.85e-14. CLI validation of+the checked-in engine reports `success: true`, `validationLevel: Built`, and no+diagnostics. The static Scene exports GLB with 21 definitions and 194 tree+occurrences. This does not add runtime motion to the Scene.++The complete current corpus contains **1,326 sources**, with all **368 canonical+sources structurally represented** and **zero unresolved mismatches**. All 41 new+V8 source modules are admitted standalone or through exact successful consumer+receipts. Every pre-existing source retains its previous classified outcome,+including the two sheet-metal compatibility products. All **26 showcase STEP+baselines are byte-identical**. This is a measured corpus qualification, not a+claim of universal semantic parity for every possible program.++The dedicated code-quality pass checked parser ownership, shared Record/schema+binding, declaration hygiene, diagnostic propagation, V1 compatibility, source+provenance limits, cache/identity consistency and absence of new global parser+state. `git diff --check` is clean. The final artifact run uses a fresh directory+so stale removed modules cannot participate in qualification.++Final evidence is collected under ignored `artifacts/local/editable-v8-modules/`.+The [adjacent compact JSON](FIRMAMENT-ASSEMBLY-REUSE.evidence.json) records final counts, corpus dispositions, artifact+parity and source hashes. Intermediate failing runs are not final acceptance.++The durable `geometry-reference.expected.json` fixture captures the original+baseline at the implementation-base commit: 171 logical Part bindings, local+mesh fingerprints and solved world matrices. Its test hashes little-endian array+lengths and position/normal/index data, normalizing signed zero; world matrices+have a 1e-9 tolerance. The JSON records the original generated-source hash and+reproduction provenance. Raw old meshes and per-run outputs stay ignored.++Reproduce the build/test lanes from the repository root:++```powershell+$env:MSBUILDDISABLENODEREUSE = '1'+dotnet build Aetheris.slnx -c Release -m:1 -nr:false -p:UseSharedCompilation=false+dotnet test Aetheris.Kernel.Core.Tests -c Release --no-build --filter "Category!=SlowCorpus"+dotnet test Aetheris.slnx -c Release --no-build -m:1 -nr:false -- RunConfiguration.MaxCpuCount=1+./demos/Aetheris.EditableV8/Run.ps1 -Output artifacts/local/demos/editable-v8 -NoServe+```++The Run script uses a serial build with node reuse/shared compilation disabled,+then executes the produced DLL. The post-qualification process snapshot contains+no .NET build/test hosts. It preserves the existing foreground preview+behavior. No background service or startup task is created.diff --git a/fixtures/Canonical/EditableV8/assemblies/cam-left.firmament b/fixtures/Canonical/EditableV8/assemblies/cam-left.firmamentnew file mode 100644index 00000000..3054b25f--- /dev/null+++ b/fixtures/Canonical/EditableV8/assemblies/cam-left.firmament@@ -0,0 +1,42 @@+include "../interfaces";+include "../design";++Inventory Record Parts {+ camshaft: Part = Firmament("../parts/Camshaft").Camshaft+ timingLobe: Part = Firmament("../parts/TimingLobe").TimingLobe+}++// Local coordinates belong to this reusable unit; the engine places it once.+Subassembly CamLeft {+ <Assembly CamLeft>+ <Part CamshaftLeft = Parts.camshaft>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,0mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part TimingLobe2In = Parts.timingLobe>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(0 - 1.5) * d.cylinderSpacing + -28mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part TimingLobe2Ex = Parts.timingLobe>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(0 - 1.5) * d.cylinderSpacing + 12mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part TimingLobe4In = Parts.timingLobe>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(1 - 1.5) * d.cylinderSpacing + -28mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part TimingLobe4Ex = Parts.timingLobe>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(1 - 1.5) * d.cylinderSpacing + 12mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part TimingLobe6In = Parts.timingLobe>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(2 - 1.5) * d.cylinderSpacing + -28mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part TimingLobe6Ex = Parts.timingLobe>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(2 - 1.5) * d.cylinderSpacing + 12mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part TimingLobe8In = Parts.timingLobe>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(3 - 1.5) * d.cylinderSpacing + -28mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part TimingLobe8Ex = Parts.timingLobe>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(3 - 1.5) * d.cylinderSpacing + 12mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; }+ </Assembly>+ Anchor: CamLeft;+}diff --git a/fixtures/Canonical/EditableV8/assemblies/cam-right.firmament b/fixtures/Canonical/EditableV8/assemblies/cam-right.firmamentnew file mode 100644index 00000000..455c791b--- /dev/null+++ b/fixtures/Canonical/EditableV8/assemblies/cam-right.firmament@@ -0,0 +1,42 @@+include "../interfaces";+include "../design";++Inventory Record Parts {+ camshaft: Part = Firmament("../parts/Camshaft").Camshaft+ timingLobe: Part = Firmament("../parts/TimingLobe").TimingLobe+}++// Local coordinates belong to this reusable unit; the engine places it once.+Subassembly CamRight {+ <Assembly CamRight>+ <Part CamshaftRight = Parts.camshaft>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,0mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part TimingLobe1In = Parts.timingLobe>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(0 - 1.5) * d.cylinderSpacing + -12mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part TimingLobe1Ex = Parts.timingLobe>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(0 - 1.5) * d.cylinderSpacing + 28mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part TimingLobe3In = Parts.timingLobe>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(1 - 1.5) * d.cylinderSpacing + -12mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part TimingLobe3Ex = Parts.timingLobe>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(1 - 1.5) * d.cylinderSpacing + 28mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part TimingLobe5In = Parts.timingLobe>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(2 - 1.5) * d.cylinderSpacing + -12mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part TimingLobe5Ex = Parts.timingLobe>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(2 - 1.5) * d.cylinderSpacing + 28mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part TimingLobe7In = Parts.timingLobe>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(3 - 1.5) * d.cylinderSpacing + -12mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part TimingLobe7Ex = Parts.timingLobe>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(3 - 1.5) * d.cylinderSpacing + 28mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; }+ </Assembly>+ Anchor: CamRight;+}diff --git a/fixtures/Canonical/EditableV8/assemblies/crankcase.firmament b/fixtures/Canonical/EditableV8/assemblies/crankcase.firmamentnew file mode 100644index 00000000..f639b21a--- /dev/null+++ b/fixtures/Canonical/EditableV8/assemblies/crankcase.firmament@@ -0,0 +1,36 @@+include "../interfaces";+include "../design";++Inventory Record Parts {+ mainSupport: Part = Firmament("../parts/MainSupport").MainSupport+ crankcaseRail: Part = Firmament("../parts/CrankcaseRail").CrankcaseRail+}++// Local coordinates belong to this reusable unit; the engine places it once.+Subassembly Crankcase {+ <Assembly Crankcase>+ <Part MainSupport1 = Parts.mainSupport>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(0 - 0.5) * d.cylinderSpacing]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part MainSupport2 = Parts.mainSupport>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(1 - 0.5) * d.cylinderSpacing]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part MainSupport3 = Parts.mainSupport>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(2 - 0.5) * d.cylinderSpacing]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part MainSupport4 = Parts.mainSupport>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(3 - 0.5) * d.cylinderSpacing]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part MainSupport5 = Parts.mainSupport>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(4 - 0.5) * d.cylinderSpacing]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part CrankcaseRailA = Parts.crankcaseRail>+ Placement { from: Origin; to: World; translateLocal: [-26mm,d.crankcaseFloor - 8mm,1.5 * d.cylinderSpacing]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part CrankcaseRailB = Parts.crankcaseRail>+ Placement { from: Origin; to: World; translateLocal: [26mm,d.crankcaseFloor - 8mm,1.5 * d.cylinderSpacing]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; }+ </Assembly>+ Anchor: Crankcase;+}diff --git a/fixtures/Canonical/EditableV8/assemblies/crankshaft.firmament b/fixtures/Canonical/EditableV8/assemblies/crankshaft.firmamentnew file mode 100644index 00000000..05496437--- /dev/null+++ b/fixtures/Canonical/EditableV8/assemblies/crankshaft.firmament@@ -0,0 +1,77 @@+include "../interfaces";+include "../design";++Inventory Record Parts {+ pairedCrankpin: Part = Firmament("../parts/PairedCrankpin").PairedCrankpin+ crankWeb: Part = Firmament("../parts/CrankWeb").CrankWeb+ longMainJournal: Part = Firmament("../parts/LongMainJournal").LongMainJournal+ flywheel: Part = Firmament("../parts/Flywheel").Flywheel+}++// Local coordinates belong to this reusable unit; the engine places it once.+Subassembly Crankshaft {+ <Assembly Crankshaft>+ <Part Crankpin1 = Parts.pairedCrankpin>+ Placement { from: Origin; to: World; translateLocal: [0.7071067811865476 * d.crankRadius,0.7071067811865476 * d.crankRadius,0 * d.cylinderSpacing]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part CrankWeb1A = Parts.crankWeb>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,0 * d.cylinderSpacing - 22mm]; normal: [0,0,1]; up: [0.7071067811865476,0.7071067811865476,0]; }+ </Part>+ <Part CrankWeb1B = Parts.crankWeb>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,0 * d.cylinderSpacing + 22mm]; normal: [0,0,1]; up: [0.7071067811865476,0.7071067811865476,0]; }+ </Part>+ <Part Crankpin2 = Parts.pairedCrankpin>+ Placement { from: Origin; to: World; translateLocal: [0.7071067811865476 * d.crankRadius,-0.7071067811865475 * d.crankRadius,1 * d.cylinderSpacing]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part CrankWeb2A = Parts.crankWeb>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,1 * d.cylinderSpacing - 22mm]; normal: [0,0,1]; up: [0.7071067811865476,-0.7071067811865475,0]; }+ </Part>+ <Part CrankWeb2B = Parts.crankWeb>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,1 * d.cylinderSpacing + 22mm]; normal: [0,0,1]; up: [0.7071067811865476,-0.7071067811865475,0]; }+ </Part>+ <Part Crankpin3 = Parts.pairedCrankpin>+ Placement { from: Origin; to: World; translateLocal: [-0.7071067811865477 * d.crankRadius,0.7071067811865474 * d.crankRadius,2 * d.cylinderSpacing]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part CrankWeb3A = Parts.crankWeb>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,2 * d.cylinderSpacing - 22mm]; normal: [0,0,1]; up: [-0.7071067811865477,0.7071067811865474,0]; }+ </Part>+ <Part CrankWeb3B = Parts.crankWeb>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,2 * d.cylinderSpacing + 22mm]; normal: [0,0,1]; up: [-0.7071067811865477,0.7071067811865474,0]; }+ </Part>+ <Part Crankpin4 = Parts.pairedCrankpin>+ Placement { from: Origin; to: World; translateLocal: [-0.7071067811865475 * d.crankRadius,-0.7071067811865477 * d.crankRadius,3 * d.cylinderSpacing]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part CrankWeb4A = Parts.crankWeb>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,3 * d.cylinderSpacing - 22mm]; normal: [0,0,1]; up: [-0.7071067811865475,-0.7071067811865477,0]; }+ </Part>+ <Part CrankWeb4B = Parts.crankWeb>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,3 * d.cylinderSpacing + 22mm]; normal: [0,0,1]; up: [-0.7071067811865475,-0.7071067811865477,0]; }+ </Part>+ <Part MainJournal1 = Parts.longMainJournal>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(0 - 0.5) * d.cylinderSpacing]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part MainJournal2 = Parts.longMainJournal>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(1 - 0.5) * d.cylinderSpacing]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part MainJournal3 = Parts.longMainJournal>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(2 - 0.5) * d.cylinderSpacing]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part MainJournal4 = Parts.longMainJournal>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(3 - 0.5) * d.cylinderSpacing]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part MainJournal5 = Parts.longMainJournal>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,(4 - 0.5) * d.cylinderSpacing]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part Flywheel = Parts.flywheel>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,-d.cylinderSpacing + 20mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; }+ </Assembly>+ expose {+ Semantic Pin1 = Crankpin1.Mount;+ Semantic Pin2 = Crankpin2.Mount;+ Semantic Pin3 = Crankpin3.Mount;+ Semantic Pin4 = Crankpin4.Mount;+ }+ Anchor: Crankshaft;+}diff --git a/fixtures/Canonical/EditableV8/assemblies/cylinder.firmament b/fixtures/Canonical/EditableV8/assemblies/cylinder.firmamentnew file mode 100644index 00000000..ff4046a0--- /dev/null+++ b/fixtures/Canonical/EditableV8/assemblies/cylinder.firmament@@ -0,0 +1,74 @@+include "../design";+include "../cylinder-config";+include "../interfaces";+Inventory Record Parts {+ connectingRod: Part = Firmament("../parts/ConnectingRod").ConnectingRod+ pistonCrown: Part = Firmament("../parts/PistonCrown").PistonCrown+ pistonSkirt: Part = Firmament("../parts/PistonSkirt").PistonSkirt+ pistonLug: Part = Firmament("../parts/PistonLug").PistonLug+ wristPin: Part = Firmament("../parts/WristPin").WristPin+ cylinderSleeve: Part = Firmament("../parts/CylinderSleeve").CylinderSleeve+ cylinderHead: Part = Firmament("../parts/CylinderHead").CylinderHead+ intakeValve: Part = Firmament("../parts/IntakeValve").IntakeValve+ exhaustValve: Part = Firmament("../parts/ExhaustValve").ExhaustValve+ valveStem: Part = Firmament("../parts/ValveStem").ValveStem+ springRetainer: Part = Firmament("../parts/SpringRetainer").SpringRetainer+ valveSpring: Part = Firmament("../parts/ParameterizedValveSpring").ValveSpring+}++Template<config: CylinderConfig>+Subassembly CylinderUnit {+ // Layout owns local geometry intent; the parent installs this unit once.+ Concept Struct Layout {+ Axis Rod { origin: [config.rest.rodX,config.rest.rodY,0mm]; direction: [0,0,1]; reference: [config.rest.rodCos,-config.rest.rodSin,0]; }+ Axis PistonPin { origin: [0mm,config.rest.pistonY,0mm]; direction: [0,0,1]; reference: [1,0,0]; }+ Axis Bore { origin: [0mm,0mm,0mm]; direction: [0,1,0]; reference: [1,0,0]; }+ Axis Intake { origin: [0mm,0mm,-20mm]; direction: [0,1,0]; reference: [1,0,0]; }+ Axis Exhaust { origin: [0mm,0mm,20mm]; direction: [0,1,0]; reference: [1,0,0]; }+ }+ <Assembly CylinderUnit>+ <Part Rod = Parts.connectingRod></Part>+ <Part Piston = Parts.pistonCrown></Part>+ <Part PistonSkirt = Parts.pistonSkirt></Part>+ <Part PistonLugA = Parts.pistonLug></Part>+ <Part PistonLugB = Parts.pistonLug></Part>+ <Part WristPin = Parts.wristPin></Part>+ <Part Cylinder = Parts.cylinderSleeve></Part>+ <Part Head = Parts.cylinderHead></Part>+ <Part IntakeValve = Parts.intakeValve></Part>+ <Part IntakeStem = Parts.valveStem></Part>+ <Part IntakeRetainer = Parts.springRetainer></Part>+ <Part IntakeSpring = Parts.valveSpring<pitch: config.rest.intakePitch>></Part>+ <Part ExhaustValve = Parts.exhaustValve></Part>+ <Part ExhaustStem = Parts.valveStem></Part>+ <Part ExhaustRetainer = Parts.springRetainer></Part>+ <Part ExhaustSpring = Parts.valveSpring<pitch: config.rest.exhaustPitch>></Part>+ Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; }+ </Assembly>+ Interface<Fixed> RodStack { datum: Layout.Rod; members: [CylinderUnit.Rod.BigEnd]; }+ Mate SeatRod: RodStack { member: CylinderUnit.Rod.BigEnd; at: 0mm; clocking: 0deg; }+ Interface<Fixed> PistonPinStack { datum: Layout.PistonPin; members: [CylinderUnit.PistonLugA.Mount, CylinderUnit.PistonLugB.Mount, CylinderUnit.WristPin.Mount]; }+ Mate SeatPistonLugA: PistonPinStack { member: CylinderUnit.PistonLugA.Mount; at: -16mm; clocking: 0deg; }+ Mate SeatPistonLugB: PistonPinStack { member: CylinderUnit.PistonLugB.Mount; at: 16mm; clocking: 0deg; }+ Mate SeatWristPin: PistonPinStack { member: CylinderUnit.WristPin.Mount; at: 0mm; clocking: 0deg; }+ Interface<Fixed> BoreStack { datum: Layout.Bore; members: [CylinderUnit.Piston.Mount, CylinderUnit.PistonSkirt.Mount, CylinderUnit.Cylinder.Mount, CylinderUnit.Head.Mount]; }+ Mate SeatPiston: BoreStack { member: CylinderUnit.Piston.Mount; at: config.rest.pistonY + 32.5mm; clocking: 0deg; }+ Mate SeatPistonSkirt: BoreStack { member: CylinderUnit.PistonSkirt.Mount; at: config.rest.pistonY + 12.5mm; clocking: 0deg; }+ Mate SeatCylinder: BoreStack { member: CylinderUnit.Cylinder.Mount; at: d.sleeveSeatHeight; clocking: 0deg; }+ Mate SeatHead: BoreStack { member: CylinderUnit.Head.Mount; at: d.deckHeight + 13mm; clocking: 0deg; }+ Interface<Fixed> IntakeStack { datum: Layout.Intake; members: [CylinderUnit.IntakeValve.Mount, CylinderUnit.IntakeStem.Mount, CylinderUnit.IntakeRetainer.Mount, CylinderUnit.IntakeSpring.Winding]; }+ Mate SeatIntakeValve: IntakeStack { member: CylinderUnit.IntakeValve.Mount; at: d.deckHeight + 6mm - config.rest.intakeLift; clocking: 0deg; }+ Mate SeatIntakeStem: IntakeStack { member: CylinderUnit.IntakeStem.Mount; at: d.deckHeight + 38mm - config.rest.intakeLift; clocking: 0deg; }+ Mate SeatIntakeRetainer: IntakeStack { member: CylinderUnit.IntakeRetainer.Mount; at: d.deckHeight + 58.5mm - config.rest.intakeLift; clocking: 0deg; }+ Mate SeatIntakeSpring: IntakeStack { member: CylinderUnit.IntakeSpring.Winding; at: d.deckHeight + 20mm; clocking: 0deg; }+ Interface<Fixed> ExhaustStack { datum: Layout.Exhaust; members: [CylinderUnit.ExhaustValve.Mount, CylinderUnit.ExhaustStem.Mount, CylinderUnit.ExhaustRetainer.Mount, CylinderUnit.ExhaustSpring.Winding]; }+ Mate SeatExhaustValve: ExhaustStack { member: CylinderUnit.ExhaustValve.Mount; at: d.deckHeight + 6mm - config.rest.exhaustLift; clocking: 0deg; }+ Mate SeatExhaustStem: ExhaustStack { member: CylinderUnit.ExhaustStem.Mount; at: d.deckHeight + 38mm - config.rest.exhaustLift; clocking: 0deg; }+ Mate SeatExhaustRetainer: ExhaustStack { member: CylinderUnit.ExhaustRetainer.Mount; at: d.deckHeight + 58.5mm - config.rest.exhaustLift; clocking: 0deg; }+ Mate SeatExhaustSpring: ExhaustStack { member: CylinderUnit.ExhaustSpring.Winding; at: d.deckHeight + 20mm; clocking: 0deg; }+ Mate WristFit: PinBoreFit { Pin: CylinderUnit.WristPin.Mount; Bore: CylinderUnit.Rod.SmallEnd; }+ Mate IntakeSpringFit: SpringStemFit { Spring: CylinderUnit.IntakeSpring.Winding; Stem: CylinderUnit.IntakeStem.Mount; }+ Mate ExhaustSpringFit: SpringStemFit { Spring: CylinderUnit.ExhaustSpring.Winding; Stem: CylinderUnit.ExhaustStem.Mount; }+ anchor: CylinderUnit;+ expose { Semantic RodBore = Rod.BigEnd; }+}diff --git a/fixtures/Canonical/EditableV8/assemblies/stage-a.firmament b/fixtures/Canonical/EditableV8/assemblies/stage-a.firmamentnew file mode 100644index 00000000..a00808b6--- /dev/null+++ b/fixtures/Canonical/EditableV8/assemblies/stage-a.firmament@@ -0,0 +1,51 @@+include "../interfaces";+include "../design";++Inventory Record Parts {+ connectingRod: Part = Firmament("../parts/ConnectingRod").ConnectingRod+ pistonCrown: Part = Firmament("../parts/PistonCrown").PistonCrown+ pistonLug: Part = Firmament("../parts/PistonLug").PistonLug+ wristPin: Part = Firmament("../parts/WristPin").WristPin+ cylinderSleeve: Part = Firmament("../parts/CylinderSleeve").CylinderSleeve+ crankpin: Part = Firmament("../parts/Crankpin").Crankpin+ crankWeb: Part = Firmament("../parts/CrankWeb").CrankWeb+ mainJournal: Part = Firmament("../parts/MainJournal").MainJournal+}++// Local coordinates belong to this reusable unit; the engine places it once.+Subassembly StageA {+ <Assembly StageA>+ <Part Rod1 = Parts.connectingRod></Part>+ <Part Piston1 = Parts.pistonCrown>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.rodLength + d.crankRadius + 32.5mm,0mm]; normal: [0,1,0]; up: [0,0,-1]; }+ </Part>+ <Part PistonLug1A = Parts.pistonLug>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.rodLength + d.crankRadius,-16mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part PistonLug1B = Parts.pistonLug>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.rodLength + d.crankRadius,16mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part WristPin1 = Parts.wristPin></Part>+ <Part Cylinder1 = Parts.cylinderSleeve>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.sleeveSeatHeight,0mm]; normal: [0,1,0]; up: [0,0,-1]; }+ </Part>+ <Part Crankpin1 = Parts.crankpin>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.crankRadius,0mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part CrankWeb1A = Parts.crankWeb>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,-19mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part CrankWeb1B = Parts.crankWeb>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,19mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part MainJournal1 = Parts.mainJournal>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,-35mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part MainJournal2 = Parts.mainJournal>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,35mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ </Assembly>+ Mate InstallRod: JournalBoreSeat { Moving: StageA.Rod1.Mount; Fixed: StageA.Crankpin1.Mount; }+ Mate InstallPin: WristPinSeat { Moving: StageA.WristPin1.Mount; Fixed: StageA.Rod1.SmallEnd; }+ Anchor: StageA;+}diff --git a/fixtures/Canonical/EditableV8/assemblies/stage-b.firmament b/fixtures/Canonical/EditableV8/assemblies/stage-b.firmamentnew file mode 100644index 00000000..ecab0f5f--- /dev/null+++ b/fixtures/Canonical/EditableV8/assemblies/stage-b.firmament@@ -0,0 +1,86 @@+include "../interfaces";+include "../design";++Inventory Record Parts {+ connectingRod: Part = Firmament("../parts/ConnectingRod").ConnectingRod+ pistonCrown: Part = Firmament("../parts/PistonCrown").PistonCrown+ pistonLug: Part = Firmament("../parts/PistonLug").PistonLug+ wristPin: Part = Firmament("../parts/WristPin").WristPin+ cylinderSleeve: Part = Firmament("../parts/CylinderSleeve").CylinderSleeve+ crankpin: Part = Firmament("../parts/Crankpin").Crankpin+ crankWeb: Part = Firmament("../parts/CrankWeb").CrankWeb+ mainJournal: Part = Firmament("../parts/MainJournal").MainJournal+ cylinderHead: Part = Firmament("../parts/CylinderHead").CylinderHead+ intakeValve: Part = Firmament("../parts/IntakeValve").IntakeValve+ valveStem: Part = Firmament("../parts/ValveStem").ValveStem+ springRetainer: Part = Firmament("../parts/SpringRetainer").SpringRetainer+ valveSpring: Part = Firmament("../parts/ValveSpring").ValveSpring+ exhaustValve: Part = Firmament("../parts/ExhaustValve").ExhaustValve+}++// Local coordinates belong to this reusable unit; the engine places it once.+Subassembly StageB {+ <Assembly StageB>+ <Part Rod1 = Parts.connectingRod></Part>+ <Part Piston1 = Parts.pistonCrown>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.rodLength + d.crankRadius + 32.5mm,0mm]; normal: [0,1,0]; up: [0,0,-1]; }+ </Part>+ <Part PistonLug1A = Parts.pistonLug>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.rodLength + d.crankRadius,-16mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part PistonLug1B = Parts.pistonLug>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.rodLength + d.crankRadius,16mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part WristPin1 = Parts.wristPin></Part>+ <Part Cylinder1 = Parts.cylinderSleeve>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.sleeveSeatHeight,0mm]; normal: [0,1,0]; up: [0,0,-1]; }+ </Part>+ <Part Crankpin1 = Parts.crankpin>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.crankRadius,0mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part CrankWeb1A = Parts.crankWeb>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,-19mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part CrankWeb1B = Parts.crankWeb>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,19mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part MainJournal1 = Parts.mainJournal>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,-35mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part MainJournal2 = Parts.mainJournal>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,35mm]; normal: [0,0,1]; up: [0,1,0]; }+ </Part>+ <Part Head1 = Parts.cylinderHead>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.deckHeight + 13mm,0mm]; normal: [0,1,0]; up: [0,0,-1]; }+ </Part>+ <Part IntakeValve1 = Parts.intakeValve>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.deckHeight + 6mm,-20mm]; normal: [0,1,0]; up: [0,0,-1]; }+ </Part>+ <Part IntakeStem1 = Parts.valveStem>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.deckHeight + 38mm,-20mm]; normal: [0,1,0]; up: [0,0,-1]; }+ </Part>+ <Part IntakeRetainer1 = Parts.springRetainer>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.deckHeight + 58.5mm,-20mm]; normal: [0,1,0]; up: [0,0,-1]; }+ </Part>+ <Part IntakeSpring1 = Parts.valveSpring>+ Placement { from: Winding.Frame; to: World; translateLocal: [0mm,d.deckHeight + 20mm,-20mm]; normal: [0,1,0]; up: [0,0,-1]; }+ </Part>+ <Part ExhaustValve1 = Parts.exhaustValve>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.deckHeight + 6mm,20mm]; normal: [0,1,0]; up: [0,0,-1]; }+ </Part>+ <Part ExhaustStem1 = Parts.valveStem>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.deckHeight + 38mm,20mm]; normal: [0,1,0]; up: [0,0,-1]; }+ </Part>+ <Part ExhaustRetainer1 = Parts.springRetainer>+ Placement { from: Origin; to: World; translateLocal: [0mm,d.deckHeight + 58.5mm,20mm]; normal: [0,1,0]; up: [0,0,-1]; }+ </Part>+ <Part ExhaustSpring1 = Parts.valveSpring>+ Placement { from: Winding.Frame; to: World; translateLocal: [0mm,d.deckHeight + 20mm,20mm]; normal: [0,1,0]; up: [0,0,-1]; }+ </Part>+ </Assembly>+ Mate InstallRod: JournalBoreSeat { Moving: StageB.Rod1.Mount; Fixed: StageB.Crankpin1.Mount; }+ Mate InstallPin: WristPinSeat { Moving: StageB.WristPin1.Mount; Fixed: StageB.Rod1.SmallEnd; }+ Anchor: StageB;+ Mate InstallIntakeSpring1: SpringStemFit { Spring: StageB.IntakeSpring1.Winding; Stem: StageB.IntakeStem1.Mount; }+ Mate InstallExhaustSpring1: SpringStemFit { Spring: StageB.ExhaustSpring1.Winding; Stem: StageB.ExhaustStem1.Mount; }+}diff --git a/fixtures/Canonical/EditableV8/bank-rest-configurations.firmament b/fixtures/Canonical/EditableV8/bank-rest-configurations.firmamentnew file mode 100644index 00000000..857fc9aa--- /dev/null+++ b/fixtures/Canonical/EditableV8/bank-rest-configurations.firmament@@ -0,0 +1,11 @@+// Indexed scalar rest data; no Part transforms.+Static restC1: CylinderRest = standardRest with { rodX: 0mm; rodY: 44.000000000000007mm; rodSin: 0; rodCos: 1.0000000000000002; pistonY: 189.00000000000003mm; intakeLift: 0mm; exhaustLift: 0mm; intakePitch: 6mm; exhaustPitch: 6mm }+Static restC3: CylinderRest = standardRest with { rodX: 44mm; rodY: 0.0000000000000035527136788005009mm; rodSin: -0.30344827586206879; rodCos: 0.95284791224850662; pistonY: 138.16294727603349mm; intakeLift: 9mm; exhaustLift: 0mm; intakePitch: 4.5mm; exhaustPitch: 6mm }+Static restC5: CylinderRest = standardRest with { rodX: -44mm; rodY: -0.000000000000010658141036401503mm; rodSin: 0.30344827586206874; rodCos: 0.95284791224850673; pistonY: 138.16294727603349mm; intakeLift: 0mm; exhaustLift: 0mm; intakePitch: 6mm; exhaustPitch: 6mm }+Static restC7: CylinderRest = standardRest with { rodX: 0.0000000000000071054273576010019mm; rodY: -44.000000000000007mm; rodSin: 0; rodCos: 1.0000000000000002; pistonY: 101.00000000000003mm; intakeLift: 0mm; exhaustLift: 0mm; intakePitch: 6mm; exhaustPitch: 6mm }+Static cylinderConfigs: Set<CylinderConfig> {+ C1 => standardCylinder with { bankSin: 0.70710678118654757; bankCos: 0.70710678118654757; z: 63mm; journal: EditableV8.Crankshaft.Pin1; rest: restC1 }+ C3 => standardCylinder with { bankSin: 0.70710678118654757; bankCos: 0.70710678118654757; z: 173mm; journal: EditableV8.Crankshaft.Pin2; rest: restC3 }+ C5 => standardCylinder with { bankSin: 0.70710678118654757; bankCos: 0.70710678118654757; z: 283mm; journal: EditableV8.Crankshaft.Pin3; rest: restC5 }+ C7 => standardCylinder with { bankSin: 0.70710678118654757; bankCos: 0.70710678118654757; z: 393mm; journal: EditableV8.Crankshaft.Pin4; rest: restC7 }+}diff --git a/fixtures/Canonical/EditableV8/bank.firmasm b/fixtures/Canonical/EditableV8/bank.firmasmnew file mode 100644index 00000000..5d4ab7d7--- /dev/null+++ b/fixtures/Canonical/EditableV8/bank.firmasm@@ -0,0 +1,43 @@+include "cylinder-config";+include "bank-rest-configurations";+include "interfaces";+include "design";++Inventory Record Units {+ cylinder: Subassembly = Firmament("assemblies/cylinder").CylinderUnit+ crankshaft: Subassembly = Firmament("assemblies/crankshaft").Crankshaft+ crankcase: Subassembly = Firmament("assemblies/crankcase").Crankcase+ camRight: Subassembly = Firmament("assemblies/cam-right").CamRight+ camLeft: Subassembly = Firmament("assemblies/cam-left").CamLeft+}++Concept Struct EngineLayout {+ Axis Shaft { origin: [0mm,0mm,d.cylinderSpacing / 2]; direction: [0,0,1]; reference: [1,0,0]; }+ Axis RightCam { origin: [0.7071067811865475 * d.camHeight,0.7071067811865476 * d.camHeight,2 * d.cylinderSpacing]; direction: [0,0,1]; reference: [1,0,0]; }+ Axis LeftCam { origin: [-0.7071067811865475 * d.camHeight,0.7071067811865476 * d.camHeight,2 * d.cylinderSpacing]; direction: [0,0,1]; reference: [1,0,0]; }+}+// Product ownership is separate from the prescribed analytical motion.+Assembly EditableV8 {+ <Assembly EditableV8>+ Pattern Cylinders over cylinderConfigs {+ config => {+ <Assembly Cylinder = Units.cylinder<config: config>></Assembly>+ Concept Struct Installation {+ Axis Mount { origin: [0mm,0mm,config.z]; direction: [0,0,1]; reference: [config.bankCos,-config.bankSin,0]; }+ }+ Interface<Fixed> CylinderSeat { datum: Installation.Mount; members: [Cylinder.Mount]; }+ Mate Install: CylinderSeat { member: Cylinder.Mount; at: 0mm; clocking: 0deg; }+ Mate RodJournal: JournalFit { Journal: config.journal; Bore: Cylinder.RodBore; }+ }+ }+ <Assembly Crankshaft = Units.crankshaft></Assembly>+ <Assembly Crankcase = Units.crankcase></Assembly>+ <Assembly CamRight = Units.camRight></Assembly>+ </Assembly>+ Interface<Fixed> ShaftLayout { datum: EngineLayout.Shaft; members: [EditableV8.Crankshaft.Mount, EditableV8.Crankcase.Mount]; }+ Mate InstallCrankshaft: ShaftLayout { member: EditableV8.Crankshaft.Mount; at: 0mm; clocking: 0deg; }+ Mate InstallCrankcase: ShaftLayout { member: EditableV8.Crankcase.Mount; at: 0mm; clocking: 0deg; }+ Interface<Fixed> RightCamLayout { datum: EngineLayout.RightCam; members: [EditableV8.CamRight.Mount]; }+ Mate InstallRightCam: RightCamLayout { member: EditableV8.CamRight.Mount; at: 0mm; clocking: 0deg; }+ anchor: EditableV8;+}diff --git a/fixtures/Canonical/EditableV8/construction.firmament b/fixtures/Canonical/EditableV8/construction.firmamentnew file mode 100644index 00000000..99efc9c2--- /dev/null+++ b/fixtures/Canonical/EditableV8/construction.firmament@@ -0,0 +1,61 @@+// Shared geometric construction recipes; concrete Parts select dimensions and publish ports.++Template<r: Length, zmin: Length, zmax: Length> Struct DiscStock {+ Circle2 Outside { center: [0mm,0mm] radius: r }+ Profile Section { Loop Outer { Outside |> TraceLoop } }+ Extrude Body { profile: Section from: zmin to: zmax }+}++Template<coil: SpringDimensions> Struct CoilStock {+ WireForm Spring {+ diameter: 2mm+ material: Standard.Materials.StainlessSteel.304_Annealed+ StartFrame { origin: [0mm,0mm,0mm]; tangent: [1,0,0]; up: [0,0,1] }+ Helix Winding { radius: 9mm; turns: 6; pitch: coil.pitch; handedness: RightHanded; startPhase: 0deg }+ }+}++Template<l: Length, h: Length, c: Length> Struct RodStock {+ Polygon2<Trapezoid> Outside { center: [0mm,c] bottomWidth: 52mm topWidth: 28mm height: h }+ Profile Section { Loop Outer { Outside |> TraceLoop } }+ Compose Body {+ Base Stock { profile: Section from: -6mm to: 6mm role: Stock }+ Hole<Shaft> BigEnd { on: +Z center: Point2(0mm,0mm) diameter: 44.4mm end: ThroughAll }+ Hole<Shaft> SmallEnd { on: +Z center: Point2(0mm,l) diameter: 16.4mm end: ThroughAll }+ }+}++Template<w: Length, h: Length, c: Length, zmin: Length, zmax: Length> Struct PlateStock {+ Rect2 Outside { center: [0mm,c] size: [w,h] }+ Profile Section { Loop Outer { Outside |> TraceLoop } }+ Compose Body {+ Base Stock { profile: Section from: zmin to: zmax role: Stock }++ }+}++Template<w: Length, h: Length, c: Length, zmin: Length, zmax: Length, holeY0: Length, holeD0: Length, holeY1: Length, holeD1: Length> Struct TwoBoreStock {+ Rect2 Outside { center: [0mm,c] size: [w,h] }+ Profile Section { Loop Outer { Outside |> TraceLoop } }+ Compose Body {+ Base Stock { profile: Section from: zmin to: zmax role: Stock }+ Hole<Shaft> Pin0 { on: +Z center: Point2(0mm,holeY0) diameter: holeD0 end: ThroughAll }+ Hole<Shaft> Pin1 { on: +Z center: Point2(0mm,holeY1) diameter: holeD1 end: ThroughAll }+ }+}++Template<rout: Length, rin: Length, zmin: Length, zmax: Length> Struct AnnulusStock {+ Circle2 Outside { center: [0mm,0mm] radius: rout }+ Circle2 Inside { center: [0mm,0mm] radius: rin }+ Profile Section { Loop Outer { Outside |> TraceLoop } Loop Inner { Inside |> TraceLoop } }+ Extrude Body { profile: Section from: zmin to: zmax }+}++Template<w: Length, h: Length, c: Length, zmin: Length, zmax: Length, holeY0: Length, holeD0: Length> Struct OneBoreStock {+ Rect2 Outside { center: [0mm,c] size: [w,h] }+ Profile Section { Loop Outer { Outside |> TraceLoop } }+ Compose Body {+ Base Stock { profile: Section from: zmin to: zmax role: Stock }+ Hole<Shaft> Pin0 { on: +Z center: Point2(0mm,holeY0) diameter: holeD0 end: ThroughAll }+ }+}diff --git a/fixtures/Canonical/EditableV8/cylinder-config.firmament b/fixtures/Canonical/EditableV8/cylinder-config.firmamentnew file mode 100644index 00000000..15a46913--- /dev/null+++ b/fixtures/Canonical/EditableV8/cylinder-config.firmament@@ -0,0 +1,37 @@+// Typed installation and immutable scalar rest-state input. Motion laws remain separate.+Record CylinderRest {+ rodX: Length+ rodY: Length+ rodSin: Float+ rodCos: Float+ pistonY: Length+ intakeLift: Length+ exhaustLift: Length+ intakePitch: Length+ exhaustPitch: Length+}+Record CylinderConfig {+ bankSin: Float+ bankCos: Float+ z: Length+ journal: ProfilePath+ rest: CylinderRest+}+Static standardRest: CylinderRest = CylinderRest {+ rodX: 0mm+ rodY: 0mm+ rodSin: 0+ rodCos: 1+ pistonY: 0mm+ intakeLift: 0mm+ exhaustLift: 0mm+ intakePitch: 6mm+ exhaustPitch: 6mm+}+Static standardCylinder: CylinderConfig = CylinderConfig {+ bankSin: 0+ bankCos: 1+ z: 0mm+ journal: EditableV8.Crankshaft.Pin1+ rest: standardRest+}diff --git a/fixtures/Canonical/EditableV8/design.firmament b/fixtures/Canonical/EditableV8/design.firmamentnew file mode 100644index 00000000..93df4df8--- /dev/null+++ b/fixtures/Canonical/EditableV8/design.firmament@@ -0,0 +1,58 @@+// Millimetre dimensions from the same typed specification as the mechanism.+Record EngineDimensions {+ crankRadius: Length+ cylinderSpacing: Length+ crankcaseFloor: Length+ camHeight: Length+ deckHeight: Length+ sleeveSeatHeight: Length+ rodLength: Length+ rodHeight: Length+ rodCenter: Length+ pistonRadius: Length+ skirtInnerRadius: Length+ sleeveOuterRadius: Length+ boreRadius: Length+ sleeveMin: Length+ sleeveMax: Length+ webHeight: Length+ webCenter: Length+ journalMin: Length+ journalMax: Length+ headWidth: Length+ compressedPitch: Length+ supportHeight: Length+ supportCenter: Length+ caseMin: Length+ caseMax: Length+}+Static d: EngineDimensions = EngineDimensions {+ crankRadius: 44mm+ cylinderSpacing: 110mm+ crankcaseFloor: -85.849859110708522mm+ camHeight: 312mm+ deckHeight: 232mm+ sleeveSeatHeight: 173.5mm+ rodLength: 145mm+ rodHeight: 193mm+ rodCenter: 72.5mm+ pistonRadius: 44.700000000000003mm+ skirtInnerRadius: 40.700000000000003mm+ sleeveOuterRadius: 51mm+ boreRadius: 45mm+ sleeveMin: -58.5mm+ sleeveMax: 58.5mm+ webHeight: 104mm+ webCenter: 22mm+ journalMin: -27mm+ journalMax: 27mm+ headWidth: 102mm+ compressedPitch: 4.5mm+ supportHeight: 121.84985911070852mm+ supportCenter: -24.924929555354261mm+ caseMin: -228mm+ caseMax: 228mm+}+Record SpringDimensions { pitch: Length }+Static freeCoil: SpringDimensions = SpringDimensions { pitch: 6mm }+Static compressedCoil: SpringDimensions = SpringDimensions { pitch: 4.5mm }diff --git a/fixtures/Canonical/EditableV8/engine.firmasm b/fixtures/Canonical/EditableV8/engine.firmasmnew file mode 100644index 00000000..6167c27f--- /dev/null+++ b/fixtures/Canonical/EditableV8/engine.firmasm@@ -0,0 +1,46 @@+include "cylinder-config";+include "rest-configurations";+include "interfaces";+include "design";++Inventory Record Units {+ cylinder: Subassembly = Firmament("assemblies/cylinder").CylinderUnit+ crankshaft: Subassembly = Firmament("assemblies/crankshaft").Crankshaft+ crankcase: Subassembly = Firmament("assemblies/crankcase").Crankcase+ camRight: Subassembly = Firmament("assemblies/cam-right").CamRight+ camLeft: Subassembly = Firmament("assemblies/cam-left").CamLeft+}++Concept Struct EngineLayout {+ Axis Shaft { origin: [0mm,0mm,d.cylinderSpacing / 2]; direction: [0,0,1]; reference: [1,0,0]; }+ Axis RightCam { origin: [0.7071067811865475 * d.camHeight,0.7071067811865476 * d.camHeight,2 * d.cylinderSpacing]; direction: [0,0,1]; reference: [1,0,0]; }+ Axis LeftCam { origin: [-0.7071067811865475 * d.camHeight,0.7071067811865476 * d.camHeight,2 * d.cylinderSpacing]; direction: [0,0,1]; reference: [1,0,0]; }+}+// Product ownership is separate from the prescribed analytical motion.+Assembly EditableV8 {+ <Assembly EditableV8>+ Pattern Cylinders over cylinderConfigs {+ config => {+ <Assembly Cylinder = Units.cylinder<config: config>></Assembly>+ Concept Struct Installation {+ Axis Mount { origin: [0mm,0mm,config.z]; direction: [0,0,1]; reference: [config.bankCos,-config.bankSin,0]; }+ }+ Interface<Fixed> CylinderSeat { datum: Installation.Mount; members: [Cylinder.Mount]; }+ Mate Install: CylinderSeat { member: Cylinder.Mount; at: 0mm; clocking: 0deg; }+ Mate RodJournal: JournalFit { Journal: config.journal; Bore: Cylinder.RodBore; }+ }+ }+ <Assembly Crankshaft = Units.crankshaft></Assembly>+ <Assembly Crankcase = Units.crankcase></Assembly>+ <Assembly CamRight = Units.camRight></Assembly>+ <Assembly CamLeft = Units.camLeft></Assembly>+ </Assembly>+ Interface<Fixed> ShaftLayout { datum: EngineLayout.Shaft; members: [EditableV8.Crankshaft.Mount, EditableV8.Crankcase.Mount]; }+ Mate InstallCrankshaft: ShaftLayout { member: EditableV8.Crankshaft.Mount; at: 0mm; clocking: 0deg; }+ Mate InstallCrankcase: ShaftLayout { member: EditableV8.Crankcase.Mount; at: 0mm; clocking: 0deg; }+ Interface<Fixed> RightCamLayout { datum: EngineLayout.RightCam; members: [EditableV8.CamRight.Mount]; }+ Mate InstallRightCam: RightCamLayout { member: EditableV8.CamRight.Mount; at: 0mm; clocking: 0deg; }+ Interface<Fixed> LeftCamLayout { datum: EngineLayout.LeftCam; members: [EditableV8.CamLeft.Mount]; }+ Mate InstallLeftCam: LeftCamLayout { member: EditableV8.CamLeft.Mount; at: 0mm; clocking: 0deg; }+ anchor: EditableV8;+}diff --git a/fixtures/Canonical/EditableV8/geometry-reference.expected.json b/fixtures/Canonical/EditableV8/geometry-reference.expected.jsonnew file mode 100644index 00000000..9108be52--- /dev/null+++ b/fixtures/Canonical/EditableV8/geometry-reference.expected.json@@ -0,0 +1,3772 @@+{+ "schema": "aetheris/editable-v8-port-reference/1",+ "originalSourceSha256": "A6F85244F59819DFE0127525801866765968C4059C69B380D43862011F390CDA",+ "bodyCount": 171,+ "definitionCount": 21,+ "bindings": [+ {+ "name": "Rod1",+ "meshSha256": "F37704DE87AFE6959757C339EB04B98931E1B2F03979CE49E98A94F44184460C",+ "rest": [+ 0.7071067811865477,+ -0.7071067811865477,+ 0,+ 0,+ 0.7071067811865477,+ 0.7071067811865477,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 31.11269837220809,+ 31.11269837220809,+ 63,+ 1+ ]+ },+ {+ "name": "Piston1",+ "meshSha256": "0F849344F1643836A219F2DDF699586B7AA72B609B66170A368C33011EA82217",+ "rest": [+ 0.7071067811865477,+ -0.7071067811865477,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865477,+ 0.7071067811865477,+ 0,+ 0,+ 156.62415203282032,+ 156.62415203282032,+ 63,+ 1+ ]+ },+ {+ "name": "PistonSkirt1",+ "meshSha256": "49468B687516AAFC70233E9DAEA4712D49E11EC8B293AC0306EE835E8C026840",+ "rest": [+ 0.7071067811865477,+ -0.7071067811865477,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865477,+ 0.7071067811865477,+ 0,+ 0,+ 142.48201640908937,+ 142.48201640908937,+ 63,+ 1+ ]+ },+ {+ "name": "PistonLugA1",+ "meshSha256": "4631B21D2469360822161C579C2DF6E5CE50766D659172AFAEE41C81492E1245",+ "rest": [+ 0.7071067811865477,+ -0.7071067811865477,+ 0,+ 0,+ 0.7071067811865477,+ 0.7071067811865477,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 133.6431816442575,+ 133.6431816442575,+ 47,+ 1+ ]+ },+ {+ "name": "PistonLugB1",+ "meshSha256": "4631B21D2469360822161C579C2DF6E5CE50766D659172AFAEE41C81492E1245",+ "rest": [+ 0.7071067811865477,+ -0.7071067811865477,+ 0,+ 0,+ 0.7071067811865477,+ 0.7071067811865477,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 133.6431816442575,+ 133.6431816442575,+ 79,+ 1+ ]+ },+ {+ "name": "WristPin1",+ "meshSha256": "E2DB7C8381F4716E323A15A20222FF10CB1C6FFE49F4DE6089F14D619DFB3C04",+ "rest": [+ 0.7071067811865477,+ -0.7071067811865477,+ 0,+ 0,+ 0.7071067811865477,+ 0.7071067811865477,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 133.6431816442575,+ 133.6431816442575,+ 63,+ 1+ ]+ },+ {+ "name": "Cylinder1",+ "meshSha256": "E3D943A132768C3D49685755A55ECFE72528F59FD062B582517F366F9DC910D0",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 122.683026535866,+ 122.683026535866,+ 63,+ 1+ ]+ },+ {+ "name": "Head1",+ "meshSha256": "8F8830EF187D5EFCAA4965930E7A7E9AE33827410988A21CF7214876C4057BFF",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 173.24116139070418,+ 173.24116139070418,+ 63,+ 1+ ]+ },+ {+ "name": "IntakeValve1",+ "meshSha256": "6B46A613524F62855FF303CB2D6EE0E7E0018156EF87D1304E6CD885B5E82E97",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 168.29141392239842,+ 168.29141392239842,+ 43,+ 1+ ]+ },+ {+ "name": "IntakeStem1",+ "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 190.9188309203679,+ 190.9188309203679,+ 43,+ 1+ ]+ },+ {+ "name": "IntakeRetainer1",+ "meshSha256": "61F4684873E25B13AE5D7DE8F946C2B5AB8C4D60F117A6EEA515A59B188F7FD5",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 205.41451993469215,+ 205.41451993469215,+ 43,+ 1+ ]+ },+ {+ "name": "IntakeSpring1",+ "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "rest": [+ 0.0746075724068663,+ 0.0746075724068663,+ -0.9944181315116434,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0.7031598041267392,+ 0.7031598041267392,+ 0.105511040753523,+ 0,+ 184.554869889689,+ 171.82694782833113,+ 43,+ 1+ ]+ },+ {+ "name": "ExhaustValve1",+ "meshSha256": "B4BCD963E0D5227000D1A7FE31A354EE4C30DFA739F8B5472BB9FF3016229FCC",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 1.9626155733547187e-17,+ 0,+ 168.29141392239842,+ 168.29141392239842,+ 83,+ 1+ ]+ },+ {+ "name": "ExhaustStem1",+ "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 190.9188309203679,+ 190.9188309203679,+ 83,+ 1+ ]+ },+ {+ "name": "ExhaustRetainer1",+ "meshSha256": "61F4684873E25B13AE5D7DE8F946C2B5AB8C4D60F117A6EEA515A59B188F7FD5",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 1.9626155733547187e-17,+ 0,+ 205.41451993469215,+ 205.41451993469215,+ 83,+ 1+ ]+ },+ {+ "name": "ExhaustSpring1",+ "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "rest": [+ 0.0746075724068663,+ 0.0746075724068663,+ -0.9944181315116434,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0.7031598041267392,+ 0.7031598041267392,+ 0.10551104075352301,+ 0,+ 184.554869889689,+ 171.82694782833113,+ 83,+ 1+ ]+ },+ {+ "name": "Rod2",+ "meshSha256": "F37704DE87AFE6959757C339EB04B98931E1B2F03979CE49E98A94F44184460C",+ "rest": [+ 0.45919488658892854,+ 0.8883355537917986,+ 0,+ 0,+ -0.8883355537917986,+ 0.45919488658892854,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 31.11269837220809,+ 31.11269837220809,+ 47,+ 1+ ]+ },+ {+ "name": "Piston2",+ "meshSha256": "0F849344F1643836A219F2DDF699586B7AA72B609B66170A368C33011EA82217",+ "rest": [+ 0.7071067811865477,+ 0.7071067811865477,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865477,+ 0.7071067811865477,+ 0,+ 0,+ -120.6769273161655,+ 120.6769273161655,+ 47,+ 1+ ]+ },+ {+ "name": "PistonSkirt2",+ "meshSha256": "49468B687516AAFC70233E9DAEA4712D49E11EC8B293AC0306EE835E8C026840",+ "rest": [+ 0.7071067811865477,+ 0.7071067811865477,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865477,+ 0.7071067811865477,+ 0,+ 0,+ -106.53479169243455,+ 106.53479169243455,+ 47,+ 1+ ]+ },+ {+ "name": "PistonLugA2",+ "meshSha256": "4631B21D2469360822161C579C2DF6E5CE50766D659172AFAEE41C81492E1245",+ "rest": [+ 0.7071067811865477,+ 0.7071067811865477,+ 0,+ 0,+ -0.7071067811865477,+ 0.7071067811865477,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -97.69595692760271,+ 97.69595692760271,+ 31,+ 1+ ]+ },+ {+ "name": "PistonLugB2",+ "meshSha256": "4631B21D2469360822161C579C2DF6E5CE50766D659172AFAEE41C81492E1245",+ "rest": [+ 0.7071067811865477,+ 0.7071067811865477,+ 0,+ 0,+ -0.7071067811865477,+ 0.7071067811865477,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -97.69595692760271,+ 97.69595692760271,+ 63,+ 1+ ]+ },+ {+ "name": "WristPin2",+ "meshSha256": "E2DB7C8381F4716E323A15A20222FF10CB1C6FFE49F4DE6089F14D619DFB3C04",+ "rest": [+ 0.7071067811865477,+ 0.7071067811865477,+ 0,+ 0,+ -0.7071067811865477,+ 0.7071067811865477,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -97.69595692760271,+ 97.69595692760271,+ 47,+ 1+ ]+ },+ {+ "name": "Cylinder2",+ "meshSha256": "E3D943A132768C3D49685755A55ECFE72528F59FD062B582517F366F9DC910D0",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -122.683026535866,+ 122.683026535866,+ 47,+ 1+ ]+ },+ {+ "name": "Head2",+ "meshSha256": "8F8830EF187D5EFCAA4965930E7A7E9AE33827410988A21CF7214876C4057BFF",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -173.24116139070418,+ 173.24116139070418,+ 47,+ 1+ ]+ },+ {+ "name": "IntakeValve2",+ "meshSha256": "6B46A613524F62855FF303CB2D6EE0E7E0018156EF87D1304E6CD885B5E82E97",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ -1.9626155733547187e-17,+ 0,+ -168.29141392239842,+ 168.29141392239842,+ 27,+ 1+ ]+ },+ {+ "name": "IntakeStem2",+ "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -190.9188309203679,+ 190.9188309203679,+ 27,+ 1+ ]+ },+ {+ "name": "IntakeRetainer2",+ "meshSha256": "61F4684873E25B13AE5D7DE8F946C2B5AB8C4D60F117A6EEA515A59B188F7FD5",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ -1.9626155733547187e-17,+ 0,+ -205.41451993469215,+ 205.41451993469215,+ 26.999999999999996,+ 1+ ]+ },+ {+ "name": "IntakeSpring2",+ "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "rest": [+ -0.0746075724068663,+ 0.0746075724068663,+ -0.9944181315116434,+ 0,+ -0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ -0.7031598041267392,+ 0.7031598041267392,+ 0.10551104075352298,+ 0,+ -171.82694782833113,+ 184.554869889689,+ 27,+ 1+ ]+ },+ {+ "name": "ExhaustValve2",+ "meshSha256": "B4BCD963E0D5227000D1A7FE31A354EE4C30DFA739F8B5472BB9FF3016229FCC",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -168.29141392239842,+ 168.29141392239842,+ 67,+ 1+ ]+ },+ {+ "name": "ExhaustStem2",+ "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -190.9188309203679,+ 190.9188309203679,+ 67,+ 1+ ]+ },+ {+ "name": "ExhaustRetainer2",+ "meshSha256": "61F4684873E25B13AE5D7DE8F946C2B5AB8C4D60F117A6EEA515A59B188F7FD5",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -205.41451993469215,+ 205.41451993469215,+ 67,+ 1+ ]+ },+ {+ "name": "ExhaustSpring2",+ "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "rest": [+ -0.0746075724068663,+ 0.0746075724068663,+ -0.9944181315116434,+ 0,+ -0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ -0.7031598041267392,+ 0.7031598041267392,+ 0.105511040753523,+ 0,+ -171.82694782833113,+ 184.554869889689,+ 67,+ 1+ ]+ },+ {+ "name": "Rod3",+ "meshSha256": "F37704DE87AFE6959757C339EB04B98931E1B2F03979CE49E98A94F44184460C",+ "rest": [+ 0.8883355537917985,+ -0.4591948865889283,+ 0,+ 0,+ 0.45919488658892843,+ 0.8883355537917985,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 31.11269837220809,+ -31.112698372208083,+ 173,+ 1+ ]+ },+ {+ "name": "Piston3",+ "meshSha256": "0F849344F1643836A219F2DDF699586B7AA72B609B66170A368C33011EA82217",+ "rest": [+ 0.7071067811865477,+ -0.7071067811865475,+ -2.894857970698211e-16,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865477,+ 0.7071067811865477,+ -2.8948579706982105e-16,+ 0,+ 120.6769273161655,+ 120.67692731616553,+ 172.99999999999994,+ 1+ ]+ },+ {+ "name": "PistonSkirt3",+ "meshSha256": "49468B687516AAFC70233E9DAEA4712D49E11EC8B293AC0306EE835E8C026840",+ "rest": [+ 0.7071067811865477,+ -0.7071067811865475,+ -2.894857970698211e-16,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865477,+ 0.7071067811865477,+ -2.8948579706982105e-16,+ 0,+ 106.53479169243455,+ 106.53479169243458,+ 172.99999999999994,+ 1+ ]+ },+ {+ "name": "PistonLugA3",+ "meshSha256": "4631B21D2469360822161C579C2DF6E5CE50766D659172AFAEE41C81492E1245",+ "rest": [+ 0.7071067811865477,+ -0.7071067811865475,+ -2.894857970698211e-16,+ 0,+ 0.7071067811865477,+ 0.7071067811865477,+ -2.8948579706982105e-16,+ 0,+ 0,+ 0,+ 1,+ 0,+ 97.69595692760271,+ 97.69595692760274,+ 156.99999999999994,+ 1+ ]+ },+ {+ "name": "PistonLugB3",+ "meshSha256": "4631B21D2469360822161C579C2DF6E5CE50766D659172AFAEE41C81492E1245",+ "rest": [+ 0.7071067811865477,+ -0.7071067811865475,+ -2.894857970698211e-16,+ 0,+ 0.7071067811865477,+ 0.7071067811865477,+ -2.8948579706982105e-16,+ 0,+ 0,+ 0,+ 1,+ 0,+ 97.69595692760271,+ 97.69595692760274,+ 188.99999999999994,+ 1+ ]+ },+ {+ "name": "WristPin3",+ "meshSha256": "E2DB7C8381F4716E323A15A20222FF10CB1C6FFE49F4DE6089F14D619DFB3C04",+ "rest": [+ 0.7071067811865477,+ -0.7071067811865475,+ -2.894857970698211e-16,+ 0,+ 0.7071067811865477,+ 0.7071067811865477,+ -2.8948579706982105e-16,+ 0,+ 0,+ 0,+ 1,+ 0,+ 97.69595692760271,+ 97.69595692760274,+ 172.99999999999994,+ 1+ ]+ },+ {+ "name": "Cylinder3",+ "meshSha256": "E3D943A132768C3D49685755A55ECFE72528F59FD062B582517F366F9DC910D0",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 122.683026535866,+ 122.683026535866,+ 173,+ 1+ ]+ },+ {+ "name": "Head3",+ "meshSha256": "8F8830EF187D5EFCAA4965930E7A7E9AE33827410988A21CF7214876C4057BFF",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 173.24116139070418,+ 173.24116139070418,+ 173,+ 1+ ]+ },+ {+ "name": "IntakeValve3",+ "meshSha256": "6B46A613524F62855FF303CB2D6EE0E7E0018156EF87D1304E6CD885B5E82E97",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 161.92745289171944,+ 161.92745289171944,+ 153,+ 1+ ]+ },+ {+ "name": "IntakeStem3",+ "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 184.55486988968897,+ 184.55486988968897,+ 153,+ 1+ ]+ },+ {+ "name": "IntakeRetainer3",+ "meshSha256": "61F4684873E25B13AE5D7DE8F946C2B5AB8C4D60F117A6EEA515A59B188F7FD5",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 199.0505589040132,+ 199.0505589040132,+ 153,+ 1+ ]+ },+ {+ "name": "IntakeSpring3",+ "meshSha256": "B6FF05DB169DD57FB23467CF7A4BD41C852347F44B99F04B51917777A508EE4F",+ "rest": [+ 0.05609244526728045,+ 0.05609244526728045,+ -0.996848672150329,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0.7048784558943032,+ 0.7048784558943032,+ 0.0793266968436585,+ 0,+ 184.55486988968897,+ 171.82694782833113,+ 153,+ 1+ ]+ },+ {+ "name": "ExhaustValve3",+ "meshSha256": "B4BCD963E0D5227000D1A7FE31A354EE4C30DFA739F8B5472BB9FF3016229FCC",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ -7.850462293418876e-17,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ -7.850462293418875e-17,+ 0,+ 168.29141392239842,+ 168.29141392239842,+ 193,+ 1+ ]+ },+ {+ "name": "ExhaustStem3",+ "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 190.9188309203679,+ 190.9188309203679,+ 193,+ 1+ ]+ },+ {+ "name": "ExhaustRetainer3",+ "meshSha256": "61F4684873E25B13AE5D7DE8F946C2B5AB8C4D60F117A6EEA515A59B188F7FD5",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ -7.850462293418876e-17,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ -7.850462293418875e-17,+ 0,+ 205.41451993469215,+ 205.41451993469215,+ 193,+ 1+ ]+ },+ {+ "name": "ExhaustSpring3",+ "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "rest": [+ 0.0746075724068663,+ 0.0746075724068663,+ -0.9944181315116434,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 7.850462293418876e-17,+ 0,+ 0.7031598041267392,+ 0.7031598041267392,+ 0.10551104075352291,+ 0,+ 184.554869889689,+ 171.82694782833113,+ 193,+ 1+ ]+ },+ {+ "name": "Rod4",+ "meshSha256": "F37704DE87AFE6959757C339EB04B98931E1B2F03979CE49E98A94F44184460C",+ "rest": [+ 0.7071067811865475,+ 0.7071067811865476,+ 0,+ 0,+ -0.7071067811865476,+ 0.7071067811865475,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 31.11269837220809,+ -31.112698372208083,+ 157,+ 1+ ]+ },+ {+ "name": "Piston4",+ "meshSha256": "0F849344F1643836A219F2DDF699586B7AA72B609B66170A368C33011EA82217",+ "rest": [+ 0.7071067811865474,+ 0.7071067811865477,+ -5.004669712054533e-16,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865477,+ 0.7071067811865474,+ 5.004669712054533e-16,+ 0,+ -94.39875528840412,+ 94.39875528840406,+ 157.00000000000009,+ 1+ ]+ },+ {+ "name": "PistonSkirt4",+ "meshSha256": "49468B687516AAFC70233E9DAEA4712D49E11EC8B293AC0306EE835E8C026840",+ "rest": [+ 0.7071067811865474,+ 0.7071067811865477,+ -5.004669712054533e-16,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865477,+ 0.7071067811865474,+ 5.004669712054533e-16,+ 0,+ -80.25661966467317,+ 80.25661966467312,+ 157.00000000000006,+ 1+ ]+ },+ {+ "name": "PistonLugA4",+ "meshSha256": "4631B21D2469360822161C579C2DF6E5CE50766D659172AFAEE41C81492E1245",+ "rest": [+ 0.7071067811865474,+ 0.7071067811865477,+ -5.004669712054533e-16,+ 0,+ -0.7071067811865477,+ 0.7071067811865474,+ 5.004669712054533e-16,+ 0,+ 0,+ 0,+ 1,+ 0,+ -71.41778489984132,+ 71.41778489984128,+ 141.00000000000006,+ 1+ ]+ },+ {+ "name": "PistonLugB4",+ "meshSha256": "4631B21D2469360822161C579C2DF6E5CE50766D659172AFAEE41C81492E1245",+ "rest": [+ 0.7071067811865474,+ 0.7071067811865477,+ -5.004669712054533e-16,+ 0,+ -0.7071067811865477,+ 0.7071067811865474,+ 5.004669712054533e-16,+ 0,+ 0,+ 0,+ 1,+ 0,+ -71.41778489984132,+ 71.41778489984128,+ 173.00000000000006,+ 1+ ]+ },+ {+ "name": "WristPin4",+ "meshSha256": "E2DB7C8381F4716E323A15A20222FF10CB1C6FFE49F4DE6089F14D619DFB3C04",+ "rest": [+ 0.7071067811865474,+ 0.7071067811865477,+ -5.004669712054533e-16,+ 0,+ -0.7071067811865477,+ 0.7071067811865474,+ 5.004669712054533e-16,+ 0,+ 0,+ 0,+ 1,+ 0,+ -71.41778489984132,+ 71.41778489984128,+ 157.00000000000006,+ 1+ ]+ },+ {+ "name": "Cylinder4",+ "meshSha256": "E3D943A132768C3D49685755A55ECFE72528F59FD062B582517F366F9DC910D0",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -122.683026535866,+ 122.683026535866,+ 157,+ 1+ ]+ },+ {+ "name": "Head4",+ "meshSha256": "8F8830EF187D5EFCAA4965930E7A7E9AE33827410988A21CF7214876C4057BFF",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -173.24116139070418,+ 173.24116139070418,+ 157,+ 1+ ]+ },+ {+ "name": "IntakeValve4",+ "meshSha256": "6B46A613524F62855FF303CB2D6EE0E7E0018156EF87D1304E6CD885B5E82E97",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ -3.925231146709438e-17,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 3.925231146709437e-17,+ 0,+ -168.29141392239842,+ 168.29141392239842,+ 137,+ 1+ ]+ },+ {+ "name": "IntakeStem4",+ "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -190.9188309203679,+ 190.9188309203679,+ 137,+ 1+ ]+ },+ {+ "name": "IntakeRetainer4",+ "meshSha256": "61F4684873E25B13AE5D7DE8F946C2B5AB8C4D60F117A6EEA515A59B188F7FD5",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ -3.925231146709438e-17,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 3.925231146709437e-17,+ 0,+ -205.41451993469215,+ 205.41451993469215,+ 137,+ 1+ ]+ },+ {+ "name": "IntakeSpring4",+ "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "rest": [+ -0.0746075724068663,+ 0.0746075724068663,+ -0.9944181315116434,+ 0,+ -0.7071067811865476,+ -0.7071067811865476,+ 3.925231146709438e-17,+ 0,+ -0.7031598041267392,+ 0.7031598041267392,+ 0.10551104075352304,+ 0,+ -171.82694782833113,+ 184.554869889689,+ 137,+ 1+ ]+ },+ {+ "name": "ExhaustValve4",+ "meshSha256": "B4BCD963E0D5227000D1A7FE31A354EE4C30DFA739F8B5472BB9FF3016229FCC",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -168.29141392239842,+ 168.29141392239842,+ 177,+ 1+ ]+ },+ {+ "name": "ExhaustStem4",+ "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -190.9188309203679,+ 190.9188309203679,+ 177,+ 1+ ]+ },+ {+ "name": "ExhaustRetainer4",+ "meshSha256": "61F4684873E25B13AE5D7DE8F946C2B5AB8C4D60F117A6EEA515A59B188F7FD5",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -205.41451993469215,+ 205.41451993469215,+ 177,+ 1+ ]+ },+ {+ "name": "ExhaustSpring4",+ "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "rest": [+ -0.0746075724068663,+ 0.0746075724068663,+ -0.9944181315116434,+ 0,+ -0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ -0.7031598041267392,+ 0.7031598041267392,+ 0.105511040753523,+ 0,+ -171.82694782833113,+ 184.554869889689,+ 177,+ 1+ ]+ },+ {+ "name": "Rod5",+ "meshSha256": "F37704DE87AFE6959757C339EB04B98931E1B2F03979CE49E98A94F44184460C",+ "rest": [+ 0.45919488658892843,+ -0.8883355537917984,+ 0,+ 0,+ 0.8883355537917984,+ 0.45919488658892843,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -31.1126983722081,+ 31.112698372208087,+ 283,+ 1+ ]+ },+ {+ "name": "Piston5",+ "meshSha256": "0F849344F1643836A219F2DDF699586B7AA72B609B66170A368C33011EA82217",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ -5.59345438406095e-16,+ 0,+ 7.850462293418876e-17,+ 7.850462293418876e-17,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ -8.390181576091424e-16,+ 0,+ 120.67692731616548,+ 120.6769273161655,+ 282.99999999999983,+ 1+ ]+ },+ {+ "name": "PistonSkirt5",+ "meshSha256": "49468B687516AAFC70233E9DAEA4712D49E11EC8B293AC0306EE835E8C026840",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ -5.59345438406095e-16,+ 0,+ 7.850462293418876e-17,+ 7.850462293418876e-17,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ -8.390181576091424e-16,+ 0,+ 106.53479169243452,+ 106.53479169243455,+ 282.9999999999999,+ 1+ ]+ },+ {+ "name": "PistonLugA5",+ "meshSha256": "4631B21D2469360822161C579C2DF6E5CE50766D659172AFAEE41C81492E1245",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ -5.59345438406095e-16,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ -8.390181576091424e-16,+ 0,+ -7.850462293418876e-17,+ -7.850462293418876e-17,+ 1,+ 0,+ 97.69595692760268,+ 97.69595692760271,+ 266.9999999999999,+ 1+ ]+ },+ {+ "name": "PistonLugB5",+ "meshSha256": "4631B21D2469360822161C579C2DF6E5CE50766D659172AFAEE41C81492E1245",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ -5.59345438406095e-16,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ -8.390181576091424e-16,+ 0,+ -7.850462293418876e-17,+ -7.850462293418876e-17,+ 1,+ 0,+ 97.69595692760268,+ 97.69595692760271,+ 298.9999999999999,+ 1+ ]+ },+ {+ "name": "WristPin5",+ "meshSha256": "E2DB7C8381F4716E323A15A20222FF10CB1C6FFE49F4DE6089F14D619DFB3C04",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ -5.59345438406095e-16,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ -5.593454384060949e-16,+ 0,+ 0,+ 0,+ 1,+ 0,+ 97.6959569276027,+ 97.69595692760272,+ 282.9999999999999,+ 1+ ]+ },+ {+ "name": "Cylinder5",+ "meshSha256": "E3D943A132768C3D49685755A55ECFE72528F59FD062B582517F366F9DC910D0",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 122.683026535866,+ 122.683026535866,+ 283,+ 1+ ]+ },+ {+ "name": "Head5",+ "meshSha256": "8F8830EF187D5EFCAA4965930E7A7E9AE33827410988A21CF7214876C4057BFF",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 173.24116139070418,+ 173.24116139070418,+ 283,+ 1+ ]+ },+ {+ "name": "IntakeValve5",+ "meshSha256": "6B46A613524F62855FF303CB2D6EE0E7E0018156EF87D1304E6CD885B5E82E97",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 168.29141392239842,+ 168.29141392239842,+ 263,+ 1+ ]+ },+ {+ "name": "IntakeStem5",+ "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 190.9188309203679,+ 190.9188309203679,+ 263,+ 1+ ]+ },+ {+ "name": "IntakeRetainer5",+ "meshSha256": "61F4684873E25B13AE5D7DE8F946C2B5AB8C4D60F117A6EEA515A59B188F7FD5",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 205.41451993469215,+ 205.41451993469215,+ 263,+ 1+ ]+ },+ {+ "name": "IntakeSpring5",+ "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "rest": [+ 0.0746075724068663,+ 0.0746075724068663,+ -0.9944181315116434,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0.7031598041267392,+ 0.7031598041267392,+ 0.105511040753523,+ 0,+ 184.554869889689,+ 171.82694782833113,+ 263,+ 1+ ]+ },+ {+ "name": "ExhaustValve5",+ "meshSha256": "B4BCD963E0D5227000D1A7FE31A354EE4C30DFA739F8B5472BB9FF3016229FCC",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 168.29141392239842,+ 168.29141392239842,+ 303,+ 1+ ]+ },+ {+ "name": "ExhaustStem5",+ "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 190.9188309203679,+ 190.9188309203679,+ 303,+ 1+ ]+ },+ {+ "name": "ExhaustRetainer5",+ "meshSha256": "61F4684873E25B13AE5D7DE8F946C2B5AB8C4D60F117A6EEA515A59B188F7FD5",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 205.41451993469215,+ 205.41451993469215,+ 303,+ 1+ ]+ },+ {+ "name": "ExhaustSpring5",+ "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "rest": [+ 0.0746075724068663,+ 0.0746075724068663,+ -0.9944181315116434,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0.7031598041267392,+ 0.7031598041267392,+ 0.105511040753523,+ 0,+ 184.554869889689,+ 171.82694782833113,+ 303,+ 1+ ]+ },+ {+ "name": "Rod6",+ "meshSha256": "F37704DE87AFE6959757C339EB04B98931E1B2F03979CE49E98A94F44184460C",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -31.1126983722081,+ 31.112698372208087,+ 267,+ 1+ ]+ },+ {+ "name": "Piston6",+ "meshSha256": "0F849344F1643836A219F2DDF699586B7AA72B609B66170A368C33011EA82217",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 5.200931269390005e-16,+ 0,+ 1.962615573354719e-17,+ -1.962615573354719e-17,+ -1,+ 0,+ -0.7071067811865477,+ 0.7071067811865475,+ -5.200931269390004e-16,+ 0,+ -156.6241520328203,+ 156.6241520328203,+ 266.99999999999994,+ 1+ ]+ },+ {+ "name": "PistonSkirt6",+ "meshSha256": "49468B687516AAFC70233E9DAEA4712D49E11EC8B293AC0306EE835E8C026840",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 5.200931269390005e-16,+ 0,+ 1.962615573354719e-17,+ -1.962615573354719e-17,+ -1,+ 0,+ -0.7071067811865477,+ 0.7071067811865475,+ -5.200931269390004e-16,+ 0,+ -142.48201640908934,+ 142.48201640908934,+ 266.99999999999994,+ 1+ ]+ },+ {+ "name": "PistonLugA6",+ "meshSha256": "4631B21D2469360822161C579C2DF6E5CE50766D659172AFAEE41C81492E1245",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 5.200931269390005e-16,+ 0,+ -0.7071067811865477,+ 0.7071067811865475,+ -5.200931269390004e-16,+ 0,+ -1.962615573354719e-17,+ 1.962615573354719e-17,+ 1,+ 0,+ -133.64318164425748,+ 133.64318164425748,+ 250.99999999999994,+ 1+ ]+ },+ {+ "name": "PistonLugB6",+ "meshSha256": "4631B21D2469360822161C579C2DF6E5CE50766D659172AFAEE41C81492E1245",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 5.200931269390005e-16,+ 0,+ -0.7071067811865477,+ 0.7071067811865475,+ -5.200931269390004e-16,+ 0,+ -1.962615573354719e-17,+ 1.962615573354719e-17,+ 1,+ 0,+ -133.64318164425748,+ 133.64318164425748,+ 282.99999999999994,+ 1+ ]+ },+ {+ "name": "WristPin6",+ "meshSha256": "E2DB7C8381F4716E323A15A20222FF10CB1C6FFE49F4DE6089F14D619DFB3C04",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 5.200931269390005e-16,+ 0,+ -0.7071067811865477,+ 0.7071067811865475,+ -5.200931269390004e-16,+ 0,+ -1.962615573354719e-17,+ 1.962615573354719e-17,+ 1,+ 0,+ -133.64318164425748,+ 133.64318164425748,+ 266.99999999999994,+ 1+ ]+ },+ {+ "name": "Cylinder6",+ "meshSha256": "E3D943A132768C3D49685755A55ECFE72528F59FD062B582517F366F9DC910D0",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -122.683026535866,+ 122.683026535866,+ 267,+ 1+ ]+ },+ {+ "name": "Head6",+ "meshSha256": "8F8830EF187D5EFCAA4965930E7A7E9AE33827410988A21CF7214876C4057BFF",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -7.850462293418876e-17,+ 7.850462293418876e-17,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -173.24116139070415,+ 173.24116139070415,+ 267,+ 1+ ]+ },+ {+ "name": "IntakeValve6",+ "meshSha256": "6B46A613524F62855FF303CB2D6EE0E7E0018156EF87D1304E6CD885B5E82E97",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -7.850462293418876e-17,+ 7.850462293418876e-17,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -168.2914139223984,+ 168.2914139223984,+ 247,+ 1+ ]+ },+ {+ "name": "IntakeStem6",+ "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -7.850462293418876e-17,+ 7.850462293418876e-17,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -190.91883092036787,+ 190.91883092036787,+ 247.00000000000003,+ 1+ ]+ },+ {+ "name": "IntakeRetainer6",+ "meshSha256": "61F4684873E25B13AE5D7DE8F946C2B5AB8C4D60F117A6EEA515A59B188F7FD5",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -7.850462293418876e-17,+ 7.850462293418876e-17,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -205.41451993469212,+ 205.41451993469212,+ 247,+ 1+ ]+ },+ {+ "name": "IntakeSpring6",+ "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "rest": [+ -0.07460757240686638,+ 0.07460757240686638,+ -0.9944181315116434,+ 0,+ -0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ -0.7031598041267392,+ 0.7031598041267392,+ 0.105511040753523,+ 0,+ -171.8269478283311,+ 184.55486988968897,+ 247,+ 1+ ]+ },+ {+ "name": "ExhaustValve6",+ "meshSha256": "B4BCD963E0D5227000D1A7FE31A354EE4C30DFA739F8B5472BB9FF3016229FCC",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -7.850462293418876e-17,+ 7.850462293418876e-17,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -168.2914139223984,+ 168.2914139223984,+ 287,+ 1+ ]+ },+ {+ "name": "ExhaustStem6",+ "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -7.850462293418876e-17,+ 7.850462293418876e-17,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -190.91883092036787,+ 190.91883092036787,+ 287,+ 1+ ]+ },+ {+ "name": "ExhaustRetainer6",+ "meshSha256": "61F4684873E25B13AE5D7DE8F946C2B5AB8C4D60F117A6EEA515A59B188F7FD5",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -7.850462293418876e-17,+ 7.850462293418876e-17,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -205.41451993469212,+ 205.41451993469212,+ 287,+ 1+ ]+ },+ {+ "name": "ExhaustSpring6",+ "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "rest": [+ -0.07460757240686638,+ 0.07460757240686638,+ -0.9944181315116434,+ 0,+ -0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ -0.7031598041267392,+ 0.7031598041267392,+ 0.105511040753523,+ 0,+ -171.8269478283311,+ 184.55486988968897,+ 287,+ 1+ ]+ },+ {+ "name": "Rod7",+ "meshSha256": "F37704DE87AFE6959757C339EB04B98931E1B2F03979CE49E98A94F44184460C",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -31.112698372208087,+ -31.112698372208094,+ 393,+ 1+ ]+ },+ {+ "name": "Piston7",+ "meshSha256": "0F849344F1643836A219F2DDF699586B7AA72B609B66170A368C33011EA82217",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ -8.292050797423688e-16,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865477,+ 0.7071067811865475,+ -1.2438076196135528e-15,+ 0,+ 94.39875528840413,+ 94.39875528840413,+ 392.99999999999994,+ 1+ ]+ },+ {+ "name": "PistonSkirt7",+ "meshSha256": "49468B687516AAFC70233E9DAEA4712D49E11EC8B293AC0306EE835E8C026840",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ -8.292050797423688e-16,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865477,+ 0.7071067811865475,+ -1.2438076196135528e-15,+ 0,+ 80.25661966467318,+ 80.25661966467318,+ 392.99999999999994,+ 1+ ]+ },+ {+ "name": "PistonLugA7",+ "meshSha256": "4631B21D2469360822161C579C2DF6E5CE50766D659172AFAEE41C81492E1245",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ -8.292050797423688e-16,+ 0,+ 0.7071067811865477,+ 0.7071067811865475,+ -1.2438076196135528e-15,+ 0,+ 0,+ 0,+ 1,+ 0,+ 71.41778489984134,+ 71.41778489984134,+ 376.99999999999994,+ 1+ ]+ },+ {+ "name": "PistonLugB7",+ "meshSha256": "4631B21D2469360822161C579C2DF6E5CE50766D659172AFAEE41C81492E1245",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ -8.292050797423688e-16,+ 0,+ 0.7071067811865477,+ 0.7071067811865475,+ -1.2438076196135528e-15,+ 0,+ 0,+ 0,+ 1,+ 0,+ 71.41778489984134,+ 71.41778489984134,+ 408.99999999999994,+ 1+ ]+ },+ {+ "name": "WristPin7",+ "meshSha256": "E2DB7C8381F4716E323A15A20222FF10CB1C6FFE49F4DE6089F14D619DFB3C04",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ -8.292050797423688e-16,+ 0,+ 0.7071067811865477,+ 0.7071067811865475,+ -8.292050797423686e-16,+ 0,+ 0,+ 0,+ 1,+ 0,+ 71.41778489984134,+ 71.41778489984134,+ 392.99999999999994,+ 1+ ]+ },+ {+ "name": "Cylinder7",+ "meshSha256": "E3D943A132768C3D49685755A55ECFE72528F59FD062B582517F366F9DC910D0",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 122.683026535866,+ 122.683026535866,+ 393,+ 1+ ]+ },+ {+ "name": "Head7",+ "meshSha256": "8F8830EF187D5EFCAA4965930E7A7E9AE33827410988A21CF7214876C4057BFF",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 173.24116139070418,+ 173.24116139070418,+ 393.00000000000006,+ 1+ ]+ },+ {+ "name": "IntakeValve7",+ "meshSha256": "6B46A613524F62855FF303CB2D6EE0E7E0018156EF87D1304E6CD885B5E82E97",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 1.036506349677961e-16,+ 0,+ 7.850462293418876e-17,+ 7.850462293418876e-17,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 1.036506349677961e-16,+ 0,+ 168.2914139223984,+ 168.2914139223984,+ 373.00000000000006,+ 1+ ]+ },+ {+ "name": "IntakeStem7",+ "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 1.036506349677961e-16,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 1.036506349677961e-16,+ 0,+ 190.9188309203679,+ 190.9188309203679,+ 373.00000000000006,+ 1+ ]+ },+ {+ "name": "IntakeRetainer7",+ "meshSha256": "61F4684873E25B13AE5D7DE8F946C2B5AB8C4D60F117A6EEA515A59B188F7FD5",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 1.036506349677961e-16,+ 0,+ 7.850462293418876e-17,+ 7.850462293418876e-17,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 1.036506349677961e-16,+ 0,+ 205.41451993469212,+ 205.41451993469212,+ 373.00000000000006,+ 1+ ]+ },+ {+ "name": "IntakeSpring7",+ "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "rest": [+ 0.07460757240686637,+ 0.07460757240686637,+ -0.9944181315116434,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ -1.036506349677961e-16,+ 0,+ 0.7031598041267392,+ 0.7031598041267392,+ 0.10551104075352309,+ 0,+ 184.554869889689,+ 171.82694782833113,+ 373.00000000000006,+ 1+ ]+ },+ {+ "name": "ExhaustValve7",+ "meshSha256": "B4BCD963E0D5227000D1A7FE31A354EE4C30DFA739F8B5472BB9FF3016229FCC",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 1.036506349677961e-16,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 1.036506349677961e-16,+ 0,+ 168.29141392239842,+ 168.29141392239842,+ 413.00000000000006,+ 1+ ]+ },+ {+ "name": "ExhaustStem7",+ "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 1.036506349677961e-16,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 1.036506349677961e-16,+ 0,+ 190.9188309203679,+ 190.9188309203679,+ 413.00000000000006,+ 1+ ]+ },+ {+ "name": "ExhaustRetainer7",+ "meshSha256": "61F4684873E25B13AE5D7DE8F946C2B5AB8C4D60F117A6EEA515A59B188F7FD5",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 1.036506349677961e-16,+ 0,+ 0,+ 0,+ -1,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 1.036506349677961e-16,+ 0,+ 205.41451993469215,+ 205.41451993469215,+ 413.00000000000006,+ 1+ ]+ },+ {+ "name": "ExhaustSpring7",+ "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "rest": [+ 0.0746075724068663,+ 0.0746075724068663,+ -0.9944181315116434,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ -1.036506349677961e-16,+ 0,+ 0.7031598041267392,+ 0.7031598041267392,+ 0.10551104075352309,+ 0,+ 184.554869889689,+ 171.82694782833113,+ 413.00000000000006,+ 1+ ]+ },+ {+ "name": "Rod8",+ "meshSha256": "F37704DE87AFE6959757C339EB04B98931E1B2F03979CE49E98A94F44184460C",+ "rest": [+ 0.8883355537917985,+ 0.45919488658892843,+ 0,+ 0,+ -0.45919488658892843,+ 0.8883355537917985,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -31.112698372208087,+ -31.112698372208094,+ 377,+ 1+ ]+ },+ {+ "name": "Piston8",+ "meshSha256": "0F849344F1643836A219F2DDF699586B7AA72B609B66170A368C33011EA82217",+ "rest": [+ 0.7071067811865477,+ 0.7071067811865477,+ -7.899527682752745e-16,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865477,+ 7.899527682752745e-16,+ 0,+ -120.6769273161655,+ 120.67692731616553,+ 377,+ 1+ ]+ },+ {+ "name": "PistonSkirt8",+ "meshSha256": "49468B687516AAFC70233E9DAEA4712D49E11EC8B293AC0306EE835E8C026840",+ "rest": [+ 0.7071067811865477,+ 0.7071067811865477,+ -7.899527682752745e-16,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865477,+ 7.899527682752745e-16,+ 0,+ -106.53479169243455,+ 106.53479169243458,+ 377,+ 1+ ]+ },+ {+ "name": "PistonLugA8",+ "meshSha256": "4631B21D2469360822161C579C2DF6E5CE50766D659172AFAEE41C81492E1245",+ "rest": [+ 0.7071067811865477,+ 0.7071067811865477,+ -7.899527682752745e-16,+ 0,+ -0.7071067811865476,+ 0.7071067811865477,+ 7.899527682752745e-16,+ 0,+ 0,+ 0,+ 1,+ 0,+ -97.69595692760271,+ 97.69595692760274,+ 361,+ 1+ ]+ },+ {+ "name": "PistonLugB8",+ "meshSha256": "4631B21D2469360822161C579C2DF6E5CE50766D659172AFAEE41C81492E1245",+ "rest": [+ 0.7071067811865477,+ 0.7071067811865477,+ -7.899527682752745e-16,+ 0,+ -0.7071067811865476,+ 0.7071067811865477,+ 7.899527682752745e-16,+ 0,+ 0,+ 0,+ 1,+ 0,+ -97.69595692760271,+ 97.69595692760274,+ 393,+ 1+ ]+ },+ {+ "name": "WristPin8",+ "meshSha256": "E2DB7C8381F4716E323A15A20222FF10CB1C6FFE49F4DE6089F14D619DFB3C04",+ "rest": [+ 0.7071067811865477,+ 0.7071067811865477,+ -7.899527682752745e-16,+ 0,+ -0.7071067811865476,+ 0.7071067811865477,+ 7.899527682752745e-16,+ 0,+ 0,+ 0,+ 1,+ 0,+ -97.69595692760271,+ 97.69595692760274,+ 377.00000000000006,+ 1+ ]+ },+ {+ "name": "Cylinder8",+ "meshSha256": "E3D943A132768C3D49685755A55ECFE72528F59FD062B582517F366F9DC910D0",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -122.683026535866,+ 122.683026535866,+ 377,+ 1+ ]+ },+ {+ "name": "Head8",+ "meshSha256": "8F8830EF187D5EFCAA4965930E7A7E9AE33827410988A21CF7214876C4057BFF",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -173.24116139070418,+ 173.24116139070418,+ 377,+ 1+ ]+ },+ {+ "name": "IntakeValve8",+ "meshSha256": "6B46A613524F62855FF303CB2D6EE0E7E0018156EF87D1304E6CD885B5E82E97",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -7.850462293418877e-17,+ 7.850462293418877e-17,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -168.2914139223984,+ 168.2914139223984,+ 357,+ 1+ ]+ },+ {+ "name": "IntakeStem8",+ "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -190.9188309203679,+ 190.9188309203679,+ 357,+ 1+ ]+ },+ {+ "name": "IntakeRetainer8",+ "meshSha256": "61F4684873E25B13AE5D7DE8F946C2B5AB8C4D60F117A6EEA515A59B188F7FD5",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -7.850462293418877e-17,+ 7.850462293418877e-17,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -205.41451993469212,+ 205.41451993469212,+ 357,+ 1+ ]+ },+ {+ "name": "IntakeSpring8",+ "meshSha256": "70FACE8956F0BB251F890D61D2C71A392BBBA29C1E7C9C14CC260DEE9A0808EC",+ "rest": [+ -0.07460757240686637,+ 0.07460757240686637,+ -0.9944181315116434,+ 0,+ -0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ -0.7031598041267392,+ 0.7031598041267392,+ 0.105511040753523,+ 0,+ -171.82694782833113,+ 184.554869889689,+ 357,+ 1+ ]+ },+ {+ "name": "ExhaustValve8",+ "meshSha256": "B4BCD963E0D5227000D1A7FE31A354EE4C30DFA739F8B5472BB9FF3016229FCC",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ -2.097545394022856e-16,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -161.92745289171944,+ 161.92745289171944,+ 397,+ 1+ ]+ },+ {+ "name": "ExhaustStem8",+ "meshSha256": "8B123097151B226DA8F043E52162193BCFBCF300889981AB2745C01B5C1AD4EC",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -184.55486988968897,+ 184.55486988968897,+ 397,+ 1+ ]+ },+ {+ "name": "ExhaustRetainer8",+ "meshSha256": "61F4684873E25B13AE5D7DE8F946C2B5AB8C4D60F117A6EEA515A59B188F7FD5",+ "rest": [+ 0.7071067811865476,+ 0.7071067811865476,+ -2.097545394022856e-16,+ 0,+ 0,+ 0,+ -1,+ 0,+ -0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ -199.0505589040132,+ 199.0505589040132,+ 397,+ 1+ ]+ },+ {+ "name": "ExhaustSpring8",+ "meshSha256": "B6FF05DB169DD57FB23467CF7A4BD41C852347F44B99F04B51917777A508EE4F",+ "rest": [+ -0.05609244526728045,+ 0.05609244526728045,+ -0.996848672150329,+ 0,+ -0.7071067811865476,+ -0.7071067811865476,+ 2.097545394022856e-16,+ 0,+ -0.7048784558943032,+ 0.7048784558943032,+ 0.0793266968436585,+ 0,+ -171.82694782833113,+ 184.55486988968897,+ 397,+ 1+ ]+ },+ {+ "name": "Crankpin1",+ "meshSha256": "B31E1528BFACE68C151D5FF6EB316E1C3617A16CB12B47997A86A39C77AD2730",+ "rest": [+ 1.0000000000000002,+ 0,+ 0,+ 0,+ 0,+ 1.0000000000000002,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 31.112698372208094,+ 31.112698372208094,+ 55,+ 1+ ]+ },+ {+ "name": "CrankWeb1A",+ "meshSha256": "9F7F2331F5BBBDCC4FB71265D8FE136AFD64D1AA68C8FF73509A36C63034E80F",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 33,+ 1+ ]+ },+ {+ "name": "CrankWeb1B",+ "meshSha256": "9F7F2331F5BBBDCC4FB71265D8FE136AFD64D1AA68C8FF73509A36C63034E80F",+ "rest": [+ 0.7071067811865476,+ -0.7071067811865476,+ 0,+ 0,+ 0.7071067811865476,+ 0.7071067811865476,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 77,+ 1+ ]+ },+ {+ "name": "Crankpin2",+ "meshSha256": "B31E1528BFACE68C151D5FF6EB316E1C3617A16CB12B47997A86A39C77AD2730",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 31.112698372208094,+ -31.112698372208087,+ 165,+ 1+ ]+ },+ {+ "name": "CrankWeb2A",+ "meshSha256": "9F7F2331F5BBBDCC4FB71265D8FE136AFD64D1AA68C8FF73509A36C63034E80F",+ "rest": [+ -0.7071067811865475,+ -0.7071067811865476,+ 0,+ 0,+ 0.7071067811865476,+ -0.7071067811865475,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 143,+ 1+ ]+ },+ {+ "name": "CrankWeb2B",+ "meshSha256": "9F7F2331F5BBBDCC4FB71265D8FE136AFD64D1AA68C8FF73509A36C63034E80F",+ "rest": [+ -0.7071067811865475,+ -0.7071067811865476,+ 0,+ 0,+ 0.7071067811865476,+ -0.7071067811865475,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 187,+ 1+ ]+ },+ {+ "name": "Crankpin3",+ "meshSha256": "B31E1528BFACE68C151D5FF6EB316E1C3617A16CB12B47997A86A39C77AD2730",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -31.112698372208097,+ 31.112698372208083,+ 275,+ 1+ ]+ },+ {+ "name": "CrankWeb3A",+ "meshSha256": "9F7F2331F5BBBDCC4FB71265D8FE136AFD64D1AA68C8FF73509A36C63034E80F",+ "rest": [+ 0.7071067811865474,+ 0.7071067811865477,+ 0,+ 0,+ -0.7071067811865477,+ 0.7071067811865474,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 253,+ 1+ ]+ },+ {+ "name": "CrankWeb3B",+ "meshSha256": "9F7F2331F5BBBDCC4FB71265D8FE136AFD64D1AA68C8FF73509A36C63034E80F",+ "rest": [+ 0.7071067811865474,+ 0.7071067811865477,+ 0,+ 0,+ -0.7071067811865477,+ 0.7071067811865474,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 297,+ 1+ ]+ },+ {+ "name": "Crankpin4",+ "meshSha256": "B31E1528BFACE68C151D5FF6EB316E1C3617A16CB12B47997A86A39C77AD2730",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -31.112698372208087,+ -31.112698372208097,+ 385,+ 1+ ]+ },+ {+ "name": "CrankWeb4A",+ "meshSha256": "9F7F2331F5BBBDCC4FB71265D8FE136AFD64D1AA68C8FF73509A36C63034E80F",+ "rest": [+ -0.7071067811865477,+ 0.7071067811865475,+ 0,+ 0,+ -0.7071067811865475,+ -0.7071067811865477,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 363,+ 1+ ]+ },+ {+ "name": "CrankWeb4B",+ "meshSha256": "9F7F2331F5BBBDCC4FB71265D8FE136AFD64D1AA68C8FF73509A36C63034E80F",+ "rest": [+ -0.7071067811865477,+ 0.7071067811865475,+ 0,+ 0,+ -0.7071067811865475,+ -0.7071067811865477,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 407,+ 1+ ]+ },+ {+ "name": "MainJournal1",+ "meshSha256": "A7646CB4C2AA80F4B1A3681235D10ACA96ECDD8D48F2C129583F05D5CFF35C85",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1+ ]+ },+ {+ "name": "MainSupport1",+ "meshSha256": "BBD3BAF517A2BEB6C31CD5ADA6BCEE9E2A6DC322C6A82CADE5805DEEA5242866",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1+ ]+ },+ {+ "name": "MainJournal2",+ "meshSha256": "A7646CB4C2AA80F4B1A3681235D10ACA96ECDD8D48F2C129583F05D5CFF35C85",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 110,+ 1+ ]+ },+ {+ "name": "MainSupport2",+ "meshSha256": "BBD3BAF517A2BEB6C31CD5ADA6BCEE9E2A6DC322C6A82CADE5805DEEA5242866",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 110,+ 1+ ]+ },+ {+ "name": "MainJournal3",+ "meshSha256": "A7646CB4C2AA80F4B1A3681235D10ACA96ECDD8D48F2C129583F05D5CFF35C85",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 220,+ 1+ ]+ },+ {+ "name": "MainSupport3",+ "meshSha256": "BBD3BAF517A2BEB6C31CD5ADA6BCEE9E2A6DC322C6A82CADE5805DEEA5242866",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 220,+ 1+ ]+ },+ {+ "name": "MainJournal4",+ "meshSha256": "A7646CB4C2AA80F4B1A3681235D10ACA96ECDD8D48F2C129583F05D5CFF35C85",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 330,+ 1+ ]+ },+ {+ "name": "MainSupport4",+ "meshSha256": "BBD3BAF517A2BEB6C31CD5ADA6BCEE9E2A6DC322C6A82CADE5805DEEA5242866",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 330,+ 1+ ]+ },+ {+ "name": "MainJournal5",+ "meshSha256": "A7646CB4C2AA80F4B1A3681235D10ACA96ECDD8D48F2C129583F05D5CFF35C85",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 440,+ 1+ ]+ },+ {+ "name": "MainSupport5",+ "meshSha256": "BBD3BAF517A2BEB6C31CD5ADA6BCEE9E2A6DC322C6A82CADE5805DEEA5242866",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 440,+ 1+ ]+ },+ {+ "name": "CrankcaseRailA",+ "meshSha256": "57DF1A000523CAD0D363434C545D80A36A2F804BD05F664DDEB242C6A423ECC8",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -26,+ -93.84985911070852,+ 220,+ 1+ ]+ },+ {+ "name": "CrankcaseRailB",+ "meshSha256": "57DF1A000523CAD0D363434C545D80A36A2F804BD05F664DDEB242C6A423ECC8",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 26,+ -93.84985911070852,+ 220,+ 1+ ]+ },+ {+ "name": "Flywheel",+ "meshSha256": "0FE7330CB6DCD1763512D389EC2A2B1A19B89A699F7B2408F0FE691558128345",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ -35,+ 1+ ]+ },+ {+ "name": "CamshaftRight",+ "meshSha256": "D249DFB5E8AC3165E0D48A6FC893F856C6B3577369E64257A252640D5888F6D8",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 220.61731573020285,+ 220.61731573020285,+ 220,+ 1+ ]+ },+ {+ "name": "TimingLobe1In",+ "meshSha256": "67BC13AF0AEEA43BD7CB465AE34E4880B09FD72A64F847EAE41841F71EC9453B",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 220.61731573020285,+ 220.61731573020285,+ 43,+ 1+ ]+ },+ {+ "name": "TimingLobe1Ex",+ "meshSha256": "67BC13AF0AEEA43BD7CB465AE34E4880B09FD72A64F847EAE41841F71EC9453B",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 220.61731573020285,+ 220.61731573020285,+ 83,+ 1+ ]+ },+ {+ "name": "TimingLobe3In",+ "meshSha256": "67BC13AF0AEEA43BD7CB465AE34E4880B09FD72A64F847EAE41841F71EC9453B",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 220.61731573020285,+ 220.61731573020285,+ 153,+ 1+ ]+ },+ {+ "name": "TimingLobe3Ex",+ "meshSha256": "67BC13AF0AEEA43BD7CB465AE34E4880B09FD72A64F847EAE41841F71EC9453B",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 220.61731573020285,+ 220.61731573020285,+ 193,+ 1+ ]+ },+ {+ "name": "TimingLobe5In",+ "meshSha256": "67BC13AF0AEEA43BD7CB465AE34E4880B09FD72A64F847EAE41841F71EC9453B",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 220.61731573020285,+ 220.61731573020285,+ 263,+ 1+ ]+ },+ {+ "name": "TimingLobe5Ex",+ "meshSha256": "67BC13AF0AEEA43BD7CB465AE34E4880B09FD72A64F847EAE41841F71EC9453B",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 220.61731573020285,+ 220.61731573020285,+ 303,+ 1+ ]+ },+ {+ "name": "TimingLobe7In",+ "meshSha256": "67BC13AF0AEEA43BD7CB465AE34E4880B09FD72A64F847EAE41841F71EC9453B",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 220.61731573020285,+ 220.61731573020285,+ 373,+ 1+ ]+ },+ {+ "name": "TimingLobe7Ex",+ "meshSha256": "67BC13AF0AEEA43BD7CB465AE34E4880B09FD72A64F847EAE41841F71EC9453B",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 220.61731573020285,+ 220.61731573020285,+ 413,+ 1+ ]+ },+ {+ "name": "CamshaftLeft",+ "meshSha256": "D249DFB5E8AC3165E0D48A6FC893F856C6B3577369E64257A252640D5888F6D8",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -220.61731573020285,+ 220.61731573020285,+ 220,+ 1+ ]+ },+ {+ "name": "TimingLobe2In",+ "meshSha256": "67BC13AF0AEEA43BD7CB465AE34E4880B09FD72A64F847EAE41841F71EC9453B",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -220.61731573020285,+ 220.61731573020285,+ 27,+ 1+ ]+ },+ {+ "name": "TimingLobe2Ex",+ "meshSha256": "67BC13AF0AEEA43BD7CB465AE34E4880B09FD72A64F847EAE41841F71EC9453B",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -220.61731573020285,+ 220.61731573020285,+ 67,+ 1+ ]+ },+ {+ "name": "TimingLobe4In",+ "meshSha256": "67BC13AF0AEEA43BD7CB465AE34E4880B09FD72A64F847EAE41841F71EC9453B",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -220.61731573020285,+ 220.61731573020285,+ 137,+ 1+ ]+ },+ {+ "name": "TimingLobe4Ex",+ "meshSha256": "67BC13AF0AEEA43BD7CB465AE34E4880B09FD72A64F847EAE41841F71EC9453B",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -220.61731573020285,+ 220.61731573020285,+ 177,+ 1+ ]+ },+ {+ "name": "TimingLobe6In",+ "meshSha256": "67BC13AF0AEEA43BD7CB465AE34E4880B09FD72A64F847EAE41841F71EC9453B",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -220.61731573020285,+ 220.61731573020285,+ 247,+ 1+ ]+ },+ {+ "name": "TimingLobe6Ex",+ "meshSha256": "67BC13AF0AEEA43BD7CB465AE34E4880B09FD72A64F847EAE41841F71EC9453B",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -220.61731573020285,+ 220.61731573020285,+ 287,+ 1+ ]+ },+ {+ "name": "TimingLobe8In",+ "meshSha256": "67BC13AF0AEEA43BD7CB465AE34E4880B09FD72A64F847EAE41841F71EC9453B",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -220.61731573020285,+ 220.61731573020285,+ 357,+ 1+ ]+ },+ {+ "name": "TimingLobe8Ex",+ "meshSha256": "67BC13AF0AEEA43BD7CB465AE34E4880B09FD72A64F847EAE41841F71EC9453B",+ "rest": [+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ 0,+ 0,+ 0,+ 1,+ 0,+ -220.61731573020285,+ 220.61731573020285,+ 397,+ 1+ ]+ }+ ],+ "originalImplementationCommit": "96aa41ca58f4facd46bb7e8afa93f18524dc068d",+ "reproduction": "Run demos/Aetheris.EditableV8 at originalImplementationCommit with default V8Spec; compare baseline.mesh.json and baseline.motion.json through EngineTests.AssertGeometryReference."+}diff --git a/fixtures/Canonical/EditableV8/interfaces.firmament b/fixtures/Canonical/EditableV8/interfaces.firmamentnew file mode 100644index 00000000..c142662e--- /dev/null+++ b/fixtures/Canonical/EditableV8/interfaces.firmament@@ -0,0 +1,26 @@+// Specialist fit contracts retained from the qualified rest assembly.+// Ordinary rigid layout uses Placement; these relationships prove bore fits.+Interface JournalBoreSeat {+ Role Moving requires DatumFrameCapable, DimensionalCapable;+ Role Fixed requires DatumFrameCapable, DimensionalCapable;+ Lower FrameCoincident Moving Fixed SameDirection;+ Fit Fixed.Diameter inside Moving.Diameter;+}+Interface WristPinSeat {+ Role Moving requires DatumFrameCapable, DimensionalCapable;+ Role Fixed requires DatumFrameCapable, DimensionalCapable;+ Lower FrameCoincident Moving Fixed SameDirection;+ Fit Moving.Diameter inside Fixed.Diameter;+}+Interface SpringOnStem {+ Role Spring requires AxisCapable, DatumFrameCapable, DimensionalCapable;+ Role Stem requires AxisCapable, DatumFrameCapable, DimensionalCapable;+ Lower AxisCoincident Spring.Axis Stem.Axis;+ Lower FrameCoincident Spring.Frame Stem.Frame SameDirection;+ Fit Stem.Diameter inside Spring.ClearDiameter;+}++// Dimensional admission only: Concept-directed seating remains the sole placement authority.+Interface JournalFit { Role Journal requires DimensionalCapable; Role Bore requires DimensionalCapable; Fit Journal.Diameter inside Bore.Diameter; }+Interface PinBoreFit { Role Pin requires DimensionalCapable; Role Bore requires DimensionalCapable; Fit Pin.Diameter inside Bore.Diameter; }+Interface SpringStemFit { Role Spring requires DimensionalCapable; Role Stem requires DimensionalCapable; Fit Stem.Diameter inside Spring.ClearDiameter; }diff --git a/fixtures/Canonical/EditableV8/parts/Camshaft.firmament b/fixtures/Canonical/EditableV8/parts/Camshaft.firmamentnew file mode 100644index 00000000..ebcf0be4--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/Camshaft.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct Camshaft {+ Struct Stock = DiscStock<r: 8mm, zmin: d.caseMin, zmax: d.caseMax>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/ConnectingRod.firmament b/fixtures/Canonical/EditableV8/parts/ConnectingRod.firmamentnew file mode 100644index 00000000..4d202f37--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/ConnectingRod.firmament@@ -0,0 +1,13 @@+include "../design";+include "../construction";++Struct ConnectingRod {+ Struct Stock = RodStock<l: d.rodLength, h: d.rodHeight, c: d.rodCenter>++ Expose { Semantic BigEnd { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; Dimension Diameter = 44.4mm; }+ Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; Dimension Diameter = 44.4mm; }+ Semantic SmallEnd { Axis Axis = [0mm,d.rodLength,0mm] -> [0,0,1]; DatumFrame Frame = [0mm,d.rodLength,0mm] x [1,0,0] y [0,1,0] z [0,0,1]; Dimension Diameter = 16.4mm; }+ }+++}diff --git a/fixtures/Canonical/EditableV8/parts/CrankWeb.firmament b/fixtures/Canonical/EditableV8/parts/CrankWeb.firmamentnew file mode 100644index 00000000..e5e87a9e--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/CrankWeb.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct CrankWeb {+ Struct Stock = PlateStock<w: 60mm, h: d.webHeight, c: d.webCenter, zmin: -6mm, zmax: 6mm>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/CrankcaseRail.firmament b/fixtures/Canonical/EditableV8/parts/CrankcaseRail.firmamentnew file mode 100644index 00000000..a1250c3f--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/CrankcaseRail.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct CrankcaseRail {+ Struct Stock = PlateStock<w: 20mm, h: 16mm, c: 0mm, zmin: d.caseMin, zmax: d.caseMax>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/Crankpin.firmament b/fixtures/Canonical/EditableV8/parts/Crankpin.firmamentnew file mode 100644index 00000000..c1d24af9--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/Crankpin.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct Crankpin {+ Struct Stock = DiscStock<r: 22mm, zmin: -13mm, zmax: 13mm>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; Dimension Diameter = 44mm; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/CylinderHead.firmament b/fixtures/Canonical/EditableV8/parts/CylinderHead.firmamentnew file mode 100644index 00000000..8009f9e6--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/CylinderHead.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct CylinderHead {+ Struct Stock = TwoBoreStock<w: d.headWidth, h: 70mm, c: 0mm, zmin: -5mm, zmax: 5mm, holeY0: -20mm, holeD0: 8.4mm, holeY1: 20mm, holeD1: 8.4mm>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/CylinderSleeve.firmament b/fixtures/Canonical/EditableV8/parts/CylinderSleeve.firmamentnew file mode 100644index 00000000..5e294539--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/CylinderSleeve.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct CylinderSleeve {+ Struct Stock = AnnulusStock<rout: d.sleeveOuterRadius, rin: d.boreRadius, zmin: d.sleeveMin, zmax: d.sleeveMax>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/ExhaustValve.firmament b/fixtures/Canonical/EditableV8/parts/ExhaustValve.firmamentnew file mode 100644index 00000000..71c629b3--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/ExhaustValve.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct ExhaustValve {+ Struct Stock = DiscStock<r: 14mm, zmin: -2mm, zmax: 2mm>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/Flywheel.firmament b/fixtures/Canonical/EditableV8/parts/Flywheel.firmamentnew file mode 100644index 00000000..44715317--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/Flywheel.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct Flywheel {+ Struct Stock = DiscStock<r: 75mm, zmin: -8mm, zmax: 8mm>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/IntakeValve.firmament b/fixtures/Canonical/EditableV8/parts/IntakeValve.firmamentnew file mode 100644index 00000000..cc02a16b--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/IntakeValve.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct IntakeValve {+ Struct Stock = DiscStock<r: 16mm, zmin: -2mm, zmax: 2mm>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/LongMainJournal.firmament b/fixtures/Canonical/EditableV8/parts/LongMainJournal.firmamentnew file mode 100644index 00000000..4490a6dc--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/LongMainJournal.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct LongMainJournal {+ Struct Stock = DiscStock<r: 25mm, zmin: d.journalMin, zmax: d.journalMax>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/MainJournal.firmament b/fixtures/Canonical/EditableV8/parts/MainJournal.firmamentnew file mode 100644index 00000000..b579618d--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/MainJournal.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct MainJournal {+ Struct Stock = DiscStock<r: 25mm, zmin: -10mm, zmax: 10mm>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/MainSupport.firmament b/fixtures/Canonical/EditableV8/parts/MainSupport.firmamentnew file mode 100644index 00000000..7c464595--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/MainSupport.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct MainSupport {+ Struct Stock = OneBoreStock<w: 72mm, h: d.supportHeight, c: d.supportCenter, zmin: -8mm, zmax: 8mm, holeY0: 0mm, holeD0: 50.8mm>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/PairedCrankpin.firmament b/fixtures/Canonical/EditableV8/parts/PairedCrankpin.firmamentnew file mode 100644index 00000000..cbc5ed4b--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/PairedCrankpin.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct PairedCrankpin {+ Struct Stock = DiscStock<r: 22mm, zmin: -16mm, zmax: 16mm>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; Dimension Diameter = 44mm; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/ParameterizedValveSpring.firmament b/fixtures/Canonical/EditableV8/parts/ParameterizedValveSpring.firmamentnew file mode 100644index 00000000..87157881--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/ParameterizedValveSpring.firmament@@ -0,0 +1,10 @@+// One reusable spring body. Pitch is the actual engineering geometry input.+Template<pitch: Length> Struct ValveSpring {+ WireForm Spring {+ diameter: 2mm+ material: Standard.Materials.StainlessSteel.304_Annealed+ StartFrame { origin: [0mm,0mm,0mm]; tangent: [1,0,0]; up: [0,0,1] }+ Helix Winding { radius: 9mm; turns: 6; pitch: pitch; handedness: RightHanded; startPhase: 0deg }+ }+ expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+}diff --git a/fixtures/Canonical/EditableV8/parts/PistonCrown.firmament b/fixtures/Canonical/EditableV8/parts/PistonCrown.firmamentnew file mode 100644index 00000000..0420b350--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/PistonCrown.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct PistonCrown {+ Struct Stock = DiscStock<r: d.pistonRadius, zmin: -7.5mm, zmax: 7.5mm>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/PistonLug.firmament b/fixtures/Canonical/EditableV8/parts/PistonLug.firmamentnew file mode 100644index 00000000..5cd74de7--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/PistonLug.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct PistonLug {+ Struct Stock = OneBoreStock<w: 24mm, h: 37mm, c: 6.5mm, zmin: -3mm, zmax: 3mm, holeY0: 0mm, holeD0: 16.4mm>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/PistonSkirt.firmament b/fixtures/Canonical/EditableV8/parts/PistonSkirt.firmamentnew file mode 100644index 00000000..63c30ffb--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/PistonSkirt.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct PistonSkirt {+ Struct Stock = AnnulusStock<rout: d.pistonRadius, rin: d.skirtInnerRadius, zmin: -12.5mm, zmax: 12.5mm>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/SpringRetainer.firmament b/fixtures/Canonical/EditableV8/parts/SpringRetainer.firmamentnew file mode 100644index 00000000..60a10e59--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/SpringRetainer.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct SpringRetainer {+ Struct Stock = AnnulusStock<rout: 12mm, rin: 4.2mm, zmin: -1.5mm, zmax: 1.5mm>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/TimingLobe.firmament b/fixtures/Canonical/EditableV8/parts/TimingLobe.firmamentnew file mode 100644index 00000000..7e25c2f9--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/TimingLobe.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct TimingLobe {+ Struct Stock = AnnulusStock<rout: 12mm, rin: 8.2mm, zmin: -4mm, zmax: 4mm>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/ValveSpring.firmament b/fixtures/Canonical/EditableV8/parts/ValveSpring.firmamentnew file mode 100644index 00000000..9166f83b--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/ValveSpring.firmament@@ -0,0 +1,7 @@+include "../design";+include "../construction";++Struct ValveSpring {+ Struct Stock = CoilStock<coil: freeCoil>++}diff --git a/fixtures/Canonical/EditableV8/parts/ValveStem.firmament b/fixtures/Canonical/EditableV8/parts/ValveStem.firmamentnew file mode 100644index 00000000..d0d2e8ff--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/ValveStem.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct ValveStem {+ Struct Stock = DiscStock<r: 4mm, zmin: -30mm, zmax: 30mm>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; Dimension Diameter = 8mm; } }+++}diff --git a/fixtures/Canonical/EditableV8/parts/WristPin.firmament b/fixtures/Canonical/EditableV8/parts/WristPin.firmamentnew file mode 100644index 00000000..a5dab17a--- /dev/null+++ b/fixtures/Canonical/EditableV8/parts/WristPin.firmament@@ -0,0 +1,10 @@+include "../design";+include "../construction";++Struct WristPin {+ Struct Stock = DiscStock<r: 8mm, zmin: -22mm, zmax: 22mm>++ Expose { Semantic Mount { Axis Axis = [0,0,0] -> [0,0,1]; DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; Dimension Diameter = 16mm; } }+++}diff --git a/fixtures/Canonical/EditableV8/rest-configurations.firmament b/fixtures/Canonical/EditableV8/rest-configurations.firmamentnew file mode 100644index 00000000..63b9abd9--- /dev/null+++ b/fixtures/Canonical/EditableV8/rest-configurations.firmament@@ -0,0 +1,19 @@+// Indexed scalar rest data; no Part transforms.+Static restC1: CylinderRest = standardRest with { rodX: 0mm; rodY: 44.000000000000007mm; rodSin: 0; rodCos: 1.0000000000000002; pistonY: 189.00000000000003mm; intakeLift: 0mm; exhaustLift: 0mm; intakePitch: 6mm; exhaustPitch: 6mm }+Static restC2: CylinderRest = standardRest with { rodX: 44.000000000000007mm; rodY: 0mm; rodSin: -0.30344827586206874; rodCos: 0.95284791224850673; pistonY: 138.16294727603349mm; intakeLift: 0mm; exhaustLift: 0mm; intakePitch: 6mm; exhaustPitch: 6mm }+Static restC3: CylinderRest = standardRest with { rodX: 44mm; rodY: 0.0000000000000035527136788005009mm; rodSin: -0.30344827586206879; rodCos: 0.95284791224850662; pistonY: 138.16294727603349mm; intakeLift: 9mm; exhaustLift: 0mm; intakePitch: 4.5mm; exhaustPitch: 6mm }+Static restC4: CylinderRest = standardRest with { rodX: 0.0000000000000035527136788005009mm; rodY: -44mm; rodSin: 0; rodCos: 1.0000000000000002; pistonY: 101.00000000000003mm; intakeLift: 0mm; exhaustLift: 0mm; intakePitch: 6mm; exhaustPitch: 6mm }+Static restC5: CylinderRest = standardRest with { rodX: -44mm; rodY: -0.000000000000010658141036401503mm; rodSin: 0.30344827586206874; rodCos: 0.95284791224850673; pistonY: 138.16294727603349mm; intakeLift: 0mm; exhaustLift: 0mm; intakePitch: 6mm; exhaustPitch: 6mm }+Static restC6: CylinderRest = standardRest with { rodX: -0.000000000000010658141036401503mm; rodY: 44mm; rodSin: 0; rodCos: 1.0000000000000002; pistonY: 189.00000000000003mm; intakeLift: 0mm; exhaustLift: 0mm; intakePitch: 6mm; exhaustPitch: 6mm }+Static restC7: CylinderRest = standardRest with { rodX: 0.0000000000000071054273576010019mm; rodY: -44.000000000000007mm; rodSin: 0; rodCos: 1.0000000000000002; pistonY: 101.00000000000003mm; intakeLift: 0mm; exhaustLift: 0mm; intakePitch: 6mm; exhaustPitch: 6mm }+Static restC8: CylinderRest = standardRest with { rodX: -44.000000000000007mm; rodY: -0.0000000000000071054273576010019mm; rodSin: 0.30344827586206879; rodCos: 0.95284791224850662; pistonY: 138.16294727603349mm; intakeLift: 0mm; exhaustLift: 9mm; intakePitch: 6mm; exhaustPitch: 4.5mm }+Static cylinderConfigs: Set<CylinderConfig> {+ C1 => standardCylinder with { bankSin: 0.70710678118654757; bankCos: 0.70710678118654757; z: 63mm; journal: EditableV8.Crankshaft.Pin1; rest: restC1 }+ C2 => standardCylinder with { bankSin: -0.70710678118654757; bankCos: 0.70710678118654757; z: 47mm; journal: EditableV8.Crankshaft.Pin1; rest: restC2 }+ C3 => standardCylinder with { bankSin: 0.70710678118654757; bankCos: 0.70710678118654757; z: 173mm; journal: EditableV8.Crankshaft.Pin2; rest: restC3 }+ C4 => standardCylinder with { bankSin: -0.70710678118654757; bankCos: 0.70710678118654757; z: 157mm; journal: EditableV8.Crankshaft.Pin2; rest: restC4 }+ C5 => standardCylinder with { bankSin: 0.70710678118654757; bankCos: 0.70710678118654757; z: 283mm; journal: EditableV8.Crankshaft.Pin3; rest: restC5 }+ C6 => standardCylinder with { bankSin: -0.70710678118654757; bankCos: 0.70710678118654757; z: 267mm; journal: EditableV8.Crankshaft.Pin3; rest: restC6 }+ C7 => standardCylinder with { bankSin: 0.70710678118654757; bankCos: 0.70710678118654757; z: 393mm; journal: EditableV8.Crankshaft.Pin4; rest: restC7 }+ C8 => standardCylinder with { bankSin: -0.70710678118654757; bankCos: 0.70710678118654757; z: 377mm; journal: EditableV8.Crankshaft.Pin4; rest: restC8 }+}diff --git a/fixtures/Canonical/EditableV8/scene.firmament b/fixtures/Canonical/EditableV8/scene.firmamentnew file mode 100644index 00000000..68571af1--- /dev/null+++ b/fixtures/Canonical/EditableV8/scene.firmament@@ -0,0 +1,9 @@+Inventory Record Products {+ engine: Assembly = Firmament("engine").EditableV8+}+Scene EngineStudy {+ units: mm+ <Assembly Engine = Products.engine>+ Placement { from: Origin; to: World; }+ </Assembly>+}diff --git a/fixtures/Canonical/EditableV8/stage-a.firmasm b/fixtures/Canonical/EditableV8/stage-a.firmasmnew file mode 100644index 00000000..3a559e08--- /dev/null+++ b/fixtures/Canonical/EditableV8/stage-a.firmasm@@ -0,0 +1,14 @@++Inventory Record Units {+ stageA: Subassembly = Firmament("assemblies/stage-a").StageA+}++// Product ownership is separate from the prescribed analytical motion.+Assembly SliderCrankStageA {+ <Assembly SliderCrankStageA>+ <Assembly StageA = Units.stageA>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,35mm]; }+ </Assembly>+ </Assembly>+ Anchor: SliderCrankStageA;+}diff --git a/fixtures/Canonical/EditableV8/stage-b.firmasm b/fixtures/Canonical/EditableV8/stage-b.firmasmnew file mode 100644index 00000000..04f470e9--- /dev/null+++ b/fixtures/Canonical/EditableV8/stage-b.firmasm@@ -0,0 +1,14 @@++Inventory Record Units {+ stageB: Subassembly = Firmament("assemblies/stage-b").StageB+}++// Product ownership is separate from the prescribed analytical motion.+Assembly SliderCrankStageA {+ <Assembly SliderCrankStageA>+ <Assembly StageB = Units.stageB>+ Placement { from: Origin; to: World; translateLocal: [0mm,0mm,35mm]; }+ </Assembly>+ </Assembly>+ Anchor: SliderCrankStageA;+}