Skip to content

🍒 [v1.207] fix(uipath-maestro-bpmn): edit a target outside /solution in /tmp, never init a project for it (Studio Web) - #4878

Merged
rockymadden merged 1 commit into
release/v1.207from
fix-bpmn-sw-target-outside-solution-CP-to-release-v1-207
Nov 18, 2026
Merged

rockymadden merged 1 commit into
release/v1.207from
fix-bpmn-sw-target-outside-solution-CP-to-release-v1-207

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Why

Studio Web eval run 2026-11-16_09-25-49 failed skill-bpmn-edit-add-node and skill-bpmn-edit-preserve-lanes-conditions. Both passed on 11-13 (Studio Web was still on V1 then) and on the codex/claude nightlies.

The eval harness mounts the fixture at /sandbox. The in-page SDK verbs and node reach only /solution and /tmp:

  • decompile: ENOENT /sandbox/OrderIntake.bpmn
  • Error: Node sandbox path is outside /solution and /tmp: /sandbox

The SDK's hint ("Pass the project's copy under /solution instead") points agents back at /solution. cp, validate and the agent's file tools do read /sandbox. All 8 Studio Web edit tasks hit this ENOENT. Of the 6 that passed, 4 ran the loop on a /tmp copy and copied it back. add-output hand-edited the XML in /sandbox. move-node ran the /tmp loop and deleted entryPointId: false as the seed rule says; the merge then stamped an id on Start_1, so the agent fell back to hand-editing. 3 of the 8 ran uip maestro bpmn init under /solution. move-node then hit StudioWebFileSystem: binary writes are not supported on cp into /solution, fell back to /tmp and passed; this refusal is more support for ignoring the hint to copy into /solution. The other 2 failed:

Task What the improvised project did
edit-add-node The seed rule "delete entryPointId: false, or refresh fails" made the SDK stamp a uipath:entryPointId on Start_1 → check_add_node.py: Start_1 config/payload changed. move-node hit the same stamp in /tmp with no project.
edit-preserve-lanes-conditions refresh failed in /tmp (no project.uiproj), so the agent ran init ExpenseClaimProject. The template's _Implicit_EndEvent has no DI → validate_bpmn.py fails on the stray Process.bpmn. (The other failure, .flow-sdk/original/, is the grader fix in #4754.)

Canvas check: PO.Frontend origin/develop mints an id on every root start event that lacks one as soon as the file opens (src/services/uipath/UiPathEntryPointIdUtil.ts:117-119, dispatched by useUiPathEntryPointListener.ts, mounted at src/components/bpmn/BpmnDesigner.tsx:181). So the id itself is canvas-consistent inside a project. The defect is the project the user never asked for. The grader stays as it is.

What

Studio Web flavor only (skill-flavors/studioweb/uipath-maestro-bpmn/SKILL.md):

  • host-setup: an existing .bpmn outside a /solution project is edited as a copy in /tmp/bpmn-work/<Name>/. The loop runs there without refresh (and so without its connector bullet, which reads bindings_v2.json) and keeps entryPointId: false; the result is cp'd back and validated. The paragraph quotes the refusals, says to ignore the hint to copy into /solution, overrides the "refresh every time" in the Critical Rules, the Workflow and the loop for this case, and gives the undo. Never init a project for such a file. (A .bpmn or project that does not exist yet is fix(uipath-maestro-bpmn): Studio Web builds into the project's main file; grader accepts the canvas CaseRulesEvaluator element #4808's rule.)
  • validation-loop: the merge baseline is step 1's compile of the unedited source, never a copy of the target (a copy holds the pools and lanes the SDK does not model, so merge deletes them) or the edited file (merge sees no change), with the recovery when the baseline is missing.
  • workflow-seed and references/draft-skeleton.md: delete entryPointId: false only when the target is in a project.
  • Contract test in tests/scripts/studioweb-flavor-contract.test.mjs.

No canonical change. In real Studio Web every open file is under /solution, so in-project behaviour is unchanged.

Not in this PR

skill-bpmn-feet-inches (greenfield) failed for a different reason. The agent renamed the init template's process and start ids, so merge removed the whole diagram ("No diagrams found"). The agent then ended its turn before running format, which the loop already prescribes. That is n=1 and is tracked separately until a rerun shows it recurs.

Verification

🤖 Generated with Claude Code


Automatically cherry-picked from #4809 to release/v1.207 by @rockymadden.

…ver init a project for it (Studio Web) (#4809)

* fix(uipath-maestro-bpmn): edit a target outside /solution in /tmp, never init a project for it (Studio Web)

The in-page SDK verbs and node reach only /solution and /tmp. A loose
target elsewhere made agents scaffold a project to satisfy refresh,
leaving a stray template that fails validate and stamping an
entryPointId the user did not author.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(studioweb): guard the outside-/solution edit rule for BPMN

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(uipath-maestro-bpmn): quote the SDK's refusal, make the loose-target steps runnable, scope the entryPointId rule in draft mode

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(uipath-maestro-bpmn): a loose target skips the connector step, since only refresh writes bindings_v2.json

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(uipath-maestro-bpmn): name the connector bullet a loose target skips; drop the unbacked reply instruction

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(uipath-maestro-bpmn): scope the outside-/solution rule to an existing file, override the Workflow's refresh, add cd and undo

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(uipath-maestro-bpmn): name Critical Rule 5 in the no-refresh override; narrow the /solution copy refusal to its evidence

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(uipath-maestro-bpmn): the Studio Web merge baseline is a compile of the unedited source, never a copy of the target

A copy of the target holds pools and lanes the SDK does not model, so
merge reads them as deleted (preserve-lanes-conditions, run 43959425762:
Removed 9, plane re-targeted after format).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(uipath-maestro-bpmn): one baseline rule for both wrong baselines (target copy, edited file); mkdir and re-merge in the recovery

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

@roberts-cliff roberts-cliff left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cherry-pick reviewed — diff matches source. LGTM.

@rockymadden
rockymadden merged commit e8994ce into release/v1.207 Nov 18, 2026
6 checks passed
@rockymadden
rockymadden deleted the fix-bpmn-sw-target-outside-solution-CP-to-release-v1-207 branch November 18, 2026 14:50
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.

4 participants