Skip to content

feat: query layer additions (spec 11)#37

Merged
DarlingtonDeveloper merged 1 commit into
mainfrom
feat/query-layer-additions
Mar 15, 2026
Merged

feat: query layer additions (spec 11)#37
DarlingtonDeveloper merged 1 commit into
mainfrom
feat/query-layer-additions

Conversation

@DarlingtonDeveloper
Copy link
Copy Markdown
Contributor

Summary

  • NodeFilter::valid_at(DateTime) — filter nodes by temporal validity window (valid_from/valid_until)
  • NodeFilter::with_metadata(key, Value) — filter by metadata key-value pairs with AND semantics
  • Query DSL extensionsvalid_at:, expires_before:, and meta.key:value syntax
  • HybridSearch temporal awarenessHybridQuery.valid_at excludes temporally invalid nodes from vector+graph results
  • count_nodes fast-path updated to fall back correctly when new filters are set

Test plan

  • valid_at excludes nodes with valid_until in the past
  • valid_at excludes nodes with valid_from in the future
  • valid_at includes nodes without temporal fields (evergreen)
  • with_metadata filters by single key-value pair
  • Multiple with_metadata calls combine with AND semantics
  • Query DSL parses valid_at:7d, expires_before:30d, meta.entity_type:company
  • Query DSL compiles new fields to correct NodeFilter values
  • meta.:value (empty key) rejected with parse error
  • All 362 existing tests pass unchanged

🤖 Generated with Claude Code

…and DSL extensions (spec 11)

NodeFilter gains valid_at and metadata_match fields so agents can query
facts true at a specific time and filter by metadata key-value pairs.
The query DSL now parses valid_at:, expires_before:, and meta.key:value
syntax. HybridSearch excludes temporally invalid nodes when valid_at is
set on the query.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@DarlingtonDeveloper DarlingtonDeveloper merged commit b942827 into main Mar 15, 2026
@DarlingtonDeveloper DarlingtonDeveloper deleted the feat/query-layer-additions branch March 15, 2026 17: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