QA workflows

Before a run, open http://localhost:5098/config directly on the lab PC (adjust the port), change modules and gates, save, then confirm Restart service. Restart interrupts active work; reconnect at the new local URL if you changed the listener. The page exposes credentials and privileged settings to local users without a token and must never be proxied.

Treat the lab PC as a remote pair of hands. The agent installs the build, puts the machine in the state the case needs, captures evidence, and pulls the files back. Features lists every area. Security says which of these stay off until you opt in.

Install and uninstall a build

  1. list_installed_software / get_installed_software to see what is already there and whether a silent uninstall exists.
  2. Drop the new MSI or setup package into a write root, or fetch_file it from an HTTP(S) URL or UNC share as a background job. For a fetch, poll wait_job until the job is no longer Running, and start run_process only if the state is Succeeded.
  3. run_process (Processes is opt-in) to install. Use wait or wait_job / read_job_output to watch the exit code.
  4. After the run, uninstall_software with dryRun first, then for real. Silent uninstall stays off until Software:AllowUninstall is true. MSI, Burn, Inno Setup, NSIS, and quiet-uninstall strings are supported. Per-user entries and AppX/MSIX packages are not.

Toggle devices

Use the Devices module when the case needs a driver stack, a filter, or a device that is present or not.

  1. find_devices / get_device to locate the instance ID.
  2. enable_device, disable_device, or restart_device.
  3. Install or uninstall a package with install_driver / uninstall_driver when the build under test is a driver. When rebootRequired is true, call reboot_machine if System:AllowReboot is on, or restart the PC yourself.

Screenshot the failure

  1. Enable Desktop. Screenshots, window placement, display-layout changes, and managed test desktops stay off until their gates are true.
  2. list_windows and list_displays to find the window or monitor. inspect_window adds the client rectangle, frame insets, DPI context, and per-field errors.
  3. take_screenshot of the desktop, one display, one window, or a region. The MCP image is for the agent and may not appear in chat. Pass share: true and give the person the returned URL; it shows the downscaled preview once and then expires. Pass saveTo in a write root when the full-resolution PNG must be kept; that result includes a one-time download link when tokens are configured. Do not use fetch_file to export the image.
  4. start_window_event_capture follows one process or window. Read it with read_window_event_capture. A pid filter includes later windows from that process and does not include child processes. Stop it with stop_window_event_capture. Closing the chat does not stop it.
  5. To move a test window, set Desktop:AllowWindowPlacement and call set_window_client_rect with savePlacement: true. achieved is true only when the measured client rectangle matches. restore_window_placement uses the returned token.
  6. To test a display mode, set Desktop:AllowDisplayLayoutChanges, call snapshot_display_layout, then start_display_layout_transaction with persistent: false. observe_display_layout_transaction waits for stable geometry. restore_display_layout_transaction puts the original topology back. Do not disconnect and assume the layout returned; the lease does that. While a managed desktop is active, pass its desktopSessionId to snapshot_display_layout and start_display_layout_transaction; Windows refuses display changes from any other desktop. These tools do not create a virtual display. get_virtual_display_backend reports canCreate: false and the missing Vestigo backend prerequisite. create_virtual_display returns virtual_display_backend_unavailable and leaves the topology alone. set_window_client_rect and restore_window_placement accept desktopSessionId for a managed desktop without activating it.
  7. To isolate a test app, set Desktop:AllowDesktopSessions, call create_desktop_session, then activate_desktop_session before run_process with that desktopSessionId and context: interactive. list_windows and inspect_window can use the id before activation. take_screenshot of the desktop, inspect_input_state, and send_input return unsupported_on_inactive_desktop until the session is the input desktop. send_input injection.status submitted means Windows accepted the events. rejected and partial are strict-focus stops. injection.timing is the helper’s own submission interval. response.status observed means a later capture changed. restore_desktop_session or close_desktop_session returns the console user to the desktop recorded at creation. fail-if-running refuses to close while a process launched into the session is still alive. Lease expiry, cancellation, and service restart use terminate-owned.

The lock screen and UAC secure desktop fail with desktop_unavailable. A console user must be logged on.

See whether the machine slept

  1. get_power_state reports AC, battery charging, approximate last sleep and wake times, and whether the platform supports modern standby.
  2. get_sleep_configuration reports the lid-close action and the standby timeout on AC and on battery. A null value was not returned. A timeout of 0 means never.
  3. get_last_wake_source reads the newest Power-Troubleshooter resume event. eventFound: false means that event is absent. The wake-source type is a number, not a device verdict.
  4. Fast Startup configuration is get_boot_state fastStartupEnabled. That setting does not prove the previous boot was hybrid.

Why a screenshot failed

  1. list_logon_sessions shows every session, which one is the console, and which one interactive tools would use (isCurrentInput).
  2. A disconnected session can still have a user and still not be the console. includeDisconnected is true by default. Listener rows such as RDP-Tcp stay hidden unless includeListeners is true.
  3. get_logon_session adds token elevation and local Administrators membership when Windows allows the token to be opened. A missing token leaves those fields null.
  4. Client name and address stay null unless includeClientAddresses is true. They are not written to the Vestigo log.
  5. The error includes reason: nobody_logged_on, only_disconnected_sessions, session_0_only, or console_session_has_no_token. probe_capture_support and user-scope environment keep user_not_available and include the same reason.

Drive the UI

  1. Enable Desktop and Input, then set Desktop:AllowScreenshots and Input:AllowInput to true. Both are off by default.
  2. inspect_screen returns an annotated image, a numbered element list and a captureId.
  3. send_input with that captureId and an elementId (or x, y from the image) clicks that point. A type action ignores elementId and sends text to the focused field, so click the field first. Pass focusWindow from list_windows when the batch should start with that window. requireFocus: true refuses the batch unless that window is foreground immediately before each submission, including after a wait. injection.status rejected means nothing was submitted. partial means the batch stopped after some events and released keys or buttons it still held. focusActual is the window from that check. Calls on one input desktop do not overlap. submitted means SendInput accepted the events. Windows can still change focus before the call returns, and a click hits the window under the pointer. injection.timing gives UTC plus QueryPerformanceCounter ticks, as decimal strings, for the first and last accepted submission on that host. It does not include the later observe wait. Set observe: true to add the next view to the same call when that capture succeeds and the batch was not rejected. When the actions ran and the capture failed, the result has performed and observeError and no new view. Read those fields before calling again, because another call repeats the actions. observeMode: "pixels" skips OCR and UI Automation and reports only whether pixels changed, and observeCropX, observeCropY, observeCropWidth and observeCropHeight with observeWindowHandle limit both captures to a window-relative region; the crop never moves the input.
  4. find_on_screen locates text or an image template when the element list is not enough.
  5. For a window target, inspect_screen accepts cropX, cropY, cropWidth and cropHeight together, in physical pixels relative to the window. The result adds effectiveCrop and windowBounds, and a crop outside the window fails with empty_region. diffAgainst still compares two captures of the same target, area and preview scale (for example two full-desktop captures), and also accepts the same crop of the same window after it moves. Incompatible captures fail with capture_mismatch.
  6. A type action can set inputMode to keys to send virtual keys from the receiving window’s keyboard layout. It fails with unsupported_character, modifier_held, layout_changed or caps_lock_changed and cannot type dead keys or IME text. Those mid-action failures are tool errors with no injection result, and earlier actions in the call may already have been sent.

Input cannot reach a UAC prompt on the secure desktop, the lock screen, or Ctrl+Alt+Del. A prompt on the interactive desktop, used when secure-desktop prompting is off, is reachable. Elevated windows need elevated: true.

Close an application

  1. Enable Processes and Jobs, then call close_app. It posts WM_CLOSE and never kills.
  2. Read each process outcome: exited, stillRunning, or unknown. unknown means the check failed and is not success. verificationError and pidReused mean the pid may now belong to a different process.
  3. Use kill_process only when the case needs a forced stop.

Restart or sign in

  1. reboot_machine needs System:AllowReboot. Use dryRun first, delaySeconds for a countdown that cancel_reboot can abort, and force only when losing unsaved work is acceptable. An immediate restart drops your MCP session.
  2. After a restart, get_interactive_logon_status shows whether the console is at the logon screen or locked. With System:AllowInteractiveLogon and the Credential Provider registered, request_interactive_logon (or request_unlock_workstation for a locked console) returns a consent URL. Give that URL to a person to open in a desktop browser, then poll get_logon_request. On logonui_not_connected, wake the lock screen and retry. lock_workstation locks the console and needs only the gate.
  3. request_autologon_enable works the same way and needs System:AllowAutoLogonChanges. get_autologon_state reports it and disable_autologon removes it.

Query event logs

  1. list_event_logs to see which channels are enabled.
  2. query_event_log on Application, System, or an .evtx file under a read root. Filter by provider, level, event id, or time range.

The Security channel follows Windows ACLs for the service account.

Switch an audio endpoint

  1. Enable Audio. list_audio_endpoints shows playback and recording devices, volume, and which process is using them.
  2. set_default_audio_endpoint stays off until Audio:AllowSetDefault is true. Use it when a case needs a specific headset or HDMI output as the default device.

The service context does not see user-session audio. Per-app overrides in Settings are not changed.

Diagnose a slow VM or stuttering I/O

  1. Enable Performance. It needs Jobs.
  2. get_vm_environment and get_storage_topology to see hypervisor vendor, paravirt versus emulated disks, and 512e versus 4K native.
  3. list_filesystem_minifilters to see AV/EDR/sync filters. list_network_filters to see NDIS Lightweight Filters and WFP callouts. sample_performance_counters with preset storage, overview, network, or network_rss for queue length, disk service times, and NIC RSS imbalance.
  4. probe_scheduler_jitter for steal/preemption spikes while utilization looks idle.
  5. capture_kernel_latency_summary stays off until Performance:AllowKernelTrace is true. Include group network for per-process send/receive/retransmit counts. record_wpr_trace stays off until Performance:AllowRawEtlCapture is true. probe_storage_latency stays off until Performance:AllowStorageProbes is true and the directory is in a write root. capture_packet_drops stays off until Performance:AllowPacketDropCapture is true and returns drop-reason counts, not payloads.

List kernel dumps

  1. Enable Diagnostics. It needs Jobs.
  2. list_kernel_dumps returns MEMORY.DMP, the dedicated dump file, and minidumps that exist. File names and a small header prefix are included. Dump bytes and bugcheck fields are not.
  3. stage_kernel_dump stays off until Diagnostics:AllowKernelDumpStaging is true. Pass an id from the list and a new .dmp path in a write root. The result contains the length and SHA-256. A finished copy includes a one-time download ticket when that root also has Read access.

Read a crash and take a dump

  1. Enable Diagnostics, Processes, and Jobs. Processes is opt-in and needs Jobs; Diagnostics needs Jobs too. list_crash_reports returns Windows Error Reporting metadata for the machine, a user, or both. Dump bytes and the raw report file are not included.
  2. list_processes and keep the start time of the process you will dump.
  3. capture_process_dump stays off until Diagnostics:AllowProcessDumps is true. Pass that expectedStartTime and a new .dmp path in a write root. The dump is not uploaded and no download ticket is created. Protected processes and processes on the fixed refusal list are refused.

Explain a driver load failure

  1. Enable Diagnostics, and Services and EventLog when those facts should be included. Diagnostics needs Jobs. Device queries work while Devices is off.
  2. explain_driver_load_failure takes an instance id, a service name, or both.
  3. Confirm hypotheses cite a service, a signature outcome, or a Code Integrity event. HVCI and Windows lockdown mode are observations. insufficientEvidence means no load-failure signal was observed. The tool does not assert a cause.

Read firewall policy

  1. Enable Diagnostics. It needs Jobs.
  2. get_firewall_profiles and list_firewall_rules stay off until Diagnostics:AllowFirewallInventory is true.
  3. Confirm the profile bitmask and raw rule expressions come back, and that neither tool reports a connection as blocked by the firewall.

Check a lab endpoint

  1. Enable Diagnostics and set Diagnostics:AllowNetworkProbes to true.
  2. Add the host, or the host and port, to Diagnostics:AllowedProbeDestinations. The installer does not write that list.
  3. test_endpoint with dns, tcp, tls, or udp. A UDP sent result does not prove the peer is reachable. stun: true sends one STUN binding request; a missing response is not a firewall block. probe_network_latency and probe_network_path send ICMP or TCP samples to the same allow-list; hop addresses stay omitted unless requested. The probe uses Vestigo’s own network context and does not capture packets.

Read a registry value

  1. Enable Registry. It is off by default.
  2. read_registry_value with a path such as HKLM\SYSTEM\CurrentControlSet\Services and view registry64. HKCU means the console user.
  3. A path outside the allow list is path_not_allowed. Winlogon, Lsa, SAM, and SECURITY are path_denied even if you allow a parent. Add HKLM\SOFTWARE\<Vendor>\<Product> to Registry:AllowedPrefixes when the built-in locations are not enough. That replaces the built-in list.

Investigate Windows Update and servicing

  1. Enable WindowsServicing and Jobs in the installer feature tree or configuration:

    {
      "Vestigo": {
        "Modules": {
          "WindowsServicing": { "Enabled": true },
          "Jobs": { "Enabled": true }
        }
      }
    }
    

    Restart the Vestigo service after configuration changes, and use a token for remote access. This module is separate from Vestigo’s Updates self-updater.

  2. Call get_reboot_pending and list_pending_file_operations. Keep the source states and malformed-pair warnings: unknown is not the same as no reboot pending.
  3. Use get_windows_update_status and get_update_history for WUA status and recent outcomes. get_update_failure_details accepts a literal KB, update ID, HRESULT or text filter and an earliest time. It collects a bounded history window, warning/error events and CBS/DISM log tails. Matching text does not prove causation; log timestamps are not parsed by the time filter.
  4. list_windows_updates starts an offline inventory job. list_servicing_packages starts a DISM package inventory job; it normally needs elevation. Use wait_job and paged read_job_output to read their JSON results. WUA history may have been reset and is not a complete installed-package inventory. Run the inventory jobs one at a time: wait for the first job to finish before starting the next. If wait_job returns Running, continue waiting; its wait timeout does not stop the job. A native diagnostic timeout can leave Windows work running even after the job fails. Wait before retrying servicing_busy.
  5. get_servicing_status shows CBS and pending-file metadata without an integrity check. get_update_storage_status shows volume space and fixed-file metadata, without recursive cache totals or a WinSxS allocation estimate.

WindowsServicing adds no roots of its own. Check the existing roots before collecting logs: a fresh MSI install defaults to FixedVolumes with Read, Write and Execute access, so the paths may already be covered. Both get_servicing_logs and the log tails in get_update_failure_details need Read access to the fixed logs under %windir%\Logs. Add a Read root only if those paths are not already covered. get_file_lockers likewise needs the selected file in a Read root and returns best-effort Restart Manager results without stopping processes. Raw registry queue paths can be returned outside Read roots, but queued files are not opened. Read Security first.

The module does not install updates, repair Windows, clear queues or reboot. Offline applicability work can still update WUA’s cache or logs. Timeout or job cancellation stops waiting rather than aborting native Windows work, and its concurrency slot stays occupied until that work finishes.

Collect logs and traces

  1. tail_text_file or read_text_file_since for a growing log under a read root.
  2. search_text when you need a regex across a directory tree without pulling every file. Use it for line-oriented NDJSON too.
  3. get_json_summary or read_json_path for one UTF-8 JSON snapshot. A query such as $.status or $.items[*] returns typed values; it does not filter or walk every descendant.
  4. start_capture / read_capture or convert_etl for WPP. observe_presentation is a separate bounded read of DXGI, DWM, and DxgKrnl and returns unknown unless an event explicitly identifies the presentation mode. get_download_url or the ticket on a conversion result pulls the file back without pasting the API token into the client.

Keep the intro connection steps nearby: the MSI writes the token into ProgramData, and / in a browser repeats the same instructions.

Plugin validation

The server tests publish real plugin fixtures and exercise shared contract identity, private dependency versions, manifest and trust rejection, dependency graphs, HTTP authentication and MCP discovery/echo invocation. Service restart and MSI upgrade preservation need an elevated deployment smoke test. See the plugin deployment checklist.

API 1.1 tests use a separately published, fake provider plugin to verify schemas and rich content, live catalog changes, disabled modules, prefix conflicts, authenticated owner/session isolation and service disposal over the actual MCP HTTP endpoint. No Playwright backend or browser is needed for these tests. Providers must separately test their own backend leases, concurrency and cleanup.