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
38 changes: 31 additions & 7 deletions docs/DESIGN_VARIANTS_067G.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ Scope: **B.02/B.04/D.05/G.03 — Verificado no escopo local**. See the [iteratio

The Studio **Design variants** window configures an installed parametric program.
**New family** installs one of the existing editable examples. The parameter list
shows authored values, units and declared bounds; **Edit value** stages a numeric
value. **Preview** evaluates the staged configuration without publishing it;
shows authored values, units and declared bounds, or the declared values of a
boolean or choice. **Edit value** stages a number, switches a boolean between
**Off** and **On**, or opens the declared list of a numeric or text choice.
**Preview** evaluates the staged configuration without publishing it;
**Apply** prepares and publishes one revision-bound exact candidate. Undo restores
the previous editable source.

Expand All @@ -23,7 +25,14 @@ Save or Apply. Triangles are display evidence only and never select the producti
geometry or measured dimensions.

**Explore values** evaluates explicitly entered values for one parameter in the
native UI. Optional width/depth/height/mass limits filter feasibility. Explicit
native UI. It opens on the selected parameter with trial values to edit: minimum,
current and maximum for a number, every declared value for a boolean or choice.
Choosing another parameter offers that parameter's values. Trial values are
numbers or expressions, **On**/**Off** for a boolean, or listed texts separated
by commas; a listed text that itself holds a comma is matched whole. Leaving
them empty tries every declared value of a boolean or choice. Each result row
names the value it tried. Optional width/depth/height/mass limits filter
feasibility. Explicit
feature pairs and a minimum gap use native B-rep distance/common-volume inspection
for each trial. Overlap, missing features or unavailable measurements cannot rank
as feasible. The Studio form accepts one pair; the tool accepts up to sixteen
Expand Down Expand Up @@ -63,10 +72,9 @@ including choice text, for example
retained failed trial. Results and saved variants store resolved values: `1`/`0`
for a boolean and the listed text for a text choice. A saved text value requires
semantic version 60; numeric-only variants keep version 56. Studio's
**Edit value** and **Explore values** stage numbers only, so text choices are
compared and saved through the tool. The
[Parametric HUD](PARAMETRIC_PROGRAMS.md#studio) configures a text choice on the
installed program.
**Edit value** and **Explore values** take the same kinds, so a boolean or a
numeric or text choice is staged, saved, compared and explored in the window as
well as through the tool.

`ranked_indices` indexes `results` in objective order and includes only feasible
rows with the requested metric available. `mass_kg` is absent and cannot be ranked
Expand All @@ -83,3 +91,19 @@ Pair clearance is static at the evaluated definition positions, not a
continuous-motion certificate.
AI authors can propose the value sets through this same tool; real-provider design
quality and savings require separate evidence.

## Typed values in the window

Booleans and choices in **Edit value** and **Explore values** were added after
067G and are not yet part of an identified iteration. The local
`studio-design-variants-ui` check installs a second program with a boolean, a
numeric choice and a text choice, stages each from the window's controls and
checks the previewed exact volume and height, one applied revision, two saved
named variants, their comparison, exploration and reopening. Its captures
(`.typed.png`, `.typed-choice-dialog.png`, `.typed-explore.png` and
`.typed-explore-dialog.png`) were inspected. Hosted CI runs no Studio UI checks.

The field dialog exchanges text in the system code page. A choice text outside
that code page is still picked from its list by position, and explored when the
offered trial values are left unchanged or emptied, but it cannot be typed as a
trial value.
9 changes: 3 additions & 6 deletions docs/PARAMETRIC_PROGRAMS.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ the HUD shows a **Parameters / Programs** switch under its header. It opens on
**Programs** when no document parameter is exposed. The
[Design variants](DESIGN_VARIANTS_067G.md) window (**Manage > Variants** or
**All tools > Parametric configurator**) remains the place for named
configurations, comparison and exploration; the HUD's **Variants** button opens
it on the same namespace.
configurations, comparison and exploration of every parameter kind; the HUD's
**Variants** button opens it on the same namespace.

- **Bindings.** After each revision the view reads
`parametric_program{action:"inspect"}`: namespace and name, owned objects and
Expand Down Expand Up @@ -534,7 +534,4 @@ measurement, not a benchmark.
Assertions and bounds encode the design rules stated by the author. They are
not manufacturing, structural or fit qualification. No measured agent quality,
time or token benefit is claimed. Editing program source in Studio is not
implemented. Studio's Design variants window stages numeric values only, so a
text choice is compared and saved as a variant through the tool; the
Parametric HUD configures it on the installed program. Program assembly output
is not implemented (see above).
implemented. Program assembly output is not implemented (see above).
2 changes: 1 addition & 1 deletion docs/ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ Goal: create and revise a complete product with clear, reliable interactions.
| ID | Milestone | Status | Acceptance still governing the work |
|---|---|---|---|
| B.01 | Readable navigation and editing | Parcial | Stable cube/axes, free orbit, selection/Spotlight, shortcuts and DPI; no clipped controls at supported resolutions. Measurement and display units have [013B evidence](iterations/013B.md); BOM layout has [015B evidence](iterations/015B.md). [017B scoped evidence](iterations/017B.md). [018B editable authoring and coordination](iterations/018B.md). [019B native/mesh pointer selection, hover and visual authoring](iterations/019B.md). [020B exact extrusion gestures and source dimensions](iterations/020B.md). [021B direct handle and snapshot feedback](iterations/021B.md). [022B existing-solid resize, asynchronous previews, exact vertex tools and integrated sheets](iterations/022B.md). 029B adds accessible native fields, visible focus and dynamic DPI/work-area reflow; [sketch/accessibility evidence](SKETCH_ASSISTANCE_029B.md). [048B](iterations/048B.md) adds the Studio parametric HUD overlay with staged Rebuild/Auto. [053B native graph](PARAMETRIC_COMPONENTS_053B.md) connects authored relationships, geometry selection and local navigation. [065F](iterations/065F.md) unifies the Studio palette, ribbon grouping and one outline-icon family, with a floating sidebar on every tab. [072A storage visibility](GROWABLE_EDITING_072A.md) replaces discontinued quota percentages with actual retained counts/bytes and explicit resource errors; UI verification is pending. |
| B.02 | Everyday sketches and feature history | Parcial | Actionable constraint diagnostics, valid reorder, suppress/rollback and visible dependencies; rejection leaves the document intact. Arcs/snaps/expressions have scoped 005B/008D evidence. [017B scoped evidence](iterations/017B.md). [018B editable authoring and coordination](iterations/018B.md). [019B visual and parametric authoring](iterations/019B.md). [020B exact extrusion gestures and source dimensions](iterations/020B.md). [021B associative extrusion source](iterations/021B.md). [022B source-preserving edits, opaque validated preview handoff and version-37 journal checks](iterations/022B.md). 029B adds equilibrated QR solving and source/revision-bound reviewed conflict alternatives; [sketch assistance](SKETCH_ASSISTANCE_029B.md). [046B profile regions](PROFILE_REGIONS_046B.md) make multi-loop sketches with holes one extrude/revolve profile, with typed loop rejections and an optional region selection. [048B parametric HUD](PARAMETRIC_HUD_048B.md) exposes ranged named parameters and a sampled flex check. [051A scoped sketches](SCOPED_SKETCHES_051A.md) add definition ownership, explicit references and guarded per-scope capacity. [Parametric programs](PARAMETRIC_PROGRAMS.md) compile code-defined families into namespaced native features, with atomic re-runs that reject local edits and outside dependants (local CTest only). [072A growing history](GROWABLE_EDITING_072A.md) removes fixed history/node/replay ceilings without pruning or changing authoring semantics; local persistence and UI validation passed. [076A](iterations/076A.md) hardens program expressions and provenance, adds boolean/choice/text parameters (conditional format 60), `.arkprog` exchange and Studio HUD program controls; programs still emit no assembly. The HUD's Programs view has since gained controls for booleans and numeric or text choices (local `studio-program-hud-ui` only; not yet part of an identified iteration). |
| B.02 | Everyday sketches and feature history | Parcial | Actionable constraint diagnostics, valid reorder, suppress/rollback and visible dependencies; rejection leaves the document intact. Arcs/snaps/expressions have scoped 005B/008D evidence. [017B scoped evidence](iterations/017B.md). [018B editable authoring and coordination](iterations/018B.md). [019B visual and parametric authoring](iterations/019B.md). [020B exact extrusion gestures and source dimensions](iterations/020B.md). [021B associative extrusion source](iterations/021B.md). [022B source-preserving edits, opaque validated preview handoff and version-37 journal checks](iterations/022B.md). 029B adds equilibrated QR solving and source/revision-bound reviewed conflict alternatives; [sketch assistance](SKETCH_ASSISTANCE_029B.md). [046B profile regions](PROFILE_REGIONS_046B.md) make multi-loop sketches with holes one extrude/revolve profile, with typed loop rejections and an optional region selection. [048B parametric HUD](PARAMETRIC_HUD_048B.md) exposes ranged named parameters and a sampled flex check. [051A scoped sketches](SCOPED_SKETCHES_051A.md) add definition ownership, explicit references and guarded per-scope capacity. [Parametric programs](PARAMETRIC_PROGRAMS.md) compile code-defined families into namespaced native features, with atomic re-runs that reject local edits and outside dependants (local CTest only). [072A growing history](GROWABLE_EDITING_072A.md) removes fixed history/node/replay ceilings without pruning or changing authoring semantics; local persistence and UI validation passed. [076A](iterations/076A.md) hardens program expressions and provenance, adds boolean/choice/text parameters (conditional format 60), `.arkprog` exchange and Studio HUD program controls; programs still emit no assembly. The HUD's Programs view and the Design variants window have since gained controls for booleans and numeric or text choices (local `studio-program-hud-ui` and `studio-design-variants-ui` only; not yet part of an identified iteration). |
| B.03 | Advanced solids and surfaces | Parcial | Difficult loft/sweep/guide/patch/trim/thicken corpus, measured continuity and explicit repair; no mesh fallback concealing exact failures. [017B scoped evidence](iterations/017B.md). [018B editable authoring and coordination](iterations/018B.md). [019B visual and parametric authoring](iterations/019B.md). [020B exact sketch extrusion](iterations/020B.md). [021B bounded face/extrusion geometry](iterations/021B.md). [022B exact polyhedral vertex pull](NATIVE_VERTEX_PULL_022B.md) adds a bounded faceted-solid domain with input/output validity and selfinterference checks. 029B adds bounded exact orientation repair and a difficult geometry corpus; [repair evidence](SURFACE_REPAIR_029B.md). [046B hollow sweep sections](PROFILE_REGIONS_046B.md) sweep inner loops with one shared placement and a volume-conservation check. [051A native regression evidence](NATIVE_GEOMETRY_051A.md) covers shallow C0 offset classification and translated analytic C2 lofts with unchanged tolerances. |
| B.04 | Large, configurable assemblies | Parcial | Subassemblies, reused instances, configurations, external references and selective loading; editing one definition updates all occurrences. Supported mechanisms are locally scoped. [022B source-linked component patterns](SPECIALIZED_PATTERNS_022B.md) cover inheritance, planar/spatial points, exact curve stations, chain alternation, skips and actual occurrence consumers; large configuration/loading qualification remains open. 029B adds semantic loading, measured derived-buffer/external-I/O reduction and scoped v2 configuration/pin ownership; [assembly evidence](ASSEMBLY_SCALING_029B.md). [048B exploded views](EXPLODED_VISUALIZE_048B.md) are display-only, revision-neutral and drivable by baked motions. [051A definition-owned sketches](SCOPED_SKETCHES_051A.md) are shared across occurrences and remapped with component checkout/merge. [053B reusable recipes](PARAMETRIC_COMPONENTS_053B.md) embed parts/assemblies with public overrides and explicit pinned revision updates. |
| B.05 | Technical drawings and exchange | Parcial | Local 022B binds part definitions, exact occurrences and root/group assemblies to source-linked views, isometric projections, planar sections/hatches, semantic dimensions and declared tolerances in the same CAD viewport. Agents author drawings only on explicit user request. 029B adds bounded exact DXF export with local readback and source metadata. Broader drafting standards, GD&T qualification, independent recipient interoperability and physical qualification remain open. [067G](DRAWING_LIBRARY_067G.md) adds local multipage vector PDF presentation and caller-declared named geometric tolerance frames. [Drawing contract](DRAWINGS.md) [022B viewport evidence](DRAWING_VIEWPORT_022B.md) [029B evidence](VERIFICATION_029B.md). [048B Visualize](EXPLODED_VISUALIZE_048B.md) renders exploded assembly images with balloons and a BOM table on explicit request. |
Expand Down
3 changes: 3 additions & 0 deletions include/ark/parametric_programs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ bool parametricProgramsRequire60(const Document&);
bool callParametricProgramTool(AgentSession&,const std::string&,const arkjson::Value&,arkjson::Value&);
void appendParametricProgramTools(arkjson::Value&);
arkjson::Value parametricProgramExamples();
// Kind of each declared parameter by name: "number", "boolean", "choice" or
// "text_choice", exactly as validate and inspect report parameter_kinds.
arkjson::Value parametricProgramParameterKinds(const arkjson::Value& program);
}
1 change: 1 addition & 0 deletions src/parametric_programs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ void appendParametricProgramTools(V& list){
tool.set("inputSchema",schema);annotations.set("readOnlyHint",V::makeBool(false));tool.set("annotations",annotations);list.arr.push_back(tool);
}

V parametricProgramParameterKinds(const V& program){return parameterKinds(program);}
V parametricProgramExamples(){
V out=V::makeArr();
auto add=[&](const char* id,const char* summary,const char* source){V row=V::makeObj(),program;if(!arkjson::parse(source,program))fail("EXAMPLE",id);validateProgram(program);row.set("id",V::makeStr(id));row.set("summary",V::makeStr(summary));row.set("program",program);out.arr.push_back(row);};
Expand Down
Loading
Loading