Repository navigation
fix(organization-search): prove resume steering end to end, skip locked Slack refreshes, parse tool calls once - #10591
Merged
Conversation
…ck refreshes without waiting on another sweep, parse each tool call once - 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.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryAdds end-to-end checks for resume steering and changes Slack refreshes to skip locked rows.
|
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 from the post-merge audit of #10562, #10572, #10573 and #10575. The audit found no security or correctness bugs.
Resume steering, tested end to end (
lib/workflows/executor/resume-steering.integration.ts). Real Postgres and the real executor run a deployed workflow that pauses for approval and then reaches an Organization Search block:I removed each of the three audited lines locally:
human-in-the-loop-manager.ts(...resumerOf(...)into the resume metadata): red.execution-core.ts(metadata.resumedByintoexecutorDelegationOrigin): red.snapshot-serializer.ts(resumedBycarried into the next pause's snapshot): still green.resumerOfalso reads the resumer recorded on every earlier resumed point of the paused row, and those points keepresumedByuntil a point returns to paused or failed. The serializer copy is redundant defense, so removing it does not reopen the hole. I kept it.catalog.test.ts: dropped the three assertions that held by construction (registry key, tool registry entry, block access). It now checks, for every tool and every operation it performs (both ofsearch_people's), that the operation admits'executor'in its organization delegated services; this goes red when'executor'is removed fromlistActivity. It also checks that the Assistant has the tool, with the Assistant-name map moved into the test.Slack identity sweep:
leaseNextthen selects withFOR UPDATE SKIP LOCKED: a row another sweep holds is skipped, not waited on, and no lost race ends the sweep early.Simplifications:
ORGANIZATION_TOOLS[name].prepare(input)parses once and returns the operation, cost and run. The workflow handler no longer parses twice; it answers invalid input with the same 400 shape.name(it is the key),title(derived from the label in sentence case) andassistantName(only the test used it).server.ts, its only consumer.my-activitycan't be known when the static config is built; the operation refuses at run time.MCP
tools/listis byte-identical to staging. Generated block metadata, contracts and the Assistant contract are unchanged. No migration and no mothership companion.Type of Change
Testing
resume-steering.integration.ts(3) and the Slack lock-skip case inslack-identities.integration.ts.catalog.test.ts(12) passes.Checklist
test-auditauthoring gate)