Skip to content

feat(agents): improve workflow diagnostics and tool execution - #8290

Open
waleedlatif1 wants to merge 13 commits into
stagingfrom
codex/agent-interface-feedback
Open

waleedlatif1 wants to merge 13 commits into
stagingfrom
codex/agent-interface-feedback

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add workflow/credential inspection, advisory lint, binding receipts, retry previews and compact CLI run summaries using existing platform primitives.
  • Preserve replay behavior, pin queued deployments, keep read/dry-run normalization non-mutating and retain tool-failure evidence.
  • Complete direct Function execution through the existing tool API with authorization, billing admission, selected-secret handling and owned output files.
  • Fix Slack bot-token/Block Kit behavior and bound history reads; preserve Stripe native values, capture amounts, subscription item IDs and pagination cursors.
  • Reuse canonical archive destinations and streaming downloads, remove sensitive parser logging and consolidate guidance in existing documentation.
  • Upgrade Next.js to stable 16.3.6, capture conflicting build assets, and load the two identified AWS credential providers natively through serverExternalPackages. Enforce the reviewed release-age exception against the exact Next pin in CI.

Type of Change

  • Bug fix
  • Feature

Testing

  • All applicable CI checks passed on 12f3407: Linux production build, lint/tests, both PostgreSQL provisioning paths, desktop E2E/package smoke, docs deployment, security and Helm.
  • Fresh CI tests: all 19 workspace tasks passed, including 34,646 app tests and 456 CLI tests; 20 inherited app skips remain.
  • All 26 workspace type-checks, 49 repository audits, lint, generated-document checks and migration gate passed.
  • Real Next standalone builds: 18 HTTP checks across 9 AWS credential scenarios matched before/after native loading. Missing-STS/Signin-file controls verified deployment coverage.
  • Frozen, ordinary and Turbo-pruned Linux-targeted Docker dependency installs passed. CI rejects using the temporary Next release-age waiver with another version.
  • Local full runs encountered existing timing/teardown flakiness and load-related timeouts. The timing failure reproduced independently on staging; the one-worker Node 24 rerun passed all 80 affected/focused tests without changing thresholds.
  • Prior real persistence/concurrency/CLI HTTP checks, 399,593 reference-scanner comparisons and guard-reversion controls remain valid; no workflow or credential behavior changed in the build fix.
  • Greptile 5/5 on current HEAD, all 24 review threads resolved, staging mergeable. Not merged.

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 Sep 25, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docs Ready Ready Preview Sep 25, 2026 6:44pm 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.

1 issue found across 166 files

Confidence score: 4/5

  • In apps/sim/tools/slack/update_message.ts, an invocation with neither text nor blocks passes validation and reaches Slack without content; enforce that at least one is provided.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/sim/tools/slack/update_message.ts">

<violation number="1" location="apps/sim/tools/slack/update_message.ts:53">
P3: `text` and `blocks` are now both optional and nothing enforces the description's claim that text is only omitted when blocks are provided. An invocation with neither field passes the `required` checks, reaches Slack's `chat.update` through `executeSlackUpdateMessage`, and fails with Slack's opaque `invalid_arguments` error instead of a clear local validation message. Raise a clear error in `operation.input` (or a validation step) when both are absent so the failure is caught before the provider call.</violation>
</file>

Tip: instead of fixing issues one by one fix them all with cubic

Re-trigger cubic

Comment thread apps/sim/lib/workflows/executor/stop-after-block.ts
Comment thread packages/deployment-config/src/integrations.json
Comment thread apps/sim/tools/slack/message.ts
Comment thread packages/sim-cli/src/output/run-diagnostics.ts Outdated
Comment thread apps/sim/lib/workflows/editing/binding-changes.ts
Comment thread apps/sim/lib/workflows/api/workflow-inspection.ts Outdated
Comment thread apps/sim/tools/slack/update_message.ts
Comment thread apps/docs/openapi-v2-resources.json Outdated
@greptile-apps

greptile-apps Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Adds workflow diagnostics and tool execution APIs.

No new actionable issue or outstanding previous finding was identified in this review.

Summary

This PR adds workflow inspection and run diagnostics, direct Function tool execution, and integration and CLI improvements. The changes since the previous review add a Next.js 16.3.6 pin, a bounded release-age exception, AWS-provider build configuration, and build-failure artifact capture.

Reviews (13) · Last reviewed commit: "fix(build): load colliding AWS credentia..."

@waleedlatif1
waleedlatif1 marked this pull request as ready for review September 25, 2026 04:38
@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 Sep 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.

All reported issues were addressed across 192 files

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

Fix all with cubic | Re-trigger cubic

Comment thread apps/sim/executor/utils/run-from-block-preview.ts
Comment thread apps/sim/lib/workflows/application/replace-workflow-state.ts Outdated
Comment thread apps/sim/lib/logs/execution/trace-spans/span-factory.ts
Comment thread apps/docs/content/docs/cli/workflow-operations.mdx Outdated
@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 Sep 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.

All reported issues were addressed across 196 files

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

Fix all with cubic | Re-trigger cubic

Comment thread apps/sim/lib/workflows/application/replace-workflow-state.ts
@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 Sep 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 197 files

Confidence score: 5/5

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

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 Sep 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 197 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.

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 Sep 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.

@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 Sep 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.

All reported issues were addressed across 203 files

Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
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.

Fix all with cubic | Re-trigger cubic

Comment thread apps/sim/lib/workflows/executor/enqueue-execution.integration.ts
@waleedlatif1
waleedlatif1 force-pushed the codex/agent-interface-feedback branch from 8f98389 to a8f3ce7 Compare September 25, 2026 18:26
@waleedlatif1
waleedlatif1 requested a review from a team as a code owner September 25, 2026 18:26
@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 Sep 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.

All reported issues were addressed across 212 files

Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
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.

Fix all with cubic | Re-trigger cubic

Comment thread .github/workflows/test-build.yml
Comment thread package.json
Comment thread bunfig.toml
Comment thread packages/testing/package.json
@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 Sep 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 214 files

Confidence score: 5/5

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

Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
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.

Re-trigger cubic

This branch was successfully deployed

1 active deployment
Preview — 12f34070 Deployed Sep 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