Skip to content

UX architecture: consolidate workbench into File / IED Browser / IED Simulator / Sniffer #105

Closed

Description

@masarray

Goal

Refactor the desktop workbench from protocol-page navigation into an IED-centric engineering workflow while preserving the already validated protocol/runtime implementations.

Top-level application navigation becomes:

File | IED Browser | IED Simulator | Sniffer

The online engineering experience must no longer expose Reports, Files, Setting Groups, SCL, and GOOSE monitor as unrelated top-level workspaces with separate visible connection controls.

Current architecture problem

Main.qml currently exposes seven top-level workspaces:

  • IED Connection
  • Reports
  • Files
  • Settings
  • SCL
  • Simulator
  • GOOSE

This fragments one engineering task across multiple pages and duplicates endpoint/session UI.

The backend reflects that fragmentation:

  • MmsClientController owns its own host/port and live MMS association.
  • MmsReportController owns its own host/port and reporting association.
  • MmsFileSettingsController owns its own host/port and utility association.

Those service implementations are already regression-covered and should not be collapsed into a new protocol stack during the UX refactor.

Target information architecture

1. File

Entry/home workspace for engineering resources and launch actions.

Responsibilities:

  • Open SCL/CID/SCD/IID/ICD
  • Discover an online IED
  • Open recent engineering files
  • Open recent endpoints
  • launch IED Simulator
  • launch Sniffer
  • SCL save/export/conversion actions
  • application configuration

The existing SclWorkspaceController remains the source of truth for SCL parsing/export policy. SCL is an engineering resource, not a permanent top-level protocol workspace.

2. IED Browser

One logical browser session represents one selected endpoint / engineering context.

Persistent left navigation:

IED
├─ GOOSE
├─ Reports
├─ Setting Groups
├─ Files
├─ DataSets
└─ Data Model
   ├─ LD
   │  ├─ LN
   │  │  ├─ DO
   │  │  │  └─ DA/BDA

The right pane is selection-driven and changes according to the selected navigation node.

Expected content:

  • Data Model: browse, read, read-all/visible, guarded write, control action
  • DataSets: ordered members and references
  • Reports: URCB/BRCB inventory, attributes, members, received reports, enable/GI/disable
  • Setting Groups: SGCB attributes and guarded ActSG activation
  • Files: FileDirectory browsing and bounded download
  • GOOSE: configured model/control-block inspection only

A user connects once at the Browser level. Internal service associations may remain separate, but endpoint ownership and visible connection state are unified.

3. IED Simulator

Keep the existing simulator as its own task-oriented workspace.

Reuse the strong navigation pattern already present in InteropWorkspaceV2.qml:

  • GOOSE
  • Reports
  • Setting Groups
  • DataSets
  • Data Model

Simulator-specific publication/stimulation remains here.

4. Sniffer

Network-observation workspace, independent from one IED object tree.

Initial structure:

  • GOOSE capture/monitor
  • MMS capture/decoder

The existing GooseMonitorController moves here.

Important current capability boundary: the repository has GOOSE capture/PCAP support, but no dedicated MMS sniffer controller/UI was found in the current tree. MMS sniff therefore requires a separate implementation milestone and must not be faked by rebranding the online MMS client.

Session architecture

Introduce a UI/session coordinator, e.g. IedBrowserSessionController.

Responsibilities:

  • canonical browser endpoint (host/port)
  • trusted SCL context
  • logical connected/disconnected state
  • selected IED/session identity
  • endpoint propagation into service controllers
  • lazy service activation
  • coordinated disconnect/cleanup
  • aggregate diagnostics/health
  • recent-endpoint persistence

Do not move wire protocol logic into this coordinator.

Internal service adapters remain:

  • MmsClientController — model discovery/read/write
  • MmsReportController — reporting
  • MmsFileSettingsController — files + setting groups

Phase 1 may keep separate MMS associations internally. The UI must present them as one Browser context. Shared association/pooling, if ever desired, is a later protocol-architecture change and is not required for this UX milestone.

QML refactor map

Create:

  • FileWorkspace.qml
  • IedBrowserWorkspace.qml
  • IedBrowserNavigation.qml
  • BrowserDataModelPane.qml
  • BrowserDataSetPane.qml
  • BrowserReportPane.qml
  • BrowserSettingGroupsPane.qml
  • BrowserFilesPane.qml
  • BrowserGoosePane.qml
  • SnifferWorkspace.qml

Refactor/reuse:

  • MmsClientWorkspace.qml -> content logic for Browser data-model pane
  • ReportsWorkspace.qml -> Browser report pane
  • FilesWorkspace.qml -> Browser files pane
  • SettingsWorkspace.qml -> Browser setting-groups pane
  • SclWorkspace.qml -> File/SCL resource view or dialog
  • GooseWorkspace.qml -> split configured-model inspection from network monitor
  • InteropWorkspaceV2.qml remains the basis for the Simulator UX
  • Main.qml becomes a four-workspace shell

Command model

Use one contextual command bar rather than repeated per-page connection headers.

Application actions:

  • Open SCL
  • Discover IED
  • Close context

IED actions:

  • Connect/Online
  • Disconnect
  • Properties

Data actions:

  • Read
  • Read visible/all
  • Write
  • Control

Service actions:

  • Enable report
  • GI
  • Disable/release
  • DataSet actions
  • Setting Group actions

Commands must enable/disable from the current Browser selection and service state.

Non-goals

This UX milestone must not:

  • rewrite the MMS transport/runtime;
  • change proven report/control wire behavior;
  • change SCL parser/export semantics;
  • expand unsupported file operations;
  • expand unsupported setting-group editing;
  • change simulator protocol behavior;
  • claim MMS sniff until a real capture/decoder backend exists.

Migration phases

P0 — Shell + session ownership

  • add four top-level workspaces;
  • add Browser session coordinator;
  • synchronize endpoint/trusted-SCL state;
  • preserve all existing controllers and QA;
  • remove duplicated visible connection headers from child panes.

P1 — Unified Browser navigation

  • persistent IED tree;
  • Data Model / DataSets / Reports / Setting Groups / Files / configured GOOSE;
  • right pane selection routing;
  • contextual command bar;
  • preserve current service behaviors.

P2 — File/home workflow

  • recent SCL resources;
  • recent endpoints;
  • open/discover/simulate/sniffer launch paths;
  • move SCL export/conversion UI under File/resource context.

P3 — Sniffer split

  • move GOOSE monitor/capture to Sniffer;
  • keep configured GOOSE in Browser and publication in Simulator;
  • add MMS sniff only with a real capture/decoder backend and independent QA.

P4 — visual polish

  • denser engineering tree;
  • stable column alignment;
  • breadcrumb path;
  • selection-driven detail;
  • keyboard shortcuts;
  • splitter persistence;
  • warning/error/status strip;
  • large-model responsiveness verification.

Regression contract

Existing QA targets remain mandatory:

  • MMS client workbench
  • reporting workspace
  • file/settings workspace
  • SCL workspace
  • GOOSE monitor
  • simulator/commissioning/runtime QA
  • release-hardening matrix

Add Browser-specific QA proving:

  1. one endpoint propagates consistently to all internal services;
  2. disconnect tears down all Browser-owned service sessions;
  3. changing Browser endpoint invalidates stale service state;
  4. selecting a navigation node changes pane/actions without reconnecting the whole Browser unnecessarily;
  5. report/file/setting actions still exercise the existing validated controllers;
  6. Browser can render the large-model fixture without unbounded eager expansion;
  7. no protocol behavior changes are required for the UX milestone.

Acceptance UX

A normal online workflow should read as:

File -> Discover/Open -> IED Browser -> select IED -> browse Data Model / DataSets / Reports / Files / Setting Groups -> perform contextual action

The user should never have to think “switch to the Reports application” or “connect again in Files”. Those are services of the currently browsed IED, not separate products.

Activity

  1. masarray commented on Sep 19, 2026

    @masarray
    OwnerAuthor

    Baseline lock for UX refactor

    P0 and all later UX work must descend from this exact validated mainline point:

    • main merge: beac238740034a78bf57ac7f4bd82f38c3662209
    • validated integration head: 28643ecb566b16bed88a49dc839afe3b11f2bf32
    • tree for both commits: fdc328aeceba0c7b2f99736b4f3c1cc928c2c9db
    • integration exact-head CI: 19/19 successful
    • dedicated baseline branch: baseline/v0.2.0-validated
    • P0 branch: ux/p0-ied-browser-shell

    The merge commit and validated integration head have the same tree, so no content changed during promotion to main. Do not rebase P0 onto older simulator branches, old milestone branches, or historical release candidates. If main advances independently, future UX work must be integrated deliberately and re-gated rather than silently changing this baseline.

  2. masarray commented on Sep 19, 2026

    @masarray
    OwnerAuthor

    Baseline promotion complete

    The UX baseline is now fully closed and must be treated as immutable by convention:

    • authoritative baseline commit: beac238740034a78bf57ac7f4bd82f38c3662209
    • baseline branch: baseline/v0.2.0-validated
    • tree: fdc328aeceba0c7b2f99736b4f3c1cc928c2c9db
    • pre-merge integration head with the same tree: 28643ecb566b16bed88a49dc839afe3b11f2bf32
    • integration PR gate: 19/19 successful
    • post-merge main push gate: 14/14 successful
    • Release Hardening on main: successful

    P0 branch ux/p0-ied-browser-shell was created directly from the exact baseline SHA. Future UX work must descend from the accepted UX branch chain or be deliberately integrated/re-gated; do not jump back to historical milestone branches.

  3. masarray commented on Sep 20, 2026

    @masarray
    OwnerAuthor

    P0 promotion complete / P1 baseline lock

    P0 is complete and promoted:

    • validated P0 head: 4bead99df69ab9b04ddc04a55542a5c6b1f061cd — 9/9 exact-head workflows successful
    • merged main commit: e2421c28499b2d3c9bbeaeb9ea8b504e278288a7
    • both commits have identical tree 1d22890fab3c5c1fb5d129cf330b51c3346a9c44
    • post-merge main CI: 11/11 successful, including Release Hardening

    New immutable-by-convention P0 baseline:

    • baseline/ux-p0-validated -> e2421c28499b2d3c9bbeaeb9ea8b504e278288a7

    P1 branch:

    • ux/p1-unified-ied-browser
    • created directly from exact P0 baseline SHA, not from any historical feature branch.

    P1 must remain 0-behind from this baseline until deliberate integration, and must not rewrite the validated protocol/runtime controllers.

  4. masarray commented on Sep 20, 2026

    @masarray
    OwnerAuthor

    P1 promotion complete / baseline lock

    P1 is complete and promoted:

    • validated P1 head: 4f3de76be49aeab55c93705a2186db17e8b09251 — 9/9 exact-head workflows successful
    • merged main commit: 7a6d88322d8db7b78f208ffc181cff2bd9435dbd
    • both commits have identical tree 3c940ca4a6fa097d92a52b14c048bc3888ca3786
    • post-merge main CI: 11/11 successful, including Release Hardening
    • baseline branch: baseline/ux-p1-validated

    Future UX milestones must descend from 7a6d88322d8db7b78f208ffc181cff2bd9435dbd (or a deliberately integrated and re-gated descendant), not from P0 or historical feature branches.

  5. masarray commented on Sep 20, 2026

    @masarray
    OwnerAuthor

    P2 closeout — validated baseline locked

    P2 is now fully closed and promoted with the same baseline discipline used for P0/P1.

    • P2 PR: UX P2: File Home workflow and recent engineering resources #108 — UX P2: File Home workflow and recent engineering resources
    • exact P2 head: f55846b520a55ca849f7e7431c2c33e0b44d91b2
    • exact-head PR workflows: 9/9 SUCCESS
    • merged main commit: 48d5f4e559c9ba7942c2a7e810834307c730bd23
    • compare exact head -> merge commit: 0 changed files (tree content unchanged)
    • post-merge main workflows: 11/11 SUCCESS, 0 failure
    • includes IED Simulator Qt, C++ CI, IED Simulator Release Hardening, SCL-assisted workbench, security/evidence, embedded, BRCB and control profile gates
    • immutable milestone anchor created: baseline/ux-p2-validated -> 48d5f4e559c9ba7942c2a7e810834307c730bd23

    P2 delivered

    • File is now the engineering start surface rather than a raw SCL-only page.
    • Open SCL/CID/SCD/IID/ICD and retain existing SCL detail/export/conversion behavior.
    • Launch paths to IED Browser, IED Simulator and Sniffer.
    • Recent online endpoints remain context-only and do not auto-connect.
    • Recent engineering resources are bounded, deduplicated and local-path-only.
    • product state schema migration 1/2 -> 3 is regression-gated and crash-safe.

    Baseline rule for P3+

    All subsequent UX work must descend from exact SHA 48d5f4e559c9ba7942c2a7e810834307c730bd23 (or the baseline/ux-p2-validated ref), not from historical P0/P1/simulator/RC branches.

    P2 status: CLOSED / VALIDATED.

  6. masarray commented on Sep 20, 2026

    @masarray
    OwnerAuthor

    P3 closeout — Sniffer ownership split validated

    P3 is complete and promoted from the validated P2 baseline.

    • P3 PR: UX P3: split passive Sniffer from Simulator GOOSE publication #109 — UX P3: split passive Sniffer from Simulator GOOSE publication
    • base: 48d5f4e559c9ba7942c2a7e810834307c730bd23 (baseline/ux-p2-validated)
    • exact P3 head: 21a6ce2cf2683a6f74e8c35d7d4a3edee2cd3a0f
    • exact-head pull-request workflows: 9/9 SUCCESS
    • merge commit on main: a1ed3762785e8bdfe3638e54abe25509e2c90793
    • exact head -> merge commit: 0 changed files
    • post-merge main workflows: 11/11 SUCCESS, 0 failure
    • new immutable-by-convention anchor: baseline/ux-p3-validated -> a1ed3762785e8bdfe3638e54abe25509e2c90793

    P3 delivered

    • Sniffer is passive GOOSE capture / decode / supervision / PCAP only.
    • Sniffer no longer owns or receives the Simulator backend.
    • Sniffer no longer instantiates IedCommissioningModel or exposes GOOSE publication controls.
    • GOOSE publication/stimulation remains in Simulator commissioning through the existing validated publisher runtime.
    • configured GOOSE inspection in IED Browser remains unchanged.
    • Sniffer now surfaces capture diagnostics, bounded events, decoded allData, stream status, and PCAP retention/export.
    • CI now includes test_sniffer_ownership.py, which rejects any future reintroduction of publisher APIs or Simulator ownership into Sniffer.

    MMS sniff boundary

    No fake MMS sniffer was introduced. The repository still lacks a dedicated passive MMS capture/TCP-reassembly/decoder backend, so MMS sniff remains a separate real implementation milestone rather than being mislabeled from the active MMS client.

    Baseline rule for P4+

    Future UX work must descend from exact SHA a1ed3762785e8bdfe3638e54abe25509e2c90793 (or baseline/ux-p3-validated) unless a deliberate integration is performed and re-gated.

    P3 status: CLOSED / VALIDATED.

  7. masarray commented on Sep 20, 2026

    @masarray
    OwnerAuthor

    P4 final validation completed.

    • merged main: 24903d2d24aaf0e1f9ede07d4a134b25b94a4d71
    • exact-head PR validation: 9/9 pull-request workflows SUCCESS
    • post-merge main validation: 11/11 push workflows SUCCESS
    • validated baseline: baseline/ux-p4-validated -> 24903d2d24aaf0e1f9ede07d4a134b25b94a4d71
    • Windows release artifact produced by Release Hardening run 35489658217

    P0-P4 UX architecture milestone is complete. MMS passive sniff remains intentionally outside this milestone until a real capture/decoder backend exists, as documented in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions