Bound the result stash per runtime, page by byte range, and partition results by identity - #546
Merged
Merged
Conversation
… results by identity ConnectaConfig.results bounds the get_result stash at 8 MiB and 64 entries per runtime by default, with shared accounting that reserves capacity before concurrent writes and reclaims expired backing entries; a refused stash keeps the call successful with its preview and a paging-unavailable notice. Stashed results are stored as a byte-addressable envelope so get_result decodes only the requested page instead of re-encoding the whole result per page. The stash partition now derives from any authenticated subject or principal, not only from providers that declare an activity namespace. The memory store reclaims expired entries with bounded rotating work on set. authorize_connector already honored tool-level grants; the rule is now documented and pinned (#538, #540, #541, #543). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
zackbart
force-pushed
the
fix/followup-results
branch
from
September 16, 2026 19:16
b6434d0 to
507b4df
Compare
This was referenced Sep 16, 2026
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.
Closes #538, #540, #541. Also item 2 of #543.
results.maxStashBytes(default 8 MiB) andresults.maxStashEntries(default 64) bound theget_resultstash per runtime. Accounting is shared across subjects, reserves capacity before concurrent writes finish, keeps a failed write charged until its backing entry is deleted, and reclaims expired entries before reuse. A refused stash returns the preview plus the paging-unavailable notice; the call stays successful.activityActorNamespace; open deployments share one partition, and the docs say so.set.authorize_connectoralready honored tool-level grants (adocs.readgrant may start thedocshandoff; no grant means "Unknown connector"). Documented and pinned; the 0.24.2 surface list now includesconnecta.describe.Full
npm run checkpasses on this branch.🤖 Generated with Claude Code