navid/veins / commit

21a3deab5474

Navid M <navidmomtahen@gmail.com> · 2026-11-26

parents: aa947294b511

Browse files at this commit · Download source

all: rebrand to veins
--- a/docs/SPECIFICATION_V1.adoc+++ b/docs/SPECIFICATION_V1.adoc@@ -1,4 +1,4 @@-= vein: Version Control System Specification+= veins: Version Control System Specification :revnumber: 0.1-draft :revdate: 2026-11-24 :doctype: book@@ -11,7 +11,7 @@ :experimental:  [abstract]-vein (command-line program: `vn`) is a single-user-first version control system built around a chunked, content-addressed object store, an operation log with stable change IDs, and first-class conflicts that never insert markers into files. It keeps a two-way bridge to git so history can be imported from git, mirrored to git, and abandoned back to git at any time.+veins (command-line program: `vn`) is a single-user-first version control system built around a chunked, content-addressed object store, an operation log with stable change IDs, and first-class conflicts that never insert markers into files. It keeps a two-way bridge to git so history can be imported from git, mirrored to git, and abandoned back to git at any time.  NOTE: This is a draft. Items marked *(review)* should be confirmed. <<sec-open-questions,Open questions>> lists unresolved items. @@ -20,7 +20,7 @@  === Purpose -vein exists because git has three properties that are painful for the primary use case (a solo developer working on large projects, some of which commit large generated files that are regenerated many times):+veins exists because git has three properties that are painful for the primary use case (a solo developer working on large projects, some of which commit large generated files that are regenerated many times):  . Cloning repositories with many large, similar revisions is slow because pack files do not store object IDs for deltified objects. A client must reconstruct each object by walking its delta chain and then hash it ("Resolving deltas"). . Merges can leave the repository or working tree in a half-finished state, and conflicts are expressed by inserting `<<<<<<<` markers into the files themselves.@@ -31,7 +31,7 @@ . *Fast clone and checkout* for histories with many large, similar revisions. No step of clone or checkout may scale with delta-chain length. . *Seamless rollback.* Every state-changing command is recorded as an operation, and any operation can be undone or restored. . *Seamless merges.* A merge never fails and never blocks. Conflicts are values stored in history, not text inserted into files.-. *Lossless git interoperability.* History can be imported from git, exported to git, and round-tripped with identical git object IDs. A user can leave vein for git at any time without losing commit history.+. *Lossless git interoperability.* History can be imported from git, exported to git, and round-tripped with identical git object IDs. A user can leave veins for git at any time without losing commit history. . *Remote sharing* through a native fetch/push protocol with lazy chunk fetching. . *Controlled sharing.* A server grants identified keys read-only or read-write access to a repository, and can optionally serve a repository to anonymous readers. Read-only access is a core v1 feature. . *Corruption resistance.* Silent data loss is treated as a worse failure than a crash.@@ -38,8 +38,8 @@  === Non-goals -* Replacing git as an ecosystem. Pull requests, issues, and CI remain git-hosted, and vein interoperates with them through the bridge.-* Delta compression. vein trades some store size for random access and fast reads (see <<sec-perf,Performance requirements>>).+* Replacing git as an ecosystem. Pull requests, issues, and CI remain git-hosted, and veins interoperates with them through the bridge.+* Delta compression. veins trades some store size for random access and fast reads (see <<sec-perf,Performance requirements>>). * Semantic (AST-level) merging in v1. The merge engine is designed so a structural layer can be added later. * User accounts, passwords, groups, per-bookmark or per-path permissions, or other hosting features in the server. Access control in v1 is per repository and per key (see <<sec-auth,Authentication and authorization>>). * Multi-writer concurrency beyond what the operation log provides (see <<sec-oplog,Operation log>>).@@ -46,7 +46,7 @@  === Naming -The product and file format are named *vein*. The command-line program is named `vn` (`vn.exe` on Windows). All command examples in this document use `vn`. The name `vein` is retained for the repository directory (`.vein/`), configuration and attribute files (`.veinignore`, `.veinattributes`), the object-ID domain separator, and reserved header keys (`vein-change-id`, `vein-sig`). Conforming implementations of the format are not required to ship a program called `vn`.+The product and file format are named *veins*. The command-line program is named `vn` (`vn.exe` on Windows). All command examples in this document use `vn`. The name `veins` is used for the repository directory (`.veins/`), configuration and attribute files (`.veinsignore`, `.veinsattributes`), the object-ID domain separator, and reserved header keys (`veins-change-id`, `veins-sig`). Conforming implementations of the format are not required to ship a program called `vn`.  === Conventions @@ -58,7 +58,7 @@ |=== | Term | Meaning -| vn | The command-line program (`vn.exe` on Windows) used to operate on vein repositories.+| vn | The command-line program (`vn.exe` on Windows) used to operate on veins repositories. | Object | An immutable, content-addressed record in the store (chunk, blob, tree, commit, conflict, operation, or view). | Chunk | A content-defined slice of file data, stored as an independent object. | Blob | The object that represents a file's content: either inline data or a manifest of chunks.@@ -70,7 +70,7 @@ | View | The set of heads, bookmarks, tags, and working-copy commits at a point in time. | Bookmark | A named, movable pointer to a commit. Maps to a git branch. | Working copy | The files on disk, tracked as a commit (see <<sec-wc,Working copy>>).-| Mirror | The bare git repository `.vein/git` that vein keeps in sync with its own history.+| Mirror | The bare git repository `.veins/git` that veins keeps in sync with its own history. | Promised object | An object known to exist on a remote and fetched on demand. | Key | An Ed25519 key pair. The public key is a client's identity on a server. | Role | The permission a key holds on a repository: `read` or `write`.@@ -85,11 +85,11 @@ |=== | Topic | Decision -| Git relationship | Two-way. vein can export to git and import commits back from git (for example contributor pull requests).+| Git relationship | Two-way. veins can export to git and import commits back from git (for example contributor pull requests). | Remotes | Full native fetch/push protocol with lazy chunk fetching. | Object hash | BLAKE3 (256-bit). Git SHA-1 IDs are computed only on export, and cached. | History identity | Operation log plus stable change IDs.-| Renames | Recorded explicitly in vein commits. Heuristic detection is used for imported git history.+| Renames | Recorded explicitly in veins commits. Heuristic detection is used for imported git history. | Conflict presentation | The working-copy file is clean (no markers), accompanied by `.base`, `.ours`, and `.theirs` sidecar files. | Authentication | Native Ed25519 keys, verified by `vn serve` itself and independent of the transport. | Authorization | Per-repository roles only: `read` and `write`.@@ -110,9 +110,9 @@ | Platform | Linux and macOS first. Windows is deferred. | Authentication handshake | Challenge-response with an Ed25519 signature over both nonces, the repository name, the protocol version, and a transport channel binding (see <<sec-auth,Authentication and authorization>>). | Transport security rule | Authentication is accepted only on secure transports (SSH, TLS, local). Insecure transports may carry only anonymous reads of public repositories.-| Reference transports | SSH (stdio), TLS 1.3 (`vein://`), and local stdio (`file://`).-| Access management | A text file `.vein/access` in the served repository, edited only locally on the server with `vn access`. There is no remote administration in v1.-| Revocation | Removing a key from `.vein/access`. Takes effect on new connections, and open sessions are re-checked when the file changes.+| Reference transports | SSH (stdio), TLS 1.3 (`veins://`), and local stdio (`file://`).+| Access management | A text file `.veins/access` in the served repository, edited only locally on the server with `vn access`. There is no remote administration in v1.+| Revocation | Removing a key from `.veins/access`. Takes effect on new connections, and open sessions are re-checked when the file changes. | Write role scope | `write` can update or delete any ref. Repo-wide protections are listed in open questions. | Client key storage | Per-user key directory with owner-only permissions and optional passphrase protection. Import of OpenSSH Ed25519 keys is allowed. |===@@ -158,7 +158,7 @@ | `time_ms` | `i64` milliseconds since the Unix epoch, `i16` timezone offset in minutes. |=== -Names, paths, emails, and messages are arbitrary bytes. vein MUST NOT assume UTF-8 for stored data.+Names, paths, emails, and messages are arbitrary bytes. veins MUST NOT assume UTF-8 for stored data.  [[sec-ids]] === Object IDs@@ -165,7 +165,7 @@  [source,text] -----object_id = BLAKE3( "vein/1" 0x00 || type_byte || body )+object_id = BLAKE3( "veins/1" 0x00 || type_byte || body ) ----  [cols="1,2",options="header"]@@ -244,9 +244,9 @@ | `0x06` | Conflict (conflict object ID) |=== -Entry name rules. A name MUST be non-empty, MUST NOT be `.` or `..`, MUST NOT contain `/` or NUL, and MUST NOT equal `.vein` (any case). Implementations MUST refuse to check out a tree containing a name equal, case-insensitively, to `.git` or `.vein`.+Entry name rules. A name MUST be non-empty, MUST NOT be `.` or `..`, MUST NOT contain `/` or NUL, and MUST NOT equal `.veins` (any case). Implementations MUST refuse to check out a tree containing a name equal, case-insensitively, to `.git` or `.veins`. -NOTE: vein sorts directory entries as plain names. Git sorts directory entries as if they ended with `/`. The git exporter MUST re-sort entries using git's rule.+NOTE: veins sorts directory entries as plain names. Git sorts directory entries as if they ended with `/`. The git exporter MUST re-sort entries using git's rule.  Empty directories are not representable and are not tracked. @@ -294,8 +294,8 @@          ; sorted by (parent_index, to_path) ---- -* `renames_state = 1` means the renames list is authoritative: any path not listed was not renamed relative to that parent. `renames_state = 0` means rename information is unknown and the merge engine MUST fall back to heuristics. Commits created by vein use state 1. Commits imported from git use state 0.-* `extra` carries headers from imported git commits (`encoding`, `gpgsig`, `mergetag`, and others) so they can be exported verbatim. Keys beginning with `vein-` are reserved.+* `renames_state = 1` means the renames list is authoritative: any path not listed was not renamed relative to that parent. `renames_state = 0` means rename information is unknown and the merge engine MUST fall back to heuristics. Commits created by veins use state 1. Commits imported from git use state 0.+* `extra` carries headers from imported git commits (`encoding`, `gpgsig`, `mergetag`, and others) so they can be exported verbatim. Keys beginning with `veins-` are reserved. * The change ID is generated randomly when a change is first created and copied unchanged when the change is rewritten (amended, rebased, squashed). * A commit is *conflicted* if its tree, recursively, contains an entry of kind `0x06`. This is derived and MUST NOT be stored in the object. Implementations MAY cache it in an index. @@ -361,8 +361,8 @@  [source,text] -----.vein/-  format               "vein-store 1"+.veins/+  format               "veins-store 1"   config               local configuration (never tracked)   access               server only: authorized keys and the anonymous-read setting   lock                 advisory lock for compaction and gc@@ -371,7 +371,7 @@     tmp/               in-progress writes   op_heads/            one empty file per current operation head (named by op ID)   git/                 bare git repository (the mirror)-  git-map/             mapping tables between vein IDs and git IDs+  git-map/             mapping tables between veins IDs and git IDs   working_copy/        stat cache, draft-edit references, conflict bookkeeping   resolutions/         recorded conflict resolutions ----@@ -378,7 +378,7 @@  === Pack files -vein has no loose objects and no deltas. Objects are stored in pack files that are written once and never modified.+veins has no loose objects and no deltas. Objects are stored in pack files that are written once and never modified.  [source,text] ----@@ -468,8 +468,8 @@  === Change IDs -* A change ID is created when a commit is first created by vein (random, 16 bytes), and is copied to the rewritten commit when that commit is amended, rebased, or squashed.-* A commit imported from git receives a change ID derived deterministically from its git SHA-1 (the first 16 bytes of BLAKE3 over `"vein/change" || git_sha`), unless the git commit carries a `vein-change-id` header, in which case that value is used.+* A change ID is created when a commit is first created by veins (random, 16 bytes), and is copied to the rewritten commit when that commit is amended, rebased, or squashed.+* A commit imported from git receives a change ID derived deterministically from its git SHA-1 (the first 16 bytes of BLAKE3 over `"veins/change" || git_sha`), unless the git commit carries a `veins-change-id` header, in which case that value is used. * Change IDs are displayed in lowercase base32 (RFC 4648 alphabet), as the shortest unique prefix with a minimum of 4 characters. * If two or more visible commits share a change ID, the change is *divergent*. `vn log` MUST flag divergence, and the commits are addressed by commit ID until one is abandoned. * Commands accept change IDs, commit ID prefixes, bookmark names, and `@` (the working-copy commit) wherever a revision is expected. A change ID that resolves to one visible commit refers to that commit.@@ -479,7 +479,7 @@  === Model *(review)* -The working copy is represented by a commit (conventionally `@`) recorded in the view per workspace. Before each command that reads or writes the working copy, vein MUST snapshot the files on disk into `@` (creating a new commit with the same change ID, and an operation if anything changed). Consequences:+The working copy is represented by a commit (conventionally `@`) recorded in the view per workspace. Before each command that reads or writes the working copy, veins MUST snapshot the files on disk into `@` (creating a new commit with the same change ID, and an operation if anything changed). Consequences:  * There is no staging area and no stash. Every on-disk edit is captured in history and can be restored through the operation log. * `vn new` starts a new empty change on top of `@`. `vn describe` sets a message. `vn commit -m <msg>` is `describe` followed by `new`.@@ -488,7 +488,7 @@ === Snapshotting  * Tracked state is determined by the tree of the working-copy commit, plus any new files that are not ignored.-* vein MUST keep a stat cache (path, size, mtime in nanoseconds, inode, content ID) in `.vein/working_copy/`. A file whose stat data is unchanged MUST NOT be re-read. A file whose mtime is within a "racy" window (less than 2 seconds old relative to the cache write) MUST be re-verified by content.+* veins MUST keep a stat cache (path, size, mtime in nanoseconds, inode, content ID) in `.veins/working_copy/`. A file whose stat data is unchanged MUST NOT be re-read. A file whose mtime is within a "racy" window (less than 2 seconds old relative to the cache write) MUST be re-verified by content. * New or changed files are chunked and hashed in parallel. Files are only read once. * Ignore rules come from `.vnexclude` (gitignore syntax). If `ignore.git = true` (default), `.gitignore` files are also honored. * File modes: only the owner execute bit is tracked. Line endings are not translated; bytes on disk are bytes in the store.@@ -605,7 +605,7 @@ . A file-versus-directory conflict is materialized with `<path>` set to the `ours` side and the other side written as `<path>.theirs` (a file or directory tree). . `vn conflicts` lists each conflicted path, its kind, and for text conflicts the line ranges of the conflicting hunks within `<path>` and within each sidecar. The `--porcelain` format MUST be stable, tab-separated, and documented. An editor integration can use it. . `vn status` shows conflicted paths and the number of conflicted commits in the ancestry of `@`.-. Edits to `<path>` while the conflict is unresolved are *drafts*. The snapshot stores the draft as a blob, referenced from `.vein/working_copy/` and from the view of the working-copy operation, so that the edit is recorded and survives undo and checkout. A draft never alters the stored conflict.+. Edits to `<path>` while the conflict is unresolved are *drafts*. The snapshot stores the draft as a blob, referenced from `.veins/working_copy/` and from the view of the working-copy operation, so that the edit is recorded and survives undo and checkout. A draft never alters the stored conflict.  === Resolving @@ -630,11 +630,11 @@  === Resolution memory -When `merge.rerere = true` (default), vein records resolutions: the key is the BLAKE3 of the simplified conflict object, and the value is the resolved blob ID. The recorded resolutions are stored in `.vein/resolutions/`. Whenever a merge or rebase produces a conflict object whose key has a recorded resolution, vein resolves it automatically and notes it in the operation description. Keys are exact, so only identical conflicts are reused.+When `merge.rerere = true` (default), veins records resolutions: the key is the BLAKE3 of the simplified conflict object, and the value is the resolved blob ID. The recorded resolutions are stored in `.veins/resolutions/`. Whenever a merge or rebase produces a conflict object whose key has a recorded resolution, veins resolves it automatically and notes it in the operation description. Keys are exact, so only identical conflicts are reused.  === Path policies -A tracked `.veinattributes` file assigns attributes to paths, with one `glob attr=value` rule per line (later rules override earlier ones).+A tracked `.veinsattributes` file assigns attributes to paths, with one `glob attr=value` rule per line (later rules override earlier ones).  [cols="2,3",options="header"] |===@@ -646,7 +646,7 @@ | `generated=true` | Informational (hides from review diffs by default). |=== -For `merge=regenerate`, `vn status` lists paths that need regeneration. If the local config defines `regenerate.<glob> = <command>`, `vn regenerate` runs that command and snapshots the result. A commit that contains a path still marked as needing regeneration triggers a warning. Commands are only read from local config (`.vein/config`), never from tracked files.+For `merge=regenerate`, `vn status` lists paths that need regeneration. If the local config defines `regenerate.<glob> = <command>`, `vn regenerate` runs that command and snapshots the result. A commit that contains a path still marked as needing regeneration triggers a warning. Commands are only read from local config (`.veins/config`), never from tracked files.  NOTE: This is the intended answer to the case of a 100,000-line generated C file: no human ever merges it. @@ -655,30 +655,30 @@  === The mirror repository -vein maintains a bare git repository at `.vein/git`. It serves as the staging area for all git traffic. Network operations with git hosts (such as GitHub) are performed by invoking the `git` executable against this repository, and objects are then imported to or exported from the vein store. This keeps vein independent of the git transport protocols.+veins maintains a bare git repository at `.veins/git`. It serves as the staging area for all git traffic. Network operations with git hosts (such as GitHub) are performed by invoking the `git` executable against this repository, and objects are then imported to or exported from the veins store. This keeps veins independent of the git transport protocols.  === ID mapping -The directory `.vein/git-map/` holds persistent, append-only mapping tables:+The directory `.veins/git-map/` holds persistent, append-only mapping tables:  [cols="1,2",options="header"] |=== | Table | Contents -| commits | vein commit ID <-> git commit SHA-1-| trees | vein tree ID <-> git tree SHA-1-| blobs | vein blob ID <-> git blob SHA-1. Lazy IDs embed the SHA-1, but the mapping is still recorded for materialization and export.-| raw | vein ID -> original git object bytes, for commits and trees that cannot be reconstructed canonically (see below)+| commits | veins commit ID <-> git commit SHA-1+| trees | veins tree ID <-> git tree SHA-1+| blobs | veins blob ID <-> git blob SHA-1. Lazy IDs embed the SHA-1, but the mapping is still recorded for materialization and export.+| raw | veins ID -> original git object bytes, for commits and trees that cannot be reconstructed canonically (see below) |===  Lookups MUST work in both directions in O(log n) or better. Mappings are written in the same atomic step as the objects they refer to. -=== Import (git to vein)+=== Import (git to veins)  `vn git import` converts every git commit reachable from the chosen refs that is not already in the map.  . *Order.* Parents before children. Independent subtrees and blobs are converted in parallel.-. *Blobs* are chunked and stored as vein blobs. The SHA-1 to blob ID mapping is recorded.+. *Blobs* are chunked and stored as veins blobs. The SHA-1 to blob ID mapping is recorded. . *Trees* are converted entry by entry. Git modes map as follows: `100644` -> file; `100755` -> executable; `120000` -> symlink; `040000` -> subtree; `160000` -> submodule. Any other mode MUST cause the tree to be stored in `raw`. . *Commits.* Author, committer (name, email, seconds, timezone), message, parents, and all other headers (`encoding`, `gpgsig`, `mergetag`, and so on) are carried into the fields and `extra`. `renames_state = 0`. The change ID is derived as described in <<sec-oplog,Operation log and change IDs>>. . *Round-trip check.* The importer MUST re-serialize each commit and tree using the exporter, and compare the SHA-1 with the original. If they differ (non-canonical modes, unusual header order or whitespace, trailing data, and so on), the original bytes MUST be stored in `raw` and the exporter MUST use them verbatim.@@ -690,22 +690,22 @@  To keep import time independent of blob count and blob size, the M1 importer uses lazy blob IDs. It converts commits, trees, refs, the view, and the operation log, but it does not read, chunk, hash, or recompress blob bodies. A blob referenced by an imported tree is represented by a 32-byte lazy ID: -  `"vein-git-oid"` (12 bytes) followed by the 20-byte git SHA-1+  `"veins-gitoid"` (12 bytes) followed by the 20-byte git SHA-1 -The body remains in the `.vein/git` mirror. Tree entries keep their normal file, executable, or symlink kind, but the target is a lazy blob ID instead of a canonical vein blob ID.+The body remains in the `.veins/git` mirror. Tree entries keep their normal file, executable, or symlink kind, but the target is a lazy blob ID instead of a canonical veins blob ID. -Reading a lazy blob reads the corresponding git object from the mirror. `vn checkout` uses this path, so an imported repository checks out to the same bytes as git. `vn fsck` treats lazy blob references as promised objects; they are not errors merely because they are absent from `.vein/store`.+Reading a lazy blob reads the corresponding git object from the mirror. `vn checkout` uses this path, so an imported repository checks out to the same bytes as git. `vn fsck` treats lazy blob references as promised objects; they are not errors merely because they are absent from `.veins/store`. -Lazy IDs are deterministic for a given git blob. The `blobs` mapping table records them so that a later materialization pass can replace lazy references with canonical chunked vein blobs. Materialization is a separate operation and will rewrite the affected tree, commit, and view IDs. Deleting `.vein/git` while lazy references remain makes those blobs unavailable.+Lazy IDs are deterministic for a given git blob. The `blobs` mapping table records them so that a later materialization pass can replace lazy references with canonical chunked veins blobs. Materialization is a separate operation and will rewrite the affected tree, commit, and view IDs. Deleting `.veins/git` while lazy references remain makes those blobs unavailable. -Lazy import is an importer fast path. Repositories created by a native vein clone use canonical chunked blobs and do not depend on a git mirror.+Lazy import is an importer fast path. Repositories created by a native veins clone use canonical chunked blobs and do not depend on a git mirror. -=== Export (vein to git)+=== Export (veins to git)  `vn git export` writes the commits reachable from bookmarks and tags into the mirror.  . Commits are exported parents first. For a commit with a `raw` entry, those bytes are emitted unchanged (when its tree and parents map to the same git SHAs). Otherwise, the commit is serialized in git's canonical form from its fields, with `extra` headers in order.-. Native commits (created by vein) include an extra header `vein-change-id <hex>` *(review)*, so that a later import of the same git commit recovers the change ID. This header is never added to imported commits.+. Native commits (created by veins) include an extra header `veins-change-id <hex>` *(review)*, so that a later import of the same git commit recovers the change ID. This header is never added to imported commits. . Blobs are SHA-1-hashed once per distinct blob ID. The result is cached in the `blobs` table. SHA-1 MUST be computed with collision detection (sha1dc, as git does). . Trees are serialized with git's sort order (see <<sec-data,Data model>>). . Timestamps are exported at one-second precision.@@ -727,9 +727,9 @@ . `vn` creates a bookmark for the imported branch. Review, test, and merge happen natively. . After the merge, `vn git push` exports the merge commit. Because the contributor's commits are exported under their *original* SHA-1s (they are in the map, with `raw` where needed) and the merge commit lists them as parents, the host recognizes the pull request as merged. If the owner squashes or rebases instead, the pull request simply shows as closed. -=== Leaving vein+=== Leaving veins -`vn git export --all` followed by copying `.vein/git` to a normal `.git` directory MUST yield a git repository whose working tree is identical to the vein working copy, and whose history contains all exported commits, plus any conflict-free state. No other conversion is required. Users MAY keep using vein afterwards.+`vn git export --all` followed by copying `.veins/git` to a normal `.git` directory MUST yield a git repository whose working tree is identical to the veins working copy, and whose history contains all exported commits, plus any conflict-free state. No other conversion is required. Users MAY keep using veins afterwards.  === Invariants @@ -736,7 +736,7 @@ Conforming implementations MUST satisfy:  . *Import then export* of any git repository reproduces every commit, tree, and blob SHA-1 exactly.-. *Export then import* of any exportable vein history in a fresh repository yields commits whose root trees and ancestry are isomorphic to the original (IDs may differ because change IDs and rename records are not carried unless the header is present).+. *Export then import* of any exportable veins history in a fresh repository yields commits whose root trees and ancestry are isomorphic to the original (IDs may differ because change IDs and rename records are not carried unless the header is present). . *Idempotence.* Repeating import or export with no changes performs no writes to the store other than its logs.  [[sec-protocol]]@@ -753,7 +753,7 @@ | URL form | Transport | Notes  | `ssh://[user@]host[:port]/path` | SSH. The client runs `ssh host vn serve --stdio <path>`. | Secure. No channel binding is available.-| `vein://host[:port]/repo` | TCP with TLS 1.3 (`vn serve --listen`). | Secure. Channel binding is the TLS exporter value. The client validates the server certificate against the system trust store, or against a pinned fingerprint set in `remote.<name>.tls-pin`.+| `veins://host[:port]/repo` | TCP with TLS 1.3 (`vn serve --listen`). | Secure. Channel binding is the TLS exporter value. The client validates the server certificate against the system trust store, or against a pinned fingerprint set in `remote.<name>.tls-pin`. | `file:///path` | Local. The client spawns `vn serve --stdio <path>`. | Secure (local process). |=== @@ -835,7 +835,7 @@  === Server -`vn serve` operates on a normal vein store plus a ref table (`refs/` with one file per bookmark and tag, updated by atomic rename under a lock). A server repository has no working copy. It MUST compact and gc like any other store, and MUST NOT delete objects reachable from any ref.+`vn serve` operates on a normal veins store plus a ref table (`refs/` with one file per bookmark and tag, updated by atomic rename under a lock). A server repository has no working copy. It MUST compact and gc like any other store, and MUST NOT delete objects reachable from any ref.  Two modes exist: @@ -842,7 +842,7 @@ . `vn serve --stdio <repo>` serves one repository over standard input and output. It is used by the SSH and local transports. . `vn serve --listen <addr:port> --root <dir> --tls-cert <file> --tls-key <file>` serves every repository under `<dir>` over TLS. The repository named in `HELLO` MUST be resolved relative to `<dir>`. Names containing `..`, absolute paths, or NUL MUST be rejected. -Each repository's access policy is read from its own `.vein/access` file.+Each repository's access policy is read from its own `.veins/access` file.  === Errors @@ -869,7 +869,7 @@  === Model -A vein server authenticates clients itself, using *Ed25519 keys*. This is independent of the transport: the same keys work over SSH, TLS, and local connections, and the server never uses SSH user names, operating-system accounts, or TLS client certificates to decide what a client may do.+A veins server authenticates clients itself, using *Ed25519 keys*. This is independent of the transport: the same keys work over SSH, TLS, and local connections, and the server never uses SSH user names, operating-system accounts, or TLS client certificates to decide what a client may do.  Authorization is *per repository*. A key has exactly one of two roles on a repository, and a repository MAY additionally allow anonymous reads. @@ -886,9 +886,9 @@  === Keys -* A key's public half is 32 bytes. Its *fingerprint* is the lowercase base32 (RFC 4648 alphabet, no padding) encoding of the first 16 bytes of `BLAKE3("vein/key/1" || public_key)`, which is 26 characters.+* A key's public half is 32 bytes. Its *fingerprint* is the lowercase base32 (RFC 4648 alphabet, no padding) encoding of the first 16 bytes of `BLAKE3("veins/key/1" || public_key)`, which is 26 characters. * Public keys are written as `ed25519:` followed by unpadded base64url of the 32 bytes.-* Private keys are stored on the client in the user key directory: `$XDG_CONFIG_HOME/vein/keys/` (default `~/.config/vein/keys/`) on Linux and macOS, and `%APPDATA%\vein\keys\` on Windows. One file per key, named `<key name>.key`. Each file holds a format version byte and the 32-byte seed. It SHOULD be encrypted with a passphrase (Argon2id key derivation and an authenticated cipher, with parameters recorded in the file).+* Private keys are stored on the client in the user key directory: `$XDG_CONFIG_HOME/veins/keys/` (default `~/.config/veins/keys/`) on Linux and macOS, and `%APPDATA%\veins\keys\` on Windows. One file per key, named `<key name>.key`. Each file holds a format version byte and the 32-byte seed. It SHOULD be encrypted with a passphrase (Argon2id key derivation and an authenticated cipher, with parameters recorded in the file). * On POSIX systems `vn` MUST refuse to use a private key file that is readable or writable by group or others. * Private keys MUST NOT be written to repositories, configuration files, logs, or error messages. * A remote selects its key with `remote.<name>.key = <key name>`. The default key name is `default`.@@ -896,7 +896,7 @@  === Server access file -The file `.vein/access` in a served repository defines who may do what. It is UTF-8 text, one directive per line. Blank lines and lines beginning with `#` are ignored.+The file `.veins/access` in a served repository defines who may do what. It is UTF-8 text, one directive per line. Blank lines and lines beginning with `#` are ignored.  [source,text] ----@@ -976,7 +976,7 @@  [source,text] -----"vein-auth/1" 0x00+"veins-auth/1" 0x00 || u16 version              ; the version from HELLO_OK || bytes repo                ; exactly as sent in HELLO || server_nonce@@ -987,8 +987,8 @@ Rules:  . The server MUST generate `server_nonce` from a cryptographically secure random source and MUST NOT reuse it. It MUST verify the signature over the message using the nonces of the current connection. A signature is never valid on any other connection.-. *Channel binding.* On TLS, `channel_binding` is the 32-byte TLS 1.3 exporter value for the label `EXPORTER-vein-auth/1` with an empty context. This ties the signature to the TLS session, so a malicious intermediary that accepts the client's connection cannot forward the signature to the real server. Other transports MUST define their binding. On transports without a binding (SSH stdio, local), it is empty and protection against relay depends on the transport authenticating the server (the SSH host key).-. The server finds the public key in `.vein/access`. If the key is unknown, or its signature is invalid, or the repository does not exist, the server MUST send `AUTH_FAILED` with identical content and timing characteristics for all three cases, so that probing cannot discover which keys or repositories exist.+. *Channel binding.* On TLS, `channel_binding` is the 32-byte TLS 1.3 exporter value for the label `EXPORTER-veins-auth/1` with an empty context. This ties the signature to the TLS session, so a malicious intermediary that accepts the client's connection cannot forward the signature to the real server. Other transports MUST define their binding. On transports without a binding (SSH stdio, local), it is empty and protection against relay depends on the transport authenticating the server (the SSH host key).+. The server finds the public key in `.veins/access`. If the key is unknown, or its signature is invalid, or the repository does not exist, the server MUST send `AUTH_FAILED` with identical content and timing characteristics for all three cases, so that probing cannot discover which keys or repositories exist. . After a failed attempt the server SHOULD delay its reply by a fixed amount and MUST close the connection after three failed attempts. A server SHOULD rate-limit failed attempts per source address where the transport exposes one. . A second `AUTH` on the same connection is a protocol error (`BAD_FRAME`). The session's role is fixed once set and cannot be raised by a later message. . A client SHOULD authenticate whenever `auth_required` is 1 or it intends to push. A client that holds no key and sees `auth_required = 0` MAY proceed anonymously.@@ -1029,13 +1029,13 @@  === Audit log -A server SHOULD append to `.vein/server.log` one line for each connection outcome (time, source address if known, repository, role, key fingerprint or `anonymous`, and success or error code) and one line for each successful `UPDATE_REFS` (time, fingerprint, ref name, old and new targets). Logs MUST NOT contain private keys, nonces, or signatures.+A server SHOULD append to `.veins/server.log` one line for each connection outcome (time, source address if known, repository, role, key fingerprint or `anonymous`, and success or error code) and one line for each successful `UPDATE_REFS` (time, fingerprint, ref name, old and new targets). Logs MUST NOT contain private keys, nonces, or signatures. -Authentication identifies the *key that pushed*, not the *author of the commits*. Author and committer fields in commits remain self-asserted. Commit signing is a separate, future feature (see `vein-sig` in <<sec-commit-obj,Commit objects>>).+Authentication identifies the *key that pushed*, not the *author of the commits*. Author and committer fields in commits remain self-asserted. Commit signing is a separate, future feature (see `veins-sig` in <<sec-commit-obj,Commit objects>>).  === Deployment notes (informative) -* *Over SSH.* An SSH account that has a shell, or file access to the repository directory, can read and write the store directly and bypass vein's authorization entirely. To enforce read-only access, give users a restricted account whose only permitted command is the server, for example an `authorized_keys` entry of the form `command="vn serve --stdio /srv/vein/project",restrict ssh-ed25519 ...`. Then the vein keys, not the SSH accounts, decide each client's role.+* *Over SSH.* An SSH account that has a shell, or file access to the repository directory, can read and write the store directly and bypass veins' authorization entirely. To enforce read-only access, give users a restricted account whose only permitted command is the server, for example an `authorized_keys` entry of the form `command="vn serve --stdio /srv/veins/project",restrict ssh-ed25519 ...`. Then the veins keys, not the SSH accounts, decide each client's role. * *Public repositories.* Add `anonymous read` and serve over the TLS transport. Authenticated keys then matter only for pushing. * *Revoking a key.* Run `vn access remove`. If the key was used to push something undesirable, history in the repository can still be rewritten or abandoned by an operator with local access. @@ -1085,7 +1085,7 @@  | W1 (synthetic) | A repository of 2,000 revisions of one generated 100,000-line C file (about 4-6 MiB), where each regeneration changes 0.5-5% of lines in scattered locations, plus 200 ordinary source files with normal edit patterns. | W2 (real) | The `spectrelang/spectre` repository (about 17,700 objects, 228 MiB pack), as measured in the project's initial investigation: 16.2 s clone from GitHub, about 8.6 s clone from a local `file://` copy, with roughly 19 CPU-seconds in index-pack.-| W3 (real) | The owner's largest private project(s) that motivated vein.+| W3 (real) | The owner's largest private project(s) that motivated veins. |===  === Requirements@@ -1104,7 +1104,7 @@ | P8 | Store size on W1 SHOULD be no more than 2x that of the same history in an aggressively repacked git repository. This is a soft target. Chunking compresses less well than delta chains. This trade-off is accepted. |=== -*Go/no-go gate.* At milestone M1 (see <<sec-milestones,Milestones>>), measure P2 on W1 and W2. If vein is less than 2x faster than git on the clone of W1, stop and reconsider the design (or use jj with a tuned git repack) before building further.+*Go/no-go gate.* At milestone M1 (see <<sec-milestones,Milestones>>), measure P2 on W1 and W2. If veins is less than 2x faster than git on the clone of W1, stop and reconsider the design (or use jj with a tuned git repack) before building further.  === Measurement method @@ -1114,10 +1114,10 @@  * *Hostile repositories.* All data received from the network or from imports MUST be treated as untrusted: verify hashes, enforce canonical form, enforce limits, and refuse names per the rules in <<sec-data,Data model>>. * *Decompression bombs.* A record's declared `raw_length` MUST be checked against type limits before decompressing, and decompression MUST stop at the declared length.-* *Path attacks.* Checkout MUST NOT write outside the repository root (no `..`, no absolute paths, no writes through symlinks that point outside, no case-folded `.git` or `.vein` components).-* *Code execution.* vein MUST NOT execute commands whose definition comes from tracked or fetched data. Merge tools, regenerate commands, and hooks are read from local config only.+* *Path attacks.* Checkout MUST NOT write outside the repository root (no `..`, no absolute paths, no writes through symlinks that point outside, no case-folded `.git` or `.veins` components).+* *Code execution.* veins MUST NOT execute commands whose definition comes from tracked or fetched data. Merge tools, regenerate commands, and hooks are read from local config only. * *Hash function.* BLAKE3 is not known to be vulnerable to collision attacks. Git SHA-1 is only used for export, with collision detection, and a detected collision MUST abort the export.-* *Signatures.* Signature support (`vein-sig` in `extra`) is reserved for a future version. Imported `gpgsig` headers are preserved but not verified by vein.+* *Signatures.* Signature support (`veins-sig` in `extra`) is reserved for a future version. Imported `gpgsig` headers are preserved but not verified by veins. * *Server.* The server MUST validate every pushed object as described in <<sec-protocol,Native protocol>>, and rate-limit or bound resource use per connection. * *Authentication.* Identity is an Ed25519 public key verified by a challenge-response signed over fresh nonces, the repository, the protocol version, and a channel binding. Replay of a captured signature fails because nonces are per-connection. Relay attacks are prevented by channel binding on TLS and by server authentication on SSH. See <<sec-auth,Authentication and authorization>>. * *Authorization.* Roles are checked on every request. Write requests need the `write` role, and a refused request never changes state. Anonymous sessions are read-only. No protocol message modifies the access file.@@ -1185,11 +1185,11 @@ [[sec-open-questions]] == Open questions -. *Working copy model.* Should vein offer a git-like staging mode, or is the auto-snapshot model acceptable for all use? (Section "Working copy".)+. *Working copy model.* Should veins offer a git-like staging mode, or is the auto-snapshot model acceptable for all use? (Section "Working copy".) . *Line-aware chunking.* Should chunk cut points prefer line boundaries for text files? This may improve diff and merge alignment, but makes the chunker content-type dependent and changes chunk IDs. . *Chunk parameters.* Is 64 KiB average the best size for generated C? Smaller chunks dedupe better but increase manifest and index overhead. This should be tuned on W1 and W3 before the parameters are frozen.-. *Change-ID header.* Is adding `vein-change-id` to exported native commits acceptable? It changes the git SHA of every native commit versus an export without it, and some users might consider it noise.-. *Cross-repository identity.* A native commit that is exported and imported into a second repository yields a different vein commit ID than the original. Is that acceptable, or should an optional hashed `git_origin` field be allowed?+. *Change-ID header.* Is adding `veins-change-id` to exported native commits acceptable? It changes the git SHA of every native commit versus an export without it, and some users might consider it noise.+. *Cross-repository identity.* A native commit that is exported and imported into a second repository yields a different veins commit ID than the original. Is that acceptable, or should an optional hashed `git_origin` field be allowed? . *Submodules and LFS.* Submodules are preserved opaquely. LFS pointer files are ordinary files, and no LFS support is specified. . *Case-insensitive file systems.* Need a policy for trees that contain names differing only by case. . *Windows.* The native design assumes POSIX semantics for checkout safety. Windows support is deferred.--- a/docs/SPECIFICATION_V1.html+++ b/docs/SPECIFICATION_V1.html@@ -5,7 +5,7 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="Asciidoctor 2.0.20">-<title>vein: Version Control System Specification</title>+<title>veins: Version Control System Specification</title> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700"> <style> /*! Asciidoctor default stylesheet | MIT License | https://asciidoctor.org */@@ -436,7 +436,7 @@ </head> <body class="book toc2 toc-left"> <div id="header">-<h1>vein: Version Control System Specification</h1>+<h1>veins: Version Control System Specification</h1> <div class="details"> <span id="revnumber">version 0.1-draft,</span> <span id="revdate">2026-11-24</span>@@ -514,11 +514,11 @@ <ul class="sectlevel2"> <li><a href="#_the_mirror_repository">8.1. The mirror repository</a></li> <li><a href="#_id_mapping">8.2. ID mapping</a></li>-<li><a href="#_import_git_to_vein">8.3. Import (git to vein)</a></li>-<li><a href="#_export_vein_to_git">8.4. Export (vein to git)</a></li>+<li><a href="#_import_git_to_veins">8.3. Import (git to veins)</a></li>+<li><a href="#_export_veins_to_git">8.4. Export (veins to git)</a></li> <li><a href="#_refs">8.5. Refs</a></li> <li><a href="#_pull_request_workflow">8.6. Pull request workflow</a></li>-<li><a href="#_leaving_vein">8.7. Leaving vein</a></li>+<li><a href="#_leaving_veins">8.7. Leaving veins</a></li> <li><a href="#_invariants">8.8. Invariants</a></li> </ul> </li>@@ -574,7 +574,7 @@ <div class="sectionbody"> <div class="quoteblock abstract"> <blockquote>-vein (command-line program: <code>vn</code>) is a single-user-first version control system built around a chunked, content-addressed object store, an operation log with stable change IDs, and first-class conflicts that never insert markers into files. It keeps a two-way bridge to git so history can be imported from git, mirrored to git, and abandoned back to git at any time.+veins (command-line program: <code>vn</code>) is a single-user-first version control system built around a chunked, content-addressed object store, an operation log with stable change IDs, and first-class conflicts that never insert markers into files. It keeps a two-way bridge to git so history can be imported from git, mirrored to git, and abandoned back to git at any time. </blockquote> </div> <div class="admonitionblock note">@@ -597,7 +597,7 @@ <div class="sect2"> <h3 id="_purpose">1.1. Purpose</h3> <div class="paragraph">-<p>vein exists because git has three properties that are painful for the primary use case (a solo developer working on large projects, some of which commit large generated files that are regenerated many times):</p>+<p>veins exists because git has three properties that are painful for the primary use case (a solo developer working on large projects, some of which commit large generated files that are regenerated many times):</p> </div> <div class="olist arabic"> <ol class="arabic">@@ -627,7 +627,7 @@ <p><strong>Seamless merges.</strong> A merge never fails and never blocks. Conflicts are values stored in history, not text inserted into files.</p> </li> <li>-<p><strong>Lossless git interoperability.</strong> History can be imported from git, exported to git, and round-tripped with identical git object IDs. A user can leave vein for git at any time without losing commit history.</p>+<p><strong>Lossless git interoperability.</strong> History can be imported from git, exported to git, and round-tripped with identical git object IDs. A user can leave veins for git at any time without losing commit history.</p> </li> <li> <p><strong>Remote sharing</strong> through a native fetch/push protocol with lazy chunk fetching.</p>@@ -646,10 +646,10 @@ <div class="ulist"> <ul> <li>-<p>Replacing git as an ecosystem. Pull requests, issues, and CI remain git-hosted, and vein interoperates with them through the bridge.</p>+<p>Replacing git as an ecosystem. Pull requests, issues, and CI remain git-hosted, and veins interoperates with them through the bridge.</p> </li> <li>-<p>Delta compression. vein trades some store size for random access and fast reads (see <a href="#sec-perf">Performance requirements</a>).</p>+<p>Delta compression. veins trades some store size for random access and fast reads (see <a href="#sec-perf">Performance requirements</a>).</p> </li> <li> <p>Semantic (AST-level) merging in v1. The merge engine is designed so a structural layer can be added later.</p>@@ -666,7 +666,7 @@ <div class="sect2"> <h3 id="_naming">1.4. Naming</h3> <div class="paragraph">-<p>The product and file format are named <strong>vein</strong>. The command-line program is named <code>vn</code> (<code>vn.exe</code> on Windows). All command examples in this document use <code>vn</code>. The name <code>vein</code> is retained for the repository directory (<code>.vein/</code>), configuration and attribute files (<code>.veinignore</code>, <code>.veinattributes</code>), the object-ID domain separator, and reserved header keys (<code>vein-change-id</code>, <code>vein-sig</code>). Conforming implementations of the format are not required to ship a program called <code>vn</code>.</p>+<p>The product and file format are named <strong>veins</strong>. The command-line program is named <code>vn</code> (<code>vn.exe</code> on Windows). All command examples in this document use <code>vn</code>. The name <code>veins</code> is used for the repository directory (<code>.veins/</code>), configuration and attribute files (<code>.veinsignore</code>, <code>.veinsattributes</code>), the object-ID domain separator, and reserved header keys (<code>veins-change-id</code>, <code>veins-sig</code>). Conforming implementations of the format are not required to ship a program called <code>vn</code>.</p> </div> </div> <div class="sect2">@@ -691,7 +691,7 @@ <tbody> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">vn</p></td>-<td class="tableblock halign-left valign-top"><p class="tableblock">The command-line program (<code>vn.exe</code> on Windows) used to operate on vein repositories.</p></td>+<td class="tableblock halign-left valign-top"><p class="tableblock">The command-line program (<code>vn.exe</code> on Windows) used to operate on veins repositories.</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">Object</p></td>@@ -739,7 +739,7 @@ </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">Mirror</p></td>-<td class="tableblock halign-left valign-top"><p class="tableblock">The bare git repository <code>.vein/git</code> that vein keeps in sync with its own history.</p></td>+<td class="tableblock halign-left valign-top"><p class="tableblock">The bare git repository <code>.veins/git</code> that veins keeps in sync with its own history.</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">Promised object</p></td>@@ -779,7 +779,7 @@ <tbody> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">Git relationship</p></td>-<td class="tableblock halign-left valign-top"><p class="tableblock">Two-way. vein can export to git and import commits back from git (for example contributor pull requests).</p></td>+<td class="tableblock halign-left valign-top"><p class="tableblock">Two-way. veins can export to git and import commits back from git (for example contributor pull requests).</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">Remotes</p></td>@@ -795,7 +795,7 @@ </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">Renames</p></td>-<td class="tableblock halign-left valign-top"><p class="tableblock">Recorded explicitly in vein commits. Heuristic detection is used for imported git history.</p></td>+<td class="tableblock halign-left valign-top"><p class="tableblock">Recorded explicitly in veins commits. Heuristic detection is used for imported git history.</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">Conflict presentation</p></td>@@ -864,15 +864,15 @@ </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">Reference transports</p></td>-<td class="tableblock halign-left valign-top"><p class="tableblock">SSH (stdio), TLS 1.3 (<code>vein://</code>), and local stdio (<code>file://</code>).</p></td>+<td class="tableblock halign-left valign-top"><p class="tableblock">SSH (stdio), TLS 1.3 (<code>veins://</code>), and local stdio (<code>file://</code>).</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">Access management</p></td>-<td class="tableblock halign-left valign-top"><p class="tableblock">A text file <code>.vein/access</code> in the served repository, edited only locally on the server with <code>vn access</code>. There is no remote administration in v1.</p></td>+<td class="tableblock halign-left valign-top"><p class="tableblock">A text file <code>.veins/access</code> in the served repository, edited only locally on the server with <code>vn access</code>. There is no remote administration in v1.</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">Revocation</p></td>-<td class="tableblock halign-left valign-top"><p class="tableblock">Removing a key from <code>.vein/access</code>. Takes effect on new connections, and open sessions are re-checked when the file changes.</p></td>+<td class="tableblock halign-left valign-top"><p class="tableblock">Removing a key from <code>.veins/access</code>. Takes effect on new connections, and open sessions are re-checked when the file changes.</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">Write role scope</p></td>@@ -964,7 +964,7 @@ </tbody> </table> <div class="paragraph">-<p>Names, paths, emails, and messages are arbitrary bytes. vein MUST NOT assume UTF-8 for stored data.</p>+<p>Names, paths, emails, and messages are arbitrary bytes. veins MUST NOT assume UTF-8 for stored data.</p> </div> </div> <div class="sect2">@@ -971,7 +971,7 @@ <h3 id="sec-ids">3.2. Object IDs</h3> <div class="listingblock"> <div class="content">-<pre class="rouge highlight"><code data-lang="text">object_id = BLAKE3( "vein/1" 0x00 || type_byte || body )</code></pre>+<pre class="rouge highlight"><code data-lang="text">object_id = BLAKE3( "veins/1" 0x00 || type_byte || body )</code></pre> </div> </div> <table class="tableblock frame-all grid-all stretch">@@ -1157,7 +1157,7 @@ </tbody> </table> <div class="paragraph">-<p>Entry name rules. A name MUST be non-empty, MUST NOT be <code>.</code> or <code>..</code>, MUST NOT contain <code>/</code> or NUL, and MUST NOT equal <code>.vein</code> (any case). Implementations MUST refuse to check out a tree containing a name equal, case-insensitively, to <code>.git</code> or <code>.vein</code>.</p>+<p>Entry name rules. A name MUST be non-empty, MUST NOT be <code>.</code> or <code>..</code>, MUST NOT contain <code>/</code> or NUL, and MUST NOT equal <code>.veins</code> (any case). Implementations MUST refuse to check out a tree containing a name equal, case-insensitively, to <code>.git</code> or <code>.veins</code>.</p> </div> <div class="admonitionblock note"> <table>@@ -1166,7 +1166,7 @@ <i class="fa icon-note" title="Note"></i> </td> <td class="content">-vein sorts directory entries as plain names. Git sorts directory entries as if they ended with <code>/</code>. The git exporter MUST re-sort entries using git&#8217;s rule.+veins sorts directory entries as plain names. Git sorts directory entries as if they ended with <code>/</code>. The git exporter MUST re-sort entries using git&#8217;s rule. </td> </tr> </table>@@ -1233,10 +1233,10 @@ <div class="ulist"> <ul> <li>-<p><code>renames_state = 1</code> means the renames list is authoritative: any path not listed was not renamed relative to that parent. <code>renames_state = 0</code> means rename information is unknown and the merge engine MUST fall back to heuristics. Commits created by vein use state 1. Commits imported from git use state 0.</p>+<p><code>renames_state = 1</code> means the renames list is authoritative: any path not listed was not renamed relative to that parent. <code>renames_state = 0</code> means rename information is unknown and the merge engine MUST fall back to heuristics. Commits created by veins use state 1. Commits imported from git use state 0.</p> </li> <li>-<p><code>extra</code> carries headers from imported git commits (<code>encoding</code>, <code>gpgsig</code>, <code>mergetag</code>, and others) so they can be exported verbatim. Keys beginning with <code>vein-</code> are reserved.</p>+<p><code>extra</code> carries headers from imported git commits (<code>encoding</code>, <code>gpgsig</code>, <code>mergetag</code>, and others) so they can be exported verbatim. Keys beginning with <code>veins-</code> are reserved.</p> </li> <li> <p>The change ID is generated randomly when a change is first created and copied unchanged when the change is rewritten (amended, rebased, squashed).</p>@@ -1358,8 +1358,8 @@ <h3 id="_repository_layout">4.1. Repository layout</h3> <div class="listingblock"> <div class="content">-<pre class="rouge highlight"><code data-lang="text">.vein/-  format               "vein-store 1"+<pre class="rouge highlight"><code data-lang="text">.veins/+  format               "veins-store 1"   config               local configuration (never tracked)   access               server only: authorized keys and the anonymous-read setting   lock                 advisory lock for compaction and gc@@ -1368,7 +1368,7 @@     tmp/               in-progress writes   op_heads/            one empty file per current operation head (named by op ID)   git/                 bare git repository (the mirror)-  git-map/             mapping tables between vein IDs and git IDs+  git-map/             mapping tables between veins IDs and git IDs   working_copy/        stat cache, draft-edit references, conflict bookkeeping   resolutions/         recorded conflict resolutions</code></pre> </div>@@ -1377,7 +1377,7 @@ <div class="sect2"> <h3 id="_pack_files">4.2. Pack files</h3> <div class="paragraph">-<p>vein has no loose objects and no deltas. Objects are stored in pack files that are written once and never modified.</p>+<p>veins has no loose objects and no deltas. Objects are stored in pack files that are written once and never modified.</p> </div> <div class="listingblock"> <div class="content">@@ -1539,10 +1539,10 @@ <div class="ulist"> <ul> <li>-<p>A change ID is created when a commit is first created by vein (random, 16 bytes), and is copied to the rewritten commit when that commit is amended, rebased, or squashed.</p>+<p>A change ID is created when a commit is first created by veins (random, 16 bytes), and is copied to the rewritten commit when that commit is amended, rebased, or squashed.</p> </li> <li>-<p>A commit imported from git receives a change ID derived deterministically from its git SHA-1 (the first 16 bytes of BLAKE3 over <code>"vein/change" || git_sha</code>), unless the git commit carries a <code>vein-change-id</code> header, in which case that value is used.</p>+<p>A commit imported from git receives a change ID derived deterministically from its git SHA-1 (the first 16 bytes of BLAKE3 over <code>"veins/change" || git_sha</code>), unless the git commit carries a <code>veins-change-id</code> header, in which case that value is used.</p> </li> <li> <p>Change IDs are displayed in lowercase base32 (RFC 4648 alphabet), as the shortest unique prefix with a minimum of 4 characters.</p>@@ -1564,7 +1564,7 @@ <div class="sect2"> <h3 id="_model_review">6.1. Model <strong>(review)</strong></h3> <div class="paragraph">-<p>The working copy is represented by a commit (conventionally <code>@</code>) recorded in the view per workspace. Before each command that reads or writes the working copy, vein MUST snapshot the files on disk into <code>@</code> (creating a new commit with the same change ID, and an operation if anything changed). Consequences:</p>+<p>The working copy is represented by a commit (conventionally <code>@</code>) recorded in the view per workspace. Before each command that reads or writes the working copy, veins MUST snapshot the files on disk into <code>@</code> (creating a new commit with the same change ID, and an operation if anything changed). Consequences:</p> </div> <div class="ulist"> <ul>@@ -1588,7 +1588,7 @@ <p>Tracked state is determined by the tree of the working-copy commit, plus any new files that are not ignored.</p> </li> <li>-<p>vein MUST keep a stat cache (path, size, mtime in nanoseconds, inode, content ID) in <code>.vein/working_copy/</code>. A file whose stat data is unchanged MUST NOT be re-read. A file whose mtime is within a "racy" window (less than 2 seconds old relative to the cache write) MUST be re-verified by content.</p>+<p>veins MUST keep a stat cache (path, size, mtime in nanoseconds, inode, content ID) in <code>.veins/working_copy/</code>. A file whose stat data is unchanged MUST NOT be re-read. A file whose mtime is within a "racy" window (less than 2 seconds old relative to the cache write) MUST be re-verified by content.</p> </li> <li> <p>New or changed files are chunked and hashed in parallel. Files are only read once.</p>@@ -1860,7 +1860,7 @@ <p><code>vn status</code> shows conflicted paths and the number of conflicted commits in the ancestry of <code>@</code>.</p> </li> <li>-<p>Edits to <code>&lt;path&gt;</code> while the conflict is unresolved are <strong>drafts</strong>. The snapshot stores the draft as a blob, referenced from <code>.vein/working_copy/</code> and from the view of the working-copy operation, so that the edit is recorded and survives undo and checkout. A draft never alters the stored conflict.</p>+<p>Edits to <code>&lt;path&gt;</code> while the conflict is unresolved are <strong>drafts</strong>. The snapshot stores the draft as a blob, referenced from <code>.veins/working_copy/</code> and from the view of the working-copy operation, so that the edit is recorded and survives undo and checkout. A draft never alters the stored conflict.</p> </li> </ol> </div>@@ -1907,13 +1907,13 @@ <div class="sect2"> <h3 id="_resolution_memory">7.10. Resolution memory</h3> <div class="paragraph">-<p>When <code>merge.rerere = true</code> (default), vein records resolutions: the key is the BLAKE3 of the simplified conflict object, and the value is the resolved blob ID. The recorded resolutions are stored in <code>.vein/resolutions/</code>. Whenever a merge or rebase produces a conflict object whose key has a recorded resolution, vein resolves it automatically and notes it in the operation description. Keys are exact, so only identical conflicts are reused.</p>+<p>When <code>merge.rerere = true</code> (default), veins records resolutions: the key is the BLAKE3 of the simplified conflict object, and the value is the resolved blob ID. The recorded resolutions are stored in <code>.veins/resolutions/</code>. Whenever a merge or rebase produces a conflict object whose key has a recorded resolution, veins resolves it automatically and notes it in the operation description. Keys are exact, so only identical conflicts are reused.</p> </div> </div> <div class="sect2"> <h3 id="_path_policies">7.11. Path policies</h3> <div class="paragraph">-<p>A tracked <code>.veinattributes</code> file assigns attributes to paths, with one <code>glob attr=value</code> rule per line (later rules override earlier ones).</p>+<p>A tracked <code>.veinsattributes</code> file assigns attributes to paths, with one <code>glob attr=value</code> rule per line (later rules override earlier ones).</p> </div> <table class="tableblock frame-all grid-all stretch"> <colgroup>@@ -1946,7 +1946,7 @@ </tbody> </table> <div class="paragraph">-<p>For <code>merge=regenerate</code>, <code>vn status</code> lists paths that need regeneration. If the local config defines <code>regenerate.&lt;glob&gt; = &lt;command&gt;</code>, <code>vn regenerate</code> runs that command and snapshots the result. A commit that contains a path still marked as needing regeneration triggers a warning. Commands are only read from local config (<code>.vein/config</code>), never from tracked files.</p>+<p>For <code>merge=regenerate</code>, <code>vn status</code> lists paths that need regeneration. If the local config defines <code>regenerate.&lt;glob&gt; = &lt;command&gt;</code>, <code>vn regenerate</code> runs that command and snapshots the result. A commit that contains a path still marked as needing regeneration triggers a warning. Commands are only read from local config (<code>.veins/config</code>), never from tracked files.</p> </div> <div class="admonitionblock note"> <table>@@ -1969,13 +1969,13 @@ <div class="sect2"> <h3 id="_the_mirror_repository">8.1. The mirror repository</h3> <div class="paragraph">-<p>vein maintains a bare git repository at <code>.vein/git</code>. It serves as the staging area for all git traffic. Network operations with git hosts (such as GitHub) are performed by invoking the <code>git</code> executable against this repository, and objects are then imported to or exported from the vein store. This keeps vein independent of the git transport protocols.</p>+<p>veins maintains a bare git repository at <code>.veins/git</code>. It serves as the staging area for all git traffic. Network operations with git hosts (such as GitHub) are performed by invoking the <code>git</code> executable against this repository, and objects are then imported to or exported from the veins store. This keeps veins independent of the git transport protocols.</p> </div> </div> <div class="sect2"> <h3 id="_id_mapping">8.2. ID mapping</h3> <div class="paragraph">-<p>The directory <code>.vein/git-map/</code> holds persistent, append-only mapping tables:</p>+<p>The directory <code>.veins/git-map/</code> holds persistent, append-only mapping tables:</p> </div> <table class="tableblock frame-all grid-all stretch"> <colgroup>@@ -1991,19 +1991,19 @@ <tbody> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">commits</p></td>-<td class="tableblock halign-left valign-top"><p class="tableblock">vein commit ID &lt;&#8594; git commit SHA-1</p></td>+<td class="tableblock halign-left valign-top"><p class="tableblock">veins commit ID &lt;&#8594; git commit SHA-1</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">trees</p></td>-<td class="tableblock halign-left valign-top"><p class="tableblock">vein tree ID &lt;&#8594; git tree SHA-1</p></td>+<td class="tableblock halign-left valign-top"><p class="tableblock">veins tree ID &lt;&#8594; git tree SHA-1</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">blobs</p></td>-<td class="tableblock halign-left valign-top"><p class="tableblock">vein blob ID &lt;&#8594; git blob SHA-1 (cached, because computing it requires hashing the full content)</p></td>+<td class="tableblock halign-left valign-top"><p class="tableblock">veins blob ID &lt;&#8594; git blob SHA-1 (cached, because computing it requires hashing the full content)</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">raw</p></td>-<td class="tableblock halign-left valign-top"><p class="tableblock">vein ID &#8594; original git object bytes, for commits and trees that cannot be reconstructed canonically (see below)</p></td>+<td class="tableblock halign-left valign-top"><p class="tableblock">veins ID &#8594; original git object bytes, for commits and trees that cannot be reconstructed canonically (see below)</p></td> </tr> </tbody> </table>@@ -2012,7 +2012,7 @@ </div> </div> <div class="sect2">-<h3 id="_import_git_to_vein">8.3. Import (git to vein)</h3>+<h3 id="_import_git_to_veins">8.3. Import (git to veins)</h3> <div class="paragraph"> <p><code>vn git import</code> converts every git commit reachable from the chosen refs that is not already in the map.</p> </div>@@ -2022,7 +2022,7 @@ <p><strong>Order.</strong> Parents before children. Independent subtrees and blobs are converted in parallel.</p> </li> <li>-<p><strong>Blobs</strong> are chunked and stored as vein blobs. The SHA-1 to blob ID mapping is recorded.</p>+<p><strong>Blobs</strong> are chunked and stored as veins blobs. The SHA-1 to blob ID mapping is recorded.</p> </li> <li> <p><strong>Trees</strong> are converted entry by entry. Git modes map as follows: <code>100644</code> &#8594; file; <code>100755</code> &#8594; executable; <code>120000</code> &#8594; symlink; <code>040000</code> &#8594; subtree; <code>160000</code> &#8594; submodule. Any other mode MUST cause the tree to be stored in <code>raw</code>.</p>@@ -2043,7 +2043,7 @@ </div> </div> <div class="sect2">-<h3 id="_export_vein_to_git">8.4. Export (vein to git)</h3>+<h3 id="_export_veins_to_git">8.4. Export (veins to git)</h3> <div class="paragraph"> <p><code>vn git export</code> writes the commits reachable from bookmarks and tags into the mirror.</p> </div>@@ -2053,7 +2053,7 @@ <p>Commits are exported parents first. For a commit with a <code>raw</code> entry, those bytes are emitted unchanged (when its tree and parents map to the same git SHAs). Otherwise, the commit is serialized in git&#8217;s canonical form from its fields, with <code>extra</code> headers in order.</p> </li> <li>-<p>Native commits (created by vein) include an extra header <code>vein-change-id &lt;hex&gt;</code> <strong>(review)</strong>, so that a later import of the same git commit recovers the change ID. This header is never added to imported commits.</p>+<p>Native commits (created by veins) include an extra header <code>veins-change-id &lt;hex&gt;</code> <strong>(review)</strong>, so that a later import of the same git commit recovers the change ID. This header is never added to imported commits.</p> </li> <li> <p>Blobs are SHA-1-hashed once per distinct blob ID. The result is cached in the <code>blobs</code> table. SHA-1 MUST be computed with collision detection (sha1dc, as git does).</p>@@ -2111,9 +2111,9 @@ </div> </div> <div class="sect2">-<h3 id="_leaving_vein">8.7. Leaving vein</h3>+<h3 id="_leaving_veins">8.7. Leaving veins</h3> <div class="paragraph">-<p><code>vn git export --all</code> followed by copying <code>.vein/git</code> to a normal <code>.git</code> directory MUST yield a git repository whose working tree is identical to the vein working copy, and whose history contains all exported commits, plus any conflict-free state. No other conversion is required. Users MAY keep using vein afterwards.</p>+<p><code>vn git export --all</code> followed by copying <code>.veins/git</code> to a normal <code>.git</code> directory MUST yield a git repository whose working tree is identical to the veins working copy, and whose history contains all exported commits, plus any conflict-free state. No other conversion is required. Users MAY keep using veins afterwards.</p> </div> </div> <div class="sect2">@@ -2127,7 +2127,7 @@ <p><strong>Import then export</strong> of any git repository reproduces every commit, tree, and blob SHA-1 exactly.</p> </li> <li>-<p><strong>Export then import</strong> of any exportable vein history in a fresh repository yields commits whose root trees and ancestry are isomorphic to the original (IDs may differ because change IDs and rename records are not carried unless the header is present).</p>+<p><strong>Export then import</strong> of any exportable veins history in a fresh repository yields commits whose root trees and ancestry are isomorphic to the original (IDs may differ because change IDs and rename records are not carried unless the header is present).</p> </li> <li> <p><strong>Idempotence.</strong> Repeating import or export with no changes performs no writes to the store other than its logs.</p>@@ -2168,7 +2168,7 @@ <td class="tableblock halign-left valign-top"><p class="tableblock">Secure. No channel binding is available.</p></td> </tr> <tr>-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>vein://host[:port]/repo</code></p></td>+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>veins://host[:port]/repo</code></p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">TCP with TLS 1.3 (<code>vn serve --listen</code>).</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Secure. Channel binding is the TLS exporter value. The client validates the server certificate against the system trust store, or against a pinned fingerprint set in <code>remote.&lt;name&gt;.tls-pin</code>.</p></td> </tr>@@ -2372,7 +2372,7 @@ <div class="sect2"> <h3 id="_server">9.7. Server</h3> <div class="paragraph">-<p><code>vn serve</code> operates on a normal vein store plus a ref table (<code>refs/</code> with one file per bookmark and tag, updated by atomic rename under a lock). A server repository has no working copy. It MUST compact and gc like any other store, and MUST NOT delete objects reachable from any ref.</p>+<p><code>vn serve</code> operates on a normal veins store plus a ref table (<code>refs/</code> with one file per bookmark and tag, updated by atomic rename under a lock). A server repository has no working copy. It MUST compact and gc like any other store, and MUST NOT delete objects reachable from any ref.</p> </div> <div class="paragraph"> <p>Two modes exist:</p>@@ -2388,7 +2388,7 @@ </ol> </div> <div class="paragraph">-<p>Each repository&#8217;s access policy is read from its own <code>.vein/access</code> file.</p>+<p>Each repository&#8217;s access policy is read from its own <code>.veins/access</code> file.</p> </div> </div> <div class="sect2">@@ -2464,7 +2464,7 @@ <div class="sect2"> <h3 id="_model">10.1. Model</h3> <div class="paragraph">-<p>A vein server authenticates clients itself, using <strong>Ed25519 keys</strong>. This is independent of the transport: the same keys work over SSH, TLS, and local connections, and the server never uses SSH user names, operating-system accounts, or TLS client certificates to decide what a client may do.</p>+<p>A veins server authenticates clients itself, using <strong>Ed25519 keys</strong>. This is independent of the transport: the same keys work over SSH, TLS, and local connections, and the server never uses SSH user names, operating-system accounts, or TLS client certificates to decide what a client may do.</p> </div> <div class="paragraph"> <p>Authorization is <strong>per repository</strong>. A key has exactly one of two roles on a repository, and a repository MAY additionally allow anonymous reads.</p>@@ -2504,13 +2504,13 @@ <div class="ulist"> <ul> <li>-<p>A key&#8217;s public half is 32 bytes. Its <strong>fingerprint</strong> is the lowercase base32 (RFC 4648 alphabet, no padding) encoding of the first 16 bytes of <code>BLAKE3("vein/key/1" || public_key)</code>, which is 26 characters.</p>+<p>A key&#8217;s public half is 32 bytes. Its <strong>fingerprint</strong> is the lowercase base32 (RFC 4648 alphabet, no padding) encoding of the first 16 bytes of <code>BLAKE3("veins/key/1" || public_key)</code>, which is 26 characters.</p> </li> <li> <p>Public keys are written as <code>ed25519:</code> followed by unpadded base64url of the 32 bytes.</p> </li> <li>-<p>Private keys are stored on the client in the user key directory: <code>$XDG_CONFIG_HOME/vein/keys/</code> (default <code>~/.config/vein/keys/</code>) on Linux and macOS, and <code>%APPDATA%\vein\keys\</code> on Windows. One file per key, named <code>&lt;key name&gt;.key</code>. Each file holds a format version byte and the 32-byte seed. It SHOULD be encrypted with a passphrase (Argon2id key derivation and an authenticated cipher, with parameters recorded in the file).</p>+<p>Private keys are stored on the client in the user key directory: <code>$XDG_CONFIG_HOME/veins/keys/</code> (default <code>~/.config/veins/keys/</code>) on Linux and macOS, and <code>%APPDATA%\veins\keys\</code> on Windows. One file per key, named <code>&lt;key name&gt;.key</code>. Each file holds a format version byte and the 32-byte seed. It SHOULD be encrypted with a passphrase (Argon2id key derivation and an authenticated cipher, with parameters recorded in the file).</p> </li> <li> <p>On POSIX systems <code>vn</code> MUST refuse to use a private key file that is readable or writable by group or others.</p>@@ -2530,7 +2530,7 @@ <div class="sect2"> <h3 id="_server_access_file">10.3. Server access file</h3> <div class="paragraph">-<p>The file <code>.vein/access</code> in a served repository defines who may do what. It is UTF-8 text, one directive per line. Blank lines and lines beginning with <code>#</code> are ignored.</p>+<p>The file <code>.veins/access</code> in a served repository defines who may do what. It is UTF-8 text, one directive per line. Blank lines and lines beginning with <code>#</code> are ignored.</p> </div> <div class="listingblock"> <div class="content">@@ -2675,7 +2675,7 @@ </div> <div class="listingblock"> <div class="content">-<pre class="rouge highlight"><code data-lang="text">"vein-auth/1" 0x00+<pre class="rouge highlight"><code data-lang="text">"veins-auth/1" 0x00 || u16 version              ; the version from HELLO_OK || bytes repo                ; exactly as sent in HELLO || server_nonce@@ -2692,10 +2692,10 @@ <p>The server MUST generate <code>server_nonce</code> from a cryptographically secure random source and MUST NOT reuse it. It MUST verify the signature over the message using the nonces of the current connection. A signature is never valid on any other connection.</p> </li> <li>-<p><strong>Channel binding.</strong> On TLS, <code>channel_binding</code> is the 32-byte TLS 1.3 exporter value for the label <code>EXPORTER-vein-auth/1</code> with an empty context. This ties the signature to the TLS session, so a malicious intermediary that accepts the client&#8217;s connection cannot forward the signature to the real server. Other transports MUST define their binding. On transports without a binding (SSH stdio, local), it is empty and protection against relay depends on the transport authenticating the server (the SSH host key).</p>+<p><strong>Channel binding.</strong> On TLS, <code>channel_binding</code> is the 32-byte TLS 1.3 exporter value for the label <code>EXPORTER-veins-auth/1</code> with an empty context. This ties the signature to the TLS session, so a malicious intermediary that accepts the client&#8217;s connection cannot forward the signature to the real server. Other transports MUST define their binding. On transports without a binding (SSH stdio, local), it is empty and protection against relay depends on the transport authenticating the server (the SSH host key).</p> </li> <li>-<p>The server finds the public key in <code>.vein/access</code>. If the key is unknown, or its signature is invalid, or the repository does not exist, the server MUST send <code>AUTH_FAILED</code> with identical content and timing characteristics for all three cases, so that probing cannot discover which keys or repositories exist.</p>+<p>The server finds the public key in <code>.veins/access</code>. If the key is unknown, or its signature is invalid, or the repository does not exist, the server MUST send <code>AUTH_FAILED</code> with identical content and timing characteristics for all three cases, so that probing cannot discover which keys or repositories exist.</p> </li> <li> <p>After a failed attempt the server SHOULD delay its reply by a fixed amount and MUST close the connection after three failed attempts. A server SHOULD rate-limit failed attempts per source address where the transport exposes one.</p>@@ -2806,10 +2806,10 @@ <div class="sect2"> <h3 id="_audit_log">10.9. Audit log</h3> <div class="paragraph">-<p>A server SHOULD append to <code>.vein/server.log</code> one line for each connection outcome (time, source address if known, repository, role, key fingerprint or <code>anonymous</code>, and success or error code) and one line for each successful <code>UPDATE_REFS</code> (time, fingerprint, ref name, old and new targets). Logs MUST NOT contain private keys, nonces, or signatures.</p>+<p>A server SHOULD append to <code>.veins/server.log</code> one line for each connection outcome (time, source address if known, repository, role, key fingerprint or <code>anonymous</code>, and success or error code) and one line for each successful <code>UPDATE_REFS</code> (time, fingerprint, ref name, old and new targets). Logs MUST NOT contain private keys, nonces, or signatures.</p> </div> <div class="paragraph">-<p>Authentication identifies the <strong>key that pushed</strong>, not the <strong>author of the commits</strong>. Author and committer fields in commits remain self-asserted. Commit signing is a separate, future feature (see <code>vein-sig</code> in <a href="#sec-commit-obj">Commit objects</a>).</p>+<p>Authentication identifies the <strong>key that pushed</strong>, not the <strong>author of the commits</strong>. Author and committer fields in commits remain self-asserted. Commit signing is a separate, future feature (see <code>veins-sig</code> in <a href="#sec-commit-obj">Commit objects</a>).</p> </div> </div> <div class="sect2">@@ -2817,7 +2817,7 @@ <div class="ulist"> <ul> <li>-<p><strong>Over SSH.</strong> An SSH account that has a shell, or file access to the repository directory, can read and write the store directly and bypass vein&#8217;s authorization entirely. To enforce read-only access, give users a restricted account whose only permitted command is the server, for example an <code>authorized_keys</code> entry of the form <code>command="vn serve --stdio /srv/vein/project",restrict ssh-ed25519 &#8230;&#8203;</code>. Then the vein keys, not the SSH accounts, decide each client&#8217;s role.</p>+<p><strong>Over SSH.</strong> An SSH account that has a shell, or file access to the repository directory, can read and write the store directly and bypass veins&#8217; authorization entirely. To enforce read-only access, give users a restricted account whose only permitted command is the server, for example an <code>authorized_keys</code> entry of the form <code>command="vn serve --stdio /srv/veins/project",restrict ssh-ed25519 &#8230;&#8203;</code>. Then the veins keys, not the SSH accounts, decide each client&#8217;s role.</p> </li> <li> <p><strong>Public repositories.</strong> Add <code>anonymous read</code> and serve over the TLS transport. Authenticated keys then matter only for pushing.</p>@@ -2974,7 +2974,7 @@ </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">W3 (real)</p></td>-<td class="tableblock halign-left valign-top"><p class="tableblock">The owner&#8217;s largest private project(s) that motivated vein.</p></td>+<td class="tableblock halign-left valign-top"><p class="tableblock">The owner&#8217;s largest private project(s) that motivated veins.</p></td> </tr> </tbody> </table>@@ -3028,7 +3028,7 @@ </tbody> </table> <div class="paragraph">-<p><strong>Go/no-go gate.</strong> At milestone M1 (see <a href="#sec-milestones">Milestones</a>), measure P2 on W1 and W2. If vein is less than 2x faster than git on the clone of W1, stop and reconsider the design (or use jj with a tuned git repack) before building further.</p>+<p><strong>Go/no-go gate.</strong> At milestone M1 (see <a href="#sec-milestones">Milestones</a>), measure P2 on W1 and W2. If veins is less than 2x faster than git on the clone of W1, stop and reconsider the design (or use jj with a tuned git repack) before building further.</p> </div> </div> <div class="sect2">@@ -3051,16 +3051,16 @@ <p><strong>Decompression bombs.</strong> A record&#8217;s declared <code>raw_length</code> MUST be checked against type limits before decompressing, and decompression MUST stop at the declared length.</p> </li> <li>-<p><strong>Path attacks.</strong> Checkout MUST NOT write outside the repository root (no <code>..</code>, no absolute paths, no writes through symlinks that point outside, no case-folded <code>.git</code> or <code>.vein</code> components).</p>+<p><strong>Path attacks.</strong> Checkout MUST NOT write outside the repository root (no <code>..</code>, no absolute paths, no writes through symlinks that point outside, no case-folded <code>.git</code> or <code>.veins</code> components).</p> </li> <li>-<p><strong>Code execution.</strong> vein MUST NOT execute commands whose definition comes from tracked or fetched data. Merge tools, regenerate commands, and hooks are read from local config only.</p>+<p><strong>Code execution.</strong> veins MUST NOT execute commands whose definition comes from tracked or fetched data. Merge tools, regenerate commands, and hooks are read from local config only.</p> </li> <li> <p><strong>Hash function.</strong> BLAKE3 is not known to be vulnerable to collision attacks. Git SHA-1 is only used for export, with collision detection, and a detected collision MUST abort the export.</p> </li> <li>-<p><strong>Signatures.</strong> Signature support (<code>vein-sig</code> in <code>extra</code>) is reserved for a future version. Imported <code>gpgsig</code> headers are preserved but not verified by vein.</p>+<p><strong>Signatures.</strong> Signature support (<code>veins-sig</code> in <code>extra</code>) is reserved for a future version. Imported <code>gpgsig</code> headers are preserved but not verified by veins.</p> </li> <li> <p><strong>Server.</strong> The server MUST validate every pushed object as described in <a href="#sec-protocol">Native protocol</a>, and rate-limit or bound resource use per connection.</p>@@ -3266,7 +3266,7 @@ <div class="olist arabic"> <ol class="arabic"> <li>-<p><strong>Working copy model.</strong> Should vein offer a git-like staging mode, or is the auto-snapshot model acceptable for all use? (Section "Working copy".)</p>+<p><strong>Working copy model.</strong> Should veins offer a git-like staging mode, or is the auto-snapshot model acceptable for all use? (Section "Working copy".)</p> </li> <li> <p><strong>Line-aware chunking.</strong> Should chunk cut points prefer line boundaries for text files? This may improve diff and merge alignment, but makes the chunker content-type dependent and changes chunk IDs.</p>@@ -3275,10 +3275,10 @@ <p><strong>Chunk parameters.</strong> Is 64 KiB average the best size for generated C? Smaller chunks dedupe better but increase manifest and index overhead. This should be tuned on W1 and W3 before the parameters are frozen.</p> </li> <li>-<p><strong>Change-ID header.</strong> Is adding <code>vein-change-id</code> to exported native commits acceptable? It changes the git SHA of every native commit versus an export without it, and some users might consider it noise.</p>+<p><strong>Change-ID header.</strong> Is adding <code>veins-change-id</code> to exported native commits acceptable? It changes the git SHA of every native commit versus an export without it, and some users might consider it noise.</p> </li> <li>-<p><strong>Cross-repository identity.</strong> A native commit that is exported and imported into a second repository yields a different vein commit ID than the original. Is that acceptable, or should an optional hashed <code>git_origin</code> field be allowed?</p>+<p><strong>Cross-repository identity.</strong> A native commit that is exported and imported into a second repository yields a different veins commit ID than the original. Is that acceptable, or should an optional hashed <code>git_origin</code> field be allowed?</p> </li> <li> <p><strong>Submodules and LFS.</strong> Submodules are preserved opaquely. LFS pointer files are ordinary files, and no LFS support is specified.</p>--- a/docs/test-vectors/M0.adoc+++ b/docs/test-vectors/M0.adoc@@ -1,4 +1,4 @@-= vein Format Test Vectors: Milestone 0+= veins Format Test Vectors: Milestone 0 :revnumber: 1 :revdate: 2026-11-25 @@ -12,7 +12,7 @@  [source,text] -----object_id = BLAKE3("vein/1" 0x00 || type_byte || body)+object_id = BLAKE3("veins/1" 0x00 || type_byte || body) type_byte: chunk=1 blob=2 tree=3 commit=4 conflict=5 operation=6 view=7 ---- @@ -45,8 +45,8 @@ |=== | Chunk | Length | Object ID -| 0 | `262144` | `a6a4efd6c6330d328e0a3e2a97fb6202771433ffeeea099a93f8df08399b44fd`-| 1 | `37856` | `4c899670c3ec130e9ce03b5061d2593c2fa4f66661c6285f470e57dc65284444`+| 0 | `262144` | `c83c67617ae4445631508cc4edba83ba58d9e996cea40c980ec69a8b6da86458`+| 1 | `37856` | `0c91665d423fd704baae9454d24697460c4898fbf16cc6ad498d3f750d073a4b` |===  The manifest for this file is a single leaf node (form 1) with those two@@ -54,7 +54,7 @@  [source,text] -----34bb8e7c00665b61c882fe1cae0a51a44d6ad1719fd44a1b22c991ae6a3c24bc+937fe1a8d674aa28cb9fa074a76ea84cdc1d6c61e209f47bbdebbe4361b698cf ----  == FastCDC gear table@@ -64,7 +64,7 @@  [source,text] -----gear[i] = u64le( BLAKE3("vein/fastcdc/gear/v1" || u8(i))[0..8] )+gear[i] = u64le( BLAKE3("veins/fastcdc/gear/v1" || u8(i))[0..8] ) i = 0..255 ---- @@ -73,7 +73,7 @@  [source,text] -----52097d05a1f8eefb70604af851826bea02cf3f47f46aa129a661d630a40972da+e9688c81fa99f8a16eeda8ee984c2ba9c1cd2951d11559048b8959b2c85e9495 ----  Parameters: minimum 16 KiB, average 64 KiB, maximum 256 KiB, normalization@@ -104,8 +104,8 @@ |=== | Object | Body hex | ID | Notes -| empty tree | `00` | `01fd6e74c2454903e76762c71e9f22f7418e5d36f6149c48eeee734ec2e3dc41` | empty list-| inline blob `hello` | `000568656c6c6f` | `aecaf09bed6d5bd166cf9f24e88f73081460ec292f4a5eeb7daf4a1078e33d7c` | form 0 + bytes+| empty tree | `00` | `8be3caa39b307b2b4a46533174cc7faa49c0ff34317302d188276c9641be35fb` | empty list+| inline blob `hello` | `000568656c6c6f` | `f04a7f7324bbb7279471b5c656c893ee51b62ed9f9bad4c8cb8a289101f68240` | form 0 + bytes |===  The following vectors use these three inline blobs:@@ -112,9 +112,9 @@  [source,text] -----base   = "base"   -> 000462617365 -> c11596e0f11881620de9b26e54c4c1233e4d9545c09b7a677f0011121a9b56b6-ours   = "ours"   -> 00046f757273 -> a77d538ccdf102fc33a4f20dfd0a67e9aa16a996bee763f2a14a3fd512d20e75-theirs = "theirs" -> 0006746865697273 -> 4a1f7bff6488363e0902d1c71bb7eb514bcee359ca4fcd2fb3099e152389275f+base   = "base"   -> 000462617365 -> 7d134a69fee08c8ce7d1d9345bcce91013203f944b444b70e3a5bb8450105a88+ours   = "ours"   -> 00046f757273 -> 065f24446352ad751d7cd19c4716a416650eeebf045693f5fd8fb719a55b636c+theirs = "theirs" -> 0006746865697273 -> 070fdf8c316002e69cc696514c4c60f7df366f79cf36aafc8e905e6ae2dbd4f8 ----  === Conflict@@ -128,7 +128,7 @@        01 || theirs_id        01        01 || base_id-id   = d6d530d1e90142531d26d6db8489b0c42654b312d27b56f74b45d97f2b00e7a9+id   = 02b5ddd6d982a32aa19d1c1b11d09165b44667b0c33acd993c44457dedcabd06 ----  Full body hex:@@ -135,7 +135,7 @@  [source,text] -----0201a77d538ccdf102fc33a4f20dfd0a67e9aa16a996bee763f2a14a3fd512d20e75014a1f7bff6488363e0902d1c71bb7eb514bcee359ca4fcd2fb3099e152389275f0101c11596e0f11881620de9b26e54c4c1233e4d9545c09b7a677f0011121a9b56b6+0201065f24446352ad751d7cd19c4716a416650eeebf045693f5fd8fb719a55b636c01070fdf8c316002e69cc696514c4c60f7df366f79cf36aafc8e905e6ae2dbd4f801017d134a69fee08c8ce7d1d9345bcce91013203f944b444b70e3a5bb8450105a88 ----  === Commit@@ -148,13 +148,13 @@ [source,text] ---- body = 0100-       01fd6e74c2454903e76762c71e9f22f7418e5d36f6149c48eeee734ec2e3dc41+       8be3caa39b307b2b4a46533174cc7faa49c0ff34317302d188276c9641be35fb        0b0c0d0e0f101112131415161718191a        05416c696365 11616c696365406578616d706c652e636f6d 00f153650000000000 0000        05416c696365 11616c696365406578616d706c652e636f6d 00f153650000000000 0000        0e696e697469616c20636f6d6d6974        01 00 00-id   = c6a60eba55e527a7b746aee77e66fc5e8e60ef31c5c407d57eaceaeececebb3c+id   = 7f648b3621402df01985d121888c89c37107274fb8bb54661f12deca6cc72299 ----  Full body hex:@@ -161,7 +161,7 @@  [source,text] -----010001fd6e74c2454903e76762c71e9f22f7418e5d36f6149c48eeee734ec2e3dc410b0c0d0e0f101112131415161718191a05416c69636511616c696365406578616d706c652e636f6d00f1536500000000000005416c69636511616c696365406578616d706c652e636f6d00f153650000000000000e696e697469616c20636f6d6d6974010000+01008be3caa39b307b2b4a46533174cc7faa49c0ff34317302d188276c9641be35fb0b0c0d0e0f101112131415161718191a05416c69636511616c696365406578616d706c652e636f6d00f1536500000000000005416c69636511616c696365406578616d706c652e636f6d00f153650000000000000e696e697469616c20636f6d6d6974010000 ----  === View@@ -176,7 +176,7 @@        00        00        01 || 0764656661756c74 || commit_id-id   = 9ba517b0693bd2016b9662f18fb54ca0ceaadc2ab08c4d87d9c4c9e42e689eed+id   = a2e19569bb3b5c28775bc8503c45c4edce6d51f55303e39bc02eec529324cd11 ----  Full body hex:@@ -183,7 +183,7 @@  [source,text] -----01c6a60eba55e527a7b746aee77e66fc5e8e60ef31c5c407d57eaceaeececebb3c01046d61696e0101c6a60eba55e527a7b746aee77e66fc5e8e60ef31c5c407d57eaceaeececebb3c000000010764656661756c74c6a60eba55e527a7b746aee77e66fc5e8e60ef31c5c407d57eaceaeececebb3c+017f648b3621402df01985d121888c89c37107274fb8bb54661f12deca6cc7229901046d61696e01017f648b3621402df01985d121888c89c37107274fb8bb54661f12deca6cc72299000000010764656661756c747f648b3621402df01985d121888c89c37107274fb8bb54661f12deca6cc72299 ----  === Operation@@ -198,7 +198,7 @@        0068e5cf8b01000000 0000        04686f7374 05616c696365 1273656c6674657374206f7065726174696f6e        00-id   = 99a9dea611815d7320e8481495227bf62e8a224ec873f3cd1daca5b4e2ece4f1+id   = 0a5494529353fb5886870a128139e07d95f40afcd831afc423617808f31dc426 ----  Full body hex:@@ -205,7 +205,7 @@  [source,text] -----009ba517b0693bd2016b9662f18fb54ca0ceaadc2ab08c4d87d9c4c9e42e689eed0068e5cf8b01000000000068e5cf8b010000000004686f737405616c6963651273656c6674657374206f7065726174696f6e00+00a2e19569bb3b5c28775bc8503c45c4edce6d51f55303e39bc02eec529324cd110068e5cf8b01000000000068e5cf8b010000000004686f737405616c6963651273656c6674657374206f7065726174696f6e00 ----  == Pack and index@@ -224,7 +224,7 @@           raw_length 01           stored_length 01           body 00-trailer   294c1017488cc29fd32a67b299e998e7d995f5636ef245e1a5bc47be5c1e1042+trailer   72c385a83448a5e16853735a79a212f0377d0e40be777d121271758525dbc911 ----  Full pack hex:@@ -231,7 +231,7 @@  [source,text] -----56504b3101000000010000000000000001fd6e74c2454903e76762c71e9f22f7418e5d36f6149c48eeee734ec2e3dc410300010100294c1017488cc29fd32a67b299e998e7d995f5636ef245e1a5bc47be5c1e1042+56504b310100000001000000000000008be3caa39b307b2b4a46533174cc7faa49c0ff34317302d188276c9641be35fb030001010072c385a83448a5e16853735a79a212f0377d0e40be777d121271758525dbc911 ----  Its index is 1136 bytes. The index contains the fanout, sorted IDs, the@@ -243,8 +243,8 @@ | Property | Value  | Length | `1136`-| BLAKE3 of the complete index | `64bae9db19aa5bf84e4fe72e9cfe38e9563c5baa04abb4a4ca887dbdc94e4b1a`-| Index trailer (last 32 bytes) | `786a72638bd8cfe021cc57f54977ff76ed0e760f48e787e7735cbf9f571f4f9e`+| BLAKE3 of the complete index | `d5dfb7b2ce4235f87856c12ff2e0b65d817dc29dfedad62ba34e71d74dca0cfc`+| Index trailer (last 32 bytes) | `4b137fd82e5d340b9abb3613679fa7d1217b2e94872e7967f810c4ec453990e3` | Record offset | `16` |=== --- a/docs/test-vectors/fastcdc_gear.txt+++ b/docs/test-vectors/fastcdc_gear.txt@@ -1,260 +1,260 @@-# vein format 1 FastCDC gear table-# gear[i] = u64le(BLAKE3("vein/fastcdc/gear/v1" || u8(i))[0..8])+# veins format 1 FastCDC gear table+# gear[i] = u64le(BLAKE3("veins/fastcdc/gear/v1" || u8(i))[0..8]) # 256 entries, one per line, lowercase hexadecimal -5c4a1ae8bc697bc4-404c2fabb73cc047-d3182b34b91a5105-2f6a7a0e10c9a4e9-7547bc4d5b634d0a-23466e59c4b9b389-5e59b19eea3c566a-bac21e55adbf2486-7664aaaf965fcad9-82a61ba3f60574e4-f271f8fa19825daa-0178ec62a70d4219-8a7476f57c1ac5e7-87100c1da58f4225-a3094e45c27e8d72-9a4b8c66691e4b65-01ca246131e5cf43-67082475db706bc6-1e8ff56368a8a554-529004a71bcce301-08e485f89622934f-35784d339932308f-118506e540737be6-a01129f8a140b6bc-fe34955d89fe9c22-e798e7847dcfcd55-f5ed1a81775e5907-c1008c76de665582-cdb70a32b89ff73e-2053279d659f92c0-fb6f25ff149156d2-bbd7cd25542da950-0f795883ab7b0b58-63c9ad4618799824-86758361be3505a2-d0654221203a895a-fc553b7a897060a3-63f30f39088f12b5-1dbbfdb329090dc8-034777bfbda53269-765653f19e19bd5f-12f29bbb5ce1edde-71ed901844f83c6f-b5bab6d75be81227-0df63d3a03b97926-1e5f7fd1a792c82b-7b443971b934bae4-6bc634b7e6eda850-55a65ff08f4a349f-450786016bd046a3-74224c0fd123c0b1-7bfe7a2f975a97b6-5a79f2287ea6d79e-f5249768011b01b8-85247fee784c6164-efaa92326ed3cffc-83e65683edb9ce2a-93c1beaf37c773d8-a613c1f3e59cf6a3-4e53fb579208a3b6-41a478e2ea3a5add-e954507d5f9f528e-a67ee92c34dab874-4fde76eb0b7836c9-0a1d48b4c6aa6b0e-73acd9b67c53c8fe-e7ae8a73f3532a5c-d65989cf5a86b2bb-6cc0caad82f1d784-14c3a111475499f5-515264dfff947d17-350bb4dd5de7b8fe-86fd36770e8a2e36-b0a45b7862f061ed-6bcab5ddfb78481e-7be29762aa52548a-e8ba251664ffc0a6-46b724ec15fe280f-49a3948b86c10650-8728d203182a056f-77e609499e68119d-fa3dea8f23253491-ad1d2671404a08d3-5d1a0bad3e7b7ed2-77340fe7e9f8c5ba-942c81cdf24a0167-167c54a7c493f85e-1664dccbcebc4b22-a61b572d4ad878b8-8b9af023f8602c9f-e7b928217e4811cd-129037e9fd549c7f-61ebe7e42502e4be-0a1ee930ea49fb3b-615fc103e28c8e0a-1f73c58f94a72da1-5689e070f5399d98-e30fe38ef1ad4366-2a593e06370b77d5-3043c337e1854347-e5d72faa615d110c-4038bd291c593240-2ab2bfa552d4b375-8d552f184d7f1bf5-f5797da702a9b9e6-e746797066c7d4ae-9ded398ec8b444ad-1677250cc1263ed7-cd387dfff99848c8-76c8e17e7e3c51c7-88957499ab90cd0b-61e1f2ed44d22926-c67759e92332d47a-20a21f589906abba-cbc97c04dc3600ad-f7c85c33e41fa6a4-1097084d6ec2bba1-9fb02d6d6bf6bf94-be491ed9c83c51e2-a2e98c363d6c67a2-9bec27f58f3b5414-194ac1cb82e2d4ab-0064c87914d677a6-cc73278ab09622b6-8defa41c9b8b9b51-536cf2c4aa196ece-604a6f8528d890f5-284a26063447d249-be70f37289b5497c-06ddcd30daa6a54f-bfb15004943d67fb-62c1f2bb4bf0265a-abe4fe049ba8fd65-20af090e344a0185-416fb2ef6fee28fc-f60d926eacf379b3-53610e6411d45e23-f6fb37c66ba64597-42bf7a59192fe853-c04446e8b297e0f2-82f1f4d862e3ad59-36ba938e2525ee17-49142470e54f7798-4dfebe5f4e61d2bc-15f8c7f7f38338d2-4f36f36937336521-fff70db1621739c8-77768d16df7f7308-55e4ad3f457a73b9-89fe259e513d73ef-1e087e74e73661ad-6c8c61983b203db0-be4846ae96db0e56-97fb0e4e2ec84ad6-f6a841d652558edc-6c8c5a1c2b137937-9f93197506451b99-3234216f7492d666-0969310ecbc88bc6-1f38f4918779c317-fb9d10f0c3a4c23d-b89b140d8f11c5be-10decb1f791bebae-8009d5919e8262f3-9f0cedd8d7d130ab-d14db528d87ee2db-4c180eba3157ac53-6c8897a62e2830a2-46e03299b3b35cf0-e113872493896b19-f1209451f7a4ff94-b939749bf938eebc-b16291a34e66e625-007182e94e603784-b1ae9121fa1a1d1b-6ec222ddf28dca0c-28854d8b1e655115-6332ac9c0d1199a2-365fdd7aeebe647e-0fd7033c86765869-6c516b8859c8bb01-46c24f980413490f-f867fb37bb76dea9-892d78d1aa3f9fcb-cd175fb5a96963ed-5f617cb58fbc8a77-4df29395bddc578d-7d69552224bb6149-3584177015ff325b-816acc8a1c352448-449c10951bca892e-adc4d1fcef7ff534-64d0275a80e466a4-402f692c29a12441-eec7a5bf7941d5d0-5f166583c2601ed5-3b6838dd02fe672f-ccedf39242f8c018-07d8c86783c02ffc-af49620443a23682-d91abe9b213695a2-69163f8bf62b1b7c-e31b2e1d8310913f-0c3d7e22dfc2d09c-756b39a23e62c096-cc2687b10d550a4c-5b6b449b793b7ae4-1b860384dc8e65e7-df57565c73e4c5f8-5ad5f2b6fc9d0ed3-86b2d2094d589220-1db728b73e4dcef6-e2a136a5157f2ca3-08d4b194366445ae-da7f156e2e85d3a9-6c3d56f62df389e9-d4874f9387cb7964-a514cb3f14f74eed-1f37e5ff29d299ee-ea7429deb1b71032-963db43d9b95b0aa-582b6be2902ffc67-2e926ea8a00af35d-92093f9d25126fab-344f7c282e4122ec-87ff7054daeb429b-c49f0e4726d146b9-e0773071e66e17e5-b345dfdb70eee881-9d8e2b9bedc39423-3ebf8325c8ecd78b-9a226652626286c4-96edb25817f1138e-cbb693398017b173-786633d49e99af60-b225db9832e7d8df-4cec56b4202c7d7f-18c8278d6ff7825d-ed46971bf16adef4-522c06f1fa3978df-8d40437999463947-c8959f60eb0d27ad-b9a089058f480f80-215482f345e3c2d5-f91c64d2b1b525b9-b68bd03968c728fa-8b12cebebc865819-6d60b167f805c0d4-40d773d869517dc2-db50fd3858eb7ee6-5af4344ac6a899c7-b055dc42b7329b9b-2314a1c54ecfe1c7-0eaeed2e3c60c346-fe5614b9ebe6329b-8592445ff13752f9+f8447b379cdadcd5+be63d125aec8ca6d+10bcf6f7c33cbed3+2b6ba7e5a572be1b+145ba610bca60ff6+335db29c88ea2545+af7ab78b34ea1c8f+04383fe20dcbf16a+542c3ed8a305a2e4+8306bb8ba52f1966+64abea4024164cb2+d5d28a2763a5c906+a709f38738243984+0a1ac1c77c75aa83+2fe3df4653145470+8ef53a2c653fab0e+e6f0c2e4436fe0b0+f387dc66d595a4fd+d520313dc5c2ef0c+3aa4df70dc7b4e20+fe89fa05b2229b26+d5b811960c27b302+d6b9a82445390552+8c9df4eb17abefbb+8dddfb83b6f3e3f5+0dfd5490314a4a77+cd39d37f4fffeb07+d953ec046f403aef+fd67339f7fb60679+1673126b2d34af03+810365172ff5c83f+2e219c15c03a0ce6+cd2dd776c4dc8b37+31a05022f6757ac7+a54aaac64e2b7a4f+541cc9dbe8ef6090+15f25ab7ac626796+6a8743338a21c0db+15856273cdeb225b+92d3b90d24b0ceab+db7ed64743e6bafd+6a2371fe5845980b+3ed2cbd1a12b1554+26292f185e7ae5c2+cfa468695ae32b7c+10c8ad9d7d37b38b+0c93c73c9b8a5760+dce731099879e3ac+948f5e10a859b0f9+5b7b5381c2b61ad3+032e2bccef396ec0+cb04960d80779661+1800187b89406bba+8cfeb1e5741f9b5b+c0a8b6dd4ca2bc72+7121d98743aad057+62122a734c7c30cf+09dfc78344470469+7dd2e6c3164e95cc+1e081af5098f9f95+a060c1359428a17a+fbbf087daa942d8d+02befbb34a59cfa0+f61aba2e56e7fcab+d201b08ba97b4f74+05d1923c598bb943+577cb1ac90c58fdc+35714370655de214+9e875d6330c98d09+580e31b7e5d121d1+86e331d3a1868867+7198d317f173adfc+d1d712f288f8f74f+498eb6b5efeca820+01609a0433de3ce6+c6451604d3e5a30e+7cb8c805a7fc71d4+abd48608b949d705+80a7504b42991b37+de2d8d960bc877d9+6658840c7b5680c4+90ff0a9f74a67da4+9c44badf508da6b7+9399bf790bbe7784+984ef4f5cd8b44d9+338a088febb6b2c4+56b6457eba02a001+69db87f3d877bc17+eaa4df254010fc26+d4c46364dcfcc4c7+f5f5ffa312012d68+d56c6fd2995b3e2d+098e8ef0f3185a71+d57d7c0096690b41+d562d821200e0cd4+bfba257d5a89b160+1058a4dfeffa765d+74a5f76a74e5ca3c+bcf278dd8ff805dc+13696b2e934dd66f+a8e2ffed5d6c8f52+c9711402212f8271+83db1ae9a24b47f4+fec127f15e6c1470+6e8185b3a8e5e1fc+d503ce1f19ca76f8+5e80dadee3f2c38a+2d1ff7b2e1cb7079+f572fb19e969ef53+502708c0febdf28c+59f0859c330bd3ae+fefb158359b5411f+bcbcce46e6c1b56d+9fc6bd49258ef328+89d3b5d6ba11aa7c+4e44ee7a780f8aa6+cca6584b41c6a8dd+bd39bf6f976088f1+609df3f5f267e2cf+970c32cd9b8f1f95+373a464e80f4734b+fd01ca133c483c61+317dfec1e4e54486+653bb090e32d5fb8+0944739599bfa481+33ee31072ab56364+d3826c26bc20b44c+d11f9251c67a66ac+79a81cf24d93662f+9672efb77cb79214+0b6852062b150542+22cb8254926d5d21+f68817c5be91619e+1fb235ed20504b6c+7a00398632aae3d8+d5cafd4331978a29+f80e0a5957bca856+409ce1b813206914+d0f1da7e99289a41+2ede97d8000af47b+6a27ef6571d9b969+97c4695b34247b16+5ee4b2b0e7919e12+73f02023b038ceed+54e24747c8dbc3f2+ea175f09cd4ea419+a420b4e91e595736+f58072b7aa16c147+c4eed8a665f16537+efe95010907b5c71+20b530bfb2fb6c5d+a14f7dca9de676bd+899835e7943ffc24+72cea269e19c9b60+a2311c0586c3c70d+5feb4a14932c2e90+bf24d7cf401f1a8c+ae081fd9aa06845a+332ce9fca6bbb7df+c4c0c4d9b89e0df2+2bddbc99fe5fb745+533b9037add81672+133ac755cf098a00+8305c21cea592a03+2164728763c1f742+8385d8702b7a940a+b8b02364b0352c47+d5535761e27bae91+930b49bf6552198f+ccd2c5d2f32ab8c6+58c74b4b32fc9fa8+98a324c44c1cd723+2abeecf0cfc735fc+6419bb9739226916+d9e94c1946307dd2+e15622a475f6e038+c48fba22892a33bc+0722a604b075bafc+78889b342ff4560c+dada1d3833b35bd6+4917f2c07311a5cc+9d7685084873a92a+5869edb9c4b4e78c+30afc030f9d64382+548ed28c8845626f+606be35894cbee13+aaa4a0c60695574f+364cf234a3dd2844+9aba0e81ff2f109c+18d1e9b3fdfda42c+1b9477ec5fb1ad36+7f0136e7d6a3cb98+9a4e7496f95a6fbc+b940293ab845abd6+a1c6388ef0208374+8da07493e7de1f8a+eeba605e6e273c4c+3202537c27f4c285+c40eebd30f194254+db3e091b83f3578b+ef4d4e9267b4c82e+ce163a6c0f695d0d+0b73d109498e2d9a+b0ecccc0a05090a8+4748b37a01cd7c50+75bedfaf04e09117+4290c117203c922a+0f4edf02e3d62367+9f88f3082a0860ef+029e5bb038f506fa+b4ff698bcd73d0ac+61321d4822b1ebb9+997b0a0bfcbc4b7e+669e117eb2fbc329+c770e6b51cf723e1+43e9c64d4ceba4fa+7089a98e8a61f669+7635f6b39edd3638+7efb2ec180815b1a+599b9ba270412abe+099db42c6da84f07+a80aa895e988a9e2+857538709775368c+0f35b67029f03082+29d1d07f6cdff719+25f0c392a5184c13+fab7c93869e72670+57bfb01577cf7ea5+f243888561a284c9+2cb309bd1f1e4f95+860339add5cde62f+b5c77be90a3bab2a+016359c3a034ab67+f4426de9276d41b1+1f0f25a49fb35408+a216f9fe7f9a47d4+df6ff4f9bc47eb4e+de377b438cddb110+a2bf999d31ef328f+460eea338ffb2e84+f73ea9dde1297fa3+05cb4964fec1213c+7713be29f105fd3e+6d6796f838c38ba2+8c8adb1031c0ae50+526a7f116fe65583+eabdacfe2ef6c020+1c0de4493237857f+ac655048637e992b+2664f2bf04599664+5cbe9c160f2f8c53+1cc056978d12a1dc+889e35cb2ca6742f+e0ab4043f6b783cc+011128d888973e10+fb74bdcd0afb54eb--- a/src/.gitignore+++ b/src/.gitignore@@ -1,6 +1,6 @@ vn-dev vn-vein-dev+veins-dev SPECTRE_LANGUAGE_REFERENCE.md lib/ std__*--- a/src/build-native.sh+++ b/src/build-native.sh@@ -29,4 +29,4 @@     "$out/blake3_avx2.o" \     "$out/blake3_avx512.o" \     "$out/fastcdc_c.o" \-    -o "$out/vein_native.o"+    -o "$out/veins_native.o"Binary files a/src/src/chunking/gear.bin and b/src/src/chunking/gear.bin differ--- a/src/src/chunking/gear.sx+++ b/src/src/chunking/gear.sx@@ -1,77 +1,77 @@-/// FastCDC gear table for vein format version 1.+/// FastCDC gear table for veins format version 1. /// /// The 256 entries are derived deterministically, so that independent /// implementations can reproduce them: ///-///   gear[i] = u64le(BLAKE3("vein/fastcdc/gear/v1" || u8(i))[0..8])+///   gear[i] = u64le(BLAKE3("veins/fastcdc/gear/v1" || u8(i))[0..8]) /// /// The table is frozen for format version 1. Changing it changes every chunk /// boundary and therefore every chunk, blob, and commit ID. val GEAR: [256]u64 = [-    0x5c4a1ae8bc697bc4, 0x404c2fabb73cc047, 0xd3182b34b91a5105, 0x2f6a7a0e10c9a4e9,-    0x7547bc4d5b634d0a, 0x23466e59c4b9b389, 0x5e59b19eea3c566a, 0xbac21e55adbf2486,-    0x7664aaaf965fcad9, 0x82a61ba3f60574e4, 0xf271f8fa19825daa, 0x0178ec62a70d4219,-    0x8a7476f57c1ac5e7, 0x87100c1da58f4225, 0xa3094e45c27e8d72, 0x9a4b8c66691e4b65,-    0x01ca246131e5cf43, 0x67082475db706bc6, 0x1e8ff56368a8a554, 0x529004a71bcce301,-    0x08e485f89622934f, 0x35784d339932308f, 0x118506e540737be6, 0xa01129f8a140b6bc,-    0xfe34955d89fe9c22, 0xe798e7847dcfcd55, 0xf5ed1a81775e5907, 0xc1008c76de665582,-    0xcdb70a32b89ff73e, 0x2053279d659f92c0, 0xfb6f25ff149156d2, 0xbbd7cd25542da950,-    0x0f795883ab7b0b58, 0x63c9ad4618799824, 0x86758361be3505a2, 0xd0654221203a895a,-    0xfc553b7a897060a3, 0x63f30f39088f12b5, 0x1dbbfdb329090dc8, 0x034777bfbda53269,-    0x765653f19e19bd5f, 0x12f29bbb5ce1edde, 0x71ed901844f83c6f, 0xb5bab6d75be81227,-    0x0df63d3a03b97926, 0x1e5f7fd1a792c82b, 0x7b443971b934bae4, 0x6bc634b7e6eda850,-    0x55a65ff08f4a349f, 0x450786016bd046a3, 0x74224c0fd123c0b1, 0x7bfe7a2f975a97b6,-    0x5a79f2287ea6d79e, 0xf5249768011b01b8, 0x85247fee784c6164, 0xefaa92326ed3cffc,-    0x83e65683edb9ce2a, 0x93c1beaf37c773d8, 0xa613c1f3e59cf6a3, 0x4e53fb579208a3b6,-    0x41a478e2ea3a5add, 0xe954507d5f9f528e, 0xa67ee92c34dab874, 0x4fde76eb0b7836c9,-    0x0a1d48b4c6aa6b0e, 0x73acd9b67c53c8fe, 0xe7ae8a73f3532a5c, 0xd65989cf5a86b2bb,-    0x6cc0caad82f1d784, 0x14c3a111475499f5, 0x515264dfff947d17, 0x350bb4dd5de7b8fe,-    0x86fd36770e8a2e36, 0xb0a45b7862f061ed, 0x6bcab5ddfb78481e, 0x7be29762aa52548a,-    0xe8ba251664ffc0a6, 0x46b724ec15fe280f, 0x49a3948b86c10650, 0x8728d203182a056f,-    0x77e609499e68119d, 0xfa3dea8f23253491, 0xad1d2671404a08d3, 0x5d1a0bad3e7b7ed2,-    0x77340fe7e9f8c5ba, 0x942c81cdf24a0167, 0x167c54a7c493f85e, 0x1664dccbcebc4b22,-    0xa61b572d4ad878b8, 0x8b9af023f8602c9f, 0xe7b928217e4811cd, 0x129037e9fd549c7f,-    0x61ebe7e42502e4be, 0x0a1ee930ea49fb3b, 0x615fc103e28c8e0a, 0x1f73c58f94a72da1,-    0x5689e070f5399d98, 0xe30fe38ef1ad4366, 0x2a593e06370b77d5, 0x3043c337e1854347,-    0xe5d72faa615d110c, 0x4038bd291c593240, 0x2ab2bfa552d4b375, 0x8d552f184d7f1bf5,-    0xf5797da702a9b9e6, 0xe746797066c7d4ae, 0x9ded398ec8b444ad, 0x1677250cc1263ed7,-    0xcd387dfff99848c8, 0x76c8e17e7e3c51c7, 0x88957499ab90cd0b, 0x61e1f2ed44d22926,-    0xc67759e92332d47a, 0x20a21f589906abba, 0xcbc97c04dc3600ad, 0xf7c85c33e41fa6a4,-    0x1097084d6ec2bba1, 0x9fb02d6d6bf6bf94, 0xbe491ed9c83c51e2, 0xa2e98c363d6c67a2,-    0x9bec27f58f3b5414, 0x194ac1cb82e2d4ab, 0x0064c87914d677a6, 0xcc73278ab09622b6,-    0x8defa41c9b8b9b51, 0x536cf2c4aa196ece, 0x604a6f8528d890f5, 0x284a26063447d249,-    0xbe70f37289b5497c, 0x06ddcd30daa6a54f, 0xbfb15004943d67fb, 0x62c1f2bb4bf0265a,-    0xabe4fe049ba8fd65, 0x20af090e344a0185, 0x416fb2ef6fee28fc, 0xf60d926eacf379b3,-    0x53610e6411d45e23, 0xf6fb37c66ba64597, 0x42bf7a59192fe853, 0xc04446e8b297e0f2,-    0x82f1f4d862e3ad59, 0x36ba938e2525ee17, 0x49142470e54f7798, 0x4dfebe5f4e61d2bc,-    0x15f8c7f7f38338d2, 0x4f36f36937336521, 0xfff70db1621739c8, 0x77768d16df7f7308,-    0x55e4ad3f457a73b9, 0x89fe259e513d73ef, 0x1e087e74e73661ad, 0x6c8c61983b203db0,-    0xbe4846ae96db0e56, 0x97fb0e4e2ec84ad6, 0xf6a841d652558edc, 0x6c8c5a1c2b137937,-    0x9f93197506451b99, 0x3234216f7492d666, 0x0969310ecbc88bc6, 0x1f38f4918779c317,-    0xfb9d10f0c3a4c23d, 0xb89b140d8f11c5be, 0x10decb1f791bebae, 0x8009d5919e8262f3,-    0x9f0cedd8d7d130ab, 0xd14db528d87ee2db, 0x4c180eba3157ac53, 0x6c8897a62e2830a2,-    0x46e03299b3b35cf0, 0xe113872493896b19, 0xf1209451f7a4ff94, 0xb939749bf938eebc,-    0xb16291a34e66e625, 0x007182e94e603784, 0xb1ae9121fa1a1d1b, 0x6ec222ddf28dca0c,-    0x28854d8b1e655115, 0x6332ac9c0d1199a2, 0x365fdd7aeebe647e, 0x0fd7033c86765869,-    0x6c516b8859c8bb01, 0x46c24f980413490f, 0xf867fb37bb76dea9, 0x892d78d1aa3f9fcb,-    0xcd175fb5a96963ed, 0x5f617cb58fbc8a77, 0x4df29395bddc578d, 0x7d69552224bb6149,-    0x3584177015ff325b, 0x816acc8a1c352448, 0x449c10951bca892e, 0xadc4d1fcef7ff534,-    0x64d0275a80e466a4, 0x402f692c29a12441, 0xeec7a5bf7941d5d0, 0x5f166583c2601ed5,-    0x3b6838dd02fe672f, 0xccedf39242f8c018, 0x07d8c86783c02ffc, 0xaf49620443a23682,-    0xd91abe9b213695a2, 0x69163f8bf62b1b7c, 0xe31b2e1d8310913f, 0x0c3d7e22dfc2d09c,-    0x756b39a23e62c096, 0xcc2687b10d550a4c, 0x5b6b449b793b7ae4, 0x1b860384dc8e65e7,-    0xdf57565c73e4c5f8, 0x5ad5f2b6fc9d0ed3, 0x86b2d2094d589220, 0x1db728b73e4dcef6,-    0xe2a136a5157f2ca3, 0x08d4b194366445ae, 0xda7f156e2e85d3a9, 0x6c3d56f62df389e9,-    0xd4874f9387cb7964, 0xa514cb3f14f74eed, 0x1f37e5ff29d299ee, 0xea7429deb1b71032,-    0x963db43d9b95b0aa, 0x582b6be2902ffc67, 0x2e926ea8a00af35d, 0x92093f9d25126fab,-    0x344f7c282e4122ec, 0x87ff7054daeb429b, 0xc49f0e4726d146b9, 0xe0773071e66e17e5,-    0xb345dfdb70eee881, 0x9d8e2b9bedc39423, 0x3ebf8325c8ecd78b, 0x9a226652626286c4,-    0x96edb25817f1138e, 0xcbb693398017b173, 0x786633d49e99af60, 0xb225db9832e7d8df,-    0x4cec56b4202c7d7f, 0x18c8278d6ff7825d, 0xed46971bf16adef4, 0x522c06f1fa3978df,-    0x8d40437999463947, 0xc8959f60eb0d27ad, 0xb9a089058f480f80, 0x215482f345e3c2d5,-    0xf91c64d2b1b525b9, 0xb68bd03968c728fa, 0x8b12cebebc865819, 0x6d60b167f805c0d4,-    0x40d773d869517dc2, 0xdb50fd3858eb7ee6, 0x5af4344ac6a899c7, 0xb055dc42b7329b9b,-    0x2314a1c54ecfe1c7, 0x0eaeed2e3c60c346, 0xfe5614b9ebe6329b, 0x8592445ff13752f9,+    0xf8447b379cdadcd5, 0xbe63d125aec8ca6d, 0x10bcf6f7c33cbed3, 0x2b6ba7e5a572be1b,+    0x145ba610bca60ff6, 0x335db29c88ea2545, 0xaf7ab78b34ea1c8f, 0x04383fe20dcbf16a,+    0x542c3ed8a305a2e4, 0x8306bb8ba52f1966, 0x64abea4024164cb2, 0xd5d28a2763a5c906,+    0xa709f38738243984, 0x0a1ac1c77c75aa83, 0x2fe3df4653145470, 0x8ef53a2c653fab0e,+    0xe6f0c2e4436fe0b0, 0xf387dc66d595a4fd, 0xd520313dc5c2ef0c, 0x3aa4df70dc7b4e20,+    0xfe89fa05b2229b26, 0xd5b811960c27b302, 0xd6b9a82445390552, 0x8c9df4eb17abefbb,+    0x8dddfb83b6f3e3f5, 0x0dfd5490314a4a77, 0xcd39d37f4fffeb07, 0xd953ec046f403aef,+    0xfd67339f7fb60679, 0x1673126b2d34af03, 0x810365172ff5c83f, 0x2e219c15c03a0ce6,+    0xcd2dd776c4dc8b37, 0x31a05022f6757ac7, 0xa54aaac64e2b7a4f, 0x541cc9dbe8ef6090,+    0x15f25ab7ac626796, 0x6a8743338a21c0db, 0x15856273cdeb225b, 0x92d3b90d24b0ceab,+    0xdb7ed64743e6bafd, 0x6a2371fe5845980b, 0x3ed2cbd1a12b1554, 0x26292f185e7ae5c2,+    0xcfa468695ae32b7c, 0x10c8ad9d7d37b38b, 0x0c93c73c9b8a5760, 0xdce731099879e3ac,+    0x948f5e10a859b0f9, 0x5b7b5381c2b61ad3, 0x032e2bccef396ec0, 0xcb04960d80779661,+    0x1800187b89406bba, 0x8cfeb1e5741f9b5b, 0xc0a8b6dd4ca2bc72, 0x7121d98743aad057,+    0x62122a734c7c30cf, 0x09dfc78344470469, 0x7dd2e6c3164e95cc, 0x1e081af5098f9f95,+    0xa060c1359428a17a, 0xfbbf087daa942d8d, 0x02befbb34a59cfa0, 0xf61aba2e56e7fcab,+    0xd201b08ba97b4f74, 0x05d1923c598bb943, 0x577cb1ac90c58fdc, 0x35714370655de214,+    0x9e875d6330c98d09, 0x580e31b7e5d121d1, 0x86e331d3a1868867, 0x7198d317f173adfc,+    0xd1d712f288f8f74f, 0x498eb6b5efeca820, 0x01609a0433de3ce6, 0xc6451604d3e5a30e,+    0x7cb8c805a7fc71d4, 0xabd48608b949d705, 0x80a7504b42991b37, 0xde2d8d960bc877d9,+    0x6658840c7b5680c4, 0x90ff0a9f74a67da4, 0x9c44badf508da6b7, 0x9399bf790bbe7784,+    0x984ef4f5cd8b44d9, 0x338a088febb6b2c4, 0x56b6457eba02a001, 0x69db87f3d877bc17,+    0xeaa4df254010fc26, 0xd4c46364dcfcc4c7, 0xf5f5ffa312012d68, 0xd56c6fd2995b3e2d,+    0x098e8ef0f3185a71, 0xd57d7c0096690b41, 0xd562d821200e0cd4, 0xbfba257d5a89b160,+    0x1058a4dfeffa765d, 0x74a5f76a74e5ca3c, 0xbcf278dd8ff805dc, 0x13696b2e934dd66f,+    0xa8e2ffed5d6c8f52, 0xc9711402212f8271, 0x83db1ae9a24b47f4, 0xfec127f15e6c1470,+    0x6e8185b3a8e5e1fc, 0xd503ce1f19ca76f8, 0x5e80dadee3f2c38a, 0x2d1ff7b2e1cb7079,+    0xf572fb19e969ef53, 0x502708c0febdf28c, 0x59f0859c330bd3ae, 0xfefb158359b5411f,+    0xbcbcce46e6c1b56d, 0x9fc6bd49258ef328, 0x89d3b5d6ba11aa7c, 0x4e44ee7a780f8aa6,+    0xcca6584b41c6a8dd, 0xbd39bf6f976088f1, 0x609df3f5f267e2cf, 0x970c32cd9b8f1f95,+    0x373a464e80f4734b, 0xfd01ca133c483c61, 0x317dfec1e4e54486, 0x653bb090e32d5fb8,+    0x0944739599bfa481, 0x33ee31072ab56364, 0xd3826c26bc20b44c, 0xd11f9251c67a66ac,+    0x79a81cf24d93662f, 0x9672efb77cb79214, 0x0b6852062b150542, 0x22cb8254926d5d21,+    0xf68817c5be91619e, 0x1fb235ed20504b6c, 0x7a00398632aae3d8, 0xd5cafd4331978a29,+    0xf80e0a5957bca856, 0x409ce1b813206914, 0xd0f1da7e99289a41, 0x2ede97d8000af47b,+    0x6a27ef6571d9b969, 0x97c4695b34247b16, 0x5ee4b2b0e7919e12, 0x73f02023b038ceed,+    0x54e24747c8dbc3f2, 0xea175f09cd4ea419, 0xa420b4e91e595736, 0xf58072b7aa16c147,+    0xc4eed8a665f16537, 0xefe95010907b5c71, 0x20b530bfb2fb6c5d, 0xa14f7dca9de676bd,+    0x899835e7943ffc24, 0x72cea269e19c9b60, 0xa2311c0586c3c70d, 0x5feb4a14932c2e90,+    0xbf24d7cf401f1a8c, 0xae081fd9aa06845a, 0x332ce9fca6bbb7df, 0xc4c0c4d9b89e0df2,+    0x2bddbc99fe5fb745, 0x533b9037add81672, 0x133ac755cf098a00, 0x8305c21cea592a03,+    0x2164728763c1f742, 0x8385d8702b7a940a, 0xb8b02364b0352c47, 0xd5535761e27bae91,+    0x930b49bf6552198f, 0xccd2c5d2f32ab8c6, 0x58c74b4b32fc9fa8, 0x98a324c44c1cd723,+    0x2abeecf0cfc735fc, 0x6419bb9739226916, 0xd9e94c1946307dd2, 0xe15622a475f6e038,+    0xc48fba22892a33bc, 0x0722a604b075bafc, 0x78889b342ff4560c, 0xdada1d3833b35bd6,+    0x4917f2c07311a5cc, 0x9d7685084873a92a, 0x5869edb9c4b4e78c, 0x30afc030f9d64382,+    0x548ed28c8845626f, 0x606be35894cbee13, 0xaaa4a0c60695574f, 0x364cf234a3dd2844,+    0x9aba0e81ff2f109c, 0x18d1e9b3fdfda42c, 0x1b9477ec5fb1ad36, 0x7f0136e7d6a3cb98,+    0x9a4e7496f95a6fbc, 0xb940293ab845abd6, 0xa1c6388ef0208374, 0x8da07493e7de1f8a,+    0xeeba605e6e273c4c, 0x3202537c27f4c285, 0xc40eebd30f194254, 0xdb3e091b83f3578b,+    0xef4d4e9267b4c82e, 0xce163a6c0f695d0d, 0x0b73d109498e2d9a, 0xb0ecccc0a05090a8,+    0x4748b37a01cd7c50, 0x75bedfaf04e09117, 0x4290c117203c922a, 0x0f4edf02e3d62367,+    0x9f88f3082a0860ef, 0x029e5bb038f506fa, 0xb4ff698bcd73d0ac, 0x61321d4822b1ebb9,+    0x997b0a0bfcbc4b7e, 0x669e117eb2fbc329, 0xc770e6b51cf723e1, 0x43e9c64d4ceba4fa,+    0x7089a98e8a61f669, 0x7635f6b39edd3638, 0x7efb2ec180815b1a, 0x599b9ba270412abe,+    0x099db42c6da84f07, 0xa80aa895e988a9e2, 0x857538709775368c, 0x0f35b67029f03082,+    0x29d1d07f6cdff719, 0x25f0c392a5184c13, 0xfab7c93869e72670, 0x57bfb01577cf7ea5,+    0xf243888561a284c9, 0x2cb309bd1f1e4f95, 0x860339add5cde62f, 0xb5c77be90a3bab2a,+    0x016359c3a034ab67, 0xf4426de9276d41b1, 0x1f0f25a49fb35408, 0xa216f9fe7f9a47d4,+    0xdf6ff4f9bc47eb4e, 0xde377b438cddb110, 0xa2bf999d31ef328f, 0x460eea338ffb2e84,+    0xf73ea9dde1297fa3, 0x05cb4964fec1213c, 0x7713be29f105fd3e, 0x6d6796f838c38ba2,+    0x8c8adb1031c0ae50, 0x526a7f116fe65583, 0xeabdacfe2ef6c020, 0x1c0de4493237857f,+    0xac655048637e992b, 0x2664f2bf04599664, 0x5cbe9c160f2f8c53, 0x1cc056978d12a1dc,+    0x889e35cb2ca6742f, 0xe0ab4043f6b783cc, 0x011128d888973e10, 0xfb74bdcd0afb54eb, ]  /// Byte view of the frozen table for fast FFI-free indexing.--- a/src/src/cli/bench_cmd.sx+++ b/src/src/cli/bench_cmd.sx@@ -112,7 +112,7 @@     }     buf.Buf.free(listing) -    val meta_path: ref u8 = @fmtalloc("/tmp/vein-bench-meta-{d}.oids", {time.now_ns()})+    val meta_path: ref u8 = @fmtalloc("/tmp/veins-bench-meta-{d}.oids", {time.now_ns()})     val meta_view: str.StringView = str.from_cstr(meta_path)     val meta_written: bool = files.write_all(meta_view, buf.Buf.view(meta_buf))     buf.Buf.free(meta_buf)@@ -138,7 +138,7 @@     }      val key: ref u8 = @alloc(32) as ref u8-    @memcpy(key as ref void, c"vein-git-oid", 12)+    @memcpy(key as ref void, c"veins-gitoid", 12)     val lazy: mut idmap.IdSet = idmap.new(16384)     val commits: mut usize = 0     val trees: mut usize = 0--- a/src/src/cli/checkout_cmd.sx+++ b/src/src/cli/checkout_cmd.sx@@ -22,7 +22,7 @@             return status         }         none => {-            stdio.eprint("vn: not a vein repository\n", {})+            stdio.eprint("vn: not a veins repository\n", {})             return 1         }     }--- a/src/src/cli/fsck_cmd.sx+++ b/src/src/cli/fsck_cmd.sx@@ -14,7 +14,7 @@             layout.free_repo(repo)         }         none => {-            stdio.eprint("vn: not a vein repository: {s}\n", {path})+            stdio.eprint("vn: not a veins repository: {s}\n", {path})         }     }     return status--- a/src/src/cli/git_cmd.sx+++ b/src/src/cli/git_cmd.sx@@ -64,7 +64,7 @@             repo = r         }         none => {-            stdio.eprint("vn: not a vein repository: {s}\n", {repo_path})+            stdio.eprint("vn: not a veins repository: {s}\n", {repo_path})             return 1         }     }@@ -104,7 +104,7 @@             repo = r         }         none => {-            stdio.eprint("vn: not a vein repository: {s}\n", {repo_path})+            stdio.eprint("vn: not a veins repository: {s}\n", {repo_path})             return 1         }     }--- a/src/src/cli/help_cmd.sx+++ b/src/src/cli/help_cmd.sx@@ -8,7 +8,7 @@ }  pub fn usage() void = trust {-    stdio.puts("vein is a tool for managing source code")+    stdio.puts("veins is a tool for managing source code")     stdio.puts("")     stdio.puts("commands:")     stdio.puts("  init         create a repository")@@ -34,7 +34,7 @@ fn show_init() void = trust {     stdio.puts("usage: vn init [path] [-git-import:<gitdir>]")     stdio.puts("")-    stdio.puts("create a vein repository, optionally importing an existing git repository")+    stdio.puts("create a veins repository, optionally importing an existing git repository")     stdio.puts("")     stdio.puts("arguments:")     stdio.puts("  [path]                    directory to create (default: .)")@@ -60,7 +60,7 @@     stdio.puts("import commits and refs reachable from a git repository")     stdio.puts("")     stdio.puts("arguments:")-    stdio.puts("  [path]                    vein repository (default: .)")+    stdio.puts("  [path]                    veins repository (default: .)")     stdio.puts("")     stdio.puts("options:")     stdio.puts("  -source:<gitdir>          prepare the mirror from <gitdir> before importing")@@ -157,7 +157,7 @@ fn show_git_export() void = trust {     stdio.puts("usage: vn git export [path]")     stdio.puts("")-    stdio.puts("export commits reachable from bookmarks and tags into .vein/git")+    stdio.puts("export commits reachable from bookmarks and tags into .veins/git") }  fn show_help() void = trust {--- a/src/src/cli/init_cmd.sx+++ b/src/src/cli/init_cmd.sx@@ -10,7 +10,7 @@     val result = layout.init(path)     match result {         ok repo => {-            stdio.print("initialized vein repository at {s}\n", {layout.root_view(repo)})+            stdio.print("initialized veins repository at {s}\n", {layout.root_view(repo)})             val mut_source = source             if mut_source is some src {                 val prepared: i32 = mirror.prepare(repo, src)--- a/src/src/cli/selftest_cmd.sx+++ b/src/src/cli/selftest_cmd.sx@@ -183,11 +183,11 @@     val out: pack.PackOutput = pack.encode(objects)     assert_bytes_hex(         out.pack,-        c"56504b3101000000010000000000000001fd6e74c2454903e76762c71e9f22f7418e5d36f6149c48eeee734ec2e3dc410300010100294c1017488cc29fd32a67b299e998e7d995f5636ef245e1a5bc47be5c1e1042"+        c"56504b310100000001000000000000008be3caa39b307b2b4a46533174cc7faa49c0ff34317302d188276c9641be35fb030001010072c385a83448a5e16853735a79a212f0377d0e40be777d121271758525dbc911"     )     assert_bytes_hash(         out.index,-        c"64bae9db19aa5bf84e4fe72e9cfe38e9563c5baa04abb4a4ca887dbdc94e4b1a"+        c"d5dfb7b2ce4235f87856c12ff2e0b65d817dc29dfedad62ba34e71d74dca0cfc"     )     val bp: mut ref void = body.ptr as ref void     @free(bp)@@ -255,15 +255,15 @@     }     assert total == n     val c0 = objid.object_id(types.CHUNK, bytes.Bytes.slice(bytes.bytes(data, n), 0, 262144))-    assert_id(c0, c"a6a4efd6c6330d328e0a3e2a97fb6202771433ffeeea099a93f8df08399b44fd")+    assert_id(c0, c"c83c67617ae4445631508cc4edba83ba58d9e996cea40c980ec69a8b6da86458")     val c1 = objid.object_id(types.CHUNK, bytes.Bytes.slice(bytes.bytes(data, n), 262144, n))-    assert_id(c1, c"4c899670c3ec130e9ce03b5061d2593c2fa4f66661c6285f470e57dc65284444")+    assert_id(c1, c"0c91665d423fd704baae9454d24697460c4898fbf16cc6ad498d3f750d073a4b")     val built: ref blob.BlobBuild = blob.build(data, n)     val root = objid.object_id(types.BLOB, built.root_body)-    assert_id(root, c"34bb8e7c00665b61c882fe1cae0a51a44d6ad1719fd44a1b22c991ae6a3c24bc")+    assert_id(root, c"937fe1a8d674aa28cb9fa074a76ea84cdc1d6c61e209f47bbdebbe4361b698cf")     assert_id(         blob.root_id(built),-        c"34bb8e7c00665b61c882fe1cae0a51a44d6ad1719fd44a1b22c991ae6a3c24bc"+        c"937fe1a8d674aa28cb9fa074a76ea84cdc1d6c61e209f47bbdebbe4361b698cf"     )     blob.free_build(built)     val p0: mut ref void = c0.ptr as ref void@@ -503,15 +503,15 @@  fn test_repository(repo: layout.Repo) void = trust {     val tree_id: objid.Id = make_tree(repo)-    assert_id(tree_id, c"01fd6e74c2454903e76762c71e9f22f7418e5d36f6149c48eeee734ec2e3dc41")+    assert_id(tree_id, c"8be3caa39b307b2b4a46533174cc7faa49c0ff34317302d188276c9641be35fb")     val commit_id: objid.Id = make_commit(repo, tree_id)-    assert_id(commit_id, c"c6a60eba55e527a7b746aee77e66fc5e8e60ef31c5c407d57eaceaeececebb3c")+    assert_id(commit_id, c"7f648b3621402df01985d121888c89c37107274fb8bb54661f12deca6cc72299")     val conflict_id: objid.Id = make_conflict(repo)-    assert_id(conflict_id, c"d6d530d1e90142531d26d6db8489b0c42654b312d27b56f74b45d97f2b00e7a9")+    assert_id(conflict_id, c"02b5ddd6d982a32aa19d1c1b11d09165b44667b0c33acd993c44457dedcabd06")     val view_id: objid.Id = make_view(repo, commit_id)-    assert_id(view_id, c"9ba517b0693bd2016b9662f18fb54ca0ceaadc2ab08c4d87d9c4c9e42e689eed")+    assert_id(view_id, c"a2e19569bb3b5c28775bc8503c45c4edce6d51f55303e39bc02eec529324cd11")     val op_id: objid.Id = make_operation(repo, view_id)-    assert_id(op_id, c"99a9dea611815d7320e8481495227bf62e8a224ec873f3cd1daca5b4e2ece4f1")+    assert_id(op_id, c"0a5494529353fb5886870a128139e07d95f40afcd831afc423617808f31dc426")     mark_op_head(repo, op_id)     assert !objid.Id.is_none(conflict_id) }@@ -523,7 +523,7 @@     test_chunker()     test_fuzz() -    val path: ref u8 = @fmtalloc("/tmp/vein-selftest-{d}", {time.unix_now_micros()})+    val path: ref u8 = @fmtalloc("/tmp/veins-selftest-{d}", {time.unix_now_micros()})     val repo_r = layout.init(str.from_cstr(path))     val repo: mut layout.Repo = layout.Repo{root: bytes.empty()}     match repo_r {--- a/src/src/crypto/blake3.sx+++ b/src/src/crypto/blake3.sx@@ -230,30 +230,30 @@     copy_words(out, base, 8) } -extern (C) fn vein_blake3(data: ref u8, len: usize, out: ref u8) void = "vein_blake3"-extern (C) fn vein_blake3_state_size() usize = "vein_blake3_state_size"-extern (C) fn vein_blake3_init(state: ref void) void = "vein_blake3_init"-extern (C) fn vein_blake3_update(+extern (C) fn veins_blake3(data: ref u8, len: usize, out: ref u8) void = "veins_blake3"+extern (C) fn veins_blake3_state_size() usize = "veins_blake3_state_size"+extern (C) fn veins_blake3_init(state: ref void) void = "veins_blake3_init"+extern (C) fn veins_blake3_update(     state: ref void,     data: ref u8,     len: usize-) void = "vein_blake3_update"-extern (C) fn vein_blake3_final(state: ref void, out: ref u8) void = "vein_blake3_final"+) void = "veins_blake3_update"+extern (C) fn veins_blake3_final(state: ref void, out: ref u8) void = "veins_blake3_final"  pub fn hasher_state_size() usize = trust {-    return vein_blake3_state_size()+    return veins_blake3_state_size() }  pub fn hasher_init(state: ref void) void = trust {-    vein_blake3_init(state)+    veins_blake3_init(state) }  pub fn hasher_update(state: ref void, data: ref u8, len: usize) void = trust {-    vein_blake3_update(state, data, len)+    veins_blake3_update(state, data, len) }  pub fn hasher_final(state: ref void, out: ref u8) void = trust {-    vein_blake3_final(state, out)+    veins_blake3_final(state, out) }  /// Hash `len` bytes at `data` and write the 32-byte digest to `out`.@@ -261,7 +261,7 @@ /// The production build links the scalar C implementation. The pure /// implementation below is retained for format tests and fallback use. pub fn hash(data: ref u8, len: usize, out: ref u8) void = trust {-    vein_blake3(data, len, out)+    veins_blake3(data, len, out) }  pub fn hash_pure(data: ref u8, len: usize, out: ref u8) void = trust {--- a/src/src/crypto/blake3_c.c+++ b/src/src/crypto/blake3_c.c@@ -1,4 +1,4 @@-/* Thin adapter from the vein runtime to the vendored BLAKE3 C library. */+/* Thin adapter from the veins runtime to the vendored BLAKE3 C library. */  #include "blake3/blake3.h" @@ -5,7 +5,7 @@ #include <stddef.h> #include <stdint.h> -void vein_blake3(const uint8_t *data, size_t len, uint8_t out[32]) {+void veins_blake3(const uint8_t *data, size_t len, uint8_t out[32]) {     blake3_hasher hasher;     blake3_hasher_init(&hasher);     blake3_hasher_update(&hasher, data, len);@@ -12,18 +12,18 @@     blake3_hasher_finalize(&hasher, out, 32); } -size_t vein_blake3_state_size(void) {+size_t veins_blake3_state_size(void) {     return sizeof(blake3_hasher); } -void vein_blake3_init(void *state) {+void veins_blake3_init(void *state) {     blake3_hasher_init((blake3_hasher *)state); } -void vein_blake3_update(void *state, const uint8_t *data, size_t len) {+void veins_blake3_update(void *state, const uint8_t *data, size_t len) {     blake3_hasher_update((blake3_hasher *)state, data, len); } -void vein_blake3_final(void *state, uint8_t out[32]) {+void veins_blake3_final(void *state, uint8_t out[32]) {     blake3_hasher_finalize((const blake3_hasher *)state, out, 32); }--- a/src/src/git/export.sx+++ b/src/src/git/export.sx@@ -1,4 +1,4 @@-/// Export vein commits into the bare git mirror.+/// Export veins commits into the bare git mirror. /// /// Objects are written as loose git objects so export is incremental: only /// commits missing from the ID map are visited, and each object is hashed@@ -544,7 +544,7 @@         @append(             extras,             commit.new_kv(-                bytes.Bytes.dup(bytes.bytes(c"vein-change-id", 14)),+                bytes.Bytes.dup(bytes.bytes(c"veins-change-id", 15)),                 bytes.Bytes.dup(bytes.bytes(hex, 32))             )         )--- a/src/src/git/format.sx+++ b/src/src/git/format.sx@@ -382,7 +382,7 @@                                 out.canonical = false                             }                         }-                    } elif bytes.Bytes.eql(kv.key, bytes.bytes(c"vein-change-id", 14)) {+                    } elif bytes.Bytes.eql(kv.key, bytes.bytes(c"veins-change-id", 15)) {                         if kv.value.len == 32 {                             val cid: ref u8 = @alloc(16) as ref u8                             val j: mut usize = 0@@ -582,7 +582,7 @@ }  -/// Sort entries by plain name (vein's tree order).+/// Sort entries by plain name (veins' tree order). pub fn sort_raw_entries(entries: mut list[ref RawTreeEntry]) void = trust {     val n: usize = @len(entries)     val i: mut usize = 1--- a/src/src/git/import.sx+++ b/src/src/git/import.sx@@ -1,6 +1,6 @@ lib "z" -/// Import a git object graph into the vein store and record an operation.+/// Import a git object graph into the veins store and record an operation.  val str       = use("std/string") val stdio     = use("std/stdio")@@ -111,7 +111,7 @@  fn derive_change_id(oid: bytes.Bytes) objid.ChangeId = trust {     val b: mut buf.Buf = buf.new(48)-    buf.Buf.put_raw(b, c"vein/change", 11)+    buf.Buf.put_raw(b, c"veins/change", 12)     buf.Buf.put_bytes(b, oid)     val out: ref u8 = @alloc(32) as ref u8     b3.hash(b.ptr, b.len, out)--- a/src/src/git/lazy.sx+++ b/src/src/git/lazy.sx@@ -1,7 +1,7 @@ /// Git-backed blob identifiers used by lazy imports. ///-/// A lazy blob ID is the 12-byte prefix "vein-git-oid" followed by the-/// 20-byte git object ID. Blob bodies stay in the `.vein/git` mirror until+/// A lazy blob ID is the 12-byte prefix "veins-gitoid" followed by the+/// 20-byte git object ID. Blob bodies stay in the `.veins/git` mirror until /// they are materialized.  val bytes = use("../core/bytes.sx")@@ -12,10 +12,10 @@ pub val ID_LEN: usize = 32  fn prefix() bytes.Bytes = {-    return bytes.bytes(c"vein-git-oid", 12)+    return bytes.bytes(c"veins-gitoid", 12) } -/// Build the lazy vein ID for a git blob.+/// Build the lazy veins ID for a git blob. pub fn blob_id(oid: bytes.Bytes) objid.Id = trust {     pre {         oid_len: oid.len == GIT_OID_LEN@@ -30,7 +30,7 @@     return objid.id(out) } -/// True when `id` names a git-backed blob rather than a stored vein blob.+/// True when `id` names a git-backed blob rather than a stored veins blob. pub fn is_lazy(id: objid.Id) bool = trust {     if id.ptr == none {         return false--- a/src/src/git/map.sx+++ b/src/src/git/map.sx@@ -103,12 +103,12 @@     return success } -fn vein_hex(id: objid.Id) ref u8 = {+fn veins_hex(id: objid.Id) ref u8 = {     return objid.Id.hex(id) }  pub fn save_raw(repo: layout.Repo, id: objid.Id, body: bytes.Bytes) bool = trust {-    val hex: ref u8 = vein_hex(id)+    val hex: ref u8 = veins_hex(id)     val base: str.StringView = layout.raw_dir(repo)     val name: str.StringView = str.from_cstr(hex)     val final: str.StringView = files.join(base, name)@@ -126,7 +126,7 @@ }  pub fn has_raw(repo: layout.Repo, id: objid.Id) bool = trust {-    val hex: ref u8 = vein_hex(id)+    val hex: ref u8 = veins_hex(id)     val base: str.StringView = layout.raw_dir(repo)     val name: str.StringView = str.from_cstr(hex)     val path: str.StringView = files.join(base, name)@@ -138,7 +138,7 @@ }  pub fn load_raw(repo: layout.Repo, id: objid.Id) option[bytes.Bytes] = trust {-    val hex: ref u8 = vein_hex(id)+    val hex: ref u8 = veins_hex(id)     val base: str.StringView = layout.raw_dir(repo)     val name: str.StringView = str.from_cstr(hex)     val path: str.StringView = files.join(base, name)@@ -157,7 +157,7 @@ }  /// Remember that a commit was created natively so the exporter knows whether-/// to add the `vein-change-id` header.+/// to add the `veins-change-id` header. pub fn mark_native(repo: layout.Repo, id: objid.Id) bool = trust {     val hex: ref u8 = objid.Id.hex(id)     val line: ref u8 = @fmtalloc("{s}\n", {str.from_cstr(hex)})--- a/src/src/git/mirror.sx+++ b/src/src/git/mirror.sx@@ -1,4 +1,4 @@-/// Prepare the `.vein/git` mirror from an existing git repository.+/// Prepare the `.veins/git` mirror from an existing git repository.  val str    = use("std/string") val bytes  = use("../core/bytes.sx")@@ -126,7 +126,7 @@     return !failed } -/// Copy the source git directory into `.vein/git`. Existing mirrors are left+/// Copy the source git directory into `.veins/git`. Existing mirrors are left /// untouched and treated as already prepared. pub fn prepare(repo: layout.Repo, source: str.StringView) i32 = trust {     val target: str.StringView = layout.git_dir(repo)--- a/src/src/git/oidmap.sx+++ b/src/src/git/oidmap.sx@@ -1,7 +1,7 @@ /// A small open-addressed map keyed by 20-byte git object IDs. /// /// Slots store the key, a 32-byte payload, and a used flag. This is used for-/// reachability sets and for the in-memory git-to-vein ID maps during import.+/// reachability sets and for the in-memory git-to-veins ID maps during import.  val bytes = use("../core/bytes.sx") --- a/src/src/io/stat.sx+++ b/src/src/io/stat.sx@@ -2,7 +2,7 @@ /// /// The C `struct stat` layout differs by platform, so only the fields the /// snapshot code needs are read, from the offsets used by the hosted runtimes-/// vein targets.+/// veins targets.  val str        = use("std/string") val allocators = use("std/allocators")--- a/src/src/main.sx+++ b/src/src/main.sx@@ -82,7 +82,7 @@             return some repo         }         none => {-            stdio.eprint("vn: not a vein repository\n", {})+            stdio.eprint("vn: not a veins repository\n", {})             return none         }     }@@ -379,7 +379,7 @@         return selftest_cmd.run()     }     if cmd_is(cmd, c"version", 7) || cmd_is(cmd, c"--version", 9) {-        stdio.puts("vn 0.0.1 (vein-store 1)")+        stdio.puts("vn 0.0.1 (veins-store 1)")         return 0     }     if cmd_is(cmd, c"bench-import", 12) {--- a/src/src/object/id.sx+++ b/src/src/object/id.sx@@ -144,8 +144,8 @@  /// Object ID domain separator and type byte, then the body. pub fn object_id_into(type_byte: u8, body: bytes.Bytes, out: ref u8) void = {-    val b: mut buf.Buf = buf.new(body.len + 8)-    buf.Buf.put_raw(b, c"vein/1", 6)+    val b: mut buf.Buf = buf.new(body.len + 9)+    buf.Buf.put_raw(b, c"veins/1", 7)     buf.Buf.put_u8(b, 0)     buf.Buf.put_u8(b, type_byte)     buf.Buf.put_bytes(b, body)--- a/src/src/object/names.sx+++ b/src/src/object/names.sx@@ -14,7 +14,7 @@ }  /// A tree entry name: non-empty, not `.` or `..`, no `/` or NUL, and not-/// `.vein` in any case.+/// `.veins` in any case. pub fn valid_name(b: bytes.Bytes) bool = {     if b.len == 0 || b.len > prim.MAX_NAME_LEN {         return false@@ -30,8 +30,8 @@     if is_dot_name(b) {         return false     }-    val vein: bytes.Bytes = bytes.bytes(c".vein", 5)-    if bytes.Bytes.eql_ascii_ci(b, vein) {+    val veins: bytes.Bytes = bytes.bytes(c".veins", 6)+    if bytes.Bytes.eql_ascii_ci(b, veins) {         return false     }     return true--- a/src/src/store/fsck.sx+++ b/src/src/store/fsck.sx@@ -50,7 +50,7 @@ }  fn format_ok(d: bytes.Bytes) bool = {-    val expected: bytes.Bytes = bytes.bytes(c"vein-store 1", 12)+    val expected: bytes.Bytes = bytes.bytes(c"veins-store 1", 13)     if bytes.Bytes.eql(d, expected) {         return true     }@@ -70,7 +70,7 @@             d = x         }         none => {-            report(ctx, layout.root_view(ctx.repo), "missing .vein/format")+            report(ctx, layout.root_view(ctx.repo), "missing .veins/format")             return false         }     }@@ -77,7 +77,7 @@     val valid_format: bool = format_ok(d)     files.free_buffer(d)     if !valid_format {-        report(ctx, layout.root_view(ctx.repo), "unsupported .vein/format")+        report(ctx, layout.root_view(ctx.repo), "unsupported .veins/format")         return false     }     return true--- a/src/src/store/idmap.sx+++ b/src/src/store/idmap.sx@@ -1,4 +1,4 @@-/// Membership set keyed by 32-byte vein object IDs.+/// Membership set keyed by 32-byte veins object IDs.  val bytes = use("../core/bytes.sx") --- a/src/src/store/layout.sx+++ b/src/src/store/layout.sx@@ -6,10 +6,10 @@ val bytes = use("../core/bytes.sx") val files = use("../io/files.sx") -pub val FORMAT_TEXT_LEN: usize = 12+pub val FORMAT_TEXT_LEN: usize = 13  fn format_text() bytes.Bytes = {-    return bytes.bytes(c"vein-store 1", 12)+    return bytes.bytes(c"veins-store 1", 13) }  pub type Repo = {@@ -28,7 +28,7 @@     return trust path.canonicalize_path(p) } -/// Find the nearest ancestor (or `start` itself) containing `.vein/format`.+/// Find the nearest ancestor (or `start` itself) containing `.veins/format`. pub fn discover(start: str.StringView) option[Repo] = {     val abs: mut str.StringView = start     val joined: mut str.StringView = str.view(none, 0)@@ -51,7 +51,7 @@     }     for {         val root_b: bytes.Bytes = bytes.from_cstr(cpath)-        val marker: str.StringView = files.join(str.view(cpath, @strlen(cpath)), ".vein/format")+        val marker: str.StringView = files.join(str.view(cpath, @strlen(cpath)), ".veins/format")         val found: bool = files.exists_file(marker)         files.free_path(marker)         if found {@@ -75,44 +75,44 @@     return none } -pub fn vein_dir(r: Repo) str.StringView = {-    return files.join(root_view(r), ".vein")+pub fn veins_dir(r: Repo) str.StringView = {+    return files.join(root_view(r), ".veins") }  pub fn packs_dir(r: Repo) str.StringView = {-    return files.join(root_view(r), ".vein/store/packs")+    return files.join(root_view(r), ".veins/store/packs") }  pub fn tmp_dir(r: Repo) str.StringView = {-    return files.join(root_view(r), ".vein/store/tmp")+    return files.join(root_view(r), ".veins/store/tmp") }  pub fn op_heads_dir(r: Repo) str.StringView = {-    return files.join(root_view(r), ".vein/op-heads")+    return files.join(root_view(r), ".veins/op-heads") }  pub fn git_dir(r: Repo) str.StringView = {-    return files.join(root_view(r), ".vein/git")+    return files.join(root_view(r), ".veins/git") }  pub fn git_map_dir(r: Repo) str.StringView = {-    return files.join(root_view(r), ".vein/git-map")+    return files.join(root_view(r), ".veins/git-map") }  pub fn raw_dir(r: Repo) str.StringView = {-    return files.join(root_view(r), ".vein/git-map/raw")+    return files.join(root_view(r), ".veins/git-map/raw") }  pub fn working_copy_dir(r: Repo) str.StringView = {-    return files.join(root_view(r), ".vein/working-copy")+    return files.join(root_view(r), ".veins/working-copy") }  pub fn config_path(r: Repo) str.StringView = {-    return files.join(root_view(r), ".vein/config")+    return files.join(root_view(r), ".veins/config") }  pub fn format_path(r: Repo) str.StringView = {-    return files.join(root_view(r), ".vein/format")+    return files.join(root_view(r), ".veins/format") }  fn mkdirs_under(r: Repo, sub: str.StringView) bool = {@@ -141,37 +141,37 @@ }  fn ensure_layout(r: Repo) bool = {-    if !migrate_dir(r, ".vein/op_heads", ".vein/op-heads") {+    if !migrate_dir(r, ".veins/op_heads", ".veins/op-heads") {         return false     }-    if !migrate_dir(r, ".vein/working_copy", ".vein/working-copy") {+    if !migrate_dir(r, ".veins/working_copy", ".veins/working-copy") {         return false     }-    if !mkdirs_under(r, ".vein") {+    if !mkdirs_under(r, ".veins") {         return false     }-    if !mkdirs_under(r, ".vein/store") {+    if !mkdirs_under(r, ".veins/store") {         return false     }-    if !mkdirs_under(r, ".vein/store/packs") {+    if !mkdirs_under(r, ".veins/store/packs") {         return false     }-    if !mkdirs_under(r, ".vein/store/tmp") {+    if !mkdirs_under(r, ".veins/store/tmp") {         return false     }-    if !mkdirs_under(r, ".vein/op-heads") {+    if !mkdirs_under(r, ".veins/op-heads") {         return false     }-    if !mkdirs_under(r, ".vein/git-map") {+    if !mkdirs_under(r, ".veins/git-map") {         return false     }-    if !mkdirs_under(r, ".vein/git-map/raw") {+    if !mkdirs_under(r, ".veins/git-map/raw") {         return false     }-    if !mkdirs_under(r, ".vein/working-copy") {+    if !mkdirs_under(r, ".veins/working-copy") {         return false     }-    if !mkdirs_under(r, ".vein/resolutions") {+    if !mkdirs_under(r, ".veins/resolutions") {         return false     }     return true--- a/src/src/worktree/checkout.sx+++ b/src/src/worktree/checkout.sx@@ -1,4 +1,4 @@-/// Parallel, path-safe checkout from a vein tree into the working directory.+/// Parallel, path-safe checkout from a veins tree into the working directory.  val str        = use("std/string") val stdio      = use("std/stdio")@@ -606,7 +606,7 @@     files.free_buffer(body) } -fn parse_vein_hex(hex: bytes.Bytes) option[objid.Id] = trust {+fn parse_veins_hex(hex: bytes.Bytes) option[objid.Id] = trust {     if hex.len != 64 {         return none     }@@ -686,7 +686,7 @@     if tg is some id2 {         return some id2     }-    return parse_vein_hex(rev)+    return parse_veins_hex(rev) }  /// Check out `rev` (empty means the working-copy commit) into the repository.--- a/src/src/worktree/snapshot.sx+++ b/src/src/worktree/snapshot.sx@@ -1,6 +1,6 @@ /// Working-copy snapshotting. ///-/// Before a command reads or writes the working copy, vein snapshots the files+/// Before a command reads or writes the working copy, veins snapshots the files /// on disk into the working-copy commit. The commit keeps its change ID and /// message and is amended in place. A snapshot that produces the same tree as /// the existing commit does not create an operation.@@ -478,7 +478,7 @@ }  fn is_meta_name(name: bytes.Bytes) bool = trust {-    if bytes.Bytes.eql(name, bytes.bytes(c".vein", 5)) {+    if bytes.Bytes.eql(name, bytes.bytes(c".veins", 6)) {         return true     }     if bytes.Bytes.eql(name, bytes.bytes(c".git", 4)) {--- a/src/sx.mod+++ b/src/sx.mod@@ -3,7 +3,7 @@ spectre_version "v0.0.18"  build release {-    action "mkdir -p $OUT && ./build-native.sh $OUT && spectre ./src/main.sx -release -link-obj:$OUT/vein_native.o -o ./vn"+    action "mkdir -p $OUT && ./build-native.sh $OUT && spectre ./src/main.sx -release -link-obj:$OUT/veins_native.o -o ./vn"     flags "-release"     output "./vn"     windows {@@ -12,7 +12,7 @@ }  build dev {-    action "mkdir -p $OUT && ./build-native.sh $OUT && spectre ./src/main.sx -link-obj:$OUT/vein_native.o -o ./vn-dev"+    action "mkdir -p $OUT && ./build-native.sh $OUT && spectre ./src/main.sx -link-obj:$OUT/veins_native.o -o ./vn-dev"     output "./vn-dev"     windows {         output "vn-dev.exe"