glineage 0.2.0rc1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- glineage-0.2.0rc1/.dockerignore +18 -0
- glineage-0.2.0rc1/.python-version +1 -0
- glineage-0.2.0rc1/Dockerfile +32 -0
- glineage-0.2.0rc1/GLineage Implementation Plan.md +162 -0
- glineage-0.2.0rc1/GLineage Phase 2 Plan.md +334 -0
- glineage-0.2.0rc1/GLineage Product Specification.md +170 -0
- glineage-0.2.0rc1/LICENSE +202 -0
- glineage-0.2.0rc1/MANIFEST.in +8 -0
- glineage-0.2.0rc1/PKG-INFO +39 -0
- glineage-0.2.0rc1/README.md +19 -0
- glineage-0.2.0rc1/compose.quickstart.yaml +40 -0
- glineage-0.2.0rc1/compose.yaml +45 -0
- glineage-0.2.0rc1/conformance/airflow-run.json +331 -0
- glineage-0.2.0rc1/conformance/case-v1.schema.json +365 -0
- glineage-0.2.0rc1/conformance/checkpoint-completeness.case.json +298 -0
- glineage-0.2.0rc1/conformance/classification.case.json +364 -0
- glineage-0.2.0rc1/conformance/contract-adoption.case.json +448 -0
- glineage-0.2.0rc1/conformance/contracts/glineage-test/cases.json +98 -0
- glineage-0.2.0rc1/conformance/contracts/glineage-test/customer-contract.json +61 -0
- glineage-0.2.0rc1/conformance/contracts/glineage-test/customer-contract.parsed.json +99 -0
- glineage-0.2.0rc1/conformance/contracts/glineage-test/duplicate-dataset-name.json +15 -0
- glineage-0.2.0rc1/conformance/contracts/glineage-test/duplicate-key.json +1 -0
- glineage-0.2.0rc1/conformance/contracts/glineage-test/duplicate-property-path.json +24 -0
- glineage-0.2.0rc1/conformance/contracts/glineage-test/empty-contract.json +6 -0
- glineage-0.2.0rc1/conformance/contracts/glineage-test/empty-contract.parsed.json +15 -0
- glineage-0.2.0rc1/conformance/contracts/glineage-test/nesting-too-deep.json +1 -0
- glineage-0.2.0rc1/conformance/contracts/glineage-test/null-character.json +1 -0
- glineage-0.2.0rc1/conformance/contracts/glineage-test/numeric-version.json +1 -0
- glineage-0.2.0rc1/conformance/contracts/glineage-test/property-without-name.json +15 -0
- glineage-0.2.0rc1/conformance/contracts/glineage-test/unknown-field.json +12 -0
- glineage-0.2.0rc1/conformance/contracts/glineage-test/unknown-format.json +6 -0
- glineage-0.2.0rc1/conformance/contracts/glineage-test/unreadable.json +1 -0
- glineage-0.2.0rc1/conformance/contracts/glineage-test/unsupported-format-version.json +6 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/anchors-and-aliases.odcs.yaml +18 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/billing-invoice-v3.0.0.odcs.yaml +23 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/billing-invoice-v3.0.0.parsed.json +47 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/billing-invoice-v3.0.1.odcs.yaml +23 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/billing-invoice-v3.0.1.parsed.json +47 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/billing-invoice-v3.0.2.odcs.yaml +23 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/billing-invoice-v3.0.2.parsed.json +47 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/billing-invoice-v3.1.0.odcs.yaml +23 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/billing-invoice-v3.1.0.parsed.json +47 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/bitol-full-example.odcs.yaml +364 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/bitol-full-example.parsed.json +124 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/cases.json +418 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/customer-contract.odcs.json +122 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/customer-contract.odcs.yaml +81 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/customer-contract.parsed.json +189 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/duplicate-dataset-name.odcs.yaml +11 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/duplicate-key.odcs.json +1 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/duplicate-key.odcs.yaml +10 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/duplicate-property-path.odcs.yaml +12 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/explicit-tag.odcs.yaml +9 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/future-version.odcs.yaml +9 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/merge-key.odcs.yaml +14 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/missing-api-version.odcs.yaml +8 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/name-too-long.odcs.yaml +8 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/nesting-too-deep.odcs.yaml +12 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/non-string-key.odcs.yaml +10 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/not-a-mapping.odcs.yaml +2 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/null-character.odcs.yaml +8 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/odcs-v2.odcs.yaml +9 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/property-without-name.odcs.yaml +8 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/server-types.odcs.yaml +22 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/server-types.parsed.json +84 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/two-documents.odcs.yaml +19 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/unknown-field.odcs.yaml +10 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/unquoted-version-number.odcs.yaml +9 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/unreadable.odcs.yaml +3 -0
- glineage-0.2.0rc1/conformance/contracts/odcs/wrong-kind.odcs.yaml +9 -0
- glineage-0.2.0rc1/conformance/facet-examples.json +151 -0
- glineage-0.2.0rc1/conformance/marquez-0.50.0.expected.json +14 -0
- glineage-0.2.0rc1/conformance/out-of-scope-attributes.case.json +596 -0
- glineage-0.2.0rc1/conformance/plain-airflow.case.json +194 -0
- glineage-0.2.0rc1/conformance/reference-workload.json +55 -0
- glineage-0.2.0rc1/conformance/schema-drift.case.json +457 -0
- glineage-0.2.0rc1/contracts/openapi.yaml +2080 -0
- glineage-0.2.0rc1/docs/m0-contracts.md +75 -0
- glineage-0.2.0rc1/docs/m1-service.md +70 -0
- glineage-0.2.0rc1/docs/m10-browser-interface-plan.md +347 -0
- glineage-0.2.0rc1/docs/m10-browser-interface.md +189 -0
- glineage-0.2.0rc1/docs/m11-pilot-validation-release-plan.md +306 -0
- glineage-0.2.0rc1/docs/m2-agreements-reports.md +87 -0
- glineage-0.2.0rc1/docs/m3-projection-replay.md +97 -0
- glineage-0.2.0rc1/docs/m4-coverage.md +104 -0
- glineage-0.2.0rc1/docs/m5-code-review.md +213 -0
- glineage-0.2.0rc1/docs/m5-release.md +145 -0
- glineage-0.2.0rc1/docs/m6-ingest-latency.md +175 -0
- glineage-0.2.0rc1/docs/m6-pilot-readiness.md +852 -0
- glineage-0.2.0rc1/docs/m7-contract-registry-plan.md +374 -0
- glineage-0.2.0rc1/docs/m7-contracts.md +176 -0
- glineage-0.2.0rc1/docs/m8-contract-checks.md +165 -0
- glineage-0.2.0rc1/docs/m8-schema-drift-attributes-plan.md +268 -0
- glineage-0.2.0rc1/docs/m9-classification-adoption-plan.md +263 -0
- glineage-0.2.0rc1/docs/m9-classification-adoption.md +159 -0
- glineage-0.2.0rc1/docs/mvp-stakeholder-demo.md +417 -0
- glineage-0.2.0rc1/docs/release-0.2.0.md +60 -0
- glineage-0.2.0rc1/docs/stakeholder-demo.md +379 -0
- glineage-0.2.0rc1/examples/send_lineage.py +80 -0
- glineage-0.2.0rc1/pyproject.toml +47 -0
- glineage-0.2.0rc1/quickstart +8 -0
- glineage-0.2.0rc1/setup.cfg +4 -0
- glineage-0.2.0rc1/src/glineage/__init__.py +1 -0
- glineage-0.2.0rc1/src/glineage/adoption.py +173 -0
- glineage-0.2.0rc1/src/glineage/agreements.py +437 -0
- glineage-0.2.0rc1/src/glineage/aliases.py +25 -0
- glineage-0.2.0rc1/src/glineage/api.py +618 -0
- glineage-0.2.0rc1/src/glineage/attribute_checks.py +62 -0
- glineage-0.2.0rc1/src/glineage/auth.py +220 -0
- glineage-0.2.0rc1/src/glineage/classification.py +283 -0
- glineage-0.2.0rc1/src/glineage/cli.py +586 -0
- glineage-0.2.0rc1/src/glineage/columns.py +113 -0
- glineage-0.2.0rc1/src/glineage/contract_adapters/__init__.py +56 -0
- glineage-0.2.0rc1/src/glineage/contract_adapters/base.py +164 -0
- glineage-0.2.0rc1/src/glineage/contract_adapters/glineage_test.py +129 -0
- glineage-0.2.0rc1/src/glineage/contract_adapters/odcs.py +230 -0
- glineage-0.2.0rc1/src/glineage/contract_adapters/yaml_document.py +127 -0
- glineage-0.2.0rc1/src/glineage/contract_join.py +137 -0
- glineage-0.2.0rc1/src/glineage/contract_registry.py +62 -0
- glineage-0.2.0rc1/src/glineage/contracts.py +174 -0
- glineage-0.2.0rc1/src/glineage/coverage.py +385 -0
- glineage-0.2.0rc1/src/glineage/coverage_notices.py +172 -0
- glineage-0.2.0rc1/src/glineage/db.py +57 -0
- glineage-0.2.0rc1/src/glineage/deliveries.py +350 -0
- glineage-0.2.0rc1/src/glineage/evidence.py +80 -0
- glineage-0.2.0rc1/src/glineage/migrations/0001_ledger.sql +13 -0
- glineage-0.2.0rc1/src/glineage/migrations/0002_ingest_projection.sql +94 -0
- glineage-0.2.0rc1/src/glineage/migrations/0003_agreements_reports.sql +43 -0
- glineage-0.2.0rc1/src/glineage/migrations/0004_projection_replay.sql +39 -0
- glineage-0.2.0rc1/src/glineage/migrations/0005_coverage.sql +22 -0
- glineage-0.2.0rc1/src/glineage/migrations/0006_review_fixes.sql +57 -0
- glineage-0.2.0rc1/src/glineage/migrations/0007_contract_registry.sql +11 -0
- glineage-0.2.0rc1/src/glineage/migrations/0008_contract_projection.sql +28 -0
- glineage-0.2.0rc1/src/glineage/migrations/0009_column_evidence.sql +3 -0
- glineage-0.2.0rc1/src/glineage/migrations/0010_source_registrations.sql +4 -0
- glineage-0.2.0rc1/src/glineage/migrations/0011_classification.sql +4 -0
- glineage-0.2.0rc1/src/glineage/migrations/0012_transit_keys.sql +27 -0
- glineage-0.2.0rc1/src/glineage/models.py +293 -0
- glineage-0.2.0rc1/src/glineage/movement_checks.py +114 -0
- glineage-0.2.0rc1/src/glineage/operations.py +54 -0
- glineage-0.2.0rc1/src/glineage/passages.py +243 -0
- glineage-0.2.0rc1/src/glineage/projection.py +503 -0
- glineage-0.2.0rc1/src/glineage/query.py +422 -0
- glineage-0.2.0rc1/src/glineage/quickstart.py +159 -0
- glineage-0.2.0rc1/src/glineage/reconciliation.py +529 -0
- glineage-0.2.0rc1/src/glineage/report_history.py +142 -0
- glineage-0.2.0rc1/src/glineage/schema_checks.py +218 -0
- glineage-0.2.0rc1/src/glineage/schemas/GLineageFacets-0-1-0.json +277 -0
- glineage-0.2.0rc1/src/glineage/schemas/GLineageFacets-0-2-0.json +277 -0
- glineage-0.2.0rc1/src/glineage/schemas/vendor/NOTICE.txt +9 -0
- glineage-0.2.0rc1/src/glineage/schemas/vendor/OpenLineage-2-0-2.json +304 -0
- glineage-0.2.0rc1/src/glineage/schemas/vendor/odcs-json-schema-v3.0.0.json +2347 -0
- glineage-0.2.0rc1/src/glineage/schemas/vendor/odcs-json-schema-v3.0.1.json +2362 -0
- glineage-0.2.0rc1/src/glineage/schemas/vendor/odcs-json-schema-v3.0.2.json +2382 -0
- glineage-0.2.0rc1/src/glineage/schemas/vendor/odcs-json-schema-v3.1.0-20261117.json +2928 -0
- glineage-0.2.0rc1/src/glineage/schemas/vendor/odcs-json-schema-v3.2.0-20261117.json +3647 -0
- glineage-0.2.0rc1/src/glineage/sdk.py +253 -0
- glineage-0.2.0rc1/src/glineage/signals.py +94 -0
- glineage-0.2.0rc1/src/glineage/storage.py +744 -0
- glineage-0.2.0rc1/src/glineage/transit.py +324 -0
- glineage-0.2.0rc1/src/glineage/ui/assets/graph-FbK3ziDY.js +321 -0
- glineage-0.2.0rc1/src/glineage/ui/assets/index-Cfx7FM__.css +1 -0
- glineage-0.2.0rc1/src/glineage/ui/assets/index-D4AYZlhO.js +9 -0
- glineage-0.2.0rc1/src/glineage/ui/index.html +13 -0
- glineage-0.2.0rc1/src/glineage.egg-info/PKG-INFO +39 -0
- glineage-0.2.0rc1/src/glineage.egg-info/SOURCES.txt +232 -0
- glineage-0.2.0rc1/src/glineage.egg-info/dependency_links.txt +1 -0
- glineage-0.2.0rc1/src/glineage.egg-info/entry_points.txt +2 -0
- glineage-0.2.0rc1/src/glineage.egg-info/requires.txt +11 -0
- glineage-0.2.0rc1/src/glineage.egg-info/top_level.txt +1 -0
- glineage-0.2.0rc1/tests/conftest.py +40 -0
- glineage-0.2.0rc1/tests/test_api_and_conformance.py +220 -0
- glineage-0.2.0rc1/tests/test_cli.py +256 -0
- glineage-0.2.0rc1/tests/test_event_contract.py +158 -0
- glineage-0.2.0rc1/tests/test_m10_interface_contract.py +53 -0
- glineage-0.2.0rc1/tests/test_m10_read_apis.py +233 -0
- glineage-0.2.0rc1/tests/test_m10_sign_in.py +225 -0
- glineage-0.2.0rc1/tests/test_m11_coverage_lookup.py +57 -0
- glineage-0.2.0rc1/tests/test_m11_long_ledger.py +61 -0
- glineage-0.2.0rc1/tests/test_m11_release.py +64 -0
- glineage-0.2.0rc1/tests/test_m11_transit_scope.py +269 -0
- glineage-0.2.0rc1/tests/test_m1_auth.py +82 -0
- glineage-0.2.0rc1/tests/test_m1_service.py +540 -0
- glineage-0.2.0rc1/tests/test_m2_service.py +426 -0
- glineage-0.2.0rc1/tests/test_m3_service.py +761 -0
- glineage-0.2.0rc1/tests/test_m4_service.py +595 -0
- glineage-0.2.0rc1/tests/test_m5_operations.py +61 -0
- glineage-0.2.0rc1/tests/test_m6_readiness.py +621 -0
- glineage-0.2.0rc1/tests/test_m7_adapters.py +224 -0
- glineage-0.2.0rc1/tests/test_m7_cli.py +173 -0
- glineage-0.2.0rc1/tests/test_m7_mappings.py +149 -0
- glineage-0.2.0rc1/tests/test_m7_odcs.py +157 -0
- glineage-0.2.0rc1/tests/test_m7_projection.py +216 -0
- glineage-0.2.0rc1/tests/test_m7_registration.py +227 -0
- glineage-0.2.0rc1/tests/test_m8_attribute_checks.py +236 -0
- glineage-0.2.0rc1/tests/test_m8_column_evidence.py +250 -0
- glineage-0.2.0rc1/tests/test_m8_conformance.py +106 -0
- glineage-0.2.0rc1/tests/test_m8_contract_join.py +206 -0
- glineage-0.2.0rc1/tests/test_m8_rule_version.py +135 -0
- glineage-0.2.0rc1/tests/test_m8_schema_checks.py +407 -0
- glineage-0.2.0rc1/tests/test_m9_classification_claims.py +200 -0
- glineage-0.2.0rc1/tests/test_m9_classification_registry.py +159 -0
- glineage-0.2.0rc1/tests/test_m9_classification_reports.py +188 -0
- glineage-0.2.0rc1/tests/test_m9_classification_resolution.py +236 -0
- glineage-0.2.0rc1/tests/test_m9_conformance.py +91 -0
- glineage-0.2.0rc1/tests/test_m9_contract_adoption.py +215 -0
- glineage-0.2.0rc1/tests/test_migrations.py +189 -0
- glineage-0.2.0rc1/tests/test_review_fixes.py +374 -0
- glineage-0.2.0rc1/tests/test_sdk.py +208 -0
- glineage-0.2.0rc1/tools/airflow-lock.txt +152 -0
- glineage-0.2.0rc1/tools/airflow-requirements.txt +4 -0
- glineage-0.2.0rc1/tools/airflow_dags/glineage_m0.py +26 -0
- glineage-0.2.0rc1/tools/capture_airflow.py +115 -0
- glineage-0.2.0rc1/tools/check_m1.py +235 -0
- glineage-0.2.0rc1/tools/check_m10.py +65 -0
- glineage-0.2.0rc1/tools/check_m2.py +108 -0
- glineage-0.2.0rc1/tools/check_m3.py +117 -0
- glineage-0.2.0rc1/tools/check_m4.py +206 -0
- glineage-0.2.0rc1/tools/check_m5.py +338 -0
- glineage-0.2.0rc1/tools/check_m7.py +338 -0
- glineage-0.2.0rc1/tools/check_m8.py +357 -0
- glineage-0.2.0rc1/tools/check_m9.py +281 -0
- glineage-0.2.0rc1/tools/check_marquez.py +106 -0
- glineage-0.2.0rc1/tools/check_pilot.py +152 -0
- glineage-0.2.0rc1/tools/demo_m3.py +412 -0
- glineage-0.2.0rc1/tools/interface_contract.py +107 -0
- glineage-0.2.0rc1/tools/interface_scenario.py +261 -0
- glineage-0.2.0rc1/tools/interface_tests.py +164 -0
- glineage-0.2.0rc1/tools/long_ledger.py +251 -0
- glineage-0.2.0rc1/tools/measure_m5.py +321 -0
- glineage-0.2.0rc1/tools/package_m5.py +121 -0
- glineage-0.2.0rc1/tools/publish_schemas.py +112 -0
- glineage-0.2.0rc1/tools/token_issuer.py +221 -0
- glineage-0.2.0rc1/uv.lock +854 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
**
|
|
2
|
+
!pyproject.toml
|
|
3
|
+
!uv.lock
|
|
4
|
+
!README.md
|
|
5
|
+
!LICENSE
|
|
6
|
+
!src/
|
|
7
|
+
!src/glineage/
|
|
8
|
+
!src/glineage/**
|
|
9
|
+
**/__pycache__/
|
|
10
|
+
**/*.pyc
|
|
11
|
+
!contracts/
|
|
12
|
+
!contracts/openapi.yaml
|
|
13
|
+
!ui/
|
|
14
|
+
!ui/**
|
|
15
|
+
ui/node_modules/
|
|
16
|
+
ui/test-results/
|
|
17
|
+
ui/playwright-report/
|
|
18
|
+
src/glineage/ui/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.12.12
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
FROM ghcr.io/astral-sh/uv:0.9.27@sha256:143b40f4ab56a780f43377604702107b5a35f83a4453daf1e4be691358718a6a AS uv
|
|
2
|
+
|
|
3
|
+
# Build the browser interface. Node is needed only here, so the runtime image stays Python.
|
|
4
|
+
FROM node:26.14.0-bookworm-slim@sha256:c54438ba7af5c051f986abcbd084d07111a0c442343f3c27941806a4dddcb57c AS interface
|
|
5
|
+
WORKDIR /build
|
|
6
|
+
COPY ui/package.json ui/package-lock.json ./ui/
|
|
7
|
+
RUN --mount=type=cache,target=/root/.npm npm --prefix ui ci --no-audit --no-fund
|
|
8
|
+
# The API types are generated from the contract, which refers to the vendored OpenLineage schema.
|
|
9
|
+
COPY contracts/openapi.yaml ./contracts/
|
|
10
|
+
COPY src/glineage/schemas/vendor/OpenLineage-2-0-2.json ./src/glineage/schemas/vendor/
|
|
11
|
+
COPY ui ./ui
|
|
12
|
+
RUN npm --prefix ui run build
|
|
13
|
+
FROM python:3.12.12-slim-bookworm@sha256:593bd06efe90efa80dc4eee3948be7c0fde4134606dd40d8dd8dbcade98e669c AS builder
|
|
14
|
+
COPY --from=uv /uv /bin/uv
|
|
15
|
+
WORKDIR /opt/glineage
|
|
16
|
+
ENV UV_PYTHON_DOWNLOADS=never UV_LINK_MODE=copy
|
|
17
|
+
COPY pyproject.toml uv.lock ./
|
|
18
|
+
RUN --mount=type=cache,target=/root/.cache/uv uv sync --locked --no-dev --extra server --no-install-project
|
|
19
|
+
COPY README.md LICENSE ./
|
|
20
|
+
COPY src/glineage ./src/glineage
|
|
21
|
+
COPY --from=interface /build/src/glineage/ui ./src/glineage/ui
|
|
22
|
+
RUN --mount=type=cache,target=/root/.cache/uv uv sync --locked --no-dev --extra server --no-editable
|
|
23
|
+
|
|
24
|
+
FROM python:3.12.12-slim-bookworm@sha256:593bd06efe90efa80dc4eee3948be7c0fde4134606dd40d8dd8dbcade98e669c
|
|
25
|
+
LABEL org.opencontainers.image.title="GLineage" org.opencontainers.image.version="0.2.0rc1" org.opencontainers.image.licenses="Apache-2.0"
|
|
26
|
+
ENV PATH="/opt/glineage/.venv/bin:$PATH" PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
|
|
27
|
+
COPY --from=builder /opt/glineage/.venv /opt/glineage/.venv
|
|
28
|
+
RUN install -d -m 0700 -o 10001 -g 10001 /var/lib/glineage && touch /var/lib/glineage/.keep
|
|
29
|
+
USER 10001:10001
|
|
30
|
+
WORKDIR /opt/glineage
|
|
31
|
+
EXPOSE 8000
|
|
32
|
+
CMD ["uvicorn", "glineage.api:from_env", "--factory", "--host", "0.0.0.0", "--port", "8000", "--no-access-log"]
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# GLineage Implementation Plan
|
|
2
|
+
|
|
3
|
+
**Status** M0–M4 complete. M5 release candidate qualified locally. Pilot and publication gates open. Updated 24 November 2026.
|
|
4
|
+
|
|
5
|
+
This plan tracks implementation of the [GLineage Product Specification](GLineage%20Product%20Specification.md). GLineage can ingest ordinary OpenLineage runs, evaluate agreement authority and monitoring coverage, and rebuild its graph from retained evidence. The pilot release requires all 15 acceptance scenarios to pass through the supported public interfaces.
|
|
6
|
+
|
|
7
|
+
## Architecture
|
|
8
|
+
|
|
9
|
+
The HTTP API runs in FastAPI with a projector. PostgreSQL holds the append-only ledger, registry state, graph projection and issued reports. Psycopg provides explicit transaction boundaries, and versioned SQL migrations run at service startup. The M5 quickstart will run the service and development PostgreSQL using Compose. [FastAPI features](https://fastapi.tiangolo.com/features/), [Psycopg transaction management](https://www.psycopg.org/psycopg3/docs/basic/transactions.html)
|
|
10
|
+
|
|
11
|
+
| Area | Responsibility |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| HTTP API and Python clients | Expose OpenLineage ingest, registry writes, scoped checkpoints, graph queries and reconciliation. Keep CLI and facet helper usable without the server dependencies. |
|
|
14
|
+
| Admission and registry | Authenticate, validate in scope, resolve identity, check agreement overlaps and append normalized evidence. Keep quarantine and authorization diagnostics separate from accepted movement. |
|
|
15
|
+
| Ledger and projector | Commit evidence in order, then materialize runs, shares and coverage with provenance. Support restart, correction and deterministic rebuild. |
|
|
16
|
+
| Reconciliation | Read one fully materialized checkpoint. Evaluate agreement authority and movement at event time, assess coverage, and return ordered findings plus evidence. |
|
|
17
|
+
| Report history | Issue immutable reports and append finding revisions or withdrawals. Keep previews and display filters free of writes. |
|
|
18
|
+
|
|
19
|
+
Organize the repository around `src/glineage/`, `schemas/`, `migrations/`, `tests/`, `conformance/` and `examples/`. Keep the HTTP and database code at the service boundary. The helper builds facets, the CLI calls the API, and the server owns the rules and persistence.
|
|
20
|
+
|
|
21
|
+
### Persistence and consistency
|
|
22
|
+
|
|
23
|
+
| Data | Implementation approach |
|
|
24
|
+
| --- | --- |
|
|
25
|
+
| Ledger and receipts | Use a head row locked inside the same transaction as the append. Allocate the next position and write all related evidence and transactional registry state together. Return a receipt only after commit. This makes a checkpoint a committed prefix even when submissions arrive concurrently. Store removable raw payloads separately from the normalized ledger record. |
|
|
26
|
+
| Admission identity and deduplication | Store the logical run key, per-event key, canonical comparison data, original accepted receipt and frozen mapping references. Keep the active correction reference separate from the original event. Preserve coverage-affecting rejections and gaps with replayable scope and interval data. |
|
|
27
|
+
| Registry | Serialize endpoint, mapping, source binding, monitoring scope, agreement and contract-version writes inside the ledger transaction. Check selector and interval intersections before activating an agreement or committing an alias. |
|
|
28
|
+
| Projection | Commit each batch and checkpoint together under the projector lock. Recalculate affected direct runs and cross-run transit links. Derive scoped coverage invalidations from recorded evidence. Alias changes and operator rebuilds publish a separate replay generation atomically. |
|
|
29
|
+
| Reads and issuance | Read the checkpoint and report inputs in the same consistent PostgreSQL snapshot. Return a retryable pending response until the requested minimum checkpoint is ready. Serialize issuance within the same report request identity so an older checkpoint cannot supersede a newer report. |
|
|
30
|
+
|
|
31
|
+
Keep write transactions short. Benchmark the serialized append path with representative pilot traffic before investing in more concurrency. PostgreSQL's row locks and repeatable-read snapshots are the starting mechanisms for the committed prefix and consistent report reads. [PostgreSQL explicit locking](https://www.postgresql.org/docs/current/explicit-locking.html), [PostgreSQL transaction isolation](https://www.postgresql.org/docs/current/transaction-iso.html)
|
|
32
|
+
|
|
33
|
+
## Milestones and dependencies
|
|
34
|
+
|
|
35
|
+
| Milestone | Depends on | Status | Demonstrable exit |
|
|
36
|
+
| --- | --- | --- | --- |
|
|
37
|
+
| M0 · Freeze the build contracts | Product spec | Complete | Reviewable schemas and API contract, fixed-clock fixtures, dependency pins and repeatable local PostgreSQL test setup. |
|
|
38
|
+
| M1 · Ingest a plain run and report one edge | M0 | Complete | An authenticated `START` and `COMPLETE` produce one direct edge and an undeclared preview. A retry returns the original receipt. |
|
|
39
|
+
| M2 · Register agreements and issue reports | M1 | Complete | An authorized, backdated activation changes the same report slice from undeclared to governed, with both issuances retrievable. |
|
|
40
|
+
| M3 · Complete projection and replay | M1, plus M2's overlap checks for aliases | Complete | Streaming, transit, alias, correction and retention cases reproduce the expected graph and evidence after replay. |
|
|
41
|
+
| M4 · Qualify findings with coverage | M2 and M3 | Complete | The same active agreement can be dormant or unverified depending on checkpoint evidence. Cadence, volume, version lag, coverage denominators, and report history have verified outcomes. |
|
|
42
|
+
| M5 · Package and qualify the MVP | M1–M4 | Release candidate qualified locally | The quickstart, local acceptance suite and reference workload pass. Pilot-owner validation and public distribution remain release gates. |
|
|
43
|
+
|
|
44
|
+
The M5 candidate packages the combined service. The release candidate passes the Airflow and Marquez transport checks.
|
|
45
|
+
|
|
46
|
+
### Close each phase in this plan
|
|
47
|
+
|
|
48
|
+
Before handing off to the next phase, add a dated delivery and verification entry under the completed milestone. Record what shipped, any scope or design changes, the acceptance scenarios exercised, the actual test results, and links to the demonstration or reproduction steps. Carry any deferred work to its owning milestone. Update the milestone table and document status after the required tests and live checks pass.
|
|
49
|
+
|
|
50
|
+
### M0 · Freeze the build contracts
|
|
51
|
+
|
|
52
|
+
1. Scaffold Python packaging, PostgreSQL migrations, a local database and CI with a clean-install database test. Record the decision on module boundaries and transactional ledger ordering.
|
|
53
|
+
2. Draft the ingest route, registry commands, evidence inspection and report preview/issuance API. Define receipt and error shapes, minimum-checkpoint polling, registration idempotency and the permission matrix. Reserve `POST /api/v1/lineage` as the proposed OpenLineage route and verify it with the pinned Airflow transport. [Airflow OpenLineage configuration](https://airflow.apache.org/docs/apache-airflow-providers-openlineage/stable/configurations-ref.html)
|
|
54
|
+
3. Vendor the selected OpenLineage schemas for local validation. Draft the six versioned GLineage facet definitions, including the exact placement and `deliveryId` shape. Write one plain run fixture and valid and invalid examples for each facet placement. Use immutable canonical schema URLs when publishing. [OpenLineage schema 2-0-2](https://openlineage.io/spec/2-0-2/OpenLineage.json), [OpenLineage facet rules](https://openlineage.io/docs/spec/facets/)
|
|
55
|
+
4. Pin Airflow, its OpenLineage provider and client, and Marquez for integration tests. Capture a real Airflow payload with a local HTTP receiver and smoke-test plain and enriched payloads against Marquez. Record HTTP acceptance and facet preservation as separate outcomes. [Marquez quickstart](https://marquezproject.ai/docs/quickstart/)
|
|
56
|
+
5. Define the conformance case format. Store ordered commands and events, event and receipt times, config and schema versions, requested report end `T`, ledger checkpoint `K`, and expected projections, findings and coverage. Write the first fixtures before implementing the rules they exercise.
|
|
57
|
+
|
|
58
|
+
**Delivered 23 November 2026.** Added Python packaging, the initial PostgreSQL ledger migration, disposable Compose test infrastructure, and CI. Defined the API contract, six locally validated GLineage facet placements, and the conformance case format. Pinned and exercised Airflow, OpenLineage, and Marquez interoperability.
|
|
59
|
+
|
|
60
|
+
**Verified.** 45 tests passed from a clean wheel. The pinned Airflow provider emitted a real task run over local HTTP, and Marquez accepted the plain and enriched payloads and preserved all six facet variants in event history. [M0 contracts and verification](docs/m0-contracts.md)
|
|
61
|
+
|
|
62
|
+
### M1 · Ingest a plain run and report one edge
|
|
63
|
+
|
|
64
|
+
1. Create the ledger, receipts, evidence, quarantine and checkpoint migrations. Test concurrent appends, rollback, restart after commit and receipt reuse after a client times out.
|
|
65
|
+
2. Add the shared authorization layer. Bind producer credentials to stable source IDs and permitted jobs. Support a configured enterprise token issuer and scoped local credentials for the quickstart. Test reader, producer, monitor, operator and party-authorized steward permissions as their surfaces are introduced.
|
|
66
|
+
3. Implement the raw OpenLineage HTTP boundary so malformed authenticated requests can be quarantined with a reason and receipt. Enforce payload limits, validate against the local schema catalogue and preserve unrelated custom facets. Scope deduplication to authenticated source, job and run. An exact replay has no coverage or movement side effects.
|
|
67
|
+
4. Implement endpoint and source registration, deterministic provisional IDs, and basic batch assembly. Use the registry mapping anchored at admission and form direct input and output edges only from successful movement. Provide a graph query and an undeclared report preview at one `T` and `K`.
|
|
68
|
+
|
|
69
|
+
**Exit evidence** One plain batch fixture exercises registration, HTTP ingest, projection, query and preview against PostgreSQL. Input metadata that arrives at `START` links to the same run's `COMPLETE`. The restart and duplicate tests show one observation.
|
|
70
|
+
|
|
71
|
+
**Delivered 23 November 2026.** Added scoped bearer authentication, endpoint and producer registration, durable evidence receipts, quarantine, anchored identity, deduplication, and direct batch projection. A reader can inspect the graph and preview an undeclared flow from a consistent checkpoint.
|
|
72
|
+
|
|
73
|
+
**Verified.** 88 tests passed from a clean wheel against PostgreSQL 16.14. Live checks covered provider-originated Airflow events and receipt reuse after restart. They produced one confirmed edge and one undeclared finding. This exercised the Airflow-to-graph portion of AC-01 and M1 job-scope and reader authorization for AC-08. [M1 service and verification](docs/m1-service.md)
|
|
74
|
+
|
|
75
|
+
### M2 · Register agreements and issue reports
|
|
76
|
+
|
|
77
|
+
1. Implement agreement commands for proposal, activation, amendment, suspension and termination, with effective time and receipt time stored separately. Add expected-predecessor checks and compare exact and prefix selectors over potential dataset names. Use real concurrent transactions to verify overlap rejection and adjacent interval acceptance.
|
|
78
|
+
2. Match observations at event time. Preserve lapses, check emitter claims independently, and surface current declaration separately. Add literal version pins, closed Semantic Versioning ranges and authorized supersession.
|
|
79
|
+
3. Implement versioned CI registration files with stable command IDs. Wire `glineage endpoint register`, agreement commands and report retrieval through the API. Treat command names as proposed until the CLI contract is frozen.
|
|
80
|
+
4. Persist the report request identity, rule settings, evaluated windows and checkpoint. Add per-edge finding fingerprints with stable evidence references. Atomically compare and issue an immutable snapshot, reusing unchanged findings and appending supersessions or withdrawals. Implement minimum-checkpoint handling, including a delayed-worker test.
|
|
81
|
+
|
|
82
|
+
**Exit evidence** Demonstrate AC-02, AC-03 and AC-05 over the API. Confirm the same-window reissue history, including the prior report and its finding references, after a backdated activation.
|
|
83
|
+
|
|
84
|
+
**Delivered 23 November 2026.** Added party-scoped agreement commands, effective revisions and contract references. Exposed agreement, report, and finding history through the CLI and API. Added scoped development CLI authentication through `--auth-file` and `--principal` for local demonstrations.
|
|
85
|
+
|
|
86
|
+
**Verified.** 111 tests passed at M2 closeout against PostgreSQL 16.14, and the local CLI authentication follow-up brought the suite to 116 passing tests. Coverage included AC-02, AC-03, AC-05, the agreement authorization portion of AC-08, and the overlap and stale-predecessor checks in AC-14. The live CLI check reproduced the finding withdrawal and both immutable reports after a backdated activation and restart. [M2 agreements, reports, and verification](docs/m2-agreements-reports.md)
|
|
87
|
+
|
|
88
|
+
### M3 · Complete projection and replay
|
|
89
|
+
|
|
90
|
+
1. Extend the run assembler for event-time ordering, conflicting terminals, late updates, explicit streaming delivery and period deduplication, and final deliveries. Permit replacements and withdrawals only through operator correction with the original trust scope. Use persisted authority and mapping references on replay.
|
|
91
|
+
2. Derive transit pairs from direct field lineage. Record indirect dependencies as provenance. Join transit deliveries by matching the intervening dataset and explicit delivery ID with causal ordering. Keep uncorrelated paths inferred. Group confirmed paths by edge and delivery, preserving delivered forms and relevant claims.
|
|
92
|
+
3. Apply aliases to projected keys under the agreement overlap rule. Rebuild from the normalized ledger in a separate projection generation. Compare canonical results at the same `K`, then use the projector lock to publish atomically once the rebuilt checkpoint reaches the active checkpoint. Use the same path for alias changes that require a full rebuild.
|
|
93
|
+
4. Exercise raw-payload reduction with retained normalized evidence. Seed an unresolved coverage gap through a ledger fixture and verify that rebuild preserves it for M4 to interpret. Document which normalized fields survive raw reduction and how operators recover or rebuild without changing original receipt IDs.
|
|
94
|
+
|
|
95
|
+
**Exit evidence** Graph and replay cases for AC-06, AC-07, AC-12 and AC-13 reproduce the expected graph, trust diagnostics and retained gap evidence after restart or rebuild. A missing facet or delivery ID never promotes an inferred path to confirmed movement.
|
|
96
|
+
|
|
97
|
+
**Delivered 23 November 2026.** Added streaming delivery and period deduplication, terminal conflict handling, and confirmed and inferred transit paths with grouped formats and supporting evidence. Added scoped replacements and withdrawals, alias overlap checks, and atomic replay generations. Migration `0004_projection_replay.sql` replays existing evidence under report rule version `mvp-draft-2`. The transit lookback is recorded at first M3 startup. The operator can expire raw request bodies while preserving normalized evidence, receipts, diagnostic reasons, issued reports, and the unresolved gap fixture. M4 will use retained gaps to assess coverage.
|
|
98
|
+
|
|
99
|
+
**Verified.** All 146 tests passed from a clean wheel against PostgreSQL 16.14. AC-06, AC-07, AC-12 and AC-13 passed. Live checks covered actual Airflow ingest, agreement and finding history, and CLI correction, alias, retention, rebuild and restart. The Marquez regression preserved all six facet variants. The six-scene stakeholder demo runs against a temporary service with synthetic data. [Stakeholder walkthrough](docs/m3-projection-replay.md), [Engineering smoke check](tools/check_m3.py)
|
|
100
|
+
|
|
101
|
+
### M4 · Qualify findings with coverage
|
|
102
|
+
|
|
103
|
+
1. Implement monitoring scopes, delegated heartbeat and checkpoint writes, gaps and repair. Record source and scope, effective interval, receipt and authorized actor. A checkpoint sender attests completeness only after durable receipts for eligible deliveries. Record contradictions and replay their effects on coverage. Provide CLI commands and a reference script that exercises this protocol against a controlled source.
|
|
104
|
+
2. Implement interval union, clipping and gap subtraction. Evaluate the latest qualifying complete-through time `W` for inactivity using the report end `T`. Keep liveness based on timely receipts and let historical cadence checks use historical completeness independently. Show coverage pending after `W` and preserve positive evidence arriving in that interval.
|
|
105
|
+
3. Complete the finding and aggregation rules. Return cadence and volume outcomes with reasons and evidence, evaluate version lag, and select the primary finding by precedence. Compute endpoint and edge coverage denominators before display filters. Expose inferred-only candidates and unmatched selectors separately where specified.
|
|
106
|
+
4. Run the fixed-clock cases from the spec against the actual reconciliation path. Include a known drop followed by a live heartbeat, a late observation contradicting a checkpoint, and a declared edge with recent movement outside the selected lookback. Verify that the report still accounts for a gap after rebuild and raw reduction. Reissue a prior report to verify changes and withdrawals.
|
|
107
|
+
|
|
108
|
+
**Exit evidence** AC-04, AC-09, AC-11 and AC-15 pass through the API. The quickstart can reproduce both dormant and unverified outcomes. A plain Airflow feed still yields movement evidence when a pilot source has no completeness checkpoint.
|
|
109
|
+
|
|
110
|
+
**Delivered 23 November 2026.** Added scoped monitoring registration and CLI commands for heartbeats, checkpoints, gaps and repairs. Coverage evaluation distinguishes source liveness from complete evidence. It links late deliveries and scoped failures to the affected coverage and preserves those interruptions through replay. Reports now show dormancy through the verified time, pending coverage, unverified reasons, cadence and volume checks, and separate endpoint and edge coverage counts. Migration `0005_coverage.sql` upgrades the projection. M4 reports use rule version `mvp-draft-3`.
|
|
111
|
+
|
|
112
|
+
**Verified.** All 187 tests passed from a clean wheel against PostgreSQL 16.14, covering AC-04, AC-09, AC-11 and AC-15. The live walkthrough demonstrated a dormant agreement, a live monitor with an unresolved gap, measured volume drift, a late delivery that changed a finding, and a repair. It reproduced the report after raw reduction, rebuild and restart. The live Airflow, agreement, replay and Marquez regressions also passed. [M4 stakeholder walkthrough](docs/m4-coverage.md), [Live verification script](tools/check_m4.py)
|
|
113
|
+
|
|
114
|
+
### M5 · Package and qualify the MVP
|
|
115
|
+
|
|
116
|
+
1. Complete and package the Python helper and CLI. Validate all six facet definitions and exercise the helper's bounded, asynchronous sender during service downtime. Surface delivery failures so a monitor can report a gap.
|
|
117
|
+
2. Build the application image and one-command Compose quickstart. Document migration, config and token setup, sample endpoint registration, ingest, report issuance, checkpoint submission and recovery. Check that local credentials are enabled only in the quickstart configuration.
|
|
118
|
+
3. Run the complete release suite on the packaged service. Post the same captured plain and enriched fixtures to GLineage and the pinned Marquez version. Record version and placement-specific preservation in the compatibility matrix.
|
|
119
|
+
4. Run the agreed pilot workload, measure ingest and query latency, projection lag and lock contention, and test backup/restore, replay and raw retention. Release under Apache 2.0 with the conformance set, schema URLs, supported versions, CLI/helper package and container image after the implementation and pilot gates pass.
|
|
120
|
+
|
|
121
|
+
**Delivered 24 November 2026.** Packaged the `0.1.0rc1` wheel, source archive and non-root container under Apache 2.0. The one-command Compose quickstart creates scoped local credentials, records ordinary lineage and issues a sample report with governed, dormant, and unverified results. The Python SDK builds all six facet variants and returns a receipt or failure from its bounded asynchronous sender. The service exposes versioned schemas, readiness, and scoped operational status.
|
|
122
|
+
|
|
123
|
+
**Verified.** All 202 tests passed from a clean wheel against PostgreSQL 16.14. The packaged server accepted live Airflow events. GLineage and Marquez accepted the same plain and enriched fixture bytes and preserved all six facet placements, completing the local AC-01 and AC-10 checks. The sender surfaced a real outage and reused the receipt after recovery. Backup, restoration into a separate database, and rebuild reproduced the issued report, evidence and graph after raw reduction. The reference workload delivered 480 events and produced 240 observations within its local budgets. The release manifest records the inspected image and hashes of the artifacts and verification results. [M5 quickstart and qualification](docs/m5-release.md), [Reference workload](conformance/reference-workload.json)
|
|
124
|
+
|
|
125
|
+
**Review follow-up, 24 November 2026.** The [M5 code review](docs/m5-code-review.md) found one critical, one high and six medium issues, all now fixed. Admission bounds and per-run isolation keep one event from stopping projection or startup. Transit projection re-derives only the runs a change can reach. Withdrawals can be reinstated and graph cursors survive projection progress. Raw reduction removes facets the rules do not read. Report reads are bounded, scopes can be closed, and version lag is reported for agreements without edges. Migration `0006_review_fixes.sql` adds the supporting indexes and rebuilds the projection once. Reports use rule version `mvp-draft-4`.
|
|
126
|
+
|
|
127
|
+
**Verified.** All 214 tests passed against PostgreSQL 16.14 with 90% line coverage. The service checks passed, and the compatibility checks passed on the rebuilt image, including live Airflow, Marquez 0.50.0, backup and restore, and the reference workload with 48 transit handoffs.
|
|
128
|
+
|
|
129
|
+
**Open release gates.** The pilot owner must confirm a representative source, workload, retention policy and acceptance targets before pilot validation. Public distribution requires the canonical facet schema host and publication destination. The locally qualified candidate uses the existing immutable draft schema identity. The [Phase 2 plan](GLineage%20Phase%202%20Plan.md) carries these gates forward: M6 settled the schema host and proposed pilot targets, and M11 validates the pilot.
|
|
130
|
+
|
|
131
|
+
## Acceptance traceability
|
|
132
|
+
|
|
133
|
+
Run domain cases in CI on each change. Exercise durability, concurrency, authorization and see-your-writes behavior against PostgreSQL. For release, use public HTTP and CLI entry points and the packaged containers.
|
|
134
|
+
|
|
135
|
+
| Spec gate | First milestone | Release evidence |
|
|
136
|
+
| --- | --- | --- |
|
|
137
|
+
| AC-01 | M1 | Clean one-command startup, CLI endpoint registration and direct graph from an Airflow provider run. |
|
|
138
|
+
| AC-02 | M2 | CLI activation and idempotent registration file retry. Two issued reports explain the transition from undeclared to governed. |
|
|
139
|
+
| AC-03 | M2 | Fixed-clock expiry, suspension and amendment boundaries, including late observations and removed selectors. |
|
|
140
|
+
| AC-04 | M4 | Complete, gapped and mismatched scopes, ongoing heartbeats after a lost delivery, and checkpoint contradiction. |
|
|
141
|
+
| AC-05 | M2 | Wrong agreement claim remains recorded while independent matching and finding order remain visible. |
|
|
142
|
+
| AC-06 | M3 | Self-read, direct and indirect field lineage, absent column lineage, correlated transit and multiple delivered forms. |
|
|
143
|
+
| AC-07 | M3 | Duplicate, conflict, quarantine and operator correction with restart/rebuild after raw reduction. |
|
|
144
|
+
| AC-08 | M1–M2 | Job authorization, producer read denial, consumer activation denial and successful scoped retry. |
|
|
145
|
+
| AC-09 | M4 | Cadence against historical coverage, compatible and missing volume evidence, and registry-driven version lag. |
|
|
146
|
+
| AC-10 | M5 | Six facet placements validate, identical HTTP payloads pass in both backends, and preservation is recorded in the matrix. |
|
|
147
|
+
| AC-11 | M4 | Environment and finding filters, cross-environment edges, isolated endpoints and low-coverage denominators. |
|
|
148
|
+
| AC-12 | M3 | Shared UUID across runs, contradictory terminals and streaming deduplication. |
|
|
149
|
+
| AC-13 | M3 | Distinct ownership within a warehouse, stable provisional IDs, alias overlap protection and rebuild. |
|
|
150
|
+
| AC-14 | M2 | Concurrent overlap before dataset discovery, adjacent intervals and stale predecessor rejection. |
|
|
151
|
+
| AC-15 | M4 | Minimum-checkpoint query, same-slice reissue, withdrawal and stable immutable history. |
|
|
152
|
+
|
|
153
|
+
## Decisions that affect release
|
|
154
|
+
|
|
155
|
+
| Decision | Resolve by | Evidence or outcome |
|
|
156
|
+
| --- | --- | --- |
|
|
157
|
+
| Runtime and compatibility pins, token issuer and CLI contract | M0 | Supported runtime and database versions, Airflow and Marquez fixtures, scoped token test credentials and documented API/CLI interfaces. |
|
|
158
|
+
| Pilot source for completeness attestations | Before M5 pilot validation | The controlled source exercised the protocol in M4. Select the pilot's monitor and scope using source history or durable receipts sufficient to attest delivery. |
|
|
159
|
+
| Pilot limits and targets | Set with the pilot owner before M5 validation | Workload mix, ingest rate, report query sizes and latency, payload limit, raw and normalized retention, and acceptable projection lag. Use results to decide whether the serialized ledger path needs work for the pilot. |
|
|
160
|
+
| Public distribution | Before the public release | Canonical schema host and package names, ownership and maintenance, upstream OpenLineage review timing, and an immutable release manifest with pinned versions. |
|
|
161
|
+
|
|
162
|
+
The pilot is ready when the packaged quickstart and compatibility suite pass, the representative workload meets the agreed targets, and operators can explain an issued finding from its retained observation, agreement revision and coverage evidence. The post-MVP sequence remains in the product specification.
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
# GLineage Phase 2 Plan
|
|
2
|
+
|
|
3
|
+
**Status** In progress. M6 engineering is complete. Pilot decisions and schema publication are open. M7, M8, M9 and M10 are complete, and M11 is planned · 1 December 2026
|
|
4
|
+
|
|
5
|
+
Phase 2 validates the MVP with a pilot source, makes reconciliation contract-aware, and puts GLineage in a browser. It closes the release gates the MVP left open, then adds the ODCS adapter, schema drift, out-of-scope attribute findings, an authoritative classification source and consumer contract adoption over time. A browser interface lets stewards and reviewers read reports, follow a finding to its evidence and see the graph without the command line. The contract work is the first item in the [product specification's post-MVP sequence](GLineage%20Product%20Specification.md#after-the-mvp). The interface brings forward the foundation of the views the specification places later, because a browser makes GLineage far easier to demonstrate and adopt than the CLI.
|
|
6
|
+
|
|
7
|
+
The phase ends with release `0.2.0`: a validated pilot, a published facet specification, a browser interface, and a reconciliation report that checks observed schema and attributes against the contract each agreement cites.
|
|
8
|
+
|
|
9
|
+
## Where the MVP leaves us
|
|
10
|
+
|
|
11
|
+
The [implementation plan](GLineage%20Implementation%20Plan.md) records M0–M5 as delivered and a release candidate qualified locally. The follow-up to the [M5 code review](docs/m5-code-review.md) fixed every critical, high and medium finding.
|
|
12
|
+
|
|
13
|
+
| Area | State at the start of Phase 2 |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| Reconciliation | All findings that rest on the agreement alone, with coverage. Reports use rule version `mvp-draft-4`. |
|
|
16
|
+
| Contract support | By reference only. Agreements store contract type, ID, version or range, location and digest. Version lag is checked, but no contract document is read. |
|
|
17
|
+
| Data model ready for Phase 2 | Agreements already store `permittedAttributes`. Normalized evidence keeps the `schema` and `columnLineage` facets through raw reduction. |
|
|
18
|
+
| Evidence gaps | Observations keep projected schema fields but not the attributes a consumer read. Classification has no source. |
|
|
19
|
+
| Release gates | Pilot validation and public distribution are open. The facet schema identity still uses the placeholder host `schemas.glineage.example`. |
|
|
20
|
+
| Carried work | Low-severity review findings L1–L9, and a path-enumeration risk for transit deliveries without delivery IDs. |
|
|
21
|
+
| Interface | CLI and JSON API only. The [stakeholder demonstration](docs/mvp-stakeholder-demo.md) ran in a terminal. Reports and agreements can be read only by ID, with no listing. |
|
|
22
|
+
|
|
23
|
+
## Goal and scope
|
|
24
|
+
|
|
25
|
+
**Goal.** In a browser, a steward can see where observed movement departs from the contract terms an agreement cites, on a real pilot source. Every finding can be traced to its retained evidence.
|
|
26
|
+
|
|
27
|
+
| In scope | Out of scope for Phase 2 |
|
|
28
|
+
| --- | --- |
|
|
29
|
+
| Pilot validation against the targets the pilot owner sets | Harvesters for transfer gateways and warehouses (Phase 3) |
|
|
30
|
+
| Facet schema publication, package names and the `0.2.0` release | Impact analysis and consumer register views, policy checks and catalogue export (Phase 4) |
|
|
31
|
+
| Contract document registration and the ODCS adapter | Fine-grained read controls, read auditing and as-known-at queries (Phase 5) |
|
|
32
|
+
| An adapter interface, proven by ODCS and one test format | Production custom adapters and agreement import connectors (Phase 6) |
|
|
33
|
+
| Schema drift and out-of-scope attribute findings | Registry writes in the browser. They stay in the CLI and API, where CI files keep them repeatable. |
|
|
34
|
+
| Authoritative dataset classification and classification-ranked reports | Catalogue features in the interface, such as search, glossary or asset documentation, which stay non-goals |
|
|
35
|
+
| Consumer contract adoption at a report time and over a period | Contract authoring, contract testing and data quality checks, which stay non-goals |
|
|
36
|
+
| A browser interface for reports, graph, finding evidence and history, agreements, adoption and operations, with sign-in | Enforcement of any finding |
|
|
37
|
+
| Review findings L1–L9 and the transit path bound | |
|
|
38
|
+
|
|
39
|
+
## Phase 2 at a glance
|
|
40
|
+
|
|
41
|
+
```mermaid
|
|
42
|
+
flowchart LR
|
|
43
|
+
M6["M6 · Pilot readiness<br/>and release gates"] --> M11["M11 · Pilot validation<br/>and release 0.2.0"]
|
|
44
|
+
M7["M7 · Contract registry<br/>and ODCS adapter"] --> M8["M8 · Schema drift and<br/>out-of-scope attributes"]
|
|
45
|
+
M7 --> M9["M9 · Classification and<br/>contract adoption"]
|
|
46
|
+
M8 --> M11
|
|
47
|
+
M9 --> M11
|
|
48
|
+
M10["M10 · Browser interface"] --> M11
|
|
49
|
+
M8 -. "contract views" .-> M10
|
|
50
|
+
M9 -. "classification and adoption views" .-> M10
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
M6, M7 and M10 can start together. M10's first increment works on the MVP's findings. Its second adds the contract views as M8 and M9 land. M6 depends on decisions from the pilot owner, M7 on the contract ingestion decision, and M10 on the interface technology and sign-in decisions.
|
|
54
|
+
|
|
55
|
+
## Milestones
|
|
56
|
+
|
|
57
|
+
| Milestone | Depends on | Demonstrable exit |
|
|
58
|
+
| --- | --- | --- |
|
|
59
|
+
| M6 · Pilot readiness and release gates | MVP, pilot owner decisions | The pilot source sends events to a deployed GLineage with enterprise tokens. Agreed targets, retention and the facet schema host are recorded. L1–L9 and the transit path bound are closed. |
|
|
60
|
+
| M7 · Contract registry and ODCS adapter | MVP, contract ingestion decision | An ODCS contract registered with its digest is parsed into schema, properties and classification. A test adapter for a second format passes the same interface tests. Replay reproduces the parsed contract after raw reduction. |
|
|
61
|
+
| M8 · Schema drift and out-of-scope attributes | M7 | A report shows schema drift and out-of-scope attributes with their evidence. Missing column evidence shows as unknown, never as compliant. |
|
|
62
|
+
| M9 · Classification and contract adoption | M7 | Reports rank undeclared flows by classification. An adoption view lists which consumers pin which contract versions, at a time and over a period. |
|
|
63
|
+
| M10 · Browser interface | MVP API for the first increment. M8 and M9 for the contract views. | A stakeholder signs in, opens a report, moves from a finding to its evidence and history, and sees the graph coloured by finding. The stakeholder demonstration runs in the browser. |
|
|
64
|
+
| M11 · Pilot validation and release 0.2.0 | M6, M8, M9, M10 | The pilot meets its agreed targets. Operators explain a contract finding from retained evidence in the browser. `0.2.0` is published under the canonical schema host. |
|
|
65
|
+
|
|
66
|
+
### M6 · Pilot readiness and release gates
|
|
67
|
+
|
|
68
|
+
1. Record the pilot owner's decisions: the representative source and monitor, the workload, raw and normalized retention, payload limits, and latency and lag targets. Extend `conformance/reference-workload.json` with a pilot profile that encodes the agreed targets.
|
|
69
|
+
2. Deploy GLineage with the enterprise token issuer. Register the pilot's endpoints, mapping rules, sources and monitoring scopes, then connect the pilot's existing OpenLineage transport. Confirm that the monitor attests completeness only after durable receipts.
|
|
70
|
+
3. Publish the facet schemas at the canonical host as version `0-2-0`. Accept the `0-1-0` draft identity during a stated transition period, because events already in pilot ledgers carry it. Reserve package names and the repository organisation.
|
|
71
|
+
4. Close the low-severity review findings. These cover future-dated activation, future report ends, ingest lock scope, dead code, error responses, permission names, CLI `localhost`, CI pinning and repository hygiene. Bound the number of transit paths enumerated from deliveries without delivery IDs, and report when the bound applies.
|
|
72
|
+
5. Decide the OpenLineage community review timing and the sustainability route, both of which the concept definition leaves open.
|
|
73
|
+
|
|
74
|
+
**Progress, 25 November 2026.** Low-severity findings L1 to L9 are closed. Activation can no longer take effect after its receipt, and scheduled revisions show as `scheduled`. A report end in the future can be previewed, marked provisional, but not issued. Receipt times follow ledger order. Unexpected errors stay in the error contract, and startup validates settings and permission names. Transit derivation now bounds inferred path steps for each delivery and reports when the bound applies, and confirmed paths are never truncated. The product owner chose `https://arrufus.github.io/glineage/` as the canonical schema host. Facet schema `0-2-0` is current there, and ingest accepts the `0-1-0` draft identity throughout 0.2.x. Operator status counts the checkpoint contradictions behind each monitoring scope. A read-only readiness check and an issuer configuration template prepare the pilot deployment. The workload file holds a `pilot` profile with proposed targets, which cannot qualify the pilot until agreed.
|
|
75
|
+
|
|
76
|
+
**Decision, 26 November 2026.** No enterprise token issuer is available while GLineage is experimental, so the pilot runs its own issuer, `tools/token_issuer.py`, in place of step 2's enterprise issuer. The service verifies its RS256 tokens as it would an enterprise issuer's, so moving to one later changes only the auth file.
|
|
77
|
+
|
|
78
|
+
**Verified.** All 246 tests passed against PostgreSQL 16.14, 32 of them new, and `check_m1` to `check_m4` passed. The runbook's local deployment rehearsal ran as written. [M6 pilot readiness runbook](docs/m6-pilot-readiness.md)
|
|
79
|
+
|
|
80
|
+
**Open.** The pilot owner has not yet confirmed the source, workload, retention and targets, so the pilot deployment has not started. Publishing the schema site needs GitHub Pages enabled for the private repository. Package names, the OpenLineage community review timing and the sustainability route remain open.
|
|
81
|
+
|
|
82
|
+
### M7 · Contract registry and ODCS adapter
|
|
83
|
+
|
|
84
|
+
1. Add contract document registration as a versioned registry command. Store the document in the ledger, keyed by provider, type, ID and version, with a computed digest. Refuse a changed document under an existing version, and verify a declared digest. This keeps replay independent of any external location.
|
|
85
|
+
2. Define the adapter interface. An adapter takes a registered document and returns the contract's datasets with their properties, types, required flags and classification, or a reasoned failure. Record the adapter name and version with each result, so a report can name the parser that produced it.
|
|
86
|
+
3. Implement the ODCS adapter for the current ODCS major version (v3.1.0 at the time of writing; confirm at kickoff). Map ODCS server and dataset identifiers to OpenLineage namespace and name, following the join that Bitol RFC 0011 proposes. Where the join cannot be made, require an explicit mapping on the agreement.
|
|
87
|
+
4. Ship a minimal second adapter for a test format in the conformance suite. It proves format neutrality without committing to a production custom format.
|
|
88
|
+
5. Add migration `0007`, which projects parsed contracts so replay rebuilds them from ledger records.
|
|
89
|
+
|
|
90
|
+
**Decision, 29 November 2026.** Contract documents reach GLineage only through registry registration, and GLineage never fetches from `location`. The adapter supports ODCS major version 3. At kickoff the current release was v3.2.0, published on 8 September 2026, not v3.1.0. Bitol RFC 0011 has no recorded decision, and its fields are not in v3.2.0. The ODCS adapter therefore derives OpenLineage identities from server fields where ODCS gives every value the name needs. Elsewhere the agreement's contract reference must map the dataset. The [M7 plan](docs/m7-contract-registry-plan.md) sets out the design and the work steps. It also records four design choices, which the product owner confirmed the same day.
|
|
91
|
+
|
|
92
|
+
**Progress, 30 November 2026.** M7 is complete. Providers register contract documents through the `register_contract` command or `glineage contract register`. GLineage verifies each document's digest, refuses changed content under a registered version, and keeps the document in its ledger. The ODCS adapter parses `apiVersion` v3.0.0 to v3.2.0 against pinned schemas and derives OpenLineage identities for five server types. A `GLINEAGE-TEST` adapter passes the same interface suite. Agreements can map contract datasets to observed OpenLineage datasets. Migrations `0007` and `0008` add the registry table and the parsed-contract projection, and the compatibility matrix records the contract formats. The [M7 contracts guide](docs/m7-contracts.md) covers registration, reads, ODCS identities, mappings and upgrades.
|
|
93
|
+
|
|
94
|
+
**Verified.** All 490 tests passed against PostgreSQL 16.14, 244 of them new in M7. `tools/check_m7.py` passed against a local service and against the quickstart image, through the installed CLI and HTTP API. It covers:
|
|
95
|
+
|
|
96
|
+
- AC-16
|
|
97
|
+
- the contract part of AC-21: parsed contracts and documents survive raw reduction, rebuild and restart, and registrations change no report
|
|
98
|
+
- AC-22's interface cases for both adapters
|
|
99
|
+
|
|
100
|
+
`check_m1` to `check_m4` also passed, and CI runs `check_m7` in both jobs. AC-21's contract findings and reissue series, and AC-22's findings that name the adapter, arrive with M8.
|
|
101
|
+
|
|
102
|
+
### M8 · Schema drift and out-of-scope attributes
|
|
103
|
+
|
|
104
|
+
1. Project column evidence onto observations. Record the attributes a consumer read from `columnLineage` input fields that reference the provider's dataset. Where the run lists a projected input `schema`, record that too. Say which basis each observation used.
|
|
105
|
+
2. Compare the observed schema with the schema of the contract version the agreement pins, or the highest permitted version in its range. A missing or retyped attribute is a breach and produces *Drift*. An added attribute is a warning shown in the check. No schema evidence is *unknown*.
|
|
106
|
+
3. Add the *Out-of-scope attributes* finding for attributes read outside the agreement's `permittedAttributes`. Place it fourth in precedence, before *Drift*, as the concept definition orders it. Without column evidence, the check is *unknown* and raises no finding.
|
|
107
|
+
4. Bump the report rule version. Issued `mvp-draft-4` reports stay unchanged, and reissuing under the new rules starts a new series.
|
|
108
|
+
|
|
109
|
+
**Decision, 30 November 2026.** *Out-of-scope attributes* is fourth, before *Drift*, as the concept definition orders it.
|
|
110
|
+
|
|
111
|
+
- **Attributes read.** Column lineage counts first. An input `schema` facet counts only from a source whose registration says its input schemas show the columns read, because the OpenLineage spec doesn't say whether an input schema is the whole dataset.
|
|
112
|
+
- **Schema drift.** It compares the schema each observation carries. A schema from such a source can't show a missing attribute.
|
|
113
|
+
- **Version ranges.** Under a version range, an observation conforms if it matches any registered version in the range, and otherwise reports against the highest. This replaces step 2's "highest permitted version", which would report an older permitted shape as drift.
|
|
114
|
+
|
|
115
|
+
The [M8 plan](docs/m8-schema-drift-attributes-plan.md) sets out the design and the work steps. It also records six design choices, which the product owner confirmed the same day.
|
|
116
|
+
|
|
117
|
+
**Progress, 1 December 2026.** M8 is complete.
|
|
118
|
+
|
|
119
|
+
- **Evidence.** Observations record column evidence from column lineage on reads, pushes and transit paths.
|
|
120
|
+
- **Schema checks.** Reports join each observation to the contract its agreement cites and compare the schema it carries. A missing or retyped attribute produces *Drift*, an added attribute is a warning, and no schema is *unknown*.
|
|
121
|
+
- **Attribute checks.** Reports compare the attributes a run moved with the agreement's permitted list. An attribute outside it produces *Out-of-scope attributes*, fourth in precedence. A source registration can say that its input schemas list only the columns read.
|
|
122
|
+
- **Rules and migrations.** Reports use rule version `phase2-draft-1`, and reports issued under `mvp-draft-4` stay as issued. Migration `0009` rebuilds the projection with column evidence, and `0010` adds an index for reading source registrations.
|
|
123
|
+
- **Interfaces.** OpenAPI, the CLI and two conformance cases cover the new checks.
|
|
124
|
+
|
|
125
|
+
The [M8 contract checks guide](docs/m8-contract-checks.md) covers reading the checks, giving them evidence, the source setting and the upgrade.
|
|
126
|
+
|
|
127
|
+
**Verified.** All 559 tests passed against PostgreSQL 16.14, 69 of them new in M8. `tools/check_m8.py` passed against a local service and against the quickstart image, through the installed CLI and HTTP API. It covers:
|
|
128
|
+
|
|
129
|
+
- AC-17
|
|
130
|
+
- AC-18
|
|
131
|
+
- the rest of AC-21: issued contract findings and their histories survive raw reduction, rebuild and restart, a report issued under M7's rules is unchanged after the upgrade, and reissuing it starts a series under `phase2-draft-1`
|
|
132
|
+
- AC-22's findings that name the adapter and version
|
|
133
|
+
|
|
134
|
+
`check_m1` to `check_m4` and `check_m7` also passed, and CI runs `check_m8` in both jobs.
|
|
135
|
+
|
|
136
|
+
### M9 · Classification and contract adoption
|
|
137
|
+
|
|
138
|
+
1. Make the contract's classification, read through the adapter, the authoritative source for dataset classification. Allow a registry override that records who set it and why. Treat a classification carried on an event as a claim to check, not a source.
|
|
139
|
+
2. Show classification on edges, findings and observations. Rank undeclared and expired flows by classification so the first list a steward reads is short, which is the mitigation the concept definition names for unregistered agreements.
|
|
140
|
+
3. Add a contract adoption view. For a contract, list each consumer, the version or range its agreement pins, the supersession status, and observed movement. Show this at a report time `T` and as changes over a period, from registry history.
|
|
141
|
+
|
|
142
|
+
**Decision, 1 December 2026.** A dataset's classification comes from its contract, through the adapter. A registry override replaces it and records who set it and why. A classification on an event is a claim that GLineage checks, and it never changes the classification.
|
|
143
|
+
|
|
144
|
+
- **Ranking.** Labels rank by an ordered list that governance sets through the registry. A label off the list ranks above it, and the report names it. A dataset with no label ranks below it.
|
|
145
|
+
- **Claims.** A claim that differs shows on the observation. It raises no finding.
|
|
146
|
+
|
|
147
|
+
The [M9 plan](docs/m9-classification-adoption-plan.md) sets out the design and the work steps. It also records ten design choices, which the product owner confirmed the same day.
|
|
148
|
+
|
|
149
|
+
**Progress, 1 December 2026.** M9 is complete.
|
|
150
|
+
|
|
151
|
+
- **Classification.** Governance sets an ordered list of labels and overrides single datasets through two registry commands under a new `classification:write` grant. A dataset's classification is its override, or else the highest-ranked label among its provider's contracts. `glineage classification show` and `/api/v1/classifications` read it with its sources.
|
|
152
|
+
- **Claims.** Classification tags on events, from the OpenLineage `tags` facet, are recorded on observations. Reports check them, and they never change a classification.
|
|
153
|
+
- **Ranking.** Report rows and inferred candidates show their classification and rank highest first, so undeclared flows sort by classification. Reports use rule version `phase2-draft-2`.
|
|
154
|
+
- **Adoption.** `glineage contract adoption` and `/api/v1/contracts/adoption` show which consumers pin which version of a contract, at a time and over a period, in agreement with *Version lag*.
|
|
155
|
+
- **Upgrade.** Migration `0011` adds an index and needs no projection rebuild.
|
|
156
|
+
|
|
157
|
+
The [M9 classification and adoption guide](docs/m9-classification-adoption.md) covers the list, overrides, claims, reports, the adoption view and the upgrade.
|
|
158
|
+
|
|
159
|
+
**Verified.** All 612 tests passed against PostgreSQL 16.14, 53 of them new in M9. `tools/check_m9.py` passed against a local service and against the quickstart image, through the installed CLI and HTTP API. It covers:
|
|
160
|
+
|
|
161
|
+
- AC-19
|
|
162
|
+
- AC-20
|
|
163
|
+
- the classification part of AC-21: classifications, claims and adoption survive raw reduction, rebuild and restart, a report issued under M8's rules is unchanged after the upgrade, and reissuing it starts a series under `phase2-draft-2`
|
|
164
|
+
|
|
165
|
+
`check_m1` to `check_m4`, `check_m7` and `check_m8` also passed, and CI runs `check_m9` in both jobs.
|
|
166
|
+
|
|
167
|
+
### M10 · Browser interface
|
|
168
|
+
|
|
169
|
+
1. Add the read APIs the interface needs: issued reports listed by environment and report end, agreements listed with their current status, endpoint and edge detail with neighbours, and finding counts by code. Each takes the same permissions and reads the same consistent checkpoint as the existing API. Update the OpenAPI contract. Every screen shows the same documents the CLI and API return, so the interface never computes its own findings.
|
|
170
|
+
2. Add browser sign-in through the token issuer the API already trusts, using the OpenID Connect authorization code flow with PKCE. Map an identity-provider group claim to grants, so stakeholders need no individual entries in the auth configuration. The quickstart offers a local role picker backed by its development credentials, and only when development tokens are enabled. Roles decide what appears: a producer or monitor sees no graph, raw quarantine payloads stay with operators, and only issuers see the issue action.
|
|
171
|
+
3. Build the first increment on the MVP's findings:
|
|
172
|
+
- **Report overview:** endpoint and edge coverage, the low-coverage label, and findings by code. Filters by environment and finding leave the coverage counts unchanged.
|
|
173
|
+
- **Graph:** the endpoints and edges of an environment, coloured by primary finding, with a neighbourhood view for large graphs. Inferred candidates are drawn apart and stay out of the counts.
|
|
174
|
+
- **Edge and finding detail:** observations, the agreement revision, coverage through and pending, interruptions, cadence and volume checks, and evidence receipts linked to their normalized evidence.
|
|
175
|
+
- **History:** issued reports for the same report end, and each finding's issued, superseded and withdrawn revisions.
|
|
176
|
+
- **Agreements:** each agreement's revisions, with proposal, activation and closure provenance.
|
|
177
|
+
- **Operations,** for operators: projection lag, projector health, ingest counts and monitor freshness.
|
|
178
|
+
- **Preview and issue a report,** for issuers.
|
|
179
|
+
4. Add the second increment as M8 and M9 land: schema drift and out-of-scope attribute details, classification on edges and findings, and the contract adoption view.
|
|
180
|
+
5. Package the interface as static files built in CI with a pinned toolchain, bundled in the wheel and the image, and served by the existing container under `/ui`. Node is needed only to build, which keeps the specification's single application container. Serve it from the API's origin with a Content Security Policy, and keep tokens in memory rather than persistent browser storage.
|
|
181
|
+
6. Test in CI with browser end-to-end tests against the packaged image, contract tests against the OpenAPI document, and automated accessibility checks. Rewrite the [stakeholder demonstration](docs/mvp-stakeholder-demo.md) so its scenes are viewed in the browser, with events and registry commands still sent from scripts.
|
|
182
|
+
|
|
183
|
+
Keep the interface narrow, as the concept definition requires: it reads and explains reconciliation, and it is not a catalogue.
|
|
184
|
+
|
|
185
|
+
**Decision, 1 December 2026.** The interface is TypeScript and React, built into static files in CI and served by the existing container under `/ui`. People sign in through OpenID Connect with PKCE, and group claims map to grants.
|
|
186
|
+
|
|
187
|
+
- **The pilot.** GLineage trusts more than one issuer. The pilot keeps its token issuer for producers and monitors, and adds an OpenID Connect provider for people.
|
|
188
|
+
- **Scope.** The interface is read-first, plus report preview and issuance. Registry writes stay in the CLI and API.
|
|
189
|
+
- **Accessibility.** Core screens meet WCAG 2.2 AA with a keyboard alone, and a table lists the graph's edges.
|
|
190
|
+
|
|
191
|
+
The [M10 plan](docs/m10-browser-interface-plan.md) sets out the design and the work steps. It also records eight design choices, which the product owner confirmed the same day.
|
|
192
|
+
|
|
193
|
+
**Progress, 1 December 2026.** M10 is complete.
|
|
194
|
+
|
|
195
|
+
- **Reads.** The API lists issued reports, agreements and an endpoint's neighbourhood, and gives the signed-in session. Reports carry finding counts, computed when served. The CLI has a command for each read.
|
|
196
|
+
- **Sign-in.** The auth file can trust several issuers, each with its own principals, and grants can come from a token's groups. People sign in through OpenID Connect with PKCE, and tokens stay in memory. The quickstart offers a role picker, only with development tokens and on a loopback address.
|
|
197
|
+
- **The interface.** It is TypeScript and React, built in CI and in the image, and served under `/ui` with a strict Content Security Policy. Its screens:
|
|
198
|
+
- reports and previews, and the report overview with its filters
|
|
199
|
+
- edge and finding detail, and finding history
|
|
200
|
+
- the graph with its table and neighbourhoods
|
|
201
|
+
- agreements, contracts and adoption, and classification
|
|
202
|
+
- issue, operations and diagnostics
|
|
203
|
+
|
|
204
|
+
Each screen needs one grant.
|
|
205
|
+
- **Demonstration.** The [stakeholder demonstration](docs/stakeholder-demo.md) runs in the browser. On the local reference workload, the graph opens in under 80 ms at p95.
|
|
206
|
+
|
|
207
|
+
The [M10 browser interface guide](docs/m10-browser-interface.md) covers opening the interface, signing people in through an identity provider, each screen and its grant, security, development and upgrade.
|
|
208
|
+
|
|
209
|
+
**Verified.** All 639 tests passed against PostgreSQL 16.14, 27 of them new in M10.
|
|
210
|
+
|
|
211
|
+
`tools/check_m10.py` passed against a local service and against the quickstart image. It:
|
|
212
|
+
- runs 25 browser tests, by keyboard alone, with axe's WCAG 2.2 AA rules on every screen
|
|
213
|
+
- checks every API exchange the pages made against the OpenAPI contract
|
|
214
|
+
- covers AC-24 to AC-28, and shows the M8 and M9 conformance cases in the browser
|
|
215
|
+
|
|
216
|
+
`check_m1` to `check_m4` and `check_m7` to `check_m9` also passed, and CI runs `check_m10` in both jobs.
|
|
217
|
+
|
|
218
|
+
### M11 · Pilot validation and release 0.2.0
|
|
219
|
+
|
|
220
|
+
1. Run the pilot for the agreed period. Measure ingest and query latency, projection lag and lock contention against the targets, and test backup, restore, replay and raw retention on pilot data. Include interface page loads in the latency targets.
|
|
221
|
+
2. Register the pilot's contracts and agreements. Demonstrate schema drift, out-of-scope attributes and adoption on pilot evidence, or record why the pilot source cannot exercise them.
|
|
222
|
+
3. In the browser, have an operator explain an issued contract finding from its retained observation, agreement revision, contract version and coverage evidence. This is the pilot readiness test the implementation plan sets.
|
|
223
|
+
4. Gather stewards' and reviewers' feedback on the interface. Use it to scope Phase 4's views.
|
|
224
|
+
5. Publish `0.2.0`: the facet specification under the canonical host, the conformance set with the new cases, the CLI and helper packages, and the container image with the interface.
|
|
225
|
+
|
|
226
|
+
**Decision, 1 December 2026.** The product owner decided how `0.2.0` is published and supported:
|
|
227
|
+
|
|
228
|
+
- **Publication.** The repository becomes public at `0.2.0`. The package is `glineage` on PyPI and the image `ghcr.io/arrufus/glineage`, both published from CI.
|
|
229
|
+
- **Support.** `0.2.x` receives security and correctness fixes for six months, under a maintainer the README names.
|
|
230
|
+
- **Community review.** The facets go to the OpenLineage community after the pilot validates, no later than `0.2.0`.
|
|
231
|
+
- **People's sign-in for the pilot.** The enterprise provider, or else a self-hosted Keycloak.
|
|
232
|
+
|
|
233
|
+
The pilot owner's decisions on the source, workload and targets are still open. Their targets now include page loads and a rebuild of the pilot's ledger.
|
|
234
|
+
|
|
235
|
+
The [M11 plan](docs/m11-pilot-validation-release-plan.md) sets out the design and the work steps. Steps 1 to 4 can start now:
|
|
236
|
+
- projection on a long ledger
|
|
237
|
+
- expired sign-ins
|
|
238
|
+
- the pilot runbook for Phase 2
|
|
239
|
+
- the release candidate `0.2.0rc1`
|
|
240
|
+
|
|
241
|
+
The plan also records eleven design choices, which the product owner confirmed the same day.
|
|
242
|
+
|
|
243
|
+
## Acceptance criteria
|
|
244
|
+
|
|
245
|
+
Phase 2 adds these criteria to [AC-01 to AC-15](GLineage%20Product%20Specification.md#acceptance-criteria), which must keep passing.
|
|
246
|
+
|
|
247
|
+
| ID | Scenario | Pass condition |
|
|
248
|
+
| --- | --- | --- |
|
|
249
|
+
| AC-16 | Register an ODCS contract version, retry it, then register changed content under the same version and a document whose digest does not match. | The retry returns the original receipt. Changed content returns a conflict. A digest mismatch is refused with a reason. |
|
|
250
|
+
| AC-17 | Observe a pinned dataset whose schema drops an attribute, retypes one and adds one. Observe it again with no schema evidence. | The missing and retyped attributes produce *Drift* with the contract version and evidence. The added attribute is a warning. Missing evidence is *unknown*. |
|
|
251
|
+
| AC-18 | A consumer's run reads a permitted attribute and one outside the agreement's permitted list. Repeat without column lineage. | The second attribute produces *Out-of-scope attributes* above *Drift* in precedence. Without column evidence, the check is *unknown* and the flow is not reported as compliant on attributes. |
|
|
252
|
+
| AC-19 | Classify a dataset through its contract, override it in the registry, and send an event claiming a different classification. | The override applies with its provenance. The event's claim is recorded and checked, and does not change the classification. Undeclared flows sort by classification. |
|
|
253
|
+
| AC-20 | Supersede a contract version that two consumers pin and one consumer has moved past. | The adoption view lists the two remaining consumers at `T`, shows when each changed over the period, and agrees with the version-lag findings. |
|
|
254
|
+
| AC-21 | Rebuild after raw reduction with registered contracts and issued contract findings. Reissue a pre-Phase 2 report. | Parsed contracts and findings rebuild identically. Earlier reports are unchanged, and the reissue starts a series under the new rule version. |
|
|
255
|
+
| AC-22 | Register a document in the test format through its adapter. | The test adapter passes the same interface tests as ODCS, and its findings name the adapter and version. |
|
|
256
|
+
| AC-23 | Run the pilot workload for the agreed period. | The agreed latency, lag and retention targets hold. An operator explains one contract finding from retained evidence alone. |
|
|
257
|
+
| AC-24 | Sign in through the issuer as a reader, an issuer, an operator and a producer, and through the quickstart's local sign-in. | Each sees only what its grants allow. The producer cannot open the graph, a reader cannot see raw quarantine payloads, and only the issuer can issue. Local sign-in is unavailable unless development tokens are enabled. |
|
|
258
|
+
| AC-25 | Open an issued report in the browser, then filter by environment and by finding. | Every count, finding and reason matches the API document for the same report ID. Filters change the rows shown and leave coverage counts unchanged. |
|
|
259
|
+
| AC-26 | From a finding, open its observations, evidence, agreement revision, coverage interruptions and history. Reissue the report after a withdrawal. | Each link reaches the record the finding cites. The history shows the withdrawal, and the original report is still shown as issued. |
|
|
260
|
+
| AC-27 | Open the reference workload's environment in the graph view. | Edges are coloured by primary finding, inferred candidates are distinct and uncounted, and the neighbourhood view keeps large environments readable. |
|
|
261
|
+
| AC-28 | Run the browser end-to-end and accessibility suites against the packaged image. | The stakeholder demonstration's scenes pass in the browser, and core screens meet WCAG 2.2 AA with keyboard-only navigation. |
|
|
262
|
+
|
|
263
|
+
## Decisions made
|
|
264
|
+
|
|
265
|
+
| Decision | Choice | Made |
|
|
266
|
+
| --- | --- | --- |
|
|
267
|
+
| Canonical schema host | `https://arrufus.github.io/glineage/`. Facet schema `0-2-0` is current there, and ingest accepts the `0-1-0` draft identity throughout 0.2.x. | [M6](#m6--pilot-readiness-and-release-gates), 25 November 2026 |
|
|
268
|
+
| Pilot token issuer | While no enterprise issuer is available, the pilot runs its own issuer, `tools/token_issuer.py`. Moving to an enterprise issuer later changes only the auth file. | [M6](#m6--pilot-readiness-and-release-gates), 26 November 2026 |
|
|
269
|
+
| How contract documents reach GLineage | Through registry registration only. GLineage never fetches from `location`, so replay doesn't depend on external systems. | [M7](#m7--contract-registry-and-odcs-adapter), 29 November 2026 |
|
|
270
|
+
| Supported ODCS version | Major version 3, `apiVersion` v3.0.0 to v3.2.0, recorded in the compatibility matrix | [M7](#m7--contract-registry-and-odcs-adapter), 29 November 2026 |
|
|
271
|
+
| Precedence of the new finding | *Out-of-scope attributes* is fourth, before *Drift*, as the concept definition orders it. | [M8](#m8--schema-drift-and-out-of-scope-attributes), 30 November 2026 |
|
|
272
|
+
| Which column evidence counts | Column lineage first. A run's input `schema` facet counts only from a source whose registration says its input schemas show the columns read. Otherwise the check is *unknown*. | [M8](#m8--schema-drift-and-out-of-scope-attributes), 30 November 2026 |
|
|
273
|
+
| Schema evidence for drift | The `schema` facet each observation carries. A schema from a source flagged as showing only columns read can't show a missing attribute. | [M8](#m8--schema-drift-and-out-of-scope-attributes), 30 November 2026 |
|
|
274
|
+
| Contract version under a range | An observation conforms if it matches any registered version in the range. Otherwise it reports against the highest. | [M8](#m8--schema-drift-and-out-of-scope-attributes), 30 November 2026 |
|
|
275
|
+
| Source of classification | The contract, through its adapter, with an audited registry override. A classification on an event is a claim to check. This answers an open question in the concept definition. | [M9](#m9--classification-and-contract-adoption), 1 December 2026 |
|
|
276
|
+
| How classification labels rank | An ordered list, lowest first, that governance sets through the registry under its own grant | [M9](#m9--classification-and-contract-adoption), 1 December 2026 |
|
|
277
|
+
| Labels off the list, and datasets with no label | A label off the list ranks above it, and the report names it. A dataset with no label ranks below it. | [M9](#m9--classification-and-contract-adoption), 1 December 2026 |
|
|
278
|
+
| A classification claim that differs | It shows on the observation and raises no finding. | [M9](#m9--classification-and-contract-adoption), 1 December 2026 |
|
|
279
|
+
| Interface technology and packaging | TypeScript and React, built by Vite into static files in CI and served by the existing container under `/ui`. Cytoscape.js draws the graph, oidc-client-ts signs people in, and API types come from the OpenAPI contract. Node is needed only to build. | [M10](#m10--browser-interface), 1 December 2026 |
|
|
280
|
+
| Browser sign-in and role mapping | The OpenID Connect authorization code flow with PKCE, with RS256 JWT access tokens for GLineage's audience. Group claims map to grants, and tokens stay in memory. | [M10](#m10--browser-interface), 1 December 2026 |
|
|
281
|
+
| Who signs people in to the pilot | GLineage trusts more than one issuer. The pilot keeps its token issuer for producers and monitors, and adds an OpenID Connect provider for people: the enterprise provider if one is available, or a self-hosted one. | [M10](#m10--browser-interface), 1 December 2026 |
|
|
282
|
+
| Interface scope | Read-first, plus report preview and issuance. Registry writes stay in the CLI and API. | [M10](#m10--browser-interface), 1 December 2026 |
|
|
283
|
+
| Accessibility standard | WCAG 2.2 AA for core screens, usable with a keyboard alone. A table lists the graph's edges. | [M10](#m10--browser-interface), 1 December 2026 |
|
|
284
|
+
| Self-hosted sign-in for the pilot | If the enterprise identity provider can't register a public client for GLineage in time, the pilot runs Keycloak, pinned by digest, beside the service. | [M11](#m11--pilot-validation-and-release-020), 1 December 2026 |
|
|
285
|
+
| Publication and repository visibility | The repository becomes public at `0.2.0`. The package is `glineage` on PyPI and the image `ghcr.io/arrufus/glineage`, both published from CI. M11 claims both names before the pilot. | [M11](#m11--pilot-validation-and-release-020), 1 December 2026 |
|
|
286
|
+
| Support after `0.2.0` | `0.2.x` receives security and correctness fixes for six months. The README names the maintainer before `0.2.0` is published. | [M11](#m11--pilot-validation-and-release-020), 1 December 2026 |
|
|
287
|
+
| OpenLineage community review | After the pilot validates, with its evidence of the facets in use, and no later than `0.2.0` | [M11](#m11--pilot-validation-and-release-020), 1 December 2026 |
|
|
288
|
+
|
|
289
|
+
The product owner also confirmed the design choices in the [M7 plan](docs/m7-contract-registry-plan.md#design-choices), the [M8 plan](docs/m8-schema-drift-attributes-plan.md#design-choices), the [M9 plan](docs/m9-classification-adoption-plan.md#design-choices), the [M10 plan](docs/m10-browser-interface-plan.md#design-choices) and the [M11 plan](docs/m11-pilot-validation-release-plan.md#design-choices).
|
|
290
|
+
|
|
291
|
+
## Decisions needed
|
|
292
|
+
|
|
293
|
+
| Decision | Recommendation | Owner | Needed before |
|
|
294
|
+
| --- | --- | --- | --- |
|
|
295
|
+
| Pilot source, monitor, period, workload, retention and host | Confirm or replace the [M6 proposals](docs/m6-pilot-readiness.md#pilot-decisions). Choose a source that already emits OpenLineage with column lineage, so M8 has evidence to check, and state how often people and dashboards read reports. | Pilot owner | M11 step 5 |
|
|
296
|
+
| Pilot targets | Keep the M6 proposals, and add page loads within 2 s at p95, or 4 s on a first open, and a rebuild of the pilot's ledger within 30 minutes. | Pilot owner | M11 step 5 |
|
|
297
|
+
| Interface feedback | Two to four stewards and reviewers from the pilot's teams, each in a 45-minute session in the pilot's third week | Pilot owner | M11 step 6 |
|
|
298
|
+
| The maintainer for `0.2.x` | Name them in the README. | Product owner | M11 step 7 |
|
|
299
|
+
|
|
300
|
+
## Risks
|
|
301
|
+
|
|
302
|
+
| Risk | Effect | Mitigation |
|
|
303
|
+
| --- | --- | --- |
|
|
304
|
+
| Pilot emitters rarely send column lineage | Attribute checks stay *unknown* on most edges | Choose the pilot source for column evidence. Report the share of edges where each check could be evaluated, as coverage is reported now. |
|
|
305
|
+
| ODCS changes during the phase | Adapter rework | Pin the supported version and record the adapter version on every result. |
|
|
306
|
+
| Contract documents contain sensitive terms | Wider exposure through reader access | Store documents under operator-only reads until fine-grained read controls arrive in Phase 5. Expose only parsed schema and classification to readers. |
|
|
307
|
+
| Contract checks drift toward contract testing | Scope creep into a non-goal | Compare only observed schema and attributes with the contract. Data quality and contract tests stay in other tools. |
|
|
308
|
+
| The interface grows into a catalogue | GLineage is seen as another catalogue, the risk the concept definition names | Hold the screen list above. Send search and asset documentation to catalogues through export in Phase 4. |
|
|
309
|
+
| The interface computes results differently from the API | Two answers to one question | Render only API documents. Contract tests compare the browser's figures with the API for the same report ID. |
|
|
310
|
+
| A second toolchain in a Python project | Slower builds and a wider maintenance surface | Pin the toolchain, build static files in CI, and generate API types from the OpenAPI contract. |
|
|
311
|
+
| Browser sign-in weakens security | Token theft through cross-site scripting or storage | PKCE, a single origin, a Content Security Policy, short-lived tokens held in memory, and no tokens in URLs. |
|
|
312
|
+
| Large graphs render slowly or unreadably | Poor first impression | Default to one environment, offer neighbourhood views and paging, and include graph load times in the pilot targets. |
|
|
313
|
+
| The pilot slips | Phase 2 cannot close | M7–M10 proceed on conformance fixtures and the reference workload. Release `0.2.0` waits for M11. |
|
|
314
|
+
|
|
315
|
+
## After Phase 2
|
|
316
|
+
|
|
317
|
+
The specification orders the remaining work. Phase 2 has brought forward the foundation for Phase 4's views and the browser part of Phase 5's sign-in. The pilot should confirm the order before each later phase starts, especially whether agreement import (Phase 6) should come sooner. The concept definition names unregistered agreements and uninstrumented pipelines as the main adoption risks.
|
|
318
|
+
|
|
319
|
+
```mermaid
|
|
320
|
+
flowchart LR
|
|
321
|
+
P2["Phase 2<br/>Pilot, contract-aware<br/>reconciliation, browser interface"] --> P3["Phase 3<br/>Boundary and warehouse<br/>harvesters"]
|
|
322
|
+
P3 --> P4["Phase 4<br/>Impact and consumer views,<br/>policy checks, catalogue export"]
|
|
323
|
+
P4 --> P5["Phase 5<br/>Read controls, audit,<br/>history queries"]
|
|
324
|
+
P5 --> P6["Phase 6<br/>Adapters, import<br/>connectors, scale-out"]
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
| Phase | Scope from the specification | Entry condition |
|
|
328
|
+
| --- | --- | --- |
|
|
329
|
+
| 3 · Boundary and warehouse harvesters | A transfer-gateway harvester and an external transfer register, then a warehouse harvester. The same ingest records on-demand and summarized application observations. The external transfer register appears in the browser interface. | Release `0.2.0`. A pilot boundary interface with a readable transfer log. |
|
|
330
|
+
| 4 · Impact and consumer views, policy checks and catalogue export | Impact analysis and the consumer register, built on the Phase 2 interface. Policy checks for CI and schedules, and catalogue export of runtime observations. An optional declared-lineage export, off by default. | Interface feedback from the pilot. Classification from Phase 2, which policy checks such as "no personal data through an outbound boundary" depend on. |
|
|
331
|
+
| 5 · Read controls, audit and history | Fine-grained read controls, read auditing and tamper-evident log verification, extending Phase 2's sign-in. Historical queries by event time and knowledge time. Endpoint merges and decommissioning, which close active agreements. | A deployment with more than one reader community. |
|
|
332
|
+
| 6 · Adapters, import connectors and scale-out | Custom contract adapters, and agreement import from Data Usage Agreement Specification documents and Open Data Product Standard input ports. Scaling from PostgreSQL replicas to partitioned storage, queue-based ingest and an optional graph backend. | The adapter interface from Phase 2. A workload that exceeds the measured single-database limits. |
|
|
333
|
+
|
|
334
|
+
The concept definition leaves one question for Phase 6: whether the Data Usage Agreement Specification becomes GLineage's file format or stays an import format beside its own.
|