Skip to content

fix(sim-cli): release audit follow-ups for the source loop - #10459

Merged
waleedlatif1 merged 3 commits into
stagingfrom
fix/release-audit-sim-a4-post
Nov 27, 2026
Merged

waleedlatif1 merged 3 commits into
stagingfrom
fix/release-audit-sim-a4-post

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

Type of Change

  • Bug fix

Testing

  • Each new test fails on the staging code and passes with the fix: chat guides, untested deploy gate, --run input, blank/long names, list parsing
  • bun run test in packages/sim-cli (1283 passed), tsc for sim-cli
  • check:cli-docs, check:docs, check:comment-hygiene, check:test-patterns, check:file-names, check:sim-cli-bundle; regenerated CLI docs

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 27, 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 27, 2026 4:00am UTC

Request Review

@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

The PR tightens the CLI source edit loop:

  • Chat workflow guides send testing through sim_cli.
  • Workspace applies test drafts before their deployment files can publish them.
  • Workflow source writes check test-run input before saving.
  • Workflow source get requires a name and bounds its search.
  • List flags reject malformed arrays and keep file paths intact.

The latest changes clarify the completed-run requirement and fix the chat next-step hint. No new actionable issues were found. The earlier emoji finding is fixed: the search prefix drops a trailing high surrogate and still matches the full name.

Reviews (3) · Last reviewed commit: "fix(sim-cli): chat redeploy hint names t..." · 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 15 files

Confidence score: 2/5

  • In workspace-source-apply.ts, a deployment create with no fields bypasses the publish gate, so --run can publish an untested first draft. Treat deployment creates as publishes while keeping the existing deploy and live-version checks for updates.
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="packages/sim-cli/src/commands/protocol/workspace-source-apply.ts">

<violation number="1" location="packages/sim-cli/src/commands/protocol/workspace-source-apply.ts:1214">
P1: A deployment `create` with no `fields` bypasses this gate, so `--run` can publish an untested first draft. Treat a deployment create as a publish (and preserve the existing deploy/live-version checks for updates).</violation>
</file>

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

- Mothership's chat gets workflow guides without apply --run/--deploy, and no tested-deploy hint
- workspaces source apply --run holds deployments/ back when it would publish an untested draft
- apply --run checks its input is JSON before anything is saved
- source get by name refuses a blank name and searches at most 200 characters
- list flags refuse an unparsable [..] value and an empty array, and keep a /files/ path whole
- the merged --run apply reports the failing write's applyId
@waleedlatif1
waleedlatif1 force-pushed the fix/release-audit-sim-a4-post branch from 964c01b to 9a5156c Compare November 27, 2026 03:50
@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 27, 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.

All reported issues were addressed across 15 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread packages/sim-cli/src/runtime/request.ts Resolved
@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 27, 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 15 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 2e84e9b into staging Nov 27, 2026
87 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 8d3812fd Deployed Nov 27, 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