Docs / Secrets and data / The export format
The export format
Every export, download or copy is the same open, versioned format: a folder of markdown to read and JSON with every field, which opens as an Obsidian vault. This page is its spec, version 6.
Where you get it
The same files come out of four places, built by the same code, so a reader of one reads them all:
- The download under Your data: a zip of one folder.
- The nightly copy to a private GitHub repo you own: the folder
commonrig/<workspace>in that repo. - A runner's scheduled export: a folder on your own machine.
- The nightly export into your own storage bucket, as a zip.
Nothing in a file carries the time it was made, so the same records make the same bytes, and a repo copy only commits what changed. File bytes are never in an export: each file record says where its bytes are.
Folders and files
A record's files are named by its number, never its title, so a rename moves nothing. Numbers are one sequence across a workspace: no two records of any kind share one. A record's typed id, like ITM-12, is in its JSON as ref and in its markdown front matter.
| Part | Files | Markdown | Typed ids |
|---|---|---|---|
| Projects | projects/<id>.json, projects/<id>.md | yes | none |
| Item types | types/<key>.json, types/<key>.md | yes | none |
| Items | items/<num>.json, items/<num>.md | yes | ITM, a custom type's own, like TKT |
| Requests | requests/<num>.json, requests/<num>.md | yes | REQ |
| Threads | threads/<num>.json, threads/<num>.md | yes | THR |
| Docs | docs/<num>.json, docs/<num>.md | yes | DOC |
| Doc versions | docs/<doc num>.v<version>.json, docs/<doc num>.v<version>.md | yes | none |
| Reports | reports/<num>.json, reports/<num>.md | yes | RPT |
| Report pages | reports/<report num>.page-<rev>.json | JSON only | none |
| File records | files/<num>.json, files/<num>.md | yes | FIL |
| Schedules | schedules/<num>.json, schedules/<num>.md | yes | SCH |
| Learnings | learnings/<num>.json, learnings/<num>.md | yes | CRD, RUL, PKG |
| Handovers | handovers/<num>.json, handovers/<num>.md | yes | HND |
| Milestones | milestones/<num>.json, milestones/<num>.md | yes | MIL |
| Checklists and testing boards | checklists/<num>.json, checklists/<num>.md | yes | CHK, TST |
| Environment | environment/<num>.json, environment/<num>.md | yes | HST, SVC, JOB, RBK, PLC, ACC |
| Builds | builds/<num>.json, builds/<num>.md | yes | BLD |
| Tags | tags/<num>.json, tags/<num>.md | yes | TAG |
| Rig pages | pages/<num>.json, pages/<num>.md | yes | PAG |
| Context lines | quota/workspace.json, quota/yours.json, quota/project-<id>.json, quota/yours-in-<id>.json, quota/person-<key>.json, and a .md beside each | yes | none |
| Your prompts | prompts/<id>.json, prompts/<id>.md | yes | none |
| Connections | workspace/connections.json | JSON only | none |
| Settings | workspace/settings.json | JSON only | none |
| Tool use | workspace/tools.json | JSON only | none |
| Rights trail | workspace/audit.json | JSON only | none |
Two files at the top sum up the rest:
README.md: the workspace, what the export holds, and a count of each part.commonrig.json:format(alwayscommonrig-export),version,workspace,scope(minefor your own export,workspacefor an owner's whole one),work_data(true when the workspace holds work data) andcounts, part by part.
Markdown and front matter
Each .md starts with YAML front matter, then a heading with the typed id and title, a line of facts, the record's own words as quoted blocks (so its headings never become the page's), its notes or messages, and a list of links. Keys a record doesn't have are left out; the rest come in this order:
| Key | Holds |
|---|---|
id | the typed id (ITM-12), or #n, or a project or prompt id; a doc version is DOC-n.v<version> |
num | the record number, where it has one |
type | project, item_type, item, request, thread, doc, doc_version, report, file, schedule, learning, handover, milestone, checklist, environment, build, tag, page, context or prompt |
title | its title or name |
kind | its kind, where it has one |
status | its status, where it has one |
priority | its priority, where it has one |
project | its project id |
tags | its tags, cleaned to what Obsidian takes as a tag |
created | ISO 8601 UTC |
updated | ISO 8601 UTC |
at | ISO 8601 UTC, for a prompt |
aliases | its typed id, so Obsidian finds it by ITM-12 |
links | wikilinks to its project and every record in refs, as [[items/12|ITM-2]] |
commonrig_export | the format version that wrote the file |
---
id: "ITM-2"
num: 11
type: item
title: "Refund button"
kind: "feature"
status: "done"
project: "payments"
tags: ["refunds"]
created: 2026-11-18T11:06:41.000Z
updated: 2026-11-18T11:08:10.000Z
aliases: ["ITM-2"]
links: ["[[projects/payments|payments]]", "[[items/10|ITM-1]]", "[[requests/12|REQ-1]]"]
commonrig_export: 6
---
# ITM-2 Refund button
body:
> A button on the payment page, as [[requests/12|REQ-1]] asked.Links name the file by its path in the export, as [[items/10|ITM-1]], and show the typed id. A typed id written in a record's words becomes a link too, except inside code. Only records the person exporting can see are ever linked or named: one they can't see stays plain text.
Open it in Obsidian
Open the export folder itself as an Obsidian vault: the unzipped download, the runner folder, or commonrig/<workspace> in your repo copy. Properties show the front matter, the graph shows how records link, and the quick switcher finds a record by its typed id through its alias.
- Search by property, as
status: doneortype: item, or by tag. - It is a copy, read one way: the next repo or runner copy puts CommonRig's files back as they are and takes away files it didn't write. Keep your own notes outside the export folder, and link in with the same paths.
- Opening a whole repo with more than one workspace's folder works, but two workspaces both have an
items/10: open one folder for links that never point across.
JSON fields by part
Each record's .json is the whole of it: one object, two-space indented. People appear by display name, never an account or connection id. Times are milliseconds since 1970 UTC.
| Part | What it holds | Fields |
|---|---|---|
| Projects | Each project. The file name is its id, cleaned to letters, digits, _ and -, with a short hash when cleaning changed it. | id, name, description, status, created, capture, capture_mode, repos, visibility, members |
| Item types | Version 6: custom item types, each whole: its key, its own id prefix, its state and the definition its records are checked against, so a restore makes it again. Its records are in items. | key, prefix, name, base, state, version, def, created, updated |
| Items | Work: features, bugs, chores, research and epics, with their notes, status history and checks. From version 6 a custom type's record too, with its type (the type's key), stage and values; its ref is in its type's own prefix (TKT-3). | num, project_id, parent_num, kind, status, parked, parked_until, title, body, outcome, priority, rigour, source, claimed_at, claim_refreshed_at, version, created, updated, plan, success_criteria, waiting_on, acceptance_brief, commits, checks, assigned_to, accepted_at, closed_at, claim_scope, claim_lane, dismissed_at, effort, estimate_minutes, actual_minutes, verdict_kind, verdict_evidence, was_parent, support_ticket, severity, impact, about_num, branch, branch_landed_at, by, yours, tags, token_usage, after, notes, history, ci, type, stage, values |
| Requests | A person's ask in their own words, and the items that deliver it. | num, title, verbatim, status, project_id, author_agent, confirmed, confirmed_by_person, created, updated, closed_how, answer, parked, by, yours, items |
| Threads | Conversations on a record, with every message. To a session says which kind, never which session. | num, anchor_num, state, dispatch_state, dispatch_level, dispatch_executor, dispatch_note, created, updated, project_id, addressed_to, dispatch_accepted_by, messages |
| Docs | A doc's fields. Its words are in its versions. | num, project_id, collection, kind, title, answers, pinned, status, role, version, updated, checked_at, review_days, editor, body, links, by, yours, versions, words |
| Doc versions | Each kept version of a doc, whole. | doc_num, doc_ref, version, title, body, answers, created |
| Reports | Decisions, sign-offs and summaries put to a person, with the choices made. | num, project_id, item_num, title, decision, ask, options, status, kind, for_agents, answer, answered_by, answered_at, parked, park_note, parked_at, resurface_at, resurfaced_at, rev, version, close_pick, close_outcome, holds, outcomes, holds_said, author, harness, device_label, created, updated, revisions, choices, threads, words, by, yours |
| Report pages | Each revision of a report's page: its html, markdown and parts. JSON only. | report_num, report_ref, rev, html, markdown, parts, created, cold_key |
| File records | File records. The bytes are not in the export: download them from Files, or follow link_url for one kept in its own store. | num, project_id, item_num, name, mime, size, hash, title, description, folder, origin, status, author, intake, intake_at, rule_on, rule_ref, rule_date, created, updated, link_url, home, intake_by, links, yours, bytes |
| Schedules | Follow-ups and recurring work, with their runs. Worked-out state that moves with the clock is left out. | num, project_id, kind, title, what, when_text, trigger, due_at, every_days, item_num, ends_at, turn, links, grace_days, snoozed_until, paused, requested_at, finished_at, approved_at, last_ok, last_run, last_status, last_summary, version, author_kind, created, updated, owner_user, watchers, retired_at, retired_why, runs_elsewhere, elsewhere_at, item_closed, by, yours, approved_by, runs |
| Learnings | Learnings: recipes, mistakes, rules and packages, with every version. | num, kind, status, current_version, uses, created, name, project_id, origin, tool_id, pinned, accepted_version, last_used, updated, checked_at, checked_tool_version, rule_mode, rule_strict, category, rule_required, owner_user, hub_held, versions, hints, bundles, rec, machines |
| Handovers | Work passed from one session to another. | num, project_id, title, summary, state, next_actions, pointers, warnings, items, status, archived, claimed_at, completed_at, created, updated, author, history, versions, by, yours |
| Milestones | Goals with the items that reach them. | num, project_id, title, goal, horizon, target_date, status, achieved_at, archived, created, updated, author, total, done, items, by, yours |
| Checklists and testing boards | Checklists and testing boards, with their lines. | num, project_id, module, title, kind, notes, blocking, archived, closed_at, created, updated, waits_on, about_num, snoozed_until, author, open, problem, done, lines_total, lines, by, yours |
| Environment | Where things run: hosts, services, jobs, runbooks, placements and accounts. Where a key lives, never its value. | num, project_id, kind, name, zone, status, locator, detail, approved_at, archived, created, updated, manager, rotate_on, unlocks, author, owner, links, issues, by, yours |
| Builds | Builds and where to get each one. | num, project_id, label, commit_sha, branch, version, platform, changes, get_kind, file_num, url, command, archived, created, updated, author, items, by, yours |
| Tags | Tags: the agents, models, providers, software, systems and tools work names. | num, project_id, kind, name, key, detail, page_num, archived, created, updated, author, records, by, yours |
| Rig pages | Rig pages, every version whole, and where each is shared. | num, project_id, title, version, archived, created, updated, author, shares, versions, by, yours |
| Context lines | Context lines: how quota and models are to be spent, by whose they are, with every version. | scope, project_id, yours, key, title, text, versions |
| Your prompts | The exporter's own prompts and replies. Nobody else's prompts are ever in an export. | id, client_session, route, capture, harness, model, cwd_label, project_id, text, preview, length, is_block, truncated, kept, at, filed_num, left_at, said_by, request_num, placed, has_reply, reply |
| Connections | The workspace's whole, in an owner's whole-workspace export only: one JSON list. | a list of rows as the workspace keeps them |
| Settings | The workspace's whole, in an owner's whole-workspace export only: one JSON list. | a list of rows as the workspace keeps them |
| Tool use | The workspace's whole, in an owner's whole-workspace export only: one JSON list. | a list of rows as the workspace keeps them |
| Rights trail | The workspace's whole, in an owner's whole-workspace export only: one JSON list. | a list of rows as the workspace keeps them |
Fields many parts share:
| Field | Means |
|---|---|
num | the record number: unique across every kind in a workspace, and the file name |
project_id | the project it sits in, or null for loose work or the whole workspace |
title | its title |
status | its state, in the words the app shows |
kind | its kind within the part |
created | when it was made, milliseconds since 1970 UTC |
updated | when it last changed, milliseconds since 1970 UTC |
at | when it happened, milliseconds since 1970 UTC |
by | who made it, by display name |
yours | true when the exporter made it |
author | who wrote it, by display name |
version | its current version number |
archived | 1 when archived |
body | its words, as markdown |
notes | notes on it, oldest first: by, human, body, at |
messages | its messages, oldest first: by, human, body, at |
items | item numbers it is about |
history | its status changes, oldest first |
Fields a row carries only when it has them:
| Field | Means |
|---|---|
ref | its typed id, like ITM-12, as the exporter sees it; #n for one they can see only by number |
refs | version 3: the typed id of each record this one names, in its fields or its words, keyed by number. Only records the exporter can see |
never_git | true when it is kept out of the repo copy; a download keeps it |
lineage | what replaced it, or what it replaced, and where its questions went |
depends_on | reports this one waits on: number and kind |
links | records, projects or people it is linked to |
living_state | version 5: a living report (kind living) is open or closed; carried by living reports only |
final_line | version 5: the line a living report was closed with |
retention_class | version 5: how long a living report is kept: temporary, product or kept |
living_closed_at | version 5: when a living report was closed, milliseconds since 1970 UTC |
living_closed_by | version 5: who closed a living report, by display name |
Versions and the promise
This is version 6. Its number is in commonrig.json and in every markdown file's front matter.
- Within a version, nothing changes: the same paths, file names, front matter keys and JSON fields, meaning the same thing.
- Any change to any of those is a new version, described here. CommonRig's own tests fail if the export changes without one.
- A restore reads every version from 1 on, so an old export always comes back. One from a newer CommonRig is refused by name, never half read.
- A new version only adds or reshapes. Your words, and the JSON field each sits in, are never dropped from an export.
| Version | What changed |
|---|---|
| 3 | Front matter and wikilinks in every markdown file, so the export opens as an Obsidian vault; refs in the JSON. Paths and every other field as in 2. |
| 2 | One file a record, markdown beside JSON, paths by record number; commonrig.json and README.md at the top. |
| 1 | One export.json holding every part, with an export.md to read. A restore still reads it. |
Reading it with your own tools
The format is open: use it to move your work to another tool, or to build on it. Read commonrig.json first and check format and version. Then read only the .json files: the markdown is for people and its layout can differ between versions, while each JSON field keeps its meaning.
- Link records by
num, and show them byref. - Ignore any field in a row that you don't know.
- Bring an export back with Restore from an export, under Your data, into a new, empty workspace.
Checked against the code at e28af69c. Site built from f04f4af1.