Maintaining and Monitoring Data Products

Once data products are published and serving consumers, ongoing monitoring and governance become critical. Observe is the cross-cutting runtime surface; product access stays with Products, semantic maintenance lives in Meaning, decisions arrive in Inbox, and organization-wide policy lives in Organization.

Observe

The Observe subsection gives you visibility into what is happening across your data layer at runtime.

Catalog and Lineage

View the full lineage graph for any data product to understand upstream dependencies and downstream consumers:

{ "operation": "get_lineage_impact", "data_product_id": "<data-product-uuid>" }

Lineage is computed automatically from workflow graph connections. When a source product changes schema or degrades in quality, lineage helps you identify every affected consumer downstream.

Trace

Trace individual records through the processing pipeline to debug transformation issues or verify data flow. Read events from a specific data product's queue:

{ "operation": "read_queue_events", "data_product_id": "<data-product-uuid>", "count": 10 }

You can also search for specific content within events:

{
  "operation": "read_queue_events",
  "data_product_id": "<data-product-uuid>",
  "search_text": "ORD-2025-1234",
  "count": 5
}

Replay

Replay events through a data product's pipeline to reprocess historical data (e.g., after a bug fix or schema change):

{
  "operation": "replay_events",
  "data_product_id": "<data-product-uuid>",
  "from_timestamp": "2025-06-01T00:00:00Z",
  "limit": 100
}

Replay re-emits events for reprocessing — use with care in production as it triggers downstream workflows.

System Graph

The system graph shows runtime entities (bots, queues, deployments) and their relationships. Use it to understand the operational topology underpinning your data products.

Metrics

Metrics surfaces aggregate quality, audit, compliance, and privacy indicators.

Quality Metrics

Monitor the pass rate of quality rules attached to each data product over time. A declining quality score often signals upstream schema drift or connector issues:

{ "operation": "get_quality_score", "data_product_id": "<data-product-uuid>" }

Audit Log

Every mutation to data product configuration, schema changes, and access grants is recorded in the audit log. Retrieve the product's current quality and freshness evidence with loxtep_observe:

{ "operation": "get_evidence", "data_product_ids": ["<data-product-uuid>"] }

Compliance and Privacy

PII-tagged fields are tracked across lineage. Verify that downstream consumer products correctly mask or redact sensitive data:

{ "operation": "get_governance_flags", "data_product_id": "<data-product-uuid>" }

Access

Access governance uses contracts and requests to control who can consume data products.

Contracts

A delivery grant gives a consumer data product (or external system) permission to read from a source. List grants with loxtep_build:

{
  "operation": "list_delivery_grants",
  "data_product_id": "<data-product-uuid>",
  "status": "active"
}

Request Workflow

When a consumer needs access to a data product they do not yet have a grant, they submit an access request. The data product owner reviews and approves or rejects it through loxtep_define:

{
  "operation": "create_access_request",
  "resource_type": "data_product",
  "resource_id": "<data-product-uuid>",
  "access_type": "consume",
  "justification": "Monthly revenue reporting"
}

Insights and Alerts

Process intelligence surfaces anomalies and trends that manual inspection would miss.

Process Intelligence

Query a known entity's context to understand its operational history and state:

{ "operation": "query_entity_context", "entity_type": "order", "entity_id": "ORD-2025-1234" }

Review decision traces to understand why the system made specific routing or transformation choices:

{
  "operation": "list_decision_traces",
  "correlation_key": "data_product_id",
  "correlation_value": "<data-product-uuid>"
}

Threshold Alerts

Configure alerts that fire when metrics cross defined thresholds. Common alert patterns include:

  • Quality score drops below your organization's alerting threshold (distinct from the promotion gate threshold below — set this to whatever gives you early warning before a product is at risk of losing Ready status)
  • Ingestion latency exceeds SLA (e.g., records older than 1 hour)
  • Consumer contract utilization spikes unexpectedly
  • PII exposure detected in an untagged field

Note: the quality-rules promotion gate evaluates each effective blocking rule against that rule's threshold (for example, seeded standard completeness is 90 and uniqueness is 95; standard freshness is 48 hours, strict freshness is 4 hours). Unmeasured blocking rules pass Ready (awaiting_live_measurement). See Readiness Operations for the evaluator. A Ready product whose measured blocking scores regress below their thresholds is caught automatically by the scheduled readiness re-evaluation sweep, which quarantines it back to a non-Ready tier and notifies the owner through the inbox — you do not need a manual alert rule to catch that specific regression, only to get an earlier heads-up before it happens.

Meaning Monitoring

The Meaning area helps maintain the accuracy of the semantic layer over time.

Semantic Completeness

Check how well your data layer is covered by semantic definitions:

{ "operation": "get_semantic_completeness", "domain_id": "<domain-uuid>" }

A completeness score below target indicates data products or fields that lack semantic annotations, making them harder for AI tools and catalog search to discover.

Vocabulary Drift

As business terminology evolves, the ontology and thesaurus should keep pace. Periodically review unresolved canonical keys:

{ "operation": "resolve_canonical_key", "key_or_alias": "cust_email" }

If resolution fails, the field name does not map to any known concept — add a thesaurus alias or create a new ontology concept.

Operating Runtime Entities

Data products are backed by runtime infrastructure: bots that run transformation logic, queues that buffer events, and deployments that bind projects to instances.

View Runtime Status

Check the queue depth and processing lag for a data product's backing infrastructure:

loxtep queue info dp_orders

Reindex After Changes

After significant schema or workflow changes, reindex the workspace to ensure all catalog entries, search indexes, and lineage graphs reflect the current state (illustrative payload — not run against a live org):

{
  "operation": "reindex_workspace",
  "project_id": "11111111-1111-4111-8111-111111111111",
  "instance_id": "22222222-2222-4222-8222-222222222222"
}

project_id is required. Optional instance_id selects the workspace bucket (recommended for multi-instance orgs; omit only when unambiguous).

Deployment Status

Verify that the latest workflow changes are deployed and running:

loxtep deployments list --project-id <project-uuid> --status active

If a deployment shows errors, check the runtime mapping to identify which workflow step failed:

{ "operation": "get_runtime_mapping", "workflow_id": "<workflow-uuid>" }