Skip to content

improvement(workflow-code): agent DX from the v8 benchmark, CLI conventions, and an env-number audit - #10333

Merged
waleedlatif1 merged 15 commits into
stagingfrom
improvement/workflow-code-agent-x
Nov 23, 2026
Merged

waleedlatif1 merged 15 commits into
stagingfrom
improvement/workflow-code-agent-x

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Agent primer and operations apply --help: what a skipped block reference resolves to, rejoining branches, loop/parallel currentItem/index, operation order, where to read run logs; tables rows list takes a table name
  • v2 log detail gains a required-nullable failure field (blockId, blockName, blockType, error, errorMessage), listed before the state and traces; the run's own error picks between blocks that failed together
  • workflows export prints a stderr note explaining nulled bindings (stdout unchanged)
  • CLI: root AGENTS.md pointer (written only when absent or already marker-owned), NO_COLOR/TERM=dumb, --summary-file / SIM_SUMMARY_FILE for applies, create and status, install hint says sim update
  • Node engines >=22 for sim-cli and the workflow/workspace packages; the Node 20 AbortSignal.any fallback is removed; the publish smoke runs on Node 22
  • New check:env-numbers audit (in check:audits) for raw numeric env.X reads; fixed the one it found in activity-rollup enqueue
  • Table block and upsert_row conflict column text says column name or id (the tool accepts both)

Behaviour and contract notes

  • failure is additive on GET /api/v2/logs/{runId}; OpenAPI and generated types regenerated
  • Node 20 is no longer a supported CLI runtime
  • NO_COLOR (non-empty) and TERM=dumb disable colour; FORCE_COLOR still wins

Follow-ups

  • sim check --types
  • Dependency majors (commander, babel 8, chalk replacement)

Type of Change

  • Improvement

Testing

  • Red-to-green proven for the new sim-cli tests, enqueue.test.ts and the v2 logs route tests (including run-error disambiguation)
  • Local gate: tsc per workspace, package suites, apps/sim units, realtime units, integration (two DBs), realtime integration, script tests, goldens, check:audits, check:test-types, check:migrations, docs compatibility, lint, root type-check, block-registry check

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)

@waleedlatif1
waleedlatif1 requested a review from a team as a code owner November 23, 2026 11:31
@vercel

vercel Bot commented Nov 23, 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 23, 2026 1:09pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

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

Summary

This PR improves workflow authoring help, run logs, and CLI output.

  • Workflow source guides explain how agents edit and debug workflows.
  • Source commands can write their plans and status reports to a summary file.
  • Run-log details show which block failed and its recorded error.
  • The CLI follows terminal color settings and keeps export notes off stdout.
  • The CLI and workflow packages now require Node 22 or newer.
  • A repository audit checks raw reads of numeric environment settings.
  • Table upserts describe conflict columns by name or ID.

All eight supplied previous threads are unnumbered and were checked without reposting them. Their fixes remain present: cancelled runs return no failure; summaries include variable changes, incomplete-check notes, and error details; the audit accepts double-quoted imports; operation help states the ordering exception; linked guides remain untouched; and the mock-only enqueue test was removed.

No new actionable issues or confirmed repository-rule violations were found. No tests were run during this review.

Reviews (7) · Last reviewed commit: "fix(sim-cli): carry --summary-file onto ..." · Reviewed by Greptile

Comment thread scripts/check-env-numbers.ts Resolved

@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 52 files

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

Turn on auto-fix | Re-trigger cubic

Comment thread packages/sim-cli/src/runtime/execute.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 23, 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.

2 issues found across 56 files

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

Turn on auto-fix | Re-trigger cubic

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="scripts/check-env-numbers.ts">

<violation number="1" location="scripts/check-env-numbers.ts:110">
P2: The audit silently skips namespace imports, so `import * as config from '@/lib/core/config/env` followed by `config.env.NUMERIC_VAR` bypasses the check. Track namespace bindings and inspect their `.env` member, or explicitly reject this import form.</violation>

<violation number="2" location="scripts/check-env-numbers.ts:127">
P2: `isNormalized` trusts any function named `envNumber` or `resolveCostMultiplier`, including a local or shadowed function that does not parse its argument. Resolve the callee's imported binding before exempting the read.</violation>
</file>

Comment thread scripts/check-env-numbers.ts Resolved
Comment thread scripts/check-env-numbers.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 23, 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 61 files

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

Turn on auto-fix | Re-trigger cubic

…ert ordering, drop the mock-only enqueue test
@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 23, 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 60 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

Copy link
Copy Markdown
Collaborator Author

@greptile review

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review

@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 60 files

You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile review

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review

@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 60 files

You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.

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

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review

@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 60 files

Confidence score: 5/5

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

You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 161199a into staging Nov 23, 2026
99 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 105f4328 Deployed Nov 23, 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