Ownership contract¶
fitdocs writes into a folder that may also hold your own notes. The rules for who owns what are a published, versioned contract (currently version 16). This page summarizes it. The full contract is the authoritative version.
What fitdocs owns¶
fitdocs may create, rewrite, or delete these, and writes nowhere else:
| Path | Contents |
|---|---|
workouts/ and workouts/assets/ |
One page per activity, plus charts and maps |
history/ and history/assets/ |
The training-history page and its chart |
recovery/ and recovery/assets/ |
The recovery page and its charts |
blocks/ |
Block pages and planned-workout pages |
dashboards/assets/ |
Dashboard chart images and frozen-chart snapshots |
fit-archive/ |
Your source .fit files, named by content hash and never modified |
wellness-archive/ |
Your wellness source files, never modified |
wellness/ |
The daily wellness series, rebuilt from wellness-archive/ |
.cache/ |
Map tiles |
.fitdocs/ |
fitdocs' own state: the quarantine record, files held because they matched more than one page, and each connector's delivery record |
In dashboards/, the pages are yours. fitdocs writes only inside each chart's region, which it adds below the chart's directive if it's missing, plus dashboards/AGENTS.md. It never creates, renames, or deletes a dashboard page.
It also writes to the locations your settings name: the inbox folder and, if you opt in, processed_dir. A connector delivers into its own subfolder of the inbox, and removes those deliveries once they're archived.
Two things live outside the data root: connector credentials, in your user's config folder, and the analytics index, a disposable cache in your user's cache folder. See Configuration.
What you own¶
fitdocs.toml: fitdocs only reads it.- Your plan folder (
plans/by default): fitdocs only reads it. - Your dashboard pages: their prose, headings, frontmatter, and chart directives. fitdocs only reads them, apart from the chart regions.
athlete.toml: shared. fitdocs adds values you confirm or that it derives, but never overwrites one you entered, and keeps every key it doesn't manage exactly as it was.- Everything else in the data root: fitdocs never reads or writes it.
Inside a generated page¶
| Region | Owner | On regeneration |
|---|---|---|
notes |
you | kept word for word |
workout (strength pages) |
you | kept word for word |
load |
fitdocs | kept; only replaced when you run fitdocs load --recompute |
morning (the Morning Of block) |
fitdocs | refreshed from your wellness series; hand edits are replaced |
effort, effort_distance_m, effort_time_s, effort_event frontmatter keys |
you | kept word for word |
| everything else | fitdocs | rebuilt |
Regions are marked with <!-- fitdocs:begin:NAME --> / <!-- fitdocs:end:NAME -->. Don't add markers of your own. A page with a marker fitdocs doesn't recognize is refused regeneration until the marker is removed. That way fitdocs never guesses about content it doesn't understand.
No operation throws away your region or race-tag content. It’s yours to do with as you’d like, and when you upgrade fitdocs versions and regenerate your wiki, it persists.
Several files, renames, and links¶
- Each workout has one page. Files of the same workout from different sources share a page. fitdocs never merges two existing pages: a file that matches more than one is archived and held, and
fitdocs checkreports it. - Pages can be renamed. When a page's best file changes and gives a different name, fitdocs renames the page, even one you named yourself, and moves its charts, with a warning. A page whose name fitdocs chose is also renamed when its local start time changes.
- Links are never rewritten. fitdocs doesn't update links to a renamed page, in its own pages or in your notes.
How the rules are shown¶
AGENTS.mdinworkouts/,fit-archive/,history/,blocks/,dashboards/,wellness/,wellness-archive/, andrecovery/: the contract restated for people and LLM agents browsing the folder. Refreshed by everysyncandregen, and byhistory,plan, andrecoverywhen they write.- A one-line notice at the top of every generated page.
fitdocs check: confirms the whole tree still matches.
All three are generated from the same source code, and a test keeps the published contract in sync with it.
Versions¶
- The contract version changes whenever a guarantee changes: a new owned path, a new page type, or a new class of user-owned key. The changelog calls it out, along with what (if anything) you need to do.
- Each page's
doc_versiontracks its file format. When it changes,fitdocs checktells you andfitdocs regenupdates your pages. If a page was written by a newer fitdocs than the one you have installed, fitdocs leaves it alone rather than downgrading it.
See the compatibility policy for exactly what each version number promises.