Repository navigation
fix(release): child version on streamed custom tools and placeholder-carrying dry-run outputs - #10431
Merged
Merged
Conversation
…d dry-run placeholders - A streamed custom tool titled workflow_executor no longer records a child deployment version: the span factory trusts the raw tool name, which still carries the custom_ prefix on that path. A workflow tool span also stops repeating the version in its output, like a workflow block span. - A dry run now marks a block whose output carries a placeholder it was handed (a Function formatting a stubbed write, an Agent whose workflow tool stubbed one), so mocking from that run refuses the block instead of replaying made-up values. - Dry-run samples reduce an MCP outputSchema with the shared, node-budgeted reducer, and the placeholder scan looks only for whole nine-digit runs in a string. - Reattach a SCIM integration test's doc comment to the mock it describes.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
[Medium impact] The PR appears safe to merge; no new actionable issues remain. SummaryThis PR fixes child-version fields on tool spans and prevents recorded placeholder values from being reused through
Reviews (3) · Last reviewed commit: "fix(release): zero-padded placeholder nu..." · Reviewed by Greptile |
Contributor
There was a problem hiding this comment.
1 issue found across 10 files
Confidence score: 3/5
- In
block-executor.ts, a placeholder beyond the preview can be missed, causingmocksFromto replay made-up values. Scan the full block output before replacing large values with references.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/sim/executor/execution/block-executor.ts">
<violation number="1" location="apps/sim/executor/execution/block-executor.ts:472">
P2: Scan the full block output before large values are replaced with references; otherwise a placeholder beyond the preview can be missed and `mocksFrom` can replay made-up values.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…chema unions, surface-neutral code-write hint - The placeholder number scan matches a zero-padded run (0900000003) again, as the digit-run scan it replaced did. - An output schema field declared as a single-member anyOf/oneOf reads as that member instead of untyped, so dry-run samples keep it. - A dry run's code-write failure says which block to allow instead of naming a CLI flag that tests, the API and Copilot do not take.
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. |
3 tasks done
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.
Follow-ups from the v0.9.66 staging → main audit (#10356) of #10383, #10413, #10416 and #10381.
Fixes
workflow_executor(custom_workflow_executor) reached the span factory after the prefix was stripped and recorded whateverchildDeploymentVersionIdit returned. The factory now trusts the raw name; the Agent's non-streamed scrub stays. A workflow tool span also drops the key from its displayed output, as a workflow block span already does.mocksFromreplayed them. The policy now also marks a block whose output carries a registered placeholder.Cleanups
outputSchemawith the sharedtoMcpToolOutputShape(node and depth budget) instead of a separate unbounded walker (feat(workflows): dry runs stub reads that depend on a stubbed write, and flag MCP tools servers call read-only #10416).Tests
trace-spans.test.ts: a streamedcustom_workflow_executorrecords no version, and a workflow tool span's output omits it. Both fail before the fix.dry-run.integration.ts: mocking from a dry run's Function that formatted a stubbed write is refused. It fails before the fix; the whole file (71 tests) passes after it against a local Postgres.