Skip to main content

Module project

Module project 

Source
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.
LaneReport
One lane’s line of the final report.
Plan
What a project run will do, derived before anything runs.
ProjectRecord
.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§

LaneOutcome
How one lane ended, as the final report words it.
LaneState
Where a lane stands (the lane-state table).

Functions§

adopted_line
[<slug>] <unit> adopted (built attempt c<seq>) → gate.
dry_run
The full --dry-run plan: 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 — status gives each unit’s status now (Built and Verified count as built; Retired, or none, as never built). None when 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, else Blocked., then one aligned line per SDD, sorted by slug.
select_lanes
The lanes a run takes for --sdd <slug>: the slug alone, or with upstream, the SDDs it depends on, transitively. Sorted. None when the graph has no SDD with that slug.