Sentinel reference#

This page lists every Sentinel command, option, environment variable, evidence file and verdict rule. The Sentinel guide explains how a run works and how to use it, and its glossary defines the Sentinel terms used here, such as driver, campaign child, cell and golden. Sentinel goldens owns the goldens commands.

Paths are relative to the ovclash directory. <evidence> is the evidence/ directory of one run, which the run prints on its Results: line.

Launchers#

test_sentinel.bat (Windows cmd.exe) and test_sentinel.sh (Linux) take the same arguments. They select a Python interpreter and run the driver, scripts/sentinel_ci.py, with every argument unchanged.

test_sentinel.bat [COMMAND] [OPTIONS]
./test_sentinel.sh [COMMAND] [OPTIONS]
  • With no command, the launcher runs run. A first argument that is a run option also means run, so test_sentinel.bat --backend openusd equals test_sentinel.bat run --backend openusd.

  • --version prints ovclash <VERSION> from the VERSION file without starting Python. It works alone, after a command (run --version) and after a goldens subcommand (goldens verify --version).

  • The launchers set PYTHONNOUSERSITE=1 and PYTHONUNBUFFERED=1 unless they are already set.

Python selection#

The launcher uses the first interpreter that exists:

  1. _build/deps/target-deps/python of the launcher’s own checkout.

  2. python-runtime/ of the portable input bundle that --inputs names. Without --inputs, the default bundle _build/portable-inputs/<backend>/<configuration> is tried.

  3. ovclash/_build/deps/target-deps/python of the tree that --source-root selects.

  4. Only for commands other than run: python-runtime/ of any staged bundle under _build/portable-inputs/{ovstage,openusd}/{Release,Debug}.

The launcher reads <backend> and <configuration> from --backend and --configuration, then from OVCLASH_VALIDATION_BACKEND and OVCLASH_VALIDATION_CONFIG, then uses ovstage and Release. The backend is ovstage or openusd, for the ovstage and OpenUSD builds.

When no interpreter exists:

Request

Result

Any request with --help or -h

Prints the short overview shown at the end of Python selection and exits 0.

A command other than run

Prints Sentinel requires an existing build and Python runtime for this command. and exits 1.

run with an explicit --inputs

Prints Sentinel portable inputs lack a Python runtime; regenerate the selected bundle. and exits 1.

run with an unsupported backend or configuration

Exits 2.

run

Runs the bootstrap build build_<backend> --release --validate (or --debug) in the source tree, then uses that tree’s interpreter.

The bootstrap build prints its output on the console and writes no Sentinel evidence. It ignores --preparation-timeout. If it fails, the launcher exits with the build’s exit code. If the build passes but provides no interpreter, the launcher prints Sentinel build did not provide its Python runtime. and exits 1. Like the automatic builds that Sentinel itself starts, the bootstrap build keeps the test_python_runtime validation step; see automatic input preparation.

The short overview, here from test_sentinel.sh:

Sentinel validates ovclash engine behavior and serialization.
Usage: ./test_sentinel.sh [run] [--backend ovstage|openusd] [--configuration Release|Debug] [--output PATH]
Defaults: run --backend ovstage --configuration Release, writing a new directory under _build/sentinel
OVCLASH_VALIDATION_BACKEND and OVCLASH_VALIDATION_CONFIG override the backend and configuration defaults.
Missing local inputs are built automatically; --inputs PATH selects an existing portable bundle.
Runs print startup arguments and settings; --verbose adds case parameters, golden files and evidence paths.
Full command help is available after the first build provides Python.

Commands#

Command

Purpose

run

Validate the selected installed SDK (the content of an SDK archive): native controls, serialization and engine cells, compared with repository goldens. The default command.

check-tests

Run Sentinel’s Python controller and checker tests without loading the SDK.

check-native-tests

Run the capture controls of an existing ovclash_sentinel.

check-engine-native-tests

Run the capture and scenario controls, the shared-stage controls and the option composite controls.

check-fp-native-tests

Run the fp-scenario controls.

check-observer-native-tests

Run the ovstage observer controls and their public/private equality checks.

goldens

Propose, accept, verify and maintain repository goldens; see Sentinel goldens.

COMMAND --help lists a command’s options. run --help also shows preparation examples and the main result paths. Every command accepts --version and -h/--help.

run options#

After the run-start banner, run prints Sentinel settings: in both verbosity modes, before semantic startup checks, output-directory admission and preparation. Arguments: records command arguments as JSON; Environment:, when present, shows set variables from the validation, color, parallelism and CI-deadline allowlist. Effective settings: lists the resolved run options, including the CPU-bounded worker count and Configured campaign cap (seconds). That cap can shrink against the remaining CI budget and publication reserve. Repository inputs: names the case files, golden root, contracts and controller Python. If settings resolution or encoding fails, Settings unavailable gives only the exception type; raw arguments and allowlisted environment values remain visible and normal validation proceeds. See console output for the complete order and examples.

Option

Default

Meaning

--source-root PATH

The repository root above the launcher’s ovclash/

Source tree that contains ovclash/: a Git checkout or an export without Git metadata. A relative path resolves against the current directory, and "" selects it.

--output PATH

A new _build/sentinel/<UTC time>-<backend>-<configuration> in the launcher’s ovclash

Results directory. It must be new or empty.

--backend {ovstage,openusd}

OVCLASH_VALIDATION_BACKEND, else ovstage

SDK backend. It must match the selected inputs.

--configuration {Release,Debug}

OVCLASH_VALIDATION_CONFIG, else Release

SDK build configuration. It must match the selected inputs.

--inputs PATH

Local outputs: ovclash/_build/sentinel-local/<backend>/<configuration> of the source tree

Existing portable input bundle, staged with the Sentinel helpers. A bundle never triggers a build.

--verbose, --no-verbose

--no-verbose

Also print INFO observations, every START line, complete selected engine-cell plans and settings, evidence directories, actual and expected golden paths, live and historical serialization details, command arguments and raw child output. Startup arguments and effective settings print in both modes.

--engine-profile {mr,extended}

OVCLASH_VALIDATION_ENGINE_PROFILE, else OVCLASH_EQ_ENGINE_PROFILE, else mr

Engine profile; see declared combinations.

--engine-workers {1,2,3,4}

2

Concurrent producers for ordinary serial engine cells, capped by the available CPUs.

--timeout SECONDS

7200

Deadline of each owned control command. A native target control uses the smaller of its own deadline and this value.

--preparation-timeout SECONDS

7200

Shared budget for startup input preparation and every control before the campaign. It is also the deadline of each automatic build.

--scenario-timeout SECONDS

120

Deadline of each serialization command. A batch of N requests gets (N + 1) times this value. Engine cells keep their declared deadlines.

--differential-timeout SECONDS

14400 for mr, 18000 for extended

Configured cap for the campaign child, scripts/run_sentinel.py, further bounded by the remaining outer budget and publication reserve.

Rules:

  • Every timeout must be positive and finite. Otherwise the run fails with timeouts must be positive.

  • A backend or configuration from the environment that is not allowed fails with an argument error, for example OVCLASH_VALIDATION_BACKEND/--backend must be ovstage or openusd, not 'usd'.

  • When --engine-profile, OVCLASH_VALIDATION_ENGINE_PROFILE and OVCLASH_EQ_ENGINE_PROFILE set different values, the run fails with Conflicting validation input (conflict): ENGINE_PROFILE.

  • An explicit --output that exists and is not empty fails with Evidence directory is not empty: <path>; remove it or pass --output with a new directory.

  • A default results directory that already exists for the same second gets a -2, -3, … suffix.

  • The driver refuses to run with Python assertions disabled (python -O): CI gate requires assertions enabled.

Deadline budget#

Every run works inside one budget:

  • The outer budget is six hours. Fifteen minutes of it are reserved for publishing evidence.

  • The preparation phase covers startup input preparation and every control before the campaign. --preparation-timeout bounds it.

  • The campaign phase covers the campaign child. --differential-timeout bounds it.

  • Each command’s deadline is the smallest of its own deadline, the rest of its phase and the rest of the outer budget.

An exhausted phase fails with Validation preparation budget exhausted; publication reserve is protected (or campaign). gate-summary.json records the budget in deadline_budget.

Environment variables#

Every variable is optional. For the OVCLASH_* variables and NO_COLOR, an empty value counts as unset.

Variable

Values

Required

Default

Read by

Effect

OVCLASH_VALIDATION_BACKEND

ovstage, openusd

No

ovstage

Launchers, run

Default backend. Another value fails with an argument error.

OVCLASH_VALIDATION_CONFIG

Release, Debug

No

Release

Launchers, run

Default configuration. Another value fails with an argument error.

OVCLASH_VALIDATION_ENGINE_PROFILE, OVCLASH_EQ_ENGINE_PROFILE

mr, extended

No

mr

run

Engine profile. OVCLASH_EQ_ENGINE_PROFILE is the legacy name. Set values, and --engine-profile, must agree.

OVCLASH_VALIDATE_EXCLUDE_TARGETS

Validation step names, separated by spaces or semicolons

No

Unset

Launchers, run

An automatic --validate build removes test_python_runtime from this list for that build only.

OVCLASH_PARALLEL_TESTS

0, OFF, NO or FALSE (any case) for one worker; any other value for parallel workers

No

Unset

check-tests

Default checker workers; see check-tests options.

OVCLASH_PARALLEL_JOBS

A positive integer

No

Unset: all available CPUs

check-tests

Default checker worker count when OVCLASH_PARALLEL_TESTS allows parallel workers.

OVCLASH_TEST_TEMP_ROOT

A directory path, relative to ovclash or absolute

No

_build/test_tmp

Golden comparison

Root of the temporary golden extraction directories.

NO_COLOR

Any nonempty value

No

Unset

Console

Disables color.

TERM

dumb

No

Inherited

Console

dumb disables color.

GENERATOR

vs, ninja (Windows)

No

vs

Automatic builds

Inherited by the build wrappers; see wrapper flags.

Sentinel sets these for its own children; do not set them yourself: OVCLASH_NATIVE_TEST_DATA (native fixture directory), MSBUILDDISABLENODEREUSE=1 (Windows automatic builds) and OVCLASH_DOCKER_CONTAINER_NAME (Linux automatic builds; it names a build container where the wrapper uses one).

check-tests options#

Option

Default

Meaning

--output PATH

Required

Checker accounting JSON. The evidence of the checker shards goes to a directory with the same stem and a .modules suffix. Neither may exist yet.

--source-root PATH

The repository root above the launcher’s ovclash/

Source tree whose checker modules run.

--check-workers N

1 when OVCLASH_PARALLEL_TESTS is 0, OFF, NO or FALSE; else OVCLASH_PARALLEL_JOBS; else all available CPUs

Concurrent shard processes. The available CPUs and the shard count always cap it.

--durations-dir PATH

None

Timing cache for shard planning. It never selects or skips tests.

--budget-seconds SECONDS

8

Target wall time per shard. It applies only to modules with recorded timings and is not a timeout.

--fallback-shard-size N

0

Test methods per shard, counted from source. 0 splits a module only by recorded timings or a declared minimum.

--max-shards N

0

Per-module shard cap. 0 means no cap.

--allow-skips

Off

Accept unittest skips. Skips stay counted and reported.

--timeout SECONDS

7200

Deadline of the whole checker run.

The output file holds four counts:

{
  "errors": 0,
  "failures": 0,
  "skips": 26,
  "tests": 1594
}

This accounting JSON is also the --output of the native control commands:

Field

Type

Required

Default or values

Description

tests

integer

Yes

0 or more

Tests run.

failures

integer

Yes

0 or more

Failed tests. For check-tests it also counts unexpected successes.

errors

integer

Yes

0 or more

Tests that raised an error. For check-tests it also counts modules or shards without a valid result.

skips

integer

Yes

0 or more

Skipped tests. A skip fails check-tests without --allow-skips, and always fails a native control command.

The .modules directory keeps the complete accounting:

checkers.modules/
  request.json               caller request: modules, workers, deadlines, skip policy
  planned-request.json       the request with the planned shard counts
  plan.json                  shared shard plan
  progress.json              launched and completed shards
  summary.json               per-module and per-group results and the final status
  0000-test_process_tree/    one directory per module: index in sorted order and stem
    output.log  result.json  durations.json
  0080-test_sentinel_goldens/0002-of-0003/   one directory per shard of a split module

The checker tests section of the guide shows the console output.

Native control commands#

run starts these commands as numbered checks, with the selected SDK’s environment. They are building blocks of run, not standalone tests.

Command

Required options

Test modules in tests/sentinel/

Retained evidence

check-native-tests

--capture PATH

test_native_capture.py

None beyond --output.

check-engine-native-tests

--capture PATH, --scenario PATH, --backend {ovstage,openusd}, --configuration {Release,Debug}

test_native_engine.py, test_native_scenario_batch.py, test_native_option_composite.py

None beyond --output.

check-fp-native-tests

--fp-scenario PATH

test_native_fp.py

The --output path without its suffix.

check-observer-native-tests

--observer PATH, --scenario PATH

test_native_observer.py

The --output path without its suffix.

Every command also takes --source-root PATH and requires --output PATH, the accounting JSON of check-tests. A command fails with Checker tests failed, skipped, or discovered no tests when any test fails, any test is skipped or no test runs. check-engine-native-tests also requires each of its three modules to discover tests.

--capture, --scenario and --fp-scenario name an existing ovclash_sentinel executable; --observer names ovclash.sentinel_engine.test (ovstage only). The executables load the SDK from the environment that run builds (child_environment in scripts/run_sentinel.py: OVCLASH_LIB, OVCLASH_DLL_DIRS, PATH, LD_LIBRARY_PATH and the OpenUSD plugin path). A direct invocation without that environment fails. The command lines that a run used are in <evidence>/commands.json.

scripts/run_sentinel.py options#

scripts/run_sentinel.py is the campaign child that run starts (label small-differential). Use test_sentinel.* run for validation: it selects the inputs and passes these options for you. The campaign child accepts:

Option

Default

Meaning

--candidate-install PATH

Required

Installed SDK root.

--candidate-build-manifest PATH

Required

Verified build manifest (<evidence>/candidate-build/manifest.json).

--candidate-python-root PATH

None

Python package root of the SDK.

--candidate-runtime-dir PATH

None; repeatable

Extra runtime directory. It must not contain another ovclash library.

--candidate-capture PATH

None

ovclash_sentinel executable. Required for live cases.

--candidate-consumer-provenance PATH

None

Consumer metadata (<evidence>/candidate-capture-provenance.json).

--usd-python-root PATH

None

OpenUSD dependency root with lib/python/pxr. run passes it for the OpenUSD backend.

--scene-oracle-root PATH

None

The OpenUSD dependency root of the independent OpenUSD oracle.

--native-components PATH

None

Native control receipts (<evidence>/native-components.json).

--golden-root PATH

tests/sentinel/goldens

Golden catalog.

--backend {ovstage,openusd}

Required

SDK backend.

--configuration {Release,Debug}

None

SDK configuration.

--profile {synthetic,live,local}

synthetic

Serialization comparisons: synthetic records, live cases, or both. Golden database reads always run. run passes local.

--cases PATH

tests/sentinel/cases.json

Live case inventory.

--case ID

All cases; repeatable

Run only the named live cases.

--seeds N

6

Synthetic record seeds. run passes 6 for mr and 100 for extended.

--execution-mode {batch,isolated}

batch

batch runs all live writes in one process and all live reads in another. isolated starts one process per operation.

--engine-profile {mr,extended}

None

Also run the engine campaign.

--engine-workers {1,2,3,4}

2

Concurrent ordinary serial engine producers.

--performance, --no-performance

--performance

Record observational native metrics.

--verbose, --no-verbose

--no-verbose

Also print DETAIL lines.

--python PATH

The running interpreter

Interpreter for writer and reader processes.

--timeout SECONDS

3600

Deadline of each serialization command. run passes --scenario-timeout.

--output PATH

Required

New or empty results directory.

Rules:

  • --seeds and --timeout must be positive.

  • --engine-profile also requires --configuration, --scene-oracle-root, --native-components and --candidate-consumer-provenance.

  • The engine campaign requires --profile local, no --case and a seed count of 6, 100 or 1000.

  • run also passes hidden options that bind the child to its frozen plan: --progress-plan, --progress-offset and --progress-events.

The campaign child exits 0 when its summary status is PASS and 1 otherwise. When it completes its summary, its last line is one JSON object:

Field

Type

Required

Default or values

Description

status

string

Yes

PASS, FAIL

The summary status of differential/summary.json.

completed_cells

integer

Yes

0 or more

Completed serialization comparison cells.

seconds

number

Yes

0 or more

Total campaign time.

dataset

object

Yes

seeds (integer) and live_cases (integer)

The launched synthetic seed count and number of live cases.

release_gate_complete

boolean

Yes

false

A campaign never completes a release gate: release qualification needs evidence that Sentinel does not produce; see limits.

output

string

Yes

The campaign’s output directory.

A campaign that an error ends prints Sentinel failed: <error> on standard error instead.

Evidence layout#

A run writes everything inside its results directory. The default is _build/sentinel/<UTC time>-<backend>-<configuration>/; --output selects another one.

evidence/
  gate-summary.json              combined verdict and accounting
  junit.xml                      JUnit report for CI test reports
  commands.json                  every owned command of the driver
  progress-plan.json             frozen global task list
  campaign-progress.jsonl        progress events of the campaign child
  performance.json, performance.csv
  candidate-build/manifest.json  selected build manifest
  candidate-capture-provenance.json
  candidate-native-tests.json, candidate-engine-native-tests.json, candidate-fp-native-tests.json
  candidate-fp-native-tests/     retained floating-point control evidence
  native-components.json         index of the native receipts
  native-targets/candidate/
    build.json                   selected native executables
    controls.json                native target control results
    observer-controls.json, observer-tests.json, observer-tests/   ovstage only
  logs/                          one log per owned command, for example:
    prepare-local-install.log, prepare-local-inputs.log
    candidate-native-tests.log, candidate-ovclash.native.test.log
    small-differential.log       complete campaign child output
  differential/                  campaign child output
    summary.json                 serialization and engine verdicts
    required-cells.json          required serialization comparisons
    comparisons.json             serialization comparison results
    differences/<cell>.json      typed differences of a failed comparison
    commands.json, logs/, batches/
    provenance.json, scheduled-live.json
    performance.json, performance.csv
    synthetic/, live/, historical/   writer databases, reader copies and records
    engine/
      plan.json                  selected engine cells, sorted by identifier
      summary.json, results.json, progress.json, partial-coverage.json
      cells/<nnnnn>/             one directory per cell: zero-based index into plan.json
        cell.json  result.json  failure.txt (failed cells only)  producer outputs
      shared-stages/, shared-stage-plan.json, shared-stage-processes/
      retained-results.json      diagnostic recovery after a failed campaign only
golden-proposal/                 golden-only failure only: proposal of the changed snapshots
  proposal.json, differences.json, summary.md, bundles/

Files appear only when their stage is reached. A failed native control, for example, leaves no differential/ directory. The golden maintenance guide describes golden-proposal/.

Progress files#

progress-plan.json freezes the whole global task list before the first check:

{"schema_version": 1, "tasks": ["select existing build and fixtures", "candidate-native-tests command", "..."]}

The campaign child appends one event per line to campaign-progress.jsonl and flushes it (<seconds> stands for the measured duration):

{"index":35,"total":1092,"name":"select campaign inputs","status":"START","seconds":null}
{"index":35,"total":1092,"name":"select campaign inputs","status":"PASS","seconds":<seconds>}
{"status":"REORDER","index":448,"total":1092,"permutation":[0,1,2,5,6,3,4]}

progress-plan.json:

Field

Type

Required

Default or values

Description

schema_version

integer

Yes

1

Schema version.

tasks

array of strings

Yes

Every check of the run in plan order, by its task name.

A check event of campaign-progress.jsonl holds exactly these fields:

Field

Type

Required

Default or values

Description

index

integer

Yes

1 to total

Global check number.

total

integer

Yes

Plan size, the length of tasks.

name

string

Yes

The task name at index in the current order

The check.

status

string

Yes

START, PASS, FAIL, NOT_RUN

The check’s state.

seconds

number or null

Yes

A finite number of 0 or more for PASS and FAIL; null for START and NOT_RUN

Elapsed time of the check.

A REORDER event holds exactly these fields:

Field

Type

Required

Default or values

Description

status

string

Yes

REORDER

Marks the event.

index

integer

Yes

The next unstarted check

Global number of the first check of the reordered block.

total

integer

Yes

Plan size.

permutation

array of integers

Yes

A permutation of 0 to N - 1 for a block of N checks

For each new position in the block, the position of its check in the previous order.

At most one REORDER event permutes the pending engine block, when compatible cells share a loaded stage. Console numbers follow the new order; progress-plan.json keeps the frozen one.

The driver validates every event against the plan: exact keys, no duplicate keys, the expected task name at each index, START in plan order, at most 2 × tasks + 1 events and bounded line lengths. Any violation fails the run with Child progress is invalid or incomplete. The file must not exist before the campaign starts. Progress events are display data; they never prove completion.

Summary JSON#

gate-summary.json#

The driver writes it after every run that created its results directory, including failed startups.

Fields marked “No” appear only when their stage was reached or their condition holds. The campaign fields appear once the campaign child has written differential/summary.json.

Field

Type

Required

Default or values

Description

status

string

Yes

PASS, FAIL

PASS only when every verdict rule holds.

gate

string

Yes

small-differential

The gate name.

backend

string or null

Yes

ovstage, openusd

Selected backend.

configuration

string or null

Yes

Release, Debug

Selected configuration.

serialization_status

string

Yes

PASS, FAIL; NOT_EVALUATED when the run stopped first

Serialization verdict of the campaign.

engine_status

string

Yes

PASS, FAIL; NOT_EVALUATED when the run stopped first

Engine verdict of the campaign.

engine_required_cells

integer or null

Yes

null until the campaign reports

Required engine cells.

engine_completed_cells

integer or null

Yes

null until the campaign reports

Completed required engine cells.

feature_coverage

object

Yes

{} until the campaign reports

Feature name to its engine cell rows (id, source_role, backend, strength, disposition, status, obligations).

release_gate_complete

boolean

Yes

false

Sentinel never completes a release gate.

timings

object

Yes

Stage timings of the driver.

checks_status

string

No

PASS, FAIL

PASS when every independent check passed, ignoring golden comparisons.

golden_status

string

No

PASS, MISSING, DIFFERENT, INVALID

Most severe golden comparison.

golden_policy

string

No

independent-fp-v2

Golden comparison policy.

golden_snapshots

array of objects

No

Every golden comparison; see understand a golden failure.

required_golden_snapshots

integer

No

Number of golden comparisons.

snapshot_checks

array of objects

No

Every runtime snapshot check.

required_snapshot_checks

integer

No

Number of runtime snapshot checks.

required_cells

array of strings

No

Required serialization comparison cells.

completed_cells

integer

No

Completed serialization comparisons.

executions

array of objects

No

Per-comparison results, each with its id, status and number of differences.

engine

object

No

Engine campaign summary.

strict_equality

boolean

No

true when serialization accounting is complete.

dataset

object

No

{"seeds": 6, "live_cases": 40} for mr; 100 seeds for extended

Launched synthetic seeds and live cases.

candidate_revision

string or null

No

Source revision recorded by the installed SDK.

runtime_identity

object

No

Format ovclash-sentinel-runtime-identity-v1

Hashes of the installed runtime before and after the checks, with its status. Present once a candidate was selected.

differential_timings

object

No

Stage timings of the campaign child.

deadline_budget

object

No

The deadline budget at the end.

error

string

No

The failure message, when the run failed.

golden_update_error

string

No

Why a run whose independent checks passed cannot supply a golden proposal.

output_unverified

boolean

No

true

An owned process tree could not be drained.

engine_coverage_status

string

No

diagnostic

Partial engine evidence was recovered after a failure.

engine_coverage_error

string

No

Why that recovery failed.

differential_timing_error

string

No

The child’s timing data was malformed and was ignored.

differential/summary.json#

The campaign child’s verdict, written also when an error ends the campaign:

Field

Type

Required

Default or values

Description

status

string

Yes

PASS, FAIL

Overall campaign verdict.

profile

string

Yes

synthetic, live, local

Serialization profile; run passes local.

golden_policy

string

Yes

independent-fp-v2

Golden comparison policy.

backend

string

Yes

ovstage, openusd

Selected backend.

dataset

object

Yes

seeds (integer) and live_cases (integer)

Synthetic seed count and number of live cases.

required_cells

array of strings

Yes

Required serialization comparison cells.

executions

array of objects

Yes

Per-comparison results, each with its id, status and number of differences.

completed_cells

integer

Yes

Completed serialization comparisons.

strict_equality

boolean

Yes

true only when every required comparison completed exactly once without differences.

serialization_status

string

Yes

PASS, FAIL

Serialization verdict.

engine_status

string

Yes

PASS, FAIL; NOT_REQUESTED without an engine profile

Engine verdict.

engine_required_cells

integer or null

Yes

null without an engine result

Required engine cells.

engine_completed_cells

integer or null

Yes

null without an engine result

Completed required engine cells.

feature_coverage

object

Yes

{} without an engine result

Engine cells by feature.

checks_status

string

Yes

PASS, FAIL

Independent checks only, ignoring golden comparisons.

candidate_revision

string or null

Yes

Source revision of the installed SDK.

timings

object

Yes

Stage timings of the campaign child.

seconds

number

Yes

Total campaign time.

error

string or null

Yes

null when no error ended the campaign

The error that ended the campaign.

release_gate_complete

boolean

Yes

false

A campaign never completes a release gate.

engine

object

With an engine profile

The engine campaign summary of differential/engine/summary.json.

golden_status, golden_snapshots, required_golden_snapshots, snapshot_checks, required_snapshot_checks

as in gate-summary.json

When the engine reported them

The golden and snapshot ledgers.

differential/engine/ files#

File

Contents

plan.json

Every selected cell with its frozen inputs, sorted by identifier.

summary.json

The engine campaign summary; see engine summary.json.

results.json

One row per attempted cell; see results.json rows.

progress.json

The live cell counts; see progress.json.

partial-coverage.json

Coverage of the cells attempted so far.

Engine summary.json#

The engine campaign writes summary.json when it starts and again when it ends. The Required column says when a field is present:

Field

Type

Required

Default or values

Description

format, schema_version

string, integer

Yes

ovclash-engine-campaign-v1, 1

Format identity

status, engine_status

string

Yes

RUNNING until the campaign ends, then PASS or FAIL

The engine verdict

engine_gate_complete

boolean

Yes

true only when the campaign passed

Whether the engine gate passed

plan

object

Yes

path, the absolute path of plan.json

The plan

planned

integer

Yes

1 or more

The selected cells

results

string

Yes

The absolute path of results.json

The result rows

execution_policy

object

Yes

The workers and the shared-stage groups

How the cells run

partial_coverage

object

Yes

path, the absolute path of partial-coverage.json

The coverage so far

checks_status

string

Once the campaign ends

PASS after completion, FAIL after an error

The independent checks

engine_required_cells, engine_completed_cells

integer

Once the campaign ends

0 or more

Required and completed cells

coverage_status, engine_attempted_cells, accounting_complete, engine_diagnostic_cells, feature_coverage, release_gate_complete

string, integer, boolean, integer, object, boolean

After completion

admitted; accounting_complete is true and release_gate_complete false

The completion accounting

golden_status, golden_policy, golden_snapshots, required_golden_snapshots, snapshot_checks, required_snapshot_checks

as in gate-summary.json

After completion

The golden and snapshot ledgers

candidate_revision

string

After completion

The candidate’s expected source revision

executions

array of objects

After completion

One validated row per planned cell

The retained results

hit_depth_admission

array

After completion

The retained hit-depth receipts

error, failure_type

string

After an error

The error text and its exception class name

Why the campaign failed

independent_scene_session

object

When an independent scene session ran

Its metrics

results.json rows#

results.json is an array with one row per attempted cell, each also written as the cell’s result.json:

Field

Type

Required

Default or values

Description

id

string

Yes

A cell ID

The cell

status

string

Yes

passed or failed

The cell result

expected_outcome, actual_outcome

string

Yes

actual_outcome is execution-or-admission-failure in a failed row

The declared and the observed outcome

observed_capabilities, observed_paths

array of strings

Yes

Empty in a failed row

What the cell observed

artifacts

object

Yes

In a failed row, failure with the path of failure.txt

The cell’s evidence files

engine_gate_complete

boolean

Yes

Always false

A cell never completes the gate

checks_status, snapshot_checks, golden_snapshots, golden_status, golden_policy

as in gate-summary.json

Passed rows

checks_status is PASS

The cell’s snapshot and golden checks

reason, failure_type

string

Failed rows

The error text and its exception class name

Why the cell failed

admission_failure_classification

string

No

Only when the fixture could not discriminate the expected outcome

The failure label

progress.json#

The engine campaign rewrites progress.json after each cell. Every field is required:

Field

Type

Required

Default or values

Description

planned

integer

Yes

1 or more

The selected cells

attempted, passed, failed

integer

Yes

0 or more

The cells attempted so far, and how many passed and failed

remaining

integer

Yes

planned - attempted

The cells still to run

engine_gate_complete

boolean

Yes

Always false

Progress never completes the gate

commands.json#

<evidence>/commands.json is an array with one row per owned command of the driver. A row starts as FAIL and becomes PASS only after a zero exit within its deadline:

Field

Type

Required

Default or values

Description

label

string

Yes

Command label, such as small-differential; it also names the log.

argv

array of strings

Yes

The command line.

status

string

Yes

PASS, FAIL

Outcome.

returncode

integer or null

Yes

null when the process gave no exit code

Exit code.

timeout_seconds

number

Yes

Positive

Deadline of the command.

tree_drained

boolean

Yes

true when the owned process tree drained.

seconds

number or null

Yes

Elapsed time; null when the clock gave no finite value.

log

string

Yes

Log path relative to evidence/.

error

string

No

Only on failure

Why the command failed.

differential/commands.json records the campaign child’s commands with the same fields, plus revision and cwd, and an error that is null on success. Its statuses are PASS, FAIL, TIMEOUT and INTERRUPTED, and its log is relative to differential/.

JUnit report#

<evidence>/junit.xml holds one test suite named sentinel:

Test case

Fails when

gate-completion

The combined status is not PASS. The message is the run’s error.

serialization/<cell>

A serialization comparison found typed differences.

engine/<cell id>

The engine cell failed, or its golden_status is not PASS.

Verdict rules#

A run passes only when all of these hold:

  1. Startup selected complete inputs, and every control before the campaign passed.

  2. The campaign child exited 0.

  3. differential/summary.json reports PASS with complete accounting: every required serialization comparison exactly once with zero differences, and a complete engine campaign (engine_gate_complete).

  4. The dataset matches the launched inventory: the profile’s seed count and all live cases.

  5. The installed runtime is unchanged between the first and the last check.

  6. Every owned process tree was drained.

Status fields keep the two kinds of evidence apart:

  • checks_status covers only independent checks: serialization and the engine cells’ semantic checks.

  • golden_status covers only golden comparisons. Its priority is INVALID > DIFFERENT > MISSING > PASS.

  • An engine cell whose independent checks pass is admitted even when its golden comparison fails. The run then fails at final accounting.

The driver sets checks_status to FAIL and records golden_update_error when the independent checks passed but the run is not a clean golden-only failure. A clean golden-only failure needs a MISSING or DIFFERENT golden status, every driver command passed, and the campaign child exited 1 within its deadline. A changed runtime identity also forces checks_status to FAIL. Only a run with checks_status: PASS can supply a golden proposal.

Exit codes#

Program

Exit code

run

0 on success. 1 on any failure, after Clash validation CI gate failed: <error>. 2 on invalid arguments. Ctrl+C prints the summary with Result:    INTERRUPTED and lets the interrupt end the process.

check-tests

0 on success, 1 on failure, 2 on invalid arguments.

check-*-native-tests

0 on success, 1 on failure, 2 on invalid arguments.

goldens

0 on success. 1 after Golden update failed: <error>. 2 on invalid arguments.

scripts/run_sentinel.py

0 when the summary status is PASS, 1 otherwise, 2 on invalid arguments.

Launchers

1 when no interpreter can be found or provided, 2 for an unsupported bootstrap backend or configuration, the build’s exit code when the bootstrap build fails.

Error messages#

Message

Cause and fix

Evidence directory is not empty: <path>; remove it or pass --output with a new directory

The explicit --output holds files. Use a new directory.

Conflicting validation input (conflict): ENGINE_PROFILE

--engine-profile, OVCLASH_VALIDATION_ENGINE_PROFILE and OVCLASH_EQ_ENGINE_PROFILE disagree.

timeouts must be positive

A deadline option is zero, negative or not finite.

Sentinel requires an existing <backend> <configuration> build at <path>: <reason>. Run <wrapper> --validate to build and prepare its Sentinel inputs.

Local inputs are incomplete and no automatic build ran, for example because the manifest is malformed.

Sentinel requires an existing ... Run <wrapper> --validate --stage-inputs to stage that bundle with its helpers. Portable CI inputs must be regenerated by the matching build job.

The --inputs bundle is incomplete or does not match the run.

The automatic '<command>' build completed, but the inputs at <path> are still incomplete: ...

The automatic build did not produce matching inputs. Check its generator tree and install.

Sentinel input build/validation (<command>) failed (exit code N); see <log>

The automatic build failed. timed out after N s replaces the exit code after a timeout.

Portable inputs were staged without Sentinel helpers

Restage with build_<backend> --<configuration> --validate --stage-inputs.

Prebuilt bundle backend/configuration/platform/architecture differs from this run

The selected inputs belong to another tuple.

Validation preparation budget exhausted; publication reserve is protected

The deadline budget ran out.

Required native target reported skipped coverage: <target>

A native control printed skip or skipped outside its expected diagnostics.

Required native completion marker absent: <target>

A native control exited 0 without its completion line.

Child progress is invalid or incomplete: <reason>

The campaign child’s progress events do not match the plan.

Sentinel runtime identity failed: Installed runtime changed during Sentinel execution

A process changed the installed SDK during the run.

Differential dataset differs from the launched synthetic and live inventories

The child ran another seed count or live case set.

Checker evidence must be fresh

The check-tests output file or its .modules directory exists.

Checker modules failed or incomplete; see per-module logs

A checker shard failed; its ERROR line names the log.

CI gate requires assertions enabled

Python runs with -O.

Interrupted; stopping the running native controls

Ctrl+C during the concurrent native capture controls. They are drained and journaled as FAIL.