Verified Incident Response (demo)
Bundled demo wf-cascades-incident-response — the reference DAG for schema validation and proofs.
The primary demo bundled workflow (wf-cascades-incident-response) is the canonical example in tests and docs. It exercises webhook → api → agent → condition branching with payload paths from enrichment.
Use it to validate your worker, Redis queue, and proof pipeline end-to-end. See Immutable snapshots and DAG execution.
Trigger shape (sample payload)
Run with sample inputs POSTs context roughly like:
{ "sampleAlert": { "id": "DEMO-001", "severity": "high", "source": "pager" } }That merges into workflow_run.context under the dashboard baseline (source: "dashboard-run").
Node-by-node
- Webhook trigger — ingress (HTTP executor path).
- Enrich Context —
internalEcho:GET /api/workflow-echoon this deployment (setCASCADES_INTERNAL_ORIGINif the worker is off-origin). Output is stored asenrich_output. - Agent triage — stub agent; policy-bound model yields high severity so the policy gate tends toward the notify branch.
- Policy gate — severity condition; TRUE → GitHub integration gate.
- GitHub integration? —
hasIntegration:github. TRUE → live GitHub notify; FALSE → internal stub transform (no external call). - Execute remediation — tool stub on the non-escalation branch.
Run with sample inputs
Use the builder button or:
POST /api/workflows/run
{ "workflow_id": "wf-cascades-incident-response", "context": { "sampleAlert": { "id": "DEMO-001", "severity": "high", "source": "pager" } } }Expected logs
workflow_started,task_started/task_completedper node.- No
integration_missingon the GitHub node when integration is absent — the guard routes to the stub instead. - If you force the live GitHub node without config (custom graph), you would see
integration_missing(warn) thentask_failed.
Proof summary
After completion, proof_records.metadata includes compact fields such as successfulTaskCount, failedTaskCount, and integrationFailures (count of integration_missing log rows — usually 0 on bundled presets).