Skip to main content

Module parse_recovery

Module parse_recovery 

Source
Expand description

Engine::apply_parse_recovery — bulk-fix path that consumes the ParsedRelationRecovery payload on every writable-origin PARSED_RELATION_INVALID warning and applies the recovery action in a single operator-initiated call.

The recovery action remove_explicit_relation means: drop the parse-time-dropped row from the source entity’s markdown. The drop is already reflected in the in-memory entity.relationships (the parse-time validator strips the bad row at boot / reload / attach), so re-rendering and re-writing the source entity is enough — the renderer emits ## Relationships from entity.relationships, so the stale row disappears.

Multiple drops from the same source entity collapse to one re-render: entity.relationships already excludes every dropped row, so a single re-write fixes them all. The report still lists one entry per warning so consumers see exactly which drops were recovered.