| name | demo-validate |
| description | Validate demo flows end-to-end. Confirms branch, ports, and services before running demo scripts. |
| user-invocable | true |
| allowed-tools | Bash, Read, Grep, Glob |
| truth_contract | {"canonical_sources":["ops/state/config/repo-map.json","ops/state/sprint/current.json"],"live_load_required":["git branch --show-current","ss -tlnp | grep :8080","kubectl get pods -n icn 2>/dev/null || true"],"examples_only":[],"never_hardcode":["cluster IPs (read from repo-map.json)","sprint number or demo flow list"]} |
Validate demo flows end-to-end. Avoids wrong-port / wrong-branch mistakes.
Steps
- Preflight: confirm branch, repo root, and active services/ports:
git branch --show-current
ss -tlnp | head -20
docker ps --format "table {{.Names}}\t{{.Ports}}\t{{.Status}}" (if using devnet)
- Confirm expected port(s) by reading the demo config/README:
- Check
docker-compose*.yml or scripts/demo-*.sh for port assignments
- Verify expected ports match running services
- Run the demo validation script(s):
scripts/demo-runner.sh or individual scripts/demo-flow-*.sh
- If failure:
- Capture logs (gateway logs, daemon logs, docker logs)
- Fix only what blocks the demo (no scope creep)
- Re-run until green
Output
Pass/fail per demo section + the exact command used for each.