Export Interchange defineTool memory tools (CL-5354) - #28
Merged
TheGreatAxios merged 5 commits intoAug 5, 2026
Merged
Conversation
Workflow agents install @corbits/memory/tools with hub credentials and call the mounted tenant memory routes. Tools never take model-supplied identity and do not touch the in-process plane.
README and product docs now lead with mount plus the shipped @corbits/memory/tools factories instead of OpenAPI-MCP only.
Share AddRequest/SearchRequest (and limit bounds) between routes and defineTool parsers without importing the plane. Collapse tool factories through defineMemoryHttpTool; harden the HTTP client (multi-slash base, empty/invalid JSON); strip adversarial identity args and coerce LLM string limits. Expand tools tests accordingly.
Arktype keeps undeclared nested keys; rebuild share field-by-field so model junk under share never rides the wire. Add regression tests for nested share and search/list identity strip.
Derive MemoryAddBody/MemorySearchBody from arktype infer; share ListQuery and parseListLimitString with the list route; clip long HTTP error bodies; document host install checklist; fix search wire table and find→search grant-tag action in IMPLEMENTATION and AUTHZ docs.
TheGreatAxios
deleted the
cl-5354-export-interchange-definetool-memory-tools-from
branch
August 5, 2026 15:31
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
Export installable Interchange
defineToolfactories from@corbits/memoryso workflow agents can call mounted hub memory routes over HTTP.memory_add/memory_search/memory_listunder@corbits/memory/toolsmemoryBaseUrl,memoryTenantId,memoryAuthToken); no plane inject, no model-supplied principal/tenantexports["./tools"]+interchange.toolsCloses CL-5354.
Test plan
bun run typecheckbun test ./src(304 pass, including newsrc/tools/tools.test.ts)