trustgraph/trustgraph-base
cybermaggedon 60529c3b3d
fix: knowledge core round-trip for workspace-scoped librarian and all term types (#1049)
Change librarian from a single shared client to per-workspace clients,
ensuring knowledge core get/put operations use workspace-scoped queues.
LibrarianClient is now created in on_workspace_created and cleaned up
in on_workspace_deleted.

Fix term_to_tuple/tuple_to_term to handle TRIPLE and BLANK term types.
Previously only IRI and LITERAL were supported, causing ~1000 edges
(ns/contains with quoted triple objects) to be silently lost during
Cassandra storage. TRIPLE terms are now JSON-serialized with a
<<TRIPLE>> marker prefix, BLANK terms with <<BLANK>>.

Make document tree export recursive via _stream_doc_tree so that
grandchild documents (chunks under pages) are included in knowledge
core export. Without this, explainability source links break after
a get/put/load round-trip because chunk documents are not restored.

Add error response encoding to KnowledgeResponseTranslator.encode()
and fix encode_with_completion to treat error responses as non-final.
Change KnowledgeResponse.ids from list[str] with default factory to
Optional[list[str]] so list responses can be distinguished from empty
responses. Add error display to get_kg_core CLI.
2026-07-16 00:31:47 +01:00
..
trustgraph fix: knowledge core round-trip for workspace-scoped librarian and all term types (#1049) 2026-07-16 00:31:47 +01:00
pyproject.toml Add missing websockets dep (#859) 2026-04-30 09:53:32 +01:00
README.md Maint/fix build env (#84) 2024-09-30 19:47:09 +01:00