Skip to content

orchestrate: harden generated Workflow script against args-as-string#320

Merged
drn merged 1 commit into
masterfrom
argus/2026-06-22-214858-orchestrate
Jun 23, 2026
Merged

orchestrate: harden generated Workflow script against args-as-string#320
drn merged 1 commit into
masterfrom
argus/2026-06-22-214858-orchestrate

Conversation

@drn

@drn drn commented Jun 23, 2026

Copy link
Copy Markdown
Owner

The Workflow runtime can deliver args to the generated script as a JSON string rather than an object, which made args.groups undefined and crashed the workflow on launch.

  • Normalize at the top of the generated script with const A = typeof args === 'string' ? JSON.parse(args) : args and read all fields off A.
  • Document that args must be passed on every Workflow invocation, including resumes (it is not persisted across runs).
  • Add prose cautions in Step 2 and Stop Conditions.

Co-Authored-By: Claude noreply@anthropic.com

The Workflow runtime can deliver `args` to the generated script as a JSON
string rather than an object, which made `args.groups` undefined and crashed
the workflow on launch. Normalize with a JSON.parse fallback and read all
fields off the normalized object. Also document that `args` is not persisted
across resumes and must be re-passed on every Workflow invocation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@drn drn merged commit 75a7969 into master Jun 23, 2026
@drn drn deleted the argus/2026-06-22-214858-orchestrate branch June 24, 2026 00:17
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