Skip to content
prikk-vcsPublic

About

Patch theory based and practical support orientated VCS.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Prikk

documentation license CI
Report a vulnerability

Prikk is a standalone distributed version control system built around block-oriented patch theory.

Prikk uses a native .prikk/ repository format. It is not a Git wrapper and does not use .git/ as a storage backend. The project aims to combine patch-based semantic precision with practical performance by sealing history into immutable blocks and keeping expensive patch reasoning bounded to active work.

Prikk is an early implementation. It suits architecture review, experimentation, and contribution. Do not use Prikk as the sole store for important project history yet — the repository format and command surface are still evolving, and future releases may require migration. See the release, versioning, and compatibility reference for the pre-1.0 boundary.

Project Goals

Prikk is designed to be:

  • easy to use for ordinary local development workflows;
  • safe and secure by default, with role-bound signatures and fail-closed validation;
  • resilient against corruption, interrupted operations, and lost mutable pointers;
  • flexible enough for local and peer workflows, and for a forge built on its command line (planeter hosts repositories that exchange files with prikk);
  • fast for long-lived repositories by separating active patch reasoning from sealed block history;
  • explainable when patch reasoning cannot prove a safe result.

Core Ideas

  • Patch: an atomic logical change with ordered operations and an AUTHOR signature.
  • Block: an immutable sealed collection of patches; blocks are the scalability boundary.
  • Ref state: signed reference state; ref files are pointers, not the root of trust.
  • Ref update: append-only publication evidence for a ref transition.
  • WAL: active signed patch envelopes before sealing.
  • Repository layout: .prikk/ stores native Prikk objects, refs, active WAL state, and local trust data; see the repository layout reference.
  • Concurrency and locking: local lock files guard active-session and ref publication writes; see the concurrency and locking reference.
  • Path safety: repository paths use a conservative validated subset; see the path and worktree safety reference.
  • Attestation: future audit/policy evidence targeting blocks without defining block identity.

Good Fit

Prikk may be a good match if you are:

  • evaluating next-generation VCS architecture;
  • interested in patch theory, commutation, conflict evidence, or signed history;
  • building tools that need verifiable local history and conservative recovery behavior;
  • contributing to a Rust implementation of a correctness-sensitive CLI and storage system;
  • reviewing security, durability, and publication-trust boundaries.

Install

curl -fsSL https://github.com/prikk-vcs/prikk/releases/latest/download/install.sh | sh

Downloads the prebuilt archive for your platform, verifies its checksum, and installs to ~/.local/bin. Also available as cargo binstall prikk, cargo install prikk, or a direct download from the release page.

Repository mutation runs on Linux, macOS, and Windows; read-only commands build and run on every platform Rust targets. Every release tag is signed by the project's one maintainer key, and the checksum beside each download proves integrity of transport; there is no support window or stability promise before 1.0 — see how prikk releases.

Separately from that product-level promise, the Rust library crates below (prikk-store and the rest) have no stability promise in v0. They exist so prikk's own binary can depend on them and so their types are reachable from documentation. The prikk CLI's own output — stdout/stderr text and --format json — is the interface to build on. Whether the library API ever gains its own stability promise is a decision made at 1.0, on its own RFC — see release, versioning, and compatibility for the project's current policy in full.

The install guide covers pinning a version, verifying checksums by hand, building from source, uninstalling, and the per-platform detail; the platform support reference has the exact command-by-command matrix.

Quick Start

prikk setup ./sample-repo
cd ./sample-repo

setup initialises the repository, generates your own author and maintainer keys, adopts the maintainer key, and prints the four export lines you need. Run those, then:

echo "hello prikk" > readme.txt
prikk commit -m "genesis"
prikk seal --allow-no-audit

prikk log
prikk verify
prikk doctor

The seeds setup prints are real signing keys and are yours alone. It says so itself: at least one of them lands in your terminal scrollback, so treat it as a secret. See Security and Signing Setup for the current setup boundary.

The commands above, with explanation and the two refusals you will actually hit along the way, are the Tutorial — this block is a copy-pasteable summary of it, not a second, independent walkthrough; its authority for what each step means and why is the tutorial page. The tutorial uses a fixed public example seed instead of setup, so its transcript is exactly reproducible and you can compare your output to it line by line — that is the one place a shared, publicly known key belongs, and it must never be used for real signing. First Run covers setup itself, including what it does not do.

Ran into a refusal, or wondering why a step works the way it does? The Troubleshooting and FAQ pages cover exactly this walkthrough — including why ref names are fully qualified (heads/topic, not topic), why commit and seal each need their own key, and how commits queue across multiple commit calls before one seal.

Useful Commands

Every command accepts --help for its own usage:

prikk <command> --help   # or: prikk help <command>

The full inventory, with exit-code semantics, is the command surface reference.

Current State

What works today, and the limits worth knowing before relying on it, are in the current state reference.

Related projects

Three separate projects are built around prikk, each described here in the words of its own published README: stikk is "a history browser and workbench for the prikk version control system"; planeter is "The forge for the prikk version-control system — the web service that hosts prikk repositories and the collaboration around them"; brygge "carries version-control history from one system to another". They are released separately, and prikk's guarantees cover prikk, not them.

What prikk itself does, as measured: it has no network code, so sync, bundle and archive write files that you carry to the other repository yourself; and a branch that already exists in a repository advances only by a signature made in that repository. The current state reference has the detail.

Crates

prikk is the command-line tool. The others are the libraries it is built from, published so the CLI can be built from crates.io — their APIs may change without notice before 1.0.

Crate Purpose Version Docs Dependencies
prikk the command-line tool crates.io documentation Dependency Status
prikk-store repository storage engine — layout, object storage, WAL durability, verification, patch replay crates.io docs.rs Dependency Status
prikk-object object identity, canonical encoding, and payload types crates.io docs.rs Dependency Status
prikk-replay replay and lifecycle semantics crates.io docs.rs Dependency Status
prikk-crypto Ed25519 signing and verification crates.io docs.rs Dependency Status
prikk-hash SHA-256 primitives crates.io docs.rs Dependency Status
prikk-error shared error taxonomy crates.io docs.rs Dependency Status
prikk-ffi Windows filesystem-identity FFI bindings crates.io docs.rs Dependency Status

Development Gates

Every change this project accepts passes the full gate set in rfcs/EXECUTION-ORDER.md §6 rule 9, which that document owns. The three commands worth running constantly, the rest of the set, and how work is reviewed here are in CONTRIBUTING.md.

More Detail

The roadmap, RFCs, and mdBook docs are the best entry points for design details:

About

Patch theory based and practical support orientated VCS.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages