Skip to content

SHA-256 Git repository per space

Mr. Lister stores authoritative TOML and Markdown files in one independent SHA-256 Git repository per space. A profile is a directory with a manifest, not a parent repository or a submodule hierarchy. SQLite is a disposable index, and grants and credentials remain outside the space repositories.

This makes the space a real storage and security boundary. Each space can have its own remote and encryption key, or remain entirely local. Item files have stable identifiers, and one logical operation creates one attributed commit.

A single repository per profile would enable atomic cross-space changes but would weaken repository-level boundaries and couple otherwise independent histories and remotes. Submodules add a second history without solving the application’s manifest or authorization needs.

SHA-1 offers wider tooling compatibility today, but switching existing space repositories later would require rebuilding histories and identifiers. Starting with SHA-256 avoids that migration. Compatibility with every host and GUI client is not promised; supported sync hosts must be verified before release.

Object IDs are 64 hexadecimal characters; code must not assume a 40-character identifier. Moving an item between spaces is copy-then-delete, two commits with one batch identifier, not an atomic transaction.

Local Git operations use vendored git2 0.22.0-rc.1, pinned because 0.22 stable is not yet published. A real M0 test initializes SHA-256, commits one file, reopens the repository, and checks both object format and file contents. The sync layer will use system Git for remote authentication and transport. CI checks out this SHA-256 monorepo on Windows, macOS, and Linux.