Repository navigation
The assistant reads Loom's documentation through help.search and help.get - #488
Merged
Merged
Conversation
zlareb1
force-pushed
the
feat/assistant-help
branch
from
November 10, 2026 16:27
e30e89d to
943cc6a
Compare
….get The image ships docs/ (Markdown; the screenshots stay out of the build context), and two read-only, deployment-scoped ops serve it: help.search scores the docs' sections with BM25 in process and help.get returns a page or one section, by anchor and from an offset. Both are on the assistant toolset, count as Loom's own documentation for the grounding label, and are in no curated roster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
zlareb1
force-pushed
the
feat/assistant-help
branch
from
November 10, 2026 17:20
642fa9b to
679f922
Compare
This was referenced Nov 10, 2026
Merged
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.
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
The assistant can read Loom's own documentation, as the running build ships it:
help.searchfinds the sections that answer a question andhelp.getreturns a page or one section. Both are read-only and on the assistant toolset.Why
The assistant answers questions about what a namespace holds, but not about how Loom works ("how do I share a collection", "what does this health warning mean", "what can a viewer do"): the docs were not in the image, and no assistant tool read them. This PR ships the docs and gives the agent two reads over them. The agent is told to read them for how Loom works and to name a page in words; a checked help citation kind, the asker's role and fuller instructions follow in separate PRs.
Design (also in
docs/architecture/assistant.md#looms-documentation):docs/;.dockerignorekeepsdocs/images/out of the build context.server.core.paths.DOCS_DIRpoints at it, so a source run reads the checkout's docs. Contributor pages (development/) are not indexed.server/knowledge/domain/chunking.pydetect_sections), so a breadcrumb starts with the page title as a document citation's does, and each section gets the anchor a Markdown renderer gives its heading. Sections are scored with BM25 (server/core/bm25.py). Terms are the words, with plurals and simple suffixes folded and question words dropped, plus every whole identifier (memory.set,LOOM_ASSISTANT_MODEL), so an exact op or setting name finds the line that names it. An operator page (operations/,architecture/,benchmarks/) scores three quarters, since most askers use Loom rather than run it.test_public_copy.pykeeps hosts and secrets out of it. Each hit carries anaudience(useroroperator) instead. Help reads no environment, setting value or secret.available: falseuntil it restarts. A call that arrives during the first build waits for that build instead of reading no index.The design was reviewed in six adversarial rounds before the build; the last round had no findings.
Scope and risk
server/help/(api, app, domain; no store). It reads no database and no tenant data.help.searchandhelp.getareexperimental, read-only and deployment-scoped (skip_namespace_authz, likementor.guide). They are on the assistant toolset, inEND_USER_ORG_OPSand in the read-scope registry. They are in no curated roster and not in thealllisting.help.getpath is a key of the index, never a filesystem path:../.envanswersfound: false.help.getread, of a section or a whole page, returns at most 16,000 characters and is read on byoffset; a page read, or one that is cut, adds the page's outline.ASSISTANT_NO_NAMESPACE_DATA_OPS): a call to them is never the namespace's data.Compatibility, rollout and rollback
help.search(query,limit) andhelp.get(path,section,anchor,offset; outputnext_offset); nothing changed or removed.docs/from the checkout.UNKNOWN_OPand that answer goes without the docs (stated indocs/architecture/assistant.md#rolling-upgrades).UNKNOWN_OPuntil they are upgraded again.Tests
tests/unit/test_help_docs.py:settings/setting,embeds/embedded) and question words dropped, and an exact identifier finding its own line;offset, and every shipped section longer than one read as well;tests/integration/test_help_docs.py: a viewer finds a section over HTTP and reads it back;../.envis not found.test_assistant_service.py: the definition digest is pinned to version 5;test_assistant_support.pyholds the help ops to their grounding set and found fields.make format,make lintandmake typecheck(green), and the full unit suite in four parts with-n 2: 32,710 passed. The four failures it found were this PR's (the tunable-constant, SDK surface, deployment-scoped and projection gates) and are fixed. Two others are not in this diff and fail the same way onmainhere:test_code_regex_costandtest_deeply_nested_hidden_html_parses_in_bounded_time, a known local-environment failure.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code. The design went through six adversarial architecture reviews to zero findings, and each part is covered by the tests above.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.docs/reference/configuration.mdand thedocs/reference/tables (python scripts/codegen/docs_reference.py), the reach manifest,schemas/schema.sql(make schema-dump) and the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py).main; no merged migration is edited.hooks/,lib/,bin/,skills/,.mcp.json, the Codexplugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.npm --prefix frontend run build) and its tests pass, iffrontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code