Skip to content

feat(ops): add maintenance window guardrails#50

Merged
typelicious merged 2 commits into
mainfrom
codex/feature/v0.7-maintenance-windows-2026-03-12
Mar 12, 2026
Merged

feat(ops): add maintenance window guardrails#50
typelicious merged 2 commits into
mainfrom
codex/feature/v0.7-maintenance-windows-2026-03-12

Conversation

@typelicious
Copy link
Copy Markdown
Collaborator

@typelicious typelicious commented Mar 12, 2026

What changed

  • adds auto_update.maintenance_window validation and normalization
  • blocks helper-driven auto-updates outside configured local maintenance days and hours
  • surfaces maintenance-window state through GET /api/update
  • documents the new rollout control in README, publishing, and troubleshooting docs
  • adds focused config and update guardrail tests

Why

This keeps scheduled helper-driven updates inside explicit operator maintenance windows instead of only checking health and release age.

How verified

  • PYTHONPYCACHEPREFIX="$PWD/.pycache" python3 -m compileall foundrygate tests
  • PYTHONPATH=. ./.venv-check-313/bin/pytest -q tests/test_updates.py tests/test_config.py
  • ./.venv-check-313/bin/ruff check foundrygate/config.py foundrygate/updates.py foundrygate/main.py tests/test_updates.py tests/test_config.py
  • ./.venv-check-313/bin/ruff format --check foundrygate/config.py foundrygate/updates.py foundrygate/main.py tests/test_updates.py tests/test_config.py
  • /usr/bin/git diff --check

@typelicious typelicious merged commit a3841b7 into main Mar 12, 2026
12 checks passed
@typelicious typelicious deleted the codex/feature/v0.7-maintenance-windows-2026-03-12 branch March 12, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant