# Artifacts

> Pages and reports the agent publishes: private by default, shared with the team or by password, versioned, and made public only through the broker.

Source: https://docs.ventgris.com/workspace/artifacts

An artifact is a deliverable the agent puts online: a report, a dashboard, a prototype, a landing page. It is a frozen copy of a folder, with a stable address, numbered versions and a visibility. Every artifact starts private. Making one public is a [brokered action](https://docs.ventgris.com/agents/brokered-actions.md), with content checks, a daily budget and an undo window. The Artifacts screen lists them, says who can open each one, and lets you change access, roll back, publish and delete.

![Artifacts screen with the list of artifacts and the record of one, its address, access mode and versions](https://docs.ventgris.com/img/artifacts.png)

> [!NOTE]
> On a workspace of the service, artifact addresses are not served on the internet yet. Publishing, versions, access modes, checks and the screen work, and what you set is kept, but the **Open** link of an artifact does not load a page for now. To share a result today, download the file from [Files](https://docs.ventgris.com/workspace/files-and-editor.md) or deliver it in the conversation.

## How an artifact is made

The agent publishes a folder with `vg art publish`:

```bash
# Private, only the owner (default)
vg art publish ./report --title "SEO audit November"

# Private, everyone signed in to the workspace
vg art publish ./report --access team

# Private, with a generated password, expiring in 30 days
vg art publish ./report --access password --expires 30d

# A new version of an existing artifact
vg art publish ./report --update art_01J...

# Ask for a public publication
vg art publish ./page --public --slug cheatsheet
```

Other flags of `vg art publish`: `--owner`, `--no-expiry`, `--spa` (serve `index.html` for any unknown path), `--allow-external HOSTS` (let pages load from those hosts), `--indexable`, `--storage`, `--listed`, `--waive`. The other commands are `vg art list [--mine]`, `vg art show ID`, `vg art set ID`, `vg art rollback ID --to N`, `vg art unpublish ID` and `vg art delete ID`. See [The vg command](https://docs.ventgris.com/agents/vg-cli.md).

At publication, the folder is copied: a later change in the source folder changes nothing online. The copy is checked (see [Content checks](#content-checks)); a blocking finding cancels the publication and says why.

The owner is the person the session was working for: the author of the message that started it, or the owner of the job.

## Read the list

| Column | Content |
|---|---|
| **Title** | The title, and an **app** tag for an app artifact |
| **Visibility** | **private**, **public** or **deleted**, plus a tag while a publication is pending ("public in M:SS", "waits for approval", "sent to the broker") |
| **Access** | **owner only**, **team** or **password** |
| **Owner** | The owner's address |
| **Version** | "vN of M": the version at the address, and how many exist |
| **Size** | Size of the current version |
| **Views** | Times opened, and "last WHEN" or "never opened" |
| **Expires** | The date, "never", or **expired** |

The eye icon opens the artifact; the copy icon copies its link. Under the list: "N artifacts, SIZE on disk". Tick **Show deleted** to list deleted artifacts too. Click a row to open its record.

## Choose who can open a private artifact

In the record, under **Who can open the private address**:

| Mode | Who opens it |
|---|---|
| **owner only** | Only the owner, signed in to the workspace |
| **team** | Anyone signed in to the workspace |
| **password** | Anyone who has the password. The owner still opens it with their account |

A change says "Access changed. People who had it open sign in again."

### Password mode

When you switch to **password**, or click **New password**, a 20-character password is generated and shown once: "This password is shown once. Send it through another channel than the link." Use **Copy the password**, then **I have it**. Leaving the screen forgets it. **New password** asks "Replace the password? The current one stops working at once."

The password form allows 5 attempts per minute per address and per artifact, and blocks for 15 minutes after 10 failures.

### How a private artifact opens

Opening a private address sends the browser through the workspace sign-in. If the person may open the artifact, a single-use token (valid 60 seconds) gives the browser a cookie for that artifact only, valid 12 hours. If not, the answer is a "not found" page, the same as for an address that does not exist.

Private addresses are a long random value, unrelated to the title or the content. Every private page is served with `noindex, nofollow, noarchive, nosnippet`, `Referrer-Policy: no-referrer` and `Cache-Control: private, no-store`, never appears in a listing, and loads nothing from other domains unless the artifact was published with `--allow-external`.

## Set an expiry

Under **Expiry**, pick a day and click **Set**: the artifact stops answering at the end of that day, in your browser's time zone. **No expiry** removes it. The record says "Stops answering on DATE." or "This artifact does not expire." A password artifact expires after 30 days unless published with `--no-expiry`.

## Versions and rollback

Publishing with `--update` adds a version. The **Versions** table of the record lists each one with its date, number of files, size, and the result of its checks ("no finding" or "N findings": click to see the **Check report of version N**). Tags: **current**, **preview**, **public** (was online publicly).

**Roll back to this version** asks "Put version N back at the address of “TITLE”?" and makes it current at once. For a public artifact, a version that was never public shows **Put version N online** instead: it goes through the public publication like a first one.

## Make an artifact public

Under **Public address** in the record:

1. Type the public name in **public name (a-z, 0-9, -)**: 3 to 64 lower-case letters, digits and hyphens.
2. Pick the **Version to publish**.
3. Tick the options you need:

   | Option | Effect |
   |---|---|
   | **List it on the public index** | Adds it to the list of public artifacts of the workspace |
   | **Let search engines index it** | Removes `noindex`. Has its own, smaller daily budget |
   | **Allow storage and cookies (served from the storage host, without the sandbox)** | For pages that need `localStorage`, IndexedDB or a service worker |
   | **Accept the email addresses and phone numbers in the content** | Waives the contact check, which otherwise blocks a public publication |
   | **Keep the undo window (goes live after a delay, can be cancelled)** | Without it, a publication you start here goes live at once |

4. Click **Publish**.

This runs the public checks, then the brokered action `art.publish_public`, class `broadcast`: the daily budget (5 public publications per day by default), then the gate set in [Autonomy](https://docs.ventgris.com/workspace/autonomy.md).

| Result | What you see |
|---|---|
| Live at once | "Published", then "Live at URL" |
| In its undo window | "Scheduled: live at TIME unless cancelled." and a countdown. **Publish now** skips the rest of the window; **Cancel the publication** stops it |
| Waiting for a human | "Waiting for a human approval." The approval is given in [Activity](https://docs.ventgris.com/workspace/activity.md) |
| Blocked | "Blocked: REASON" (a check failed, or the budget is spent) |

A publication requested by the agent always keeps its undo window, 10 minutes by default and longer when the turn read untrusted content. **Publish now** on such a run asks for your second factor. During the window the new version is reachable at the private address ("The private address shows version N until it is public."). **Publication requests** at the bottom lists every request with its version, name and state (sent, scheduled, waiting for approval, done, blocked, cancelled, failed, expired).

If the broker is not running, the section says "Going public is not available: the action broker is not running."

### Unpublish

**Unpublish** asks "Take “TITLE” back to private? The public address stops answering at once." It runs at once, without a window.

### Headers of public pages

Public pages run in a sandbox: they have no access to cookies or storage, and cannot act in the workspace session of whoever opens them. They are served with `X-Robots-Tag: noindex` (unless indexable), `Referrer-Policy: no-referrer`, `X-Content-Type-Options: nosniff`, `Access-Control-Allow-Origin: *` and a cache of 5 minutes. A page published with storage is served from a separate storage host, without the sandbox, and shares that origin with the other storage artifacts of the workspace.

## Content checks

| Check | Private | Public |
|---|---|---|
| A vault secret value, or a known key pattern | blocks | blocks |
| `.env*` files, `.git/`, private keys, `*.db` databases | blocks | blocks |
| Symbolic links, hidden files, paths with `..` | blocks | blocks |
| More than 200 MB or 5,000 files in the artifact | blocks | blocks |
| File types outside the allowed list (executables, archives) | blocks | blocks |
| Email addresses and phone numbers | reported | blocks, unless waived |
| Scripts and resources loaded from other domains | reported | listed in the report ("Loads from: …") |
| A link to a private artifact address | reported | blocks |
| Text checks (slopcheck, readcheck) | not run | block at one BLOCK or more |

All artifacts of a workspace together are limited to 5 GB (less on a small disk), and new versions are refused when the disk is 90 % full. The report never shows a secret, an address or a number: it says what was found and in which file.

## Apps

An app artifact is a folder with an `app.toml` that describes a program to run. Apps are not running on workspaces yet: an app artifact is stored and shows as **app**, its record shows the image, command, memory and sleep delay it asks for, and its address answers with a page saying apps are off ("Apps are off on this machine: the artifact is stored and answers with a page saying so.").

## Who manages an artifact

Renaming, changing access, a new password, the expiry, rollback, going public, cancelling, unpublishing, deleting and restoring are for the owner of the artifact and for a workspace admin. **team** mode lets the team open an artifact, not manage it. A session manages only the artifacts of the person it works for. Other attempts are refused with "only the owner of this artifact or an admin may change it".

## Delete and restore

**Delete** asks "Delete “TITLE”? Its addresses stop answering at once. The files are kept 30 days." A deleted artifact answers "not found" at once. Tick **Show deleted**, open its record and click **Restore** within 30 days: it comes back private. After 30 days its files are erased.

> [!AGENT]
> Publish with `vg art publish DIR --title T`; it is private and owned by the person you work for. Use `--access team` for teammates and `--access password` for someone outside, and give the password through another channel than the link. Ask for public only when the person wants it public (`--public --slug S`): it goes through `art.publish_public`, with checks, a budget and an undo window, and you cannot skip the window. Never put secrets, `.env` files, databases or private artifact links in a published folder. Run `vg scan DIR` first.

## Related

- [Brokered actions](https://docs.ventgris.com/agents/brokered-actions.md)
- [Autonomy and guardrails](https://docs.ventgris.com/workspace/autonomy.md)
- [Activity](https://docs.ventgris.com/workspace/activity.md)
- [The vg command](https://docs.ventgris.com/agents/vg-cli.md)
- [Files and editor](https://docs.ventgris.com/workspace/files-and-editor.md)
