Support subgraph-scoped view routing#1037
Open
Jurij89 wants to merge 23 commits into
Open
Conversation
This was referenced Jun 6, 2026
This was referenced Jun 8, 2026
Open
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
subGraphNamewith view-routed/api/queryreads for Working Memory, Shared Working Memory, and Verified Memory while preserving existing no-view subgraph behavior.assertionNameand exact VMverifiedGraphsupport, with a guard against view-routed child-context-graph URI collisions./api/queryWorking MemoryagentAddressto the resolved request identity so self reads match/api/agent/identitywhile preserving existing foreign-agent guards.Related
Files changed
packages/query/src/dkg-query-engine.tspackages/query/src/query-engine.tssubGraphNamebehavior for view routing.packages/core/src/constants.tspackages/cli/src/daemon/routes/query.tsagentAddressfrom the resolved request identity.packages/cli/skills/dkg-node/SKILL.mdpackages/adapter-openclaw/**sub_graph_name, and scopes memory search to project fan-out only.packages/adapter-hermes/**sub_graph_name, removes the old view-combination rejection, and forwards project-only memory-search scope.packages/mcp-dkg/**agentAddress, forwardssubGraphName, and adds project-only memory-search subgraph scope.packages/*/test/**Test plan
git diff --checkpython -m py_compile packages/adapter-hermes/hermes-plugin/__init__.py packages/adapter-hermes/hermes-plugin/client.pypnpm --filter @origintrail-official/dkg-query exec vitest run test/sub-graph-query.test.ts(14 tests)pnpm --filter @origintrail-official/dkg-query test(8 files, 267 tests)pnpm --filter @origintrail-official/dkg exec vitest run test/daemon/routes/query.test.ts(5 tests)pnpm --filter @origintrail-official/dkg-adapter-openclaw exec vitest run test/plugin.part-03.test.ts test/plugin.part-06.test.ts test/dkg-memory.test.ts test/memory-integration.test.ts test/memory-search-tool.test.ts(5 files, 118 tests)pnpm --filter @origintrail-official/dkg-adapter-openclaw test(57 files, 1083 tests, 1 skipped)pnpm --filter @origintrail-official/dkg-adapter-hermes exec vitest run test/hermes-adapter.test.ts(90 tests)pnpm --filter @origintrail-official/dkg-adapter-hermes test(90 tests)pnpm --filter @origintrail-official/dkg-mcp exec vitest run test/query-schema.test.ts test/memory-search.test.ts(32 tests).codex/review-prompt.md; fixed all valid findings.pnpm --filter @origintrail-official/dkg-mcp testcurrently fails locally on unchanged hook tests withSyntaxError: Invalid or unexpected token; the affected hook tests and hooks are unchanged frommainand passnode --check.pnpm --filter @origintrail-official/dkg testcurrently fails locally on Windows environment issues: release/rollback helper suites cannot create symlinks (EPERM) and vector-store tests cannot loadbetter-sqlite3native bindings after the Windows install path used here.