Repository navigation
fix(composition): read catalogs from the session's tenant graph - #28
Merged
Merged
Conversation
graph-os main could not start against agent-utilities main: catalog
composition built graph views for the bare tenant id ("homelab") while
the verified process session targets AU's tenant graph
("tenant__homelab____commons__"), and AU graph views refuse any session
aimed at another graph ("A graph-scoped view cannot retarget the verified
GraphSession").
- Composition and the graph_rlm client use the session's own graph.
- The fleet catalog port receives the tenant graph and a graph binder,
and runs each generated read under the verified session narrowed to
the read's graph (tenant graph, or __commons__ for the server
registry), the same narrowing the REST gateway already uses.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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
graph-os main crashed at startup against agent-utilities main with
PermissionError: A graph-scoped view cannot retarget the verified GraphSession:homelab).tenant__homelab____commons__).Changes:
graph_rlmclient now use the session's own graph.GeneratedFleetCatalogPorttakestenant_graphand an injectedbind_graph. Each generated read runs under the verified session narrowed to its graph: the tenant graph, or__commons__for the server registry. This is the narrowinggateway/graph_api.pyalready uses. The adapter stays free of AU imports.Evidence
tests/fleet/test_epistemic_catalog_adapter.pyasserts every read is narrowed to the graph it targets, andtests/mcp_server/test_catalog_composition.pyasserts the tenant graph is used. ruff and mypy are clean on the changed files. The pre-push gates passed.🤖 Generated with Claude Code