Skip to content

feat: add safe relationship existence filters - #35

Merged
meaningforger merged 1 commit into
mainfrom
codex/relationship-existence-filter
Oct 9, 2026
Merged

meaningforger merged 1 commit into
mainfrom
codex/relationship-existence-filter

Conversation

@meaningforger

Copy link
Copy Markdown
Contributor

Summary

  • add the RFC-0092 exists predicate for one-hop relationship membership
  • carry target-only membership through Resolver, SemanticPlan, SQLPlan, policies, explain, and all renderers
  • add a discriminating shared result oracle for SUM/COUNT/AVG plus README and contract documentation

Safety boundary

  • one positive existence conjunct at the root or root AND only
  • target-side non-time dimensions only; no target projection/grouping/ordering
  • no temporal, nested, multiple, conversion, semi-additive, or attribution existence shape
  • ordinary fanout admission remains unchanged

Verification

  • go test -p 4 ./...
  • go vet ./...
  • make fmt-check
  • make docs-check
  • local tagged DuckDB execution could not run because the pinned DuckDB bindings do not contain darwin/amd64 files; the PR CI and explicit real-engine matrix provide Linux execution evidence

@meaningforger
meaningforger merged commit 1787c43 into main Oct 9, 2026
5 checks passed
@meaningforger
meaningforger deleted the codex/relationship-existence-filter branch October 9, 2026 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant