feat(graph): POST /graph/project for pre-typed entity/relation projection - #246
Merged
Conversation
…tion (#235) Add a deterministic projection ingestion path so an external projector (research-graph Layer 1) can write typed facts with GRAPH_DOC_EXTRACTOR=none and no LLM/AST extraction. - POST /graph/project upserts {entities, relations, source_tag}; replace=true deletes prior facts with that tag first - DELETE /graph/project?source_tag= for a clean rebuild - Namespaced types (okf:Claim) and extra snake_case predicates (asserts) are accepted alongside SCHEMA-01/03; GET /graph/entity accepts the same - Writes run through spawn isolation so a kuzu crash cannot take down the server (#178)
RichardHightower
had a problem deploying
to
ci-testing
September 3, 2026 17:47 — with
GitHub Actions
Failure
RichardHightower
temporarily deployed
to
ci-testing
September 3, 2026 19:26 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements #235: a projection ingestion path so research-graph (and any other projector) can write pre-typed entities and relations into the property graph with no LLM/AST extraction.
This is Gap A / Phase B from
docs/plans/research-graph-make-it-real.md. Projector logic stays in the consumer; Agent Brain only accepts explicit facts.API
replace=true/DELETE /graph/project?source_tag=— delete-by-tag so destroy-and-rebuild is deterministic and does not wipe SCHEMA-01 extraction output.okf:Claim) and extra snake_case predicates (asserts,evidenced_by) are accepted alongside SCHEMA-01/03. Invented un-namespaced types still 400.GET /graph/entity/okf:Finding/{id}accepts the same vocabulary so the typed spine is traversable.project_isolated), same SIGSEGV in kuzu::NodeTable::lookupPK during sustained GraphRAG indexing (v10.0.7) #178 contract asbuild_from_documents_isolated. A kuzu-native crash is503 kuzu_unavailable, not a dead server.ENABLE_GRAPH_INDEX/graphrag.enabled. No extractor is invoked.Tests
tests/unit/api/test_graph_project_endpoint.pyplus namespaced-type coverage onGET /graph/entitytests/unit/storage/test_graph_project.py(simple backend: spine, idempotent reproject, replace, tag isolation)tests/indexing/test_graph_project_isolation.py(SIGSEGV-class child exit)Verified locally against
SimplePropertyGraphStore: Finding→asserts→Claim→evidenced_by→Evidence round-trips, delete-by-tag spares untagged SCHEMA-01 nodes, replace rebuild converges.Closes #235.