Seed Silent Failure State
POST/api/v1/test/seed-silent-failure-state
E2E-only: seed a production_ready misconfigured workflow + config-class skip traces.
Used by frontend/tests/e2e/silent-failure-alarm.spec.ts to inject a flaggable silent-failure state without depending on live geofence events. Gated by E2E_TEST_MODE + X-E2E-Secret (mirrors seed_anomaly_state).
Creates (lazily, by name):
- Workflow 'e2e-silent-failure' — is_active=True, is_test_mode=False (production_ready() includes it) with a geofence_enter trigger config.
- 5 WorkflowEvaluationTrace rows — matched=False, skip_reason='geofence_mismatch' (>= MIN_CONFIG_SKIP_COUNT=3, inside the 7-day window, zero matched=True rows).
Returns the workflow id/name and trace count for spec assertions.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
OK
Bad Request
Unauthorized
Forbidden
Not Found
Validation Error