fabro/test/attractor
Release Repro 69a51e65b9
feat(workflow): infer command nodes from the script attribute
A node with no `shape` defaulted to `box`, which resolves to the agent
handler. That made a shapeless `script` node run as an LLM call prompted
with its own label, while the `script` was reported as inert — wrong
behavior behind a warning.

`script` is read by the command handler and by nothing else, so a
shapeless node that sets it is unambiguously a command node. `shape()`
now infers `parallelogram` in that case. An explicit `shape` still wins.

Two rules keep the inference honest:

- `script_prompt_conflict` — setting both `script` and `prompt` is an
  error. No handler reads both. It fires regardless of shape so that
  adding one cannot downgrade the error to a warning.
- `command_requires_script` — a command node without a script is an
  error. Without this the original trap just moves: a node meant as a
  command that omits its script silently becomes an agent again.

Also drops the `tool_command` alias in favor of `script` alone, routing
the six read sites through a new `Node::script()` accessor.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-27 14:59:31 -04:00
..
batch_clean.dot simplify model stylesheet: rename llm_model/llm_provider, add provider inference 2026-03-12 22:27:18 -04:00
batch_has_errors.dot simplify model stylesheet: rename llm_model/llm_provider, add provider inference 2026-03-12 22:27:18 -04:00
batch_warnings_only.dot simplify model stylesheet: rename llm_model/llm_provider, add provider inference 2026-03-12 22:27:18 -04:00
consensus_task.dot refactor(types): remove stage status compatibility 2026-04-30 06:48:47 -04:00
green_test_complex.dot refactor(types): remove stage status compatibility 2026-04-30 06:48:47 -04:00
green_test_moderate.dot refactor(types): remove stage status compatibility 2026-04-30 06:48:47 -04:00
green_test_vague.dot refactor(types): remove stage status compatibility 2026-04-30 06:48:47 -04:00
refactor_test_complex.dot refactor(types): remove stage status compatibility 2026-04-30 06:48:47 -04:00
refactor_test_moderate.dot refactor(types): remove stage status compatibility 2026-04-30 06:48:47 -04:00
refactor_test_vague.dot refactor(types): remove stage status compatibility 2026-04-30 06:48:47 -04:00
reference_template.dot feat(workflow): infer command nodes from the script attribute 2026-07-27 14:59:31 -04:00
semport.dot refactor(types): remove stage status compatibility 2026-04-30 06:48:47 -04:00
simple_example.dot simplify model stylesheet: rename llm_model/llm_provider, add provider inference 2026-03-12 22:27:18 -04:00
solitaire_fast.dot refactor(types): remove stage status compatibility 2026-04-30 06:48:47 -04:00