Repository navigation
MCP tool descriptions name each listed tool by its tool name - #570
Merged
Merged
Conversation
zlareb1
force-pushed
the
fix/mcp-tool-descriptions-mcp-names
branch
7 times, most recently
from
November 13, 2026 11:50
c14c6aa to
0d18921
Compare
Each listing renders the shared description texts for its client: an op the listing carries is named by its tool, an op it leaves out keeps its op name with "(via loom_op)". memory.set and memory.delete say which write or removal to pick, and loom_op says how to list ops and their arguments, with an example call. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Field descriptions in a listed input schema get the same tool and loom_op naming as the tool text. The marker test is word-bounded, covers readonly and assistant, and holds the ops loom_op's text names unlisted on the default listing. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…every listing loom_op's text is shared by every toolset, so it no longer names example ops that all lists as tools. memory.pin points a topic never to be saved at blacklist.add again. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
The examples are built per listing, the coding tier keeps the write pick line, and the action manifest names its tools as a listing would. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
mcp_op.reachable answers false for a hidden op, so the renderer, loom_op's examples and the lints share one predicate. loom_op's description is built only per listing, the atomic texts name ops by op name, and the listing lint covers a union toolset. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
routes_writes resolves the toolset as the listing does, so a deployment whose default is readonly no longer routes writes through loom_op while listing itself as read-only. Source texts name every op by op name, and the authoring rule is in the adding-an-operation guide. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…override Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… lives in mcp_op The compact profile keeps only a description's first sentence, so loom_op now leads with the help call and an example call. name_ops_for_listing moves to mcp_op, which owns what loom_op routes, and the listing's tool set has one source. The mcp_toolset text says loom_op on readonly routes reads only. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
TOOLS_BY_NAME moves to mcp_op beside the renderer, and its callers import it there. The Toolsets section says loom_op on readonly routes reads only. Tests cover each toolset's examples and the direct-call refusal. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
mypy-gate flagged the Any-typed table. hidden_refusal takes its toolset explicitly, loom_op_description is named for what it builds, and the help detail the help answer already gives leaves the listing. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ames The synthetic builder writes loom_op's text for its listing, and the listing and the refusals both read listed_tool_names. reachable and its helpers take Operation. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
resolve_toolset moves to the toolsets module, a listing computes its ops once, and the field walk is a plain loop. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Reasons like 'only the user can unlock' or 'nothing to call' stay on a read-only connection. route, catalog and the renderer share one routing rule. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
The mentions around the alternative no longer decide it, so memory.extraction_status keeps its read alternative on a read-only connection; a test covers every _INSTEAD entry. loom_op's examples leave out erasure.request. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…rites once _WRITE_ALTERNATIVE lists the hidden ops whose alternative is a write, replacing the parse of the refusal text. name_ops_for_listing takes the writes flag its caller computed. Tests read resolve_toolset from its module. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…y as written Three texts that sent the assistant listing to ops it cannot call are reworded. The renderer skips op names in quotes or after a slash, a refused loom_op call suggests only routed ops, and the listing passes routes_writes to loom_op's text. SYNTHETIC_TOOL_NAMES names the synthetic tools once. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ed texts keep them facts.traverse, facts.path and knowledge.inspect get derived assistant texts. The hidden-op lint covers every toolset and field descriptions, two model docstrings stop naming the hidden memory.search, and no source text writes an op as a call. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…karound sentence Small clean-ups from review: the refused-call suggestion list, _is_read inlined, the action manifest passes writes=False, the facts.traverse pointer reads once, and the mcp_toolset text says except that. Lints hold that no op sits inside a longer code span and the assistant listing names no synthetic tool it lacks. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
code.repo.add's (via loom_op) rather than code.repo.add (via loom_op)'s. The listing lints cover all without code tools again, and the source texts are one tuple. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
`memory.set` (via loom_op) replaces `loom_op` (op `memory.set`). The renderer's pattern is written out with re.VERBOSE, writes defaults to True for a listing with no loom_op, and route builds a hidden-op refusal only when the op is not found. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… and long values Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… own hint Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…tions and the echo table's reach Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…r_check precedes Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…r the MCP listing Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…he listing out once per call Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ne points at the Review queue Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…; clearer hint wording Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ng sets Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… own patterns Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… comment Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
zlareb1
force-pushed
the
fix/mcp-tool-descriptions-mcp-names
branch
from
November 13, 2026 14:30
33a30df to
24bd063
Compare
…hesis Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ve hint wording; module-level test imports Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…eads test_name Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… a placeholder Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
This was referenced Nov 18, 2026
zlareb1
added a commit
that referenced
this pull request
Nov 18, 2026
### Changelog category (leave one): - Not for changelog (changelog entry is not required) ### Why Reconcile the existing release preparation with the merged source through the preparation branch's required pull-request workflow. The resulting tree retains main's source, generated clients and documentation together with the release version pins and two test-isolation repairs. ### Scope and risk This forward merge includes main through #839. Relative to that main snapshot, 22 version paths set the release pins: the server, SDKs, frontend, root packages and skills use 1.3.0; the chart uses 0.3.0 with appVersion 1.3.0; the paired coding-agent plugins use 1.2.30 and require server 1.3.0. Two existing test files also isolate their clock and marked request context. The clock fixture replaces only the gateway module dependency, and the mirror-failure test restores its prior request-work context through the existing binding helper. Production freshness and required-tail refusals remain unchanged. Every other file and mode matches that main snapshot. The existing preparation branch and its history are retained. The release pull request into main follows after this protected update lands. A release candidate, its soak and final publication remain separate steps. ### Compatibility, rollout and rollback - Wire and operator changes inherited from the included features are listed in the release notes below. The version reconciliation adds no wire operation, schema migration, feature activation or default setting. - Keep mirrored-source creation, query history, gap drafting and independent source push disabled unless their documented activation requirements are met. Native analyst provisioning and ordinary-event compatibility require their supported runtime proof. - Final composition, generated notes, plugin versions and every required check must be reconciled again before the release pull request merges. Version collisions must be resolved against the versions actually merged on main. - Rolling upgrades and rollback retain the data, accounting, erasure and protection requirements in the release notes. No tag or publication is performed by this update. ### Tests - `prepare.py check 1.3.0`, `prepare.py check-chart 1.3.0` and `scripts.codegen.agent_plugin_sync --check` pass. - The included version checkpoint passed 108 focused release-version and release-preparation checks and all eight Node plugin server-version checks. Full local suites were not run. - The combined focused regression passes all 44 checks, including mirror serialization followed by consumer-event emission, the bearer-cache module and both model-policy denial controls. The two source repairs also retain their diagnosed failing reproductions. - Fresh generated notes use this complete source and history. The generated wire appendix is retained verbatim in the curated notes. - Full unit, integration, coverage, schema, SDK, frontend, plugin and security checks run in remote CI and must pass on this head and its tested merge composition. - Internal independent whole-source and public-content review runs alongside CI. ### AI assistance in the code (leave one; writing this description with AI is fine): - AI-generated: Codex reconciled the merge, checked source provenance, incorporated the published test-isolation repairs and prepared the version pins and release notes. - [x] I can explain every authored change and its interaction with the included source. ### Checklist - [x] Commits are signed off. - [x] Version and chart checks pass; both plugins and their minimum server version agree. - [x] Non-version content matches the included main snapshot except the two published, focused-tested isolation repairs. - [ ] Fresh independent whole-source and complete public-body review reports no findings or nits. - [ ] Every applicable remote CI check passes for the exact tested composition. - [ ] The protected branch's actual merge requirements are satisfied. - [ ] Concurrent plugin versions and current main are reconciled before the final release merge. ## Release notes for v1.3.0 ### New features - Framework integrations provide retrievers, memory stores, toolsets, conversation sessions and native storage through the Python and TypeScript SDKs. Python extras include `langchain`, `llamaindex`, `openai-agents`, `crewai`, `autogen`, `pydantic-ai`, `ag2`, `agent-framework`, `claude-memory`, `google-adk`, `haystack`, `pipecat` and `agno`. TypeScript integrations use optional peers and package subpaths. Install only the dependencies your application uses. (#607, #609, #650, #653, #655, #658, #661, #663, #666, #696, #729, #736, #737, #750, #765, #766, #779) - Native file-tree memory tools create, view, edit, delete and rename documents shared across both SDKs. Python uses the `claude-memory` extra; TypeScript uses the matching integration subpath. A store groups files within a namespace and is not an authorization boundary: private user trees require separate namespaces. (#736) - Native TypeScript memory storage persists threads, messages and resource working memory. Construct one `LoomMemoryStorage` per canonical user resource. Writes clear default expiry; retention, erasure, refusal and deletion policies still apply. `memory.set` accepts `if_match_sha256="absent"` for conditional first creation under a concrete identity. An older server refuses that condition rather than writing unconditionally. (#779) - The Python and TypeScript `LoomSession` implementations persist conversation history. Processes with the same language, agent, user and session resume the same history. (#737) - Separate workflow and plugin packages expose AI memory, remember, recall and knowledge-search tools for applications configured with a Loom endpoint and scoped token. Their publication and catalog acceptance are separate from the SDK release. (#754, #763) - `LOOM_LLM_PROVIDER=local` runs model jobs against a chat-completions server you operate. `LOOM_ASSISTANT_PROVIDER=local` does the same for the assistant and requires `LOOM_ASSISTANT_MODEL`. The installer can discover a local model server; `LOOM_LOCAL_MODELS=ollama` selects that setup without a prompt. (#634) - `knowledge.gaps.list` and the Library show questions that repeated searches could not answer. Recording is off by default through `LOOM_KNOWLEDGE_GAPS_ENABLED` and requires capture permission. (#598) - `knowledge.source.parse_links` identifies pasted links before registration. Source registration accepts item lists and file-kind filters, while `knowledge.source.update` adds or removes source items without recreating the source. The CLI supports `--link`. (#562) - `knowledge.list` accepts several `namespaces`. The Library's **All documents** view lists documents from every readable namespace and collection; **Everywhere** expands a collection search to every readable place. (#615, #686) - `knowledge.move` relocates documents with their chunks, vectors, originals and tables. The Library offers **Move to…**, drag destinations and **Add to collection…**, with a confirmation explaining relocation and sharing. (#672, #734, #772) - Uploading a folder preserves its nested structure as collections. The Library shows collection trees, document counts, folder chips and sharing information. Empty writable collections accept dropped files and folders. (#525, #613, #680, #771, #772) - Ask AI opens beside the page on a wide screen, over it on a narrow one and as a sheet on a phone. Search can answer a question in place and continue the same conversation in chat. A deployment without an assistant URL retains Loom's own reads without chat controls. (#580, #596) - Code answers include memories linked to their top files, with stale-code status and the commit at which the code changed. `include_lessons: false` or `code_result_lessons` disables these lessons. (#638, #659) - `memory.definitions.list` reports governed definitions and lapse reasons. `memory.search` gives an exact term or alias a governed-definition leg and reports its outcome. (#679, #725) - Operator routes support the first cell's attach sequence. A later cell registers only after the first serves; `loom cell remove` deletes an unattached cell with no placements. (#681) - Additional extension manifests, experimental CLI hooks and team marketplace configuration make Loom available to more coding clients. See the integration documentation for each client's installation and tested status. (#594, #642, #694, #730) - Admins can draft definitions from eligible search gaps or an opt-in query-history source, then review and publish them from the learnings queue. Query-history credentials are sealed; the model sees normalized SQL, which still contains identifiers. Distinct source accounts do not establish distinct people or anonymity. Drafts and supporting evidence remain private to namespace admins until publication. (#768) - `loom_search` and `search.query` include readable tracker issues and pull requests for ordinary questions, with namespace citations. Scoped defect reports keep the duplicate-check verdict, including a successful empty result. (#773) - The Helm chart exposes an optional private cell identity listener through a ClusterIP Service using `cellProbe.port`. The default zero keeps the listener disabled. (#806) - Named users can have separate rolling-24-hour cost caps within a namespace, with threshold warnings sent to an existing namespace-owned task inbox. The user cap does not raise the namespace ceiling; concurrent calls can exceed these soft caps. (#777) - Experimental source push setup accepts provider notifications as hints to request normal document-source syncs. Push is off by default; polling remains the recovery path. Notifications cannot write document content or widen access. (#784) - `loom tracker-feed` maintains GitHub issues, pull requests and comments in a team-owned ClickHouse tracker record. Contract views apply observed repository visibility and hide content when the observation expires. Setup requires a dedicated record, separate writer and reader credentials, allowlisted repositories and an operator-scheduled feed. (#786) ### Improvements and fixes - New installs verify a memory write/read round trip, offer to connect detected coding clients and open the dashboard where supported. `LOOM_CONNECT` controls client setup and `LOOM_NO_OPEN=1` suppresses the browser. Port conflicts stop installation before pulling or starting containers; pull errors point to proxy settings. (#574, #583) - SDK memory adapters honor the calibrated abstention floor. Results above the full-value threshold use stored clips up to 1,200 characters, and `loom_recall` keeps valid JSON by omitting whole lower-ranked results when its size bound is reached. Explicit `defer=False` extracts inline. (#643, #647, #664) - Framework context providers reject padded user ids; the corresponding optional dependency stays within its tested minor series. Exact memory deletion requires a server response containing the writer field; older responses return no deletion id. (#696, #746) - On single-user installs, HTTP requests may omit their identity where supported. Writes use agent `http`, and searches read every agent; an explicit agent `"-"` keeps its meaning. Python `Agent()` and `SyncAgent()` support omitted identity. (#576, #595) - Memory writes with a user compare against that user's rows and namespace pins. A restatement under a different key cannot merge into another user's row. (#701) - Namespace erasure includes promoted shared rows. Redaction scrubs shared copies, and promotion or demotion invalidates cached answers and advances the write mark across replicas. (#572, #684, #697) - Definition keys identify their own rows: conflict resolution cannot merge different keys. Shared definitions with a sensitive or deleted source stay out of search. (#656, #685) - Linked-code memories whose definitions moved can follow those definitions across larger changes, within the documented bounds. Changed, unresolved or removed code lowers a memory by three search places by default rather than excluding it. (#612, #635) - Document source sync limits new documents through `LOOM_KNOWLEDGE_SOURCE_MAX_DOCUMENTS` while still updating or retiring held documents. Cleanup has its own live per-pass bound, `LOOM_KNOWLEDGE_SOURCE_RETIRE_DOCUMENTS_PER_PASS`, default 40. Metadata edits survive sync until the source file changes. (#662, #683, #791) - Namespaces matching `acl-` followed by 24 hexadecimal digits are reserved for permission-aware source mirrors and excluded from ordinary requests, org-wide reads and exports. Mirror creation remains disabled; its additive schema and erasure coverage are included. (#665, #670, #678, #778) - Dashboard actions remain visible with their required role. Namespace and audit labels explain what they show. Source-list errors include a request id and Retry; run details copy complete ids. Standard control keys remain, while application-specific shortcuts and their hints are removed. (#551, #589, #602, #649, #698, #699) - Coding-agent hooks launch Node directly, match temporary recall filenames literally and avoid running Python merely to locate pytest. Plugin 1.2.30 warns when its Loom server is older than 1.3.0. (#566, #573, #638, #733) - MCP descriptions use callable tool names and explain how to reach unlisted operations through `loom_op`. The readonly toolset also restricts implicit `loom_op` routing. Context instructions request an initial task pack when hooks have not supplied it. (#570, #645) - The CLI's commented-settings merge preserves unrelated settings and prints a manual entry when it cannot merge. Re-run the relevant client installation command to replace an obsolete client configuration. (#740) - Indexing comment-heavy template strings and normalizing SDK URL/key-prefix slashes take linear time. Finished dependency-install tunnels release their slots after the configured half-close timeout. (#564, #565, #579) - Under Postgres memory authority, `memory.update` resolves a committed key before its ClickHouse projection appears. (#781) - The analyst probe checks its signed key canary before trusting a newer catalog version. The signed key canary remains mandatory. (#793) - Translation checks distinguish literal comparisons from complete HTML markup. Shell launchers and skill files retain their committed LF bytes during checkout. (#767, #792) - Checked document reads require current source permissions, reader identity and the exact content version before serving mirrored content. Public mirrored-source creation remains disabled until the fleet, request and session protections are complete. (#799) - Checked document requests keep private diagnostics and derived activity behind their privacy boundary and finish required accounting before publishing content. Loss of the selected source/version proof refuses the complete response frame; after headers, the unchecked body is aborted. It does not rerender a replacement. Public mirrored-source creation remains disabled. (#803) - Deployment session protection survives process switches and tenant erasure. Unverifiable protection state refuses session-content operations before their content is processed. (#819) - Plugin 1.2.30 explains repository tags for code-related facts while keeping unrelated facts outside that repository filter. (#787) - Available machine translations accompany canonical English in Simplified Chinese, Japanese, Korean, Brazilian Portuguese and Spanish. Documentation navigation retains the selected language. Translation maintenance preserves completed units across English edits, bounds refinement requests and checks technical literals before publishing reviewed content. (#764, #794, #797, #824, #829, #830, #833, #838) - Guides explain persistent coding-agent memory, code-linked memories, metadata-first retrieval and the difference between fake-model test output and meaningful answers. The code-linked memory guide points to the packaged MCP checks. (#726, #727, #807, #815, #816, #818, #831) - The desktop installer opens the dashboard when its terminal closes before the browser helper starts. (#822) - Assistant answers mark mirrored-source access before output and keep mirror admission fixed for the answer's lifetime. Shared HTTP and MCP success/error responses preserve the privacy flag. Python and TypeScript assistant stream clients reject incomplete answers. Public mirrored-source creation remains disabled. (#835) - Recall Lab reuses score rows while a draft query changes and keeps immediate clearing. (#786) ### Compatibility and deployment - A Postgres-backed process reads cell state before serving. A process without `LOOM_CELL` refuses an enforced or partial cell; a failed initial Postgres read fails boot, except while migrations are pending, when the process remains unready. (#586) - An enforced cell checks tenancy on writes, including the tenancy row itself. `LOOM_PG_DSN` must connect directly to Postgres. Older pods on an already prepared later cell must be rolled in one step once migrating boot installs the triggers. `loom doctor` detects missing, altered or disabled triggers and lost session markers. (#599, #676) - CLI writes check the deployment and require the grants in upgrade step 15. Without `LOOM_CELL`, they refuse a cell past recording. Commands configured for a cell refuse another cell's stores; revocations that cannot restore access retain their documented outage behavior. New org names are bounded at 2048 UTF-8 bytes. (#668, #671, #673) - `memory.promote` for a definition requires `approved_sha256` and promotes the namespace-wide row by the token's actor. Sensitive values, empty terms, conflicting terms or aliases and the shared-definition cap refuse promotion. (#667) - Native HTTPS uses `LOOM_TLS_CERT_FILE` and `LOOM_TLS_KEY_FILE`, with certificate reload in each web process. The chart's `tls.secretName` configures the certificate mount and HTTPS probes. The image launcher refuses `UVICORN_*` variables; remove those variables before upgrading and use the documented Loom settings. (#756) - Each metric retains up to `otel_metrics_cardinality_limit` series per process, default 20,000; additional attribute sets accumulate in an overflow series. (#648) - Query-history and gap drafting introduce private definition candidates. Before downgrading to an older reader, use a maintenance window: disable both drafting features, quiesce drafting/review/registration/worker traffic, drain queued/model work, settle uncertain sends and retained leases, remove all versions of private candidate kinds and all registrations, and verify zero on every readable storage replica. Keep private producers disabled throughout the downgrade. Published definitions retain their existing lifecycle. (#768) - `memory.search` and `memory.search_trace` accept at most 64 raw `entity_filter` entries, including repeated names. Canonical alias expansion is bounded at 256 names. Entity-summary retrieval separately bounds the case-insensitive distinct union of the canonical filter, query handles and known vocabulary tokens at 256 names. Overflow of either 256-name bound returns 422 `VECTOR_INPUT_TOO_LARGE` through retries, `memory.ask` widening and composed search, without a partial ranking. Narrow the query or filter before retrying. (#800, #808) - `POST /v1/me/personal_tokens.create` issues the explicit personal-agent token kind only from the person's own primary sign-in session. The optional signed `reads_as_creator` claim defaults to false and ordinary delegation does not copy it. No operation-transport RPC is added by this route. (#799) - Source membership and listing evidence must be present and current for checked reads. `LOOM_KNOWLEDGE_SOURCE_ACL_STALE_SECONDS` defaults to 3600; no backfill infers domain membership from an email address. Before rolling back after mirrored writes, stop those writers, settle outstanding work and follow the documented mirror erasure and telemetry sweep. Keep mirrored creation disabled on an incomplete fleet. (#799) - Ordinary event inserts and signed, namespace-scoped analysis remain available across serving builds. `agent_events` retains ordinary columns and values; a permanent `ordinary_events_only` CHECK rejects marked events and reserved mirror namespaces. Marked requests and mirror workers write the separate `agent_events_private` store, which has no analyst grant or analyst-visible physical metadata. (#825) - The signed `analysis_agent_events` catalog view unions ordinary and private events and masks protected fields before caller predicates and grouping. Ordinary `agent_events` reads retain their signed namespace scope; the analyst cannot read the private table. Trusted cost, budget and history-policy reads cover both stores, and user erasure scrubs both through `agent_events.scrub`. Private events use the ordinary ledger's retention and tiering policy. (#803, #825) - Analyst administration uses `loom ch-setup --apply-analyst-sql` with explicitly configured existing access-management credentials. It applies only the analyst boundary under the live proof and lease, without rebuilding reader credentials. `--print-analyst-sql` refuses with a nonzero result and prints no SQL or secrets. General `--print-sql` remains available for database and reader preparation; print and apply modes are mutually exclusive. (#825) - Session-content operations require exactly one `X-Loom-Session-Protection: v1` header once deployment protection is set. Missing, repeated or unknown declarations grant no promise. The gate includes dual-use `memory.set`, `memory.bulk_set`, `memory.search` and code/context operations used by automatic clients. Missing protection or unverifiable deployment state returns nonretryable 409 `SESSION_PROTECTION_REQUIRED`. HTTP checks before reading the body; MCP checks before content validation, identity defaults, replay or implicit session runs. (#819) - The optional `LOOM_KNOWLEDGE_MIRRORED_SOURCES_ENABLED` setting now exists, defaults false and requires restart. Setting it true persists a deployment-wide latch before startup admits clients or workers; the heartbeat repairs that protection. Setting it false does not clear the latch. With the switch false, an undeclared client still needs a fresh service-principal Keeper absence proof; a declared client does not exercise that default path. This setting does not make public mirrored-source creation available. (#819) - Named-user budget status withholds exact spend and its percentage except for a verified platform admin without namespace-role restrictions. Admission and routing still count all spend, including marked requests. User warnings always withhold exact spend, including webhooks and operator-triggered delivery. Namespace and org totals retain their existing numeric form. (#777) - Before a downgrade after budget warnings were produced, stop request/background budget-check producers and status polling, drain scheduled deliveries, settle uncertain writes and writer leases, then remove only `budget.warning` events and verify completion and zero warnings on every storage replica. Save the global and namespace policies first: older namespace writes reset the new cap/inbox fields. Keep the feature disabled on older builds and reapply saved policy only after the full fleet supports it again. (#777) - Tracker feeds support a single self-hosted server or shared storage with `ReplacingMergeTree` or `SharedReplacingMergeTree`; self-hosted replicated tables are refused. Feed connections retain the deployment's storage-authority, organization and cell checks. The dedicated writer must have verified limited direct and effective grants and remain separate from the serving reader. (#786) - Assistant mirror admission uses a separate strict server-issued `answer_mirrors` Boolean. Missing admission is false, and mirror discovery also requires the caller's separate `session_protection` promise. An older verifier accepting the signed claim does not enforce it. Keep mirrored-source creation disabled until every serving build and consumer enforces the documented privacy protocol. No migration or backfill is added by this protocol change. (#835) ### Operator steps 1. Follow [the upgrade checklist](https://clickhouse.github.io/loom/operations/upgrades/) and apply the additive migrations through the normal migrating boot. This release's cell and shared-memory changes have additional steps below. 2. After every older replica is gone, follow upgrade step 14 to identify promoted rows left by earlier namespace erasures. Use the ledger's census cutoff and namespace when applying the documented tombstone or purge mutation, including hidden versions. Only a namespace-list erasure authorizes a purge. Erasures beyond the ledger's retention cannot be identified by that query. (#572) 3. Run `loom secrets reseal` with this build so document-source secrets and any existing source-push registry secrets are covered. No synthetic push setup is needed for an empty registry. (#562, #784) 4. Before migrating reserved mirror namespaces, resolve any migration refusal with the preceding build: erase the affected namespace contents, remove its code repository and delete the namespace, then retry. (#665) 5. Apply upgrade step 15's CLI grants, including ClickHouse `SELECT` on `loom.storage_authority`, the Postgres cell-state grants, connection limit and bucket settings. Complete step 16 before first-cell attach. (#668, #673) 6. Upgrade every router replica before attaching cells or upgrading cell processes. The cell processes read router state on each heartbeat; older routers do not have the required per-replica cache. Validate readiness and session tenancy markers after rollout. (#681, #693) 7. Keep the document-source limit at or below 50,000 while any older replica serves. After rollout, the live setting may be raised. (#662) 8. After all older replicas are gone, have an admin promote each existing shared definition again so its approved hash and token-stamped actor are recorded. The new live cap `memory_shared_definitions_max` defaults to 500. (#667) 9. For local assistant models, configure the model and endpoint, mount the assistant secret and add explicit network-policy egress to the model server's port. (#634) 10. Before enabling TLS, mount a certificate/key pair and change the upstream proxy to HTTPS in the same deployment window. Deployments using launcher-level `UVICORN_*` variables must remove them even when TLS remains off. (#756) 11. A desktop-launched coding client must find Node on its startup `PATH`; configure the client's environment when Node is installed only through a version manager. Upgrade Loom to 1.3.0 before relying on plugin 1.2.30's new server calls. (#573, #638) 12. Install an SDK extra or optional peer for each framework integration used. Separate plugin/community packages require their own installation and publication prerequisites; the release does not imply catalog approval. (#696, #750, #754, #763, #765, #766) 13. Before analyst provisioning, use a ClickHouse release that supplies `system.constraints`, as the pinned database release does. Missing CHECK metadata refuses the cutover. The operator must verify this on the actual database before the candidate starts. (#825) 14. Apply the additive query-history registration migration and upgrade every server and worker before registering a source or creating private candidates. `knowledge_query_history_enabled` defaults off; gap drafting also requires `knowledge_gaps_enabled`. Review the bounded read/pass/source/group/draft settings before enabling either feature. (#768) 15. For the private cell probe, configure Postgres and authentication, choose `cellProbe.port` and finish both web and worker rollouts before preparation. Use the Service origin for the probe URL. Configure this port only through the chart value, not `env`, `extraEnv`, `settingsFile` or `secrets.extra`. Set zero to disable it. (#806) 16. Apply the additive source-ACL schema before serving checked reads. Keep public mirrored creation disabled until the documented fleet, request, session and enablement protections are complete. (#799) 17. Apply migrations 103–106 in order for checked reads and marked accounting. Migration 106 pauses and waits for the three local refresh schedulers, changes their definitions and resumes them; complete the cutover on every refresh-owning replica. Existing ordinary aggregate types are preserved and prior input is not replayed. Keep mirrored creation disabled. (#799, #803) 18. Apply migration 107 before configuring named-user budgets. While any serving build is older or unknown, keep `LOOM_DEFAULT_DAILY_USER_COST_CAP_USD=0`, every namespace's `daily_user_cost_cap_usd=0` and `budget_alert_inbox=''`. The last value disables warning configuration; it does not require emptying an inbox and does not drain existing sends. The global user cap and `LOOM_COST_BUDGET_ALERT_SHARE` are live; the share defaults to 0.8. Do not rely on user caps during overlap. (#777) 19. Apply migration 108 and preserve its deployment protection state. Keep the mirrored-source switch and both private-drafting switches off on every server and worker through the mixed fleet. Verify ordinary undeclared client calls through the supported route, including the required Keeper proof. Missing metadata, backend identity changes or uncertain proof writes refuse admission; adding a promise header is not a repair. Only the documented complete mirror cleanup can clear protection, last; tenant erasure and a local switch change cannot. (#819) 20. Apply migration 109. Keep `LOOM_KNOWLEDGE_SOURCE_PUSH_ENABLED=false` unless opting into source push; this switch is separate from mirrored-source protection. Later setup needs a fleet supporting the registry's erasure, an explicit HTTPS `LOOM_PUBLIC_BASE_URL` origin and provider-specific confirmation. Source credential/item changes retire setup. Before rollback after use, disable push and complete the documented fenced registry cleanup, including historical versions, while preserving unrelated namespace data. (#784) 21. Documentation publication uses the existing site workflow. Automatic translation generation requires the documented restricted runner, initialized budget ledger and explicit cumulative allowance, which defaults to zero. This release does not configure that allowance or authorize generation. (#764) 22. Apply migration 110 after migration 109. It creates private event storage, adds the ordinary-table CHECK and updates union readers without moving, erasing or replaying existing rows or aggregate history. Complete its pause/wait/update/resume of both refresh definitions on every refresh-owning replica. Before grants, analyst provisioning verifies exact CHECK/table identities on every writer, freezes and drains the finite set of prepared INSERTs, then requires a zero contamination census. Existing contaminated rows remain untouched for explicit operator resolution. ALTER completion or client disconnection alone does not settle a prepared write. (#825) 23. `LOOM_CH_ANALYSIS_OBSERVER_URLS` is a restart-only list of additional trusted writer HTTP origins, default `[]`. The configured service origin is included and the existing service credentials are reused. Every writer UUID needs exactly one attested route. Complete native policy-catalog visibility, principal/role identity and non-replaying POST semantics are required; missing/duplicate writers, hidden metadata, redirects, HTTPS downgrade, identity drift or incomplete replies refuse provisioning. Intermediaries must preserve those semantics. Use the guarded analyst apply command for administrative setup. (#825) 24. Before an older build returns after mirrored enablement, settle outstanding writes and complete the documented mirror cleanup, including `agent_events_private`, marked receipts/audit figures and the cost rollup, before clearing deployment protection. Disabling a feature or downgrading schema alone does not establish privacy. Keep mirrored creation disabled until the separate fleet, client, restore and final erasure requirements are complete. (#803, #819, #825) 25. To opt into tracker feeds, create the dedicated record with separate writer/reader credentials, set the tracker organization, initialize the record and register its read-only contract views, then configure and schedule each allowlisted repository. Attest the supplied token's read-only permissions: a successful API read does not certify its grants. Renew installation tokens externally and configure each replacement before expiry. (#786) 26. Tracker visibility observations expire after 15 minutes and are not an instant permission mirror. Turns are bounded to 120 seconds, 100 items per page and 2–100 pages per stream. Incremental polling does not detect deletions. Stop every writer before erasing raw rows, comments and checkpoints or retiring a repository. Namespace deletion removes Loom's derived state and grants, not the external record or its backups. Rollback stops the scheduled writer; observation expiry hides serving rows without erasing the record. (#786) ### Release artifacts Release assets include the installer, stack bundle, SDK packages, coding-agent plugin archives and agent setup contract. Each carries a `<file>.sigstore.json` bundle for `cosign verify-blob`; verify the certificate identity for this release's `release.yml` tag and the workflow OIDC issuer. Older assets without a bundle cannot pass this file-signature check. Both container images also carry signatures. (#689) ### Maintenance checks Translation validation indexes protected ranges and table rows to avoid repeated scans on large reference pages. Request boundaries, labels and source offsets are preserved. (#834) Original-unit reconciliation permits correction of a faulty completed whole-page translation when the prepared English input is unchanged. Existing request bounds and changed-input replacement restrictions remain. (#839) Tracker reply parsing gains regression coverage, and CI action dependencies are updated. Additional tests cover budget bounds, memory-history diffs, audit privacy identifiers and port allocation. (#675, #705, #674, #700, #821, #812) ### What changed for clients since v1.2.0 373 operations served (was 361); ops +12 −0; request fields +22 −0; response fields +25 −0. #### New operations - `knowledge.gaps.draft` — role ADMIN, budget 30000 ms, MCP extended; request fields: gap_id, namespace, org - `knowledge.gaps.list` — role ADMIN, budget 300 ms, MCP extended; request fields: limit, namespace, org - `knowledge.move` — role WRITER, budget 8000 ms, MCP extended; request fields: namespace, org, source_uris, to_namespace - `knowledge.query_history.add` — role ADMIN, budget 30000 ms, MCP extended; request fields: cluster, databases, host, name, namespace, org, password, port, secure, user - `knowledge.query_history.list` — role ADMIN, budget 250 ms, MCP extended; request fields: fields, limit, namespace, org - `knowledge.query_history.remove` — role ADMIN, budget 1000 ms, MCP extended; request fields: name, namespace, org - `knowledge.source.parse_links` — role VIEWER, budget 50 ms, MCP extended; request fields: links, namespace, org - `knowledge.source.push_configure` — role ADMIN, budget 60000 ms, MCP extended; request fields: agent, enabled, name, namespace, org, session_id, user_id - `knowledge.source.push_confirm` — role ADMIN, budget 1000 ms, MCP extended; request fields: challenge_fingerprint, generation, name, namespace, org, signing_secret - `knowledge.source.push_status` — role ADMIN, budget 1000 ms, MCP extended; request fields: name, namespace, org, reveal_challenge - `knowledge.source.update` — role ADMIN, budget 60000 ms, MCP extended; request fields: add_items, add_links, include, name, namespace, org, remove_items, remove_links - `memory.definitions.list` — role ADMIN, budget 400 ms, MCP extended; request fields: namespace, org #### Changed operations - `assistant.ask`: response +`mirrored` - `code.callees`: request +`include_lessons`, `lesson_namespaces`; response +`lessons`, `lessons_left_out` - `code.callers`: request +`include_lessons`, `lesson_namespaces`; response +`lessons`, `lessons_left_out` - `code.context_pack`: request +`include_lessons`, `lesson_namespaces`; response +`lessons`, `lessons_left_out` - `code.impact`: request +`include_lessons`, `lesson_namespaces`; response +`lessons`, `lessons_left_out` - `code.outline`: request +`include_lessons`, `lesson_namespaces`; response +`lessons`, `lessons_left_out` - `code.search`: request +`include_lessons`, `lesson_namespaces`; response +`lessons`, `lessons_left_out` - `collection.list`: request +`include_document_counts` - `cost.budget_status`: request +`user_id`; response +`namespace_over_cap`, `user_id` - `knowledge.list`: request +`namespaces` - `knowledge.source.add`: request +`include`, `items`, `links`; response +`include`, `items`; budget_p99_ms 30000 → 60000 - `knowledge.source.check`: response +`checked`, `sampled` - `knowledge.source.inspect`: response +`include`, `items` - `knowledge.synthesize`: request +`user_id` - `memory.promote`: request +`approved_sha256`; response +`ignored_args` - `memory.search`: response +`term_leg` - `namespace.get`: response +`budget_alert_inbox`, `daily_user_cost_cap_usd` - `namespace.register`: request +`budget_alert_inbox`, `daily_user_cost_cap_usd` ### Other client changes - General search's optional `tracker` response section can carry `mode="search"`, `namespaces`, `namespace_limit` and cited `results`. Existing duplicate verdicts keep their shape. (#773) - `memory.search` hits include `agent`, identifying the writer when row identity is available; otherwise it is empty. (#696) - `collection.list` entries include nullable `document_count`. It is null unless `include_document_counts` is requested and counts documents directly in the collection. (#771) - Learning entries include `source_resource_id`, defaulting to an empty string. `learnings.review` promotes private definition candidates only to `memory`. (#768) - `cost.budget_status` user mode requires a namespace. `spent_24h_usd` is nullable, and `pct_of_cap` is null when user spend is withheld. `cap_source` adds `namespace_user` and `global_user`; nullable `namespace_over_cap` reports the independent namespace ceiling. Namespace get/list entries expose `daily_user_cost_cap_usd` and `budget_alert_inbox`. A positive namespace user cap overrides the global default; zero inherits, and zero at both tiers disables it. (#777) - `knowledge.synthesize` accepts `user_id`, default `'-'`; the Python convenience method forwards its optional user id. Transport user pins take precedence. Named-user caps cover supported synthesis and query expansion; unattributed work remains namespace-only. (#777) - Budget warnings arrive asynchronously on a later point check or status poll after the configured share is reached; there is no discovery scan. Repeated observations deduplicate within a UTC day for the same scope, inbox, cap and share. User warning payloads set `spent_24h_usd` to null for every recipient. Polling and watch streams filter warning user/session scope before pagination; ordinary task events retain inbox visibility. (#777) - Assistant answer tokens carry their caller's strict Boolean `session_protection` claim. Descendant answers cannot override it with a transport header, and ordinary delegation does not inherit it. Clients promising protection must stop automatic session-content capture after a mirrored read and preserve that state across child/resumed sessions. (#819) - Multi-entry MCP batches replace every response-bearing marked entry, including denied or empty entries, with `INVALID_REQUEST` and `Send this request individually`. Notifications remain silent. Single calls and one-entry arrays retain checked reads. (#803) - Protected history makes enforcing policy rules evaluate potentially matching marked participation as unknown before success/argument filters, unresolved references or negation; it can refuse reads as well as writes. `policy.check` reports `protected history unavailable` with null protected leaf values. Shadow policies remain non-enforcing. (#803) - Marked cost is disclosed only to a verified unrestricted platform admin or authorized namespace/whole-day totals without fine-grained filters. Fine-grained marked cost is withheld; marked-only latency has no ordinary samples and returns zero latency values. This does not disable internal budget checks. (#803) - Source-push setup operations are experimental, namespace-admin only and non-idempotent, including status. `push_status` reveals a pending verification token only with `reveal_challenge=true`; ordinary inspection, audit and idempotency replay omit it. The response's `enabled` reports the global switch, while `status` reports source setup state. (#784) - Provider notifications use the separate non-RPC `POST /hooks/knowledge/{namespace}/{source_id}/{generation}?org=<encoded-org>` route with provider proof, rather than an RPC bearer token. Bodies are bounded at 65,536 bytes. A 200 acknowledgement can represent an early synchronization notification and does not prove that work was requested or content ingested. Drive uses channel-token verification rather than signed delivery; other supported providers require their documented HMAC and identity checks. (#784) - `assistant.ask` adds optional response field `mirrored`, default false. Marked chat output begins with `mirrored: true`; marked SSE begins with `data: {"mirrored":true}` before answer text. HTTP/MCP success and error output retains the mark after serialization and protocol unwrapping; MCP structured and JSON text results preserve it, and a marked search summary follows a first JSON marker block. (#835) - The server fixes `answer_mirrors` before spend or model work from active mirrored registrations in the authorized namespace. Active registrations keep the answer marked even when ACL checks exclude every private row. Caller fields, headers, token-mint endpoints and CLI flags cannot supply admission. An initially ordinary answer cannot gain a mirror leg after source activation. Ordinary delegated children omit both `answer_mirrors` and `session_protection`; descendants cannot widen either claim with a header. Current document authorization still applies. (#835) - Incremental assistant text is provisional. A marked response retains required accounting after headers, joins producer cleanup through repeated cancellation and confirms its required private cost row before terminal completion. Failed required capture or delivery cannot complete successfully. Whole responses and checked source frames retain accounting before publication. (#835) - Python and TypeScript assistant streams require `[DONE]` before returning a completed answer. Incomplete EOF fails; text after `[DONE]` is ignored while later transport errors still propagate. Stream completion does not qualify durable automatic capture or privacy state across child/resumed sessions; clients promising protection must satisfy the separate session contract. (#835) Signed-off-by: zlareb1 <[email protected]>
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):
MCP tool descriptions now name every other listed tool by the tool name the client calls (
loom_memory_update, notmemory.update), and name an op the listing leaves out by its op name with "(via loom_op)". Theloom_opdescription says how to list ops and their arguments and gives an example call. On a deployment whoseLOOM_MCP_TOOLSETisreadonly,loom_opcalled with no?toolset=now routes read ops only, as its listing already said.Why
A review of the default
tools/list(13 tools) found three defects in the descriptions:memory.set,memory.update,memory.delete), while an MCP client is listedloom_memory_setand so on. A model that reads "call memory.update" looks for a tool by that name and does not find it.action=delete, clear, erasure) overlap, and no description said in one place which to pick.loom_opis how a client reaches everything else (clear, erasure requests, related memories, evidence, digests), but its description did not say how to find an op or what its arguments look like.The description texts are shared across toolsets, and an op listed on one toolset is unlisted on another (
memory.pinis listed oncoreand not oncoding;memory.clearis listed onalland nowhere else). Hand-editing names into the texts cannot be right on every listing at once. So the texts keep naming ops by op name, and the listing renders each text for its own client:name_ops_for_listinginserver/transport/mcp_op.py(which also holdsTOOLS_BY_NAMEnow) replaces an op the listing carries with its tool name, and adds "(via loom_op)" after the first mention of an op the listing does not carry butloom_oproutes on that connection. An oploom_opdoes not route there (a hidden op, a write onreadonly, anything onassistant) keeps its op name, unmarked. Field descriptions in a listed input schema, and in the output schema thefullprofile keeps, are rendered the same way (loom_search'sbodiesfield says "Fetch the rest of an excerpt with loom_memory_get." oncore). The 18 hand-written "(callable by name)" and "(via loom_op)" markers in the texts are removed, since the renderer now adds them.The pick lines:
memory.setcarries "Other writes": pin guards a fact from later conflicting writes, lock from change or deletion, apply changes many. The coding tier keeps the line too, and there the three ops render with "(via loom_op)": a coding session still hears "never forget this" or "freeze this", and the line costs about 30 tokens against the wrong write path. The removal line onmemory.deletestays on coding for the same reason. To stay under the 480-token ceiling per description, two clauses of the TTL paragraph got shorter.memory.deletecarries "WHICH REMOVAL": one key; many by filter or search (apply withaction=delete); refusing later writes (blacklist add); every memory of an agent or user (clear); a user's erasure request.loom_op's text is built per listing (mcp_op.loom_op_description); on a read-only connection its first sentence says it runs read ops, so the compact profile keeps that too. Its first sentence says how to find an op and how to call one ({"op": "help", "query": "<words>"}, then{"op": "memory.related", "arguments": {"memory_key": "deploy_day"}}), so the compact schema profile, which keeps the first paragraph cut near 280 characters, keeps both. It then offers by name memory.evidence and memory.digests where the listing does not show them as tools andloom_oproutes them:core,coding,tracker,tasksandatomicname both;allandreadonlylist both as tools, so they name none, andreadonlysays the connection runs read ops only. The help answer lists up to 15 matches with their arguments, and the three input fields carry a description.memory.clear(an admin wipe) anderasure.request(a data-subject flow that coding, tracker and task sessions do not file) are not among the examples;memory.delete's WHICH REMOVAL line names both, where a model is choosing how to remove something. The text is built where the descriptor is (_synthetic_tool_descriptors(toolset, listed, writes)), so the builder returns a whole descriptor. The example call's op (memory.related) is unlisted on every toolset, astest_loom_op_text_is_built_for_its_listingholds.Tool names do not change.
Scope and risk
Touches the text a model reads (
tools/listdescriptions, theloom_opinput schema's field descriptions, theinsteadtext of a hidden op's refusal, the action manifest's descriptions) and one routing rule:routes_writesresolves the toolset against the deployment default. That rule is here because the listing, the refusals and the primer render from it, and they disagreed with the router on areadonlydefault. Tool names, input schemas of registry ops and theloom_ophelp catalog are unchanged. The help catalog's purpose lines still read the source texts, which name ops by op name: that is the nameloom_optakes.The
insteadtext of a hidden op'sOP_NOT_ON_MCPrefusal is rendered for the caller's listing too, so "call memory.get per key, or memory.list with a key prefix" reads "call loom_memory_get per key, or memory.list (via loom_op) with a key prefix" oncore. On a read-only connection, the two hidden ops whose alternative is a write (memory.bulk_set→memory.set,memory.delete_version→memory.delete, the_WRITE_ALTERNATIVEset) get a refusal that says the connection is read-only; every other refusal keeps its reason, which a test checks for every_INSTEADentry.route,catalogand the renderer share one routing rule,_routed(op, writes), withreachableas its per-toolset form; a refusedloom_opcall resolves the toolset more than once (once for routing, once inhidden_refusal), which costs a settings read and leaveshidden_refusal's signature the same for its two callers and the tests (one rule,_routed); a listing works outroutes_writesonce and passes it to the renderer.mcp_op.reachablenow also answers false for a hidden op, so the renderer,loom_op's examples and the lints share one predicate.mcp_op.routes_writesresolves the connection's toolset against the deployment default first, as the listing does: on a deployment whoseLOOM_MCP_TOOLSETisreadonly, a connection with no?toolset=used to be listed as read-only whileloom_opstill routed writes; it now routes reads only, and its listing, its refusals and the primer agree.The
mcp_toolsetsetting's text (server/settings/catalog.py, regenerated intodocs/reference/configuration.md,loom.example.yamland the settings schema) says thatloom_oponreadonlyroutes read ops only.Source texts name other ops by dotted op name; the remaining hand-written
loom_code_*andloom_memory_*names in the texts are converted, anddocs/development/adding-an-operation.mdstates the rule.The session primer (
initializeinstructions andloom_activate) marks an op its listing leaves out the same way,`memory.set` (via loom_op)rather than`loom_op` (op `memory.set`), so a session reads one convention from its first turn: the primer's rules go through the same renderer (the text before and after the caller's default workspace is rendered on its own and joined withkeep_first_marks, so the workspace goes in as data and an op is still marked once), so an unlisted op is marked once, on its first mention, and never inside a parenthesis; theinitializeinstructions join the rules and the mentor line, each rendered on its own, andmcp_op.keep_first_markskeeps each op's first mark across the two, leaving quoted values as written. That includes the cached mentor hint on the handshake, the per-call mentor hint on a tool result, and the hints incontext.pack'smentorsection and inmentor.brief(the MCP transport builds onemcp_tools.mentor_namerper tool call, which works the listing out on first use, setsmentor.hint_namerto it around the handler and names the per-call hint with it; the pack section drops each hint's note and is rendered whole, so an op is marked once and the tail is named too, and the brief renders each hint and each plane'swhen; over HTTP they read as stored. A brief is advice to whoever reads it, so it is named for the asker's listing even when it is about another agent: onassistant, which has noloom_op, the ops it lists become tool names and the rest keep their op names): each is rendered for the connection's listing (a per-call hint is clipped to its length budget with its note whole,mentor_rules.clip_keeping_note, as a profile hint already was; the budget bounds the stored text, and rendering adds at most one tool-name or marker difference per named op, which a test bounds; since MCP strips the note, the op it names is also named in the hint text: an AST lint checks each call rule's text against its note, and a test runs every profile and call rule that echoes a caller value with a typical value, which keeps all its advice, and with a 70-character value, which keeps every closing quote and the noted op;code_index_unused,coordination_loop,tracker_unusedandsearch_identifier_querywere shortened to fit, andcode_index_unusedno longer listscode.impact, which its text never explained), without the core-listing note the stored hint text carries (mentor_rules.without_listing_note). The hint texts follow the same source rules: they namesearch.query(the oploom_searchruns, which an HTTP caller can call too and every MCP listing renders asloom_search), not the hiddenmemory.search; their op tuples carrysearch.querybesidememory.search, so adoption counts a follow-up from either transport, and the reading rules countsearch.queryamong recalls (RECALLS), so following their advice clears them (the abstain rule still counts the memory searches, whose rows carryout_abstain); write no op as a call (run.complete'smemories_used, notrun.complete(memories_used)), and the chunk-credit hint points at the hit'sparent_memory_keyread withmemory.getrather than the hiddenmemory.bulk_get; a lint over the module's prose strings holds this (conflict hints, which name the dashboard as the actor, excepted).loom export-actionsrenders its manifest's descriptions the same way: an op in the manifest is named by its tool name, any other by its op name.On a listing with no
loom_op(assistant), a text may name only tools that listing carries;facts.traverse,facts.pathandknowledge.inspectget assistant texts derived from the shared ones without their pointers tofacts.relatedandknowledge.ingest_status(the other listings keep those pointers, marked "(via loom_op)"). Field and model texts that named ops a listing cannot reach are reworded:memory.search'scategoryfield no longer names the two category ops (a field description is the same on every listing and in the SDK docstrings and HTTP reference, so this loses the pointer there too; the ops stay findable throughloom_ophelp), and two nested model docstrings no longer name the hiddenmemory.search; the SDK op tables anddocs/reference/operations/memory.mdare regenerated for them. Lints now hold, on every toolset and over field descriptions too, that no text names a hidden op, that no source text writes an op as a call (op(args)) or inside a longer code span, that no rendered marker sits inside a parenthesis, and that the assistant listing names no synthetic tool it does not carry. Aloom_opcall refused on a read-only connection suggests only ops the connection routes.resolve_toolsetmoves toserver/operations/toolsets.pybeside the other pure toolset logic, so the routing rule reads it without importingmcp_tools(hidden_refusalandroutestill importmcp_toolslazily, for the listed tool names and the assistant check). A listing computes its ops and tool names once and passes them to the synthetic descriptors.A span in single quotes whose quotes touch no letter, and whose opening quote does not follow a code span (
`op`'s), is left as written: it holds a value or the caller's own words, a hint that asks the agent to act on a value points at it (set_duplicatenames the result'sduplicate_of,get_missthe call's own key) rather than echoing a copy the clip or the quoting could change, and every other hint quotes the caller values it echoes with one helper (mentor_rules._quoted: single quotes, no quote or line break inside, an ASCII...at the cut so the HTTP header keeps it, cut to 40 characters, shared by at most three values when a hint echoes several, the rest counted as+K, so the clip never cuts a closing quote), so a key such as'tracker.flaky' was set 5 timesstays as written.mcp_primer._tool_refskeeps a dict of the backticked names its templates read, rather than a set, so the templates stay as they are.mcp_tools.name_ops_for_toolsetandmentor_text_for_toolsetare the one way the primer, refusals and mentor lines render text for a listing. A hint's "(call X via loom_op)" note is matched only at the end of the hint, so an echoed value that spells one is not taken for it, and the handshake mentor line puts the hint text last. A per-call hint's note is kept whole byclip_keeping_noteat the clip rather than built separately in each of the four call rules that add one.The renderer matches a dotted name or
loom_*name only when it is a registry op or tool, so response field paths such asmemory.next_page, citation tags such as[knowledge.query#1], quoted values such as'memory.delete'and paths such as/v1/memory.setare left alone; a possessive is a reference, and its marker goes after the's.loom_op's own description is built for its listing rather than rendered, since it names ops by the dotted nameloom_optakes.Compatibility, rollout and rollback
tools/listdescriptions change text;loom_op's input properties gain adescription. On a deployment whoseLOOM_MCP_TOOLSETisreadonly,loom_opcalled with no?toolset=now refuses a write op (UNKNOWN_OP, "on a read-only connection"), as it already did for?toolset=readonly; a request that names another toolset is unchanged.mentor.brief'srecall_by_key_onlyhint reportsevidence.recalls(memory searches,memory.askandsearch.query) in place ofevidence.searches, sincesearch_abstainskeepssearchesfor memory searches only; the dashboard prints evidence keys as they come.readonlydeployment, aloom_opwrite with no?toolset=still runs on an N-1 replica and is refused on an N replica; the window only narrows access and ends with the upgrade.Tests
The default listing before and after (
_tools_descriptor()oncore):Across every toolset (
corewith and without code tools,coding,atomic,tasks,tracker,readonly,all), dotted references to a listed tool go from 14, 14, 7, 3, 18, 3, 6 and 50 to 0, outsideloom_op's own text, which names one example op in its example call.tests/unit/test_mcp_listing_budget.py: the reference lint now checks, on every toolset includingreadonly,assistantand thecoding+trackerunion, and over each tool's description and field descriptions, that no text names a listed op by its op name, and that each unlisted oploom_oproutes there carries "(via loom_op)" (word-bounded). A unit test covers the renderer (first mention only, readonly writes, hidden ops, noloom_opon the listing, a tool-name reference to an unlisted op), and the 480-token ceiling per description now runs on every listing, since a text's length depends on the listing. Further tests hold thatlisted_tool_names(what a refusal renders against) equals each listing's tool names, that a build leaves the source texts unchanged, and that no source text carries a hand-written "(via loom_op)". The numbers above come fromasyncio.run(server.transport.mcp_tools._tools_descriptor())withsettings.mcp_toolsetset per toolset. The listing ceilings move with the measured growth:core5,800 to 5,950,corewith code tools 9,300 to 9,475,coding8,850 to 9,100. The growth is theloom_optext and the two pick lines.asyncio.run(_tools_descriptor(toolset=...))withsettings.mcp_code_tools = True, timed withtime.perf_counter:core6.8 ms before, 7.9 ms after;all27.5 ms before, 31.0 ms after.tests/unit/test_mcp_loom_op.py: the descriptor ceiling moves from 220 to 260 tokens (both examples shown, measured with and without the read-only sentence: 246 and 256); on every toolset the listedloom_optext equalsmcp_op.loom_op_descriptionfor that listing, and every op it names is unlisted there and routed byloom_op.tests/unit/test_mcp_coding_toolset.pyholds the WHICH REMOVAL line oncoreandcodingand every removal path it names.tests/unit/test_hidden_op_says_why.py: a refusal'sinsteadtext oncore,codingandreadonly, and areadonlydeployment default with no?toolset=(a write throughloom_opis refused, the text says reads only).test_loom_op_text_is_built_for_its_listingholds which examples each toolset'sloom_optext shows.test_a_direct_call_to_a_hidden_tool_names_ops_for_its_toolsetcovers the directtools/callrefusal oncoding._ECHOESintests/unit/test_mentor.py) forset_churnandsearch_identifier_query; a test pins the set of rules that echo a caller value, so a new one needs an_ECHOESentry. That pin, and the lint that each call rule names its note's op, read the rule source (counts of_quoted/_quoted_listcalls,text + _unlisted(...)) rather than sweep every rule with a sentinel value: no one input fires every rule (they gate on different facts, and some exclude each other), and the echo table already checks each echoing rule's rendered output, so the pin is the tripwire that brings a new quoting call into review. On a read-only connection a refusedloom_opcall suggests only read ops, which a test checks.test_compact_loom_op_keeps_discovery_and_the_call: oncoreandall, the compactloom_optext still carries the help call and the example call.tests/unit/test_action_schema.py: the manifest'smemory.applytext namesloom_memory_set.test_the_compact_profile_keeps_the_tool_names).tests/unit/test_mcp_coding_toolset.py,tests/unit/test_op_reach_census.py: compare against the rendered text.docs/reference/operations.mdandoperations/code.mdare regenerated (python -m scripts.codegen.docs_reference):code.callees' summary now namescode.callers.make lint,make typecheck,ruff format --check, Prettier on the changed pages, and the full unit suite.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. Checked the rendered listing of every toolset by hand and the before/after counts 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 (it runs in CI on this head; the merge waits for it).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