Verification
Contour flange recess replay
A valid broad-face recess must replay identically headless and live
What this verifies
A 27 × 18 × 1.25 mm native contour-flange C-profile receives one Ø12.5 mm through-cut on its broad planar back face. The fixture preserves the exact geometry that exposes the downstream live-replay failure.
scpf source
Complete primary source from the site branch; built revision below.
"""Minimal #845 contour-flange recess replay regression fixture."""
class SheetContourFlangeRecess:
length = 250.0
PROFILE_WIDTH = 27.0
PROFILE_HEIGHT = 18.0
THICKNESS = 1.25
OPENING = 15.0
BEND_RADIUS = 1.25
K_FACTOR = 0.40
HOLE_DIAMETER = 12.5
HOLE_OFFSET = 37.5
def build(self):
thickness = self.THICKNESS
half_side = (self.PROFILE_WIDTH - thickness) / 2
lower_z = thickness / 2
upper_z = self.PROFILE_HEIGHT - thickness / 2
opening_half = self.OPENING / 2
with Sketch(name="C profile", plane="XZ") as profile:
chain = profile.chain(start=(-opening_half, lower_z))
chain.line_to((-half_side, lower_z))
chain.line_to((-half_side, upper_z))
chain.line_to((half_side, upper_z))
chain.line_to((half_side, lower_z))
chain.line_to((opening_half, lower_z))
contour = chain.finish()
rail = contour.contour_flange(
distance=self.length,
thickness=thickness,
bend_radius=self.BEND_RADIUS,
k_factor=self.K_FACTOR,
rule_name="Contour Recess Rule",
)
with Sketch(
name="Broad face recess",
on=rail,
parent=Anchor.TOP,
) as recess:
recess.add(
Circle2D(d=self.HOLE_DIAMETER),
offset=(0, self.HOLE_OFFSET),
)
cut = recess.extrude(Depth.THROUGH_ALL)
return rail - cut
SheetContourFlangeRecess()
Engineering explanation
Contour flange recess replay
Group: sheet-metal
Saved-design required: false
Documentation provenance: Forge #845 live/headless contour-flange recess investigation.
Goal
Reproduce the smallest known downstream divergence around a valid recess on a native contour flange without carrying the Mounting Rail M8 assembly or repeat pattern.
Forge API
Sketch.chain(...), Shape.contour_flange(...), face-attached
Sketch(..., on=..., parent=Anchor.TOP), Circle2D(...) and
Sketch.extrude(Depth.THROUGH_ALL).
Forge model
The fixture uses a 250 mm long 27 × 18 × 1.25 mm C-profile with a 15 mm opening, R1.25 bend rule and K=0.40. One Ø12.5 mm circular cut is centred across the broad 27 mm back face at Y=37.5 mm.
This is the exact first-cut position from the downstream standalone rail that fails through live replay. The 1000 mm assembly variant also fails with its first cut at Y=12.5 mm.
How Forge builds it in SolidCraft
Forge authors one open XZ contour, creates one native contour-flange sheet
body, resolves the broad +Z planar face through model.faces, attaches the
circular Sketch to that exact face and emits one through-all cut.
The replay document therefore contains the same face-binding boundary that is present in the downstream failure.
SolidCraft result
A successful replay produces one closed native sheet-metal body with the circular recess on the broad planar face and keeps both source Sketches in native history.
Saved-design test
No parameter mutation is required for this regression. The baseline native replay itself is the qualification: SolidCraft must accept the valid recess and save the resulting native sheet body.
Geometry evidence
Geometry-rationale provenance: Forge #845 minimal downstream reproduction.
Bounds sufficient: false
Bounds alone cannot prove that the circular cut was accepted as a valid recess on the intended sheet face or that the face-binding/replay boundary behaved correctly. Native saved-design history is required.
Reference notes
- Downstream Mounting Rail M8 — The fixture preserves the physical C-profile and first broad-face recess geometry that exposed Forge #845; no product pattern or assembly behavior is needed to reproduce the native operation.
Generated command sequence — scpf (15)
parameters.add{ "command": "parameters.add", "params": { "expression": "250", "name": "length", "unit": "mm" } }sheet.manage_rules{ "command": "sheet.manage_rules", "params": { "active": true, "bend_radius": 1.25, "k_factor": 0.4, "name": "Contour Recess Rule", "thickness": 1.25 } }sketch.create{ "command": "sketch.create", "params": { "name": "C profile", "plane": "XZ" } }sketch.line{ "bind": { "$contour_curves_1": "curves" }, "command": "sketch.line", "params": { "connect": true, "ids": [ "l1" ], "points": [ [ -7.5, 0.625 ], [ -12.875, 0.625 ] ] } }sketch.line{ "bind": { "$contour_curves_2": { "field": "curves", "prepend": "$contour_curves_1" } }, "command": "sketch.line", "params": { "connect": true, "ids": [ "l2" ], "points": [ [ -12.875, 0.625 ], [ -12.875, 17.375 ] ] } }sketch.line{ "bind": { "$contour_curves_3": { "field": "curves", "prepend": "$contour_curves_2" } }, "command": "sketch.line", "params": { "connect": true, "ids": [ "l3" ], "points": [ [ -12.875, 17.375 ], [ 12.875, 17.375 ] ] } }sketch.line{ "bind": { "$contour_curves_4": { "field": "curves", "prepend": "$contour_curves_3" } }, "command": "sketch.line", "params": { "connect": true, "ids": [ "l4" ], "points": [ [ 12.875, 17.375 ], [ 12.875, 0.625 ] ] } }sketch.line{ "bind": { "$contour_curves_5": { "field": "curves", "prepend": "$contour_curves_4" } }, "command": "sketch.line", "params": { "connect": true, "ids": [ "l5" ], "points": [ [ 12.875, 0.625 ], [ 7.5, 0.625 ] ] } }sketch.finish{ "command": "sketch.finish", "params": {} }sheet.flange{ "command": "sheet.flange", "params": { "body_name": "SheetContourFlangeRecess", "curves": "$contour_curves_5", "distance": "length", "rule": "Contour Recess Rule", "sketch": "C profile", "type": "contour" } }model.faces{ "bind": { "$face_index_1": { "field": "faces", "max": "area", "select": "index", "where": { "plane_normal": [ 0, 0, 1 ] } }, "$face_point_1": { "field": "faces", "max": "area", "select": "point", "where": { "plane_normal": [ 0, 0, 1 ] } } }, "command": "model.faces", "params": { "body": "SheetContourFlangeRecess" } }sketch.create{ "command": "sketch.create", "params": { "name": "Broad face recess", "plane": { "body": "SheetContourFlangeRecess", "face": "$face_point_1", "index": "$face_index_1" }, "project_edges": false } }sketch.circle.center{ "command": "sketch.circle.center", "params": { "center": [ 0.0, 37.5 ], "diameter": 12.5 } }sketch.finish{ "command": "sketch.finish", "params": {} }solid.extrude{ "command": "solid.extrude", "params": { "direction": "negative", "name": "Broad face recess", "operation": "cut", "targets": [ "SheetContourFlangeRecess" ], "through_all": true } }
Reference code
No independent implementation is declared.
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 |
|---|---|---|---|
| SolidCraft body count | 1 | 1 | pass |
| SolidCraft parameters / length | 250 | 250 | pass |
| SolidCraft sketch count | 2 | 2 | pass |
Model stages
- Create the native contour-flange C-profile
- Attach one circular Sketch to the broad planar back face
- Cut through-all and require native replay to succeed
Build and verification
- Primary implementation:
scpf - Build source:
1dead221b9ea2c31901da9a19a8c205d25272ec3 - Durable scope:
main
Implementations
- scpf — builder-scpf: build=pass, verification=pass · STL · SC · Preview · commands · verification · result
native: 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
native — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "baseline/measurements.json",
"sha256": "811a17d5c279b4c2415724ccc8719a0ddea5187c894b510f60ba16e824868a8c",
"size": 2597
}
],
"error": null,
"evidence": {
"body_count": {
"actual": 1,
"expected": 1,
"label": "SolidCraft body count",
"pass": true
},
"named_bodies": [
{
"closed": {
"actual": true,
"expected": true,
"label": "sole body closed",
"pass": true
},
"selector": "sole",
"sheet_metal": {
"actual": true,
"expected": true,
"label": "sole body sheet_metal",
"pass": true
}
}
],
"parameters": {
"actual": {
"length": 250.0
},
"expected": {
"length": 250.0
},
"label": "SolidCraft parameters",
"pass": true
},
"sketch_count": {
"actual": 2,
"expected": 2,
"label": "SolidCraft sketch count",
"pass": true
},
"sketches": [
{
"actual": {
"curves": 5,
"name": "C profile",
"profiles": 0
},
"expected": {
"curves": 5,
"name": "C profile",
"profiles": 0
},
"label": "C profile sketch",
"pass": true
},
{
"actual": {
"curves": 1,
"name": "Broad face recess",
"profiles": 1
},
"expected": {
"curves": 1,
"name": "Broad face recess",
"profiles": 1
},
"label": "Broad face recess sketch",
"pass": true
}
]
},
"id": "baseline",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/sheet-contour-flange-recess/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "sheet-contour-flange-recess"
}visual — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "visual/front/camera.json",
"sha256": "871ed321a7d449918ae5e5d142ebc124648c94ad2429a59f94aebb8af5d500d5",
"size": 150
},
{
"kind": "file",
"path": "visual/front/actual.png",
"sha256": "4aa2553328e8c96207e5e212ce0383edad376d612e17aa3d0a7672d1bbd21f6e",
"size": 9991
},
{
"kind": "file",
"path": "visual/front/goal.png",
"sha256": "0fa84614e3fe66f4f0d1b06473a82f78c39124062a517c085c8185484a57a0b1",
"size": 1989
},
{
"kind": "file",
"path": "visual/front/overlay.png",
"sha256": "860cd130ed49f3cf57f2b909a239f7a50d4e0e0a0217c4d6f3e6fca6417a1aaf",
"size": 3030
},
{
"kind": "file",
"path": "visual/front/diff.png",
"sha256": "fb4818d4ed6ad1f5fe4ad91373b7a4b7e9e955c891cf8513e364b4e9936ad5d3",
"size": 430
}
],
"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.0,
"pass": true
},
"regression_required": true,
"view": "front"
},
"id": "front",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/right/camera.json",
"sha256": "c91fa1c0eadb6c67575edcea28883d9ce07098abe0895cf4f474089a719f2828",
"size": 166
},
{
"kind": "file",
"path": "visual/right/actual.png",
"sha256": "1b0c42979bbb80fc033c4bdf4ab5013e6f2ad380959da2f99bab1f84a86dd03c",
"size": 11319
},
{
"kind": "file",
"path": "visual/right/goal.png",
"sha256": "db8f56b8321a75ed3ebd75ff2869e3db9cc05eff34aefaf42ac5424ac25923ed",
"size": 1986
},
{
"kind": "file",
"path": "visual/right/overlay.png",
"sha256": "5cffb6900f08a4c1bf322d18b98f275a8c6f7c857d3bc8b172051943f2592634",
"size": 4022
},
{
"kind": "file",
"path": "visual/right/diff.png",
"sha256": "5498d8b1a03efa97111d5691605d2776567cc8b34a31e72f31427a5509d49a1b",
"size": 438
}
],
"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.0,
"pass": true
},
"regression_required": true,
"view": "right"
},
"id": "right",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/iso/camera.json",
"sha256": "726375b8bf8bf1673e627b8b7e275b61acb994b0cba4ace26ef8b43a6ec12947",
"size": 181
},
{
"kind": "file",
"path": "visual/iso/actual.png",
"sha256": "a49ffb9024db081efce1bc9fe6dfb22b837069d831ce1532a54b42f74cd7f265",
"size": 43230
},
{
"kind": "file",
"path": "visual/iso/goal.png",
"sha256": "f5e43eac00d4f40cdd03d83532c2cdf96c5612bd273eb480b74ede1be0438f9b",
"size": 2921
},
{
"kind": "file",
"path": "visual/iso/overlay.png",
"sha256": "d2ca57d961c39e4ad6e6454362b68cd0bf1fcaf9a0957d202428e81af71f9bc9",
"size": 28283
},
{
"kind": "file",
"path": "visual/iso/diff.png",
"sha256": "a99ca5115234409b1bb4455837b5bfcd06582ba055632a8ec9740dc21bf9a9d0",
"size": 1560
}
],
"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.0,
"pass": true
},
"regression_required": true,
"view": "iso"
},
"id": "iso",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/sheet-contour-flange-recess/scpf/model.sc",
"metadata": {
"baseline_provenance": {
"approval": "approved",
"runtime": "ghcr.io/brainboxemb/cad-solidcraft:v0.3.6",
"solidcraft_version": "0.49.0",
"source_commit": "90b7eba19227032766dc1309ae8d851c4cb09553",
"workflow_run": 45873531238
},
"kind": "solidcraft-visual",
"measurements": "measurements.json",
"visual_report": "visual.json"
},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "sheet-contour-flange-recess-scpf-visual"
}











