Skip to main content
Private Preview·Early access by invitation.Request access →
Kirimana.
Docs · CLI reference

CLI · Lineage

Lineage in Kirimana is contract-declared first: the contracts say what feeds what, and drift detection reconciles that declaration against what the platform actually observed.

kiri lineage

kiri lineage goal

Walk one reporting goal’s full dependency tree — from the goal down through gold, silver, and sources.

kiri lineage goal customer_churn

kiri lineage summary

Per-goal coverage report: how many needed entities each goal has mapped, built, and passing.

kiri lineage summary --project .

kiri lineage impact

List the reporting goals that depend on a contract — the blast-radius check before changing or retiring it.

kiri lineage impact silver_customer

kiri lineage graph

Bounded lineage graph around a seed asset.

Usage: kiri lineage graph --urn <asset-urn> [OPTIONS]
FlagDescriptionDefault
--urnSeed asset URN (e.g. kiri:asset:silver:customer) — required
--directionupstream | downstream | bothboth
--depthBFS depth cap from the seed2
--max-nodes / --max-edgesNode/edge budgets — the graph is bounded by construction50 / 150
--jsonEmit the bounded machine graph instead of Mermaidoff
--proseEmit Kiri’s deterministic plain-text explanationoff
--dbCatalog SQLite path<project>/.kiri/catalog.sqlite

kiri lineage drift

Reconcile contract-declared lineage against observed lineage.

Usage: kiri lineage drift [OPTIONS]
FlagDescriptionDefault
--from-ucRead observed lineage live from Databricks Unity Catalog system.access.column_lineage via the configured adapter — no manual export. Requires a UC target. Reconciles TABLE-grain lineage; VIEW-materialised layers are not compared.off
--observedAlternative to --from-uc: a JSON file of observed lineage edges (operator-exported UC column lineage or OpenLineage; the same wire shape LineageEdge serialises to). Mutually exclusive with --from-uc.
--target, -tNamed profile from kiri.yml (for --from-uc)
--dbCatalog SQLite path<project>/.kiri/catalog.sqlite
--max-findingsCap on reported findings — honest truncation, the cap is surfaced200

Drift findings fall into edges the contracts declare but the platform never observed (dead declarations) and edges the platform observed but no contract declares (undeclared dependencies).

kiri lineage drift --from-uc --target prod

Catalog-level lineage

Two related verbs live under kiri catalog (see the governance page):

  • kiri catalog lineage URN — immediate upstream/downstream neighbours of one asset.
  • kiri catalog show-attribute NAME — trace where a column appears across the whole estate.

For Data Vault projects, kiri dv graph renders bounded structural views of the vault itself (see the silver page).

kiri inventory

Attribute-level inventory operations — the classification front-end that feeds governance.

kiri inventory pre-classify

Generate one-attribute-per-row classification proposals for every column in a contract tree.

Usage: kiri inventory pre-classify --contracts <dir> --output <dir> [OPTIONS]
FlagDescriptionDefault
--locale-packComma-separated locale packs. en is built-in; additional packs (sv, or a path to a YAML file) compose with it.en
--confidence-floorHeuristic confidence threshold below which a column is queued for the AI batch0.85
--domainAsset domain tag passed into the AI prompt contextdata

Output is a proposals/ directory (deterministic heuristic proposals) plus ai-batch.jsonl — the residue of low-confidence columns for kiri ai-batch (platform-ops page). Results merge back onto contracts via kiri contract merge-classification (contracts page), where operator overrides always win.

kiri inventory locale-packs

Report conflicts where two locale-pack patterns claim the same column name.

kiri inventory locale-packs --locale-pack en,sv \
  --probe email,phone,salary,personnummer

An offline check: probes canonical column names across the active packs and reports which pattern wins, before you rely on the packs in a real pre-classify run.

Updated 5 July 2026 · v1.0.0-beta.1