Sentinel correctness validation#

Sentinel checks ovclash engine behavior and serialization against the current installed SDK: the content of an SDK archive that a build installs. Each run compares the installed SDK with independent expected answers and with the goldens stored in the repository. It needs no earlier SDK or reader. It supports twelve build tuples: both backends, Release and Debug, on Windows x86-64, Linux x86-64 and Linux AArch64. The glossary defines the Sentinel terms used on this page and the other Sentinel pages.

Related pages:

  • Sentinel reference: every command, option, environment variable, evidence file, verdict rule and error message.

  • Sentinel goldens: the golden catalog and its review workflow.

  • Sentinel coverage audit: which layer tests each setting.

  • ovclash/tests/sentinel/README.md: implementation contracts for maintainers, from its “Contract files” section to its “Maintainer entry points”.

How Sentinel fits into validation:

  • Normal builds compile and install the SDK, and compile the ordinary native regression executables and Sentinel’s native helpers.

  • --validate runs neither the Sentinel campaign nor Sentinel’s checker tests: Sentinel’s Python controller tests and the shared process-tree supervisor tests (test_process_tree.py and test_process_tree_owners.py). scripts/python_test_inventory.py lists their modules. Run them with check-tests or the test_sentinel_checkers target.

  • A CI job runs the checker tests first, then the campaign; see run Sentinel in CI.

  • The implementation lives in ovclash/tests/sentinel/.

Git metadata is optional. Sentinel can run from an exported source tree with materialized test data and goldens:

  • Fixture admission uses the data inventory (tests/sentinel/fixture_inventory.json) and the golden manifests.

  • Missing files, unsafe paths, links and unresolved Git LFS (Large File Storage) pointers are errors.

  • When the source root is a Git checkout and Git is available, Sentinel also checks every tracked file under tests/data and tests/sentinel/goldens. It uses Git only when .git is in the selected source root, never a parent directory’s repository.

What is checked#

tests/sentinel/engine_contract.json declares the required behaviors and capabilities. tests/sentinel/engine_cases.json defines fixtures, variants, settings, timelines, actions and supported axes; case fields lists its fields. The controller selects the complete inventory before execution. Runtime discovery cannot remove a required cell.

Area

Required evidence

Geometry

Exact rational triangle intersections, face/end-point checks, and every eligible positive and negative pair within the oracle’s declared domain.

Selection

Literal memberships, component-boundary scopes, visibility, instance placements, public statistics, reselection and stale-result behavior.

Sampling

Independent repeated-binary64-add schedules, empty and nonempty samples, retained timestamps and actual ovstage sample events.

Transforms

Literal matrices and independent OpenUSD evaluation of parents, resets, nested instances and numeric/default queries; private collision-pose observations where required.

Classification

Authored-operation semantics, ovstage classification events and all permanent static/dynamic purge combinations.

Options

Complete requested/effective settings, authored controls, geometry or literal expected values, same-run comparisons and private cooking/bounds observations.

Optimizations

Fresh serial and parallel executions, actual worker callbacks, matrix/cache/prefetch/reuse events, invalidation and complete public result equality.

Recovery

Deterministic cancellation/fault boundaries, allocation and publication failures, process deadlines, drained work and healthy restart equality.

Reports and floating point

All 16 report masks (each even report_mask from 0 to 30, a combination of the four report-buffer flags; see case fields), directed typed payloads, duplicates, Unicode, subnormal/signed-zero behavior and caller/worker floating-point controls.

Delivery and persistence

Ownership/release, sync/async operations, reset/reselection/fresh contexts, current Suite API/SQLite round trips and reading historical database fixtures.

ovstage private test executables expose bounded observations and deterministic failure controls. Required public/private comparisons use the selected installed SDK. OpenUSD runs only its declared public capabilities. Backend ordering is preserved: Unicode checks independently verify pair membership and directed product hashes, while golden comparisons keep the selected backend’s complete typed records.

Oracles#

An oracle is the rule that determines the expected answer:

  • Independent rational geometry and OpenUSD evaluation derive answers from authored inputs.

  • Literal checks implement a specific API contract.

  • Metamorphic checks assert a defined relation between executions, such as fresh versus cached results.

  • Goldens detect changes from reviewed outputs. A matching golden alone does not prove geometry.

  • A serialization round trip checks transport of the supplied records, not the mathematical correctness of detection.

Each engine case names its oracle, and engine_contract.json maps it to a strength:

Oracle in engine_cases.json

Strength

Cells, x86-64 mr, ovstage / OpenUSD

typed_report, literal_contract, lifecycle

literal_contract

509 / 397

recomputation

recomputation_equivalence

62 / 12

pxr_scene

independent_scene

31 / 14

binary64_schedule

exact_schedule

24 / 13

exact_triangles

independent_geometry

15 / 15

sqlite_transport

persistence_equivalence

2 / 2

The contract also declares literal_membership, public_outcomes and backend_differential; no current case uses them.

Declared combinations and coverage limits#

Sentinel expands each case’s declared variants, schedulers, state sequences, floating-point modes and profile axes. It does not run the Cartesian product of every option, geometry, schedule and report mask.

Profile axis

mr (default)

extended

Geometry seeds

4

100

Recovery stress seeds

2

100

Scheduler repeats

2

3

Legacy task budgets

[2]

[1, 2, 3, 4, 8]

Both profiles select every case. extended raises these axes only in the cases that declare them. Backend applicability and architecture-specific floating-point controls make cell counts differ between tuples; see plan and check families. evidence/differential/engine/plan.json lists the exact cells a run selected. The coverage audit maps settings to their named cases and records which interactions have no independent oracle.

Selecting a manager does not by itself prove worker participation; the optimization cases (engine-optimization-*) separately require actual worker observations. The large Body and Cockpit scenes of the performance benchmark, KPI, stay dedicated KPI workloads, not Sentinel cases.

Run locally#

Before you begin, you need a source checkout or source export with materialized test data and goldens, and the build prerequisites of building ovclash from a source checkout. The commands build and validate the installed SDK, run the checker tests, then run Sentinel.

From ovclash in Windows Command Prompt (cmd.exe):

build_ovstage.bat --release --validate
test_sentinel.bat check-tests --output _build/sentinel-local-checkers.json --allow-skips
test_sentinel.bat
rem Optional explicit run with a new evidence directory:
test_sentinel.bat run --output _build/sentinel-local-run

On Linux:

./build_ovstage.sh --release --validate
./test_sentinel.sh check-tests --output _build/sentinel-local-checkers.json --allow-skips
./test_sentinel.sh
# Optional explicit run with a new evidence directory:
./test_sentinel.sh run --output _build/sentinel-local-run
  • With no arguments, test_sentinel.bat or ./test_sentinel.sh runs run with backend ovstage and configuration Release.

  • OVCLASH_VALIDATION_BACKEND and OVCLASH_VALIDATION_CONFIG replace those defaults when set. Explicit --backend and --configuration still win.

  • For OpenUSD, use build_openusd and --backend openusd. For Debug, use --debug and --configuration Debug together.

  • --engine-profile extended selects the larger profile; see declared combinations.

  • --help lists the commands, and COMMAND --help describes one. The Sentinel reference lists every option and environment variables every variable.

A passing check-tests ends its Checker summary with the result PASS and exits 0. A passing run exits 0, and its last line is ALL PASSED. Sentinel Council approves. This is the way.; see summary and final line. A failed build or validation stops the sequence before Sentinel runs; its output names the failed step, and troubleshooting lists common causes. A failed check-tests or run exits 1; see read a failure.

Each run writes its evidence to a new results directory, _build/sentinel/<UTC time>-<backend>-<configuration>, for example 20261015T050144Z-ovstage-Release. A run started in the same second adds -2, -3, and so on, so the parameter-free command can be repeated. The Results: line names the run’s evidence/ directory. Earlier results directories accumulate under _build/sentinel; delete them when you no longer need them. An explicit --output must be new or empty, because existing evidence is never overwritten.

Automatic input preparation#

run prepares its inputs in two steps.

Launcher bootstrap. The launcher needs an orchestration Python. It looks for one in its own checkout, in the selected portable input bundle and in the --source-root tree; Python selection gives the exact order. If none exists, run first builds the source tree with build_<backend> --<configuration> --validate. That build prints to the console and writes no Sentinel evidence. An explicit --inputs bundle without its Python runtime fails instead; regenerate that bundle. Commands other than run never build.

Startup input preparation. Sentinel then checks the selected manifest, installed SDK, helpers, Python bindings and runtime, and OpenUSD dependencies. It prepares missing local inputs within --preparation-timeout:

  • A complete matching local build is used directly.

  • Missing local inputs trigger one matching build_<backend> --<configuration> --validate in the selected source tree.

  • When the installed SDK’s provenance names another backend or configuration, Sentinel first runs build_<backend> --<configuration> (build and install) in the same tree. This replaces the shared _build/install/<backend> tree, for example a Debug install with Release. The --validate build follows only if inputs stay incomplete.

  • A local input descriptor from the retired output layout, whose test interpreter sits in a virtual environment directly under _build, counts as missing. The matching --validate build regenerates it. --stage-inputs and --prepare-sentinel refuse such a descriptor and name the rebuild command.

  • An explicit --inputs bundle never triggers a build. Malformed provenance and errors in an explicit bundle stop startup before any build.

Fixture files are checked first, so missing files and unresolved Git LFS pointers fail before any build. Every --validate build that the launcher or Sentinel starts keeps the test_python_runtime step, which produces Sentinel’s Python environment and the Windows Debug runtime. If an inherited OVCLASH_VALIDATE_EXCLUDE_TARGETS names it, that entry is dropped for that build only, and the console says so.

Each automatic build prints its command and its log, then relays the build’s output in either verbosity mode. On this page, <evidence> is the run’s evidence/ directory:

Running Sentinel input build/validation: ovclash/build_ovstage.bat --release --validate; log: <evidence>/logs/prepare-local-inputs.log
DETAIL prepare-local-inputs | <build output line>

The install-only build uses prepare-local-install instead. <evidence>/commands.json records both commands. If a build fails or times out, startup fails with a message that names the build and its log. If inputs are still incomplete or mismatched after a build, the message names the build and _build/sentinel-local/<backend>/<configuration>/manifest.json. Sentinel does not build again.

An automatic build passes only --release or --debug, plus --validate for the validation build. It therefore uses the wrapper defaults: the Visual Studio generator on Windows and, on Linux, the wrapper’s default build environment (see Wrapper flags). Inherited settings such as GENERATOR still apply. For a Ninja tree, run the matching build with your generator flags before Sentinel, for example build_ovstage.bat --release --ninja --validate.

Portable input bundles#

A portable input bundle (format ovclash-portable-inputs-v1) holds everything a run needs without a build tree. --stage-inputs stages one in _build/portable-inputs/<backend>/<configuration>. From ovclash, for the ovstage Release and Debug bundles:

Windows (cmd.exe):

build_ovstage.bat --release --validate --stage-inputs
build_ovstage.bat --debug --stage-inputs

Linux:

./build_ovstage.sh --release --validate --stage-inputs
./build_ovstage.sh --debug --stage-inputs

For OpenUSD, use build_openusd instead. Each command exits 0 when the bundle is staged and nonzero when the build, the validation or the staging fails; the bundle path never holds a partial bundle.

  • Staging copies the validated installed SDK, its Python runtime and the Sentinel helpers from the build that _build/sentinel-local/<backend>/<configuration> describes. It compiles nothing.

  • With --validate in the same invocation, staging follows only a passing validation.

  • A tree without the helper outputs, for example one built only with --target, cannot be staged.

A bundle holds these entries, with only relative paths in its manifest:

Path

Present

Contents

manifest.json

Always

The bundle manifest, format ovclash-portable-inputs-v1.

install/

Always

The validated installed SDK.

python/

Always

The product Python packages.

python-runtime/

Always

The Python runtime, with NumPy.

usd/

Always

The selected OpenUSD dependency, with its Python package pxr.

consumers/

Only in a bundle staged with the Sentinel helpers

The public consumer ovclash_sentinel from the normal build.

native/

In a bundle staged with the Sentinel helpers, and in every Windows Debug bundle

The native test programs and their support libraries, and on Windows Debug the Debug runtime DLLs.

Normal builds already produce sentinel_native_inputs, so --prepare-sentinel is only an explicit helper rebuild in the configured build tree:

  • It runs scripts/prepare_sentinel.cmake through the same wrapper as the build.

  • It refuses a GCC or Clang tree whose recorded compiler is missing or reports a different version, instead of recompiling the validated tree with another toolchain.

  • It installs no SDK and does not rebuild the installed ovclash.native.test, whose Windows post-build install/signing hook would reassemble the validated SDK.

  • With --stage-inputs, it also stages the bundle. After --validate in the same invocation, it rebuilds nothing.

Staging replaces any earlier bundle for the same backend and configuration. It swaps whole directories by renames, so the path never holds a partial bundle. On Windows, a file that another process holds open makes restaging fail and leaves the bundle unchanged. A library that a running KPI or Sentinel process still loads stays behind in a <configuration>-* directory beside the bundle until you delete it.

When configurations share an install directory, run the matching build or validation last, before staging. Staging refuses an install that holds another backend or configuration and keeps the earlier bundle.

--inputs DIRECTORY selects an existing bundle instead of local outputs. A bundle staged without the Sentinel helpers, or with missing files, fails before execution. The message names the restaging command build_<backend>.bat|.sh --<configuration> --validate --stage-inputs. A CI system can therefore validate and stage in one job and run Sentinel from the staged bundle in another; see run Sentinel in CI.

Build outputs and the native test runtime#

Generator-specific build roots are kept. For example, Windows Visual Studio outputs are:

_build/compile/ovstage/vs/windows-x86_64/release/
  ovclash.dll
  tests/             ordinary native regression executables
  tests-sentinel/    ovclash_sentinel[.exe] and ovclash.sentinel_engine.test[.exe]

Both backends and Debug use the corresponding root and configuration directory; Ninja uses _build/compile/<backend>/ninja.

Test executables have no copied SDK DLLs beside them. Windows searches that location before PATH, which could silently select a stale or different SDK. The native validation launcher and Sentinel supply the selected installation’s runtime directories, and the Debug runtime where needed. Sentinel’s public consumers also verify where the loaded SDK came from.

The build writes path metadata to _build/sentinel-local/<backend>/<configuration>/manifest.json (format ovclash-sentinel-local-inputs-v1). Selection checks backend, configuration, platform, architecture and required paths, including the installed SDK’s backend and build configuration. Native admission checks loaded-library origins. The installed SDK’s verified source revision is descriptive provenance, not a reference pin. An SDK without one, or built with uncommitted changes, is recorded by content identity.

Native controls read fixture scenes from the Sentinel checkout’s ovclash/tests/data. Sentinel sets OVCLASH_NATIVE_TEST_DATA (a directory path) for those controls, so prebuilt executables do not depend on the checkout path of the machine that built them. A direct native-test invocation uses its compiled fixture directory unless this variable is set. A set variable is used as given and never falls back, so a wrong directory makes the tests fail. Environment variables lists every variable that Sentinel reads or sets.

Checker tests#

check-tests --output FILE runs the checker tests outside normal build validation:

  • The test_sentinel_checkers target runs them too, and OVCLASH_VALIDATE_EXTRA_TARGETS=test_sentinel_checkers appends it to a --validate run.

  • test_python_runtime still runs the three SDK-dependent Sentinel serialization modules, and run does not repeat the checker tests.

  • Standalone check-tests rejects any skip. --allow-skips, which the CMake target passes, accepts ordinary unittest skips, including platform-specific ones, and reports their counts. Failures, errors, unexpected successes, incomplete execution and empty modules fail either way.

  • --check-workers N sets the number of concurrent checker shards. Without it, the count is 1 when OVCLASH_PARALLEL_TESTS is 0, OFF, NO or FALSE, otherwise OVCLASH_PARALLEL_JOBS when set, otherwise the available CPU count. The available CPUs and the shard count bound every worker count.

  • The CMake target passes 1 when OVCLASH_PARALLEL_TESTS is OFF, otherwise OVCLASH_PARALLEL_JOBS when set, or 16.

Each run keeps per-shard logs, method durations and complete method accounting beside the output file, in a directory with the same name and a .modules suffix: checkers.modules for checkers.json. Neither may exist yet; otherwise check-tests fails with Checker evidence must be fresh. Delete both, or choose a new name, before you repeat a command. The CMake target writes a new timestamped file for every run: _build/validation/<backend>/<generator>/<configuration>/sentinel_checkers/<UTC time>-<8 hex>.json. check-tests options lists every option, the accounting JSON and the evidence layout.

The console prints one line per completed shard, in completion order, then a table of checker groups and a summary. A Windows run with eight workers prints lines like these, where <elapsed> and <UTC time> stand for the measured durations and clock times:

Sentinel checker tests started <UTC time>
Plan: 141 shards from 141 modules on 8 workers
[  1/141]   0% PASS     <elapsed>  Serialization and compatibility | test_sentinel_golden_catalog.py
[  2/141]   1% PASS     <elapsed>  Engine execution and result checks | test_sentinel_engine_oracles.py
...
[141/141] 100% PASS     <elapsed>  Engine execution and result checks | test_sentinel_unicode_reports.py
Checker groups (wall time, modules, tests, cumulative worker time):
PASS     <elapsed>  Processes, deadlines and concurrency   18 modules   179 tests   <elapsed> worker
PASS     <elapsed>  Additional checker controls            26 modules   272 tests   <elapsed> worker
...
PASS     <elapsed>  Shared stages and scene sessions        6 modules    50 tests   <elapsed> worker
Checker summary
  Tests:     1594 run: 0 failures, 0 errors, 26 skipped
  Shards:    141 of 141 completed: 141 passed, 0 failed
  Started:   <UTC time>
  Finished:  <UTC time>
  Elapsed:   <elapsed>
  Result:    PASS
  • A module split into several shards adds (shard <k>/<count>) to its label.

  • A checker group is a console presentation label only. It never selects or combines modules.

  • A failed shard adds an ERROR line with its counts and its retained log, and the command ends with Clash validation CI gate failed: Checker modules failed or incomplete; see per-module logs:

[ 37/141]  26% FAIL     <elapsed>  Serialization and compatibility | test_sentinel_goldens.py
ERROR test_sentinel_goldens.py: 1 failure, 0 errors in 11 tests; log: <ovclash>/_build/sentinel-local-checkers.modules/0080-test_sentinel_goldens/output.log

Result: is INTERRUPTED after Ctrl+C.

How a run works#

Plan and check families#

Before the first check, run freezes the complete task list and writes it to evidence/progress-plan.json. The Plan: line counts the checks by family:

Family

Checks

preparation

Select existing build and fixtures: fixture admission, build selection and the first hash of the installed runtime.

native controls

The three native capture controls, one check per native target selector and, on ovstage, the observer controls.

serialization

Campaign input selection, synthetic and live writes, reads and comparisons, and the golden database reads.

engine

Prepare shared engine stages, one check per engine cell and Engine completion.

final accounting

Validate differential summary.

Plan sizes for the mr profile:

Tuple

Plan: line

Windows or Linux x86-64, ovstage

Plan: 1092 checks: 1 preparation, 33 native controls, 412 serialization, 645 engine, 1 final accounting

Windows or Linux x86-64, OpenUSD

Plan: 886 checks: 1 preparation, 17 native controls, 412 serialization, 455 engine, 1 final accounting

Linux AArch64, ovstage

Plan: 1044 checks: 1 preparation, 33 native controls, 412 serialization, 597 engine, 1 final accounting

Linux AArch64, OpenUSD

Plan: 838 checks: 1 preparation, 17 native controls, 412 serialization, 407 engine, 1 final accounting

The extended profile plans 6606, 1108, 6558 and 1060 checks for the same tuples. Release and Debug plan the same checks. The counts follow the current case inventory and change when cases are added or removed.

Execution order#

Phases run in this order. The last column says what a failure stops.

Console phase

Work

After a failure

Startup input preparation

Select a complete local build or the --inputs bundle. For missing local inputs, check fixture files first, then run at most one install build and one build/validation.

The run stops before its plan.

Preparation

Admit fixtures and goldens, select the existing build and record the installed runtime’s identity.

Every later check is NOT_RUN.

Candidate native capture tests

Run the capture, scenario and fp-scenario controls of ovclash_sentinel concurrently.

The first failure in plan order is reported; every later check is NOT_RUN.

Candidate required native target controls

Run every applicable native target selector, one at a time.

Every later check is NOT_RUN.

Candidate required observer controls

ovstage only: observer controls and public/private equality.

Every later check is NOT_RUN.

Engine and serialization campaign

The campaign child, scripts/run_sentinel.py: serialization first, then the engine cells.

A serialization failure skips the remaining serialization checks; the engine campaign still runs. A failed engine cell does not stop the other cells.

(check) Validate differential summary

Final accounting.

It is NOT_RUN whenever the campaign child fails.

The three capture controls each keep their own log and output JSON. commands.json keeps plan order. Ctrl+C prints Interrupted; stopping the running native controls, then stops and drains the running controls instead of waiting for their deadlines. They are journaled as FAIL, the summary reports Result:    INTERRUPTED, and evidence/gate-summary.json records KeyboardInterrupt.

Sentinel hashes the installed runtime before the candidate checks and again at the end. A change in between fails the run.

Native controls#

Native controls run existing executables against the selected SDK. Windows uses 13 executable names for OpenUSD and 17 for ovstage: one public consumer plus 12 or 16 applicable native targets. These are executable names, not test or process counts; one executable may run many selectors or detections on a loaded stage.

Windows executable

When executed

Purpose

ovclash_sentinel.exe capture

Native capture controls; live serialization campaign; public comparison controls

Capture complete canonical C ABI reports independently of Suite serializers.

ovclash_sentinel.exe scenario

Native scenario controls; engine campaign; public comparison controls

Apply engine settings/actions, collect statuses and snapshots, and run compatible configurations on one loaded stage.

ovclash_sentinel.exe fp-scenario

Native floating-point controls; floating-point engine cells

Check detection/report behavior and caller floating-point state restoration; worker controls run separately.

ovclash.native.test.exe

Required native target controls, both backends

General installed-SDK native API and engine regressions.

ovclash.parallel_for.test.exe

Required native target controls, both backends

Scheduler completion, cancellation, exceptions and worker floating-point restoration; ovstage also checks matrix prefetch.

ovclash.suite_guard.test.exe

Required native target controls, both backends

C ABI exception/allocation guards and thread-local errors.

ovclash.suite_guard_failure.test.exe

Required native target controls, both backends

Failures entering guards, formatting exceptions and restoring state.

ovclash.suite_report_lifetime.test.exe

Required native target controls, both backends

Report lifetime, allocation failure and ownership transfer.

ovclash.suite_fetch_borrowed.test.exe, ovclash.suite_fetch_owned.test.exe

Required native target controls, both backends

Fetch failure handling for borrowed and owned reports.

ovclash.suite_batching_borrowed.test.exe, ovclash.suite_batching_owned.test.exe

Required native target controls, both backends

Batch boundaries, complete payloads, schedulers and exactly-once release.

ovclash.suite_report_failure_borrowed.test.exe, ovclash.suite_report_failure_owned.test.exe

Required native target controls, both backends

Unavailable/interrupted reports, complete fields and retained history.

ovclash.sentinel_records.test.exe

Required native target controls, both backends

Exact typed encoding, streamed component order and bounded allocation/scratch memory.

ovclash.suite_report_ownership_failure.test.exe

Required native target controls, ovstage

Allocation failures after report acquisition, cleanup and healthy retry.

ovclash.suite_serialization_failure.test.exe

Required native target controls, ovstage

Production serializer allocation failures and complete-or-error behavior.

ovclash.dynamic_failure.test.exe

Required native target controls, ovstage

Engine allocation failures, recovery and allocator boundaries.

ovclash.sentinel_engine.test.exe observer

ovstage native/observer controls and engine cells

Internal path, threading/cache observations and equality with the installed public SDK.

ovclash.sentinel_engine.test.exe recovery

ovstage native cleanup controls and recovery/optimization cells

Deterministic cancellation, worker draining, held-prefetch boundaries and healthy restart.

ovclash.sentinel_engine.test.exe faults

ovstage fault/recovery engine cells

Named internal fault injection and recovery.

Selectors and deadlines of the native target controls (tests/sentinel/native_targets.py):

Target

Selectors

Deadline

ovclash.native.test (from the installed SDK)

None

900 s

ovclash.suite_guard_failure.test

entry, exception-format, restore

300 s

ovclash.suite_report_ownership_failure.test (ovstage)

one-shot, persistent, controlled, double-one-shot, double-persistent

300 s

ovclash.suite_serialization_failure.test (ovstage)

query, point-settings, frame, overlap, run-settings

300 s

ovclash.dynamic_failure.test (ovstage)

None, then allocator-boundary

600 s

ovclash.sentinel_engine.test (ovstage)

observer --observer-self-test; recovery --gate-unwind-self-test delayed-arrival; recovery --gate-unwind-self-test controller-exception

300 s; 30 s for each recovery control

Every other target

None

300 s

OpenUSD runs 12 targets with 14 selectors; ovstage runs 16 targets with 29 selectors. The observer controls (test_native_observer.py) have a 600-second deadline. --timeout and the deadline budget cap every deadline.

A native target control passes only when all of these hold:

  • the process exits 0 and its process tree drains;

  • its completion marker appears, for targets that print one;

  • its output has no skip or skipped word outside the expected product diagnostics listed in native_targets.py. A passing control must not use that word to describe its own work.

ovclash.sentinel_engine.test runs exactly one of observer, recovery or faults per invocation, each in its own owned process tree with its own deadline. Receipt verification binds the subcommand as well as the executable path, so evidence from another action cannot satisfy the selected control. ovclash.sentinel_engine.test ACTION --help describes an action’s arguments.

tests/sentinel/CMakeLists.txt declares the public consumer ovclash_sentinel. ovclash_sentinel --help lists its subcommands, and ovclash_sentinel COMMAND --help describes their options. Normal builds produce it and, on ovstage, ovclash.sentinel_engine.test in tests-sentinel/ through sentinel_native_inputs. ovclash.native.test.exe comes from the bin/ directory of the installed SDK. The other controls are test outputs. No control ships in an SDK archive or a wheel. Linux uses the same names without .exe and, on ovstage, a private allocation-probe shared library for its fault controls.

Supporting executable

Use

python.exe / python3

Orchestration, Suite/SQLite writers/readers, the independent OpenUSD oracle and process watchdogs.

cmd.exe / shell

Platform launcher and owned-process controls where required.

git.exe / git (optional)

Check tracked fixture membership when the source root is a Git checkout and Git is available.

Detection uses the selected ovclash.dll or libovclash.so. SQLite inspection uses Python’s sqlite3 module; sqlite3.exe and OpenUSD command-line utilities are not required. CMake, compilers, linkers and package downloads may be needed for automatic startup preparation when local build inputs are missing. With complete inputs, the campaign does not need them. Distribute materialized fixtures when you export a source tree; Sentinel does not download Git LFS objects.

Serialization campaign#

The campaign child first writes and reads current data through the selected SDK and its Python bindings:

Part

Checks

Synthetic

Write the synthetic records (6 seeds for mr, 100 for extended), compare the stored database, read a copy and compare the readback.

Live

For each of the 40 live cases in tests/sentinel/cases.json: capture the native reports, write all databases in one batch, read them in another, and run three comparisons per fetch mode: canonical Suite, retained runtime and readback.

Golden databases

Copy each historical database from the golden catalog, read it with the current reader and compare the records with their reviewed expected records.

The fetch modes change only the threading settings after detection:

Fetch mode

Delivery

serial

Single-threaded.

carbonite

New task manager, on Carbonite tasking.

threads-2

Legacy manager with two tasks.

The required comparison cells are 2 synthetic, 9 per live case and 1 per golden database: 364 in the current inventory. The live cases in cases.json must equal live_case_ids in engine_contract.json. Each reader gets its own copy of the closed writer database. A failed comparison writes its typed differences to differential/differences/<cell>.json. The “Current and historical serialization” section of tests/sentinel/README.md describes the reader checks.

Engine campaign#

Planning. tests/sentinel/engine_plan.py expands each of the 127 cases over its declared axes. The axes are variants, seeds, detection modes (serial, legacy-manager, new-manager), state sequences, floating-point modes, oracles, repeats and task budgets. 102 cases run on both backends and 25 on ovstage only. The cells are sorted by their identity string, a /-separated list of key=value axes:

case_id=engine-classification-ancestors/variant=animated-ancestor/seed=0/source_role=candidate/backend=ovstage/configuration=Release/detection_mode=serial/state_sequence=fresh/fp_mode=normal/oracle=pxr_scene/platform=windows/architecture=x86_64/profile=mr/repeat=0/task_count=0

Every identity holds all fifteen axes, always in this order. Each value is percent-encoded except ASCII letters, digits and -, _, . and ~.

Field

Type

Required

Default or values

Description

case_id

string

Yes

An id of engine_cases.json

The engine case.

variant

string

Yes

A variants[].id of the case

The case variant.

seed

integer or none

Yes

The fixture’s seed; 0 to the profile’s seed count minus 1 for a geometry or stress case; none for a fixture without a seed

Fixture seed.

source_role

string

Yes

candidate

The candidate, the installed SDK under test.

backend

string

Yes

ovstage, openusd

Backend of the installed SDK.

configuration

string

Yes

Release, Debug

Build configuration of the installed SDK.

detection_mode

string

Yes

serial, legacy-manager, new-manager

Scheduler of the detection.

state_sequence

string

Yes

fresh, forward, rewind, repeat, reset, reselect, settings-change

Order of runtime states that the cell visits.

fp_mode

string

Yes

normal; <rounding>-<control> with rounding nearest, downward, upward or toward-zero and control gradual, ftz, daz or ftz-daz on x86-64 and gradual or fz on AArch64; or nearest-ftz-daz (x86-64) or nearest-fz (AArch64)

Floating-point mode; see floating-point matrix.

oracle

string

Yes

An oracle of the case, such as pxr_scene

The oracle that decides the expected answer.

platform

string

Yes

windows, linux

Platform of the run.

architecture

string

Yes

x86_64, aarch64

Architecture of the run.

profile

string

Yes

mr, extended

Engine profile.

repeat

integer

Yes

0, or 0 to the profile’s scheduler repeats minus 1 for a scheduling case

Repeat index.

task_count

integer

Yes

The case’s task budget

Worker task budget of the detection.

Applicability. engine_contract.json marks public_contract cells required on both backends. private_observer, private_optimization and ovstage_public cells are required on ovstage and absent from an OpenUSD plan.

Scheduling.

  • --engine-workers (1 to 4, default 2, capped by the available CPUs) bounds concurrent producers.

  • Only ordinary serial cells run concurrently (parallel_eligible() in tests/sentinel/engine_campaign.py). Such a cell has:

    • serial, single-threaded detection in the normal floating-point mode;

    • a generated geometry, selection, options, reports or schedule fixture;

    • public capture as its only capability;

    • only run, snapshot and query actions.

  • Private, floating-point, recovery, fault and other cells run alone. Each of them waits for the concurrent cells before it to finish.

  • Compatible cells share one loaded stage, in groups of at most 64. Grouping changes their launch order once; see console output.

  • Admission, caches, progress and publication stay on the controller.

Admission. For each cell, the controller first runs the cell’s semantic checks and requires the declared capabilities and artifacts. Only then does it compare the snapshots with goldens:

  • Live-fixture cells collect no golden snapshots.

  • Native floating-point cells check all eight runtime snapshots and compare four representatives; see the floating-point matrix.

  • A malformed candidate typed bundle fails the cell.

  • Any other golden comparison result, such as MISSING or DIFFERENT, leaves the cell’s check passing. The golden status is recorded and decides the verdict at completion.

Each cell keeps its files in differential/engine/cells/<nnnnn>/, where <nnnnn> is the cell’s zero-based index in differential/engine/plan.json. A failed cell adds failure.txt with the traceback.

Completion. Engine completion requires every planned cell to be independently validated. The engine status is PASS only when every golden comparison is PASS.

Final accounting#

Validate differential summary reads differential/summary.json and requires:

  • PASS with complete serialization accounting: every required comparison exactly once, with zero differences;

  • a complete engine campaign with consistent required, completed and feature counts;

  • the launched dataset: the profile’s seed count and all live cases.

It uses the validated records. It does not rehash sources, reopen every bundle, repeat every oracle or authenticate saved results directories. Verdict rules lists every verdict rule, and differential/summary.json its fields.

The controller owns validated results in memory. A producer’s saved PASS label cannot complete a cell. Recovery after an interrupted run is diagnostic and cannot resume a qualified run.

Console output#

The console is for people. It shows readable labels, counters and percentages, rendered at print time. Evidence, progress events and summary JSON keep the exact task identities and unstyled values. An ovstage Release run of ./test_sentinel.sh prints these lines, with durations shortened, <version> for the content of VERSION and <checkout> for the source root:

Sentinel run started <UTC time> (ovstage Release)
Sentinel settings:
  Arguments:
    Command                           | ["run"]
  Environment:
    TERM                              | "xterm-256color"
  Effective settings:
    --source-root                     | "<checkout>"
    --output                          | "new directory under _build/sentinel"
    --backend                         | "ovstage"
    --configuration                   | "Release"
    --inputs                          | "<ovclash>/_build/sentinel-local/ovstage/Release"
    --verbose                         | false
    --timeout                         | 7200
    --preparation-timeout             | 7200
    --engine-profile                  | "mr"
    --engine-workers                  | "2 (requested limit 2; available CPUs 16)"
    --scenario-timeout                | 120
    Configured campaign cap (seconds) | 14400
  Repository inputs:
    Live cases                        | "<ovclash>/tests/sentinel/cases.json"
    Engine cases                      | "<ovclash>/tests/sentinel/engine_cases.json"
    Golden root                       | "<ovclash>/tests/sentinel/goldens"
    Serialization contract            | "<ovclash>/tests/sentinel/contract.json"
    Engine contract                   | "<ovclash>/tests/sentinel/engine_contract.json"
    Controller Python                 | "<ovclash>/_build/deps/target-deps/python/bin/python3"
== Startup input preparation (run time <elapsed>)
== Startup input preparation: PASS in <elapsed>
ovclash <version>: Sentinel checks the existing ovstage Release SDK against independent engine and serialization expectations and repository goldens.
Results: <ovclash>/_build/sentinel/20261016T060000Z-ovstage-Release/evidence
Plan: 1092 checks: 1 preparation, 33 native controls, 412 serialization, 645 engine, 1 final accounting
== Preparation (run time <elapsed>)
[   1/1092]   0% PASS     <elapsed>  Select existing build and fixtures
== Preparation: PASS in <elapsed>
== Candidate native capture tests (run time <elapsed>)
[   2/1092]   0% START               Native SDK regression tests
[   3/1092]   0% START               Public engine scenario controls
[   4/1092]   0% START               Floating-point controls
[   4/1092]   0% PASS     <elapsed>  Floating-point controls
[   2/1092]   0% PASS     <elapsed>  Native SDK regression tests
[   3/1092]   0% PASS     <elapsed>  Public engine scenario controls
== Candidate native capture tests: PASS in <elapsed>
== Candidate required native target controls (run time <elapsed>)
[   5/1092]   0% START               Native control: native
[   5/1092]   0% PASS     <elapsed>  Native control: native
[   6/1092]   0% PASS     <elapsed>  Native control: parallel for
...
[  33/1092]   3% PASS     <elapsed>  Recovery cleanup control (controller exception)
== Candidate required native target controls: PASS in <elapsed>
== Candidate required observer controls (run time <elapsed>)
[  34/1092]   3% START               Observer evidence and SDK equality controls
[  34/1092]   3% PASS     <elapsed>  Observer evidence and SDK equality controls
== Candidate required observer controls: PASS in <elapsed>
== Engine and serialization campaign (run time <elapsed>)
[  35/1092]   3% PASS     <elapsed>  Select campaign inputs
[  36/1092]   3% PASS     <elapsed>  Serialization: write synthetic records
...
[ 446/1092]  40% PASS     <elapsed>  Compare: golden database mesh-mesh-overlapping
[ 447/1092]  40% START               Prepare shared engine stages
[ 447/1092]  40% PASS     <elapsed>  Prepare shared engine stages
[ 448/1092]  41% PASS     <elapsed>  Engine: classification-ancestors / animated-ancestor (serial)
...
[1090/1092]  99% PASS     <elapsed>  Engine: transforms-matrix-words / dyadic-pxr-agreement (serial)
[1091/1092]  99% PASS     <elapsed>  Engine completion
== Engine and serialization campaign: PASS in <elapsed>
[1092/1092] 100% PASS     <elapsed>  Validate differential summary
Performance: 5310 metrics, 0 collection errors: <ovclash>/_build/sentinel/20261016T060000Z-ovstage-Release/evidence/performance.json
SUMMARY engine and serialization campaign (nested stages are inclusive)
...
SUMMARY CI driver (excluding CI checkout/uploads) (nested stages are inclusive)
...
Sentinel summary
  Checks:    1092 of 1092 performed: 1092 passed, 0 failed, 0 not run
  Started:   <UTC time>
  Finished:  <UTC time>
  Elapsed:   <elapsed>
  Result:    PASS
  Evidence:  <ovclash>/_build/sentinel/20261016T060000Z-ovstage-Release/evidence
ALL PASSED. Sentinel Council approves. This is the way.

<checkout> stands for the repository checkout and <ovclash> for its ovclash directory. Every settings row is padded to the longest label in the block. The order is:

  1. Sentinel run started <UTC time> (<backend> <configuration>), before startup preparation and its automatic builds. A launcher bootstrap build runs before this line.

  2. Sentinel settings:, in both output modes, before semantic startup checks, output-directory admission and preparation. Arguments: records the command arguments as JSON. Environment:, when present, lists set variables from the validation, color, parallelism and CI-deadline allowlist. Effective settings: lists the resolved backend, configuration, engine profile, CPU-bounded worker count, inputs, output, source root, timeout settings and verbose setting. Configured campaign cap (seconds) is the requested or profile cap; the campaign budget can shrink further against the remaining CI budget and publication reserve. Repository inputs: names the serialization cases, engine cases, 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.

  3. The Startup input preparation phase, with the output of any automatic build.

  4. The version and purpose line, then Results: <evidence directory>.

  5. The Plan: line. A family without checks is left out.

  6. Phase lines and check lines.

  7. The Performance: line, the timing summary tables, the Sentinel summary block and the final line.

A phase starts with == <phase> (run time <elapsed>), which shows the run’s elapsed time so far. It ends with == <phase>: PASS in <elapsed> or FAIL. Most of a run’s time is spent in the engine cells of == Engine and serialization campaign, so the run times show progress in time better than the check percentage does.

Check lines#

[   1/1092]   0% PASS     <elapsed>  Select existing build and fixtures
  • The counter is the check’s position in the run’s schedule. Concurrent checks keep their position and can finish out of order.

  • Grouping engine cells on shared stages reorders the pending engine block once, before any cell starts. An engine cell’s counter can then differ from its index in progress-plan.json, and cells/<nnnnn> uses a third numbering: the index in engine/plan.json.

  • The percentage is the share of checks that already passed, failed or did not run. It is not a time estimate.

  • The status is START, PASS, FAIL or NOT_RUN. PASS and FAIL lines show the check’s elapsed time.

  • Without --verbose, a START line appears only when the check is still running two seconds after it started, or when another line prints before its result. A check that ends sooner shows only its result line. --verbose prints every START line. For campaign checks, evidence/logs/small-differential.log keeps every START line, and evidence/campaign-progress.jsonl records every START event.

  • NOT_RUN marks a check that never started because an earlier failure stopped its phase or the campaign. More than three consecutive NOT_RUN checks print as their first line, ... <k> more checks not run and their last line.

Labels#

Labels are short names, for example Native control: suite guard failure (entry), Compare: live mesh_mesh_overlapping (serial, canonical suite), Golden database read: synthetic or Engine: geometry-rational-corpus / five-triangle-negative (serial, seed 1).

  • An engine label names the case without its engine- prefix and the variant.

  • It adds the scheduler (serial, legacy-manager or new-manager) when the run uses more than one, unless the variant name already ends with it.

  • It adds only those other axes that tell it apart from other cells of the same case and variant, such as seed 1, repeat 1 or fp toward-zero-ftz-daz.

  • A value outside printable ASCII keeps its percent-encoding.

  • If two checks would share a label, both show their full identity.

The timing summary tables use the same labels.

Diagnostics#

A diagnostic line starts with its level. When it concerns a scheduled check, the check’s counter and label follow, then | and the message.

  • WARN and ERROR lines always appear, from Sentinel and from the campaign child. A failed engine cell prints a Cell failed: line and a Failure details: line with its failure.txt path.

  • The campaign child’s failed verdict always appears: Sentinel failed: <error> or Sentinel FAIL: <n> comparison cells completed in <elapsed>; finished <UTC time>.

  • INFO lines appear only with --verbose: requested settings, generated and opened stage paths, settings read back, detected counts and completed checks.

  • DETAIL lines appear only with --verbose: complete selected engine-cell plans and settings, evidence directories, actual and expected golden paths, command arguments and raw child output. Live serialization cases show their settings and paths; historical database checks name their database and golden sources. An automatic build’s output always appears as DETAIL lines. The startup settings block appears in both verbosity modes.

With --verbose, an engine cell prints lines like these (values shortened):

INFO [ 448/1092] Engine: classification-ancestors / animated-ancestor (serial) | Parameters requested: {"scopes": {...}, "settings": {...}, "timeline": {...}}
DETAIL [ 448/1092] Engine: classification-ancestors / animated-ancestor (serial) | Case settings: {"actions": {...}, "fixture": {...}, "scopes": {...}, "settings": {...}, "timeline": {...}, ...}
DETAIL [ 448/1092] Engine: classification-ancestors / animated-ancestor (serial) | Evidence directory: <cell evidence directory>
INFO [ 448/1092] Engine: classification-ancestors / animated-ancestor (serial) | Detected at run: {"clashes": 2}; semantic verification pending
INFO [ 448/1092] Engine: classification-ancestors / animated-ancestor (serial) | Cell checks verified: public-scenario; capabilities=pxr_oracle, public_capture; completion accounting pending

Observed results stay unverified until the cell’s checks finish. evidence/logs/ keeps complete child logs in either mode, and evidence/logs/small-differential.log and the command logs under evidence/differential/logs/ keep every INFO line. The campaign log keeps the additional DETAIL case plans and golden paths when verbose output is enabled.

Summary and final line#

The Sentinel summary block comes last before the final line:

Sentinel summary
  Checks:    <performed> of <total> performed: <passed> passed, <failed> failed, <not run> not run
  Failed:    [<n>/<total>] <label>
               <reason>
               Details: <failure.txt path>
  Started:   <UTC time>
  Finished:  <UTC time>
  Elapsed:   <elapsed>
  Result:    <PASS|FAIL|INTERRUPTED>
  Evidence:  <evidence directory>

The block holds these lines, in this order:

Line

Type

Required

Default or values

Description

Checks:

text

Yes

<performed> of <total> performed: <passed> passed, <failed> failed, <not run> not run, or none planned (the run stopped before its checks were scheduled)

The check counts

Failed:

indented lines

Only when a check failed

Up to ten entries [<n>/<total>] <label>, each with up to three reasons or paths: a failed engine cell’s Details: <failure.txt path>, or a failed native control’s command log, Log: <path>. A longer list ends with ... and <k> more

The failed checks

Started:, Finished:

UTC time

Yes

<UTC time>

The wall-clock start and finish

Elapsed:

duration

Yes

<elapsed>

The run time on a monotonic clock. It can differ from the difference of the two UTC times when the system clock changes

Result:

text

When the run has a verdict

PASS, FAIL, or INTERRUPTED after Ctrl+C

The verdict

Evidence:

path

Only after the run printed its Results: line

The evidence directory

Where the run’s evidence is

Check, phase and diagnostic lines carry no wall-clock time.

A successful run ends with ALL PASSED. Sentinel Council approves. This is the way., followed by a green heart (U+1F49A) when the console encoding can show it. In a color terminal, the complete final line uses bright green (ANSI 92), matching KPI success messages. A failed run ends with Clash validation CI gate failed: <error> on standard error.

When startup fails after Sentinel has created the results directory, the Sentinel summary with Result:    FAIL is followed by a Results: line and the failure line, and evidence/gate-summary.json records the error. An earlier error, such as an --output directory that is not empty, conflicting engine-profile values or a nonpositive timeout, prints no Results: line and writes no gate-summary.json. An interrupted startup prints the summary with Result:    INTERRUPTED and no Results: line, and gate-summary.json records KeyboardInterrupt.

The console is colored only in a color-capable terminal (VT-capable on Windows) and is plain when redirected. A nonempty NO_COLOR or TERM=dumb disables color. The shared tooling guide describes the styling; tooling/console.py defines the palette. The bootstrap build’s console output and the retained evidence/logs/prepare-local-*.log files keep the build’s own output and can contain ANSI sequences even when redirected; set NO_COLOR=1 for plain logs. Evidence and JSON are never styled.

Fixtures and profiles#

All supported scenes are checked-in synthetic data or deterministic generated inputs. No cockpit, factory or other private production asset is required. Fixture generation happens during preparation, before the consumer opens the resulting full stage path.

The serialization corpus compares every live case declared in engine_contract.json and synthetic records from 6 generated seeds (mr) or 100 (extended), and reads every historical database fixture. Independently authored values cover every serialized field, Unicode, audit data, exact IDs, repeated times, empty/singleton/multiple arrays and floating-point bit patterns. One outline is just large enough to cross the 65,536-byte external payload boundary.

The optimization cases (engine-optimization-* in engine_cases.json) use the smallest scenes that cross each production boundary: reuse and invalidation, prefetch and serial matrix windows, the matrix-cache budget and static chunk sizes. Each requires the actual reuse, prefetch, window or worker observation it targets as well as complete report equality. The budget case, engine-optimization-budgets, checks the matrix-cache budget, not total process memory.

Floating-point matrix#

Three base recipes exercise dynamic ordinary meshes, dynamic subnormal meshes and static meshes, each on a stage with four separated mesh-pair groups, under both managers. On x86-64, four rounding directions combine with four tiny-number settings: gradual underflow, flush-to-zero (FTZ), denormals-are-zero (DAZ) and FTZ+DAZ. That gives 3 × 16 × 2 = 96 cells. Linux AArch64 supports eight mode combinations, gradual underflow or flush-to-zero (FZ) in each rounding direction: 48 cells.

The fp-subnormal-kernel0 recipe adds one cell per tuple:

  • It explicitly requests intersection code 0, the value 0 of the overlap_code setting that selects the triangle intersection kernel (see Settings), on the subnormal stage, with the legacy manager, nearest-flush detection (nearest-ftz-daz on x86-64, nearest-fz on AArch64) and toward-zero-gradual extraction.

  • It uses zero tolerance. With a positive tolerance, PhysX selects its distance test for the triangle pairs of a bounding-volume leaf before it reads overlap_code, so the code would have no effect.

  • Recipes that omit overlap_code keep its default, code 3.

  • The recipe does not require equality across kernels or floating-point modes.

Each cell checks the prescribed action protocol and snapshots for synchronous, cached, alternate/repeated, independent recomputation, matched extraction, restart and asynchronous executions. It also requires the caller’s floating-point state to be restored. Dedicated native parallel controls separately test worker floating-point state and actual worker participation. Comparisons use the intended same-mode relation; different rounding directions need not produce bit-identical geometry. First, all eight runtime snapshots and their equality edges must pass. Then each backend compares four representatives (sync, alternate, oracle and matched) with its goldens. Both backends recompute outlines under the report caller’s controls.

Repository goldens and historical databases#

The approved catalog root is tests/sentinel/goldens/manifest.json. It references frozen family inputs, shared review provenance and one tuple file of goldens per verified platform/architecture/backend/configuration tuple, for all twelve supported tuples. Planner support for another tuple adds no goldens for it. Missing entries, including an empty catalog, and typed differences fail the run. Changing current case definitions does not rewrite frozen inputs; canonical native setting mappings are still checked against independently captured requested/effective settings.

Ordinary runs never modify goldens. A run whose only failures are missing or different goldens, a golden-only failure, writes a proposal of those snapshots to golden-proposal/ in its results directory and prints the command that accepts it. After an intentional engine behavior change, review that proposal’s summary.md and differences.json, then accept it. In the commands, RESULTS is that run’s results directory. From ovclash:

Windows (cmd.exe):

test_sentinel.bat goldens accept --proposal RESULTS/golden-proposal --reason "Reviewed intentional behavior change"

Linux:

./test_sentinel.sh goldens accept --proposal RESULTS/golden-proposal --reason "Reviewed intentional behavior change"

goldens propose selects other snapshots from a saved run. Before you begin, you need a complete run whose independent engine and serialization checks passed; missing or different goldens may be its only failure. In the commands, RUN is that run’s results directory or its evidence/gate-summary.json, CASE is the engine case ID to update, such as engine-options-depth, and PROPOSAL is a new directory outside the catalog, such as _build/proposal-depth. From ovclash:

Windows (cmd.exe):

test_sentinel.bat goldens propose --from-run RUN --case CASE --output PROPOSAL
test_sentinel.bat goldens accept --proposal PROPOSAL --reason "Reviewed intentional behavior change"

Linux:

./test_sentinel.sh goldens propose --from-run RUN --case CASE --output PROPOSAL
./test_sentinel.sh goldens accept --proposal PROPOSAL --reason "Reviewed intentional behavior change"

Review the proposal’s summary.md and differences.json before you accept. propose prints the path of the new proposal.json, and accept prints the number of accepted entries, such as {'updated': 4, 'manifest': '<ovclash>/tests/sentinel/goldens/manifest.json'}. A failed command prints Golden update failed: <error> and exits 1. The golden maintenance guide covers the catalog format, eligibility, review, verification, recovery and storage.

Historical SQLite fixtures contain actual old writer output and separately reviewed expected decoded records. The current reader opens a run-local copy and leaves the repository fixture unchanged; no old reader is needed. These fixtures use a schema the current reader accepts; normal build validation tests explicit legacy schema migration. Result refresh never replaces historical databases; goldens add-database imports a new fixture with writer attribution and schema metadata.

Run Sentinel in CI#

A CI job runs the same two commands as a local check, from ovclash/, against the portable input bundle that its build job staged. For the Linux x86-64 ovstage Release tuple:

./test_sentinel.sh check-tests --allow-skips --output <checker-directory>/checkers.json
./test_sentinel.sh run --backend ovstage --configuration Release --inputs <bundle-directory> --output <results-directory>

<bundle-directory> is the portable input bundle that the build job staged, <checker-directory> a new directory for the checker output and <results-directory> a new or empty results directory. On Windows, run the same commands with test_sentinel.bat. Each tuple needs its own job, its own bundle and its own results directories.

  • --allow-skips accepts platform-specific unittest skips; without it, any skip fails check-tests.

  • --inputs selects the staged bundle, which never triggers a build.

  • --engine-profile, else OVCLASH_VALIDATION_ENGINE_PROFILE, else OVCLASH_EQ_ENGINE_PROFILE selects the profile, mr (the default) or extended; see environment variables.

  • Each job’s own verdict is authoritative: run exits 0 only when the run passed; see exit codes.

  • Keep the results directory’s evidence/ and golden-proposal/ and the checker output (checkers.json and checkers.modules) as job artifacts. evidence/junit.xml feeds the CI system’s test report; see JUnit report. A golden-only failure’s golden-proposal/ can be accepted on another machine as it is; see propose from a run on another machine.

Read a failure#

Before you begin, you need the failed run’s console output and its results directory with the evidence/ directory; a CI job keeps both as job artifacts (see run Sentinel in CI).

  1. Read the Sentinel summary block; summary and final line lists its lines. It lists failed checks with their first reasons and the failure.txt or command log path.

  2. Read the final Clash validation CI gate failed: line. It names the failing command or condition.

  3. Open evidence/gate-summary.json. error holds the failure. Once the campaign has written its summary, checks_status reports the independent checks and golden_status reports the golden comparisons; gate-summary.json lists every field.

  4. Follow the evidence: evidence/differential/summary.json, evidence/differential/engine/results.json, the cell’s evidence/differential/engine/cells/<nnnnn>/failure.txt and the logs in evidence/logs/.

You are done when you can name the failed check and its cause: a failure.txt traceback, a failing command log, or the golden snapshots whose status is not PASS. evidence/junit.xml carries the same verdicts for CI test reports. Evidence layout describes every evidence file and status value. The examples of a native control failure, an engine cell failure, a golden-only failure and a startup failure show <elapsed> in place of each duration.

Native control failure#

A failed native control stops the run. Every later check is NOT_RUN, and the summary names the control’s log:

[   5/1092]   0% FAIL     <elapsed>  Native control: native
== Candidate required native target controls: FAIL in <elapsed>
[   6/1092]   0% NOT_RUN             Native control: parallel for
                 ... 1085 more checks not run
[1092/1092] 100% NOT_RUN             Validate differential summary
Performance: ...
SUMMARY CI driver (excluding CI checkout/uploads) (nested stages are inclusive)
...
Sentinel summary
  Checks:    5 of 1092 performed: 4 passed, 1 failed, 1087 not run
  Failed:    [   5/1092] Native control: native
               Log: <evidence>/logs/candidate-ovclash.native.test.log
  ...
  Result:    FAIL
Clash validation CI gate failed: candidate-ovclash.native.test failed (1); see <evidence>/logs/candidate-ovclash.native.test.log

Engine cell failure#

A failed engine cell does not stop the other cells. Engine completion then fails, and the campaign child reports Sentinel failed::

[ 649/1092]  59% FAIL     <elapsed>  Engine: options-duplicates / duplicates-only (serial)
ERROR [ 649/1092] Engine: options-duplicates / duplicates-only (serial) | Cell failed: ValueError: <reason>
ERROR [ 649/1092] Engine: options-duplicates / duplicates-only (serial) | Failure details: <evidence>/differential/engine/cells/00201/failure.txt
...
[1091/1092]  99% FAIL     <elapsed>  Engine completion
Sentinel failed: Engine correctness inventory did not complete: engine completion requires every independently validated cell
== Engine and serialization campaign: FAIL in <elapsed>
[1092/1092] 100% NOT_RUN             Validate differential summary
...
Sentinel summary
  Checks:    1091 of 1092 performed: 1089 passed, 2 failed, 1 not run
  Failed:    [ 649/1092] Engine: options-duplicates / duplicates-only (serial)
               Cell failed: ValueError: <reason>
               Details: <evidence>/differential/engine/cells/00201/failure.txt
             [1091/1092] Engine completion
  ...
  Result:    FAIL
Clash validation CI gate failed: small-differential failed (1); see <evidence>/logs/small-differential.log

Check lines and ERROR lines come from two relays and can interleave in either order. failure.txt holds the full traceback.

Golden-only failure#

When every independent check passes but a golden comparison is MISSING or DIFFERENT, no check line fails. The signals are ERROR Engine completion: FAIL, the child’s Sentinel FAIL: verdict, the Golden proposal lines and the final line:

[1091/1092]  99% PASS     <elapsed>  Engine completion
ERROR Engine completion: FAIL
Sentinel FAIL: 364 comparison cells completed in <elapsed>; finished <UTC time>.
== Engine and serialization campaign: FAIL in <elapsed>
[1092/1092] 100% NOT_RUN             Validate differential summary
...
Sentinel summary
  Checks:    1091 of 1092 performed: 1091 passed, 0 failed, 1 not run
  ...
  Result:    FAIL
Golden proposal: <results>/golden-proposal (2 DIFFERENT)
  It covers this run's build tuple only. Review its summary.md and differences.json; to accept
  an intended change, run from ovclash:
  test_sentinel.bat goldens accept --proposal "<results>/golden-proposal" --reason "<what changed and why>"
Clash validation CI gate failed: small-differential failed (1); see <evidence>/logs/small-differential.log

In gate-summary.json, checks_status is PASS, golden_status is MISSING or DIFFERENT, and golden_update_error is absent. Such a run writes a golden proposal of its changed snapshots to golden-proposal/ in its results directory; see the proposal of a golden-only failure. Understand a golden failure shows how to list the failing snapshots.

Startup failure#

A startup error before Sentinel creates the results directory prints a short summary and no Results: line:

Sentinel run started <UTC time> (ovstage Release)
SUMMARY CI driver (excluding CI checkout/uploads) (nested stages are inclusive)
Timed stages: 0 passed, 0 failed, 0 unfinished
TOTAL   CI driver (excluding CI checkout/uploads)  <elapsed>
Sentinel summary
  Checks:    none planned (the run stopped before its checks were scheduled)
  Started:   <UTC time>
  Finished:  <UTC time>
  Elapsed:   <elapsed>
  Result:    FAIL
Clash validation CI gate failed: Evidence directory is not empty: <ovclash>/_build/sentinel-local-run; remove it or pass --output with a new directory

Error messages lists the common error messages with their causes.

Shared stages and concurrency#

Eligible cells share deterministic USD assets from an invocation-owned pool. Compatible cells run grouped on one loaded native stage, keeping separate settings, selections, detections, snapshots and verdicts. Complete structured scene/recipe/dependency inputs determine reuse; filename equality alone does not. Changes to the selected scene state or unsupported composition require separate execution.

The independent OpenUSD scene session can reuse an answer for identical authored queries and literal expected values. It does not replace native detections. Immutable metadata text and successful nested semantic checks may be reused within one controller-owned admission operation. These caches are not global, not persisted across runs and not substitutes for required observations.

Ordinary eligible serial-engine cells may produce results concurrently in separate processes. Private, floating-point, recovery/fault and other incompatible cells stay exclusive. Shared loaded-stage groups execute as groups. Each producer owns its input, process tree and output directory; admission, caches and publication stay on the controller. --engine-workers 1 disables producer concurrency but keeps compatible stage reuse.

Child processes run under shared process supervision: a Windows Job Object, a Linux subreaper or an owned POSIX process group. Timeout and interruption drain owned work before results are consumed, and a successful exit alone cannot satisfy semantic checks.

Performance measurements#

Sentinel measures the existing correctness workload. It adds no benchmark loops or KPI thresholds. Each check line carries one global [current/total] index over the selected controls, serialization comparisons and engine cells, and the settled share of checks; see console output. The index counts work units, not elapsed time. The run’s UTC start time appears in its first line and in the Sentinel summary; phase lines show the monotonic run time.

The timing summary tables, SUMMARY engine and serialization campaign and SUMMARY CI driver (excluding CI checkout/uploads), report passed, failed and unfinished timed stages. Each row is <status> <elapsed>  <label>, indented by nesting depth, and each table ends with TOTAL   <label>  <elapsed>. For more than ten stages a table lists every failed stage plus the ten slowest. The summary JSON keeps every stage with its original identifier.

performance.json and performance.csv appear in evidence/ and in the differential campaign directory, evidence/differential/. Metrics use monotonic elapsed time; the displayed UTC times are for people and are never measurements. The console reports Performance: <n> metrics, <m> collection errors: <path>. Collector errors never change the verdict, but the line then starts with WARN. performance.json holds:

Field

Type

Required

Default or values

Description

format

string

Yes

ovclash-sentinel-performance-v1

Format identifier.

schema_version

integer

Yes

1

Schema version.

unit

string

Yes

nanoseconds

Unit of every elapsed value.

status

string

Yes

PASS, FAIL

Verdict of the run or campaign that wrote the file.

benchmark

boolean

Yes

false

The values observe the correctness workload; they are not a benchmark.

scopes_overlap

boolean

Yes

true

Metric scopes nest and overlap.

metadata

object

Yes

Candidate revision, backend, configuration, profile, platform, architecture, OS release, Python version, CPU count and the available CI identifiers. The campaign’s file adds its engine profile and engine execution policy, and evidence/performance.json keeps that metadata under campaign.

metrics

array of objects

Yes

One row per timed stage, owned command or native phase, with its metric_id, elapsed_ns and context.

collection_errors

array of objects

Yes

Empty when every record was collected

Each row names its source and error.

campaign_collection_status

string

Only in evidence/performance.json

aggregate, retained-evidence-fallback

Whether the campaign’s own performance.json or, when that file is invalid, its retained records supplied the campaign metrics.

Native phases include context setup/cleanup, stage open, selection, detection and report extraction/release. Synchronous detection includes its step loop; step and selection timings are nested. Asynchronous timing includes launch-to-join waiting. Extraction/release timings exclude bundle encoding and file writes. Private and control process durations are parent wall time, not internal worker CPU measurements.

Measurements can overlap: do not sum per-cell or nested rows into total runtime. A shared stage process is recorded once, with stage opening assigned to its first member and cleanup to its last. Each member still records its own detection/extraction. Concurrent times include contention. Use the appropriate total or enclosing phase to compare elapsed duration.

When a campaign report is missing, retained sidecars can supply diagnostic measurements; they cannot establish correctness completion. A smaller dataset or fewer selected cells is not a speedup.

Add or change a case#

Before you begin, you need a source checkout in which run locally passes on each tuple you can run, and the engine obligation that the case must satisfy.

  1. Identify the obligation and its supported axes in engine_contract.json; obligation fields lists its fields.

  2. Author deterministic inputs and an independent expected answer or explicit comparison relation.

  3. Add the case, with its fixture, settings, timeline, actions and deadline, to engine_cases.json; case fields lists every field.

  4. Connect the producer and the immediate semantic checker.

  5. Require the applicable process, loaded-library, settings, observation and public/private checks.

  6. Add focused negative checker tests for wrong or missing evidence.

  7. Update the source-derived field mappings of every API or storage schema that the change alters, and never silently default a new field.

  8. Map the case to an input family in FAMILY_CASES (tests/sentinel/golden_catalog.py).

  9. Run check-tests.

  10. Run normal validation, build_<backend> --<configuration> --validate, on every applicable tuple you can run.

  11. Run Sentinel on every applicable tuple you can run.

  12. Propose the new goldens from each run whose independent checks passed; see repository goldens and historical databases.

  13. Accept each reviewed proposal.

When check-tests, normal validation or the Sentinel run fails, read the failure, fix the case or the product and repeat from check-tests. Never propose goldens from a run whose independent checks failed. The change is complete when goldens verify prints a verification-only: PASS line and a new run of each tuple you ran ends with ALL PASSED. Sentinel Council approves. This is the way.. For the tuples you cannot run, follow changes that affect tuples you cannot run. The “Typed comparison contract” and “Updating fields and settings” sections of ovclash/tests/sentinel/README.md describe the typed comparison contract and the source-inventory workflow.

Case fields#

tests/sentinel/engine_cases.json holds schema_version (the integer 1) and cases, a nonempty array of case objects. A case holds no other fields than these:

Field

Type

Required

Default or values

Description

id

string

Yes

Unique; the case_id that its obligations name

Case identifier, such as engine-options-depth.

features

array of strings

Yes

geometry, selection, schedule, transforms, classification, options, optimization, recovery, reports, delivery

Features that the case covers.

obligations

array of strings

Yes

Obligation IDs of engine_contract.json; nonempty for a generated or reviewed-scene fixture

Obligations that the case satisfies.

fixture

object

Yes

kind generated (with generator, version 1, seed and an optional recipe), live (with live_case_id only) or reviewed-scene

The scene that the case opens. A generated fixture’s generator is a feature name, and its seed an integer from 0 to 2^32 - 1.

api_surface

string

Yes

canonical, suite

The API layer that the case drives.

backends

array of strings

Yes

ovstage, openusd; exactly the backends that applicability allows

Backends that run the case.

applicability

string

Yes

public_contract, private_observer, private_optimization, ovstage_public

Which backends require the case; see engine campaign.

required_capabilities

array of strings

Yes

Capabilities of engine_contract.json, such as public_capture

Evidence that each cell must produce.

settings

object

Yes

Setting names of engine_contract.json with values of their declared type

Requested settings.

oracles

array of strings

Yes

exact_triangles, literal_membership, pxr_scene, binary64_schedule, literal_contract, public_outcomes, recomputation, backend_differential, typed_report, lifecycle, sqlite_transport

The case’s oracles.

detection_modes

array of strings

Yes

serial, legacy-manager, new-manager

Schedulers that the cells run.

profiles

array of strings

Yes

mr, extended

Engine profiles that select the case.

deadline_seconds

number

Yes

Greater than 0, at most 7200

Deadline of each cell.

variants

array of objects

Yes

Nonempty

Each variant holds id, witness (positive, negative or boundary) and expected_outcome, and can override settings, scopes, timeline, detection_modes, actions, fixture and report_mask.

profile_axes

string

Yes

single, geometry, scheduling, stress

Which profile axis expands the case; see declared combinations.

state_sequences

array of strings

Yes

fresh, forward, rewind, repeat, reset, reselect, settings-change

Runtime state sequences of the cells.

fp_modes

array of strings

Yes

normal, architecture, or architecture-nearest-flush alone

Floating-point modes; architecture expands to every mode of the architecture.

scopes

object

Yes

Exactly a and b, each an array of absolute USD paths

The two search sets.

timeline

object

Yes

Exactly start, end, query_rate and stage_tcps: finite numbers, start at most end, both rates positive

The sampled time range.

actions

object

No

The contract’s default protocol: run, then snapshot of result

The action protocol of each cell.

report_mask

integer

No

30; an even value from 0 to 30, and 30 for a suite case

Report flags that the cells request.

prepared_live

object

No

Only with a live fixture

Prepared bindings of the live case, checked against the live case inventory.

Obligation fields#

engine_contract.json keys each obligation by its ID, such as geometry.cross. Every case that names the obligation must match it:

Field

Type

Required

Default or values

Description

feature

string

Yes

A feature of the contract

The case must list it in features.

applicability

string

Yes

As in a case

The case must have the same applicability.

required_capabilities

array of strings

Yes

Capabilities of the contract

The case must require each of them.

oracles

array of strings

Yes

Oracles of the contract

The case must declare each of them.

witnesses

object

Yes

Variant ID to positive, negative or boundary

The case must declare these variants with these witness kinds.

profile_requirements

object

Yes

detection_modes, fp_modes and profile_axes, and optionally timeline or state_sequences

The case fields must equal these values.

witness_constraints

object

No

Variant ID to an object of requirements

Per-variant requirements: exact detection_modes, an exact report_mask, and entries that the variant’s resolved settings, scopes, timeline, fixture or actions must contain.

case_id

string

No

engine- and the obligation ID with its first . replaced by -

The only case that can satisfy the obligation.

A canonical setting’s coverage decision also lives in engine_contract.json; see what counts as coverage.

Glossary#

The Sentinel pages use one name for each of these concepts. Consumer terms such as backend, ovstage, OpenUSD and Suite API keep their meaning from the consumer glossary.

Term

Meaning

Build tuple

One platform, architecture, backend and configuration, such as Linux x86-64 ovstage Release. Sentinel supports twelve, and each has its own goldens

Installed SDK

The SDK install tree that a build installs, _build/install/<backend>, or the install/ directory of a portable input bundle: the content of an SDK archive. Sentinel checks it as the candidate

Candidate

The installed SDK under test and the results it produces (source_role candidate)

Portable input bundle

A staged copy of the installed SDK, its Python runtime, its OpenUSD dependency and the Sentinel helpers in _build/portable-inputs/<backend>/<configuration>; see portable input bundles

Driver

scripts/sentinel_ci.py, which the launchers run. It prepares the inputs, runs the native controls, starts the campaign child, judges the run and writes gate-summary.json

Campaign child

scripts/run_sentinel.py, which the driver starts under the label small-differential to run the campaign

Campaign

The serialization and engine checks that the campaign child runs: the Engine and serialization campaign phase

Controller

The process that plans, admits, journals and publishes results: the driver and, inside the campaign, the campaign child. A producer’s own PASS never completes a check

Producer

A child process that runs one cell or one serialization command and writes outputs for the controller to admit

Native controls

Existing native executables that run against the installed SDK before the campaign: the capture controls, the native target controls and, on ovstage, the observer controls; see native controls

Observer controls

The ovstage native controls of ovclash.sentinel_engine.test observer, which check private path, threading and cache observations and their equality with the public installed SDK

Checker tests

Sentinel’s Python controller and checker tests and the shared process-tree tests, which check-tests runs; see checker tests

Case

An engine case, one entry of tests/sentinel/engine_cases.json (see case fields), or a live serialization case of tests/sentinel/cases.json

Variant

One declared variant of a case, with its witness kind and optional overrides

Witness

The kind of evidence that a variant gives for an obligation: positive, negative or boundary

Obligation

A required behavior that tests/sentinel/engine_contract.json declares and one case satisfies; see obligation fields

Cell

One planned unit of checking. An engine cell is one case variant expanded over seed, scheduler, state sequence, floating-point mode, oracle, repeat and task budget; see engine campaign. A Suite cell is an engine cell of a case whose api_surface is suite. A serialization comparison cell is one required comparison of the serialization campaign

Oracle

The rule that determines a cell’s expected answer; see oracles

Snapshot

One typed result that a cell captures at a point of its action protocol, such as snapshot_bundles.oracle. Goldens are compared per snapshot

Typed bundle

A directory or ZIP archive of typed results: manifest.json, records.jsonl and optional payloads/

Golden

The reviewed typed result of one case, variant and snapshot for one build tuple and one set of frozen inputs, stored in the golden catalog. The Sentinel pages use no other name for it

Golden catalog

tests/sentinel/goldens/: the root manifest.json, its shards, the stored typed bundles and the historical database fixtures; see catalog files

Tuple file

The catalog shard expectations/<platform>-<architecture>-<backend>-<configuration>.json, which holds the golden rows of one build tuple

Shard

A catalog shard is one catalog metadata file with its own revision: an input family file, a tuple file or provenance.json. A checker shard is one slice of a checker module that check-tests runs in its own process

Golden-only failure

A run whose independent checks passed and whose golden status is MISSING or DIFFERENT. Such a run can supply a golden proposal; see golden-only failure

Profile

The engine profile, mr (the default) or extended; see declared combinations

Results directory

The directory that one run writes, _build/sentinel/<UTC time>-<backend>-<configuration> or the --output directory. Its evidence/ directory holds the run’s evidence

Drained

Said of an owned process tree whose processes have all exited. A command whose tree could not be drained leaves its output unverified and fails the run

Intersection code

The value of the overlap_code setting, which selects the triangle intersection kernel; code 3 is the default. See Settings

Report mask

The report_mask of a case: the report-buffer flags that its cells request, an even value from 0 to 30; see case fields

Release gate

The full release qualification. Sentinel never completes it, so every summary records release_gate_complete: false; see limits

Limits#

Passing Sentinel proves its declared scenarios and checks, not universal bug freedom, race freedom or full release readiness. The summary keeps release_gate_complete: false. Production-asset coverage, sanitizers, installed-product qualification and Kit integrations need their own evidence. The private observer wrapper runs one active context per process; Sentinel does not qualify several simultaneously active contexts that share it.