Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
Add Firmament fixture corpus taxonomy
Yuechen Li31b964338651
diff --git a/Aetheris.CLI.Tests/FirmamentFixtureCorpusTests.cs b/Aetheris.CLI.Tests/FirmamentFixtureCorpusTests.csnew file mode 100644index 00000000..09a6b5d6--- /dev/null+++ b/Aetheris.CLI.Tests/FirmamentFixtureCorpusTests.cs@@ -0,0 +1,142 @@+using System.Text.Json;++namespace Aetheris.CLI.Tests;++public sealed class FirmamentFixtureCorpusTests+{+ private static readonly string CorpusRoot = Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, "../../../../fixtures/Firmament"));+ private static readonly string[] RequiredMetadata = ["fixture-id", "case", "category", "validity", "implementation", "expected", "expected-stage"];++ [Fact]+ public void FirmamentFixtureCorpus_Metadata_IsRecognized()+ {+ var fixtures = DiscoverFixtures();+ Assert.NotEmpty(fixtures);+ foreach (var path in fixtures)+ {+ var fixture = LoadMetadata(path);+ foreach (var key in RequiredMetadata) Assert.True(fixture.ContainsKey(key), $"{path} missing {key}");+ Assert.Contains(fixture["validity"], new[] { "valid", "invalid" });+ Assert.Contains(fixture["implementation"], new[] { "implemented", "not-implemented", "deferred", "rejected" });+ }+ }++ [Fact]+ public void FirmamentFixtureCorpus_ValidImplementedFixtures_ReachExpectedStage()+ {+ foreach (var path in DiscoverFixtures().Where(IsValidImplemented))+ {+ using var doc = Trace(path);+ var root = doc.RootElement;+ Assert.True(root.GetProperty("fixture").GetProperty("expectationSatisfied").GetBoolean(), path);+ Assert.Equal(LoadMetadata(path)["expected-stage"], root.GetProperty("actualStageReached").GetString());+ }+ }++ [Fact]+ public void FirmamentFixtureCorpus_ValidNotImplementedFixtures_ReportNotImplemented()+ {+ foreach (var path in DiscoverFixtures().Where(IsValidNotImplemented))+ {+ using var doc = Trace(path);+ var root = doc.RootElement;+ Assert.Equal("valid", root.GetProperty("fixture").GetProperty("expectation").GetString());+ Assert.True(root.GetProperty("fixture").GetProperty("expectationSatisfied").GetBoolean(), path);+ Assert.Contains(root.GetProperty("actualStageReached").GetString(), new[] { "not-implemented", "deferred" });+ Assert.Contains("air-firmament-a1-feature-not-implemented", root.GetProperty("diagnostics").EnumerateArray().Select(x => x.GetString()));+ }+ }++ [Fact]+ public void FirmamentFixtureCorpus_InvalidFixtures_ReportExpectedDiagnostics()+ {+ foreach (var path in DiscoverFixtures().Where(p => LoadMetadata(p)["expected"] == "invalid"))+ {+ var fixture = LoadMetadata(path);+ using var doc = Trace(path);+ var diagnostics = doc.RootElement.GetProperty("diagnostics").EnumerateArray().Select(x => x.GetString()).ToArray();+ Assert.True(doc.RootElement.GetProperty("fixture").GetProperty("expectationSatisfied").GetBoolean(), path);+ Assert.Contains(fixture["expected-diagnostic"], diagnostics);+ }+ }++ [Fact]+ public void FirmamentFixtureCorpus_SideHoleGoldenPath_RemainsIntegrated()+ {+ var dir = Path.Combine(Path.GetTempPath(), "aetheris-corpus-tests", Guid.NewGuid().ToString("N"));+ using var doc = Trace(Path.Combine(CorpusRoot, "Region/valid/side-hole-face-attached-region.valid.firmfixture"), "--out-dir", dir);+ var root = doc.RootElement;+ Assert.Equal("region-parent-integrated", root.GetProperty("actualStageReached").GetString());+ Assert.Contains("Integrated", root.GetProperty("regions").GetRawText(), StringComparison.Ordinal);+ Assert.Contains("Closed", root.GetProperty("regions").GetRawText(), StringComparison.Ordinal);+ Assert.True(File.Exists(Path.Combine(dir, "side-hole.step")));+ Assert.Contains("STEP smoke: succeeded", File.ReadAllText(Path.Combine(dir, "side-hole.trace.txt")), StringComparison.Ordinal);+ }++ [Fact]+ public void FirmamentFixtureCorpus_Box_RemainsParserBacked()+ {+ using var doc = Trace(Path.Combine(CorpusRoot, "Primitive/valid/box.valid.firmfixture"));+ var root = doc.RootElement;+ Assert.True(root.GetProperty("fixture").GetProperty("parserBacked").GetBoolean());+ Assert.Equal("emitted-brep", root.GetProperty("actualStageReached").GetString());+ Assert.Equal("CreateBox", root.GetProperty("featureAir").GetProperty("nodeKind").GetString());+ }++ [Fact]+ public void FirmamentFixtureCorpus_DoesNotRequireFeatureImplementation()+ {+ var future = Path.Combine(CorpusRoot, "Fillet/future/single-edge-fillet.valid.firmfixture");+ using var doc = Trace(future);+ Assert.Equal("not-implemented", doc.RootElement.GetProperty("actualStageReached").GetString());+ Assert.False(doc.RootElement.GetProperty("emission").GetProperty("succeeded").GetBoolean());+ }++ [Fact]+ public void FirmamentFixtureCorpus_Metadata_IsDeterministic()+ {+ var first = DiscoverFixtures().Select(p => p.Replace('\\', '/')).ToArray();+ var second = DiscoverFixtures().Select(p => p.Replace('\\', '/')).ToArray();+ Assert.Equal(first, second);+ Assert.Equal(Trace(Path.Combine(CorpusRoot, "Material/future/material-assignment.valid.firmfixture")).RootElement.GetRawText(), Trace(Path.Combine(CorpusRoot, "Material/future/material-assignment.valid.firmfixture")).RootElement.GetRawText());+ }++ private static bool IsValidImplemented(string path)+ {+ var fixture = LoadMetadata(path);+ return fixture["expected"] == "valid" && fixture["implementation"] == "implemented";+ }++ private static bool IsValidNotImplemented(string path)+ {+ var fixture = LoadMetadata(path);+ return fixture["expected"] == "valid" && fixture["implementation"] is "not-implemented" or "deferred";+ }++ private static IReadOnlyDictionary<string, string> LoadMetadata(string path)+ {+ var metadata = new SortedDictionary<string, string>(StringComparer.Ordinal);+ foreach (var raw in File.ReadLines(path))+ {+ var line = raw.Trim();+ if (line.Length == 0) continue;+ if (!line.StartsWith("//", StringComparison.Ordinal)) break;+ var body = line[2..].Trim();+ var colon = body.IndexOf(':');+ if (colon <= 0) continue;+ metadata[body[..colon].Trim()] = body[(colon + 1)..].Trim();+ }+ return metadata;+ }++ private static string[] DiscoverFixtures() => Directory.EnumerateFiles(CorpusRoot, "*.firmfixture", SearchOption.AllDirectories).OrderBy(p => p.Replace('\\', '/'), StringComparer.Ordinal).ToArray();++ private static JsonDocument Trace(string fixturePath, params string[] extraArgs)+ {+ var stdout = new StringWriter(); var stderr = new StringWriter();+ var args = new[] { "trace", "--fixture", fixturePath, "--json" }.Concat(extraArgs).ToArray();+ var exit = Aetheris.CLI.CliRunner.Run(args, stdout, stderr);+ Assert.True(exit == 0, stderr.ToString());+ return JsonDocument.Parse(stdout.ToString());+ }+}diff --git a/Aetheris.CLI/AirTrace.cs b/Aetheris.CLI/AirTrace.csindex 900e5a99..c96308c8 100644--- a/Aetheris.CLI/AirTrace.cs+++ b/Aetheris.CLI/AirTrace.cs@@ -88,6 +88,7 @@ internal static class AirTraceReportBuilderpublic static AirTraceReport BuildFixture(FirmFixture fixture){if (fixture.ParserBacked) return BuildParserBackedFixture(fixture);+ if (IsMetadataOnlyFixture(fixture)) return BuildMetadataOnlyFixture(fixture);var caseName = fixture.CaseName;if (caseName == "side-hole-face-attached-region") return BuildSideHoleFaceAttachedRegionFixture(fixture);@@ -170,6 +171,38 @@ internal static class AirTraceReportBuilderfeatureAir, constructiveAir, profileEmission, regions);}++ private static bool IsMetadataOnlyFixture(FirmFixture fixture)+ {+ var implementation = fixture.Metadata.GetValueOrDefault("implementation");+ if (string.Equals(implementation, "not-implemented", StringComparison.Ordinal) || string.Equals(implementation, "deferred", StringComparison.Ordinal)) return true;+ return !SupportedFixtureCases.Contains(fixture.CaseName, StringComparer.Ordinal) && string.Equals(implementation, "rejected", StringComparison.Ordinal);+ }++ private static AirTraceReport BuildMetadataOnlyFixture(FirmFixture fixture)+ {+ var implementation = fixture.Metadata.GetValueOrDefault("implementation") ?? (fixture.Expectation == "invalid" ? "rejected" : "not-implemented");+ var expectedDiagnostic = fixture.Metadata.GetValueOrDefault("expected-diagnostic") ?? (implementation == "not-implemented" ? "firmament-feature-not-implemented" : "firmament-fixture-rejected");+ var actualStage = fixture.ExpectedStage ?? (implementation == "deferred" ? "deferred" : implementation == "rejected" || fixture.Expectation == "invalid" ? "rejected" : "not-implemented");+ var isNotImplemented = implementation is "not-implemented" or "deferred";+ var expectationSatisfied = fixture.Expectation == "valid"+ ? isNotImplemented && (actualStage is "not-implemented" or "deferred" || fixture.ExpectedStage == actualStage)+ : implementation == "rejected" || actualStage == "rejected";+ var diagnostics = Stable([.. fixture.Diagnostics, "air-firmament-a1-metadata-only-fixture-classified", expectedDiagnostic, isNotImplemented ? "air-firmament-a1-feature-not-implemented" : "air-firmament-a1-fixture-rejected", expectationSatisfied ? "air-firmament-a1-expectation-satisfied" : "air-firmament-a1-expectation-not-satisfied"]).ToArray();+ return new("AIR-FIRMAMENT-A1", "trace", "lowering", "firmfixture", fixture.CaseName, expectationSatisfied, isNotImplemented ? "Fixture is valid Firmament design intent but its lowering/materialization route is deliberately not implemented in A1." : "Fixture is rejected by metadata contract with stable diagnostic.",+ new("FirmamentFixture", "none", fixture.Metadata.GetValueOrDefault("category") ?? "none", "none", "metadata-only-fixture", fixture.CaseName, fixture.Metadata.GetValueOrDefault("fixture-id") ?? fixture.CaseName, "AIR-FIRMAMENT-A1"),+ new("none", null, false, isNotImplemented ? "not implemented" : "rejected", fixture.Metadata.GetValueOrDefault("category") ?? "none", "none", diagnostics),+ new("none", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "none", "none", null, []),+ new("none", false, isNotImplemented ? "no geometry emitted for not-implemented Firmament fixture" : "no geometry emitted for invalid Firmament fixture"),+ new(false, false, false, false, []),+ new("not-requested", "none", "FirmamentFixture", "Firmament", fixture.Metadata.GetValueOrDefault("category") ?? "none", "none", "none", [], ["no-topology-authority"], ["AIR-FIRMAMENT-A1"], diagnostics),+ [], ["metadata-only corpus fixture", isNotImplemented ? "feature lowering not implemented" : "invalid fixture rejected"], diagnostics,+ ["future Firmament fixtures do not require geometry implementation", "no production route replacement", "no BRep topology behavior change", "no STEP exporter/importer change", "no CIR topology authority"],+ ["no broad new geometry feature support", "no production route replacement", "no shell/fillet/surfacing implementation", "no general side-hole support", "no arbitrary face/axis support", "no CIR topology authority", "no Boolean general admission", "no STEP exporter/importer behavior change", "no BRep topology behavior change"],+ new(fixture.Path, fixture.Expectation, fixture.CaseName, fixture.ExpectedStage, actualStage, fixture.ExpectedRoute, fixture.ExpectedReason, expectationSatisfied, false, diagnostics),+ fixture.Path, fixture.Expectation, fixture.CaseName, fixture.ExpectedStage, actualStage, fixture.ExpectedRoute, fixture.ExpectedReason, expectationSatisfied, diagnostics);+ }+public static string FixtureFileStem(FirmFixture fixture) => $"air-x7-{fixture.CaseName}-firmfixture-trace";private static AirTraceReport BuildPrismatic()diff --git a/Aetheris.CLI/CliRunner.cs b/Aetheris.CLI/CliRunner.csindex f9fdbf77..8dc52831 100644--- a/Aetheris.CLI/CliRunner.cs+++ b/Aetheris.CLI/CliRunner.cs@@ -298,7 +298,7 @@ public static class CliRunnerFirmFixture fixture;try { fixture = FirmFixtureLoader.Load(fixturePath); }catch (FirmFixtureException ex) { stderr.WriteLine(ex.Message); stderr.WriteLine(ex.Code); stderr.WriteLine(TraceUsage); return 1; }- if (!AirTraceReportBuilder.SupportedFixtureCases.Contains(fixture.CaseName, StringComparer.Ordinal))+ if (!AirTraceReportBuilder.SupportedFixtureCases.Contains(fixture.CaseName, StringComparer.Ordinal) && !fixture.Metadata.ContainsKey("implementation")){stderr.WriteLine($"Unknown Firmament fixture case '{fixture.CaseName}'.");stderr.WriteLine("air-x7-unknown-firmfixture-case");diff --git a/docs/air-a0-aetheris-v2-compiler-ir-constitution.md b/docs/air-a0-aetheris-v2-compiler-ir-constitution.mdindex c6031b17..1d4d775d 100644--- a/docs/air-a0-aetheris-v2-compiler-ir-constitution.md+++ b/docs/air-a0-aetheris-v2-compiler-ir-constitution.md@@ -813,3 +813,7 @@ AIR-REGION-X6 reinforces the constitution's separation between AIR, BRepPlan, BR## AIR-REGION-X7 noteAIR-REGION-X7 consumes the controlled side-hole placeholder plan for the `+X` fixture and materializes standalone patch evidence for the entry loop, exit loop, and cylindrical cut wall. Parent BRep integration remains deferred; CIR remains analysis-only; Boolean is not generally admitted; no production route replacement or general side-hole support is introduced.++## AIR-FIRMAMENT-A1 Firmament source fixture corpus note++AIR-FIRMAMENT-A1 establishes `fixtures/Firmament/` as the source-language corpus for compiler-style development: Firmament source fixture -> parse -> semantic intent -> Feature AIR -> Constructive/Compositional AIR -> BRepPlan -> BRep -> STEP/artifacts -> trace/diagnostics -> regression corpus. Valid source intent can be tracked before implementation with `implementation: not-implemented` or `deferred`; such fixtures are not syntax-invalid and must report deliberate metadata-backed diagnostics instead of random parser/materialization failure. CIR remains analysis/evaluation mirror only and is not topology authority.diff --git a/docs/air-firmament-a1-firmament-fixture-corpus.md b/docs/air-firmament-a1-firmament-fixture-corpus.mdnew file mode 100644index 00000000..5d7e6fdf--- /dev/null+++ b/docs/air-firmament-a1-firmament-fixture-corpus.md@@ -0,0 +1,131 @@+# AIR-FIRMAMENT-A1 — Firmament fixture corpus and lowering-stage taxonomy++## Purpose++AIR-FIRMAMENT-A1 formalizes Firmament as Aetheris' source-language corpus. `.firmfixture` files are compiler-style fixtures: they record authoring intent, expected validity, expected implementation state, expected lowering stage, and stable diagnostics before geometry support is broadened.++## Compiler-style pipeline++```text+Firmament source fixture+ -> parse+ -> semantic intent+ -> Feature AIR+ -> Constructive / Compositional AIR+ -> BRepPlan+ -> BRep+ -> STEP / artifacts+ -> trace / diagnostics+ -> regression corpus+```++Firmament is source/authoring intent. AIR is the compiler IR layer. BRepPlan/BRep are topology/materialization backends. STEP/artifacts are compiler outputs. CIR remains an analysis/evaluation mirror only and is not topology authority.++## Fixture directory taxonomy++The corpus lives under `fixtures/Firmament/` with broad feature categories:++- `Primitive/`+- `Profile/`+- `Prism/`+- `Boolean/`+- `Region/`+- `Chamfer/`+- `Fillet/`+- `Surfacing/`+- `Shell/`+- `Pattern/`+- `Material/`+- `Invalid/` is reserved for cross-category invalid language fixtures when a category-local home is not clearer.++A1 uses this subdirectory convention inside each category:++- `valid/` — valid Firmament that is currently implemented and should reach its expected real stage.+- `future/` — valid Firmament/design intent whose lowering or materialization is explicitly not implemented or deferred.+- `invalid/` — invalid Firmament that should reject with stable diagnostics.++## Metadata contract++Each `.firmfixture` in the A1 batch carries leading `// key: value` metadata. Required A1 metadata fields are:++```text+// fixture-id:+// case:+// category:+// validity: valid | invalid+// implementation: implemented | not-implemented | deferred | rejected+// expected:+// expected-stage:+```++Common optional metadata keys include:++```text+// expected-diagnostic:+// expected-feature-air:+// expected-constructive-air:+// expected-brep-plan:+// expected-brep:+// expected-step-smoke:+// expected-artifact:+// expected-blocker-category:+// notes:+```++`case` remains for compatibility with the trace fixture loader. `validity` is source-language validity, while `implementation` records whether Aetheris currently lowers/materializes that valid intent.++## Stage taxonomy++A1 documents this stable lowering-stage vocabulary:++- `source-only`+- `parsed`+- `semantic-intent`+- `feature-air`+- `constructive-air`+- `brep-plan`+- `emitted-brep`+- `step-smoke`+- `artifact-emitted`+- `region-parent-integrated`+- `region-rejected`+- `rejected`+- `not-implemented`+- `deferred`++Existing region fixtures retain their established region-specific stages (`region-parent-integrated`, `region-rejected`). Existing parser-backed box fixtures report `emitted-brep` through the parser/profile-emission trace path.++## Valid vs. invalid vs. not implemented++A valid but unimplemented Firmament fixture is not syntax-invalid. It should be represented as:++```text+// validity: valid+// implementation: not-implemented+// expected-stage: not-implemented+// expected-diagnostic: firmament-feature-not-implemented+```++A1 adds a metadata-only trace classification path for future fixtures. That path reports deliberate `not-implemented`, `deferred`, or `rejected` outcomes without pretending geometry exists and without invoking broad new production routes.++## Broad feature categories++A1 starts coverage across primitives, profiles/prisms, booleans, regions, chamfers, fillets, surfacing, shell, patterns, and materials. Future features should be designed by writing intended Firmament first, marking it `not-implemented` or `deferred`, then designing Feature AIR, Constructive/Compositional AIR, BRepPlan/BRep, and STEP/artifact support in later milestones.++## Current A1 fixture batch summary++The corpus now includes 27 `.firmfixture` files:++- implemented valid fixtures: parser-backed box, top-face-loop chamfer, controlled side-hole FaceAttachedRegion;+- future/not-implemented valid fixtures: cylinder, profile/prism sketches, boolean subtract intent, face-attached pocket/boss, single-edge chamfer, single-edge fillet, ruled surfacing, shell, linear pattern, and material assignment;+- invalid/rejected fixtures: primitive missing radius, negative dimension, ambiguous boolean target, implicit parent mutation, unsupported chamfer/fillet/surfacing/shell/pattern/material cases.++The side-hole golden path remains part of the language-level corpus at `fixtures/Firmament/Region/valid/side-hole-face-attached-region.valid.firmfixture`. Its generated-on-demand artifact path remains controlled fixture evidence, not general side-hole support.++## Tests run++A1 adds `FirmamentFixtureCorpusTests` in `Aetheris.CLI.Tests`, covering metadata recognition, implemented stage reachability, not-implemented reporting, invalid diagnostics, side-hole golden-path corpus status, parser-backed box behavior, implementation independence, and deterministic corpus discovery/reporting.++## Next milestone recommendation++Next milestones should pick one narrow future fixture and lower it part-by-part: source parse, semantic intent, Feature AIR, Constructive/Compositional AIR, BRepPlan/BRep evidence, STEP/artifacts, and stable trace diagnostics. Do not admit broad shell, fillet, surfacing, Boolean, arbitrary side-hole, arbitrary face/axis, or CIR topology authority behavior through the corpus metadata path.diff --git a/docs/air-region-x13-side-hole-golden-path-artifacts.md b/docs/air-region-x13-side-hole-golden-path-artifacts.mdindex 413e6011..61b0e1ff 100644--- a/docs/air-region-x13-side-hole-golden-path-artifacts.md+++ b/docs/air-region-x13-side-hole-golden-path-artifacts.md@@ -78,3 +78,7 @@ dotnet test Aetheris.CLI.Tests/Aetheris.CLI.Tests.csproj --filter "Trace|Fixture## Recommended next milestoneAIR-REGION-X14 — Controlled side-hole parameter variation. Start with the same box and the same +X/-X through direction, varying only radius or center offset.++## AIR-FIRMAMENT-A1 corpus status++AIR-FIRMAMENT-A1 promotes the controlled side-hole fixture into the language-level Firmament corpus taxonomy. The fixture remains at `fixtures/Firmament/Region/valid/side-hole-face-attached-region.valid.firmfixture` with explicit metadata for source validity, implementation state, expected lowering stage, integration status, shell closure, STEP smoke, and artifact evidence. This is still the same controlled golden path only: it does not admit general side-hole support, arbitrary face/axis support, production Boolean fallback, CIR topology authority, STEP exporter/importer changes, or BRep topology behavior changes.diff --git a/fixtures/Firmament/Boolean/future/subtract-intent.valid.firmfixture b/fixtures/Firmament/Boolean/future/subtract-intent.valid.firmfixturenew file mode 100644index 00000000..f686a13d--- /dev/null+++ b/fixtures/Firmament/Boolean/future/subtract-intent.valid.firmfixture@@ -0,0 +1,12 @@+// fixture-id: boolean-subtract-intent+// case: boolean-subtract-intent+// category: Boolean+// validity: valid+// implementation: not-implemented+// expected: valid+// expected-stage: not-implemented+// expected-diagnostic: firmament-feature-not-implemented+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++solid base = Box(width: 10, depth: 8, height: 6);+feature cut = Cut(target: base, tool: Cylinder(radius: 1, height: 8));diff --git a/fixtures/Firmament/Boolean/invalid/ambiguous-target.invalid.firmfixture b/fixtures/Firmament/Boolean/invalid/ambiguous-target.invalid.firmfixturenew file mode 100644index 00000000..0f3c6536--- /dev/null+++ b/fixtures/Firmament/Boolean/invalid/ambiguous-target.invalid.firmfixture@@ -0,0 +1,13 @@+// fixture-id: boolean-ambiguous-target+// case: boolean-ambiguous-target+// category: Boolean+// validity: invalid+// implementation: rejected+// expected: invalid+// expected-stage: rejected+// expected-diagnostic: firmament-boolean-ambiguous-target+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++solid a = Box(width: 10, depth: 8, height: 6);+solid b = Box(width: 2, depth: 2, height: 2);+subtract Cylinder(radius: 1, height: 8);diff --git a/fixtures/Firmament/Chamfer/future/single-edge-chamfer.valid.firmfixture b/fixtures/Firmament/Chamfer/future/single-edge-chamfer.valid.firmfixturenew file mode 100644index 00000000..ad5eb7cf--- /dev/null+++ b/fixtures/Firmament/Chamfer/future/single-edge-chamfer.valid.firmfixture@@ -0,0 +1,12 @@+// fixture-id: chamfer-single-edge+// case: chamfer-single-edge+// category: Chamfer+// validity: valid+// implementation: not-implemented+// expected: valid+// expected-stage: not-implemented+// expected-diagnostic: firmament-feature-not-implemented+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++solid box = Box(width: 10, depth: 8, height: 6);+chamfer box.edge("top-front") distance 1;diff --git a/fixtures/Firmament/Chamfer/invalid/arbitrary-graph-chamfer.invalid.firmfixture b/fixtures/Firmament/Chamfer/invalid/arbitrary-graph-chamfer.invalid.firmfixtureindex a7b39555..73d1f4e5 100644--- a/fixtures/Firmament/Chamfer/invalid/arbitrary-graph-chamfer.invalid.firmfixture+++ b/fixtures/Firmament/Chamfer/invalid/arbitrary-graph-chamfer.invalid.firmfixture@@ -1,4 +1,9 @@// case: arbitrary-graph-chamfer+// fixture-id: arbitrary-graph-chamfer+// category: Chamfer+// validity: invalid+// implementation: rejected+// expected-diagnostic: air-x2-arbitrary-graph-rejected// expected: invalid// expected-stage: route-selection// expected-reason: arbitrary-graph-unsupporteddiff --git a/fixtures/Firmament/Chamfer/invalid/loop-fillet-deferred.invalid.firmfixture b/fixtures/Firmament/Chamfer/invalid/loop-fillet-deferred.invalid.firmfixtureindex a1b3e025..b06d40e5 100644--- a/fixtures/Firmament/Chamfer/invalid/loop-fillet-deferred.invalid.firmfixture+++ b/fixtures/Firmament/Chamfer/invalid/loop-fillet-deferred.invalid.firmfixture@@ -1,4 +1,9 @@// case: loop-fillet-deferred+// fixture-id: loop-fillet-deferred+// category: Chamfer+// validity: invalid+// implementation: rejected+// expected-diagnostic: air-x2-fillet-deferred// expected: invalid// expected-stage: route-selection// expected-reason: loop-fillet-deferred-until-single-edge-fillet-evidencediff --git a/fixtures/Firmament/Chamfer/invalid/non-uniform-loop-chamfer.invalid.firmfixture b/fixtures/Firmament/Chamfer/invalid/non-uniform-loop-chamfer.invalid.firmfixtureindex 2dae0f41..0d9e2822 100644--- a/fixtures/Firmament/Chamfer/invalid/non-uniform-loop-chamfer.invalid.firmfixture+++ b/fixtures/Firmament/Chamfer/invalid/non-uniform-loop-chamfer.invalid.firmfixture@@ -1,4 +1,9 @@// case: non-uniform-loop-chamfer+// fixture-id: non-uniform-loop-chamfer+// category: Chamfer+// validity: invalid+// implementation: rejected+// expected-diagnostic: air-x2-non-uniform-rule-rejected// expected: invalid// expected-stage: route-selection// expected-reason: non-uniform-rule-unsupporteddiff --git a/fixtures/Firmament/Chamfer/valid/top-face-loop-chamfer.valid.firmfixture b/fixtures/Firmament/Chamfer/valid/top-face-loop-chamfer.valid.firmfixtureindex a3104392..31815a9e 100644--- a/fixtures/Firmament/Chamfer/valid/top-face-loop-chamfer.valid.firmfixture+++ b/fixtures/Firmament/Chamfer/valid/top-face-loop-chamfer.valid.firmfixture@@ -1,4 +1,8 @@// case: top-face-loop-chamfer+// fixture-id: top-face-loop-chamfer+// category: Chamfer+// validity: valid+// implementation: implemented// expected: valid// expected-stage: cir-mirror// expected-route: TopFaceLoopChamferPrismaticdiff --git a/fixtures/Firmament/Fillet/future/single-edge-fillet.valid.firmfixture b/fixtures/Firmament/Fillet/future/single-edge-fillet.valid.firmfixturenew file mode 100644index 00000000..2397d190--- /dev/null+++ b/fixtures/Firmament/Fillet/future/single-edge-fillet.valid.firmfixture@@ -0,0 +1,12 @@+// fixture-id: fillet-single-edge+// case: fillet-single-edge+// category: Fillet+// validity: valid+// implementation: not-implemented+// expected: valid+// expected-stage: not-implemented+// expected-diagnostic: firmament-feature-not-implemented+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++solid box = Box(width: 10, depth: 8, height: 6);+fillet box.edge("top-front") radius 1;diff --git a/fixtures/Firmament/Fillet/invalid/variable-radius-graph.invalid.firmfixture b/fixtures/Firmament/Fillet/invalid/variable-radius-graph.invalid.firmfixturenew file mode 100644index 00000000..a2a979f6--- /dev/null+++ b/fixtures/Firmament/Fillet/invalid/variable-radius-graph.invalid.firmfixture@@ -0,0 +1,12 @@+// fixture-id: fillet-variable-radius-graph+// case: fillet-variable-radius-graph+// category: Fillet+// validity: invalid+// implementation: rejected+// expected: invalid+// expected-stage: rejected+// expected-diagnostic: firmament-fillet-variable-radius-graph-unsupported+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++solid box = Box(width: 10, depth: 8, height: 6);+fillet graph(box.edges) radius from 0.5 to 2;diff --git a/fixtures/Firmament/Material/future/material-assignment.valid.firmfixture b/fixtures/Firmament/Material/future/material-assignment.valid.firmfixturenew file mode 100644index 00000000..36869889--- /dev/null+++ b/fixtures/Firmament/Material/future/material-assignment.valid.firmfixture@@ -0,0 +1,12 @@+// fixture-id: material-assignment+// case: material-assignment+// category: Material+// validity: valid+// implementation: not-implemented+// expected: valid+// expected-stage: not-implemented+// expected-diagnostic: firmament-feature-not-implemented+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++solid box = Box(width: 10, depth: 8, height: 6);+assign material "aluminum-6061" to box;diff --git a/fixtures/Firmament/Material/invalid/unknown-material.invalid.firmfixture b/fixtures/Firmament/Material/invalid/unknown-material.invalid.firmfixturenew file mode 100644index 00000000..3fa67ffc--- /dev/null+++ b/fixtures/Firmament/Material/invalid/unknown-material.invalid.firmfixture@@ -0,0 +1,12 @@+// fixture-id: material-unknown+// case: material-unknown+// category: Material+// validity: invalid+// implementation: rejected+// expected: invalid+// expected-stage: rejected+// expected-diagnostic: firmament-material-unknown-id+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++solid box = Box(width: 10, depth: 8, height: 6);+assign material "unobtanium" to box;diff --git a/fixtures/Firmament/Pattern/future/linear-pattern.valid.firmfixture b/fixtures/Firmament/Pattern/future/linear-pattern.valid.firmfixturenew file mode 100644index 00000000..486fb9d3--- /dev/null+++ b/fixtures/Firmament/Pattern/future/linear-pattern.valid.firmfixture@@ -0,0 +1,12 @@+// fixture-id: pattern-linear+// case: pattern-linear+// category: Pattern+// validity: valid+// implementation: not-implemented+// expected: valid+// expected-stage: not-implemented+// expected-diagnostic: firmament-feature-not-implemented+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++feature hole = Cut(target: base, tool: Cylinder(radius: 1, height: 8));+pattern linear hole count 4 pitch 3 along X;diff --git a/fixtures/Firmament/Pattern/invalid/missing-seed.invalid.firmfixture b/fixtures/Firmament/Pattern/invalid/missing-seed.invalid.firmfixturenew file mode 100644index 00000000..63f86f4b--- /dev/null+++ b/fixtures/Firmament/Pattern/invalid/missing-seed.invalid.firmfixture@@ -0,0 +1,11 @@+// fixture-id: pattern-missing-seed+// case: pattern-missing-seed+// category: Pattern+// validity: invalid+// implementation: rejected+// expected: invalid+// expected-stage: rejected+// expected-diagnostic: firmament-pattern-missing-seed+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++pattern linear count 4 pitch 3 along X;diff --git a/fixtures/Firmament/Primitive/invalid/missing-radius.invalid.firmfixture b/fixtures/Firmament/Primitive/invalid/missing-radius.invalid.firmfixturenew file mode 100644index 00000000..0e506a67--- /dev/null+++ b/fixtures/Firmament/Primitive/invalid/missing-radius.invalid.firmfixture@@ -0,0 +1,11 @@+// fixture-id: primitive-missing-radius+// case: primitive-missing-radius+// category: Primitive+// validity: invalid+// implementation: rejected+// expected: invalid+// expected-stage: rejected+// expected-diagnostic: firmament-primitive-missing-radius+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++solid bad = Cylinder(height: 6);diff --git a/fixtures/Firmament/Primitive/invalid/negative-dimension.invalid.firmfixture b/fixtures/Firmament/Primitive/invalid/negative-dimension.invalid.firmfixturenew file mode 100644index 00000000..e053da23--- /dev/null+++ b/fixtures/Firmament/Primitive/invalid/negative-dimension.invalid.firmfixture@@ -0,0 +1,11 @@+// fixture-id: primitive-negative-dimension+// case: primitive-negative-dimension+// category: Primitive+// validity: invalid+// implementation: rejected+// expected: invalid+// expected-stage: rejected+// expected-diagnostic: firmament-primitive-negative-dimension+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++solid bad = Box(width: -1, depth: 8, height: 6);diff --git a/fixtures/Firmament/Primitive/valid/box.valid.firmfixture b/fixtures/Firmament/Primitive/valid/box.valid.firmfixtureindex b7378112..dc9bcf17 100644--- a/fixtures/Firmament/Primitive/valid/box.valid.firmfixture+++ b/fixtures/Firmament/Primitive/valid/box.valid.firmfixture@@ -1,4 +1,8 @@// case: box+// fixture-id: box+// category: Primitive+// validity: valid+// implementation: implemented// expected: valid// expected-stage: emitted-brep// expected-feature-air: CreateBoxdiff --git a/fixtures/Firmament/Primitive/valid/cylinder.valid.firmfixture b/fixtures/Firmament/Primitive/valid/cylinder.valid.firmfixturenew file mode 100644index 00000000..6830c6c9--- /dev/null+++ b/fixtures/Firmament/Primitive/valid/cylinder.valid.firmfixture@@ -0,0 +1,11 @@+// fixture-id: primitive-cylinder+// case: primitive-cylinder+// category: Primitive+// validity: valid+// implementation: not-implemented+// expected: valid+// expected-stage: not-implemented+// expected-diagnostic: firmament-feature-not-implemented+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++solid cyl = Cylinder(radius: 2, height: 6);diff --git a/fixtures/Firmament/Prism/future/profile-hole-extrude.valid.firmfixture b/fixtures/Firmament/Prism/future/profile-hole-extrude.valid.firmfixturenew file mode 100644index 00000000..f2f09ab5--- /dev/null+++ b/fixtures/Firmament/Prism/future/profile-hole-extrude.valid.firmfixture@@ -0,0 +1,12 @@+// fixture-id: prism-profile-hole-extrude+// case: prism-profile-hole-extrude+// category: Prism+// validity: valid+// implementation: not-implemented+// expected: valid+// expected-stage: not-implemented+// expected-diagnostic: firmament-feature-not-implemented+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++profile plate = Rectangle(width: 10, depth: 8) - Circle(radius: 1);+solid prism = extrude(plate, height: 2);diff --git a/fixtures/Firmament/Profile/future/rectangular-profile-extrude.valid.firmfixture b/fixtures/Firmament/Profile/future/rectangular-profile-extrude.valid.firmfixturenew file mode 100644index 00000000..8522334e--- /dev/null+++ b/fixtures/Firmament/Profile/future/rectangular-profile-extrude.valid.firmfixture@@ -0,0 +1,12 @@+// fixture-id: profile-rectangular-extrude+// case: profile-rectangular-extrude+// category: Profile+// validity: valid+// implementation: not-implemented+// expected: valid+// expected-stage: not-implemented+// expected-diagnostic: firmament-feature-not-implemented+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++profile rect = Rectangle(width: 10, depth: 8);+solid prism = extrude(rect, height: 6);diff --git a/fixtures/Firmament/Region/future/face-attached-boss.valid.firmfixture b/fixtures/Firmament/Region/future/face-attached-boss.valid.firmfixturenew file mode 100644index 00000000..50533286--- /dev/null+++ b/fixtures/Firmament/Region/future/face-attached-boss.valid.firmfixture@@ -0,0 +1,12 @@+// fixture-id: region-face-attached-boss+// case: region-face-attached-boss+// category: Region+// validity: valid+// implementation: not-implemented+// expected: valid+// expected-stage: not-implemented+// expected-diagnostic: firmament-feature-not-implemented+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++solid box = Box(width: 10, depth: 8, height: 6);+region boss on box.face("+Z") { circle radius 1; add height 2; }diff --git a/fixtures/Firmament/Region/future/face-attached-pocket.valid.firmfixture b/fixtures/Firmament/Region/future/face-attached-pocket.valid.firmfixturenew file mode 100644index 00000000..78689cf0--- /dev/null+++ b/fixtures/Firmament/Region/future/face-attached-pocket.valid.firmfixture@@ -0,0 +1,12 @@+// fixture-id: region-face-attached-pocket+// case: region-face-attached-pocket+// category: Region+// validity: valid+// implementation: not-implemented+// expected: valid+// expected-stage: not-implemented+// expected-diagnostic: firmament-feature-not-implemented+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++solid box = Box(width: 10, depth: 8, height: 6);+region pocket on box.face("+Z") { rectangle width 2 depth 1; cut depth 2; }diff --git a/fixtures/Firmament/Region/invalid/implicit-parent-mutation.invalid.firmfixture b/fixtures/Firmament/Region/invalid/implicit-parent-mutation.invalid.firmfixtureindex 6b8d4be7..b82f77da 100644--- a/fixtures/Firmament/Region/invalid/implicit-parent-mutation.invalid.firmfixture+++ b/fixtures/Firmament/Region/invalid/implicit-parent-mutation.invalid.firmfixture@@ -1,4 +1,8 @@// case: implicit-parent-mutation-region+// fixture-id: implicit-parent-mutation+// category: Region+// validity: invalid+// implementation: rejected// expected: invalid// expected-stage: region-rejected// expected-reason: implicit-parent-mutation-rejecteddiff --git a/fixtures/Firmament/Region/valid/side-hole-face-attached-region.valid.firmfixture b/fixtures/Firmament/Region/valid/side-hole-face-attached-region.valid.firmfixtureindex 503a48da..08cc2226 100644--- a/fixtures/Firmament/Region/valid/side-hole-face-attached-region.valid.firmfixture+++ b/fixtures/Firmament/Region/valid/side-hole-face-attached-region.valid.firmfixture@@ -1,4 +1,8 @@// case: side-hole-face-attached-region+// fixture-id: side-hole-face-attached-region+// category: Region+// validity: valid+// implementation: implemented// expected: valid// expected-stage: region-parent-integrated// expected-region-kind: FaceAttachedRegiondiff --git a/fixtures/Firmament/Shell/future/open-top-box-shell.valid.firmfixture b/fixtures/Firmament/Shell/future/open-top-box-shell.valid.firmfixturenew file mode 100644index 00000000..3ac37f17--- /dev/null+++ b/fixtures/Firmament/Shell/future/open-top-box-shell.valid.firmfixture@@ -0,0 +1,12 @@+// fixture-id: shell-open-top-box+// case: shell-open-top-box+// category: Shell+// validity: valid+// implementation: not-implemented+// expected: valid+// expected-stage: not-implemented+// expected-diagnostic: firmament-feature-not-implemented+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++solid box = Box(width: 10, depth: 8, height: 6);+shell box remove box.face("+Z") thickness 1;diff --git a/fixtures/Firmament/Shell/invalid/negative-thickness.invalid.firmfixture b/fixtures/Firmament/Shell/invalid/negative-thickness.invalid.firmfixturenew file mode 100644index 00000000..e8d9c3f7--- /dev/null+++ b/fixtures/Firmament/Shell/invalid/negative-thickness.invalid.firmfixture@@ -0,0 +1,12 @@+// fixture-id: shell-negative-thickness+// case: shell-negative-thickness+// category: Shell+// validity: invalid+// implementation: rejected+// expected: invalid+// expected-stage: rejected+// expected-diagnostic: firmament-shell-thickness-non-positive+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++solid box = Box(width: 10, depth: 8, height: 6);+shell box remove box.face("+Z") thickness -1;diff --git a/fixtures/Firmament/Surfacing/future/ruled-surface.valid.firmfixture b/fixtures/Firmament/Surfacing/future/ruled-surface.valid.firmfixturenew file mode 100644index 00000000..0da0f101--- /dev/null+++ b/fixtures/Firmament/Surfacing/future/ruled-surface.valid.firmfixture@@ -0,0 +1,11 @@+// fixture-id: surfacing-ruled-surface+// case: surfacing-ruled-surface+// category: Surfacing+// validity: valid+// implementation: not-implemented+// expected: valid+// expected-stage: not-implemented+// expected-diagnostic: firmament-feature-not-implemented+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++surface s = ruled(profileA, profileB);diff --git a/fixtures/Firmament/Surfacing/invalid/underconstrained.invalid.firmfixture b/fixtures/Firmament/Surfacing/invalid/underconstrained.invalid.firmfixturenew file mode 100644index 00000000..cb36c498--- /dev/null+++ b/fixtures/Firmament/Surfacing/invalid/underconstrained.invalid.firmfixture@@ -0,0 +1,11 @@+// fixture-id: surfacing-underconstrained+// case: surfacing-underconstrained+// category: Surfacing+// validity: invalid+// implementation: rejected+// expected: invalid+// expected-stage: rejected+// expected-diagnostic: firmament-surfacing-underconstrained+// notes: AIR-FIRMAMENT-A1 metadata-only corpus fixture; syntax may be future design intent where parser support is not yet settled.++surface s = loft();