Skip to content

feat(nodes, ai): add graph base class; make FalkorDB a real graph node (stage) - #1599

Merged
dsapandora merged 1 commit into
stagefrom
release/graph-base-class-stage
Jul 15, 2026
Merged

dsapandora merged 1 commit into
stagefrom
release/graph-base-class-stage

Conversation

@dsapandora

Copy link
Copy Markdown
Collaborator

Summary

  • Release cherry-pick of the graph base-class work onto stage — single squashed commit 04f9dac3, identical to the develop PR feat(nodes, ai): add graph base class; make FalkorDB a real graph node #1584 (approved by @dylan-savage; @asclearuc review addressed).
  • Adds GraphGlobalBase/GraphInstanceBase under ai/common/graph/, renames tool_falkordb → graph_falkordb and makes it a real graph node (questions lane + get_data/get_query/execute/get_schema/dialect), and adds the graph classType.
  • Read-only enforced server-side (FalkorDB GRAPH.RO_QUERY); honest truncated; neither the tool path nor the lane path emits broken/unsafe Cypher as a prose answer.

Type

feature (+ refactor: node rename)

Testing

  • Tests added or updated (nodes/test/test_graph_falkordb.py, 38 tests)
  • Tested locally (./builder nodes:test → 1647 passed / 0 failed on the source branch; node tests green after cherry-pick onto stage)
  • ./builder test passes

Checklist

  • Commit messages follow conventional commits
  • No secrets or credentials included
  • Wiki updated (if applicable)
  • Breaking changes documented (if applicable) — renaming the provider is breaking for saved pipes, which update when the new services.json ships. Neo4j is intentionally untouched (separate PR).

Linked Issue

Fixes #1583


Tracks the develop PR: #1584. This branch is the same squashed commit cherry-picked onto stage for the release, with no unrelated develop commits pulled in.

FalkorDB was classified as a vector store without implementing store
behaviour, so it could not be wired into a pipeline. Give graph databases a
proper home instead of overloading the database base.

- Add GraphGlobalBase / GraphInstanceBase under ai/common/graph/, mirroring
  ai/common/database/: lifecycle, config parsing, schema reflection, and the
  NL->query loop (LLM -> EXPLAIN validate -> repair on error). Read-only is
  enforced by the engine (FalkorDB GRAPH.RO_QUERY), with is_cypher_safe as
  defence-in-depth only.
- Rename tool_falkordb -> graph_falkordb and derive it from the base: it gains
  the questions lane (table/text/answers) plus get_data/get_query/execute/
  get_schema/dialect tools, and keeps its FalkorDB-specific query/list_graphs.
- Add the 'graph' classType (UI placement) and a Graph Databases docs section.
- get_data clamps the caller limit to the driver read cap and asks for limit+1
  rows, so 'truncated' is honest; get_data/get_query/execute normalise the
  input envelope and validate via ai.common.utils; isValid parsed with
  parse_bool; sanitise/format helpers kept in step with db_instance_base.
- Neither the tool path (get_query) nor the lane path (writeQuestions) emits a
  broken or unsafe query as a prose answer; both surface an error instead.

Neo4j is intentionally left untouched; migrating it onto this base is the
next PR. Renaming the provider is breaking for saved pipes, which update when
the new services.json ships.

Co-authored review by @asclearuc and @dylan-savage.
@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (2)
  • develop
  • release/.*

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 79666eb1-bb34-414f-b912-c5e4d29cedbf

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch release/graph-base-class-stage

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor
🤖 Internal: Discord sync marker

Auto-managed by the Discord notification workflow. Stores the linked Discord message ID and forum thread ID. Do not edit or delete.

@github-actions github-actions Bot added docs Documentation builder Node builder tooling and ./builder workflows labels Jul 15, 2026
@dsapandora
dsapandora merged commit 7335bd5 into stage Jul 15, 2026
34 checks passed
@dsapandora
dsapandora deleted the release/graph-base-class-stage branch July 15, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builder Node builder tooling and ./builder workflows docs Documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant