Archive format
How a cartulary is laid out on disk (versions, the seal, raw and normalized records) and how to read it with standard tools.
A Cartulary archive is a folder of ordinary files: JSON, Markdown, CSV and the original attachment bytes, sealed by a checksum file in the standard sha256sum format. Reading or checking an archive never requires Cartulary. If the app disappeared tomorrow, find, jq and sha256sum -c would still be enough to read and validate everything in it.
This page describes the layout at the level you need to find things and check them. The current archive format is version 4.
A cartulary and its versions
A cartulary holds the archives of one site (a ClickUp Workspace or a Jira Cloud site) over time. Each export adds a new version, and each version is a complete, self-contained archive.
Acme_14183465/
├── cartulary.json the format version, the source, and the list of versions
├── versions/
│ ├── 2026-10-06T020004Z/ one complete archive per version
│ ├── 2026-10-13T020011Z/
│ └── <id>.partial/ a version still being written; do not read it
├── objects/ each sealed file's bytes, stored once
├── audits/<version>/ checks run on a version after it was published
├── derived/ rebuilt search indexes for older versions
└── state/ run bookkeeping; not part of any version
A few rules make this predictable:
- A folder is a cartulary if it contains
cartulary.json, and an archive if it containsmanifest.json. - A version’s ID is the UTC time its export started, in the form
YYYY-MM-DDTHHMMSSZ. IDs sort in time order. If two runs start in the same second, the second gets-2. - A published version is never changed. Later exports add new versions beside it. Checks you run on it afterwards, such as a reconciliation, write their reports to
audits/<version>/, outside the version. - Unchanged files are stored once. Every sealed file in a version is a hard link to
objects/sha256/<first two hex digits>/<sha256>. A file that is the same in ten versions takes up the space of one. You can ignoreobjects/entirely: each version’s files are ordinary files at their usual paths. Where the file system does not support hard links, the files are copies andcartulary.jsonrecords"links": false. - The cartulary folder name is the site name you entered plus the site’s ID. Treat it as a label; don’t parse meaning out of it.
cartulary.json lists the published versions, oldest first. Each entry records the version’s id, created_at, kind, completeness and whether it verified when it was published. The last entry is the latest version.
Full, incremental and migrated versions
Every version is a complete archive. The version’s kind says how its contents were obtained:
full: everything in scope was read from the source.incremental: only what changed since the previous version was read, and the rest was carried forward from it. Unchanged files are shared with the previous version throughobjects/.migration: converted from an earlier archive format without reading the source (see Reading archives across updates).
A version’s manifest.json records the same thing under run: the kind, the reason for it in plain words, and for an incremental run the cutoff time it read from. run.requests_sent counts every request the export sent, by HTTP method, for example { "GET": 2914 }.
Retention
By default every version is kept. If you set a retention policy, versions the policy does not keep are removed after each export. The latest version is never removed. Removing a version deletes its folder and its audits, then any object no remaining version uses. Because every version is complete, removing one never affects another.
Inside one version
Everything below describes one archive: one folder under versions/.
2026-10-13T020011Z/
├── manifest.json what the archive contains and how complete it is
├── checksums.sha256 the seal
├── README.md orientation for a human reader
├── permission-gaps.json objects that were listed but could not be read
├── unreachable-references.json linked or embedded files their host refused
├── exclusions.json objects marked "not needed", with who, when and why
├── raw/ verbatim API responses
├── normalized/ one JSON record per object, plus Markdown renderings
├── binaries/ downloaded attachment files
├── inventories/ CSV tables
├── reports/
│ ├── archive-report.md
│ └── verification.json the verification result; not sealed
└── index/
└── archive.sqlite3 search index (rebuildable)
The manifest
manifest.json is the archive’s statement about itself. The fields you will use most:
| Field | Meaning |
|---|---|
schema_version |
The archive format version (currently 4). |
tool_version |
The Cartulary version that wrote the manifest and the seal. |
source |
The platform (clickup or jira) and the site’s ID and name. |
completeness.status |
COMPLETE, COMPLETE_WITH_WARNINGS, PARTIAL or FAILED. |
completeness.reasons |
Why, as {code, message, count} entries. Empty when COMPLETE. |
counts |
Items, comments, replies, attachments, documents, pages, containers, people, and how many of each were deleted at the source. |
run |
How this version was read (see above). |
file_count |
The number of entries in checksums.sha256, including manifest.json itself. |
The completeness status is computed from the files on disk alone, so it can be recomputed years later with the same answer:
FAILED: no item records at all.PARTIAL: content the archive knows about is missing. An attachment failed to download, orpermission-gaps.jsonlists objects the token was refused (HTTP 403) or that disappeared during the export (HTTP 404).COMPLETE_WITH_WARNINGS: nothing is missing, but something was deliberately left out, such as an attachment skipped by configuration or an object listed inexclusions.json.COMPLETE: everything in scope was preserved.
A file that a task or page only links to in another service (SharePoint, OneDrive, Google Drive) or embeds from elsewhere is fetched when possible. If its host refuses it, it is listed in unreachable-references.json and does not make the archive PARTIAL, because the record that refers to it is whole.
permission-gaps.json and exclusions.json are written on every export, even when empty. An empty list means the check ran and found nothing.
Raw responses
raw/ holds every API response the export received, verbatim, with the request that asked for it. Credentials are removed before anything is written: the Authorization header never reaches disk. Each file records when it was fetched, the HTTP status and a SHA-256 of the response body.
raw/ is the evidence. Every normalized record lists the raw files it was derived from in raw_record_paths, so you can trace any record back to what the platform actually sent. If you distrust the normalization, you can rebuild everything from raw/ alone.
Normalized records
normalized/ holds one JSON file per object, in the same shape for every platform:
| Path | Contents |
|---|---|
items/<id>/item.json |
A task or issue, with item.md beside it as readable Markdown. |
items/<id>/comments/<id>.json |
Comments and replies. A reply has parent_comment_id set. comments.md renders the conversation. |
items/<id>/attachments/<id>.json |
An attachment record: filename, size, sha256, download_status and the path to its bytes. |
items/<id>/history.json |
The item’s change history, where the platform keeps one (Jira). |
items/<id>/time_entries/<id>.json |
Time logged against the item. |
documents/<id>/ |
A document (ClickUp Doc) with its pages, as JSON and Markdown. |
containers/<kind>/<id>.json |
The hierarchy: ClickUp Spaces, Folders and Lists, or Jira projects. |
people/<id>.json |
Everyone the records name, and the site’s members, with display fields. |
objects/<kind>/<id>.json |
Everything else the platform keeps, such as views, Goals, Custom Fields, boards, sprints and workflows. |
Every record starts with the same fields: archive_schema_version, object_type, source_system, workspace_id, source_id, raw_record_paths, export_run_id and normalized_at. Classify a record by its object_type. Where the file sits doesn’t tell you its type.
An object deleted at the source is never removed from the archive. Its last copy stays, with deleted_at set to the time an export first found it gone. An item that moved outside the export’s scope gets left_scope_at instead.
The Markdown files are conveniences for reading. Where the JSON and the Markdown could disagree, the JSON is authoritative.
Attachments
Attachment files are in binaries/<parent type>/<parent id>/<attachment id>--<filename>. The double hyphen separates the ID from the original filename, which has been made safe for Windows and macOS file systems. The original name is kept in the record’s original_filename.
Every attachment the export discovered has a record, whether or not its bytes were downloaded. download_status is succeeded, failed, skipped or pending, and the record’s sha256 must match the file at archive_path.
CSV inventories
inventories/ holds tables you can open in a spreadsheet: items.csv, comments.csv, attachments.csv, documents.csv, pages.csv, time_entries.csv, history.csv, objects.csv and container_comments.csv. Two more split the items: active-work-candidates.csv (open items that are neither archived nor deleted) and closed-history.csv (everything else). Every item appears in exactly one of the two.
The files are RFC 4180 CSV with a header row. Text fields can contain line breaks, so read them with a real CSV parser. Counting lines gives the wrong answer.
The search index
index/archive.sqlite3 is a SQLite database with full-text search over the records. It is a convenience. It can be rebuilt from normalized/ at any time, and its tables are not part of the format and may change between releases. Don’t build anything permanent on it.
The seal
checksums.sha256 is the archive’s integrity boundary. Each line is a lowercase SHA-256, two spaces, and a path relative to the archive folder, exactly as sha256sum and shasum -a 256 write it. Lines are sorted by byte order, so identical content produces an identical file on any machine.
The seal covers every file in the version, including manifest.json, README.md, raw/, normalized/, binaries/, inventories/, reports/archive-report.md and the search index. It leaves out:
checksums.sha256itself;reports/verification.json, which is the result of checking the seal;- the
state/folder, which is run bookkeeping; - unfinished downloads and temporary files;
- operating-system clutter such as
.DS_Store,Thumbs.db,desktop.iniand._files, so that browsing an archive in Finder or File Explorer doesn’t break it.
sha256sum -c confirms that every sealed file is present and unchanged. It does not report files added since sealing. Cartulary’s own verification does, along with schema and reference checks. See Verification.
Reading an archive with standard tools
These examples run from inside one version’s folder, on macOS or Linux. Replace $ITEM and $ATT with real IDs.
Find the latest version (from the cartulary folder):
jq -r '.versions[-1].id' cartulary.json
jq -c '.versions[] | {id, kind, completeness, verified}' cartulary.json
Check the seal:
sha256sum -c --quiet checksums.sha256 # Linux
shasum -a 256 -c --quiet checksums.sha256 # macOS
No output means every file matched. A changed or missing file is named.
See what the archive claims, and whether it is complete:
jq '{format: .schema_version, status: .completeness.status, counts}' manifest.json
jq -r '.completeness.reasons[] | "\(.code): \(.message)"' manifest.json
List what is missing:
jq -r '.gaps[] | "\(.objectType) \(.objectId) -> HTTP \(.status)"' permission-gaps.json
find normalized -path '*/attachments/*.json' \
-exec jq -r 'select(.download_status != "succeeded") | "\(.source_id) \(.download_status)"' {} +
Stream every task or issue:
find normalized/items -name item.json \
-exec jq -c '{source_id, key, name, status: .status.name}' {} +
Read an item’s comments, replies included:
jq -c '{source_id, parent_comment_id, text}' normalized/items/$ITEM/comments/*.json
Check one attachment against its record:
jq -r '.sha256, .archive_path' normalized/items/$ITEM/attachments/$ATT.json
shasum -a 256 "$(jq -r .archive_path normalized/items/$ITEM/attachments/$ATT.json)"
Trace a record to the API responses it came from:
jq -r '.raw_record_paths[]' normalized/items/$ITEM/item.json \
| xargs -I{} jq '{status: .response.status, fetched: .meta.fetchedAt}' {}
Query the search index. Open it read-only so nothing is written inside a sealed version:
sqlite3 -readonly index/archive.sqlite3 \
"SELECT key, name, status_name FROM items WHERE deleted_at IS NULL ORDER BY updated_at DESC LIMIT 20;"
sqlite3 -readonly index/archive.sqlite3 \
"SELECT object_type, source_id, title FROM search WHERE search MATCH 'invoice' LIMIT 20;"
Browse a table in the terminal:
column -s, -t < inventories/items.csv | less -S
column doesn’t understand quoted fields, so use it for a quick look only. For anything that matters, open the CSV in a spreadsheet or parse it with a CSV library.
Format versions and reading archives across updates
The format has a single integer version, schema_version in manifest.json and in cartulary.json. Every normalized record repeats it as archive_schema_version, so a record copied out of its archive still says what it is.
The version goes up only for a change that could break a reader: a file, field or CSV column removed or renamed, a field whose meaning changed, or a change to the paths or the seal. Adding a new optional field, a new report or a new CSV file does not change the version. If you write your own reader, ignore fields and files you don’t recognize, and keep reading.
Updating Cartulary never changes an archive you already have:
- New fields. Each release is tested against sample archives written by earlier releases, so archives you already have keep opening, verifying, comparing and packaging.
- A newer search index. When an update changes the index, the app builds a new one for an older version the first time you open it, in the cartulary’s
derived/folder, outside the version. The first open of a large version can take a few seconds. The sealed index is left as it was, so the version still verifies. - A new archive format. If an update ever needs a new format, existing versions are not rewritten. The conversion writes a new version from the latest one, sealed afresh, with
run.kindset tomigrationand a record of what it was made from. Earlier versions keep their own format and seals, and the next export after a migration reads everything again.
A Cartulary that meets an archive newer than it understands refuses to read it and tells you to update.
Packaged archives
The Wizard’s Package step writes the latest version as a single uncompressed .tar file. To package an earlier version, use Package in the CLI view. The tarball holds the sealed files plus checksums.sha256, and leaves out state/ and reports/verification.json. Entries are in a fixed order with fixed permissions and timestamps, so the same archive always produces a byte-identical tarball and the tarball’s own checksum means something.
Packaging refuses a PARTIAL or FAILED archive unless you tick Allow partial in the Wizard. Extract the tarball anywhere and the seal checks as before.