docs/ez-agent-ruby/workflow-replacement.md
Prepared Workflow removal notes
This page is historical. It records removed public APIs so readers do not infer
that old examples still work. The current authority is the
EzAgent::Workflow reference.
require "ez_agent/workflow" exposes EzAgent::Workflow < EzAgent::WorkflowAgent, a prepared append-only graph API. This is an intentional
public break, not a compatibility layer.
Historical removals
The procedural Workflow.open API, phase/session/prompt blocks, command and
command!, attach/revival/reconciliation controls, status callbacks, and nested
Workflow::Session, Workflow::Run, Workflow::Result,
Workflow::Status, Workflow::CommandResult, and Workflow::Selection types
were removed. Old constructor keywords such as name:, phases:, group:,
env:, and reconciliation_interval: are not accepted.
A later clean break also removed the special conclusion operation, caller-chosen
conversation ancestry, and query titles. Current code therefore has no
conclude method, no ancestry keyword on queue, and no title: keyword on a
query or tail query. Those terms describe removed history only.
Current model
The Workflow is the root Agent and the only object with eval; explicit
children, nested Agents, and fanout members share one recursive
WorkflowAgent interface, and the graph is declared lazily before a single
workflow.eval. Identity, generation placement, fanout counting, and replay
invalidation rules are owned by the
Workflow reference. No SQL schema, JSONL frame, or
visualizer payload version changed for this API replacement; prepared Workflow
projects into the existing lossy ruby.workflow//0.1 view.