You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit af68b1e
Browse filesBrowse the repository at this point in the historyBrowse files
fix(organization-search): prove resume steering end to end, lease Slack refreshes without waiting on another sweep, parse each tool call once (#10591)
- An integration test runs a deployed workflow that pauses for approval: resumed by its starter, the Organization Search block runs; resumed by another member, it refuses, and keeps refusing after a later timer resume.
- The catalog test checks what construction does not guarantee: every operation a tool performs admits the executor delegation, and the Assistant has the tool.
- The Slack identity sweep enrolls new organizations once, then leases with FOR UPDATE SKIP LOCKED, so a row another sweep holds is skipped rather than waited on.
- An organization tool call parses its input once (prepare), so the workflow handler no longer parses twice; catalog entries drop the name and title they repeated; the Search MCP's tool runner lives in the server that uses it; block descriptions point only to the operations the block lists.
`Read live documents using the exact document IDs returned by ${nameOn(surface,'search')}: documentId for one, or documentIds to read several in one call rather than one call each. ${surface==='mcp' ? 'A link the user shares' : 'A link'} to a Google Drive, Gmail, Calendar, Slack, Jira, Confluence, GitHub, GitLab, Linear, Notion or Fireflies item reads the same way, without searching for it first. Access and the admin’s source settings are checked again on every read. When a document’s hasMore is true, pass its next.startChunkIndex and next.startOffset with the returned documentId to continue. Cite citationUrl when available.${surface==='workflow' ? RUN_LOGS : ''}`,
`Look up people in this organization’s directory by name, email, title, department, or location, with query across all of them or a filter per field; managerPersonId lists someone’s direct reports. Returns each person’s title, department, location, email, start date, time zone, Slack user ID, manager, and direct report count. When exactly one person matches, or with a personId, returns that person with managerChain (direct manager first) and directReports. Covers only this organization’s people; use ${nameOn(surface,'search')} for customers, vendors, and other outside contacts.${offers('search_experts') ? ` Who knows a topic: ${nameOn(surface,'search_experts')}.` : ''}${surface==='workflow' ? RUN_LOGS : ''}`,
: `List the questions the person running the workflow asked Sim between startDate (inclusive, 7 days before endDate by default) and endDate (exclusive, now by default; at most 92 days apart), newest first unless sortBy is oldest: the Assistant, agent chats, the Slack app and Search MCP chat. Each carries its time, a link to the conversation and, with includeAnswers, the start of the answer. Only their own conversations that still exist are listed. The first page carries total, the number of questions in the window; follow nextCursor for the next page.${RUN_LOGS}`,
: `${SEARCH_EXPERTS_DESCRIPTION.replace('items you can read','items the person running the workflow can read').replace('your own access','their own access')}${RUN_LOGS}`,
return`List what ${who} did across ${their} connected sources in a date window, always newest first, each at its activity time: Slack messages and Gmail mail ${they} sent (replied when the message answers another), Google Calendar meetings ${they} organized or accepted (attended), Jira issues ${they} created or that were assigned to ${surface==='mcp' ? 'you' : 'them'}, Confluence pages ${they} created or edited and comments ${they} wrote, GitHub issues and pull requests ${they} opened (created) and commits ${they} authored (committed), Linear issues ${they} created, Google Drive files ${they} created or edited, and the GitHub issues and pull requests and Linear issues ${they} are involved in or assigned (involved, at their last update, which may be someone else’s). Use it for standups, weekly reports and open action items. Defaults to the last 7 days; the window spans at most 92 days. Each item has a documentId for ${nameOn(surface,'read_document')} and, when available, a citationUrl to cite. While nextCursor is present, call again with it and the same startDate, endDate and source (topK may change): pages continue without gaps, though a source that failed and recovers on a later page can return entries older than that page. sources reports every source: not_connected and reconnect carry connect.url, where ${they} connect that account. unsupported names connected sources this listing does not cover; search those for the same dates with the filters each supports. For a colleague’s activity, use ${nameOn(surface,'search')} with involving.${surface==='workflow' ? RUN_LOGS : ''}`
0 commit comments