You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
P1 — depends on #1482 and should use deterministic controls from #1483.
Problem
Croco already models important operational failures through provider and operational failure drills, but the catalog is primarily fixed and provider-oriented. Applications cannot easily compose ordered failures such as commit success followed by response loss, duplicate webhook delivery, task retry, and telemetry flush failure while preserving deterministic replay evidence.
Desired outcome
Generalize the existing failure-drill primitives into a runner-neutral ScenarioRuntime for application-specific success and failure timelines without adding test-only branches to production code.
Existing failure-drill APIs remain compatible or have a documented migration path.
Scenarios support ordered steps, named failure points, virtual-time advancement, and deterministic replay metadata.
Failure injection wraps Croco boundaries such as transaction, event, task, trigger, provider, retry, and telemetry rather than adding NODE_ENV=test branches to production logic.
Scenarios can model duplicate delivery, lost response, timeout, retryable/terminal provider failure, process-boundary interruption, and exporter/flush failure.
Priority
P1 — depends on #1482 and should use deterministic controls from #1483.
Problem
Croco already models important operational failures through provider and operational failure drills, but the catalog is primarily fixed and provider-oriented. Applications cannot easily compose ordered failures such as commit success followed by response loss, duplicate webhook delivery, task retry, and telemetry flush failure while preserving deterministic replay evidence.
Desired outcome
Generalize the existing failure-drill primitives into a runner-neutral
ScenarioRuntimefor application-specific success and failure timelines without adding test-only branches to production code.Illustrative API:
Acceptance criteria
NODE_ENV=testbranches to production logic.Non-goals
Validation
Add scenarios spanning transaction, outbox/event publication, task retry, webhook duplication, and telemetry failure, with identical reports across repeated seeded runs.