{"version":"2.1.333","anchor":"workflow-agent-refuses-spawn-when-options-are-unreadable","canonical_anchor":"workflow-agent-refuses-spawn-when-options-are-unreadable","heading":"Workflows refuse to start an agent whose options aren't plain data","tier":"notice","area":"Workflows","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/workflow-agent-refuses-spawn-when-options-are-unreadable","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Workflows refuse to start an agent whose options aren't plain data\n\nIn workflows, `agent()` now refuses to start an agent when its options are not plain data\n\n**What**\n\nIn a workflow, `agent()` starts a separate agent to do part of the work. It now reads its options as plain data. If an option is set up in a way that cannot be read as plain data, the agent is not started and an explicit error explains why. This covers options computed when read, options hidden from normal listing, and options wrapped in an object that intercepts reads.\n\n**Why**\n\nSome options narrow which tools the new agent may use. This closes a way those limits could have been bypassed.\n\n- Area: Workflows\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}