# Workflow graph

**Test family:** `WFL`

- **WFL-001** Empty/minimal/ordinary/large workflow validates start, reachable steps, termination, and required configuration.
- **WFL-002** Reject cycles unless explicitly bounded; detect unreachable, orphaned, duplicate, and incompatible steps.
- **WFL-003** Draft/published/versioned workflows ensure existing runs use the intended immutable version.
- **WFL-004** Enable/disable/pause/edit/delete permissions and effects on queued/in-flight/future runs are explicit.
- **WFL-005** Branch, join, fan-out, fan-in, loop, wait, retry, and compensation preserve data and execution count.
- **WFL-006** Partial dependency failure exposes per-step state and resumes from safe checkpoint.
- **WFL-007** Workflow context never crosses tenant/run and secrets are scoped/redacted.

## Comprehensive per-item coverage

- **WFL-008** Exercise no match, one match, many matches, and boundary-size batches with ordinary and adversarial records.
- **WFL-009** Use text values containing emoticons, emoji, kaomoji, RTL, combining marks, quotes, delimiters, and newlines; preserve comparison and substitution semantics.
- **WFL-010** Deliver the same event once, twice, late, out of order, and after replay; define deduplication and event-time behavior.
- **WFL-011** Race matching events and concurrent workflow instances against the same record; prevent lost updates and duplicate effects.
- **WFL-012** Retry before commit, after commit before acknowledgment, and after downstream partial success; use stable idempotency.
- **WFL-013** Change the condition, template, permission, owner, or target after scheduling but before execution; define snapshot versus latest semantics.
- **WFL-014** Run across daylight-saving gaps/folds, leap day, month end, differing tenant zones, clock skew, and delayed workers.
- **WFL-015** Pause, resume, disable, edit, clone, publish, roll back, and delete while runs are queued or active; preserve version identity.
- **WFL-016** Create direct, indirect, and cross-workflow loops; detect recursion, cap fan-out, and expose why execution stopped.
- **WFL-017** Test missing fields, nulls, type changes, unknown enums, deleted references, schema migrations, and malformed payloads.
- **WFL-018** Run as creator, owner, service identity, changed-role user, removed user, and least-privilege actor; define execution authority explicitly.
- **WFL-019** Cross tenant, workspace, region, and environment boundaries only when explicitly authorized; prevent shared caches or queues from leaking data.
- **WFL-020** Force dependency timeout, rate limit, quota, authentication expiry, malformed response, and permanent rejection; route each to a defined failure path.
- **WFL-021** Verify compensation or rollback for partial multi-step work, including a compensation failure and manual recovery.
- **WFL-022** Measure queue delay, execution latency, throughput, fan-out, backlog, and recovery under the supported load envelope.
- **WFL-023** Provide dry-run or preview where consequences justify it; identify evaluated inputs, matched conditions, and proposed actions without mutation.
- **WFL-024** Verify alerting distinguishes user-data failure, configuration failure, platform failure, and exhausted retries without notification storms.
- **WFL-025** Record immutable version, trigger/event ID, evaluated conditions, actor, permissions, each attempt, side effect, and final outcome without secrets.
- **WFL-026** Replay a historical event against the same and newer definition in an isolated mode; make semantic changes visible.
- **WFL-027** Recover after worker crash, queue redelivery, regional failover, and prolonged outage without losing or duplicating committed work.

[Back to Automation, rules, permissions, and audit index](../../automation-rules.md)
