Repository navigation
improvement(workflow-code): remove agent traps from table keys, Function results, resume ids and builder names - #10336
waleedlatif1 wants to merge 2 commits into
Conversation
…ion results, resume ids and builder names
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
[Medium impact] The changes affect workflow authoring and workflow-run output, plus resource keys across workspace resources. Fix the resume-link search before merging; it can suggest unsafe shell commands and commands that cannot resume parallel pauses. FindingsSummaryThe PR keeps underscores in newly allocated resource keys, infers whole Function results for JSON fields, improves builder-name hints, and adds resume commands to paused CLI results.
Reviews (1) · Last reviewed commit: "improvement(workflow-code): remove agent..." · Reviewed by Greptile |
There was a problem hiding this comment.
All reported issues were addressed across 23 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…ns and quote the printed resume command
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
daily_totalsis keyeddaily_totals, notdaily-totals, so the key an agent types matches the name. Persisted keys are never recomputed, so existing workspaces round-trip unchanged; a collision after slugging still gets a-2suffix.resultin a JSON field is now inferred from its returns (string or not), and catalog outputs whose runtime value can be text (Functionresult,api.data, otheranyoutputs) warnW_JSON_REF_UNTYPEDunless inferred. Print and compile share the same rule.sim workflows run/runs getoutput gains an additivenextfield with the exactsim workflows runs resume <id> --workflow <wf> --context <ctx>command.humanInTheLoop->human, snake_case, display names, legacy block types) insource paramsand compile; a bare unknown call isE_UNKNOWN_BUILDER.Type of Change
Testing
workflow-code,sim-cli,workflow-sdkandresource-keys(unit and integration against Postgres); each fails when its source change is reverted.check:workflow-code-golden,check:audits,check:test-types,check:migrations, docs compatibility,lint:check, roottype-check, block-registry check against staging.file-doc-capabilitiesafterAll hook timeout appeared once in the full realtime run (nothing inapps/realtimechanged) and passes when run alone.Checklist
test-auditauthoring gate)