Skip to main content

Module layout

Module layout 

Source
Expand description

Where vitrify keeps its working copies, and what it calls them.

Two places. <repo>/.vitrify/ is scratch nothing is ever built in: transaction worktrees, logs, run.json, the repo-level config. The unit worktrees and the integration checkout — where workers build and gate commands run — live outside the working tree, by default under the vitrify home, so that no ignore file of the repository (its own .gitignore, or the * vitrify writes into .vitrify/) is an ancestor of the files being checked. Tools that honour parent ignore files would otherwise treat every source file as ignored and pass without looking.

Branch and worktree names carry the SDD’s slug: several SDDs in one repository all have a U-001, and their work must never share a name.

Structs§

Layout
The directories of one repository’s vitrify state.

Functions§

branch_prefix
sdd/<slug>/<unit>/ — every attempt branch of one unit.
branch_seq
The claim sequence a branch name carries (…/c<seq>).
ensure_scratch
Create <primary>/.vitrify and its ignore file; returns the directory.
ref_part
s as one component of a git ref or a directory name: anything outside [A-Za-z0-9._-] becomes -, leading dots and dashes go, and a .lock suffix (which git forbids) is defused.
sdd_slug
slug_of
The SDD’s name in branch and worktree names: its sdd: slug, else the name of its directory (bundle) or file (single).
unit_branch
sdd/<slug>/<unit>/c<seq> — the branch name carries the fencing token.