Skip to content

lineage module

Module overview

Public callables from __all__

Callable Type Summary Related helpers
build_lineage_from_notebook_code function Scan, optionally enrich, and validate lineage from notebook source code.
build_lineage_handover_markdown function Create a concise markdown handover summary from lineage execution results.
build_lineage_record_from_steps function Create metadata-ready lineage records from validated lineage steps.
build_lineage_records function Build compact lineage records for downstream metadata sinks.
enrich_lineage_steps_with_ai function Optionally enrich deterministic lineage steps using an AI helper callable.
fallback_copilot_lineage_prompt function Build a fallback Copilot prompt for manual lineage enrichment.
plot_lineage_steps function Render lineage steps as a directed graph figure.
scan_notebook_cells function Scan multiple notebook cells and append cell references to lineage steps.
scan_notebook_lineage function Extract deterministic lineage steps from notebook code using AST parsing. _call_name (internal), _flatten_chain (internal), _name (internal), _resolve_write_target (internal), _step (internal)
validate_lineage_steps function Validate lineage step structure and flag records requiring human review.

Internal helpers

Helper Related public callables
_call_name scan_notebook_lineage
_flatten_chain scan_notebook_lineage
_literal
_name scan_notebook_lineage
_resolve_write_target scan_notebook_lineage
_step scan_notebook_lineage