Skip to content

fix(sim-cli): point the workflow primer's table scope at commands every agent can run - #10444

Merged
waleedlatif1 merged 2 commits into
stagingfrom
fix/primer-scope-tables
Nov 26, 2026
Merged

waleedlatif1 merged 2 commits into
stagingfrom
fix/primer-scope-tables

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

The workflow source primer's Scope line sent agents to sim workspaces source get --dir <dir> to edit a table's columns and rows. The CLI inventory marks that command mothershipUnavailable, and the Mothership worker preloads this same primer as its workflow-source skill. So the chat agent was being taught a command it is refused. The worker's S39 check ("every command a skill names is one a conversation can run") fails the next primer sync on this.

The line now names sim tables columns update <table> and sim tables rows update <table>. Both work for a local coding agent and in Mothership, and neither has an entitlement gate. A local agent still finds the workspace-as-code route in sim workflows source --help (WORKFLOW_SOURCE_SCOPE_HELP).

Type of Change

  • Bug fix

Testing

  • vitest run src/commands/protocol/ in packages/sim-cli: 639 pass. This includes "names in the workflow primer only commands and flags this CLI has", which accepts only leaf commands.
  • Regenerated the worker's workflow-source skill from this branch. The worker's model-text (S39) and cli-parse tests pass (64).

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • 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 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 10:06pm UTC

Request Review

@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 1 file

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

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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

[Low impact] The PR appears safe to merge.

Summary

Updates the workflow primer to point agents at table commands available outside workspace-as-code.

  • Workflow primers now point table edits to direct update commands.

Reviews (2) · Last reviewed commit: "fix(sim-cli): give the table scope comma..." · Reviewed by Greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptileai review

@waleedlatif1
waleedlatif1 merged commit ee7fa91 into staging Nov 26, 2026
83 checks passed
waleedlatif1 added a commit that referenced this pull request Nov 26, 2026
* fix(sim-cli): keep the workflow primer within its byte budget

#10440 and #10444 each fit the 4096-byte budget, but together the workflow
primer reached 4127 bytes and the primer budget test failed on staging.
Tighten two sentences (88 bytes of headroom) without dropping any rule.

* fix(sim-cli): keep the primer's note that --run tests the draft

This branch was previously deployed

1 inactive deployment
Preview — c4584091 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