Migrate troubleshoot fixtures to protected mocks - #2503
Draft
dmorosanu wants to merge 5 commits into
Draft
Conversation
dmorosanu
force-pushed
the
codex/remove-runtime-seal
branch
from
August 6, 2026 17:42
8fb5ae1 to
29c3367
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Targets the driver-independent
sandbox.protected_mocksin UiPath/coder_eval#90 (supersedes the earlier #87 docker-only dependency); merge that framework PR first.Summary
uipath-troubleshootscenarios from agent-visibledata/m/rstores to privatedata/uip-fixture.jsoncommand mapsprotected_mocksboundary (nosandbox.driverpin; the experiment config decides) and preservedocsai askonly as a narrow live passthroughseal, packed blobs, wrappers, and pre-run sealing hooks{"error": "unmocked command"}) so agent-visible output does not identify the mock servicematch_mode: subset(rule tokens must all appear in the invocation), sorted most-specific-first because subset dispatch is first-match-wins - chosen over finitenormalizedmatching based on run data (below)Security properties
uipclient shim; fixture files and mock implementation live host-side outside the agent workspacedefaultresponse[docsai, ask]can reach the real CLIValidation
driver: tempdir(5 real agent runs across activity-packages, products/orchestrator, cross-system, runtime-exceptions; 3 with docsai passthrough configured):protected_mocks/uipshim - nom/, no.store, no fixture bytes anywhere agent-visibleprotected_mock_calls.jsonlpopulated on every run (26-78 calls per task); note it requires an absolute--run-dir(relative paths break the shim-side log append - harness issue to follow up in coder_eval)skill_triggeredandllm_judgeproduce sensible scores on all runs (0.625-1.0)uip1.198.0 on PATH); no sampled agent issued adocsai ask, so the live proxy path itself is still unexercisedMatching mode: finite vs subset (resolved: subset)
Run data across the 5 sampled runs: 250
uipcalls; 128 are the skill's own telemetry/preflight (track,login status), legitimately unmocked. Of the 122 real investigation calls under finitenormalizedmatching, only 25 (20%) matched; 45 (37%) were near-misses - the recorded command plus benign extra flags agents add naturally (--output-filter,--limit,--level,--folder-key,--folder-path); 52 were genuinely unrecorded. Agents recovered by retrying bare forms, but each miss burns turns and diverges from the replayed session.The corpus was therefore regenerated with
match_mode: subset, rules sorted token-count-descending per fixture (most specific wins under first-match dispatch). Offline replay of all 379 recorded argvs from the validation runs against the regenerated fixtures, driven through the harness's own matcher: