In this article

A diagram connects a customer to a subscription, the subscription to a deployed product, and the product to a service that is about to be retired. It looks as though the graph has answered the question: this customer is affected.

Look more closely at the last relationship. Does it mean the product requires the service, can optionally use it, or once used it in an older configuration? The path exists in all three cases. The conclusion does not.

Only a current, required dependency enters the derivation used in this example. Whether the customer experiences disruption depends on additional evidence.

This is where I would separate representing relationships from specifying what follows from them. A graph makes connections available to computation. A reasoning model gives particular combinations of facts an explicit interpretation. That interpretation needs to be designed, tested and maintained just as carefully as the stored data.

Make one useful deduction precise

Consider a fictional service-retirement investigation. For the moment, assume that we have selected one consistent configuration snapshot and that every requires fact describes a genuine required dependency within it. We are not yet modeling optional features, time or planned changes.

A deployment of Product P requires Gateway G. Gateway G requires the retiring Service L. P's dependency on L follows from the source facts and rules; it does not need to be entered as a separate source fact. An implementation may compute it on demand or retain it as derived data.

Two Datalog-style rules express the closure:

depends_on(X, Y) :- requires(X, Y).
depends_on(X, Z) :- requires(X, Y), depends_on(Y, Z).
Two source facts and two rules. P's dependency on L follows from them and does not need to be entered as a separate source fact; an implementation may compute it on demand or retain it as derived data.

Read :- as “if”. The first rule includes direct requirements. The second combines a direct requirement with a dependency already established. Applying the rules repeatedly discovers longer chains. This is a logical sketch; a concrete Datalog implementation also needs its declarations and data-loading details.

The mechanism matters more than the syntax. With positive, function-free Datalog over finite input, there are only finitely many possible ground facts. Under set semantics, deriving the same fact again does not add another copy, and evaluation reaches a fixed point. Cycles in the input do not, by themselves, defeat that termination property. Extensions that generate an unbounded supply of new values require separate analysis.

Now the application can ask for installations whose selected configuration depends on L. The result is a derived relation that another query, report or agent can use. It is not merely a paragraph describing a path.

The predicate name carries an engineering commitment

It would be a mistake to call the result customer_will_lose_service. The rules establish a dependency under our stated model. Actual disruption might also depend on failover, the retirement plan or an accepted replacement configuration.

For this investigation, I would call it requires_migration_review or return the dependency explicitly. A later decision can establish whether the exposure has been addressed. That keeps technical evidence separate from operational judgment.

This may sound like careful naming, but it changes the system's behavior. If a rule returns a broad business conclusion, its consumers may never know which assumptions were omitted. A narrower derived relation can be composed with other evidence without pretending to have answered a question beyond its scope.

The same issue arises with organization hierarchies. Being a subsidiary is not sufficient to inherit every entitlement held by a parent company. The agreement has to provide for that inheritance. A reasoning system should express the actual condition, rather than treating every relationship that sounds hierarchical as universally transitive.

A proof is conditional on its premises

An explicit derivation can tell us which facts and rules support a result. Soufflé's provenance facility, for example, can explain derived tuples through proof trees.

That is valuable, but it is not proof that the source facts describe the world correctly. If an imported configuration falsely states that the gateway requires L, the derivation can be logically correct and operationally wrong. The explanation helps locate the false premise; it does not make the premise true.

A proof tree shows how the conclusion follows from accepted facts. It does not show why those facts were accepted. Both records are kept, and promoting a proposed fact into the accepted relation is a separate operation.

I would therefore preserve two kinds of evidence. One records how the conclusion follows from the accepted facts. The other records why the system accepted those facts: the source record, its scope, the mapping and any review of an extracted claim.

A model can help interpret an ambiguous configuration document or propose a missing relationship. That proposed fact should retain its evidential status. Promoting it into the accepted relation is a separate operation from deriving consequences after it has been accepted.

This division is useful for stronger models as well. An agent can investigate a missing premise, compare competing interpretations and propose a rule change. It need not reconstruct already agreed deductions differently in every conversation.

“There is no migration record” is not yet a conclusion

Suppose we want to exclude installations that have completed migration. The tempting rule is to select installations with a dependency and no migration record.

That works only under an appropriate completeness assumption. Perhaps the migration source covers this installation population and we know the selected snapshot is complete. Perhaps it is unavailable, delayed or inaccessible to the current caller. All can produce an empty lookup, but they do not justify the same result.

I would make the completeness boundary part of the evaluation context. Where it is absent, the system should retain an unresolved case instead of interpreting absence as a business fact. Where it is present, an absence-based rule can be useful and precisely scoped.

This is one reason reasoning technologies are not interchangeable. OWL's open-world semantics do not generally equate an unasserted fact with a false one. Datalog systems that support stratified negation can evaluate absence-based conditions over specified relations, but that evaluation does not establish that the relations contain all relevant real-world facts.

Formal semantics tell us what the computation means. Source governance and the application contract determine whether that meaning is appropriate for the task.

Updating a conclusion is harder than deriving it once

Now give Product P two independent required paths to L: one through Gateway A and another through Gateway B. The dependency is supported by either path. If we remove A's requirement on L, P still depends on L through B.

An explanation containing the first path is enough to demonstrate one reason for the result. It is not enough to decide whether the result survives deletion of that path. A maintenance mechanism must check for other support or recompute the affected conclusion.

Left: removing one supporting path does not remove the conclusion while another grounded path remains, and an explanation of one path is not a complete update-maintenance strategy. Right: previously derived facts must not keep one another alive after their last grounded support disappears.

Recursion adds another trap. Suppose A and B require each other, but their last grounded connection to L is removed. Their old derived dependencies on L must not keep one another alive indefinitely. A circular reference among previously derived facts is not a replacement for support from the remaining input.

These are established problems in maintaining Datalog materializations. Research on deletion and rederivation distinguishes general recursive maintenance from simpler counting approaches that only work under narrower conditions.

For a small workload, recomputing the relevant closure may be the most dependable engineering choice. For a larger one, incremental maintenance can justify its complexity. I would measure both with corrections and deletions, not just with a growing set of clean facts.

Choose the machinery for the deductions you need

None of this requires every application to deploy a general-purpose reasoner. A well-defined SQL query or application service may implement a small rule set adequately. The important question is whether the meaning is explicit, shared where needed and testable independently of generated prose.

A dedicated reasoning component becomes more interesting when many rules compose, recursion is central, explanations need systematic support, or changes require maintaining a substantial set of derived relations. Even then, the permitted language and its evaluation behavior deserve a deliberate choice. “Supports rules” is not a sufficient specification.

For an agent, this architecture creates useful building blocks. It can ask which installations depend on L, inspect a supporting path, discover that migration evidence is incomplete, and investigate the missing source. It can also compare an alternative configuration without overwriting the accepted one.

The graph supplies relationships. The reasoning component supplies defined consequences. The agent can use both to investigate questions that would otherwise require rebuilding the domain logic during the conversation. Each component has a job we can inspect when the answer changes.

Sources and scope · 18 September 2026
  • Soufflé documentation, Rules.
  • Soufflé documentation, Tutorial, on pure Datalog, recursive closure and extensions that can affect termination.
  • Soufflé documentation, Provenance.
  • W3C, OWL 2 Primer, on open-world semantics.
  • Soufflé documentation, Rules, on stratified negation.
  • Pan Hu, Boris Motik and Ian Horrocks, Optimized Maintenance of Datalog Materialisations.
  • The service-retirement scenario, its installations, gateways and service L are a worked example, not a client case study. The closure and deletion cases are small logical examples; no proof-assistant verification is claimed.