Process Intelligence
Process intelligence is the observability layer that answers not just what happened to data, but why and how. It tracks entity context across systems, records decision traces for audit and debugging, and models multi-step processes as executable graphs. This is also part of the shared context your AI agents draw on to stay grounded.
Entity Context
Entity context captures the full lifecycle and state of a business entity as it moves through your data layer. Rather than tracking individual records in isolation, entity context links related events, transformations, and decisions into a coherent narrative.
What Entity Context Captures
For each tracked entity (customer, order, product, subscription):
- Current state — the latest known attributes across all data products.
- History — how the entity's state evolved over time.
- Relationships — links to other entities (customer → orders, order → products).
- Processing history — which workflows touched this entity and what they did.
- Decision outcomes — what governance or quality decisions affected this entity.
Querying Entity Context
Retrieve the full context for a specific entity:
{ "operation": "get_entity_context", "entity_type": "customer", "entity_id": "cust_789" }
Retrieve another entity when you know its type and identifier:
{ "operation": "query_entity_context", "entity_type": "customer", "entity_id": "cust_789" }
Entity context queries leverage the Knowledge Graph when data products are Ready, enabling relationship-based traversal that goes beyond simple attribute lookup.
Decision Traces
Decision traces record the reasoning chain behind automated and semi-automated decisions made during data processing. They provide an audit trail that explains why a particular outcome occurred.
Types of Decisions Traced
- Quality rule outcomes — why a record was accepted or rejected.
- Entity resolution matches — why two records were (or were not) merged.
- Readiness reviews — the reasoning behind In Progress/Ready approvals.
- Governance flags — why a compliance warning was raised.
- Workflow routing — which branch of a workflow graph was taken and why.
Recording Decision Traces
Decision traces are recorded automatically by the platform during processing, and can also be recorded explicitly by custom workflow logic:
{
"operation": "record_decision_trace",
"decision_id": "entity-resolution-cust-789",
"procedure_id": "customer-resolution",
"inputs": { "entity_id": "cust_789", "evidence": ["email_match", "phone_match"] },
"outcome": "merged",
"rationale": "Email and phone matched",
"actor": "customer-resolution-bot",
"timestamp": "2025-01-15T10:30:00Z"
}
Querying Decision Traces
List decision traces to understand processing history:
{
"operation": "list_decision_traces",
"correlation_key": "customer_id",
"correlation_value": "cust_789"
}
Decision traces support:
- Debugging — understanding why a record ended up in an unexpected state.
- Compliance — proving that automated decisions followed defined rules.
- Improvement — identifying patterns in decision outcomes that suggest rule refinements.
Process Graphs
Process graphs model multi-step data processes as executable, version-controlled graphs. They capture the intended flow of data and decisions at a higher level than individual workflows.
Process vs. Workflow
| Aspect | Process graph | Workflow |
|---|---|---|
| Level | End-to-end (spans projects) | Operational (single project) |
| Scope | Full business process | Single data transformation |
| Versioning | Independent, declarative | Deployed to instances |
| Execution | Orchestrates workflows | Executes transformations |
A process graph might model the complete "order-to-fulfillment" flow spanning multiple projects and data products. Individual workflows implement the specific transformations at each step.
Defining Process Graphs
Process graphs are defined as directed acyclic graphs of procedures, where each procedure represents a step in the process:
{
"operation": "create_procedure",
"organization_id": "<organization-uuid>",
"name": "order-to-fulfillment",
"status": "draft",
"steps": [
{
"step_id": "receive_order",
"name": "Receive order",
"order": 0,
"next_steps": ["validate_payment"]
},
{
"step_id": "validate_payment",
"name": "Validate payment",
"order": 1,
"next_steps": ["allocate_inventory"]
},
{
"step_id": "allocate_inventory",
"name": "Allocate inventory",
"order": 2,
"next_steps": ["notify_customer"]
},
{ "step_id": "notify_customer", "name": "Notify customer", "order": 3 }
]
}
Process Dependencies
Understand the dependency graph between processes to assess impact and plan changes:
{ "operation": "get_procedure_dependencies", "procedure_id": "proc_order_fulfillment" }
Integration with the Knowledge Graph
Once a product is Ready, process intelligence data flows into the Knowledge Graph, enabling:
- Cross-entity queries — "Show me all customers whose orders triggered quality failures last week."
- Process optimization — identify bottlenecks by querying decision trace patterns.
- Compliance reporting — generate audit reports by traversing entity contexts and decision traces.
Observability Dashboard
The Observe dashboard provides real-time visibility into process health:
- Bot status — which processing bots are running, stalled, or errored.
- Queue metrics — depth, throughput, and consumer lag per queue.
- Decision summaries — aggregated outcomes from quality rules and entity resolution.
- Entity flow — visual representation of entity journeys through your data layer.
Refresh the workspace index through loxtep_workspace after material changes
(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).
AI-Assisted Process Analysis
The AI assistant can leverage entity context and decision traces to answer operational questions:
- "Why was this customer's order rejected?"
- "What changed in the billing process since last Tuesday?"
- "Which entities are stuck in the validation step?"
These questions are answered by combining Knowledge Graph traversal (Ready-stage data), decision trace queries, and entity context lookups into coherent explanations.
Demo walkthrough (Context Graph → Decision Intelligence)
For a scripted Knowledge Explorer–style path — entity context → decision
traces → causal chain → enterprise semantic override → catalog Data Product —
see the repo GTM pack docs/gtm/knowledge-explorer-walkthrough.md (GIF + MP4
included). Use hosted MCP only (https://mcpdev.loxtep.io/ai/mcp/stream or
prod) — never local stdio MCP.