trustgraph/trustgraph-flow/trustgraph
cybermaggedon bb1109963c
Remove spurious workspace parameter from SPARQL algebra evaluator (#915)
Fix threading of workspace paramater:
- The SPARQL algebra evaluator was threading a workspace parameter
  through every function and passing it to TriplesClient.query(),
  which doesn't accept it. Workspace isolation is handled by pub/sub
  topic routing — the TriplesClient is already scoped to a
  workspace-specific flow, same as GraphRAG. Passing workspace
  explicitly was both incorrect and unnecessary.

Update tests:
- tests/unit/test_query/test_sparql_algebra.py (new) — Tests
  _query_pattern, _eval_bgp, and evaluate() with various algebra
  nodes. Key tests assert workspace is never in tc.query() kwargs,
  plus correctness tests for BGP, JOIN, UNION, SLICE, DISTINCT, and
  edge cases.
- tests/unit/test_retrieval/test_graph_rag.py — Added
  test_triples_query_never_passes_workspace (checks query()) and
  test_follow_edges_never_passes_workspace (checks query_stream()).
2026-05-14 12:03:43 +01:00
..
agent Per-flow librarian clients and per-workspace response queues (#865) 2026-05-06 12:01:01 +01:00
bootstrap Per-flow librarian clients and per-workspace response queues (#865) 2026-05-06 12:01:01 +01:00
chunking Per-flow librarian clients and per-workspace response queues (#865) 2026-05-06 12:01:01 +01:00
config/service Recent fixes -> release/v2.4 (#891) 2026-05-08 19:48:12 +01:00
cores CLI auth migration, document embeddings core lifecycle (#913) 2026-05-14 10:30:21 +01:00
decoding Per-flow librarian clients and per-workspace response queues (#865) 2026-05-06 12:01:01 +01:00
direct feat: workspace-based multi-tenancy, replacing user as tenancy axis (#840) 2026-04-21 23:23:01 +01:00
embeddings Fix Ollama async issue (#854) 2026-04-28 15:43:04 +01:00
external Implement logging strategy (#444) 2025-07-30 23:18:38 +01:00
extract fix: replace bare excepts in NLTK initialization (#896) 2026-05-11 15:12:25 +01:00
flow Per-flow librarian clients and per-workspace response queues (#865) 2026-05-06 12:01:01 +01:00
gateway CLI auth migration, document embeddings core lifecycle (#913) 2026-05-14 10:30:21 +01:00
iam Recent fixes -> release/v2.4 (#891) 2026-05-08 19:48:12 +01:00
librarian Recent fixes -> release/v2.4 (#891) 2026-05-08 19:48:12 +01:00
metering feat: workspace-based multi-tenancy, replacing user as tenancy axis (#840) 2026-04-21 23:23:01 +01:00
model Fixed document-rag workspace problem (#866) 2026-05-06 14:55:21 +01:00
processing Fix/startup failure (#445) 2025-07-30 23:42:11 +01:00
prompt feat: workspace-based multi-tenancy, replacing user as tenancy axis (#840) 2026-04-21 23:23:01 +01:00
query Remove spurious workspace parameter from SPARQL algebra evaluator (#915) 2026-05-14 12:03:43 +01:00
retrieval Fixed document-rag workspace problem (#866) 2026-05-06 14:55:21 +01:00
rev_gateway Messaging fabric plugins (#592) 2025-12-17 21:40:43 +00:00
storage Recent fixes -> release/v2.4 (#891) 2026-05-08 19:48:12 +01:00
tables CLI auth migration, document embeddings core lifecycle (#913) 2026-05-14 10:30:21 +01:00
template Feature/prompts jsonl (#619) 2026-01-26 17:38:00 +00:00
tool_service feat: workspace-based multi-tenancy, replacing user as tenancy axis (#840) 2026-04-21 23:23:01 +01:00
__init__.py Feature/pkgsplit (#83) 2024-09-30 19:36:09 +01:00