Build a stateful workflow with visible side effects, retry limits, timeouts, idempotency, human approval nodes, and adversarial-input tests. Inspect the state transitions, not just the happy path.

Objective

implement a stateful workflow with controlled side effects.

Context

states, events, tools, policy, retry and timeout budget.

Decompose

pure decision steps, tool adapters, persistence, failure branches, human approval nodes, evals.

Criteria

replayability, idempotency, bounded cost, tool authorization, adversarial-input tests.

Review

inspect state transitions rather than only the happy path.

Output

graph/source, state schema, trace examples, threat model.

Handoff checklist

  • State schema is versioned
  • Tool auth is boundary-enforced
  • Replay and idempotency tested
  • Cost and termination bounded
Editorial recipe adapted from the project’s September 2026 research brief. Commands, authority and acceptance tests must be matched to your repository. No production execution is implied.

Use the bounded agent contract before starting ↗