Concepts

Dispatch uses a small set of concepts consistently across ad-hoc commands, YAML jobs, transports, logs, and results.

Job

A job is one Dispatch execution request. It contains targets, payload, transport, execution context, expected exit codes, artifact rules, and result policy.

Target

A target is one Windows endpoint selected for a job. Each target has its own state, transport metadata, stdout/stderr files, result fields, and artifact collection status.

Inventory

An inventory is a file that defines hosts, groups, defaults, and optional per-host or per-group credential/transport metadata. Dispatch supports simple host files and YAML inventories.

Selector

A selector chooses which inventory hosts to run against. Selectors may name hosts or groups. Exclude selectors remove matching hosts from the final target list.

Transport

A transport is the endpoint protocol Dispatch uses for execution. V1 transports are:

Each transport maps into the same job, target, result, output, and artifact model.

Plan

A plan is the validated execution shape before endpoint work starts. Planning validates local inputs, target selection, supported transport/payload combinations, output paths, expected exit codes, and credential references where possible.

Run

A run is the actual execution of a plan. A run creates a local run folder, emits events, updates target states, captures output, collects artifacts, and writes a final summary.

Command Intent

The main command groups map to different operator intents:

Result

A result is the final machine-readable outcome. Admin\results.json contains the reduced run summary and each target result.

Artifact

An artifact is a file created by the script and copied back by Dispatch. Artifacts are different from process stdout/stderr.

Log

There are two log concepts:

Direct Execution

Direct execution runs the selected script or command through the selected transport without generating an endpoint-side harness. Direct execution is the v1 default.

Managed Execution

Managed execution is a planned later mode where Dispatch would generate a small harness for stronger result normalization. It is not the v1 default.

Captured Output vs Script-Created Files

Dispatch always captures process stdout/stderr into:


Targets\<target>\stdout.txt
Targets\<target>\stderr.txt

Scripts may also create files under remote logs\ or artifacts\. Those files are copied back only when present and when artifact collection succeeds.