Skip to content

Revisions and history

A Revision is a commit on the Workspace’s default branch that changed the Model. The Model lives in git, so its history is git’s history, and Archidocs tells it in Revisions.

  1. Commits on the default branch. Those that changed the Model are Revisions.
  2. archidocs build writes a Bundle of the Model at each kept Revision.
  3. History and Compare:
    • in the viewer
    • over MCP

A Workspace Bundle is the combined Model at one commit, as one JSON file. The viewer and the MCP server read Bundles, never the YAML.

archidocs build writes the latest Bundle beside the viewer, and one Bundle for each past Revision it keeps. It keeps the latest 200 Revisions and every tagged one. The archidocs build reference says how to keep more or fewer.

Building a past Bundle means checking that commit’s Model, which takes time. So Archidocs caches the Bundles it has built in .archidocs/cache/ at the repo root, which archidocs init adds to .gitignore. In CI, keep that folder in the CI cache, and check out the full git history.

A Change is one item of the Model added, removed or changed between two points: an Element renamed, a Relationship added, a Deployment’s URL changed. archidocs diff lists them between two git refs or dates:

Terminal window
archidocs diff v1.0.0 main

With one point, it compares that point with your working tree, so you can see what an edit changes before you commit. A date means the last Revision at or before it; a time without a zone is UTC, and a date before the first Revision names nothing. See Review changes with diff.

A published viewer shows the Model at any kept Revision. Pick one from the history, and every View, Lens and panel shows the architecture as it was then.

Compare shows what changed between two Revisions on the diagram itself, with added, removed and changed Elements marked. The URL holds both points, so a comparison can be shared as a link. A pull request preview opens on Compare, from the base branch to the pull request. See Preview pull requests.

Over MCP, list_history lists the Revisions. get_changes lists the Changes between two.

  • Git is the history. The Model is already in git, so Archidocs keeps no database of its own to back up or keep in step. Any past commit can be read again.
  • Bundles are build outputs, not archives. A Bundle can always be rebuilt from git. Losing the cache costs only build time: any Revision missing from it is built again.
  • Only the default branch. A date picks the last Revision on the default branch at or before it, following first parents. Commits on merged pull request branches aren’t points of their own, so the history reads as the architecture people actually had.
  • A kept number of Revisions. One Bundle per Revision grows with every commit. Keeping the latest 200 and every tag bounds the published site, while tagged releases stay comparable for good.

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.