feat: validate.sh checks all required env vars + format #110

Merged
joshtronic merged 1 commit from feat/validate-all-required-env into master 2026-05-23 03:09:56 +00:00
Owner

The env section was checking just four vars (FORGEJO_URL, FORGEJO_TOKEN,
ANTHROPIC_API_KEY, AGENT_MODEL) -- the rest of the required set went
unchecked, so an operator only saw misconfig at first-tick start when
tick.sh's :? blocks fired.

Now checks all 12 required vars (mirrors the list enforced at tick.sh
entry -- keep the two in sync). Also adds light format validation
on the vars where a typo silently breaks behavior:

  • TICK_TIMEOUT must match Nm/Nh/Ns/Nd
  • AGENT_SHIFT_START/END must be 0-23
  • AGENT_RECALL_DAYS must be a positive integer

And calls out a missing .env explicitly rather than silently sourcing
nothing and reporting every var as missing.

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

The env section was checking just four vars (FORGEJO_URL, FORGEJO_TOKEN, ANTHROPIC_API_KEY, AGENT_MODEL) -- the rest of the required set went unchecked, so an operator only saw misconfig at first-tick start when tick.sh's :? blocks fired. Now checks all 12 required vars (mirrors the list enforced at tick.sh entry -- keep the two in sync). Also adds light format validation on the vars where a typo silently breaks behavior: - TICK_TIMEOUT must match Nm/Nh/Ns/Nd - AGENT_SHIFT_START/END must be 0-23 - AGENT_RECALL_DAYS must be a positive integer And calls out a missing .env explicitly rather than silently sourcing nothing and reporting every var as missing. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
feat: validate.sh checks all required env vars + format
All checks were successful
Lint / check-sync (push) Successful in 4s
Lint / check-sync (pull_request) Successful in 4s
e67d693467
The env section was checking just four vars (FORGEJO_URL, FORGEJO_TOKEN,
ANTHROPIC_API_KEY, AGENT_MODEL) -- the rest of the required set went
unchecked, so an operator only saw misconfig at first-tick start when
tick.sh's :? blocks fired.

Now checks all 12 required vars (mirrors the list enforced at tick.sh
entry -- keep the two in sync). Also adds light format validation
on the vars where a typo silently breaks behavior:

- TICK_TIMEOUT must match Nm/Nh/Ns/Nd
- AGENT_SHIFT_START/END must be 0-23
- AGENT_RECALL_DAYS must be a positive integer

And calls out a missing .env explicitly rather than silently sourcing
nothing and reporting every var as missing.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
joshtronic deleted branch feat/validate-all-required-env 2026-05-23 03:09:56 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
joshtronic/igor!110
No description provided.