Migrated from docs/pending-work-plan.md §3.3.
Problem
The deployment script must verify the direct event total separately from the grouped breakdown. It should parse JSON defensively and distinguish these outcomes:
- Healthy: HTTP service responds and direct totals are ready.
- Partially ready: direct totals are ready but grouped telemetry is warming; deployment continues with a warning.
- Unhealthy: endpoint is unreachable, database is unavailable, or direct totals report an error.
The uploaded script version was stricter and removed defensive || true handling around the events curl calls. Under set -Eeuo pipefail, a transient curl failure can abort verification before the script can report the real state.
Required changes
- Parse
/api/events JSON defensively and check each readiness layer independently.
- Classify the deployment outcome as Healthy / Partially ready / Unhealthy.
- Treat Partially ready as a non-fatal warning when direct totals are ready.
- Restore defensive
|| true handling around transient curl failures so verification can report the real state.
- The canonical repository version (
deploy/ns-deploy-full.sh) must be the only version used for deployment. The bootstrap script must hand off to it before executing deployment logic.
Acceptance criteria
- Deployment script distinguishes Healthy / Partially ready / Unhealthy for the relay.
- A warming grouped breakdown no longer aborts verification when direct totals are ready.
- The script never reports "deployment verification complete" based only on static HTTP checks.
- Secret-bearing commands redirect only safe status output and never include environment files or full process environments.
Dependencies
Source
Migrated from docs/pending-work-plan.md §3.3.
Migrated from
docs/pending-work-plan.md§3.3.Problem
The deployment script must verify the direct event total separately from the grouped breakdown. It should parse JSON defensively and distinguish these outcomes:
The uploaded script version was stricter and removed defensive
|| truehandling around the events curl calls. Underset -Eeuo pipefail, a transient curl failure can abort verification before the script can report the real state.Required changes
/api/eventsJSON defensively and check each readiness layer independently.|| truehandling around transient curl failures so verification can report the real state.deploy/ns-deploy-full.sh) must be the only version used for deployment. The bootstrap script must hand off to it before executing deployment logic.Acceptance criteria
Dependencies
Source
Migrated from
docs/pending-work-plan.md§3.3.