You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Datalog rule bodies silently ignore ["not-exists", …] — rules derive as if the negation weren't there #1786
P1Next up: wrong results, live user pain, unblocksarea:transactStaging, commit, import/bulk-import, novelty, retraction semanticsbugSomething isn't working as expected
The JSON-LD query docs present ["not-exists", {…}] as a
where-clause pattern, and datalog rule bodies are documented as "FQL where".
In query position not-exists works; inside a RULE body (query-time rules,
stored f:rule, and cross-ledger f:rulesSource) it is silently ignored —
no error, the rule simply fires as if the clause were absent.
Repro (fluree 4.1.6, local CLI, any ledger with three nodes typed
ex:Qualification where exactly two have ex:posture "own"):
Expected: only the node without posture "own". Actual: all three derive.
Multiple not-exists clauses behave the same. Positive patterns and
["filter", …] in the same body work correctly.
Expected behavior: either correlated negation support (with stratification
guard) or a LOUD rejection of not-exists in rule bodies. Silent dropping is
the worst outcome — derivations are wrong with no signal. (We hit this
compiling first-match rank semantics; workaround: closed-world complement
facts, viable only because our vocabulary is closed.)
Related: #1781/#1782/#1783 (same audit family, different subsystem).
P1Next up: wrong results, live user pain, unblocksarea:transactStaging, commit, import/bulk-import, novelty, retraction semanticsbugSomething isn't working as expected
Activity
Close four holes in the rule-body monotonicity contract
Rules see claims: executor-backed datalog, Turtle-star on every write…