Expand description
The project-run surface as pure building blocks: the project preflight
checks over the repository’s SDDs, the plan types, every renderer (job
header, dry-run plan, event lines, final report), the project.json
record, and --upstream lane selection. Nothing here spawns a process
or runs git; the scheduler fills the plan in and calls these, and every
output is a function of its input alone.
Structs§
- Adopt
- A built attempt a run adopts: the unit and the attempt’s claim sequence.
- Capacity
- The pools a run draws on.
- Lane
- One SDD’s lane: its slug, its root (repository-relative) and its state, with the counts the plan holds for it.
- Lane
Report - One lane’s line of the final report.
- Plan
- What a project run will do, derived before anything runs.
- Project
Record .vitrify/logs/<job>/project.json: the plan, the lane states as the run ended, and the critical path as it ran.- Recheck
- A Verified unit to re-check, and why.
- Refused
- A refused project preflight: the exit code and every failure, each a
line with its fix, in today’s preflight style (
<cause> → <fix>).
Enums§
- Lane
Outcome - How one lane ended, as the final report words it.
- Lane
State - Where a lane stands (the lane-state table).
Functions§
- adopted_
line [<slug>] <unit> adopted (built attempt c<seq>) → gate.- dry_run
- The full
--dry-runplan: the header (nothing to watch), the lane states, what regenerates, what is adopted, and what is re-checked and why. - event_
line - An event line carrying its lane:
[api] U-002 adopted (built attempt c3) → gate. - header
- The job header: the headline, the plan summary, the critical path, the capacity, and — when the run is starting rather than being planned — the command that watches it.
- outside_
blocker - What a unit of a selected lane waits on outside the selection, as its
blocker line:
U-004 waits on api U-007 and core U-002, outside this run (SDDs api, core not selected; --upstream builds them). Only the dependencies outside the selection that are not built yet are named —statusgives each unit’s status now (Built and Verified count as built; Retired, or none, as never built).Nonewhen no unit it waits on is outside the selection. - preflight
- The project checks that read the SDDs alone: refuse (exit 4) while any SDD at schema 2.0 has units that consume pins, naming every one; then (exit 2) slugs that are empty or shared, the unit graph’s L1 and L12 problems, and every cycle with the units waiting behind them. Returns the unit graph, built once, for the scheduler to resolve.
- report
- The final report:
Complete.when no lane is blocked, elseBlocked., then one aligned line per SDD, sorted by slug. - select_
lanes - The lanes a run takes for
--sdd <slug>: the slug alone, or withupstream, the SDDs it depends on, transitively. Sorted.Nonewhen the graph has no SDD with that slug.