The hosted workspace
What the optional hosted workspace adds to the CLI, how project tokens and uploads work, and exactly when a review classification applies to a difference.
The CLI does the comparing and needs no account. The hosted workspace is an optional place to keep runs and review them: history across pull requests, an interactive view of every difference, and a record of what was judged a regression and what was intended.
You can try it on demonstration data, without an account, at parity.x1991labs.com/demo.
Parity is pre-release. Billing is not live (test mode only) and plans may change; see pricing.
#What it adds
| CLI alone | With the workspace | |
|---|---|---|
| Compare, generate scenarios, gate CI | Yes | Yes — unchanged; still done by the CLI |
| Review one run | The HTML report | The comparison workspace: filter, search, keyboard navigation, side-by-side bodies |
| History | The report files you keep | Runs per project, retained for 7 days (Free) or 90 days by default (Pro, Team) |
| Classify differences | — | Regression, intentional or nondeterministic, with notes |
| Teams | — | Shared workspaces, roles, audit history, run notification e-mails (Team, proposed) |
The workspace only ever receives reports the CLI uploads. It does not run comparisons and has no access to your environments. What is stored is described in Security and data handling.
#Projects and tokens
A project corresponds to one API (usually one repository). Uploads are authenticated with a project token:
- created in the project's settings, by a workspace admin;
- shown once, at creation — only a SHA-256 hash is stored;
- prefixed
pty_, and scoped to one thing: uploading reports to that project. It cannot read runs or change settings; - revocable at any time.
Store it as a secret in your CI system.
#Uploading
Set PARITY_TOKEN and add --upload to the comparison:
export PARITY_TOKEN=pty_…
parity compare --uploadThe report is uploaded after the comparison finishes and its link is printed. Or upload a report that already exists:
parity upload .parity/report.jsonWith the GitHub Action, pass the token as an input:
- name: Check API behaviour
uses: x1991labs/parity-action@v1
with:
baseline: http://localhost:8080
candidate: http://localhost:8081
token: ${{ secrets.PARITY_TOKEN }}Things worth knowing:
- Uploads never change the verdict. If the upload fails — no network, a revoked token, a plan limit — the CLI prints a warning and exits with the comparison's own exit code.
- A missing token is not an error.
--uploadwithoutPARITY_TOKENprints a warning and skips the upload. This is what happens for pull requests from forks, which do not receive secrets. - Uploads are idempotent. The run id is the idempotency key; sending the same report again does not create a second run.
- The report is already redacted when it leaves your machine. See redaction.
- To target a different deployment, set
PARITY_API_URLor--api-url. A token is never sent over plain HTTP to a non-local host.
Record revisions (--baseline-revision, --candidate-revision; the action does this for you) so that runs in the workspace can be tied to commits and so that reviews can be scoped.
#Review classifications
In the workspace each difference can be classified:
| Classification | Meaning |
|---|---|
| Unreviewed | Nobody has looked at it yet. The default. |
| Regression | An unintended change. |
| Intentional | A change that was meant to happen. |
| Nondeterministic | Noise: the field varies on its own. A prompt to add an ignore rule. |
On Pro, workspace admins can classify. On Team (proposed), any member can.
Classifications are a review record. They do not change the CLI's exit code or the result of a CI check; what blocks a merge is decided by the policy the CLI ran with.
#Scope
A classification is attached to one specific difference under specific conditions. It applies to a difference in a run only when all of these match exactly:
- the project;
- the scenario (its id);
- the difference (its id — a fingerprint of the step, location, path, kind and both values);
- the baseline revision;
- the candidate revision;
- the configuration fingerprint (the comparison and generation settings).
So a classification made on one run applies to a re-run of the same two revisions with the same configuration — a retried CI job, for instance — and to nothing else.
Classifications are never carried over silently. If the candidate gets a new commit, the comparison rules change, or the value at that path changes again, the difference starts as unreviewed. "This was marked intentional last week" must not be what lets a different change through.
When an earlier classification exists for the same scenario under a different scope, the workspace shows it as a hint next to the difference — what it was classified as, by whom, for which revisions — and leaves the decision to the reviewer.
#API
The ingestion endpoint and the rest of the hosted API are described in the hosted API reference.