Exhibits
The exhibits/ folder spec
An open convention for keeping agent-made exhibits in a code repository.
Version 0.1 · status: draft
An open convention for keeping agent-made exhibits (pages, dashboards, documents,
diagrams, data, 3D models) in a code repository, so people review and version them with
the code, and so any agent or tool can read and write them without arteffect. It plays
the same role for exhibits that AGENTS.md plays for agent instructions.
Layout
A repo keeps its exhibits in one folder named exhibits/ at its root, next to docs/:
my-repo/
exhibits/
README.md # optional: what this folder is, for people and agents
launch-dashboard/
exhibit.json # the manifest
index.html
data/weekly.json
system-diagram/
exhibit.json
diagram.mmd
The folder is visible on purpose. Exhibits are things people review in pull requests, not hidden agent scratch work, and the name names no tool.
Rules
- One folder per exhibit. A direct child of
exhibits/is an exhibit when it holds anexhibit.json. Other files and folders are ignored, soREADME.mdcan sit beside them. The folder name is a readable slug; tools choose it from the exhibit’s name and add-2,-3if it’s taken. - The manifest identifies the exhibit.
exhibit.jsonholds a stableid. Renaming or moving the folder doesn’t change which exhibit it is. Tools must not change an id. - Only content is committed. The folder holds the exhibit’s files and manifest. Review
state (comments, per-save history) is kept outside the working tree (see below), so it
never shows in
git status. - Exhibits are edited in place. Any tool, or a person, may change the files. Tools that keep history record such changes as a new version the next time they read it.
- Monorepos:
exhibits/lives at the repo root. A tool may also find anexhibits/folder inside a package, but should only create one there when asked.
exhibit.json
JSON, validated by schema/exhibit.schema.json. Unknown
fields are ignored, so tools can add their own.
| Field | Required | Meaning |
|---|---|---|
specVersion |
yes | "0.1" |
id |
yes | Lowercase letters, digits and dashes, starting with a letter or digit, at most 64 characters. Unique in the repo (arteffect also keeps it unique across a person’s repos, so it adds a short random suffix: launch-dashboard-3f2a1c) |
name |
yes | Display name |
type |
no | The entry’s format: html, react, markdown, data, svg, mermaid, image, pdf, cad or canvas. When left out, readers work it out from the entry’s file name (.html, .jsx/.tsx, .md, .json/.csv/.tsv, .svg, .mmd, .png/.jpg/…, .pdf, .step/.stl/…, canvas.json). Formats group into kinds people see: Page, Picture, 3D and Board |
entry |
yes | The file to show, relative to the exhibit folder (e.g. index.html, index.md, data.csv, index.svg, diagram.mmd, report.pdf, model.step, canvas.json) |
description |
no | One or two sentences |
source |
no | For a model built from code, the script the entry is generated from (model.py, model.scad) |
data |
no | Named data files the page reads: {"sales": "data/sales.json"} |
permissions.network |
no | Hosts the rendered page may load from. Empty or missing means none |
tags |
no | Strings for search and grouping |
provenance |
no | {"createdBy": {...}, "updatedBy": {...}}, each {agent, model, task} |
A minimal manifest:
{ "specVersion": "0.1", "id": "launch-dashboard-3f2a1c", "name": "Launch dashboard", "type": "html", "entry": "index.html" }
File paths inside an exhibit are relative, use /, and never contain ... Viewers should
render exhibits sandboxed, with no network access beyond permissions.network.
History and comments: refs/exhibits/history
Committed files give the history you choose to keep. Tools may also record every save (including each agent edit between commits) on a side ref in the same repository:
- Ref:
refs/exhibits/history, a chain of commits that is never checked out. - Tree:
exhibits/<id>/…holds each exhibit’s files at that save (keyed by id, not folder name, so renames don’t break history) andcomments/<id>.jsonholds its comment threads ({"threads": [...]}). - Commits are built with git plumbing (
hash-object, a privateGIT_INDEX_FILE,write-tree,commit-tree,update-ref), so the repo’s own index, branches and working tree are never touched. Each save’s message is a one-line summary plus trailers:Arteffect-Exhibit,Arteffect-Agent,Arteffect-Model,Arteffect-Task,Arteffect-Branch(the branch checked out at the time). - A version id is the commit id of the save. An exhibit’s history is
git log --full-history --no-merges refs/exhibits/history -- exhibits/<id>.
Local by default. The ref isn’t pushed unless someone opts in, since it holds every
agent save and comment. arteffect history share adds two refspecs to the remote:
fetch +refs/exhibits/*:refs/exhibits-remote/<remote>/* (a fetch never overwrites local
history) and push refs/exhibits/history:refs/exhibits/history. Because git pushes only
configured refspecs once a remote has any, HEAD is added first when the remote had none,
so a plain git push still pushes the current branch. arteffect history unshare removes
exactly what share added.
Two clones. When fetched history has diverged from local history, arteffect records a
merge commit. Comment threads from both sides are combined. File contents are never merged:
for each exhibit, the merged tree keeps whichever side matches the files in exhibits/ now
(they arrive with the branch), and both sides’ saves stay in History to compare or restore.
Comments on the branch: exhibits/.comments/<id>.json. An agent that can push only
its branch (a cloud or CI session) can’t push the history ref, so its comments would never
reach anyone. In those sessions (CLAUDE_CODE_REMOTE, GITHUB_ACTIONS or CODESPACES set,
or ARTEFFECT_COMMENTS_ON_BRANCH=1, or "commentsOnBranch": true in the config) every
comment change also writes the exhibit’s threads to exhibits/.comments/<id>.json
({"exhibit": id, "threads": [...]}, the same thread format as below), which the agent
commits with its branch. arteffect history export [id] writes the files by hand.
Whichever clone opens the repo next folds each file into its own history ref, combining
threads as for two clones. Each version of a file is brought in once (its hash is kept in
the git dir, in arteffect-branch-comments.json), so a thread resolved afterwards stays
resolved until the file changes again. A thread started on a save that clone doesn’t have
points at its latest save of the exhibit. Folders in exhibits/ that start with a dot are
never exhibits.
Comment threads: comments/<id>.json
{"threads": [...]}, oldest first. Every field below except id, status, version,
messages, createdAt and updatedAt is optional, and readers must ignore fields they
don’t know. A thread with no type is a plain comment, so threads written before types
existed read the same as before.
| Field | Meaning |
|---|---|
id |
Hex id, unique within the exhibit |
status |
open, addressed (an agent made the change) or resolved |
version |
Exhibit version the thread was started on |
type |
comment (the default), question, fix, proposal, approve (a sign-off request) or data-change |
schema |
The versioned schema of type and its fields, "<type>@<version>", e.g. "proposal@1". Written with every typed thread |
severity |
low, medium or high |
target |
What it is about, in a few words |
proposal |
An exact find-and-replace edit: {"path", "oldText", "newText", "replaceAll"?}. oldText must occur in the file once (or set replaceAll) |
decision |
Once a person decides: {"outcome": "approved" | "rejected", "by": author, "at", "version"?}; version is the save that applied an approved edit |
anchor |
Where it is pinned: page, artboard, x/y (fractions), element (selector, tag, text, html, file), model (3D point), refresh |
messages |
[{"id", "author": {"kind": "person" | "agent", "name"}, "body", "at"}] |
addressedIn |
The version that addressed it |
createdAt, updatedAt |
ISO times |
Rules for typed threads:
- Versioned. Each typed thread carries
schema("proposal@1"). A reader acts on a type (tags, Approve / Reject) only when it knows that type and version; anything else, including atypewithout aschema, is shown as a plain comment. - Always readable. The first message’s
bodysays in words what the thread asks, so a reader that ignores the structured fields loses nothing; decisions are also written as a message. - Checked when written. Writers reject bad payloads instead of storing them: an unknown
type or version, an unknown severity, a proposed edit with missing or unknown fields, one
whose
oldTextisn’t in the file (or matches more than once withoutreplaceAll), or an edit on a type that can’t carry one (onlyproposal,fixanddata-changecan). - Never guessed. A type is only ever set from an explicit type field. It is never read out of comment text, and threads imported from elsewhere keep only what they declare.
Comments go both ways. People leave them in a viewer; agents leave them too (arteffect:
the exhibit_comment MCP tool or arteffect comment add). A proposal, question,
approve or data-change thread an agent started can be approved or rejected. Approving
a proposal applies its edit as a new version credited to the person. The decision is also
recorded as a message from the person and the thread is resolved; new person messages on
a thread an agent started reach agents even after it is resolved, so the agent hears the
outcome.
An agent-authored proposal, as stored:
{
"id": "38a79688dbd1", "status": "open", "type": "proposal", "schema": "proposal@1", "severity": "medium",
"target": "the lede", "version": "aa0a7a88662a…",
"proposal": { "path": "index.html", "oldText": "Revenue grew 4%", "newText": "Revenue grew 4.2%" },
"messages": [{ "id": "9c1f…", "author": { "kind": "agent", "name": "claude-code" }, "body": "Use the exact figure from the finance sheet.", "at": "2026-11-19T19:40:00.000Z" }],
"createdAt": "2026-11-19T19:40:00.000Z", "updatedAt": "2026-11-19T19:40:00.000Z"
}
Checking conformance
arteffect conformance [dir] checks a folder against this spec and exits 1 when it doesn’t
conform. dir can be a repo (its exhibits/ folder and refs/exhibits/history), a store
with its own history/ folder, any folder of exhibit folders, or one comments/<id>.json
file. It checks each exhibit.json (required fields, file paths, the format worked out from
the entry, canvas boards, unique ids), comment threads (typed threads included), and the
history ref (tree layout, Arteffect-Exhibit trailers, and that every version a thread names
is a save). Other tools can run it from their own tests with assertConformance(dir) from
the arteffect package. Valid and invalid example cases are in
test/fixtures/conformance.
Where new exhibits go (arteffect)
When an agent works inside a git repo, arteffect saves new exhibits to that repo’s
exhibits/ folder by default. Outside a repo they go to the person’s home store
(~/.arteffect). "defaultStore": "home" in ~/.config/arteffect/config.json keeps them
home unless an agent asks for the repo. arteffect move <id> --to home|repo moves one
either way.
Migrating from .arteffect/
Repos that used arteffect’s earlier repo store (<repo>/.arteffect/) keep working as
before until migrated. arteffect migrate copies the exhibits to exhibits/ and moves
their history and comments onto refs/exhibits/history (the same commits, so every
version id stays valid). It leaves .arteffect/ in place; delete it after checking.