feat(scans): PLC control mapping shows as its own phase #422

Merged
sharang merged 1 commits from feat/plc-mapping-phase into main 2026-09-28 21:53:04 +00:00
Owner

Why

On the PLC path, the LLM control mapping (Qwen3.8-27B, up to 40 findings, 4 at a time) ran inside "SPS-Analyse". The G3 pumpstation demo therefore sat on that phase for minutes and looked stuck.

What

  • run_plc_scan finishes parsing, rules and the SBOM for every source first. The new map_plc_findings then switches to SemanticControlMapping ("Controls zuordnen") and runs the semantic pass.
  • planned_phases lists that phase for PLC targets, so the stepper shows it ahead of time.
  • The pass follows breakpilot.semantic_mapping, like the code path. Before this change it ran whenever a controls snapshot existed. Staging has the flag on.

Tests

  • planned phases for PLC with the flag off and on
  • clippy (CI flags) and fmt

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

## Why On the PLC path, the LLM control mapping (Qwen3.8-27B, up to 40 findings, 4 at a time) ran inside "SPS-Analyse". The G3 pumpstation demo therefore sat on that phase for minutes and looked stuck. ## What - `run_plc_scan` finishes parsing, rules and the SBOM for every source first. The new `map_plc_findings` then switches to `SemanticControlMapping` ("Controls zuordnen") and runs the semantic pass. - `planned_phases` lists that phase for PLC targets, so the stepper shows it ahead of time. - The pass follows `breakpilot.semantic_mapping`, like the code path. Before this change it ran whenever a controls snapshot existed. Staging has the flag on. ## Tests - planned phases for PLC with the flag off and on - clippy (CI flags) and fmt 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang added 1 commit 2026-09-28 21:42:06 +00:00
feat(scans): PLC control mapping shows as its own phase
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 7m40s
a891bea798
The LLM control mapping on the PLC path ran inside "SPS-Analyse", so a
scan sat on that phase for minutes while Qwen mapped the findings. The
parser and rules now finish first, then the run moves to "Controls
zuordnen" for the semantic pass, as on the code path. The pass follows
the breakpilot.semantic_mapping flag here too.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang merged commit f7c2c03415 into main 2026-09-28 21:53:04 +00:00
Sign in to join this conversation.