Skip to content

improvement(cli): primer names the child-workflow call and scopes the both-renamed rule - #10395

Merged
waleedlatif1 merged 2 commits into
stagingfrom
improvement/primer-rename-child-call
Nov 25, 2026
Merged

waleedlatif1 merged 2 commits into
stagingfrom
improvement/primer-rename-child-call

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

Two primer lines that benchmark runs on the merged #10388 still stumbled on:

  • Renames: "Renaming both (one block per apply)" led a run to split display-name renames and structural edits into two applies. The Identity line now says that display names or consts rename in any number per apply, alongside any other edits. The one-block limit applies only to renaming a block's const and its display name together.
  • Child calls: the call syntax was only in .sim/examples/agents.ts, so runs grepped for it. The References line now shows runWorkflow('Name', { workflowId: childWorkflow('<key>') }) next to its c.result.data.<field>.
  • Byte budget: both primers stay within 4096 bytes (workflow 4006, workspace 4080). The cuts are shorter wording only, with no rule dropped:
    • the retry example;
    • "match" for "tie it to the old block";
    • (no tsc);
    • the workspace intro and deploy lines.

Type of Change

  • Improvement

Testing

  • bun run generate, bun run lint, bunx tsc --noEmit -p packages/sim-cli, sim-cli vitest (1158 passed, including the primer budget and leaf-command tests), bun run build (declaration emit), bun run check:audits.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Nov 25, 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 25, 2026 1:44am UTC

Request Review

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Clarifies when block renames can share an apply and shows the child-workflow call directly in the primer.

  • Source primers show child calls and narrow the combined-rename limit.

Reviews (2) · Last reviewed commit: "fix(cli): the primer retry example keeps..." · 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.

No issues found across 1 file

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

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 25, 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 1 file

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 cfb0809 into staging Nov 25, 2026
84 checks passed
@waleedlatif1
waleedlatif1 deleted the improvement/primer-rename-child-call branch November 25, 2026 09:55

This branch was previously deployed

1 inactive deployment
Preview — 06903a05 Deployed Nov 25, 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