feat(tests): runnable docker setup for the preview Maestro SDK skills - #2728
Conversation
Running the three preview/uipath-maestro-{flow,case,bpmn} builder-SDK skills
as the only skill catalog needed four non-obvious pieces of setup, none of
them recorded anywhere. Each missing piece scores as a capability failure
rather than a config error, so the results look plausible and are not.
Dockerfile: add a runtime npmrc for the @UiPath scope plus
NPM_CONFIG_USERCONFIG. The build-time npmrc is written to globalconfig and
deleted in the same RUN because it carries the literal token, so the image
ships no npm auth at all; this layer adds a token-LESS npmrc referencing
${NODE_AUTH_TOKEN}, which npm expands at read time. NPM_CONFIG_USERCONFIG is
what makes it reachable: npm resolves userconfig to $HOME/.npmrc, and the
docker runner forwards --env HOME with the HOST value on purpose, overriding
the image's /root, so npm looks in a directory the container does not have,
never maps @UiPath to GitHub Packages, and 404s on the public registry.
Without this, `npm install @uipath/flow-sdk` fails and every builder-SDK
compile fails with it.
tests/experiments/preview-maestro-sdk.yaml: the catalog is narrowed by
pointing agent.plugins[].path at preview/, which shadows the same-named v1
skills. That path does double duty as a bind mount, so narrowing it also
drops the repo-root mount that nightly gets for free, and criteria across the
flow and case suites that shell out to tests/tasks/**/_shared/*.py then exit
2. extra_mounts restores the repo root explicitly. File-based auth is
documented as a commented block: its destination has to equal the host $HOME
for the same forwarded-HOME reason, and mounting to /root/.uipath instead
yields "Not logged in" on every tenant call.
tests/docker/preflight.sh: one container, run with the host HOME forwarded
exactly as the harness does, asserting the eleven preconditions a full run
depends on -- login state readable, SDK installs, and check/compile/check plus
the product scaffold all succeeding. A manual `docker run` without --env HOME
authenticates against the image's /root and reproduces none of these failures,
which is why they are easy to miss.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The preview experiment shipped its login mount commented out with a `$HOME/.uipath` destination, blocked on destination-side `$VAR` expansion (UiPath/coder_eval#128). It doesn't need it: nightly.yaml and smoke.yaml already authenticate the in-container `uip` from `~/.uipath:/.uipath:rw`, a literal destination that validates on the pinned coder_eval 0.10.2. Adopt that mount verbatim rather than deriving a "more correct" one. It is the arrangement with a 500-task/night track record, and a login the CLI cannot see fails tasks on their tenant calls, which scores as a capability problem rather than a config error. flow-v2-preflight.sh mounts the same destination, so its "uip reports a live login" check is now the empirical test of the unified path. same-ground-headtohead.yaml gets the same treatment, dropping both `/home/tmatup/...` hardcodes and the comment deferring them to UiPath/coder_eval#100. One `$VAR` destination survives, on the repo-root mount, and it is unrelated to auth: DockerDriverConfig can forward host env vars but cannot set container ones, so criteria see `$SKILLS_REPO_PATH` with its forwarded host value and the mount has to land there. That single line is what still wants coder_eval#128. Renames make the Flow v2 scope legible: tests/experiments/preview-maestro-sdk.yaml -> flow-v2-preview.yaml tests/docker/preflight.sh -> flow-v2-preflight.sh same-ground-headtohead.yaml keeps its name: per tests/README.md it is a general campaign comparison arm (pinned skills-image:sg1, SG_EMPTY_SKILLS blanking installed skills), not the v1 half of a Flow v2 head-to-head. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ight Comment volume was out of proportion to the config it explains, in the experiment, same-ground, the Dockerfile npmrc layer and the README. flow-v2-preflight.sh loses its six product-behaviour checks (flow check --source / compile / emitted / check --compiled / solution init / scaffold) and the inline TS flow they needed. Those are what the eval measures, and pinning CLI verbs in a gate script only rots. What remains is the six config assertions whose failures score as capability problems instead: forwarded HOME, npm userconfig, @UiPath registry, token reachability, a live uip login, and an in-sandbox flow-sdk install. 82 lines to 52. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The script's only load-bearing assertion was that the `/.uipath` login mount resolves under the forwarded host HOME. That is one `docker run`, now in tests/README.md. The rest either duplicated what a failing run already reports or pinned CLI verbs that drift. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…re_run The npmrc layer set ENV NPM_CONFIG_USERCONFIG on tests/docker/Dockerfile, which changes npm resolution for every suite, not just the Flow v2 preview. Several skills tell agents to `npm install -g @uipath/cli`, which is public-npm-only for stable releases and carries no registry override, so a global @UiPath -> GitHub Packages mapping is a hazard the preview run has no business creating. Revert the Dockerfile and write the npmrc from the experiment's pre_run instead, into $HOME, which is where npm resolves userconfig, so it holds whatever HOME the runner forwards and needs no NPM_CONFIG_USERCONFIG at all. pre_run executes inside the sandbox before the agent and fails the task loudly on error, so a broken write cannot masquerade as a capability miss. ${NODE_AUTH_TOKEN} stays literal; npm expands it at read time. Only flow-v2-preview.yaml needs this. No other experiment installs an @UiPath package in-sandbox. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Claude finished @bai-uipath's task in 2m 13s —— View job PR Review: Docker setup for preview Maestro SDK skills
SummaryMoves npm auth for the Change-by-Change Review1.
|
| Area | Status | Notes |
|---|---|---|
| Frontmatter | N/A | No skill files changed |
| E2E Tests | N/A | Test infra only, no skill or task changes |
| Skill Body | N/A | No skill files changed |
| References & Assets | OK | README documentation is accurate and consistent |
| Repo Hygiene | OK | No secrets, no personal paths, no stale references to deleted files |
Issues for Manual Review
- The
$SKILLS_REPO_PATH:$SKILLS_REPO_PATH:romount destination uses a variable, which the PR documents as blocked oncoder_eval#128. Until that ships, running this experiment on the pinned 0.10.2 will abort on load. This is acknowledged in the PR body — just confirming the merge is intentional as prep work. - The missing
system_promptinflow-v2-preview.yamlshould be confirmed as intentional, especially if this experiment runs in campaign mode where sibling run directories exist.
Conclusion
Clean PR. The architecture decision to move npm auth from the shared image layer into a per-experiment pre_run is well-reasoned — it limits blast radius, keeps the token out of the image, and fails loudly rather than silently. The hardcoded path cleanup in same-ground-headtohead.yaml and the deletion of the now-redundant preflight.sh are both correct. No blocking issues. Approve.
anthropic 1.0.0 (2026-08-20) moved its HTTP layer to httpx2. coder-eval
0.10.2 imports httpx in judge_bedrock without declaring it, so it only
ever resolved transitively through anthropic 0.x. On a fresh install
today llm_judge fails to import and every task carrying an llm_judge
criterion errors at setup with score 0.00.
Reproduced against the released wheel, nothing branch-specific:
uv pip install "coder-eval==0.10.2"
-> anthropic 1.0.0, no httpx
-> import coder_eval.criteria.llm_judge
ModuleNotFoundError: No module named 'httpx'
uv pip install "coder-eval==0.10.2" "anthropic<1.0"
-> anthropic 0.125.0, httpx 0.28.1, llm_judge imports
coder_eval main already switched to httpx2, so this cap comes off with
the next .coder-eval-version bump.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…eval" This reverts commit 93f2850. The forward fix is already open as #2707, which moves the pin to 0.11.1 — the coder_eval release carrying beeceddc, "bump anthropic to 1.0.0, migrate Bedrock judge path to httpx2" — and exempts anthropic from the safe-chain package-age gate in the same four workflows. Keeping the cap would break that merge rather than help it: 0.11.1 declares anthropic>=1.0.0,<2.0.0, so the two constraints are unsatisfiable and the install step would fail outright. uv pip install "coder-eval==0.11.1" "anthropic<1.0" -> No solution found when resolving dependencies The cap also would not have turned the check green. With httpx restored the tasks reached the agent and then hit a second, unrelated Windows break: claude-agent-sdk 0.2.144 cannot find a native claude.exe, so all three crash with agent_crash after 3 attempts. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
UiPath/coder_eval#128 shipped in 0.11.2, so `_validate_extra_mount` now expands `~` and `$VAR` in a destination and the flow-v2-preview repo-root mount loads instead of aborting. Carries 0.11.0's breaking changes into the whole suite: the cap-drop anti-cheat window on every `docker run`, and directory-only `task.reference`. The ~298 `reference: {file:}` tasks under uipath-troubleshoot are skipped with a migration error until #2707 lands their migration. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…dk-docker Keeps this branch's 0.11.2 pin over main's 0.11.1: #2707 moved the pin far enough to carry its own directory-only `task.reference` migration, and 0.11.2 adds UiPath/coder_eval#128 on top, which the flow-v2-preview repo-root mount needs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0.2.144 is the first release in months published without a win_amd64 wheel, so uv falls back to the sdist and nothing bundles claude.exe. All three RPA smoke tasks crash at agent_crash before doing any work. coder-eval requires claude-agent-sdk>=0.2.124 with no upper bound, so exclude that single release rather than capping the range: 0.2.143 has the wheel, and a later release that restores it resolves normally. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
What
Makes a docker-driver run of the three Flow v2 (Maestro builder-SDK) preview skills reproducible, and unifies
uipauth across the docker experiments.tests/experiments/flow-v2-preview.yaml:preview/as the only skill catalog, apre_runthat writes the@uipathnpmrc into$HOME, and the repo-root mount restored/.uipathin the preview experiment and insame-ground-headtohead.yaml, matchingnightly.yamltests/.coder-eval-version: 0.11.1 -> 0.11.2, the release that carries the mount-destination fix the repo-root mount needs (see The framework pin).github/workflows/smoke-rpa-skills.yml: excludes one broken upstreamclaude-agent-sdkrelease on the Windows runner (see The Windows RPA smoke)Why
Each piece was derived the hard way during an ad-hoc run of all 243 Maestro tasks. They share a failure mode: a missing one scores as a capability failure rather than a configuration error, so the run completes and reports a plausible number that isn't real. In the run that produced this PR, 148 of 257 rows were told the SDK was not installed when they tried to compile.
npm auth. The image ships no runtime npmrc: the build-time one carries a literal token and is deleted in the same layer. Without a replacement, in-sandbox
npm install @uipath/flow-sdk404s against the public registry and every builder-SDK compile fails with it. Written frompre_runrather than baked intotests/docker/Dockerfile, so npm resolution is unchanged for every other suite: several skills tell agents tonpm install -g @uipath/cli, which is public-npm-only for stable releases.pre_runruns inside the sandbox before the agent and fails the task loudly, so a broken write cannot masquerade as a capability miss.${NODE_AUTH_TOKEN}stays literal; npm expands it at read time.The repo-root mount.
plugins.pathis both the skill catalog and an automatic bind mount. Narrowing the catalog topreview/narrows the mount, and criteria across the flow and case suites shell out to$SKILLS_REPO_PATH/tests/tasks/**/_shared/*.py, which then exit 2 and score as ordinary misses. Nightly never sees this because itsplugins.pathis the repo root.Auth. Standardizing on nightly's mount rather than deriving a "more correct" destination: it is the arrangement with a 500-task/night track record and it needs no framework change. This also drops the two
/home/tmatup/...hardcodes fromsame-ground-headtohead.yaml, which keeps its name — pertests/README.mdit is a general campaign comparison arm, not the v1 half of a Flow v2 head-to-head.The framework pin
The repo-root mount's destination has to be the host path, because
$SKILLS_REPO_PATHis forwarded with its host value and criteria interpolate it in-container._validate_extra_mountrejects a non-literal destination, so on 0.11.1 the experiment aborts on load. UiPath/coder_eval#128 shipped in 0.11.2, sotests/.coder-eval-versionmoves 0.11.1 -> 0.11.2 here.That is a single patch. #2707 already put main on 0.11.1, so the 0.11.x surface that would otherwise need review here — directory-only
task.reference(0.11.0, UiPath/coder_eval#106), the cap-drop anti-cheat window (0.11.0), and theanthropic1.0.0 /httpx2fix forllm_judge(0.11.1, UiPath/coder_eval#133) — is already on main and is not introduced by this PR. The only behaviour this bump adds is #128.One note on the cap-drop rider even though main already carries it, since it is the risk this PR's own verification had to close: on a native-Linux runner whose
~/.uipathis mode 700 owned by a non-root uid, container root could no longer read the login state through the file mount. The ADO dry run below settles it.The Windows RPA smoke
Green as of
f51d19a81. The check only runs when the test infra changes, so this PR is the one that trips it. Two breaks were stacked and neither originates here.The
llm_judgeimport.anthropic1.0.0 moved tohttpx2and coder-eval 0.10.2 importedhttpxwithout declaring it, so any task carrying anllm_judgeerrored at setup. Fixed in 0.11.1, which main already carries.The Windows
agent_crash.claude-agent-sdkis unpinned, and 0.2.144 turns out to be a partial publish: nowin_amd64wheel, no git tag, no GitHub Release, with upstream's releases page still showing 0.2.143 as latest. PyPI'slatestis a version that was never released, and it carries no bundledclaude.exe, so all three tasks retried 3x onagent_crash - Claude Code not foundand scored 0.000. Filed upstream as anthropics/claude-agent-sdk-python#1234.Waiting on an upstream backfill would block this PR, so the RPA smoke install excludes that single release (
claude-agent-sdk!=0.2.144). It resolves to 0.2.143 today and goes inert once upstream backfills the wheel or yanks the version. Verified on this branch:claude-agent-sdk==0.2.143, 3/3 tasks >= 0.7.Verification
Docker driver on colima, against the released wheel rather than the #128 branch, after merging the post-#2707
main:The fix itself, at the unit level.
_validate_extra_mountcalled directly on both released wheels from PyPI:End to end. Same task, codex on
gpt-5.6-luna, host wheel and in-container engine both 0.11.2: SUCCESS, 6/6 criteria at 1.000, 218.3s.The repo-root mount reaches the real argv, and 0.11.0's anti-cheat rider is active in the same run:
The local run cannot settle the cap-drop question on its own: on this host
~/.uipathisdrwxr-xr-xwith.authat 644, and colima's virtiofs remaps ownership to root in-container, so the mode-700/non-root-uid case cannot be reproduced.ADO dry run (codex / gpt-5.6-luna, Linux + Windows). Cap-drop does not break the auth mount on the BYOS agent:
HOMEis/root, the mount is-v /root/.uipath:/.uipath:rw, the host directory is root-owned and the container runs as root, so droppingDAC_OVERRIDE/DAC_READ_SEARCHis inert there — zero permission errors, and the auth-dependent criteria scored 1.000. The split also validated end to end: the Windows slice succeeded (2/2 on its dry-run cap), andMerge slices + publish one runandDelete BYOS agentsboth succeeded.The Linux slice still reported
GATE: FAIL, from causes outside this PR: Bedrock returned 403 for account074103337776under an Organizations SCP deny (1 task error plus the non-gating analysis and review steps),@devtool installs reported "No compatible version" for orchestrator-, integrationservice- and maestro-tool (1 task error), one genuine task miss, and the antigravity harness smoke looked foruipath-admin/audit_events_basic_smoke.yamlwhere the task actually lives atuipath-admin/audit/audit_events_basic_smoke.yaml— a stale path incoder_eval_uipath, present on main too.