User guide
Agent tasks: from experiment to accepted results¶
When an agent fixes a failing test, its source edits, tests, and scratch notes can all stay in staging. After the task exits, choose which files to bring back and rerun the test in the original project.
-
Prepare a task you can check¶
Complete installation and platform setup, then validate staging and review with the offline task in your first run. The demonstration needs no model account and lets you compare the host workspace with candidate files in the Session.
The steps below use
pvisor spawnto start a native Session. If your tools are in a container image, Linux also supports staged project mounts withpvisor run. After exit, apply writes selected files back to the mount source, not the whole container to the host. -
Choose execution boundaries¶
Select an executor for the tools you need, and configure file access, network egress, and credentials separately. Inspect installed controls; staged files alone do not establish network or read isolation.
Explicitly select staging when file changes need acceptance afterward:
--saferequests preset controls and stages the workspace;--stage PATHselects its storage location. Ordinary host execution writes through by default. See CLI staging and storage for writes and cleanup at each location.For a custom stage, choose a fresh directory outside the project for each task. Address subsequent commands through that path or an explicit Session identity. Sessions and storage defines the lookup scope of
last. -
Run a task with acceptance criteria¶
Open a terminal at the target project root and record existing edits:
Keep that list so you can distinguish existing edits from the agent's work. Check the tool location, credentials, and network settings in the agent setup guide, then launch the agent:
Give the agent a checkable task, such as “fix the specified failing test, run that test, and modify only related source and tests.” Wait for the task to finish and exit the agent before review. For authentication failure, nonzero tool exits, or cancellation, inspect
pvisor status lastandpvisor review last --difffirst. Incomplete records do not establish that no changes occurred; follow troubleshooting before proceeding. -
Decide after execution¶
After the task ends, check the outcome, exit code, and installed controls before reviewing net file changes. Command success does not establish that the changes satisfy the task; a nonzero exit can still leave useful candidates.
Outcome Next action What to retain Changes meet the requirements Apply selected paths; handle any remaining candidates Execution evidence and the final accepted result Some changes are useful Accept in batches, or save a file branch before cleanup Unapplied candidates and conflict baselines Execution failed or changes are unsuitable Diagnose the failure, then discard candidates or rerun Failure diagnostics and inputs needed to reproduce it Another operation changed host files Inspect and explicitly resolve the conflict Current host files and the original stage Review and apply changes covers commands, read-only inspection, and conflict recovery.
drophandles unaccepted file candidates; staging semantics defines the scope of external calls and already-applied batches.To keep a file proposal while trying another approach, check workspace fork prerequisites first. To continue CPU, RAM, and device state, choose an execution-checkpoint interface.
-
Validate and hand off results¶
Review file differences, then inspect files in the read-only task view:
The Git check applies to Git projects and checks formatting, not functionality.
inspectis read-only. Run tests that write caches or artifacts during task execution, then validate again in the target environment after acceptance.Check which changes belong in the project and which are experiment residue, including dependencies between source, tests, and configuration. Review displays file changes; you decide how to classify them. It does not certify files as safe. Accept paths that exist in your project, for example when both source and tests are needed:
Run your project's test command in the original project afterward. Partial acceptance can omit dependencies or configuration. If target-environment validation fails, inspect the unaccepted changes and retain the stage while deciding. Apply does not create a Git commit; review existing workspace edits as well.
Run
pvisor drop lastonly once you know the remaining candidates are unnecessary. If all changes were accepted, staging is already complete and no drop is needed. Drop does not undo accepted files. Use a separate stage for a new execution; to preserve a file proposal while branching, follow fork prerequisites. Workspace branching does not restore VM execution state.
Trajectory capture and replay¶
For local tasks, use trajectory capture to track model interactions and replay to rebuild supported agent histories and continue execution. The same guides support context preservation in inference and evaluation; see RL rollouts when delivering execution results to a training workflow.
Extend to parallel tasks and CI¶
Give parallel tasks separate workspaces, stages, and Session identities. Collect results with the parallel-agent workflow, then coordinate applying them to one target tree. You or your review process still determine acceptance as task volume increases.
CI workflows separate execution outcomes, artifact upload, and accepting changes. Retain failure and timeout evidence so review can decide whether to rerun, repair, or discard.
Diagnose failures with troubleshoot a Run.
When an inference service, evaluator, or trainer starts the tasks, use agent execution infrastructure to assign state and resource ownership. Both workflows share executor and capability documentation.