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 checkouts — 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.
So do a run’s lanes — one per SDD: each has its own integration
checkout and lock, its own head checkout, and its own records under the
job’s logs, so runs of different SDDs never wait on each other’s gate.
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>/.vitrifyand its ignore file; returns the directory. - ref_
part sas one component of a git ref or a directory name: anything outside[A-Za-z0-9._-]becomes-, leading dots and dashes go, and a.locksuffix (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.