Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edit those columns by hand, then re-run the script.
the feature-tree level) · `done` (regenerates, round-trips save/load, undo/redo, command +
MCP, tests) · `verified` (done + golden/e2e coverage + reviewed on macOS).

**Totals:** 1000 rows — not started: 841 · in progress: 131 · done: 28 · verified: 0
**Totals:** 1000 rows — not started: 836 · in progress: 136 · done: 28 · verified: 0

## Platform (SPEC §2–§6, §8–§9)

Expand Down Expand Up @@ -88,11 +88,11 @@ MCP, tests) · `verified` (done + golden/e2e coverage + reviewed on macOS).
| `7.1/entities/rectangle/center` | ↳ center | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.add_rectangle | construction diagonal + midpoint centre |
| `7.1/entities/rectangle/3-point` | ↳ 3-point | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.add_rectangle | DOF 5 tested |
| `7.1/entities/rectangle/parallelogram` | ↳ parallelogram | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.add_rectangle | DOF 6 tested |
| `7.1/entities/slot` | Entities: slot | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.add_slot | straight and center-point slots; arc slots not started |
| `7.1/entities/slot` | Entities: slot | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.add_slot | all four slot types; curved slots have editable tangent/concentric geometry and desktop previews |
| `7.1/entities/slot/straight` | ↳ straight | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.add_slot | DOF 5, exact area tested; golden 102 |
| `7.1/entities/slot/center` | ↳ center | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.add_slot | |
| `7.1/entities/slot/arc` | ↳ arc | not started | ForgeSketch | — | — | |
| `7.1/entities/slot/3-point-arc` | ↳ 3-point arc | not started | ForgeSketch | — | — | |
| `7.1/entities/slot/arc` | ↳ arc | in progress | ForgeSketch | Tests/ForgeCommandsTests/ArcSlotTests.swift, Tests/ForgeUITests/ArcSlotWorkflowTests.swift | execute:sketch.add_arc_slot | center/start/end/width; constraints, preview, extrusion, undo and persistence; grouped slot relations pending |
| `7.1/entities/slot/3-point-arc` | ↳ 3-point arc | in progress | ForgeSketch | Tests/ForgeCommandsTests/ArcSlotTests.swift, Tests/ForgeUITests/ArcSlotWorkflowTests.swift | execute:sketch.add_arc_slot | minor/major clockwise/counter-clockwise arcs selected by through point; grouped slot relations pending |
| `7.1/entities/circle` | Entities: circle | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.add_circle | round-trips document.save/open (golden test); not yet a feature-tree item (M2) |
| `7.1/entities/circle/center` | ↳ center | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.add_circle | |
| `7.1/entities/circle/perimeter` | ↳ perimeter | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.add_circle(through) | |
Expand Down Expand Up @@ -125,14 +125,14 @@ MCP, tests) · `verified` (done + golden/e2e coverage + reviewed on macOS).
| `7.1/tools/offset/bi-directional` | ↳ bi-directional | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.offset(bidirectional) | |
| `7.1/tools/offset/cap-ends` | ↳ cap ends | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.offset(cap_ends) | line caps only (arc caps NOT IMPLEMENTED) |
| `7.1/tools/offset/construction` | ↳ construction | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.offset(make_base_construction) | |
| `7.1/tools/convert-entities` | Tools: convert entities | not started | ForgeSketch | — | — | |
| `7.1/tools/convert-entities` | Tools: convert entities | in progress | ForgeCommands / ForgeUI | Tests/ForgeCommandsTests/SketchConvertTests.swift, Tests/ForgeUITests/SketchPlacementWorkflowTests.swift | convert_entities | Exact detached projections of lines and parallel circles/arcs and face boundaries; fixed/editable and construction options; desktop model picking. Associative links, oblique circles, ellipses and splines remain pending. |
| `7.1/tools/intersection-curve` | Tools: intersection curve | not started | ForgeSketch | — | — | |
| `7.1/tools/silhouette-entities` | Tools: silhouette entities | not started | ForgeSketch | — | — | |
| `7.1/tools/mirror` | Tools: mirror | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift, Tests/GoldenModelTests/Models/017_mirrored_profile_extruded.json | execute:sketch.mirror | copies with symmetric relations (circles/arcs as wholes); ellipses copied unrelated; not yet a feature-tree item (M2) |
| `7.1/tools/mirror/static-dynamic` | ↳ static + dynamic | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.mirror | static mirror only; dynamic mirror (mirror while sketching) NOT IMPLEMENTED |
| `7.1/tools/linear-circular-sketch-patterns` | Tools: linear/circular sketch patterns | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.pattern_linear, execute:sketch.pattern_circular | instances tied to the seed by equal/parallel; spacing/angle not yet driven by dimensions |
| `7.1/tools/move-copy-rotate-scale-stretch` | Tools: move/copy/rotate/scale/stretch | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.move, execute:sketch.rotate, execute:sketch.scale | move/copy/rotate/scale done at sketch level; stretch NOT IMPLEMENTED |
| `7.1/tools/split-entities` | Tools: split entities | in progress | ForgeSketch | Tests/ForgeSketchTests/SolverTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.split | lines, arcs, circles, ellipses, partial ellipses; splines NOT IMPLEMENTED; not yet a feature-tree item (M2) |
| `7.1/tools/split-entities` | Tools: split entities | in progress | ForgeSketch / ForgeUI | Tests/ForgeUITests/SketchSplitWorkflowTests.swift, Tests/ForgeCommandsTests/SketchCommandTests.swift | execute:sketch.split | Desktop click splitting with circle/ellipse two-point workflow, preview, cancellation and undo; lines, arcs, circles, ellipses and partial ellipses. Splines remain pending. |
| `7.1/tools/jog-line` | Tools: jog line | not started | ForgeSketch | — | — | |
| `7.1/tools/sketch-picture` | Tools: sketch picture | not started | ForgeSketch | — | — | |
| `7.1/tools/sketch-picture/with-scale-calibration` | ↳ with scale calibration | not started | ForgeSketch | — | — | |
Expand All @@ -148,7 +148,7 @@ MCP, tests) · `verified` (done + golden/e2e coverage + reviewed on macOS).
| `7.1/tools/3d-sketch` | Tools: 3D sketch | not started | ForgeSketch | — | — | |
| `7.1/tools/3d-sketch/with-plane-switching` | ↳ with plane switching | not started | ForgeSketch | — | — | |
| `7.1/tools/3d-sketch/3d-sketch-on-plane` | ↳ 3D sketch on plane | not started | ForgeSketch | — | — | |
| `7.1/tools/sketch-on-face-surface` | Tools: sketch on face/surface | not started | ForgeSketch | — | — | |
| `7.1/tools/sketch-on-face-surface` | Tools: sketch on face/surface | in progress | ForgeCommands / ForgeUI | Tests/ForgeUITests/SketchPlacementWorkflowTests.swift, Tests/ForgeCommandsTests/FeatureTreeTests.swift | execute:sketch.create, repair_reference | Planar faces with persistent attachment, guided desktop entry and camera alignment; supports upstream regeneration and attachment repair. Missing support blocks dependent features; curved-face and 3D surface sketches remain pending. |
| `7.1/tools/spline-tools` | Tools: spline tools | not started | ForgeSketch | — | — | |
| `7.1/tools/spline-tools/tangency-curvature-handles` | ↳ tangency/curvature handles | not started | ForgeSketch | — | — | |
| `7.1/tools/spline-tools/simplify` | ↳ simplify | not started | ForgeSketch | — | — | |
Expand Down Expand Up @@ -325,7 +325,7 @@ MCP, tests) · `verified` (done + golden/e2e coverage + reviewed on macOS).
| `7.2/multibody/combine` | Multibody: combine | in progress | ForgeKernel | Tests/ForgeKernelTests/KernelTests.swift, Tests/GoldenModelTests | execute:body.boolean | kernel-level; Combine feature in M2/M3 |
| `7.2/multibody/combine/add-subtract-common` | ↳ add/subtract/common | in progress | ForgeKernel | Tests/ForgeKernelTests/KernelTests.swift, Tests/GoldenModelTests | execute:body.boolean | |
| `7.2/multibody/split` | Multibody: split | not started | ForgeModel | — | — | |
| `7.2/multibody/move-copy-body` | Multibody: move/copy body | in progress | ForgeCommands | Tests/ForgeCommandsTests/EngineTests.swift, Tests/GoldenModelTests/005 | execute:body.transform | |
| `7.2/multibody/move-copy-body` | Multibody: move/copy body | in progress | ForgeCommands / ForgeUI | Tests/ForgeUITests/BodyPlacementWorkflowTests.swift | execute:body.transform | Desktop translation, optional rotation about origin/XYZ or stored custom axis, copy, preview and feature editing. Multiple-body transforms and mate constraints remain pending. |
| `7.2/multibody/delete-keep-body` | Multibody: delete/keep body | in progress | ForgeCommands | Tests/ForgeCommandsTests/EngineTests.swift | execute:body.delete | delete only |
| `7.2/multibody/insert-part` | Multibody: insert part | not started | ForgeModel | — | — | |
| `7.2/multibody/insert-into-new-part` | Multibody: insert into new part | not started | ForgeModel | — | — | |
Expand Down Expand Up @@ -736,7 +736,7 @@ MCP, tests) · `verified` (done + golden/e2e coverage + reviewed on macOS).

| ID | Feature | Status | Module | Test | MCP tool | Notes |
|---|---|---|---|---|---|---|
| `7.12/measure` | Measure | in progress | ForgeKernel | Tests/ForgeKernelTests/KernelTests.swift, Tests/ForgeCommandsTests/EngineTests.swift | measure | body↔body minimum distance only |
| `7.12/measure` | Measure | in progress | ForgeKernel | Tests/ForgeCommandsTests/MeasurementTests.swift, Tests/ForgeUITests/MeasureWorkflowTests.swift | measure | bodies/faces/edges/vertices: size, radius, coordinates, minimum distance, closest points and XYZ deltas; angles/max/normal-distance modes pending |
| `7.12/measure/all-modes` | ↳ all modes | not started | ForgeModel | — | — | |
| `7.12/measure/point-to-point` | ↳ point-to-point | not started | ForgeModel | — | — | |
| `7.12/measure/min-max-normal` | ↳ min/max/normal | not started | ForgeModel | — | — | |
Expand Down Expand Up @@ -1116,7 +1116,7 @@ MCP, tests) · `verified` (done + golden/e2e coverage + reviewed on macOS).

| ID | Feature | Status | Module | Test | MCP tool | Notes |
|---|---|---|---|---|---|---|
| `D/hide-show` | Hide/show bodies, components, sketches, planes (display pane) | not started | ForgeModel | — | — | |
| `D/hide-show` | Hide/show bodies, components, sketches, planes (display pane) | in progress | ForgeModel | Tests/ForgeCommandsTests/VisibilityTests.swift, Tests/ForgeUITests/BodyVisibilityWorkflowTests.swift | execute:view.set_visibility, execute:view.isolate, execute:view.show_all | saved body visibility, temporary part-body isolation, undo and hidden-body picking exclusion; components/sketches/planes display pane pending |
| `D/transparency` | Per-body/component transparency | not started | ForgeModel | — | — | |
| `D/section-view-part` | Section view (dynamic display section in parts/assemblies) | not started | ForgeModel | — | — | |
| `D/view-selector` | View selector cube, named/saved views, previous view | not started | ForgeModel | — | — | |
Expand Down
66 changes: 66 additions & 0 deletions PROGRESS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,71 @@
# Progress

## Session 11 — 2026-09-30 — Subentity measurement, visibility and curved slots

- `query.measure` now resolves bodies, faces, edges and vertices, including persistent
face/edge references. One selection returns applicable length, area, volume, radius
or coordinates; pairs return minimum distance, closest points and XYZ displacement.
Desktop errors remain visible and async results cannot overwrite a newer selection.
Mixed body/sketch selections are rejected instead of silently dropping the sketch.
- Added typed hide/show/isolate/exit/show-all commands, shared desktop tree/ribbon and
macOS View/context actions. Hidden bodies are excluded from rendering, picking and
fit bounds; ordinary visibility persists while isolation restores prior visibility.
Display-only transactions now have undo records. Loading ignores unknown visibility
IDs without losing suppressed feature output state. Modeling and exports include all bodies.
- Added centerpoint and three-point arc slots with editable concentric/tangent geometry,
construction centerlines, four-click desktop previews, and construction support for
all four slot types. Switching slot types clears pending clicks. Validation rejects
degenerate arcs, collapsed widths and overlapping major-arc caps atomically.
- Curved-slot constraints use existing internal-row yield metadata so normal relations
remain independent after rotation; no solver algorithm changes. Tests exercise six
noncardinal orientations, 90-degree rotation, width edits and cap alignment.
- Added an analytically derived quarter-circle-slot golden model and a real MCP
create/extrude/measure/hide/isolate/save/open/rebuild workflow.

Validation: final local build with tests and all **350 Swift tests** pass; all **32 golden
models**, **four MCP subprocess workflows**, and **three packaging regressions** pass.
Optimized Linux desktop/CLI and Windows frontend cross-platform builds pass. Native
platform runtime checks are delegated to CI with a virtual display; no windows were
opened on the user's desktop. Matrix synchronization and whitespace checks pass.

Remaining scope: measurement angle/max/normal modes and sketch entity measurements;
grouped Fix Slot/Equal Slots relations; individual sketch/plane/component display panes;
associative conversion, advanced extrude conditions, configurations/equations, assemblies,
drawings and the rest of the declared matrix. This delivery does not complete SolidWorks parity.

## Session 10 — 2026-09-30 — Face sketches and everyday modeling workflows

- Added explicit Features-tab Sketch on Face entry on all desktops, selection-aware
sketch shortcuts and rejection of unsuitable selections instead of silent Front-plane
fallback. Tests use actual face ray picking, rectangle drawing and a 125 mm³ cut.
- Added exact model-edge/face-boundary conversion into detached sketch lines, circles
and arcs; fixed/editable and construction options, undo/dry-run/save/rebuild, desktop
model picking and a direct MCP alias. Associative links, oblique circles, ellipses
and splines remain pending.
- Added desktop Split Entities, including two-point closed-curve splitting, pending
guidance, cancellation, cross-sketch guards and undo/redo.
- Added Move/Copy Bodies translation/rotation/copy pages, live preview and feature
editing, preserving stored custom axes. Exposed Up To Vertex in both extrusion
directions so an inspector roundtrip cannot change the end condition to Blind.
- Added Normal To selected faces and standard/reference planes, and plane selection.
Review fixes wire both desktop trees into selection, retain valid plane references
through rebuilds, prune suppressed planes, and make primary Sketch use the clicked
standard/reference plane. Four additional engine/UI regressions cover these paths.
- Added shared Unicode Rename dialogs and body/feature/sketch tree actions.
- Fixed sketch attachment repair and rejection of dependent modeling from lost,
suppressed or rolled-back sketch supports, preventing stale geometry regeneration.
- The source-linked audit inventories all 1,000 matrix IDs and distinguishes hidden,
partial and absent workflows. Assemblies, drawings and hundreds of other declared
capabilities still remain. See docs/research/modeling-workflow-gaps.md.

Validation: official Swift 6.4 build with tests and all **324 Swift tests** pass.
All **31 golden models**, **3 MCP subprocess workflows** (debug and optimized CLI),
three packaging regressions and native GTK menu/name-dialog regressions pass.
Windows frontend cross-platform build and optimized Linux desktop/CLI builds pass.
The Linux screenshot smoke check renders the new ribbon entry points. Native checks
must now use Xvfb: the GTK runner refuses to fall back to the user's live desktop.
Matrix synchronization and whitespace checks pass. Native macOS/Windows checks run in CI.

## Session 9 — 2026-09-29 — PR #3 review fixes

- Imported faces now receive distinct persistent base names at intake. Kernel history
Expand Down
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,34 @@ SolidWorks functionality and acceptance criteria. This remains an early part mod

A script is JSON: `{"forge_script": 1, "commands": [{"command": "...", "params": {...}}],
"expect": {"bodies": [{"body": "body-1", "volume_mm3": {"value": 1000, "tol": 1e-6}}]}}`.

Select a planar part face and choose **Features → Sketch on Face** to draw directly
on it. **Normal To** aligns the view with a selected face or reference plane even
without opening a sketch. In sketch mode, **Select Model Geometry** lets you pick
part edges or faces; **Convert Entities** copies their projected boundaries into the
sketch. These are detached copies, not associative links; lines and parallel
circles/arcs are supported. **Split Entities** uses one click for lines/arcs and two
clicks on a closed circle/ellipse.

**Move/Copy Bodies** provides translation and optional rotation, copy, preview and
feature editing. Extrusion pages support **Up To Vertex** with model-coordinate
inputs in either direction. Body and feature tree menus include **Rename** on all
platforms. Lost sketch supports now block dependent features; use
`feature.repair_reference` to attach the sketch to a replacement planar support.

The [complete modeling gap inventory](docs/research/modeling-workflow-gaps.md)
accounts for all 1,000 matrix entries and documents remaining work.

**Measure** accepts one face, edge, vertex or body for its size/coordinates, or two
for minimum distance and closest points. The MCP `measure` tool uses `from` and an
optional `to`; results use millimeters. Angle and maximum-distance modes remain pending.

Use the body tree or **Features → Visibility** to hide/show bodies, isolate a selection,
exit isolation or show all bodies. Hidden bodies are excluded from drawing and picking;
they still participate in modeling, measurements and exports. Ordinary hidden state is
saved; isolation is temporary and restores the prior visibility when exited.

The Slot tool offers straight, centerpoint straight, centerpoint arc and three-point arc
variants. Curved slots use center/start/end/width or start/end/through/width clicks,
respect construction mode and remain editable with sketch dimensions and relations.
The typed command is `sketch.add_arc_slot`; it rejects collapsed or self-overlapping slots.
Loading
Loading