Skip to content

fix(release): child version on streamed custom tools and placeholder-carrying dry-run outputs - #10431

Merged
waleedlatif1 merged 2 commits into
stagingfrom
fix/release-audit-sim66-v0966
Nov 26, 2026
Merged

waleedlatif1 merged 2 commits into
stagingfrom
fix/release-audit-sim66-v0966

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Follow-ups from the v0.9.66 staging → main audit (#10356) of #10383, #10413, #10416 and #10381.

Fixes

  • Child version on streamed custom tools (feat(logs): record which deployment version of a child workflow ran #10383). On the streaming path, provider tool calls keep their raw name, so a custom tool titled workflow_executor (custom_workflow_executor) reached the span factory after the prefix was stripped and recorded whatever childDeploymentVersionId it 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.
  • Mocking from a dry run that handed a block a placeholder (feat(workflows): allow and mock child-workflow blocks, and mock from a recorded run #10413). A block was marked as answered with a placeholder only when its own call was stubbed. A Function formatting a stubbed write's output, or an Agent whose workflow tool stubbed one, recorded made-up values unmarked, and mocksFrom replayed them. The policy now also marks a block whose output carries a registered placeholder.

Cleanups

Tests

  • trace-spans.test.ts: a streamed custom_workflow_executor records 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.

…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.
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Nov 26, 2026 7:35pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no new actionable issues remain.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issues remain.

Summary

This PR fixes child-version fields on tool spans and prevents recorded placeholder values from being reused through mocksFrom.

  • Workflow tool spans keep deployment versions out of displayed results.
  • Dry-run blocks stay marked when their outputs carry placeholders.
  • Dry-run MCP samples follow the shared output-schema limits.
  • The dry-run write notice names the block in its allow hint.
  • The SCIM integration test has one less blank line.

Reviews (3) · Last reviewed commit: "fix(release): zero-padded placeholder nu..." · Reviewed by Greptile

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 10 files

Confidence score: 3/5

  • In block-executor.ts, a placeholder beyond the preview can be missed, causing mocksFrom to 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.
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 13 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit a6e91c2 into staging Nov 26, 2026
84 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/release-audit-sim66-v0966 branch November 26, 2026 21:31

This branch was previously deployed

1 inactive deployment
Preview — 4e66d276 Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant