Skip to content

improvement(workflow-code): v9 benchmark findings (table row shape, retry and child result rules, ops help, column types, queryRows paging) - #10361

Merged
waleedlatif1 merged 4 commits into
stagingfrom
improvement/workflow-code-v9-findings
Nov 24, 2026
Merged

waleedlatif1 merged 4 commits into
stagingfrom
improvement/workflow-code-v9-findings

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Table blocks declare row/rows as { id, data, position, createdAt, updatedAt } (one shared definition for table and table_v2). check now flags row.<column> with W_UNKNOWN_OUTPUT_PATH and the hint row holds: id, data, position, createdAt, updatedAt.; row.data.<column> stays clean
  • OutputFieldDefinition gains properties/items; sim blocks get (v2 block catalog) publishes a block output's nested shape, with the block output schema picked from V2ToolOutput. JEV answers and the Start metadata output type as plain block outputs (no casts)
  • Primer: block retry reruns the whole block, an api block's retries repeat only the request inside each try; a child workflow's response field is c.result.data.<field>; the workspace loop shows sim workflows run <workflowId> --manual --input '{…}'. Both primers stay within the 4096-byte budget
  • workflows operations apply --help: same-batch renames rewrite added blocks, connections: {} removes every outgoing edge, a parentId move drops edges that cross the container, an edit's inputs replace each named field whole (responseFormat too), the two retries nest, the Table row path
  • tables create --schema and tables columns create --column name the column types (from COLUMN_TYPES, ttl left out as in OpenAPI); the CLI's own schema describe is gone in favour of the contract's
  • table.queryRows builder note: limit has no maximum or default, page by nextCursor → cursor until null
  • workflows source --help points tables, columns and rows at workspaces source
  • Generated special-builder params types name the params core.d.ts adds (HumanParams: inputFormat)

Type of Change

  • Improvement

Testing

  • New tests, each proven red by restoring the pre-change source: source-mistakes.test.ts (row cell read off the row, real catalog), invariants.test.ts (nested block output projection, hidden members and conditions dropped), generate.test.ts (core-param doc on HumanParams)
  • Ops help claims verified against applyOperationsToWorkflowState before writing them (rename after adds, {} connections, parentId scope drop, responseFormat replace)
  • tsc for every touched workspace, package suites (sim-cli 1133, workflow-code 789, workspace-code 164, workflow-sdk 53), apps/sim units (12278), realtime units, integration (mig + push), realtime integration (52/52; the known file-doc-capabilities afterAll timeout), goldens, check:audits, check:test-types, check:migrations, docs compatibility, lint, root type-check, test:scripts, block-registry check
  • bun run generate (openapi, cli-api, cli-docs, sdk fixture catalog); content baseline updated for the two changed help blocks

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)

…etry and child result rules, ops help, column types, queryRows paging)

- Table blocks declare row/rows as {id, data, position, createdAt, updatedAt}: check flags row.<column> (W_UNKNOWN_OUTPUT_PATH, hint names the members) and `sim blocks get` publishes nested output shapes (OutputFieldDefinition gains properties/items)
- Primer: block retry vs an api block's retries, a child workflow's c.result.data.<field>, run inputs in the workspace loop
- operations apply help: same-batch renames, connections {} and parentId moves, inputs replace whole fields, nested retries, the table row path
- Column types named in tables create/columns create help, from the contract
- table.queryRows note: no limit maximum, page by nextCursor
- workflows source help points tables at workspaces source
- Generated special params types name the params core.d.ts adds (HumanParams: inputFormat)
@vercel

vercel Bot commented Nov 24, 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 Nov 24, 2026 6:42pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

This PR makes Table row shapes visible to workflow authors and improves CLI guidance.

  • Table block catalogs show row fields and put column cells under data.
  • SDK help explains how table query pages reach the end.
  • Workflow source help spells out how edits, links, and retries behave.
  • Table creation help shows column examples and accepted types.
  • Generated SDK params types name extra builder parameters.

No actionable new issues were found. No previous finding threads were supplied. The previous-review merge-base check differed, so the full PR was reviewed.

Reviews (2) · Last reviewed commit: "fix(tables): state the public column typ..." · 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.

All reported issues were addressed across 25 files

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

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/blocks/utils.ts Resolved
…d insert rows

query_rows, batch_insert_rows and insert_row present rows with presentNamedTableQueryRow, which adds orderKey and executions; the declared row shape omitted them, so a check reading either warned W_UNKNOWN_OUTPUT_PATH.
@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 24, 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 25 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 38d9b31 into staging Nov 24, 2026
83 of 84 checks passed
@waleedlatif1
waleedlatif1 deleted the improvement/workflow-code-v9-findings branch November 24, 2026 18:42

This branch was successfully deployed

1 active deployment
Preview — 83b62352 Deployed Nov 24, 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