Skip to content

feat(chat): knowledge parity with MCP — file passages, entities, facts, status - #89

Merged
leorfer23 merged 2 commits into
mainfrom
feat/chat-knowledge-parity
Oct 14, 2026
Merged

leorfer23 merged 2 commits into
mainfrom
feat/chat-knowledge-parity

Conversation

@leorfer23

Copy link
Copy Markdown
Contributor

Why

The in-app assistant's knowledge_search only read the distilled notes tree. Anything learned from uploaded Files (PDFs, docs, sheets) — the corpus the MCP connector cites — was invisible to it. MCP and the REST API could answer "what does the onboarding procedure say?"; the in-app chat couldn't.

What

  • knowledge_search (chat) now also returns cited passages from the corpus (searchCorpus), alongside the existing note summaries. A kind filter still means notes only.
  • New chat tools, same names/semantics as MCP: knowledge_entity, knowledge_facts, knowledge_status. They call the same helpers the REST routes use (listVisibleEntities, visibleEntity, visibleSources, store.listSources).
  • Access: per-member source visibility (private Files only to owner, moderation) via the shared helpers, plus an explicit workspace-membership check (getUserWorkspaceIds) since these bypass the route's member gate.
  • Registered in the knowledge toolkit, progress labels (en/es), docs (teams/knowledge.md en/es) and skill (team/knowledge.md, team/workspace-assistant.md); skill bundle rebuilt.

Tests

  • New tests/unit/knowledge/chat-corpus-tools.test.ts: cited passages from an uploaded file, private-file isolation, entity + quoted facts, status lists only visible sources, refuses non-member / personal / knowledge-off.
  • tests/unit/knowledge/agent-tools.test.ts: mock membership.
  • tooling/scripts/ci-check-fast.sh passes locally (exit 0).

Not in this PR

Full API parity for the chat (beyond knowledge) — e.g. MCP's publish_artifact/update_artifact/whoami/list_workspaces vs chat's create_artifact/edit_page, and admin/settings routes — to be inventoried separately.

🤖 Generated with Claude Code

@leorfer23
leorfer23 force-pushed the feat/chat-knowledge-parity branch from ab0a17f to 5e120c3 Compare October 14, 2026 19:11
leorfer23 and others added 2 commits October 14, 2026 16:12
…s, status

The in-app assistant's knowledge_search only read the distilled notes tree, so
anything learned from uploaded Files (PDFs, docs, sheets) was invisible to it while
the MCP connector could cite it. knowledge_search now also returns cited corpus
passages, and the chat gets knowledge_entity, knowledge_facts and knowledge_status
backed by the same corpus/graph helpers the REST routes use, with the same
per-member source visibility plus an explicit workspace-membership check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leorfer23
leorfer23 force-pushed the feat/chat-knowledge-parity branch from 5e120c3 to 445ad8b Compare October 14, 2026 19:21
@leorfer23
leorfer23 merged commit 9853937 into main Oct 14, 2026
2 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