Skip to content

fix(inference): equipment type - #15

Merged
UsatovPavel merged 2 commits into
mainfrom
fix/HACK-183-equipment-classless
Sep 28, 2026
Merged

UsatovPavel merged 2 commits into
mainfrom
fix/HACK-183-equipment-classless

Conversation

@UsatovPavel

Copy link
Copy Markdown
Contributor

Jira

HACK-183

Changes

  • Equipment (any-alarm) model writes EQUIPMENT_FAILURE only for channels whose sensor type has no incident class (UPS, fans, phases…). On classed channels its target mixes faults with real incidents, so it keeps CHANNEL_EVENT, which Backend hides as LEGACY.
  • Before: every equipment row was CHANNEL_EVENT, so after Backend #66 the «Оборудование» tab on the stand was empty.
  • Paired with a Backend migration that relabels existing CHANNEL_EVENT rows of classless channels.

Verification

  • py_compile passes; mapping checked: ИБП/Вентилятор → EQUIPMENT_FAILURE, Датчик дыма/КД АВ → CHANNEL_EVENT.
  • New test test_classless_channel_writes_equipment_failure; local pytest unavailable (ML/.venv is Python 3.13, pgserver needs ≤3.12) — CI runs the suite.

🤖 Generated with Claude Code

UsatovPavel and others added 2 commits September 29, 2026 00:42
The equipment model predicts any alarm. On a channel without an incident
class that is an equipment failure, so write EQUIPMENT_FAILURE there; on a
classed channel it mixes faults with incidents, so keep CHANNEL_EVENT.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Equipment model features do not carry the raw sensor type, so every
channel fell to EQUIPMENT_FAILURE. Read the classed channel set from
dim_channels_current at start and on each registry reload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@UsatovPavel
UsatovPavel merged commit c1bd573 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