commit_content_ingest

SolidGroundUX DocumentationSolidGroundUX
NL

fn: commit_content_ingest

Purpose

Commit reviewed entries with exclusive file creation and rollback.

Signature

def commit_content_ingest(plan: ContentCommitPlan) -> list[str]:

Abort if the inventory or conflicts have changed since the preview.

Usage

plan = plan_content_ingest(source, content, policy="abort")
if plan.valid:
    commit_content_ingest(plan)  # Revalidates before writing