Repository navigation
fix(organization-search): refuse runs resumed by someone else, single-source operations, surface-neutral shared tools - #10562
Open
waleedlatif1 wants to merge 6 commits into
Open
waleedlatif1 wants to merge 6 commits into
waleedlatif1 wants to merge 6 commits into
Conversation
…nt log visibility; single-source operations; surface-neutral shared tools; hide the block without Search
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
[Medium impact] The PR appears safe to merge; the completed-branch fix closes the previously reported gap. SummaryOrganization Search now refuses reads after another person or a workspace key resumes a run.
|
Contributor
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
This comment has been minimized.
This comment has been minimized.
…r a workspace key
…thout pausing again
Collaborator
Author
Collaborator
Author
|
@cubic-dev-ai review this PR |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
This branch was previously deployed
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
Follow-ups to the Organization Search workflow block (#10534):
enqueueOrStartResumenow records the resumer ({ subjectUserId },nullfor a workspace key) on the pause point, so queued and background attempts read it back. The resume carries it asmetadata.resumedByandexecutorDelegationOrigin.resumedBy.createExecutorOrganizationPrincipalrefuses a run resumed by anyone other than its person.organizationis inNATIVE_RESOURCE_BLOCK_TYPES, sodocsLinkresolves; the integrations page is generated.ORGANIZATION_SEARCH_OPERATIONSinlib/internal/organization-search/tool-ids.tsnow drives the block dropdown,tools.access, the tool ids and the internal tool registry, for all five operations. Its comment lists every step for adding one.live.notes/live.accountsflag explanation are back.organization-tools.tsmoved fromlib/knowledge/mcp/tolib/knowledge/application/, andread-budget.tsmoved tolib/knowledge/search/.callerErrorMessagenow usesmessageForOrchestrationErrorinstead of the v2 presenter. A parity test confirms the MCP messages are unchanged.search_people, since live search, read, activity and chat history already check it in their use cases.organizationDelegatedServicesis dropped fromDeniedKnowledgeDelegation.resolveIntegrationAccessdeniesorganizationwhen the host'sfeatures.organizationSearchis false, the same way it hidescredential_group. The server-side check is unchanged.Type of Change
Testing
lib/internal/organization-search/execute-tool.integration.tscovers:lib/workflows/executor/pause-persistence.integration.ts: the resumer is recorded for a resume that starts and for one that waits in the queue.lib/knowledge/application/organization-tools.test.ts(parity with the v2 messages),tools/organization/utils.test.ts,lib/integrations/access.test.ts, and the resume route test, which now expects the resumer to be recorded.bun run generateandlint; audits: tool-effects, boundaries, file-names, comment-hygiene, utils, explicit-any, source-conventions, test-patterns, tool-registry-boundary, actorless-executor-operations, tool-request-boundary, api-validation:strict, client-boundary, integration-access, canvas-sentences, integration-catalog, organization-egress.Checklist
test-auditauthoring gate)