Skip to contents

Drops pending graph gates that have no gate spec — the unanswerable state an interrupted bg_add_gate() from an older version could leave behind — and commits the cleaned graph, so recovery no longer requires hand-editing graph.json. Gates on edges with retired or disabled endpoints are left alone, matching what bg_plan() and bg_status() report as anomalies. A project without orphan gates is left untouched.

Usage

bg_repair_orphan_gates(project)

Arguments

project

A bg_handle.

Value

Invisible named list keyed by gate ID with gate_id, edge_id, from_node_id, and to_node_id entries for every removed gate, empty when there was nothing to repair.