> ## Documentation Index
> Fetch the complete documentation index at: https://developers.askparable.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Artifacts

> Upload files and publish them as tables at artifacts.{namespace}.{table}, one file at a time or as a complete dataset. A Parable's data files become tables with no publish step.

The **artifacts** pool holds files as tables. A table comes from a file that
your Workspace published, or from a data file of a Parable. A published table
sits next to Provider data. You can query it, join it from a Plot, or join it
in an ad hoc query.

```
artifacts.{namespace}.{table}
```

A table reaches this pool in one of three ways:

| Way | Namespace | Use it for |
| - | - | - |
| [One file at a time](#publish-one-file-as-a-table) | `public` | A CSV file that a person or a script uploads, such as a headcount plan. |
| [A complete dataset](#publish-a-complete-dataset) | Your own, such as `finance` | Several tables that must change together, from CSV or Arrow. Each change is a new revision, and readers see it only after you activate it. |
| [A Parable's data file](#data-files-become-tables) | `parable_` and the Parable's SQL name, such as `parable_perceptions` | A CSV, Parquet, or JSON Lines file that a person adds to a Parable. It becomes a table with no publish step. Only SQL in that Parable reads it. |

`artifacts.headcount` is a short form of `artifacts.public.headcount`. The
short form never searches other namespaces. For a table in another namespace,
use the address that [catalog discovery](https://developers.askparable.com/data.md#the-catalog) returns. Folders
only organize files in the app. They do not change a table's SQL address.

```sql theme={null}
SELECT *
FROM artifacts.public.headcount
LIMIT 10
```

To query this pool, you need the Data Access or Workspace Administrator
role. Provider Policies do not apply to Artifact tables. The namespace of a
Parable is different. Only SQL in that Parable reads it, whatever your role
([Who reads a Parable's tables](#who-reads-a-parables-tables)).

## Permissions

An operation that changes something, such as an upload or a publication,
needs a Parable token. An MCP token can only list, read, preview, and browse
files, and only while the Workspace allows external agents.

| Permission | Operations |
| - | - |
| `tenant.artifacts.view` | List, read, preview, and browse files. Read a publication's progress. |
| `tenant.artifacts.upload` | Upload files. Infer or replace a schema. Rename or move a file. Reserve and finalize a publication. |
| `tenant.connectors.taps.write` | Publish and unpublish a file. Activate a publication revision, together with `tenant.artifacts.view`. |
| `tenant.artifacts.delete` | Delete files and folders. Remove a publication revision. Delete a publication. |

The Workspace Administrator role holds all of them.

## Publish one file as a table

1. Upload the file.
2. Review the schema. Parable saves an all-`String` schema at upload.
3. Optional: infer column types, or replace the schema yourself.
4. Publish the file with a table name.
5. Wait until the publication work succeeds. The table is queryable only
   after that.

### Upload a file

An upload has three requests. The file's bytes go straight to storage, not
through the Workspace API.

**1. Reserve the upload**

`requestId` is a new UUID. `fileSize` is the exact size in bytes.

```bash theme={null}
REQUEST_ID=$(uuidgen | tr 'A-Z' 'a-z')
FILE_SIZE=$(wc -c < headcount.csv | tr -d ' ')

curl -X POST "$PARABLE_API_URL/api/artifacts/uploads/actions/prepare" \
  -H "Authorization: Bearer $PARABLE_API_TOKEN" \
  -H "X-Tenant: $PARABLE_WORKSPACE" \
  -H "Content-Type: application/json" \
  -d "{
    \"requestId\": \"$REQUEST_ID\",
    \"fileName\": \"headcount.csv\",
    \"fileSize\": $FILE_SIZE,
    \"contentType\": \"text/csv\",
    \"attributedConnectorId\": null,
    \"path\": null
  }"
```

```json Response (shortened) theme={null}
{
  "data": {
    "artifact": { "id": "4fQ9zR2mKx8TvB1nC7pLd", "uploadStatus": "pending" },
    "uploadUrl": "https://storage.googleapis.com/...",
    "requiredHeaders": [
      { "name": "Content-Type", "value": "application/octet-stream" },
      { "name": "x-goog-if-generation-match", "value": "0" }
    ],
    "expiresAt": "2026-10-21T15:15:00Z"
  },
  "meta": { "requestId": "..." }
}
```

`path` places the file in a folder of the app. Send the same `requestId`
again to get the same reservation back, with a new URL.

**2. Send the file to the upload URL**

Send a `PUT` with every header in `requiredHeaders`, and the file as the
body:

```bash theme={null}
curl -X PUT "$UPLOAD_URL" \
  -H "Content-Type: application/octet-stream" \
  -H "x-goog-if-generation-match: 0" \
  --data-binary @headcount.csv
```

The URL works for 15 minutes. It accepts one file, of exactly the
reserved size, with those headers. It cannot replace a file. After it
expires, reserve the upload again.

**3. Complete the upload**

```bash theme={null}
curl -X POST "$PARABLE_API_URL/api/artifacts/uploads/actions/complete" \
  -H "Authorization: Bearer $PARABLE_API_TOKEN" \
  -H "X-Tenant: $PARABLE_WORKSPACE" \
  -H "Content-Type: application/json" \
  -d "{ \"artifactId\": \"$ARTIFACT_ID\" }"
```

Parable checks the stored file, saves a sample, and saves an
all-`String` schema. Read the file with `GET /api/artifacts/{artifactId}`
until its `uploadStatus` is `ready`.

### Upload limits

A file can be as large as the `ARTIFACT_MAX_BYTES` setting, which is 1 GiB by
default. The setting exists because of storage cost, and because the worker
reads the whole file to disk before it checks it. A Workspace upload accepts
`.csv`, `.xlsx`, `.xls`, `.numbers`, `.ods`, and `.zip` files. Only a CSV file
supports preview, schema inference, and publication. Other formats stay as
stored files.

| Error | Meaning |
| - | - |
| `400` | The file type is not accepted, or the size is not between 1 byte and `ARTIFACT_MAX_BYTES`. |
| `409` | The `requestId` was used for a different file, or its reservation finished, was cancelled, or expired. Use a new `requestId`. |
| `409` with `WA-AF-018` | Your Workspace's storage is not ready for direct uploads. Contact your Parable representative. |

### Manage files and publish

| Action | Operation |
| - | - |
| Reserve an upload | `POST /api/artifacts/uploads/actions/prepare` |
| Complete an upload | `POST /api/artifacts/uploads/actions/complete` |
| List uploaded files | `GET /api/artifacts/artifacts` |
| Read one file | `GET /api/artifacts/{artifactId}` |
| Preview the first rows | `GET /api/artifacts/{artifactId}/data-preview` |
| Browse files and folders | `GET /api/artifacts/browse` |
| Infer the schema | `POST /api/artifacts/run-artifact-schema-inference` |
| Replace the schema | `POST /api/artifacts/update-artifact-data-schema` |
| Publish as a table | `POST /api/artifacts/publish-artifact` |
| Unpublish | `POST /api/artifacts/unpublish-artifact` |
| Rename or move | `PATCH /api/artifacts/{id}` |
| Delete a file | `DELETE /api/artifacts/{artifactId}` |
| Delete a folder | `DELETE /api/artifacts/folder` |

Publish an uploaded file as `artifacts.public.headcount`. `ARTIFACT_ID` is
the file's ID. `requestId` is a new UUID for each new publication:

```bash theme={null}
REQUEST_ID=$(uuidgen | tr 'A-Z' 'a-z')

curl -X POST "$PARABLE_API_URL/api/artifacts/publish-artifact" \
  -H "Authorization: Bearer $PARABLE_API_TOKEN" \
  -H "X-Tenant: $PARABLE_WORKSPACE" \
  -H "Content-Type: application/json" \
  -d "{
    \"requestId\": \"$REQUEST_ID\",
    \"artifactId\": \"$ARTIFACT_ID\",
    \"name\": null,
    \"tableName\": \"headcount\",
    \"description\": \"2027 headcount plan\"
  }"
```

The response is the publication work. Read the file with
`GET /api/artifacts/{artifactId}` until `data.publishWork.state` is
`SUCCEEDED`. A `FAILED` state has an `errorCode` and an `errorMessage`. A
value that does not convert to the reviewed schema fails the publication.
Correct the schema or the file, then publish again.

If you send the same `requestId` with the same input again, you get the
existing work back.

Unpublish removes the table from SQL and keeps the stored file. Delete hides
the file and then removes its stored data. If a file is published, unpublish
it before you delete it.

The [API Reference](https://developers.askparable.com/api-reference/overview.md) has the request and response of
each operation.

### Schema inference and the model policy

Schema inference sends the CSV header row and up to five data rows to the
model that the Workspace's model policy chooses. It saves the column types
that the model proposes.

When the policy allows no AI processor for schema inference, Parable sends
nothing. The call still succeeds. The file's `schemaInferenceStatus` becomes
`skipped_by_policy`, and the file keeps its all-`String` schema. Replace that
schema yourself, then publish.

## Publish a complete dataset

A **publication** puts several tables into one namespace of your own, such as
`artifacts.finance.*`, and changes them together. Each version of the dataset
is a **revision**. Readers keep reading the active revision until every table
of a new revision is ingested and you activate it. A failed replacement
therefore leaves the previous dataset in place.

| Term | Meaning |
| - | - |
| Namespace | The schema `artifacts.{namespace}`. You choose its ID (a UUID) and its slug. `public` is reserved for single files. A new namespace whose slug starts with `parable_` is refused, because those namespaces hold [the files of a Parable](#data-files-become-tables). A dataset that [already holds such a namespace](#a-dataset-that-already-holds-the-namespace) keeps it and takes new revisions. |
| Revision | One complete set of tables. You choose its ID (a UUID). Its state is `STAGING`, `FAILED`, or `READY`. |
| Active revision | The revision that SQL reads. |

1. **Reserve.** `POST /api/artifact-publications/actions/reserve` declares
   every table of the revision: its `name`, `rowCount`, `sizeBytes`,
   `inputSha256`, and `inputFormat` (`CSV` or `ARROW_IPC_STREAM`). Send
   `expectedBaseRevisionId`, the namespace's active revision, or `null` for a
   new namespace. A table whose name, hash, and row count match the base
   revision reuses its stored data and gets no upload.
2. **Upload.** The response has one entry in `uploads` for each table that
   needs data: an upload URL and the headers to send, as for a
   [single file](#upload-a-file).
3. **Finalize.** `POST /api/artifact-publications/actions/finalize` starts
   the analysis and the ingest of each table. Read the progress with
   `POST /api/artifact-publications/receipt`. Each table's `outputSchema`
   appears there when Parable has derived it.
4. **Activate.** When every table is ingested, call
   `POST /api/artifact-publications/actions/activate`. Parable switches the
   namespace to the new revision in one transaction.

```bash theme={null}
curl -X POST "$PARABLE_API_URL/api/artifact-publications/actions/reserve" \
  -H "Authorization: Bearer $PARABLE_API_TOKEN" \
  -H "X-Tenant: $PARABLE_WORKSPACE" \
  -H "Content-Type: application/json" \
  -d '{
    "namespaceId": "0b8f3c52-6a1e-4f7d-9c2b-5e4a1d3f7b90",
    "namespaceSlug": "finance",
    "revisionId": "7d2e9a41-3b6c-4e8f-a1d5-2c9b0f6e4a37",
    "expectedBaseRevisionId": null,
    "tables": [
      {
        "name": "budgets",
        "rowCount": 1200,
        "sizeBytes": 48211,
        "inputSha256": "9f2c...",
        "inputFormat": "ARROW_IPC_STREAM"
      }
    ]
  }'
```

Rules for a revision:

* It holds 1 to 256 tables, each with a unique name, and each input from
  1 byte to 1 GiB.
* A CSV table gets all-`String` columns. Send an Arrow IPC stream for typed
  columns. Parable converts some Arrow types before it stores them: UTC and
  time-zone-free timestamps become microsecond timestamps, read as UTC.
  `UInt32` becomes `Int64`. Large and view strings become UTF-8. Other time
  zones, values that would overflow or lose sub-microsecond precision, and
  types that Parable cannot store fail the upload.
* To retry unchanged inputs that failed, finalize again with
  `"retryFailed": true`. A corrected input needs a new revision ID.
* Activation fails when the active revision is no longer the base revision
  that you reserved against.

A namespace keeps its active revision, the revision before it, and every
staged or failed revision until you remove it. To roll back, activate the
previous revision and send the current active revision in
`expectedActiveRevisionId`.

| Action | Operation |
| - | - |
| Remove a staged or failed revision that is not active | `POST /api/artifact-publications/actions/remove-revision` |
| Delete the namespace and all its revisions | `POST /api/artifact-publications/actions/delete` |

### Read a revision that is not active

A Flight SQL request can read another revision of a namespace, such as a
staged revision that waits for review, or one revision pinned across several
queries. Name it in the request metadata:

```text theme={null}
x-parable-artifact-revisions: <namespace ID>:<revision ID>, <namespace ID>:<revision ID>
```

For that request, each named namespace reads the selected revision. Other
namespaces keep their active revision.

* Name each namespace once, and at most 64 namespaces.
* The header grants nothing. You still need access to the artifacts pool.
* A revision that your Workspace does not list fails as not found.
* A prepared statement runs only under the selection that it was prepared
  with. To change the selection, prepare the statement again.

A malformed header fails with `INVALID_ARGUMENT`.

## Parable files

A Parable has its own files, which people add at the top of its Piece tree.
These files belong to one Parable in one Workspace. The Workspace's
**Artifacts** page does not list them. Another Parable and another Workspace
cannot read them. A data file also becomes a table in the **artifacts** pool,
and only SQL in its Parable reads that table
([Data files become tables](#data-files-become-tables)). Access follows the
caller's seat on the Parable: a seat that can view the Parable can read its
files, and a seat that can edit it can add, rename, and delete them.

A Pocketed Parable keeps its files read-only, as it keeps its Pieces. People
and Ponder can read and download them, but every change (an upload, a rename,
a family rename, a delete and a restore) gets the code a Piece save on a
Pocketed Parable gets, `PRIMARY_ARCHIVED`, with "Restore it to change
them." The rule reads both archives: the Workspace's line and the
Parable. An upload and a restore hold both rows `FOR SHARE` in their
transaction, so a Pocket that comes after the seat check still stops them.
Ponder's read callback says `canEdit: false` with the same sentence, so
Ponder draws no upload card that the person cannot answer.

A Parable accepts these formats. The allowlist is part of the platform
schema, so the API, the app, and the worker read the same list.

| Kind | Formats |
| - | - |
| Image | PNG, JPEG, GIF, WebP, AVIF, HEIC, HEIF, JPEG XL, SVG |
| Video | MP4, M4V, MOV, WebM |
| Font | TTF, OTF, WOFF, WOFF2 |
| Design | Figma `.fig`, FigJam `.jam` |
| Data | CSV, Parquet, JSON Lines (`.jsonl`), gzipped JSON Lines (`.jsonl.gz`) |

The worker checks each file before it is ready. The bytes must be the format
that the name declares. A PNG that is named `.jpg` becomes a PNG, but an HTML
file that is named `.png` fails. An SVG must have no script, no event
attribute, and no outside address. A Pane can put an SVG's markup into its
page, where the browser reads it as HTML, not XML. The two parsers end a
comment, a CDATA section, a declaration, a DOCTYPE and a name at different
characters. So the check also refuses a `<` or `>` in a comment, a
declaration or a DOCTYPE, a comment with `--` or with a `-` at either end, a
`<` in a CDATA section or an attribute value, an element inside a `title` or
`desc`, and a name with a character that is not a letter, a digit, `-`, `_`,
`.` or `:`. The HTML parser also ignores `xmlns`, so an editor or metadata
element must have a prefix (`inkscape:grid`, `rdf:RDF`): without one, a `p` or
a `style` would become an HTML element. The worker reads the size of an image
or a video, the duration, frame size, and codec of a video (MP4, MOV, and WebM),
the names, weights, and axes of a font, the thumbnail of a Figma file, and the
columns, column types, and sample rows of a data file. In the check, a Parquet
column keeps its own type. A JSON Lines column takes the type that its sampled
values share, and the check stores a CSV column as text. The preview and
Ponder's `viewArtifact` show a CSV column with the type that its sampled values
share, through one module (`@parable/plots-data/artifact-columns`), so a person
and Ponder read the same types. The table that a Parable's data file becomes
reads the whole file, so its column types can differ from the sample's
([Column types](#column-types)). When the table is ready, the preview and
`viewArtifact` show each column with the table's type.

The worker counts the rows of a CSV file and reads the row count that a Parquet
file states. It gives a JSON Lines file no row count. Parable counts the rows
of a JSON Lines sample instead, when the sample holds the whole file. The
sample holds the whole file when the file has fewer than 500 rows, in at most
1 MiB. So the facts, the hover card, and the preview give the same number. A
larger JSON Lines file has no row count.

In the check, every decompressed read stops at `ARTIFACT_DECODE_BUDGET_BYTES`
(128 MiB by default), because the uploader writes the sizes in a file's
headers.
A Parquet page decompresses whole, so the worker reads the page headers of the
first row group first. It adds the dictionary page and the largest data page
of each column that the first 500 rows need, and a file whose total is larger
than the budget fails with "This file is too large to check." A GZIP or Brotli
page is decoded once to one byte past its declared size before the reader
holds it. The retired LZ4 codec is refused, because its reader ignores the
declared size. The sample decodes one row at a time, so a large value stops
the sample at its 1 MiB bound.

A Figma file's thumbnail is a preview. The worker keeps it only when it is a
whole PNG whose IHDR gives 1 to `ARTIFACT_THUMBNAIL_MAX_SIDE` pixels a side
(4,096 by default) and whose size is at most `ARTIFACT_THUMBNAIL_MAX_BYTES`
(3,932,160 bytes by default, which is 5 MB of base64, the most that a model
reads in one image). It does not keep any other thumbnail, and the file still
passes with no thumbnail. The bounds exist because the header sizes come from
the uploader: Ponder sends the thumbnail to the model, and a browser that shows
it decodes every pixel.

A download is a signed URL that works for `ARTIFACT_DOWNLOAD_URL_TTL` (5
minutes by default). It names the file's checked type and always downloads as
an attachment, so a browser never runs a file as a page. The UI offers Undo
for 5 minutes by default. This deadline does not remove bytes or end the
ability to restore an eligible file. A file is not versioned. Its bytes never
change, and a rename changes only its name.

When Parable staff delete a composed Parable, its files in every Workspace
leave discovery in the same transaction. Their bytes remain retained. A
Pocketed composed Parable keeps its files read-only. An upload or restore
that starts after the composed Parable is deleted gets "not found".

An upload URL works for 15 minutes. While a file has not arrived, the list
gives `uploadExpiresAt`, the time its URL stops working. A file that is still
not sent `ARTIFACT_UNFINISHED_UPLOAD_TTL` (24 hours by default) after that time
is hidden while its staged bytes remain retained. The wait is long because an upload that
starts before the URL ends can continue on a slow connection.

A Pane shows a Parable file by its id with `ArtifactImage` and
`ArtifactVideo`, and a Palette names an uploaded font by its CSS name. A Pane
gets the bytes from the Parable page as a Blob. It never gets a storage
address. Pane code can also list and read the Parable's files of every kind,
and add a file, with the `files` module ([Files in Pane code](#files-in-pane-code)).

The page adds no uploaded family whose name is the type that Parable gives
every frame, such as PP Fraktion Sans, and it sends the frame the list of those
names. Names compare as CSS compares them, without ASCII case, so a font whose
name table says `pp fraktion sans` cannot replace Parable's type. The frame
reserves only the names on that list. A Palette's own `@font-face` for an
uploaded family does not stop the uploaded faces from loading.

The frame first asks for the faces with no bytes (`artifacts.fonts` with
`families: []`). It then asks for the bytes of only the families that its CSS
names, in a style rule or a style attribute, and again each time its CSS
changes while an uploaded family is not added. A family that no Palette names
costs no signed URL and no download.

A file that is not available, and a file that the browser cannot decode, such
as a HEIC photo in Chrome, draw the fallback. The fallback sits in an element
with `display: contents` that carries `data-artifact-missing` (the id as the
Pane wrote it) and `data-artifact-reason` (`unavailable` or `undecodable`).

Ponder's `previewPane` picture draws the same files. The capture page has no
session, so it asks ponder-api through the camera's request route. ponder-api
lists the checked files of the turn's Parable with the author's seat
(`listParableProblemMessageArtifacts`), keeps the images, video, and fonts, and
serves the bytes of a kept file only. The same list stops
`requestArtifactUpload` from asking for files the Parable already has: when
files of the asked kinds are there, it draws no card and names them. A file whose base64 does not fit in one route answer (8 MiB)
draws its fallback. A Pane of another Parable draws its fallbacks. The camera
also reads the fallback marks in the Page frame, so a wrong id or a file name,
which never reaches the request route, is named in the picture's summary under
`drawnAsFallbacks`, and a file the browser could not decode is named with the
formats to ask for instead.

Agents reach a Parable's files through two operations:
`view_parable_artifact` and `create_parable_artifact`. Ponder's `viewArtifact`
and `createArtifact` call them, and the hosted MCP endpoint serves them, so one
implementation serves both. Each applies the seat rule above, and each keeps
the `@requirePermission` of the Parable file operations. web-api reads and
writes the bytes itself, through the same signed URLs that a browser gets. A
signed URL stays in web-api: it is never in an answer, an error, or a log line.

`view_parable_artifact` answers the file's details and what can be shown of it:
a picture as base64, an SVG's markup, or a data file's columns and sample rows.
The answer's text and rows are fewer than 40,000 characters, and `omitted` says
what was left out. A picture is at most 3,932,160 bytes, which is 5 MiB of
base64, the most that a model reads in one image. A read in a Message stores
nothing, so its answer can pass the 4 MiB limit on a stored tool result. A Run
stores what it reads, so a Run's answer holds no picture. One web-api pod reads
8 pictures at a time. Until the worker's check ends, `status` is `checking`. It
never writes: `data:read` is its scope.

`create_parable_artifact` stores SVG, CSV, and JSON Lines text, the types that
the allowlist marks `writableAsText`. It reserves the upload with the same code
as a person's upload, sends the bytes, queues the same check, and answers
`checking`. Its upload request ID comes from the `idempotencyKey`, the name, and
the text, so a repeated call finds its file and stores no second one. A call
that stopped before its check goes on from its reservation. In Ponder, web-api
makes the key from the Message and the arguments, and it keeps the
operation's receipt, so a repeat in one Message is the same call. A new Message
stores a new file, with a number in its name when the name is taken.

When storage does not answer, web-api sends the bytes once more. If that also
fails, the call answers `503` and nothing is in Artifacts. An MCP host can repeat
the call with the same key, and it goes on from the reservation. In Ponder, the
receipt keeps that answer for the rest of the Message, and later edits still run,
so the person asks for the file again in a new Message.

An approved `viewArtifact` runs as `viewArtifact`, so the model sees the picture.
An approved `createArtifact` runs as the operation and answers `checking`.
`createArtifact` waits for the check only when the view runs without an approval.

The file carries `madeByPonder`, whichever agent made it. When the check refuses
such a file, the worker's completion removes it in the same transaction, with
no undo. The person never sees a refusal written for an upload they did not
make, and the agent's corrected file keeps the name. `view_parable_artifact`
still answers `failed` for its id, with the reason.

### Fonts a Platform Parable's Release brings

A Platform Parable can give every Parable a shared stylesheet (the
`parable.styles` place, [The shared stylesheet of a Platform Parable](https://developers.askparable.com/ponder/parables/pieces/palettes#the-shared-stylesheet-of-a-platform-parable)).
That stylesheet can name fonts that were uploaded to the Platform Parable in
the Workspace that makes it, by their CSS name, for example
`--typography-font-family-sans: "Acme Sans", sans-serif`.

Each Delivery of the Platform Parable's Release copies those font files into
the Workspace it reaches:

* Only a Platform Parable's files travel, only fonts, and only the fonts its
  stylesheet names. A font that the stylesheet stops naming is not copied
  again. Images, video, data files and every other upload stay in their
  Workspace.
* The copy is a file of the Workspace's copy of the Platform Parable, and its
  bytes are in that Workspace's own bucket. It has no uploader, because nobody
  in that Workspace uploaded it. The list shows "Uploaded by a Release".
* A Workspace gets one copy of each font file. A later Release that names the
  same font copies nothing. A copy that failed is copied again by the next
  Delivery.
* The worker copies the exact bytes it checked in the Workspace that makes
  the Platform Parable, and checks the copy again as a font.

Every Parable of a Workspace where the Platform Parable is Visible loads these
fonts, the way it loads its own: the frame asks for the families its CSS
names, the shared stylesheet included. A Parable's own font of the same family
wins. Where the Platform Parable is not Visible, no Parable gets its
stylesheet or its fonts, and a request for one of its fonts is not found.

#### Decision record: how the fonts reach other Workspaces

Decided on 2026-10-27 for PARABLE-8478, before the code, because the fonts are
data that leaves the Workspace that makes the Platform Parable.

| Option | What it means | Why not, or why |
| - | - | - |
| A. Copy the font files with each Delivery, into each Workspace's own bucket (chosen) | The Delivery that brings the Release's Pieces also captures one copy per named font. | Each Workspace keeps its files in its own bucket, as today. No read crosses a Workspace when a Page loads. The copy is captured in the Delivery's transaction, so it uses the platform's existing artifact worker and its retries. The cost is one copy of each named font in each Workspace. |
| B. Let every Workspace read the fonts in the bucket of the Workspace that makes the Platform Parable | One copy, read across Workspaces on every font load. | It breaks the rule that a Workspace reads only its own bucket, and it adds a cross-Workspace read to every Page load. |
| C. Keep platform fonts in a shared platform bucket | Upload into a bucket that no Workspace owns. | It adds a second storage home and a second upload path for one kind of file. |

## Join a published table

A published table joins other pools like any other table. This query joins a
headcount plan to Provider directory data on a compatible email column:

```sql theme={null}
SELECT
  plan.email,
  plan.target_department,
  directory.orgunitpath,
  directory.isadmin
FROM artifacts.public.headcount AS plan
LEFT JOIN providers.google.users AS directory
  ON directory.primaryemail = plan.email
```

Read the published schema from the [catalog](https://developers.askparable.com/data.md#the-catalog). Do not infer
it from the source file. [Query the pools](https://developers.askparable.com/data.md#query-the-pools) has the
Flight SQL clients for each language.

A Report run reads an Artifact table at the last version published before the
run's AS OF time. A publication while the run waits is not part of that run.

## Files in a composed Parable

A composed Parable keeps its files in one Workspace. A different composed
Parable or Workspace cannot read those files, except the fonts that a Platform
Parable's shared stylesheet names
([Fonts a Platform Parable's Release brings](#fonts-a-platform-parables-release-brings)).
The Workspace's **Artifacts** page does not list them. A data file's table is in
the **artifacts** pool, in the namespace of the Parable, and only SQL in that
Parable reads it.

Each composed Parable can retain 1,000 files by default. Unfinished and
soft-deleted files count because their bytes remain stored. The platform
setting `ARTIFACT_MAX_FILES_PER_PARABLE` controls this bound. A new upload
that would exceed it is refused. A retry keeps its existing reservation.
Restore uses no new place because the file is already retained.

Files are shared by every Release and Problem of the composed Parable in
this Workspace. An upload, rename, font copy, deletion, or restore takes effect
immediately. These changes do not enter a Patch and do not wait for publication,
including in Published Versions mode. Choosing an older Release does not
restore an earlier file set.

Anyone with Primary, Publishing, Pinging, or Peeking who can open the composed
Parable can list and download every file. This includes a file that no released
Pane uses. Pane Policies do not narrow access to these files. A person with
Primary or Publishing can change them. A Pocketed composed Parable keeps its
files read-only, and so does a Workspace's copy of a Platform Parable: its
files come from the Platform Parable's Releases, as its Pieces do, and a
change is refused with `PA-AU-067`. A Release or Deployment to another
Workspace carries no files, except the fonts a Platform Parable's shared
stylesheet names.

Deleting a file hides it from Artifacts. It retains the file and its checked
bytes indefinitely. Existing Page, Pane, image, video, and font references
continue to work, including after a reload and after the Undo offer ends.
No composed Parable file is physically removed for now. The short Undo offer
returns a file to discovery. An eligible retained file can also be restored
later. Optional file versioning in Published Versions is a separate follow-up.

## Data files become tables

A CSV, Parquet, JSON Lines, or gzipped JSON Lines file of a composed Parable
becomes a table after its check. It needs no publish step. The table's
address is `artifacts.parable_<the Parable's SQL name>.<table>`. The Parable's
SQL name is the one in its Plot addresses, `parables.<parable>.<plot>`.

For example, a file `actors.csv` in the Parable whose SQL name is
`perceptions` becomes `artifacts.parable_perceptions.actors`. Its header and
its values gave these columns:

| Column | Type |
| - | - |
| `Full Name` | Text |
| `Title` | Text |
| `Team` | Text |
| `Start Date` | Date |
| `Active` | True or false |
| `Score` | Decimal number |

```sql theme={null}
SELECT "Full Name", "Team", "Score"
FROM artifacts.parable_perceptions.actors
WHERE "Active"
```

The Artifacts tree shows the table address of each data file, with
**Copy table address**, and the state of the table: **Building table**,
**Table ready**, or **Table failed** with the reason. A table that fails
leaves the file as a file. The file still downloads, and Pane code still reads
it.

A data file that was checked before Parable files became tables gets its table
the first time that someone lists the Parable's files.

When Parable staff rename the Parable's handle, its SQL name changes too. That
rename rewrites `artifacts.parable_<old>` to `artifacts.parable_<new>` in the
Parable's own SQL, as it rewrites `parables.<old>`. An archive import from a
Parable with another SQL name gets the same rewrite, to the SQL name of the
Parable that it goes into.

### Table names

The table name is the file name without its extension, by the rule for SQL
names:

* Letters lose their accents and become lower case.
* Each run of characters that are not a letter from `a` to `z` or a digit
  becomes one `_`. No `_` stays at either end.
* A name that starts with a digit gets `p_` in front.
* A name with nothing left is `file`.

So `Actors 2026.csv` becomes `actors_2026`, and `2026 plan.csv` becomes
`p_2026_plan`. When a live file of the Parable already holds the name, the new
table gets `_2`, `_3`, and so on. Of `actors.csv` and `actors.parquet`, the
first file to become a table keeps `actors`, and the other gets `actors_2`.

The name stays with the file:

* A rename changes only the file's name. The table keeps its address, so the
  Plots that read it keep working.
* A delete removes the table from SQL at once and frees its name.
* A restore, or **Undo** after a delete, brings the table back under its name
  when the name is free. Otherwise the table gets the next free number.
* To replace a file's data, delete the file and upload the new file under the
  same name. The new file takes the freed table name, so the Plots keep their
  SQL and read the new rows.

### Column types

The worker reads the whole file to choose the type of each column. It calls no
model, so the Workspace's model policy does not apply.

In a CSV file, each column gets the first type in this list that every
non-empty value fits. An empty cell is null, and a column with no values is
text.

| Type | Values that fit |
| - | - |
| Whole number | An optional sign and digits, such as `42` or `-7`. |
| Decimal number | A number such as `1.5`, `.5`, or `1e3`. |
| True or false | A word from the list below, in any case. |
| Date | A date such as `2026-10-30`. |
| Date and time | A value such as `2026-10-30T10:15:00`, or the same value with a space in place of the `T`. Fractions of a second are optional, and so is a `Z` or an offset such as `+02:00`. Parable stores the time as UTC, and it reads a value with no offset as UTC. |
| Text | Any value. |

Because whole numbers come first, a column of only `0` and `1` is a whole
number. A column whose date and time values are all at midnight is a date.

A value with a leading zero before another digit, such as `02134`, `-0123`, or
`+0123`, is not a number, so a column that holds one takes the next type that
fits, usually text. A ZIP code keeps its zero. `0`, `0.5`, `-0.5`, and `10`
stay numbers.

True or false takes these values:

* True: `true`, `t`, `tr`, `tru`, `yes`, `y`, `ye`, `on`, and `1`.
* False: `false`, `f`, `fa`, `fal`, `fals`, `no`, `n`, `of`, `off`, and `0`.

A Parquet column keeps the type that the file states, with three changes:

* A nested column, such as a list or a struct, is JSON text.
* A decimal column is text. Cast it in SQL, as in `CAST(price AS DOUBLE)`.
* A timestamp with a time zone keeps its instant, as UTC.

A JSON Lines field gets the type that its values share in the whole file: true
or false, whole number, decimal number, text, or JSON.

* Whole numbers and decimal numbers together are decimal numbers. Any other
  mix of types is text.
* An object or an array is JSON.
* A whole number too large for a 64-bit integer makes its field a decimal
  number.
* A date in a JSON string stays text. Cast it in SQL.
* A missing field and a JSON `null` are null. A blank line is not a row.
* A line that holds no object, such as `42`, fills one column, `value`.

Column names are the file's header or field names, as written. Plot SQL quotes
a name that has capitals or spaces, such as `"Full Name"`. In a CSV file,
Parable removes the spaces at either end of a header. An empty header becomes
`col_` and its position, such as `col_3`. A repeated header gets `_2`, `_3`,
and so on. A Parquet file whose two columns share a name gets a failed table.

### Who reads a Parable's tables

Only SQL that runs in the Parable reads its tables:

* The Parable's Plots read them for every person who can open the Parable,
  Peeking included.
* Other SQL in the Parable, such as the Plot editor's **Preview**, a Lab's
  `query()`, or Ponder's SQL in the Parable, reads them only for a person who
  can edit the Parable's Plots. That person holds Primary or Publishing on the
  Parable and the Build Parables permission (`tenant.parables.manage`). A
  person with Pinging or Peeking reads the tables through Plots.
* SQL in another Parable, and Workspace SQL outside every Parable, cannot read
  them, whatever the role. Catalog listings outside the Parable do not show
  them.

SQL outside the Parable fails with "artifacts.parable\_perceptions holds the
files of another Parable. Only SQL in that Parable reads it."

Ponder runs SQL in the Parable only when its SQL call names the Parable's
working copy or Release. Ponder SQL that names no Parable is Workspace SQL, so
it cannot read the tables. It reads them through the Parable's Plots.

### A dataset that already holds the namespace

Before Parable files became tables, a Workspace could reserve a dataset whose
namespace starts with `parable_`. That dataset keeps its namespace and takes
new revisions. When the namespace is the one of a Parable in that Workspace,
such as `parable_perceptions`, the dataset wins in that Workspace:

* SQL reads the dataset at `artifacts.parable_perceptions`, with the same
  roles as any other dataset. The rule that only SQL in the Parable reads the
  namespace does not apply.
* The Parable's file tables are not served in that Workspace. A Plot that reads
  `artifacts.parable_perceptions.actors` reads the dataset's `actors` table
  when the dataset has one. Otherwise the Plot fails as for any missing table,
  or reads an empty table when it declares the table as an optional Artifact
  input.
* The Artifacts tree still shows each data file's table address and state,
  such as **Table ready**. Nothing in the tree says that the dataset holds the
  namespace. Query Layer logs a warning that names the namespace and the
  Parable.

Other Workspaces are not affected. A new dataset cannot take a `parable_`
namespace.

### Two Parables with the same SQL name

Some Parables made before SQL names were unique share one. When two of them
have a line in one Workspace, both claim the same namespace. No SQL in that
Workspace reads it, in either Parable or outside both, so neither Parable reads
the other's files. Query Layer logs a warning that names the namespace.

### A Workspace with no file

A Release or a Deploy carries no files, so a copy of the Parable in another
Workspace starts with none. A Plot that reads a missing Parable table fails,
as for any missing table. To read an empty table with the declared columns
instead, declare the table as an optional Artifact input of the Plot
([Optional Artifact inputs](https://docs.parable.work/ponder/parables/pieces/plots#optional-artifact-inputs)).
Declare every Parable table that a Plot reads.

### Bounds

A table adds these bounds to the bounds of a Parable file:

* A gzipped JSON Lines file decompresses to at most 1 GiB.
* One JSON line is at most 1 MiB.
* A JSON Lines table holds at most 2,000,000,000 cells: its rows times its
  columns. Every row holds every column, so a file of many short lines that
  together name many fields can pass this bound while it is small.
* The pages of one Parquet row group decompress to at most
  `ARTIFACT_DECODE_BUDGET_BYTES`, 128 MiB by default.

A file that is over a bound, or that holds a line that is not JSON, gets a
failed table. The tree shows the reason, such as "This file is too large to
become a table."

## Files in Pane code

Pane code reaches the Parable's files through the `files` module of the Pane
SDK. A Lab imports the same `files` from `parable`
([Read data from the app](https://developers.askparable.com/data/labs.md#read-data-from-the-app)).

* `files.list()` lists the Parable's files of every kind. A data file carries
  its table address and the table's state. `files.list({ from: 'workspace' })`
  lists the Workspace's checked files.
* `files.read(id)` returns one file as a `Blob`, at most 25 MB. Read the rows
  of a larger data file through a Plot.
* `files.upload()` works only after a click or a key press in the Page. The
  host opens its own file picker, and the file goes into the Parable's files.
  Only a person with Primary or Publishing adds a file, and only in the
  Publishing mode.

The Workspace's files reach Pane code only under three rules. The reader needs
only a seat on the Parable.

1. The Pane or Page whose code asks declares `readonly workspaceFiles: true;`
   in its Perception, in the Pieces that the frame runs. Otherwise the call
   fails with `403` and `PA-AU-121`: "This Pane does not declare that it reads
   the Workspace's files."
2. Only a person who holds a permission that lists the Workspace's files by
   their own grants saves a Perception that declares it:
   `tenant.artifacts.view`, `tenant.artifacts.upload` or
   `admin.tenant.artifacts`, the permissions of the Workspace's own Artifacts
   list. Every save and every archive
   import checks this. Otherwise the save fails with `PA-AU-120`: "Only a
   person who can view the Workspace's files can let a Pane read them." A copy
   that takes a Release by Pull or by Delivery is not a person's save, so this
   rule does not apply to it.
3. Everyone who last saved the code in the frame holds one of the same
   permissions: the code of every Page and Pane of the Parable, plus any shared module in its build, which the
   frame can run. Otherwise the call fails with `403` and `PA-AU-070`.

The list leaves out every file that holds a Provider's data: a file with an
attributed connection, and a file that a tap reads, such as a published
Artifact's file. A download of such a file fails with `404`. Each listed file
carries its id, name, type, kind and size, and no uploader.

The server cannot tell which code asks. Through a Pane that declares
`workspaceFiles`, a reader can list and read every other checked Workspace
file, not only the files that the Pane shows.
[Panes](https://docs.parable.work/ponder/parables/pieces/panes#the-workspaces-files)
documents each call and its refusals.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.