# zit 0.14.12

zit 0.14.12 gives each new repository a random project code, as Fossil
does, so two repositories made at the same place are never taken for one.

This release is from trunk. Stores, caches and the wire are unchanged from
0.14.11; nothing is rebuilt on upgrade, and no existing repository's
project code changes.

## A random project code for each new repository

`zit init`, `zit import-git` and `zit import-fossil` set a new repository's
project code from the path of its store. Two repositories made at the same
path, one deleted and the other created in its place, or the same path on
two machines, therefore had the same code. The project code is how a peer
tells repositories apart, so:

- `zit serve` refused a push or pull from a different project only when
  the codes differed, and accepted one from an unrelated repository that
  happened to share a path.
- The login secret is derived from the project code, user and password, as
  in Fossil, so a secret saved for one repository worked at the other.
- A forge that creates repositories with `zit init` gave a repository
  recreated under the same name its predecessor's code.

These commands now draw 20 random bytes for the code, as Fossil does, and
fail before writing anything if the system has no source of randomness. A
clone takes its origin's code, as before; if an origin sends none, the
clone gets a random one, where Fossil leaves it without.

Existing repositories keep their codes. A code cannot change without
breaking every clone of the repository, so nothing rewrites one.

`import-fossil --submanifest` records the old-to-new map in a technote whose
text is the same on every run; its artifact hash now differs on every run,
because it includes the new project code.

## Qualification

The release manifest records native qualification against the exact tagged
source archive on macOS ARM64, Linux x86-64 and Linux ARM64, using the pinned
Zig 0.17.0 toolchain. Publication is gated on unit and end-to-end tests, Git
differentials, deterministic simulation, seeded fuzzing, and Fossil
interoperability checks on every distributed target.

For the basis of the conformance claim, see
[the 0.1.0 release notes](RELEASE-NOTES-0.1.0.md).
