version: 1
kind: HwlabWebProbeSentinelWorkflow
metadata:
  id: web-probe-sentinel-auth-session-switch-workflow
  owner: UniDesk
  specRef: PJ2026-01060508
sentinel:
  workflow:
    id: workbench-auth-session-switch-2users
    enabled: true
    cadence: 10m
    observeTargetPath: /workbench
    sampleIntervalMs: 1000
    screenshotIntervalMs: 60000
    maxRunSeconds: 900
    providerProfile: session-switch-sentinel
    providerProfileMode: exact
    promptSetRef: config/hwlab-web-probe-sentinel/prompt-set.auth-session-switch.yaml#sentinel.promptSet
    reportViewRef: config/hwlab-web-probe-sentinel/report-views.auth-session-switch.yaml#sentinel.reportViews
    accounts:
      - id: account-a
        sourcePurpose: account-a
        usernameKey: username
        passwordKey: password
      - id: account-b
        sourcePurpose: account-b
        usernameKey: username
        passwordKey: password
    commandSequence:
      - type: loginAccount
        accountId: account-a
      - type: listSessions
      - type: logout
      - type: loginAccount
        accountId: account-b
      - type: listSessions
      - type: switchSessions
        fromAccountId: account-b
        toAccountId: account-a
      - type: listSessions
      - type: logout
