Verification
Minimal L-profile
A simple XZ L-profile provides a clean reusable geometry baseline
What this verifies
An L-shaped polygon is authored in XZ and symmetrically extruded without holes, fillets or secondary features.
scpf source
Complete primary source from the site branch; built revision below.
@dataclass
class Bracket:
"""Minimal L-profile qualification fixture.
Deliberately no holes, fillets or secondary features: this fixture exists
to verify profile geometry, XZ extrusion and later assembly relationships
without unrelated feature behavior obscuring the result.
"""
width: float = 24
arm_length: float = 40
arm_height: float = 12
def build(self):
with Sketch(name="Profile", plane="XZ") as sketch:
Polygon2D(
[
(0, 0),
(self.arm_length, 0),
(self.arm_length, self.arm_height),
(self.arm_height, self.arm_height),
(self.arm_height, self.arm_length),
(0, self.arm_length),
],
plane="XZ",
)
return sketch.extrude(self.width, sym=True)
Bracket()
Engineering explanation
Minimal L-profile
A simple XZ L-profile provides a clean reusable geometry baseline.
An L-shaped polygon is authored in XZ and symmetrically extruded without holes, fillets or secondary features.
- Group:
fundamentals - Parameters: 24 mm extrusion width; 40 mm arms; 12 mm arm thickness
- Model:
scpf/model.py - Verification:
verification/solidcraft.py - Page metadata:
model.yml
Build stages
- Create the L-shaped XZ polygon.
- Finish the explicit Profile sketch.
- Extrude the profile symmetrically through 24 mm.
Goal
Provide a deliberately simple reusable L-shaped reference component for later attachment/orientation qualification.
Forge API
with Sketch(plane=‘XZ’): Polygon2D(…, plane=‘XZ’); sketch.extrude(width, direction=Direction.SYMMETRIC)
Forge model
One symbolic L profile extruded symmetrically through its width; no holes, fillets, anchors or secondary features.
How Forge builds it in SolidCraft
Native XZ sketch/polygon plus symmetric extrusion. No assembly commands are present yet.
SolidCraft result
A clean 40 mm L profile with 12 mm arms and 24 mm symmetric extrusion width.
Saved-design test
Not yet an attachment mutation case. This component is intentionally the geometry baseline for upcoming multi-orientation anchor tests.
Geometry evidence
Bounds sufficient: false
A filled box can share the L-profile envelope. L-profile volume and a probe in the missing corner are required.
Geometry-rationale provenance: copied verbatim from
qualification/geometry_contracts.pyat commitbe40b09e7454a90e87d83768a9e7453c52ba5d76.
Reference notes
- OpenSCAD — Equivalent baseline is a 2D L polygon followed by linear_extrude(center=true).
- BOSL2 — Later attachment cases can reuse this simple shape while testing anchor/orient semantics independently of bracket feature complexity.
Source provenance
The engineering statements under Goal, Forge API, Forge model, SolidCraft
lowering/result, Saved-design test and Reference notes are preserved verbatim
from the last canonical qualification/cases.py source before its removal,
commit be40b09e7454a90e87d83768a9e7453c52ba5d76.
Current machine verification lives in
verification/solidcraft.py; accepted measured results
come from durable build/main.
Generated command sequence — scpf (7)
parameters.add{ "command": "parameters.add", "params": { "expression": "24", "name": "width", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "40", "name": "arm_length", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "12", "name": "arm_height", "unit": "mm" } }sketch.create{ "command": "sketch.create", "params": { "name": "Profile", "plane": "XZ" } }sketch.line{ "command": "sketch.line", "params": { "closed": true, "ids": [ "a", "b", "c", "d", "e", "f" ], "points": [ [ 0, 0 ], [ "arm_length", 0 ], [ "arm_length", "arm_height" ], [ "arm_height", "arm_height" ], [ "arm_height", "arm_length" ], [ 0, "arm_length" ] ] } }sketch.finish{ "command": "sketch.finish", "params": {} }solid.extrude{ "command": "solid.extrude", "params": { "body_name": "Bracket", "direction": "symmetric", "distance": "width" } }
Reference code
cadquery source · pass
"""CadQuery geometry reference for the minimal symmetric L bracket."""
import cadquery as cq
horizontal = cq.Solid.makeBox(40, 24, 12, cq.Vector(0, -12, -12))
vertical = cq.Solid.makeBox(12, 24, 40, cq.Vector(0, -12, -40))
bracket = horizontal.fuse(vertical)
model = cq.Assembly()
model.add(bracket, name="bracket")
build123d source · pass
"""build123d reference: an L section across the Y symmetry plane."""
from build123d import Box, BuildPart, Locations
with BuildPart() as model:
with Locations((20, 0, -6)):
Box(40, 24, 12)
with Locations((6, 0, -20)):
Box(12, 24, 40)
pythonscad source · pass
"""PythonSCAD geometry reference for the minimal symmetric L bracket."""
from pythonscad import *
def box_bounds(lo, hi):
size = [hi[i] - lo[i] for i in range(3)]
center = [(hi[i] + lo[i]) / 2 for i in range(3)]
return cube(size, center=True).translate(center)
horizontal = box_bounds([0, -12, -12], [40, 12, 0])
vertical = box_bounds([0, -12, -40], [12, 12, 0])
model = horizontal | vertical
pybosl2 source · pass
"""pyBOSL2 geometry reference for the minimal symmetric L bracket."""
from pybosl2 import cuboid
def box_bounds(lo, hi):
size = [hi[i] - lo[i] for i in range(3)]
center = [(hi[i] + lo[i]) / 2 for i in range(3)]
return cuboid(size).translate(center)
horizontal = box_bounds([0, -12, -12], [40, 12, 0])
vertical = box_bounds([0, -12, -40], [12, 12, 0])
model = horizontal | vertical
Current visual verification — scpf
Each model-owned view is evaluated independently. Actual is the current native result; Goal is the declared expected profile; Overlay combines both; Diff compares the approved regression baseline.
front
passRegression: pass · expected shape: pass
right
passRegression: pass · expected shape: pass
iso
passRegression: pass · expected shape: pass
Image overview





Only images present in the published build are displayed. Presentation previews are not visual verification results.
Verification checks
scpf — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 40 × 12 × 0 | 40 × 12 × 0 | pass |
| Bounds / min | 0 × -12 × -40 | 0 × -12 × -40 | pass |
| Volume / mm3 | 19584 | 19584 | pass |
| Watertight | true | true | pass |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| SolidCraft body count | 1 | 1 | pass |
| Body envelopes / count | 1 | 1 | pass |
| Body 1 / min [mm] | 0 × -12 × -40 | 0 × -12 × -40 | — |
| Body 1 / max [mm] | 40 × 12 × 0 | 40 × 12 × 0 | — |
cadquery — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 40 × 12 × 0 | 40 × 12 × 0 | pass |
| Bounds / min | 0 × -12 × -40 | 0 × -12 × -40 | pass |
| Volume / mm3 | 19584 | 19584 | pass |
| Watertight | true | true | pass |
build123d — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 40 × 12 × 0 | 40 × 12 × 0 | pass |
| Bounds / min | 0 × -12 × -40 | 0 × -12 × -40 | pass |
| Volume / mm3 | 19584 | 19584 | pass |
| Watertight | true | true | pass |
pythonscad — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 40 × 12 × 0 | 40 × 12 × 0 | pass |
| Bounds / min | 0 × -12 × -40 | 0 × -12 × -40 | pass |
| Volume / mm3 | 19584 | 19584 | pass |
| Watertight | true | true | pass |
pybosl2 — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 40 × 12 × 0 | 40 × 12 × 0 | pass |
| Bounds / min | 0 × -12 × -40 | 0 × -12 × -40 | pass |
| Volume / mm3 | 19584 | 19584 | pass |
| Watertight | true | true | pass |
Model stages
- Create the L-shaped XZ polygon
- Finish the explicit Profile sketch
- Extrude the profile symmetrically through 24 mm
Build and verification
- Primary implementation:
scpf - Build source:
1dead221b9ea2c31901da9a19a8c205d25272ec3 - Durable scope:
main
Implementations
- build123d — builder-build123d: build=pass, verification=pass · STL · Preview · verification · result
geometry: status=pass, adapter=mesh-geometry, runtime=ghcr.io/brainboxemb/cad-reference:v0.3.6 · verification
- cadquery — builder-cadquery: build=pass, verification=pass · STL · Preview · verification · result
geometry: status=pass, adapter=mesh-geometry, runtime=ghcr.io/brainboxemb/cad-reference:v0.3.6 · verification
- pybosl2 — builder-pybosl2: build=pass, verification=pass · STL · Preview · verification · result
geometry: status=pass, adapter=mesh-geometry, runtime=ghcr.io/brainboxemb/cad-reference:v0.3.6 · verification
- pythonscad — builder-pythonscad: build=pass, verification=pass · STL · Preview · verification · result
geometry: status=pass, adapter=mesh-geometry, runtime=ghcr.io/brainboxemb/cad-reference:v0.3.6 · verification
- scpf — builder-scpf: build=pass, verification=pass · STL · SC · Preview · commands · verification · result
geometry: status=pass, adapter=mesh-geometry, runtime=ghcr.io/brainboxemb/cad-reference:v0.3.6 · verificationnative: status=pass, adapter=solidcraft-model, runtime=ghcr.io/brainboxemb/cad-solidcraft:v0.3.6 · verificationvisual: status=pass, adapter=solidcraft-visual, runtime=ghcr.io/brainboxemb/cad-solidcraft:v0.3.6 · verification
scpf
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
40.0,
12.0,
0.0
],
"actual_min": [
0.0,
-12.0,
-40.0
],
"expected_max": [
40.0,
12.0,
0.0
],
"expected_min": [
0.0,
-12.0,
-40.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"surface_distance_probes": [
{
"actual_mm": 18.0,
"delta_mm": 0.0,
"expected_mm": 18.0,
"label": "empty inside corner",
"pass": true,
"point": [
30.0,
0.0,
-30.0
],
"tolerance_mm": 0.3
}
],
"volume": {
"actual_mm3": 19584.0,
"delta_mm3": 0.0,
"expected_mm3": 19584.0,
"pass": true,
"tolerance_mm3": 1.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/bracket/scpf/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "bracket-scpf-geometry"
}native — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "baseline/measurements.json",
"sha256": "d5ebb2d216ed2a36bc868af6f3bfaf5af19a54435fa941d2c274292d0be031df",
"size": 2162
}
],
"error": null,
"evidence": {
"body_count": {
"actual": 1,
"expected": 1,
"label": "SolidCraft body count",
"pass": true
},
"body_envelopes": {
"actual_count": 1,
"expected_count": 1,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "Bracket",
"max": [
40.0,
12.0,
0.0
],
"min": [
0.0,
-12.0,
-40.0
]
},
"expected": {
"label": null,
"max": [
40.0,
12.0,
0.0
],
"min": [
0.0,
-12.0,
-40.0
]
},
"max_delta": 0.0
}
],
"pass": true,
"tolerance": 0.001,
"unmatched_actual": [],
"unmatched_expected": []
},
"named_bodies": [
{
"selector": "sole",
"volume": {
"actual": 19584.0,
"delta": 0.0,
"expected": 19584.0,
"kind": "scalar",
"label": "sole body volume",
"pass": true,
"tolerance": 1.0
}
}
]
},
"id": "baseline",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/bracket/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "bracket"
}visual — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "visual/front/camera.json",
"sha256": "a461e8a0f4aacf55fa8681bc47269b5f66d44a73c40910f657cfaa070f8c4404",
"size": 130
},
{
"kind": "file",
"path": "visual/front/actual.png",
"sha256": "2b7abfbac6e4da47f04cb54b773cfe10b53d0ee01e5a8db55d382063421306bc",
"size": 10264
},
{
"kind": "file",
"path": "visual/front/goal.png",
"sha256": "d5f07827b5915956015282c8f5d65ee18b3943ded76daddb24f599df23150862",
"size": 2004
},
{
"kind": "file",
"path": "visual/front/overlay.png",
"sha256": "1b6091d0578de44d9d4bb9dae7cbaf65ac890e5666c5adc38c573ad8cc947e6a",
"size": 3655
},
{
"kind": "file",
"path": "visual/front/diff.png",
"sha256": "90234d09df82b03e33cfe6717c6ca8f1e82ba6a1933192dd8b1959f768405b0b",
"size": 680
}
],
"error": null,
"evidence": {
"actual_image": "visual/front/actual.png",
"baseline": "baselines/front.json",
"baseline_status": "pass",
"camera": "visual/front/camera.json",
"diff_image": "visual/front/diff.png",
"expected_shape_required": true,
"expected_shape_status": "pass",
"goal_image": "visual/front/goal.png",
"overlay_image": "visual/front/overlay.png",
"regression": {
"changed_pixel_fraction": 0.0,
"changed_pixel_threshold": 12,
"max_changed_fraction": 0.08,
"max_mean_difference": 6.0,
"mean_absolute_difference": 0.000145,
"pass": true
},
"regression_required": true,
"view": "front"
},
"id": "front",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/right/camera.json",
"sha256": "2d4bd3dcf0798c8f83d5b99223b258af792f6e6c4f6605b6fd67cf90536d1c8b",
"size": 146
},
{
"kind": "file",
"path": "visual/right/actual.png",
"sha256": "1e52af82be8b7a4537657b5ee99c37e11c77a9ec2feefea61e63b03f67be5410",
"size": 9802
},
{
"kind": "file",
"path": "visual/right/goal.png",
"sha256": "19b6bea24849f60315c3dd9bf2808bdc586240634e08a59538d29e167854c223",
"size": 1996
},
{
"kind": "file",
"path": "visual/right/overlay.png",
"sha256": "39d10a96c4ce31cbd4f54f82e13ee193e32bc4ca196af6a2e72831b5216019cb",
"size": 2912
},
{
"kind": "file",
"path": "visual/right/diff.png",
"sha256": "1fd7d1cea2e61446d31aa5392deaa3dca6ba3a64d07b6c6ebabdb0bc94c23769",
"size": 678
}
],
"error": null,
"evidence": {
"actual_image": "visual/right/actual.png",
"baseline": "baselines/right.json",
"baseline_status": "pass",
"camera": "visual/right/camera.json",
"diff_image": "visual/right/diff.png",
"expected_shape_required": true,
"expected_shape_status": "pass",
"goal_image": "visual/right/goal.png",
"overlay_image": "visual/right/overlay.png",
"regression": {
"changed_pixel_fraction": 0.0,
"changed_pixel_threshold": 12,
"max_changed_fraction": 0.08,
"max_mean_difference": 6.0,
"mean_absolute_difference": 0.000145,
"pass": true
},
"regression_required": true,
"view": "right"
},
"id": "right",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/iso/camera.json",
"sha256": "5912abef448a3a43ed3864072ea55d93b1a8672fda481a8064ef84852ba0d8d3",
"size": 161
},
{
"kind": "file",
"path": "visual/iso/actual.png",
"sha256": "7733460267985e709352a9eb23f2ecbd3d4d8bc3ef230f69c4548bd413e410fd",
"size": 33191
},
{
"kind": "file",
"path": "visual/iso/goal.png",
"sha256": "11650b3691b7d4269488293f224d015491fe23500fd3a91b12a388d1289e8653",
"size": 4792
},
{
"kind": "file",
"path": "visual/iso/overlay.png",
"sha256": "2143d544048782c75be98260e93a37c0a6d579588cd52b481d6182b34c12fd54",
"size": 22991
},
{
"kind": "file",
"path": "visual/iso/diff.png",
"sha256": "58cb91c501a3114cd509be3fc3f4839cf942f284eec4d5085022d6e0ee39b1d2",
"size": 2747
}
],
"error": null,
"evidence": {
"actual_image": "visual/iso/actual.png",
"baseline": "baselines/iso.json",
"baseline_status": "pass",
"camera": "visual/iso/camera.json",
"diff_image": "visual/iso/diff.png",
"expected_shape_required": true,
"expected_shape_status": "pass",
"goal_image": "visual/iso/goal.png",
"overlay_image": "visual/iso/overlay.png",
"regression": {
"changed_pixel_fraction": 0.0,
"changed_pixel_threshold": 12,
"max_changed_fraction": 0.08,
"max_mean_difference": 6.0,
"mean_absolute_difference": 0.000868,
"pass": true
},
"regression_required": true,
"view": "iso"
},
"id": "iso",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/bracket/scpf/model.sc",
"metadata": {
"baseline_provenance": {
"approval": "approved",
"historical_manifest_solidcraft_version": "0.30.1",
"migrated_from": "qualification/visual_baselines.json",
"migrated_without_reencoding": true,
"source_commit": "8acad149cdaaef729c2cd6f6929b9c73bf785ec8",
"verified_during_solidcraft_0_42_0_qualification": true
},
"kind": "solidcraft-visual",
"measurements": "measurements.json",
"visual_report": "visual.json"
},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "bracket-scpf-visual"
}cadquery
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
40.0,
12.0,
0.0
],
"actual_min": [
0.0,
-12.0,
-40.0
],
"expected_max": [
40.0,
12.0,
0.0
],
"expected_min": [
0.0,
-12.0,
-40.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"surface_distance_probes": [
{
"actual_mm": 18.0,
"delta_mm": 0.0,
"expected_mm": 18.0,
"label": "empty inside corner",
"pass": true,
"point": [
30.0,
0.0,
-30.0
],
"tolerance_mm": 0.3
}
],
"volume": {
"actual_mm3": 19584.0,
"delta_mm3": 0.0,
"expected_mm3": 19584.0,
"pass": true,
"tolerance_mm3": 1.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/bracket/cadquery/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "bracket-cadquery-geometry"
}build123d
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
40.0,
12.0,
0.0
],
"actual_min": [
0.0,
-12.0,
-40.0
],
"expected_max": [
40.0,
12.0,
0.0
],
"expected_min": [
0.0,
-12.0,
-40.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"surface_distance_probes": [
{
"actual_mm": 18.0,
"delta_mm": 0.0,
"expected_mm": 18.0,
"label": "empty inside corner",
"pass": true,
"point": [
30.0,
0.0,
-30.0
],
"tolerance_mm": 0.3
}
],
"volume": {
"actual_mm3": 19584.0,
"delta_mm3": 0.0,
"expected_mm3": 19584.0,
"pass": true,
"tolerance_mm3": 1.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/bracket/build123d/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "bracket-build123d-geometry"
}pythonscad
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
40.0,
12.0,
0.0
],
"actual_min": [
0.0,
-12.0,
-40.0
],
"expected_max": [
40.0,
12.0,
0.0
],
"expected_min": [
0.0,
-12.0,
-40.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"surface_distance_probes": [
{
"actual_mm": 18.0,
"delta_mm": 0.0,
"expected_mm": 18.0,
"label": "empty inside corner",
"pass": true,
"point": [
30.0,
0.0,
-30.0
],
"tolerance_mm": 0.3
}
],
"volume": {
"actual_mm3": 19584.0,
"delta_mm3": 0.0,
"expected_mm3": 19584.0,
"pass": true,
"tolerance_mm3": 1.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/bracket/pythonscad/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "bracket-pythonscad-geometry"
}pybosl2
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
40.0,
12.0,
0.0
],
"actual_min": [
0.0,
-12.0,
-40.0
],
"expected_max": [
40.0,
12.0,
0.0
],
"expected_min": [
0.0,
-12.0,
-40.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"surface_distance_probes": [
{
"actual_mm": 18.0,
"delta_mm": 0.0,
"expected_mm": 18.0,
"label": "empty inside corner",
"pass": true,
"point": [
30.0,
0.0,
-30.0
],
"tolerance_mm": 0.3
}
],
"volume": {
"actual_mm3": 19584.0,
"delta_mm3": 0.0,
"expected_mm3": 19584.0,
"pass": true,
"tolerance_mm3": 1.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/bracket/pybosl2/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "bracket-pybosl2-geometry"
}










