No description
Implements Component 6 from the plan - automatic OTA updates with canary deployment strategy and configurable quiet window scheduling. Features: - Canary strategy: updates one node first, monitors detection quality for 10 minutes (configurable), then rolls out fleet-wide if quality degradation is below threshold (default 5%) - Quiet window: configurable time range (default 02:00-05:00) when auto-updates are allowed. Supports overnight windows (e.g., 22:00-06:00) - Zone vacancy check: only updates when all zones have been vacant for >10 minutes - Auto-update mode toggle: enable/disable via settings - REST API endpoints for status, config, trigger, cancel, and history - Dashboard integration for real-time progress updates Settings keys: - auto_update_enabled: bool (default false) - quiet_window_start: HH:MM format (default "02:00") - quiet_window_end: HH:MM format (default "05:00") - canary_duration_min: 5-60 minutes (default 10) - auto_update_quality_threshold: 0.01-0.5 (default 0.05) Implementation: - internal/ota/autoupdate.go: AutoUpdateManager with canary selection, monitoring, and fleet rollout - internal/ota/autoapi.go: REST API handlers - internal/autoupdate/adapters.go: integration with quality provider, node provider, event notifier, zone vacancy checker - internal/api/settings.go: auto-update settings with validation - dashboard/js/ota.js: auto-update state tracking Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .beads | ||
| .github/workflows | ||
| .marathon | ||
| dashboard | ||
| docs | ||
| firmware | ||
| mothership | ||
| test/acceptance | ||
| tests/e2e | ||
| .dockerignore | ||
| .gitignore | ||
| .golangci.yml | ||
| .needle-predispatch-sha | ||
| .needle.yaml | ||
| API_IMPLEMENTATION_STATUS.md | ||
| docker-compose.yml | ||
| Dockerfile | ||
| fix_ble_handlers.py | ||
| go.work | ||
| PROGRESS.md | ||
| VERSION | ||