Skip to content

Configure boolean and choice program parameters in the Studio HUD - #47

Merged
CenturyMesh merged 4 commits into
mainfrom
claude/studio-program-editor
Nov 18, 2026
Merged

CenturyMesh merged 4 commits into
mainfrom
claude/studio-program-editor

Conversation

@CenturyMesh

@CenturyMesh CenturyMesh commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Problem and resulting behavior

In Studio, the Programs view of the Parametric HUD treated every program parameter as a number. A text choice was read-only ("Not a number / configure it with an agent"), and a boolean or numeric choice was stepped as a free number, so + could stage a value the tool then rejected.

Rows now follow the parameter kind reported by parametric_program{action:"inspect"}:

  • Boolean: shows On or Off. The value box switches it, - turns it off and + turns it on.
  • Numeric or text choice: shows its position and the declared list. -/+ move through the declared order without wrapping, and the value box opens the list.
  • Number: unchanged (typed entry, stepping, rounding and clamping).

One Apply publishes mixed kinds as a single configure candidate.

Scope and contracts

  • Related issue: none.
  • Roadmap IDs: B.02 (stays Parcial); A.03 and A.05 for the CI unblock below (both stay Parcial).
  • Relevant compatibility, geometry, revision or persistence behavior:
    • No change to the tool, the document format or the engine. For the feature, only src/view/program_hud.inl and its self-test changed; the CI unblock below changes one build script.
    • Staged values are stored as configure sends them: a number (1/0 for a boolean) or the text of a text choice.
    • The choice list shares the typed editor's check: a choice picked while another writer changed the model is not staged.
    • A staged choice that updated source no longer lists is marked not a declared choice; Apply rejects with PROGRAM_VALUES and the document and revision are unchanged.
    • release.json is unchanged; this is not a new distributable iteration.
  • Remaining limitations:
    • The Design variants window still stages numbers only.
    • Program source cannot be edited in Studio.
    • The choice list is the shared field dialog, whose footer still reads "Enter to apply" beside the Stage button.

Verification

Local, MSVC Release with OCCT and -DARK_TEST_STUDIO_LIVE=ON:

  • studio-program-hud-ui passes. Its new section installs a second program with a text choice, a numeric choice and a boolean, stages all three from their controls and publishes them as one revision. Generated objects match the choices and the plate's native volume is 7200 mm3, as expected.
  • The same check covers stepping past the last choice, unstaging by returning to the committed value, a choice picked during a concurrent configure (not staged) and a choice dropped by an agent update (PROGRAM_VALUES, document unchanged).
  • studio-parametric-hud-ui, studio-design-variants-ui, studio-parametric-graph-ui, studio-parametric-role-ui, studio-parametric-authoring-ui and studio-team-blockers-ui pass.
  • release-evidence and release-metadata pass.
  • Inspected captures: -choices-staged, -choice-dialog, -choices-applied, -choice-dropped (1280x800) and -choices-narrow (1100x700).

Not run: the full native and Studio suites, and any live provider. Hosted CI runs no Studio UI checks, so the UI evidence above is local only.

CI unblock in this pull request

The Windows jobs failed before building anything: the pinned ONNX Runtime 1.23.2 release archive, and the upstream repository page, return HTTP 404 from GitHub. scripts/prepare-memory-embeddings.ps1 now falls back to the official Microsoft.ML.OnnxRuntime 1.23.2 NuGet package, pinned by SHA-256, only when the release archive cannot be downloaded.

  • The four files taken from either package (two runtime libraries, license, third-party notices) are byte-identical, and each is now pinned by its own SHA-256.
  • A package whose digest differs still fails; only a failed download moves to the next source.
  • Local, Windows PowerShell 5.1:
    • Empty cache with the real network: the release archive returned 404, the NuGet package was used and manifest.json is byte-identical to the one prepared from the release archive.
    • Cached release archive: used without any download, same manifest.json.
    • Both sources unreachable (a copy of the script with dead URLs): explicit failure naming both, exit code 1, nothing left behind.
    • dev-build-069d, release-metadata and release-evidence pass.
  • Not run locally: PowerShell 7, which hosted CI uses.

Review checklist

  • The change follows AGENTS.md and relevant module contracts.
  • Document edits retain revision checks, atomicity and explicit rejection.
  • Applicable tests/checks ran; evidence and limitations are recorded above.
  • Documentation and affected roadmap status reflect the final behavior.
  • No credentials, private user documents or unauthorized third-party content are included.
  • Dependency notices are preserved and any new dependency's terms are identified.
  • Release identity, if changed, comes from release.json; document versions change only when required by persisted features.

🤖 Generated with Claude Code

…HUD (B.02)

The Programs view of the Parametric HUD treated every parameter as a number.
A text choice was read-only ("configure it with an agent"), and a boolean or
numeric choice was stepped as a free number that the tool then rejected.

Rows now follow inspect's parameter_kinds:
- a boolean shows On/Off; the value box switches it, - turns it off, + on;
- a numeric or text choice shows its position and the declared list; -/+ move
  through the declared order without wrapping and the value box opens the list;
- numbers keep typed entry, stepping, rounding and clamping.

Staged values are stored as configure sends them (a number, or the text of a
text choice), so one Apply publishes mixed kinds as one candidate. The choice
list shares the typed editor's check: a choice picked while another writer
changed the model is not staged. A staged choice that updated source no longer
lists is marked "not a declared choice" and Apply rejects with PROGRAM_VALUES.

studio-program-hud-ui installs a second program with a text choice, a numeric
choice and a boolean, stages all three from their controls and publishes them
as one revision (generated objects and the plate's exact 7200 mm3 volume match
the choices). It also covers stepping past the last choice, unstaging by
returning to the committed value, the concurrent-configure race and the
dropped choice, with the document unchanged on rejection. Five new captures
were inspected at 1280x800 and 1100x700.

Local: studio-program-hud-ui, -parametric-hud-ui, -design-variants-ui,
-parametric-graph-ui, -parametric-role-ui, -parametric-authoring-ui and
-team-blockers-ui pass, with release-evidence and release-metadata. Hosted CI
runs no Studio UI checks. The Design variants window still stages numbers
only. release.json is unchanged: this is not a new distributable iteration.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Bruno Santos and others added 3 commits November 17, 2026 23:03
The branch now sits on 078B after merging main, and the controls are not
part of an identified iteration yet.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
….03, A.05)

The Windows CI jobs stopped at "Prepare pinned local semantic model on
Windows": the ONNX Runtime 1.23.2 release archive, and the upstream repository
page itself, return HTTP 404 from GitHub. The script had no second source, so
every pull request failed before building anything.

prepare-memory-embeddings.ps1 now tries the pinned release archive first and,
only when it cannot be downloaded, the official Microsoft.ML.OnnxRuntime
1.23.2 NuGet package, pinned by SHA-256. A package whose digest differs still
fails; only a failed download moves to the next source. Downloads are written
to a .partial name and renamed, so an interrupted transfer is not mistaken for
the pinned package on the next run. The license and third-party notices are
now pinned per file, as the two runtime libraries already were, so the
prepared assets do not depend on which package was reachable.

Evidence, Windows PowerShell 5.1, local:
- the NuGet package's SHA-512 equals the hash in NuGet's catalog entry;
- its win-x64 onnxruntime.dll, onnxruntime_providers_shared.dll, LICENSE and
  ThirdPartyNotices.txt are byte-identical to the entries of a cached copy of
  the release archive whose SHA-256 equals the existing pin;
- empty cache with the real network: the release archive returned 404, the
  NuGet package was used and manifest.json is byte-identical to the one
  prepared from the release archive;
- cached release archive: used without any download, same manifest.json;
- both sources unreachable (a copy of the script with dead URLs): explicit
  failure naming both, exit code 1, no partial or runtime files left;
- dev-build-069d, release-metadata and release-evidence pass.

Not run locally: PowerShell 7, which hosted CI uses. third_party/onnxruntime/
SOURCE.json and THIRD_PARTY_NOTICES.md record the alternate source. No runtime
byte, document format or release identity changes.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@CenturyMesh
CenturyMesh merged commit 171addd into main Nov 18, 2026
5 checks passed
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