Skip to content

076A: harden parametric programs, scope tool feedback, fix Studio, curves and ARK Setup - #45

Merged
CenturyMesh merged 3 commits into
mainfrom
work/pr43-review-hardening
Nov 13, 2026
Merged

CenturyMesh merged 3 commits into
mainfrom
work/pr43-review-hardening

Conversation

@CenturyMesh

Copy link
Copy Markdown
Owner

076A — Program hardening, run-scoped feedback and safer distribution

This PR follows a review of PR #43 (066D), re-checked on 075D (#44). Every defect listed here was confirmed in the 075D source before it was changed. Most fixes have a test that fails on the earlier code and passes now. Details and limits are in docs/iterations/076A.md.

Parametric programs (B.02/A.02)

  • Stack overflow on deep expressions. -, ! or ^ chains under the 2048-byte limit crashed ark-mcp; the same path runs on .ark load. All expression recursion now shares one 64-level nesting budget.
  • Non-finite values. assert:"1/(a-b) > 0" with a==b used to pass. Non-finite intermediates now reject with PROGRAM_NONFINITE. ?:, && and || are lazy, and names resolve statically, including in untaken branches.
  • Provenance. program.bind requires the exact compiled commands (PROGRAM_PROVENANCE). ParametricDesigner can no longer upsert objects outside its namespace, including via variant.*.
  • Validation cost. Bindings are validated only on load, bind and save. Local benchmark: doc_apply drops from 184 to 44 ms without the history journal, and from 659 to 361 ms with it.
  • New features. Boolean, choice and text parameters (conditional document format 60), .arkprog export/import, context_graph program nodes, and a Programs view in the Studio HUD.

Assistant feedback (D.02)

Fixes the recurring "Claude Code omitted required tool feedback after its reminder" interruption.

  • The feedback gate covers only the current run's actions. One shared gate serves the HTTP, ACP and Claude Code connectors.
  • A reminder repeats only while this run's unrated count falls.
  • A Single run ends with a "Feedback pending" status, recorded in AssistantResult::feedback and in the benchmark counts.
  • Team completion still blocks on teammates' unrated actions.
  • actor.run records provenance, and tool_feedback errors name each failing item.

Studio

  • The chat dock limits scale consistently across DPI.
  • Review blockers appears with agent cards collapsed, which fixes studio-team-blockers-ui.
  • Team reasoning is attached per event, and truncation keeps UTF-8 intact.
  • Studio and its session executor share one 8 MiB stack reserve (supersedes b63e93d).
  • The error text is drawn before the reasoning toggle.

Curved geometry (investigation still Em curso)

Tessellation did not regress from 051A to 075D. This PR changes four things:

  • Curved edge outlines are split by turning angle.
  • Agent snapshots use smooth shading.
  • The guides teach native curved forms.
  • A turned_knob example is added.

No change in design quality is claimed.

ARK Setup (F.05/A.03)

  • Payload. Discovery tolerates an Authenticode table, and SHA-256 is checked on a single self handle.
  • Uninstall and repair. Uninstall runs under update.lock, and reinstall/downgrade repair the installation.
  • Inputs. Inno silent switches are accepted, folders are validated, and disk space is checked on the temp drive.
  • CI and release hygiene. A new CI job builds ARK Setup, dirty-tree packages are refused, and .NET bin/obj is ignored.

Verification (local Windows build: llvm-mingw Release, patched OCCT 8.0.1)

  • The runtime reports 0.9.77 / 076A.
  • Native CTest: 206/206.
  • Studio UI: 101/104. The 3 failures also fail on a clean 075D Studio built and run on the same machine:
    • studio-context-ui and studio-suspension-ui fail every time.
    • studio-surface-edit-ui is intermittent: it passed in two earlier full runs and failed in the final one.
  • ArkSetup builds clean in both configurations; the installer harness (22), updates (83/96) and distribution (42) checks pass.

Not verified: live providers, MSVC, the new hosted windows-installer job, a trusted signing certificate, and a matched design-quality comparison. No installer or OTA package was published.

🤖 Generated with Claude Code

CenturyMesh and others added 3 commits November 13, 2026 13:27
…K Setup

Parametric programs (B.02/A.02):
- One 64-level nesting budget for all expression recursion. Deep unary or
  power chains under the 2048-byte limit no longer overflow the stack in
  validate or on .ark load.
- Every evaluated value must be finite (PROGRAM_NONFINITE). ?:, && and || are
  lazy, and identifiers, builtin arity and set targets resolve statically.
- program.bind requires the exact compiled commands (PROGRAM_PROVENANCE).
  ParametricDesigner may publish only verified blocks, clear/detach and its
  own variant steps.
- Bindings are validated on load, bind and save only. Ambiguous local
  sketch/feature references reject.
- Boolean, numeric-choice and text-choice parameters (conditional format 60),
  .arkprog export/import, context_graph program nodes and a Programs view in
  the Studio Parametric HUD.

Assistant and team feedback (D.02):
- One run-scoped tool_feedback gate for the HTTP, ACP and Claude Code
  connectors. Rows from earlier conversations are backlog, not a demand.
- A reminder repeats only while this run's unrated count falls. A Single run
  ends with a "Feedback pending" status instead of an interruption, recorded
  in AssistantResult::feedback and in benchmark counts.
- Team goal completion still blocks on teammates' unrated actions.
- actor.run labels ratings of other runs, and tool_feedback errors name each
  failing item.

Studio:
- The chat dock scales its limits with DPI, disables Expand when it cannot
  widen, and round-trips the stored width exactly.
- Review blockers appears with agent cards collapsed.
- Team reasoning is attached per event, and truncation keeps UTF-8 whole.
- One 8 MiB stack reserve for Studio and its session executor.
- The error text is drawn before provider reasoning.

Curves:
- Curved edge outlines are split by turning angle.
- Agent snapshots use smooth vertex shading.
- Guides teach native curved forms, and a turned_knob example is added.

ARK Setup and release hygiene (F.05/A.03):
- Payload discovery works before an Authenticode table, through a single
  self handle with a SHA-256 check.
- Uninstall runs under update.lock. Reinstall/downgrade repair, Inno silent
  switches, safe folders and a temp-drive space check.
- New CI job; dirty-tree packages are refused; .NET bin/obj are ignored.

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

Local Windows build (llvm-mingw Release, patched OCCT 8.0.1, Studio UI tests
on) of 940cf99 plus this iteration:
- Runtime reports 0.9.77 / 076A.
- Native CTest 206/206.
- Studio UI 101/104. studio-context-ui and studio-suspension-ui also fail on a
  clean 075D Studio. studio-surface-edit-ui passed in two earlier full runs
  and fails identically on a clean 075D Studio in the final run
  (intermittent, cause not established).
- ARK Setup builds cleanly in both configurations; the installer harness,
  updates and distribution suites pass.

No live provider, MSVC, hosted CI, trusted signing certificate or matched
design-quality comparison was exercised. No installer or OTA package was
published.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The new windows-installer job passed on a hosted windows-2022 runner for
PR #45 (Actions run 43435817912): both Setup configurations built, the
pages rendered, and the process/payload/disk-plan harness and the engine
tests passed, including a temporary test signature. A trusted signing
certificate remains untested.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@CenturyMesh
CenturyMesh merged commit 6186f55 into main Nov 13, 2026
5 checks passed
@CenturyMesh
CenturyMesh deleted the work/pr43-review-hardening branch November 13, 2026 14:27
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