Skip to content

066D: parametric programs, Parametric designer role and the 065F Studio/Setup stack - #43

Merged
CenturyMesh merged 15 commits into
mainfrom
feat/parametric-programs
Nov 5, 2026
Merged

CenturyMesh merged 15 commits into
mainfrom
feat/parametric-programs

Conversation

@CenturyMesh

Copy link
Copy Markdown
Owner

Summary

Brings main from 064A to 066D / 0.9.67. This branch carries two iterations that were never on the remote: the 065F stack it was built on, and the 066D work on top.

066D (B.02, D.02, G.01)

  • Parametric programs: ark.parametric-program.v1 writes a design as bounded code (typed parameters, let, set, for, if, assert, call, emit templates) that compiles to namespaced native features. It runs no script, file or network operation; the exact evaluator, expected_revision and atomic publication stay authoritative.
  • parametric_program tool: validate, examples, inspect and prepare install/update/configure/remove/detach through one doc_preview candidate. Re-runs replace only namespace-owned objects and reject local edits, outside dependants and stale sources.
  • programs onboarding topic, with runnable examples built from exact native_solid geometry, and a program_configure recipe.
  • AgentTeamDiscipline::ParametricDesigner, offered as an optional Studio role under Agents. It is off by default, and the default three-role team is unchanged.
  • Bindings use conditional semantic document version 55. Documents without a binding keep their earlier version.

065F (B.01, D.02, F.05)

  • One feature-tree palette and one line-icon family across Studio, with a regrouped ribbon.
  • Right-side assistant dock with readable provider reasoning.
  • WPF ARK Setup replaces Inno Setup and installs through ARK's own update layout.

Evidence and limits: docs/iterations/066D.md, docs/iterations/065F.md, contract in docs/PARAMETRIC_PROGRAMS.md.

Local verification

Windows, clean release tree, MSVC with patched OCCT 8.0.1:

Check Result
Native CTest 180/180
Studio UI suite 80/83
parametric-programs Passed, 162 assertions
studio-parametric-role-ui Passed
Installer smoke, including upgrade from the 065F Setup and rollback state Passed
Distribution test on the public Setup Passed

The three Studio failures are the ones already recorded in 065F: studio-team-blockers-ui, its compact variant and the studio-parametric-graph-ui stack overflow.

Not verified

  • Hosted CI for this branch, including setup-dotnet on the runner.
  • Any real provider: team evidence is scripted and offline, and no quality, time or token benefit is claimed.
  • A clean machine, Authenticode signing and OTA publication.

This PR does not publish a release or an update manifest.

🤖 Generated with Claude Code

Bruno Santos and others added 14 commits October 26, 2026 22:55
…bon and add a MeshSphere splash

- Shared graphite palette with an orange accent (ui_theme.inl) for the header,
  module tabs, ribbon, sidebar, viewport dock, status surfaces, dialogs, About
  and Win32 panels; dark bluish literals mapped to graphite at equal luminance.
- Sidebar is a floating 50% panel on Model, Layers and Properties; Layers rows
  match the tree (orange selection, eye glyphs).
- Ribbon: tabs in workflow order, groups shown as cards, coherent group order,
  uniform 40 px icons fitted to measured atlas bounds and vector stroke bounds,
  two-line labels instead of shrinking text.
- Feature tree: per-operation duotone glyphs (extrude, revolve, loft, sweep,
  fillet, chamfer, union, cut, pattern, mirror, shell, surface, mesh, curve,
  primitive, thicken, tube).
- Splash: MeshSphere sphere render with the ARK wordmark, decoded and scaled on
  the splash thread before showing; rounded corners; provenance in
  assets/ui/README.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…shSphere art

ArkSetup (net10.0-windows, self-contained single file) carries the portable
package as an appended payload ("ARKPAYLD" footer) and installs through the
package's own Install-ARK.ps1, so the layout stays the one ARK's in-app updater
manages. It adds an uninstall.exe stub, Start menu/Desktop shortcuts identical
to the Inno launcher shortcuts and HKCU\...\Uninstall\MeshSphere.ARK, takes over
an existing Inno MeshSphere.ARK_is1 installation folder and entry, and never
touches user data outside the install files. Updates remain in ARK.

Graphite/orange theme tokens in Theme.xaml over frame 175 of the MeshSphere
render; pt-PT and English text. build-installer.ps1, installer_smoke_tests.ps1,
test-distribution.ps1 and release-package.yml keep their entry points and test
intent; isolated test builds use their own uninstall key and no shortcuts.
Inno files (ark.iss, installer artwork script, capture harness) are removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The release-evidence source inventory lists untracked paths; a nested agent
worktree there made it fail even though it is never part of the source.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lection halo

The direct-extrusion handle used the accent button and several overlay cards
had borders mapped to the accent; the selection-glow occlusion check (918)
counted them as a leaked halo. Viewport handles and overlay borders now use
neutral graphite/white tones; orange stays for selection, active indicators
and primary actions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…apture

icon_kit defines one outline style and shared motifs (cube, plane, sheet, curve,
arrow, edit/add/cancel/apply badges); two batch files will replace the raster
atlas cells and placeholder glyphs. --icon-sheet <page> with --shot draws every
ribbon, header and viewport-dock action at 40 px and 22 px for review.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ARK installs

The key art is now two layers rendered from the MeshSphere scene (EEVEE, the
scene's own settings, frame 175): a clean plate and a 640 px sphere sprite with
its glow (difference matte); installer/art/ reproduces both byte for byte. The
sphere wanders on incommensurate sines (+-4% position, +-3% scale, +-4 deg),
livelier while installing (2.6x speed, 1.3x range, eased over ~1 s), half range
in the uninstaller, still when Windows animations are off. Composite differs
from the original key art by 0.74/255 on average.

Setup uses the 720 px splash copy of the wordmark (-1.2 MB), and
build-installer.ps1 clears shared obj/bin before publishing so a public build
never reuses a self-test compile (verified: public setup rejects --screenshot).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… reasoning

A.02 / D.02 (Parcial). The Assistant moves from the bottom split to the
outermost right dock, spanning the ribbon to the status bar; tool docks sit
between the viewport and the Assistant.

- Rail (44 px, icon, running pulse, unread count), normal width (400 px at
  96 dpi, drag handle on the left edge) and expanded (~48% of the window);
  the viewport keeps at least 460 px. Open state, mode and width persist.
  g_chatExpanded maps to the expanded width; action 400 still toggles.
- One geometry source (chatDockGeometry) for the GL dock, native
  conversation, composer EDIT and image dimension fields.
- Reasoning: collapsed per-reply sections, Show reasoning toggle, agent chips
  (ARK or Team roles with id/label/turn/state) and card Reasoning links. Only
  provider-returned readable text is shown; otherwise an explicit
  "Reasoning not exposed by this provider" note.
- Runtime: AssistantEvent::Reasoning from Responses summary/reasoning_text,
  chat reasoning_content, Messages/Claude Code thinking and ACP thought chunks;
  encrypted/redacted reasoning emits nothing. Responses asks for
  reasoning.summary=auto only on official OpenAI (ChatGPT plan, unless the
  catalog declines; API key with an explicit effort). Team roles keep the
  latest reasoning per turn in the snapshot. No agent, tool, budget or
  Focused/Parallel default changes.
- Palette from ui_theme for the dock, native bubbles, chips and composer.
- Tests: offline reasoning extraction/request rules (assistant, ACP, Claude
  Code), new studio-chat-dock-ui captures at 1280x800 and 1920x1080, and
  bottom-dock assumptions in existing UI self-tests updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…con family

All 196 actions on the review sheet now use code-native outline icons from the
shared kit: 80 modelling/sketch/surface/sheet/document icons (set A), 56
assembly/direct-edit/inspection/manufacturing/electronics/plastics icons
(set B) and 18 header, Boolean and utility icons that used shader glyphs
(set C). No raster atlas cell or placeholder glyph remains in the ribbon; shared
concepts share icons (Extrude, Loft, Dimensions, Exit sketch, Cancel/Apply) and
families read alike (sketch tools vs precise forms, selection filters, trims).
The ribbon's All tools button now shows its own icon instead of Tools.
Action-icon UI self-test passes unchanged; menus use the same strokes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings the chat dock to the right side of Studio (rail / normal / expanded,
drag-resizable, persisted) with per-reply reasoning rows, Show reasoning,
per-role reasoning chips for Parallel teams, and provider-side extraction of
human-readable reasoning only (Responses summaries, reasoning_content, thinking,
ACP thought chunks; encrypted reasoning yields nothing).

Conflict resolution: the dock's layout was kept for the team cards, composer,
image attachment, appearance strip and sketch-draft banner; remaining bluish
literals from that side were mapped to the shared graphite palette, scene
overlay borders kept neutral, and the dock's own tone() stays scoped to its
block. The view-cube home button and tool-gallery rows also use theme tones.

Merged build: native CTest 179/179; Studio UI 78/82, with the three failures
that also fail on main (team-blockers x2, parametric-graph stack overflow) and
studio-surface-edit-ui failing once in the full run but passing 3/3 alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…dence

Sequence 65, focus F. Records the unified Studio theme and line icons (B.01),
readable reasoning in the right assistant dock (D.02) and ARK Setup replacing
Inno (F.05), with local evidence: clean release build native CTest 179/179,
Studio UI 78/82 (failures unchanged from main), installer smoke and
distribution tests on the 0.9.66 package. Milestones remain Parcial.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…esigner role

Addresses B.02, D.02 and G.01; each stays Parcial on local evidence.

Backend: ark.parametric-program.v1 is bounded design source written as
code (typed parameters, let/set/for/if/assert/call and emit templates).
It compiles to native feature.add, sketch.set, plane.set and material.set
under one namespace. The exact evaluator, expected_revision and atomic
publication stay authoritative; no script, file or network execution.

- parametric_program tool: validate, examples, inspect and prepare
  install/update/configure/remove/detach through one doc_preview candidate.
- program.bind/clear/detach ops. Re-runs replace only namespace-owned
  objects and reject local edits, outside dependants and stale sources.
- Bindings persist as parametric_programs in conditional document
  version 55. Scoped checkouts and component exports do not carry them.
- Template placeholders in sketch coordinates stay driven text, because
  a numeric sketch coordinate is a free solver variable.

Skill: agent_onboard topic programs, with runnable bookshelf and bolted
flange examples built from exact native_solid geometry, plus a
program_configure command recipe.

Agent: AgentTeamDiscipline::ParametricDesigner publishes only batches
carrying a program.* op. A prepared program candidate becomes that
role's retained candidate, still checked against its step scope. Studio's
default three roles are unchanged.

Tests: parametric-programs 162 assertions and 180/180 non-Studio CTest on
out/theme-native; hardcoded tool count is now 122 and the first future
document version is 56. Of 14 selected Studio UI checks, team-blockers-ui
and parametric-graph-ui fail and also fail on the 065F baseline binary.
The other 68 Studio checks were not run. No live-model run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Studio can now add AgentTeamDiscipline::ParametricDesigner from
Agents > Parametric designer (optional), in Focused and Parallel. It writes
with its own model, effort, connector and reasoning view, and starts with the
overview and programs onboarding pack, which offers parametric_program under
deferred specialist tools. The default three-role Focused team is unchanged.

Role settings stay on fixed slots so saved owners never move: slots 0-7 keep
their meaning and the role takes slot 8. Cards, snapshots and chips count
active positions, and teamRoleSlot maps them back. team_role_count stays the
base team and a new team_parametric_designer key records the switch, so older
settings load with the same owners and the role off.

AgentTeam accepts eight roles, so with the role on Parallel offers one to five
part designers. Enabling it on a full team turns Part designer 6 off and says
so; that role's saved settings remain.

studio-parametric-role-ui runs a scripted Focused team through Studio's tool
queue: the engineer assigns the role, it publishes one program candidate,
native inspection measures both solids (160 and 176 mm3), the reviewer reports
and the goal is reported complete. It also covers legacy settings, the switch,
persistence, role controls at eight window sizes in two dock widths, the
function limit (117, or 43 deferred) and a default run after switching off.

Local: agent-team, release-evidence, release-metadata and the affected Studio
checks pass, 20 of 23. studio-team-blockers-ui (both sizes) and
studio-parametric-graph-ui fail with identical exit codes on the prior binary.
Default team captures match that binary below the live stats band. Offline
scripted evidence only: no real provider run and no quality, time or token
benefit is claimed. The 3840x2160 capture exceeded the test display, so that
size has measured bounds, not visual inspection.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…dence

Sequence 66, focus D. Records parametric programs written as bounded code
(B.02, G.01), the programs onboarding skill and the optional Parametric
designer role in Studio (D.02), with local evidence: clean release build
native CTest 180/180, Studio UI 80/83 (the three failures recorded in 065F),
isolated Setup smoke including upgrade from 065F and rollback state, and the
distribution test on the 0.9.67 package. Team evidence is scripted and offline.
Milestones remain Parcial.

The packaged runtime was built from 537a00a plus this release.json identity,
so its source inventory records dirty: true.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@CenturyMesh
CenturyMesh enabled auto-merge November 5, 2026 21:43
parametricDesignerRole used native_solid, so the program preview was invalid
in portable core builds and agent-team failed on portable-core. The test
covers team scope and candidate ownership, not geometry, so it now emits the
legacy box available in both builds. Exact geometry stays covered by
parametric-programs and studio-parametric-role-ui.

Portable core CTest 121/121 and native agent-team pass locally.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@CenturyMesh
CenturyMesh merged commit 59692b6 into main Nov 5, 2026
4 checks passed
@CenturyMesh
CenturyMesh deleted the feat/parametric-programs branch November 13, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant