Context
Paragon Ultimate Tester is a free testing tool for Python projects. It brings twelve testing methods together behind one calm page, and each method uses an open-source tool that already does its job well, such as Hypothesis, CrossHair, mutmut, coverage.py, mypy and Ruff.
Each of those tools has to be installed somewhere, and most of them run the project's own code: its tests, or its functions called one by one. Where that happens decides two things: what a tool can change on the user's computer, and whether the same run gives the same result next time.
This record captures where Paragon runs each method.
Problem
The usual way to use these tools is to install each one into the project's own environment and run it from there. That changes the user's Python setup. Each tool brings its own dependencies, and one can replace a version the project relies on. A project can also pin its own version of a tool, so the same method could give different results on two computers, with nothing in the report to say why.
Running the project's code is the other half. Mutation testing changes source code on purpose, to see whether the tests notice. A test can write files, open network connections or start other programs. If that happens in the user's own folder, the user's work can change while Paragon is reporting on it.
We need a clear boundary between the user's project and Python setup and the place where Paragon runs the tools.
Decision
Every testing method will run in a private workbench: a fresh scratch copy of the project, plus a private environment built with uv inside Paragon's own data folder. The user's project folder and Python setup are only ever read.
The scratch copy. Each run starts with a fresh copy of the project, made byte for byte. When the folder is a git repository, Paragon asks git for the file list with git ls-files, which only reads the repository, so the project's ignore rules still apply. Folders such as .git, virtual environments and caches are left out. The copy is deleted when the run ends, and only one run goes at a time.
The private environment. Each environment is built for one tool, with uv, in Paragon's data folder. uv installs the project from the copy, the project's test needs when the method needs them, and the tool at the version Paragon pins. An override file makes Paragon's pin win even when the project asks for another version. uv's cache sits in the same data folder, and the user's own active environment is never picked up.
Reuse, not rebuild. An environment is built on its first run and reused after that. It is built again only when something it was built from changes: the project's dependency files, which are hashed, the tool's pinned version, the Python it uses, or Paragon's own version. A run whose environment is ready does not wait for setup.
The guard rails. Paragon places its guard rails inside each environment that runs the project's code, and a .pth line loads them at the start of every Python process there, helper processes included. While the project's own tests run, network connections that leave the computer are stopped, and connections to the computer itself still work. Temporary files go to a folder inside the workbench, and the shell's own PYTHONPATH and PYTEST_ADDOPTS are left out. When Paragon calls the project's functions itself, the rules are stricter: file writes stay in memory, every network connection is stopped, and starting other programs is stopped.
Nothing stopped in silence. Every stop is written to a log inside the workbench. Paragon reads it back, and the report lists each test or function the guard rails stopped, with the reason. A test that needed the internet is left out of the results and never counted as a problem with the user's code.
user's project folder → read only: git ls-files, then a byte-for-byte copy
↓
workbench in Paragon's data folder
· scratch copy of the project, fresh for each run
· private environment (uv): the project, its test needs, one pinned tool
· guard rails loaded in every Python process
↓
the method runs → a plain-English report, with everything not checked and why
What the guard rails cannot do. The workbench is not a security sandbox. The guard rails lower the risk, but code written in C, and programs that are not Python, can get around them. One gap remains in Python too: a way to start programs that the code keeps somewhere else, such as inside a list, can still start programs while Paragon calls it. Paragon should run on a copy of a project, never on a live system, and its README says so.
Alternatives Considered
Install the Tools Into the User's Own Environment
Rejected.
This is how each tool is usually set up, and it needs no copy and no second environment. But every method would change the user's Python setup, and Paragon pins eleven tools, each with its own dependencies. A tool's version would be whatever the project or the last install left there, so the same method could give different results on two computers. The project's code would also run in the user's real folder.
Build a Throwaway Environment for Every Run
Rejected.
A new environment for each run would always be clean, but every run would wait for uv to install the project, its test needs and the tool before the method could start. Rebuilding on change gives the same freshness: an environment is built again as soon as anything it was built from changes, and reused while nothing has. The scratch copy is still fresh for every run.
Consequences
Positive
The user's project folder and Python setup are only ever read. A method can change the copy as much as it needs to, and the copy is deleted when the run ends.
Every tool runs at the version Paragon pins, and every report names it. Updating a tool means a new Paragon release, so a tool's new version never changes results silently.
Tools never meet each other's dependencies: each environment holds the project and one tool, with the few packages that tool needs beside it.
A run whose environment is ready does not wait for setup.
Whatever the guard rails stopped is in the report, so nothing is left out silently.
Everything Paragon makes lives in one data folder, and
--data-dirorPARAGON_HOMEcan place it somewhere else, for example on an encrypted drive.
Trade-offs
The first run of each method waits while uv builds its environment, and uv downloads the packages it needs from the internet.
Environments take disk space in the data folder.
paragon cleandeletes the workbenches and the download cache after showing their size, and the next run builds what it needs again.The copy never holds the
.gitfolder, so a project that reads its version from git is built with a stand-in version.A project's own pin of a tool is set aside, so a result can differ from what the project sees with its own version. The report names the version Paragon used.
A test that needs the internet cannot pass under the guard rails. It is listed in the report and left out of the results.
The guard rails are not a security sandbox. Code written in C and programs that are not Python can get around them, so Paragon belongs on a copy of a project, never on a live system.
Evidence & Related Work
This decision is implemented in Paragon Ultimate Tester, version 1.0.0.
Implementation Evidence
The Workbench
Makes the fresh scratch copy, builds or reuses each tool's private environment with uv, pins each tool with an override file, and places the guard rails inside the environment.
The Guard Rails
Loaded in every Python process of a workbench environment. Stops network connections that leave the computer while tests run, and in its stricter mode keeps file writes in memory and stops other programs from starting.
The Refusal Notes
Reads the guard rails' log and turns each stop into a plain note in the report, so nothing is refused silently.
How Paragon Is Built
The design at a glance: the helper, the page and the workbench, with the user's project folder only ever read.
Distribution
Published on PyPI. The code and the page are open source under the MIT License, and the package installs with pip install paragon-ultimate-tester.
Relationship to the Broader Engineering Approach
This ADR is part of a broader engineering principle:
Software should never fail a person in silence.
That is the No Silent Failure standard, and Paragon follows it: whatever it could not check, the report says so, and why. The workbench carries the same standard to where a method runs. A tool that changed the user's setup, or ran at a version nobody chose, would change results with nothing in the report to say so. Running every method on a copy, at a pinned version, with every stop written down, keeps the report true to what was checked.
The page gets the same care. At start, Paragon fetches the newest page from GitLab Pages and serves it only when its Ed25519 signature and every file's hash check out. Otherwise it serves the copy installed with the package and says why. Neither the project nor the page changes in silence: the project is only ever read, and a page update is used only when its signature shows where it came from.
Decision Outcome
The private workbench is considered part of Paragon's architectural boundary.
Future methods should preserve this principle where practical:
The user's project, only read → a fresh scratch copy → a private environment with one pinned tool → guard rails → a report that names every tool version and everything not checked
rather than:
The user's project → tools installed into the user's own environment → results no one can repeat
This ADR should be revisited if a method needs a tool that cannot run in a uv environment, if building an environment becomes fast enough to do for every run, or if a sandbox that also covers C code and other programs becomes practical to ship with a free Python tool.