Skip to main content

write_dag

Function write_dag 

Source
pub fn write_dag(
    repo_root: &Path,
    nodes: &[PlannedNode],
) -> Result<Vec<PathBuf>>
Expand description

Validate nodes, render every ticket, write them all, then run the authoritative deps::detect_cycle gate per new slug. Any refusal — a validation failure, an I/O error mid-write, or a cycle (including one running through pre-existing ticket edges) — rolls back every file this call wrote and returns the error loudly: the operator never ends up with half a DAG. Returns the written paths on success.