---
title: "Workspace Layout | Speedscale Docs"
description: "Reference for the proxymock workspace directory layout — what each directory holds, when it is created, and what is safe to delete or gitignore."
canonical: "https://docs.speedscale.com/proxymock/how-it-works/workspace-layout/"
---

[Documentation index](https://docs.speedscale.com/proxymock/llms.txt) | [Markdown](https://docs.speedscale.com/proxymock/how-it-works/workspace-layout/index.md) | [Canonical page](https://docs.speedscale.com/proxymock/how-it-works/workspace-layout/)

# Workspace Layout

A proxymock **workspace** is just a directory on disk. By convention it is named `proxymock/` and sits at the root of the project you are testing, but any directory works — it is whatever you point `--in` at (which defaults to the current directory). Everything proxymock reads and writes lives under that one directory, so the workspace is portable: copy it between machines, commit parts of it to git, or push it to the cloud as a [snapshot](https://docs.speedscale.com/reference/glossary/#snapshot).

That includes everything that changes how a replay or mock behaves: blueprints, test configs, DLP and filter rules, and pulled reports are read only from the workspace, and `proxymock cloud pull` writes them into it. The Speedscale home directory (`~/.speedscale`) holds your login, the local TLS certificates, and temporary caches, but nothing in it is applied to a replay.

This page is the reference for what each directory is, when it gets created, and what is safe to remove. For how recording, replay, and mocking flow through these directories, see [Lifecycle](https://docs.speedscale.com/proxymock/how-it-works/lifecycle/).

<a id="at-a-glance"></a>

## At a glance

```text
proxymock/
├── recorded-<timestamp>/        # your recordings — the source of truth
│   └── <host>/*.md              #   one RRPair file per request/response
├── results/                     # output from replay and mock runs
│   ├── replayed-<timestamp>/    #   one dir per `proxymock replay`
│   └── mocked-<timestamp>/      #   one dir per `proxymock mock`
├── blueprints/                  # saved transform rules
├── testconfigs/                 # test configs, one <id>.json each
├── applications/                # contracts for recorded application workloads
│   └── <workload>.openapi.yaml  #   OpenAPI 3 contract for one workload
├── dlprules/                    # DLP redaction rules, one <id>.json each
├── filters/                     # filter rules, one <id>.json each
├── reports/                     # pulled report metadata and artifacts
├── dataframes/                  # payloads referenced by transforms
│   └── <id>/payload.csv
├── secrets/                     # local credentials for transforms — never commit
│   └── <name>/<key>             #   one plain file per secret value
├── .metadata/                   # snapshot configuration (transforms, tokenizer config)
│   └── snapshot.json
├── .proxymock/                  # web-UI state (backups, dismissed hints, vendored assets)
└── .replay/                     # transient replay scratch — regenerated every run
    └── .metadata/snapshot.json
```

<a id="directories-in-detail"></a>

## Directories in detail

<a id="recorded-timestamp"></a>

### `recorded-<timestamp>/`

The recordings themselves — the output of each `proxymock record` run, and where `proxymock cloud pull snapshot` drops pulled traffic. Files are [RRPair](https://docs.speedscale.com/reference/glossary/#rrpair) markdown grouped into one subdirectory per host (`recorded-<timestamp>/<host>/*.md`). This is the **source of truth** and the obvious replay source, which is why recordings sit at the top level rather than under a hidden directory. Each `record` run creates a new timestamped directory; old ones are never touched.

<a id="results"></a>

### `results/`

Output from `proxymock replay` and `proxymock mock`. Each run writes a new timestamped subdirectory — `results/replayed-<timestamp>/` or `results/mocked-<timestamp>/` — containing the RRPairs captured during that run. Keeping replay/mock output under `results/` (rather than at the top level) prevents a later `record` run, or a replay that scans the workspace, from accidentally re-feeding itself last session's output.

A `mocked-<timestamp>/` directory also holds `transform-changes.jsonl`, one line per mock hit with the transforms applied to its response, keyed by the live request's `uuid` and the recording it served as `refUuid`.

<a id="blueprints"></a>

### `blueprints/`

Saved [blueprints](https://docs.speedscale.com/proxymock/guides/blueprints/) contain transform rules (credential swaps, JWT re-signing, value substitutions, and so on) created through the web UI or CLI. Blueprints are applied as an overlay at replay time; deleting this directory loses your saved transforms but not your recordings.

`replay` and `mock` look for blueprints in the directory you pass to `--in` and in its immediate parent, under either `blueprints/` or `proxymock/blueprints/`. The walk stops at the parent, so a `blueprints/` directory two or more levels above `--in` is not found. Blueprints come only from the workspace: nothing under `~/.speedscale` is applied. To use a Speedscale Cloud transform set, pull it into the workspace with `proxymock cloud pull transform <id>`, which writes `proxymock/blueprints/<id>.json`. Every blueprint that applies is named on startup along with the file it came from:

```text
Loaded blueprint "mock-lab smart replace (token + order_id)" from proxymock/blueprints/mocklab-smart-replace.json
```

Loaded is not the same as applied. A blueprint's chains only run against traffic its filters match, and replay rewrites each request's address to whatever `--test-against` names, so a filter on `network_address` is matched against the target you pass, not the address in the recording. A chain filtered on `localhost` does nothing when you replay against `127.0.0.1`. At the end of a replay each loaded blueprint reports how many of its chains ran:

```text
Blueprint "mock-lab smart replace (token + order_id)": 2 transform chain(s) ran.
```

A blueprint that ran none is called out as a warning. Pass `--require-blueprint <name>` to turn that into a non-zero exit, which is what you want in CI. Blueprint reporting is unavailable under `--load-test`, which drops the transform events the count is derived from.

<a id="testconfigs"></a>

### `testconfigs/`

[Test configs](https://docs.speedscale.com/proxymock/guides/test-configs/) that set how a replay runs: load stages, responder replicas and resources, chaos, goals and assertions. Each file is one complete `TestConfig` as JSON, named `<id>.json`, and its `id` field (when present) must match the file name. The proxymock web editor, `proxymock test-config`, `--test-config` on every replay command, and the MCP server all read this directory. A snapshot push uploads every config in it, and a snapshot pull or `proxymock cloud pull test-config <id>` writes back into it. The built-in `regression` config has no file here.

<a id="applications"></a>

### `applications/`

Application contracts are named for the workload recorded in inbound RRPairs. Put an OpenAPI 3 contract at `applications/<workload>.openapi.yaml`, where `<workload>` matches the RRPair service (or resource when service is absent). `proxymock coverage --in <recording>` discovers the contract when the recording contains one inbound workload; pass `--workload <name>` when it contains several. A snapshot push places a versioned contract in the service workspace in Speedscale Cloud or a BYOC bucket and pins its SHA-256 digest in the snapshot. The snapshot also carries a copy for portable pulls; a pull does not overwrite a differing local contract. To add a contract to an existing snapshot, run `proxymock cloud push spec <snapshot-id> --workload <name> --spec <path>`.

<a id="dlprules-and-filters"></a>

### `dlprules/` and `filters/`

[DLP and filter rules](https://docs.speedscale.com/proxymock/guides/local-rules/), one `<id>.json` per rule. The DLP Rules and Filter Rules editors in proxymock web save here, `proxymock cloud pull dlp <id>` and `proxymock cloud pull filter <id>` write here, `proxymock cloud push dlp|filter` reads from here, and a bare rule id passed to `--dlp-config` or `--filter-config` is looked up here.

<a id="reports"></a>

### `reports/`

Reports pulled with `proxymock cloud pull report <id>`: the report metadata as `reports/<id>.json` and its artifacts under `reports/<id>/`. The report's RRPairs are expanded separately into `proxymock/report-<id>/` unless you pass `--no-out`.

<a id="dataframes"></a>

### `dataframes/`

Payloads referenced by transforms — for example the CSV a `csv_dataframe` transform draws values from, stored at `dataframes/<id>/payload.csv`. Removing a dataframe that a blueprint still references will break that transform, so treat this directory as configuration, not scratch.

<a id="secrets"></a>

### `secrets/`

Local credentials that transforms resolve at runtime via the `${{secret:name/key}}` syntax: database passwords, JWT signing keys, AWS access keys, and the like. Each secret is a plain file whose contents are the value, grouped one directory per secret (`secrets/<name>/<key>`). proxymock discovers this directory by walking up from `--in`, so transforms re-sign tokens or re-authenticate connections without hardcoding sensitive values into your recordings or blueprints. **Never commit `secrets/` to version control.** See [Secrets](https://docs.speedscale.com/proxymock/guides/secrets/) for the full reference.

<a id="metadatasnapshotjson"></a>

### `.metadata/snapshot.json`

The snapshot configuration: tokenizer configuration and the transform set that applies to the workspace. It lives at the workspace root and applies to every recording in the workspace, which is why a single-snapshot `cloud pull` writes it one level up from the `recorded-`/snapshot subdir. Replay walks parent directories to find it, so pointing `--in` at a subdirectory still picks up the transforms.

<a id="proxymock"></a>

### `.proxymock/`

Web-UI state: backups taken before destructive edits, dismissed recommendation hints, saved replay configurations, and vendored UI assets. This is bookkeeping for the `proxymock web` experience, not part of your traffic data.

<a id="replay"></a>

### `.replay/`

Transient scratch written at the start of every replay. It holds the merged blueprint overlay (`.replay/.metadata/snapshot.json`) that the replay runner layers on top of your recordings. It is regenerated from `blueprints/` and `.metadata/` on every run, so it is always safe to delete. (Workspaces created before this directory was renamed may still have a `.proxymock-replay/`; it is the same thing and equally safe to remove.)

<a id="what-is-safe-to-delete"></a>

## What is safe to delete

| Path | Safe to delete? | What you lose |
| --- | --- | --- |
| `.replay/` | **Yes** | Nothing; regenerated on the next replay |
| `results/` | **Yes** | Previous replay/mock output (re-created on the next run) |
| `.proxymock/` | Mostly | Web-UI convenience state (backups, dismissed hints) |
| `recorded-<timestamp>/` | **No** | Your recordings, the source of truth |
| `.metadata/`, `blueprints/`, `dataframes/` | **No** | Transform and snapshot configuration |
| `testconfigs/`, `dlprules/`, `filters/` | **No** | Test configs and rules you authored or pulled |
| `applications/` | **No** | Application contracts you authored or pulled |
| `reports/` | Yes, if you can pull them again | Pulled report metadata and artifacts |
| `secrets/` | **No** | Your local credentials (not regenerable, not committed) |

The quickest way to prune everything proxymock can regenerate (`results/` and `.replay/`) while keeping your recordings and transforms is:

```shell
proxymock clean
```

It removes only the regenerable directories (and the legacy `.proxymock-replay/`), never your recordings or transform config. Pass `--dry-run` to preview, `--cache` to also clear `.proxymock/`, or `--in <dir>` to target a specific workspace.

<a id="recommended-gitignore"></a>

## Recommended `.gitignore`

If you commit a workspace to version control, keep the recordings and transform configuration but ignore the regenerable and machine-local directories — and always ignore `secrets/`, which holds plaintext credentials:

```gitignore
# proxymock — regenerable / machine-local
proxymock/results/
proxymock/.replay/
proxymock/.proxymock/

# proxymock — secrets (never commit credentials)
proxymock/secrets/
```

<a id="keeping-the-workspace-tidy"></a>

## Keeping the workspace tidy

A few habits keep the workspace clean:

*   **`replay` and `mock` output follows `--in`.** Their default output location is anchored to the workspace your input comes from, so it lands in the same place regardless of which directory you launch from. `record` (which has no `--in`) anchors to an existing `proxymock/` at or above the current directory — run it from the same place each time, or pass `--out`, to avoid creating a second workspace under a different directory.
*   **Use `--out` in scripts and CI** when you want output in a specific, fixed location.
*   **Run `proxymock clean` periodically** to clear regenerable output and scratch.
*   **Sync recordings, not results.** When copying a workspace between machines or to cloud storage, exclude `results/` and the hidden scratch directories; they regenerate on the destination. See [Swapping credentials for replay](https://docs.speedscale.com/proxymock/guides/credentials-swap/) for concrete `aws s3 sync` / `gcloud storage rsync` examples.
