Reference

Job Schema

Complete field reference for job configuration files.

Complete field reference for job configuration files. For conceptual overview, see job concepts.

IDE Integration

Add this directive to the top of your YAML file for autocomplete and validation:

# yaml-language-server: $schema=https://tracemill.dev/schemas/job.schema.json

Properties

FieldTypeRequiredDescription
type"job"YesDiscriminator.
descriptionstringNoFree-text description.
tagsstring[]NoClassification tags (unique values).
mitreobjectNoMITRE ATT&CK mapping. Same structure as scenario mitre.
stateobjectNoJob-level variables. See state.
poolsobject[]NoPool registry. See pools.
workloadsobject[]YesMin 1. See workload.

state

A map of variable names to ExprStr values, evaluated once before workloads start.

Unlike scenario state, pool.* expressions are allowed here. Job state is available to workload bindings via ref.*, but does not flow to scenarios implicitly — use explicit bindings (e.g. account_id: ref.account_id).

state:
  account_id: "000000000000"
  region: us-east-1
  api_endpoint: "https://api.example.com:8443"

pools

An array of pool entries. Each entry is either an inline pool definition or a reference to an external pool file. See pool schema for the full pool configuration.

Inline pool

Defines the pool directly in the job file. The type field is optional for inline pools.

pools:
  - id: threat-ips
    sampling:
      mode: random
      seed: 42
    ip_range:
      cidrs:
        - 198.51.100.0/24

External pool reference

Points to a standalone pool file by path or content ID. The job entry's id is used regardless of what id the file contains.

FieldTypeRequiredDescription
idstringYesPool ID for this job. Pattern: ^[a-zA-Z][a-zA-Z0-9_-]*$
descriptionstringNo
pathstringYesContent ID (e.g. resources/pools/threat-ips) or file path (starting with ./, ../, /, or ~).
pools:
  - id: users
    path: ./pools/users.yaml

workload

Each workload runs a scenario with optional concurrency, looping, and bindings.

FieldTypeRequiredDescription
scenariostringYesScenario to run: a content ID (e.g. aws/scenarios/brute-force) or a file path (starting with ./, ../, /, or ~).
concurrencyintegerNoParallel goroutines running the scenario. Default: 1. Min: 1.
loopinteger | "infinite"NoRepetitions: 0 or 1 = run once, N = run N times, "infinite" or -1 = run until cancelled. Default: 0. Mutually exclusive with matrix.
start_afterstringNoDelay before this workload starts, relative to job start. Duration format.
epsnumberNoEvents-per-second rate limit. 0 = unlimited. Min: 0.
matrixobjectNoParameterised axes. Each key is an axis name; the value is an inline list or pool.<id> reference. The scenario runs once per cartesian-product combination. Mutually exclusive with loop.
bindingsobjectNoState variable overrides as ExprStr values. Only explicit bindings flow to the scenario, overriding its state defaults. Can reference job state via ref.* and pools via pool.*.
fieldsobjectNoStatic fields injected into every event from this workload. Event-level fields win on conflict.

Example

workloads:
  - scenario: ./scenarios/brute-force.yaml
    concurrency: 2
    bindings:
      source_ip: pool.threat-ips
      username: pool.target-usernames
      account_id: ref.account_id

  - scenario: ./scenarios/api-calls.yaml
    loop: 10
    eps: 50
    start_after: 5s
    fields:
      environment: production