Expand description
Command implementations and the shared invocation context.
Modules§
- audit
vitrify audit— the seven checks. Report-only by default;--fix-leases/--apply-staleedit the current worktree and leave committing to the caller. Check 4 runs the SDD’s own Verification commands throughcrate::gate— the one sanctioned shell use.- brief
vitrify brief [<task>]: with no task, the procedure index; with one, the operative procedure — disk override else embedded.build-unit --unit --holderemits the full generated worker prompt: the filledvitrify-jobblock, the brief’s delegation contract, and the unit’s resolved reading set inlined.- change
vitrify change apply— a change entry’s bookkeeping in one step.- check
vitrify check— every read-only consistency check vitrify has, over one SDD or all of them: lint, the audit, the journal replay, the ledger check and the pin states, each finding with its source and its remediation; open questions as notes. Then the dirty units: Verified units a committed change reached since their last recorded check, each with the changed paths that made it so — listed, never re-checked; that is a run’s job. Writes nothing.- claim
vitrify claim|renew|release— atomic lease transactions. Each operation is one mainline commit (front-matter edit, journal event, ledger regen) built in the ephemeral tx worktree.vitrify/tx-<pid>and published atomically by the C-002 CAS/push discipline. Never force.- init
vitrify init— set this machine up: create~/.vitrify/, writeconfig.tomlwith every setting at its default and the shipped harness role profiles, materialize the content (briefs, schemas, templates), then probe git and the harness CLIs and record what works in the same file.- journal
vitrify journal append|replay— the journal verbs (NDJSON events).- ledger
vitrify ledger regen|progress— derived ledger output. Regen message on stderr, progress line on stdout.regen --checkwrites nothing: it compares the ledger on disk with a fresh derivation and exits 3 when they differ.- lint
vitrify lint— the mechanical authoring checks L1–L12. Named findings{check, subject, cause, remediation}; exit 0 clean / 2 on any finding. The remediation is the edit or the command that resolves it.- locate
vitrify locate— SDD discovery;--unitsadds the per-unit view with the computed claimable flag;--graphthe SDD graph the units’ edges imply. Output held by the regression goldens (fixtures/golden/calc/locate.json).- new
vitrify new tdd|sdd [--bundle|--single] [NAME]— materialize instance templates into the current directory, refusing to overwrite (exit 2). Prints the created path on stdout and the next step on stderr.- pin
vitrify pin list|sync— external contracts: one SDD’s pins on contracts another SDD owns, and its transcriptions of sources no SDD owns (vitrify_core::contract).- probe
vitrify probe— probe this machine again and bring the probe record in~/.vitrify/config.tomlup to date. It prints what it found and what it would change, and asks before it writes (-yanswers for you); it changes nothing else in the file. A homevitrify inithas not set up is refused.- questions
vitrify questions— everyQ-###of an SDD’s Decision Log, whether it is open, and the units it blocks. A read verb.- readset
vitrify readset— the ordered minimal reading set for one unit, with the byte-budget check (byte-denominated by design). JSON output held by the regression goldens (fixtures/golden/calc/readset-*.json).- run
vitrify run— thin CLI wrapper over the orchestrator (crate::run).- run_
status vitrify run status: what a run is doing, unit by unit. Everything comes from what vitrify records itself —run.json,gate.json,events.jsonl, the worker logs, process liveness, and each worker worktree’s git state and front matter — never from a harness’s output. It writes no file, takes no lock, and runs git only with--no-optional-locks, so it can be pointed at a live run from a second terminal without disturbing it.- schema
vitrify schema show [--tdd]— print the embedded normative schema (disk override under~/.vitrify/schemas/wins).- trace
vitrify trace record|verify— the trace verbs, wiringvitrify-core::trace(the only hashing/masking implementation) plus the stamp edits — and the editorial re-stampvitrify change applydoes. These edit the working tree and leave committing to the caller.
Functions§
- audit_
options optswith the governed-file listing filled in from git — every audit call goes through here, so the orphan scan follows git’s ignore rules.- cwd
- discover
- Every SDD in the repository (
model::discover), searched the same way. - each
- One verb run over several SDDs:
oneis run for each — an error from one is reported under its name and the rest still run — and the exit code is the worst of theirs: an unexpected error before any refusal or finding. - governed_
files - The governed files under the SDD’s
scope_roots— what git would commit atroot— orNoneoutside a git work tree, where callers walk the filesystem instead (core_audit::walk_scope). - home_
dir - Home-dir resolution:
$VITRIFY_HOMEif set, else$HOME/.vitrify. - label
- How one SDD is named where a verb reports on several: its slug, or — when it has none — where it lies.
- load_
config - Load configuration with its precedence: environment, the repository’s
.vitrify/config.toml,~/.vitrify/config.toml, the default. - loaded
- The SDDs of the repository at
rootthat load, each with the error of one that does not (a schema version this vitrify does not read), in discovery order.own, loaded already, stands in for its discovered copy, or joins them when discovery does not find it. - peers
- The SDDs of the repository at
root, as the place an external contract’s authority is looked up in — found only if something asks. - reaches_
out - Whether a unit of
instnames, independs_on, anything but a unit of its own SDD — so its claimability needs the repository’s graph. - repo_
graph - The repository’s unit graph over every SDD that loads (
loaded): what pins independs_onresolve against. - repo_
root - The repository containing the current working directory:
git rev-parse --show-toplevel, else cwd. - resolve_
sdd - SDD resolution (
model::resolve_sdd) whose repo-wide search covers only what git would commit, so git’s ignore rules decide where an SDD can be found. Every verb resolves through here. - resolve_
sdd_ in - Resolve the SDD at
rel(sdd_rel) insidecheckout. Never searches: a repository with several SDDs resolves the same one everywhere. - sdd_arg
relas a--sddargument that works from any checkout’s root.- sdd_rel
- An SDD’s root relative to the root of the checkout it was resolved in —
the one name for it that holds in every checkout of the repository (the
primary, a unit worktree, the integration checkout, a transaction).
Nonewhen the SDD lies outside that checkout. - shown
pathas output names it: from the repository root when it lies under it, as it is otherwise.- targets
- The SDDs a verb acts on: the one
--sddnames, or the repository’s only one; with--all, every SDD of the repository in discovery order. None found is exit 4 either way.