Skip to content

feat(ml): incident model v4 500 - #12

Merged
UsatovPavel merged 5 commits into
mainfrom
feat/HACK-186-incident-v4
Sep 28, 2026
Merged

UsatovPavel merged 5 commits into
mainfrom
feat/HACK-186-incident-v4

Conversation

@UsatovPavel

Copy link
Copy Markdown
Contributor

Jira

HACK-186

Changes

  • Add incident v4 500 (FIRE, FLOOD, GAS, INTRUSION) as a second inference service with its own cursor and model version.
  • Rebuild hours_since_prev_target from the pinned pre-July seed, Backend checkpoint, and recent raw alarm flags.
  • Limit incident SHAP work to eight starts and 500 ms per tick; retain eleven raw candidates for the ten displayed causes after filtering sensor type.
  • Before replacing the current inference image, save the equipment model, configuration, cursor/runtime, 72-hour input events, future-dated supplement, and current reference views to /mnt/backups/inference-windows. Verify checksums and old-service health before continuing.

Verification

  • python -m pytest -q: 66 passed.
  • bash -n deploy/backup-equipment-window.sh.
  • Model SHA-256 is pinned in the artifact test and manifest.

Rollout

Merge and deploy this PR before the Backend HACK-186 PR. The ML deploy updates the existing equipment image and preserves its window; the incident service starts when Backend adds its compose service and DB migrations. Rollback keeps the previous image available.

UsatovPavel and others added 5 commits September 28, 2026 20:28
Rollback was pinned to inference:rollback-before-full-no2021: a failed
deploy would restore the model from before full-no2021. Now the previous
current becomes inference:previous, and every inference-* compose service
is restarted, health-checked and rolled back together.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@UsatovPavel
UsatovPavel marked this pull request as ready for review September 28, 2026 20:03
@UsatovPavel UsatovPavel changed the title feat(ml): incident v4 500 feat(ml): incident model v4 500 Sep 28, 2026
@UsatovPavel
UsatovPavel merged commit a17e56c into main Sep 28, 2026
2 checks passed
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