CommonRig docsOpen the app

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.

PartFilesMarkdownTyped ids
Projectsprojects/<id>.json, projects/<id>.mdyesnone
Item typestypes/<key>.json, types/<key>.mdyesnone
Itemsitems/<num>.json, items/<num>.mdyesITM, a custom type's own, like TKT
Requestsrequests/<num>.json, requests/<num>.mdyesREQ
Threadsthreads/<num>.json, threads/<num>.mdyesTHR
Docsdocs/<num>.json, docs/<num>.mdyesDOC
Doc versionsdocs/<doc num>.v<version>.json, docs/<doc num>.v<version>.mdyesnone
Reportsreports/<num>.json, reports/<num>.mdyesRPT
Report pagesreports/<report num>.page-<rev>.jsonJSON onlynone
File recordsfiles/<num>.json, files/<num>.mdyesFIL
Schedulesschedules/<num>.json, schedules/<num>.mdyesSCH
Learningslearnings/<num>.json, learnings/<num>.mdyesCRD, RUL, PKG
Handovershandovers/<num>.json, handovers/<num>.mdyesHND
Milestonesmilestones/<num>.json, milestones/<num>.mdyesMIL
Checklists and testing boardschecklists/<num>.json, checklists/<num>.mdyesCHK, TST
Environmentenvironment/<num>.json, environment/<num>.mdyesHST, SVC, JOB, RBK, PLC, ACC
Buildsbuilds/<num>.json, builds/<num>.mdyesBLD
Tagstags/<num>.json, tags/<num>.mdyesTAG
Rig pagespages/<num>.json, pages/<num>.mdyesPAG
Context linesquota/workspace.json, quota/yours.json, quota/project-<id>.json, quota/yours-in-<id>.json, quota/person-<key>.json, and a .md beside eachyesnone
Your promptsprompts/<id>.json, prompts/<id>.mdyesnone
Connectionsworkspace/connections.jsonJSON onlynone
Settingsworkspace/settings.jsonJSON onlynone
Tool useworkspace/tools.jsonJSON onlynone
Rights trailworkspace/audit.jsonJSON onlynone

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 (always commonrig-export), version, workspace, scope (mine for your own export, workspace for an owner's whole one), work_data (true when the workspace holds work data) and counts, 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:

KeyHolds
idthe typed id (ITM-12), or #n, or a project or prompt id; a doc version is DOC-n.v<version>
numthe record number, where it has one
typeproject, item_type, item, request, thread, doc, doc_version, report, file, schedule, learning, handover, milestone, checklist, environment, build, tag, page, context or prompt
titleits title or name
kindits kind, where it has one
statusits status, where it has one
priorityits priority, where it has one
projectits project id
tagsits tags, cleaned to what Obsidian takes as a tag
createdISO 8601 UTC
updatedISO 8601 UTC
atISO 8601 UTC, for a prompt
aliasesits typed id, so Obsidian finds it by ITM-12
linkswikilinks to its project and every record in refs, as [[items/12|ITM-2]]
commonrig_exportthe format version that wrote the file
items/11.md
---
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: done or type: 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.

PartWhat it holdsFields
ProjectsEach 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 typesVersion 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
ItemsWork: 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
RequestsA 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
ThreadsConversations 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
DocsA 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 versionsEach kept version of a doc, whole.doc_num, doc_ref, version, title, body, answers, created
ReportsDecisions, 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 pagesEach 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 recordsFile 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
SchedulesFollow-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
LearningsLearnings: 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
HandoversWork 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
MilestonesGoals 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 boardsChecklists 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
EnvironmentWhere 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
BuildsBuilds 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
TagsTags: 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 pagesRig pages, every version whole, and where each is shared.num, project_id, title, version, archived, created, updated, author, shares, versions, by, yours
Context linesContext 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 promptsThe 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
ConnectionsThe workspace's whole, in an owner's whole-workspace export only: one JSON list.a list of rows as the workspace keeps them
SettingsThe workspace's whole, in an owner's whole-workspace export only: one JSON list.a list of rows as the workspace keeps them
Tool useThe workspace's whole, in an owner's whole-workspace export only: one JSON list.a list of rows as the workspace keeps them
Rights trailThe 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:

FieldMeans
numthe record number: unique across every kind in a workspace, and the file name
project_idthe project it sits in, or null for loose work or the whole workspace
titleits title
statusits state, in the words the app shows
kindits kind within the part
createdwhen it was made, milliseconds since 1970 UTC
updatedwhen it last changed, milliseconds since 1970 UTC
atwhen it happened, milliseconds since 1970 UTC
bywho made it, by display name
yourstrue when the exporter made it
authorwho wrote it, by display name
versionits current version number
archived1 when archived
bodyits words, as markdown
notesnotes on it, oldest first: by, human, body, at
messagesits messages, oldest first: by, human, body, at
itemsitem numbers it is about
historyits status changes, oldest first

Fields a row carries only when it has them:

FieldMeans
refits typed id, like ITM-12, as the exporter sees it; #n for one they can see only by number
refsversion 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_gittrue when it is kept out of the repo copy; a download keeps it
lineagewhat replaced it, or what it replaced, and where its questions went
depends_onreports this one waits on: number and kind
linksrecords, projects or people it is linked to
living_stateversion 5: a living report (kind living) is open or closed; carried by living reports only
final_lineversion 5: the line a living report was closed with
retention_classversion 5: how long a living report is kept: temporary, product or kept
living_closed_atversion 5: when a living report was closed, milliseconds since 1970 UTC
living_closed_byversion 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.
VersionWhat changed
3Front 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.
2One file a record, markdown beside JSON, paths by record number; commonrig.json and README.md at the top.
1One 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 by ref.
  • 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.