Skip to content

Add scoped memory graphs and finish Memory Hub navigation - #3228

Merged
Hillary Mutisya (hillary-mutisya) merged 5 commits into
mainfrom
dev/hillarym/memory-pr4-graphs
Oct 26, 2026
Merged

Hillary Mutisya (hillary-mutisya) merged 5 commits into
mainfrom
dev/hillarym/memory-pr4-graphs

Conversation

@hillary-mutisya

@hillary-mutisya Hillary Mutisya (hillary-mutisya) commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add bounded, corpus-qualified document/event entity, topic and maintained-hierarchy graphs. Eligibility, suppression, event authority, exact provenance/counts, generation-bound node/edge/support paging, budgets and explicit building/stale/error/unsupported coverage remain visible.
  • Separate index preparation from reads; invalidate graph caches across document/event lifecycle changes. Reuse merged curated topics/lazy summaries, preserve current source fingerprints and historical conflict fallback, and revalidate detached view/event preparation before installing results.
  • Expose graph operations through service, in-process/MCP clients, RPC/browser gateway and strict protocols. Advertise graph support truthfully, including host-specific MCP tool inventories.
  • Add scoped Explore/overview, graph controls/visualizers/details and safe evidence drilldown. Finish generic Views card/list-detail/build flyout, grouped activity/Inbox/navigation and lazy summary inventories with responsive detail readers.

Independent base and exclusions

Targets main, not PR3. Prerequisites #3224 (Questions/acquisition) and #3225 (quality/curated lazy topics) are merged. Extracted from the immutable integration source using two-tip comparisons while retaining main's later fixes. No PR3 coordinator, automatic corpus question discovery, knowledge checkpoint/policy/readiness API/UI, integrated source-plus-view answering, or benchmark harness integration is included. Existing Questions functionality is retained.

Validation

All final local checks passed in the isolated PR4 worktree:

  • pnpm run build from ts (full workspace).
  • Complete memory-service offline unit suite: 80 suites, 1,030 tests. From ts/packages/memory/service: pnpm run jest-esm --maxWorkers=2 --workerIdleMemoryLimit=512MB --testPathPattern=".*[.]spec[.]js$" (local NODE_OPTIONS=--max-old-space-size=8192). Includes graphService/Projection/Paging, viewIndexConcurrency, snapshot reuse/freshness/historical conflict parity, topic/event/privacy lifecycle, all view/editorial/consolidation and other existing service regressions.
  • pnpm --filter @typeagent/memory-client run test:local: 48 tests.
  • pnpm --filter @typeagent/memory-mcp-server test: 12 suites, 39 tests (real bounded MCP protocol round trips and host inventory included).
  • pnpm --filter @typeagent/browser run test:views:gateway: 111 tests, including scoped graph gateway and strict validation/lifecycle.
  • pnpm --filter @typeagent/browser run test:views:client: 41 suites, 371 tests, including graph/Explore/Views/activity/Questions/management.
  • Pinned pnpm run prettier:changed.
  • pnpm run code-lint -- --ratchet --base origin/main.
  • pnpm run code-complexity:ci.
  • pnpm run code-circular -- --ratchet --base origin/main --exceptions-file tools/scripts/code/circular-baseline-exception.json (not concurrent with Git-fixture tests).
  • pnpm run code-debt -- --gate --base origin/main.

Coverage is deterministic/offline; no live inference, qualification pilot, recording or long-lived server was used. These checks do not establish generated knowledge/answer quality. Read-only graph responses may report separately scheduled preparation or unsupported provider projections rather than claim completeness.

CI remediation

The first matrix run exposed two pre-projection hydration-count expectations in snapshotReuse. The follow-up ordinary commit asserts one fresh projection read and zero full-state hydrations, while retaining expired-scope freshness, privacy checks and historical consolidation parity. The complete 80-suite service run passes after this fix; no test or gate was disabled.

Expose bounded document/event graphs with exact provenance and generation paging. Add graph drilldown, summary inventories and responsive Views/activity navigation, preserving existing Questions and curated topics.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Expose truthful graph capability and MCP tool inventory. Preserve receipt/family fingerprints across detached retrieval, keep optimistic schema tests waiting for build settlement, and cover pause/privacy read behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
CI exposed two hydration-count expectations left behind by inventory read projections. Assert one fresh projection read, zero full-state hydrations and unchanged historical consolidation nomination parity, retaining the expired-scope and privacy guards.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Preserve both graph/inventory and knowledge checkpoint transports; close the knowledge coordinator within the idempotent graph preparation shutdown lifecycle.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Nonblocking inventory reads can finish a build between the snapshot and job reads. Capture the optimistic head after checking jobs so conflict guards use the settled publication.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@hillary-mutisya
Hillary Mutisya (hillary-mutisya) merged commit edf9e0e into main Oct 26, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant