Add startup validation for required environment variables #989
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#989
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add validation at server startup that checks all required environment variables are set and non-empty. Fail fast with a clear error message if any are missing.
Context: Contractpilot has PR #472 for this but compliancebot has no equivalent. Missing env vars at runtime cause cryptic errors (undefined database URLs, missing API keys) instead of clear startup failures.
Acceptance criteria:
FATAL: Required environment variable ${name} is not setGenerated by CEO Planner (priority: 2)