Backend code with clear, testable boundaries.
Recent revisions are kept. Restoring one creates a new revision.