Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

Wave 376/509: Kernel rig: configuration cases, one configured block with each row's exact geometry

jyviko93f8ba1a8d99
diff --git a/tests/kernel-cases/history/cov-config-activate-a-longer-row/expected.json b/tests/kernel-cases/history/cov-config-activate-a-longer-row/expected.json
new file mode 100644
index 0000000000..02cda5b1c0
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-activate-a-longer-row/expected.json
@@ -0,0 +1,31 @@
+{
+ "sources": [],
+ "what": "config.activate of a row with W = 60",
+ "method": "60x30x10 with the 10 mm hole: V = 18000 - pi 25 10; faces 7",
+ "body_count": 1,
+ "volume_mm3": 17214.601836602553,
+ "faces": 7,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 60,
+ 30,
+ 10
+ ]
+ },
+ "results": [
+ {
+ "step": 7,
+ "json": {
+ "active": "Long",
+ "errors": [],
+ "matches": true
+ }
+ }
+ ],
+ "source": "analytic"
+}
diff --git a/tests/kernel-cases/history/cov-config-activate-a-longer-row/recipe.json b/tests/kernel-cases/history/cov-config-activate-a-longer-row/recipe.json
new file mode 100644
index 0000000000..6a79e35fe1
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-activate-a-longer-row/recipe.json
@@ -0,0 +1,20 @@
+{
+ "base": "../cov-config-configure-default-row",
+ "commands": [
+ {
+ "command": "config.row",
+ "params": {
+ "name": "Long",
+ "values": {
+ "W": "60 mm"
+ }
+ }
+ },
+ {
+ "command": "config.activate",
+ "params": {
+ "row": "Long"
+ }
+ }
+ ]
+}
diff --git a/tests/kernel-cases/history/cov-config-activate-a-row-that-fails-refused/expected.json b/tests/kernel-cases/history/cov-config-activate-a-row-that-fails-refused/expected.json
new file mode 100644
index 0000000000..a58ada9bc0
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-activate-a-row-that-fails-refused/expected.json
@@ -0,0 +1,8 @@
+{
+ "sources": [],
+ "what": "config.activate of a row with a block 0 long",
+ "source": "invariants",
+ "method": "a 0 mm block cannot be built: the activation is refused and the design kept",
+ "outcome": "refused",
+ "refusal": "configuration `Zero` would fail to rebuild"
+}
diff --git a/tests/kernel-cases/history/cov-config-activate-a-row-that-fails-refused/recipe.json b/tests/kernel-cases/history/cov-config-activate-a-row-that-fails-refused/recipe.json
new file mode 100644
index 0000000000..b08bbf7b60
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-activate-a-row-that-fails-refused/recipe.json
@@ -0,0 +1,20 @@
+{
+ "base": "../cov-config-configure-default-row",
+ "commands": [
+ {
+ "command": "config.row",
+ "params": {
+ "name": "Zero",
+ "values": {
+ "W": "0 mm"
+ }
+ }
+ },
+ {
+ "command": "config.activate",
+ "params": {
+ "row": "Zero"
+ }
+ }
+ ]
+}
diff --git a/tests/kernel-cases/history/cov-config-activate-a-row-that-suppresses-the-hole/expected.json b/tests/kernel-cases/history/cov-config-activate-a-row-that-suppresses-the-hole/expected.json
new file mode 100644
index 0000000000..0255609c15
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-activate-a-row-that-suppresses-the-hole/expected.json
@@ -0,0 +1,9 @@
+{
+ "sources": [],
+ "what": "config.activate of a row that suppresses the hole",
+ "method": "the 40x30x10 block without its hole: V = 12000; 6 faces",
+ "body_count": 1,
+ "volume_mm3": 12000.0,
+ "faces": 6,
+ "source": "analytic"
+}
diff --git a/tests/kernel-cases/history/cov-config-activate-a-row-that-suppresses-the-hole/recipe.json b/tests/kernel-cases/history/cov-config-activate-a-row-that-suppresses-the-hole/recipe.json
new file mode 100644
index 0000000000..cfa852ce6f
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-activate-a-row-that-suppresses-the-hole/recipe.json
@@ -0,0 +1,20 @@
+{
+ "base": "../cov-config-configure-default-row",
+ "commands": [
+ {
+ "command": "config.row",
+ "params": {
+ "name": "Plain",
+ "values": {
+ "suppress:Hole": true
+ }
+ }
+ },
+ {
+ "command": "config.activate",
+ "params": {
+ "row": "Plain"
+ }
+ }
+ ]
+}
diff --git a/tests/kernel-cases/history/cov-config-activate-back-to-default/expected.json b/tests/kernel-cases/history/cov-config-activate-back-to-default/expected.json
new file mode 100644
index 0000000000..a58dc1e086
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-activate-back-to-default/expected.json
@@ -0,0 +1,21 @@
+{
+ "sources": [],
+ "what": "config.activate of Long and then Default again: the first part back",
+ "method": "W = 40 again: V = 12000 - pi 25 10; faces 7",
+ "body_count": 1,
+ "volume_mm3": 11214.601836602551,
+ "faces": 7,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 40,
+ 30,
+ 10
+ ]
+ },
+ "source": "analytic"
+}
diff --git a/tests/kernel-cases/history/cov-config-activate-back-to-default/recipe.json b/tests/kernel-cases/history/cov-config-activate-back-to-default/recipe.json
new file mode 100644
index 0000000000..6f99c94a8f
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-activate-back-to-default/recipe.json
@@ -0,0 +1,26 @@
+{
+ "base": "../cov-config-configure-default-row",
+ "commands": [
+ {
+ "command": "config.row",
+ "params": {
+ "name": "Long",
+ "values": {
+ "W": "60 mm"
+ }
+ }
+ },
+ {
+ "command": "config.activate",
+ "params": {
+ "row": "Long"
+ }
+ },
+ {
+ "command": "config.activate",
+ "params": {
+ "row": "Default"
+ }
+ }
+ ]
+}
diff --git a/tests/kernel-cases/history/cov-config-activate-unknown-row-refused/expected.json b/tests/kernel-cases/history/cov-config-activate-unknown-row-refused/expected.json
new file mode 100644
index 0000000000..90c6fbc1ea
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-activate-unknown-row-refused/expected.json
@@ -0,0 +1,8 @@
+{
+ "sources": [],
+ "what": "config.activate of a row the table does not have",
+ "source": "invariants",
+ "method": "no row Nope: a clean refusal naming it",
+ "outcome": "refused",
+ "refusal": "configuration `Nope`"
+}
diff --git a/tests/kernel-cases/history/cov-config-activate-unknown-row-refused/recipe.json b/tests/kernel-cases/history/cov-config-activate-unknown-row-refused/recipe.json
new file mode 100644
index 0000000000..3c0f1114e4
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-activate-unknown-row-refused/recipe.json
@@ -0,0 +1,11 @@
+{
+ "base": "../cov-config-configure-default-row",
+ "commands": [
+ {
+ "command": "config.activate",
+ "params": {
+ "row": "Nope"
+ }
+ }
+ ]
+}
diff --git a/tests/kernel-cases/history/cov-config-column-adds-a-height/expected.json b/tests/kernel-cases/history/cov-config-column-adds-a-height/expected.json
new file mode 100644
index 0000000000..6be6899d09
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-column-adds-a-height/expected.json
@@ -0,0 +1,41 @@
+{
+ "sources": [],
+ "what": "config.column adds the height H; a row with H = 20 makes the block 20 high",
+ "method": "40x30x20 with the 10 mm hole through: V = 24000 - pi 25 20; faces 7; the column fills Default with H's 10 mm",
+ "body_count": 1,
+ "volume_mm3": 22429.203673205102,
+ "faces": 7,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 40,
+ 30,
+ 20
+ ]
+ },
+ "results": [
+ {
+ "step": 6,
+ "json": {
+ "columns": [
+ "param:W",
+ "suppress:Hole",
+ "param:H"
+ ],
+ "rows": [
+ {
+ "name": "Default",
+ "values": {
+ "param:H": "10 mm"
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "source": "analytic"
+}
diff --git a/tests/kernel-cases/history/cov-config-column-adds-a-height/recipe.json b/tests/kernel-cases/history/cov-config-column-adds-a-height/recipe.json
new file mode 100644
index 0000000000..1d1c302eb2
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-column-adds-a-height/recipe.json
@@ -0,0 +1,26 @@
+{
+ "base": "../cov-config-configure-default-row",
+ "commands": [
+ {
+ "command": "config.column",
+ "params": {
+ "param": "H"
+ }
+ },
+ {
+ "command": "config.row",
+ "params": {
+ "name": "Tall",
+ "values": {
+ "H": "20 mm"
+ }
+ }
+ },
+ {
+ "command": "config.activate",
+ "params": {
+ "row": "Tall"
+ }
+ }
+ ]
+}
diff --git a/tests/kernel-cases/history/cov-config-column-delete-drops-its-values/expected.json b/tests/kernel-cases/history/cov-config-column-delete-drops-its-values/expected.json
new file mode 100644
index 0000000000..2c7c6a5aa9
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-column-delete-drops-its-values/expected.json
@@ -0,0 +1,31 @@
+{
+ "sources": [],
+ "what": "config.column delete of W: Long no longer sets the length",
+ "method": "the W column and its values go; activating Long sets only the hole (on): W stays 40, V = 12000 - pi 25 10",
+ "body_count": 1,
+ "volume_mm3": 11214.601836602551,
+ "faces": 7,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 40,
+ 30,
+ 10
+ ]
+ },
+ "results": [
+ {
+ "step": 7,
+ "json": {
+ "columns": [
+ "suppress:Hole"
+ ]
+ }
+ }
+ ],
+ "source": "analytic"
+}
diff --git a/tests/kernel-cases/history/cov-config-column-delete-drops-its-values/recipe.json b/tests/kernel-cases/history/cov-config-column-delete-drops-its-values/recipe.json
new file mode 100644
index 0000000000..afa566c9c3
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-column-delete-drops-its-values/recipe.json
@@ -0,0 +1,27 @@
+{
+ "base": "../cov-config-configure-default-row",
+ "commands": [
+ {
+ "command": "config.row",
+ "params": {
+ "name": "Long",
+ "values": {
+ "W": "60 mm"
+ }
+ }
+ },
+ {
+ "command": "config.column",
+ "params": {
+ "param": "W",
+ "delete": true
+ }
+ },
+ {
+ "command": "config.activate",
+ "params": {
+ "row": "Long"
+ }
+ }
+ ]
+}
diff --git a/tests/kernel-cases/history/cov-config-column-unknown-parameter-refused/expected.json b/tests/kernel-cases/history/cov-config-column-unknown-parameter-refused/expected.json
new file mode 100644
index 0000000000..21aed2eb11
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-column-unknown-parameter-refused/expected.json
@@ -0,0 +1,8 @@
+{
+ "sources": [],
+ "what": "config.column of a parameter the design does not have",
+ "source": "invariants",
+ "method": "no parameter Depth: refused naming it",
+ "outcome": "refused",
+ "refusal": "no parameter `Depth`"
+}
diff --git a/tests/kernel-cases/history/cov-config-column-unknown-parameter-refused/recipe.json b/tests/kernel-cases/history/cov-config-column-unknown-parameter-refused/recipe.json
new file mode 100644
index 0000000000..1d68c27962
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-column-unknown-parameter-refused/recipe.json
@@ -0,0 +1,11 @@
+{
+ "base": "../cov-config-configure-default-row",
+ "commands": [
+ {
+ "command": "config.column",
+ "params": {
+ "param": "Depth"
+ }
+ }
+ ]
+}
diff --git a/tests/kernel-cases/history/cov-config-configure-default-row/expected.json b/tests/kernel-cases/history/cov-config-configure-default-row/expected.json
new file mode 100644
index 0000000000..392daf388c
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-configure-default-row/expected.json
@@ -0,0 +1,43 @@
+{
+ "sources": [],
+ "what": "config.configure of a block's length W and its hole's suppression: a Default row with today's values",
+ "method": "W = 40, H = 10, the 10 mm hole through: V = 12000 - pi 25 10; faces 7; the Default row holds W's expression and the hole on",
+ "body_count": 1,
+ "volume_mm3": 11214.601836602551,
+ "faces": 7,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 40,
+ 30,
+ 10
+ ]
+ },
+ "results": [
+ {
+ "step": 5,
+ "json": {
+ "active": "Default",
+ "columns": [
+ "param:W",
+ "suppress:Hole"
+ ],
+ "matches": true,
+ "rows": [
+ {
+ "name": "Default",
+ "values": {
+ "param:W": "40 mm",
+ "suppress:Hole": "false"
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "source": "analytic"
+}
diff --git a/tests/kernel-cases/history/cov-config-configure-default-row/recipe.json b/tests/kernel-cases/history/cov-config-configure-default-row/recipe.json
new file mode 100644
index 0000000000..85e1dc7700
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-configure-default-row/recipe.json
@@ -0,0 +1,53 @@
+{
+ "commands": [
+ {
+ "command": "parameters.add",
+ "params": {
+ "name": "W",
+ "expression": "40 mm",
+ "unit": "mm"
+ }
+ },
+ {
+ "command": "parameters.add",
+ "params": {
+ "name": "H",
+ "expression": "10 mm",
+ "unit": "mm"
+ }
+ },
+ {
+ "command": "solid.box",
+ "params": {
+ "length": "W",
+ "width": 30,
+ "height": "H",
+ "body_name": "Block",
+ "name": "Block"
+ }
+ },
+ {
+ "command": "solid.hole",
+ "params": {
+ "position": [
+ 20,
+ 15,
+ 10
+ ],
+ "diameter": 10,
+ "name": "Hole"
+ }
+ },
+ {
+ "command": "config.configure",
+ "params": {
+ "params": [
+ "W"
+ ],
+ "features": [
+ "Hole"
+ ]
+ }
+ }
+ ]
+}
diff --git a/tests/kernel-cases/history/cov-config-configure-unknown-feature-refused/expected.json b/tests/kernel-cases/history/cov-config-configure-unknown-feature-refused/expected.json
new file mode 100644
index 0000000000..9676caf7cd
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-configure-unknown-feature-refused/expected.json
@@ -0,0 +1,8 @@
+{
+ "sources": [],
+ "what": "config.configure of a feature the design does not have",
+ "source": "invariants",
+ "method": "no feature Nope: refused naming it",
+ "outcome": "refused",
+ "refusal": "no feature `Nope`"
+}
diff --git a/tests/kernel-cases/history/cov-config-configure-unknown-feature-refused/recipe.json b/tests/kernel-cases/history/cov-config-configure-unknown-feature-refused/recipe.json
new file mode 100644
index 0000000000..30de55fa75
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-configure-unknown-feature-refused/recipe.json
@@ -0,0 +1,13 @@
+{
+ "base": "../cov-config-configure-default-row",
+ "commands": [
+ {
+ "command": "config.configure",
+ "params": {
+ "features": [
+ "Nope"
+ ]
+ }
+ }
+ ]
+}
diff --git a/tests/kernel-cases/history/cov-config-preview-leaves-the-design/expected.json b/tests/kernel-cases/history/cov-config-preview-leaves-the-design/expected.json
new file mode 100644
index 0000000000..1a6aa056f0
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-preview-leaves-the-design/expected.json
@@ -0,0 +1,38 @@
+{
+ "sources": [],
+ "what": "config.preview of Long rebuilds it on the side: the design stays Default",
+ "method": "the preview answers for Long, the design stays W = 40: V = 12000 - pi 25 10; faces 7",
+ "body_count": 1,
+ "volume_mm3": 11214.601836602551,
+ "faces": 7,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 40,
+ 30,
+ 10
+ ]
+ },
+ "results": [
+ {
+ "step": 7,
+ "json": {
+ "preview": true,
+ "active": "Long",
+ "errors": []
+ }
+ },
+ {
+ "step": 8,
+ "json": {
+ "active": "Default",
+ "matches": true
+ }
+ }
+ ],
+ "source": "analytic"
+}
diff --git a/tests/kernel-cases/history/cov-config-preview-leaves-the-design/recipe.json b/tests/kernel-cases/history/cov-config-preview-leaves-the-design/recipe.json
new file mode 100644
index 0000000000..024f7b1883
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-preview-leaves-the-design/recipe.json
@@ -0,0 +1,24 @@
+{
+ "base": "../cov-config-configure-default-row",
+ "commands": [
+ {
+ "command": "config.row",
+ "params": {
+ "name": "Long",
+ "values": {
+ "W": "60 mm"
+ }
+ }
+ },
+ {
+ "command": "config.preview",
+ "params": {
+ "row": "Long"
+ }
+ },
+ {
+ "command": "config.table",
+ "params": {}
+ }
+ ]
+}
diff --git a/tests/kernel-cases/history/cov-config-row-unknown-column-refused/expected.json b/tests/kernel-cases/history/cov-config-row-unknown-column-refused/expected.json
new file mode 100644
index 0000000000..4996b1a725
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-row-unknown-column-refused/expected.json
@@ -0,0 +1,8 @@
+{
+ "sources": [],
+ "what": "config.row with a value for a column the table does not have",
+ "source": "invariants",
+ "method": "Depth is not a column: refused, saying how to add one",
+ "outcome": "refused",
+ "refusal": "`Depth` is not a column (config.column adds one)"
+}
diff --git a/tests/kernel-cases/history/cov-config-row-unknown-column-refused/recipe.json b/tests/kernel-cases/history/cov-config-row-unknown-column-refused/recipe.json
new file mode 100644
index 0000000000..fae97ddbd6
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-row-unknown-column-refused/recipe.json
@@ -0,0 +1,14 @@
+{
+ "base": "../cov-config-configure-default-row",
+ "commands": [
+ {
+ "command": "config.row",
+ "params": {
+ "name": "Deep",
+ "values": {
+ "Depth": "5 mm"
+ }
+ }
+ }
+ ]
+}
diff --git a/tests/kernel-cases/history/cov-config-rule-drives-a-parameter/expected.json b/tests/kernel-cases/history/cov-config-rule-drives-a-parameter/expected.json
new file mode 100644
index 0000000000..974b766dcb
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-rule-drives-a-parameter/expected.json
@@ -0,0 +1,21 @@
+{
+ "sources": [],
+ "what": "config.rule drives H to 20 when W is 60 or more",
+ "method": "Long: W = 60, the rule sets H = 20: V = 60 30 20 - pi 25 20 = 36000 - 500 pi; faces 7",
+ "body_count": 1,
+ "volume_mm3": 34429.203673205106,
+ "faces": 7,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 60,
+ 30,
+ 20
+ ]
+ },
+ "source": "analytic"
+}
diff --git a/tests/kernel-cases/history/cov-config-rule-drives-a-parameter/recipe.json b/tests/kernel-cases/history/cov-config-rule-drives-a-parameter/recipe.json
new file mode 100644
index 0000000000..928c5609da
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-rule-drives-a-parameter/recipe.json
@@ -0,0 +1,46 @@
+{
+ "base": "../cov-config-configure-default-row",
+ "commands": [
+ {
+ "command": "config.column",
+ "params": {
+ "param": "H"
+ }
+ },
+ {
+ "command": "config.row",
+ "params": {
+ "name": "Long",
+ "values": {
+ "W": "60 mm"
+ }
+ }
+ },
+ {
+ "command": "config.rule",
+ "params": {
+ "rule": {
+ "id": "tall",
+ "name": "Tall when long",
+ "condition": {
+ "type": "parameter",
+ "parameter": "W",
+ "operator": "ge",
+ "expression": "60 mm"
+ },
+ "effect": {
+ "type": "drive_parameter",
+ "parameter": "H",
+ "expression": "20 mm"
+ }
+ }
+ }
+ },
+ {
+ "command": "config.activate",
+ "params": {
+ "row": "Long"
+ }
+ }
+ ]
+}
diff --git a/tests/kernel-cases/history/cov-config-rule-range-refuses-a-row/expected.json b/tests/kernel-cases/history/cov-config-rule-range-refuses-a-row/expected.json
new file mode 100644
index 0000000000..a58dd7cbdc
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-rule-range-refuses-a-row/expected.json
@@ -0,0 +1,8 @@
+{
+ "sources": [],
+ "what": "config.rule limiting W to 30..50 while the row Long has W = 60",
+ "source": "invariants",
+ "method": "every row is checked against the new rule: Long's 60 is outside it, so the rule is refused",
+ "outcome": "refused",
+ "refusal": "rule `Range` restricts the final value"
+}
diff --git a/tests/kernel-cases/history/cov-config-rule-range-refuses-a-row/recipe.json b/tests/kernel-cases/history/cov-config-rule-range-refuses-a-row/recipe.json
new file mode 100644
index 0000000000..d80011b6c1
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-rule-range-refuses-a-row/recipe.json
@@ -0,0 +1,32 @@
+{
+ "base": "../cov-config-configure-default-row",
+ "commands": [
+ {
+ "command": "config.row",
+ "params": {
+ "name": "Long",
+ "values": {
+ "W": "60 mm"
+ }
+ }
+ },
+ {
+ "command": "config.rule",
+ "params": {
+ "rule": {
+ "id": "range",
+ "name": "Range",
+ "condition": {
+ "type": "always"
+ },
+ "effect": {
+ "type": "parameter_range",
+ "parameter": "W",
+ "minimum": "30 mm",
+ "maximum": "50 mm"
+ }
+ }
+ }
+ }
+ ]
+}
diff --git a/tests/kernel-cases/history/cov-config-rule-suppresses-the-hole-on-long-rows/expected.json b/tests/kernel-cases/history/cov-config-rule-suppresses-the-hole-on-long-rows/expected.json
new file mode 100644
index 0000000000..4953d59e6f
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-rule-suppresses-the-hole-on-long-rows/expected.json
@@ -0,0 +1,21 @@
+{
+ "sources": [],
+ "what": "config.rule: a block longer than 50 has no hole; activating Long applies it",
+ "method": "W = 60 > 50: the rule suppresses the hole: V = 60 30 10 = 18000; 6 faces",
+ "body_count": 1,
+ "volume_mm3": 18000.0,
+ "faces": 6,
+ "bbox": {
+ "min": [
+ 0,
+ 0,
+ 0
+ ],
+ "max": [
+ 60,
+ 30,
+ 10
+ ]
+ },
+ "source": "analytic"
+}
diff --git a/tests/kernel-cases/history/cov-config-rule-suppresses-the-hole-on-long-rows/recipe.json b/tests/kernel-cases/history/cov-config-rule-suppresses-the-hole-on-long-rows/recipe.json
new file mode 100644
index 0000000000..9c7b57ded5
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-rule-suppresses-the-hole-on-long-rows/recipe.json
@@ -0,0 +1,40 @@
+{
+ "base": "../cov-config-configure-default-row",
+ "commands": [
+ {
+ "command": "config.row",
+ "params": {
+ "name": "Long",
+ "values": {
+ "W": "60 mm"
+ }
+ }
+ },
+ {
+ "command": "config.rule",
+ "params": {
+ "rule": {
+ "id": "big",
+ "name": "Big",
+ "condition": {
+ "type": "parameter",
+ "parameter": "W",
+ "operator": "gt",
+ "expression": "50 mm"
+ },
+ "effect": {
+ "type": "drive_suppression",
+ "feature": 2,
+ "value": true
+ }
+ }
+ }
+ },
+ {
+ "command": "config.activate",
+ "params": {
+ "row": "Long"
+ }
+ }
+ ]
+}
diff --git a/tests/kernel-cases/history/cov-config-rules-lists-the-rules/expected.json b/tests/kernel-cases/history/cov-config-rules-lists-the-rules/expected.json
new file mode 100644
index 0000000000..275cd1eecb
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-rules-lists-the-rules/expected.json
@@ -0,0 +1,25 @@
+{
+ "sources": [],
+ "what": "config.rule adds two rules in one step; config.rules lists them in order",
+ "method": "Long: W = 60 > 50, Big suppresses the hole and Small does not match: V = 18000; 6 faces",
+ "body_count": 1,
+ "volume_mm3": 18000.0,
+ "faces": 6,
+ "results": [
+ {
+ "step": 9,
+ "json": {
+ "active": "Long",
+ "rules": [
+ {
+ "id": "big"
+ },
+ {
+ "id": "small"
+ }
+ ]
+ }
+ }
+ ],
+ "source": "analytic"
+}
diff --git a/tests/kernel-cases/history/cov-config-rules-lists-the-rules/recipe.json b/tests/kernel-cases/history/cov-config-rules-lists-the-rules/recipe.json
new file mode 100644
index 0000000000..e61a11d959
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-rules-lists-the-rules/recipe.json
@@ -0,0 +1,61 @@
+{
+ "base": "../cov-config-configure-default-row",
+ "commands": [
+ {
+ "command": "config.row",
+ "params": {
+ "name": "Long",
+ "values": {
+ "W": "60 mm"
+ }
+ }
+ },
+ {
+ "command": "config.rule",
+ "params": {
+ "rules": [
+ {
+ "id": "big",
+ "name": "Big",
+ "condition": {
+ "type": "parameter",
+ "parameter": "W",
+ "operator": "gt",
+ "expression": "50 mm"
+ },
+ "effect": {
+ "type": "drive_suppression",
+ "feature": 2,
+ "value": true
+ }
+ },
+ {
+ "id": "small",
+ "name": "Small",
+ "condition": {
+ "type": "parameter",
+ "parameter": "W",
+ "operator": "le",
+ "expression": "50 mm"
+ },
+ "effect": {
+ "type": "drive_suppression",
+ "feature": 2,
+ "value": false
+ }
+ }
+ ]
+ }
+ },
+ {
+ "command": "config.activate",
+ "params": {
+ "row": "Long"
+ }
+ },
+ {
+ "command": "config.rules",
+ "params": {}
+ }
+ ]
+}
diff --git a/tests/kernel-cases/history/cov-config-table-lists-every-row/expected.json b/tests/kernel-cases/history/cov-config-table-lists-every-row/expected.json
new file mode 100644
index 0000000000..d8f1b25cc1
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-table-lists-every-row/expected.json
@@ -0,0 +1,41 @@
+{
+ "sources": [],
+ "what": "config.table lists the three rows, each with its values",
+ "method": "Default (W 40, hole on), Long (W 60), Plain (hole off); Default stays active: V = 12000 - pi 25 10",
+ "body_count": 1,
+ "volume_mm3": 11214.601836602551,
+ "faces": 7,
+ "results": [
+ {
+ "step": 8,
+ "json": {
+ "active": "Default",
+ "matches": true,
+ "rows": [
+ {
+ "name": "Default",
+ "values": {
+ "param:W": "40 mm",
+ "suppress:Hole": "false"
+ }
+ },
+ {
+ "name": "Long",
+ "values": {
+ "param:W": "60 mm",
+ "suppress:Hole": "false"
+ }
+ },
+ {
+ "name": "Plain",
+ "values": {
+ "param:W": "40 mm",
+ "suppress:Hole": "true"
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "source": "analytic"
+}
diff --git a/tests/kernel-cases/history/cov-config-table-lists-every-row/recipe.json b/tests/kernel-cases/history/cov-config-table-lists-every-row/recipe.json
new file mode 100644
index 0000000000..55f529284f
--- /dev/null
+++ b/tests/kernel-cases/history/cov-config-table-lists-every-row/recipe.json
@@ -0,0 +1,27 @@
+{
+ "base": "../cov-config-configure-default-row",
+ "commands": [
+ {
+ "command": "config.row",
+ "params": {
+ "name": "Long",
+ "values": {
+ "W": "60 mm"
+ }
+ }
+ },
+ {
+ "command": "config.row",
+ "params": {
+ "name": "Plain",
+ "values": {
+ "suppress:Hole": true
+ }
+ }
+ },
+ {
+ "command": "config.table",
+ "params": {}
+ }
+ ]
+}