Skip to content

create_lineage_config

Public callable

Create lineage capture defaults for FabricOps handover traceability.

Parameters:

Name Type Description Default
capture_ai_summaries bool

Whether AI-generated summaries should be retained in lineage context.

True
capture_transformation_steps bool

Whether transformation-level operations should be included in lineage reporting payloads.

True

Returns:

Type Description
LineageConfig

Immutable lineage policy used by runtime orchestration and reporting.

Notes

This helper sets routing/capture defaults only. It does not collect or persist lineage records by itself.

Examples:

>>> lineage = create_lineage_config(capture_ai_summaries=False)
>>> lineage.capture_ai_summaries
False
Source code in src/fabricops_kit/config.py
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
def create_lineage_config(
    capture_ai_summaries: bool = True,
    capture_transformation_steps: bool = True,
) -> LineageConfig:
    """Create lineage capture defaults for FabricOps handover traceability.

    Parameters
    ----------
    capture_ai_summaries : bool, default=True
        Whether AI-generated summaries should be retained in lineage context.
    capture_transformation_steps : bool, default=True
        Whether transformation-level operations should be included in lineage
        reporting payloads.

    Returns
    -------
    LineageConfig
        Immutable lineage policy used by runtime orchestration and reporting.

    Notes
    -----
    This helper sets routing/capture defaults only. It does not collect or
    persist lineage records by itself.

    Examples
    --------
    >>> lineage = create_lineage_config(capture_ai_summaries=False)
    >>> lineage.capture_ai_summaries
    False
    """
    return LineageConfig(
        capture_ai_summaries=bool(capture_ai_summaries),
        capture_transformation_steps=bool(capture_transformation_steps),
    )