Sentinel settings coverage audit#
This page maps ovclash settings and their interactions to the layer that tests them:
the engine corpus of Sentinel, ovclash’s correctness campaign;
the native controls that the combined Sentinel gate runs: one Sentinel
run, whose verdict needs every native control, serialization comparison and engine cell to pass;ordinary validation outside Sentinel.
It does not claim that every combination of settings is covered. Paths on this page are relative
to the ovclash/ project directory. The Sentinel glossary defines the
terms used here, such as case, variant, witness, obligation, cell, golden and build tuple.
Five named engine cases assert interactions and boundaries that individually correct settings do not establish; see implemented interaction and boundary checks. They also compare their typed results with reviewed goldens for each build tuple. An independent expected answer never replaces a golden, and a golden never replaces an independent expected answer. Propose and accept results describes the golden workflow.
What counts as coverage#
Three layers test settings:
Sentinel engine corpus. Named cases with frozen settings and actions, independent semantic checks and backend-specific repository goldens.
tests/sentinel/engine_cases.jsondeclares the cases, andtests/sentinel/engine_contract.jsondeclares the obligations they satisfy; see case fields and obligation fields.Native controls in the combined Sentinel gate.
tests/sentinel/native_targets.pyrequires the installedovclash.native.testwithout a selector, which runs every test registered intests/native/TestNativeClash.cpp. It also requires a fixed list of other native test programs; see native controls. These assertions count toward the combined gate even without a matching engine case.OVCLASH_OVSTAGE_ONLYguards inTestNativeClash.cppdecide which tests each backend registers.Ordinary validation outside Sentinel. The Python runtime test group that
scripts/test_python_runtime.cmakeruns, and the native test programs thatscripts/test_cpp.cmakeruns. A native test program is a Sentinel native control only whennative_targets.pylists it.
Most test_sentinel_* Python modules are checker tests. They test the checkers’ rejection
logic, and their existence does not prove that a product scenario ran.
scripts/python_test_inventory.py names the three serialization modules that run against the
installed SDK instead.
engine_contract.json gives every canonical setting, a member of ovclash_settings_t or a
settings flag with a canonical mapping, an explicit coverage decision:
a
behaviordisposition with the obligations that exercise it, ora
transport-onlydisposition with a reason.
Each setting with a canonical mapping carries its decision in
settings.<name>.canonical_coverage. The two Suite API-only
settings, depth_epsilon and discard_touching, have none. canonical_input_coverage holds the
decisions for OVCLASH_SETTINGS_FLAG_LOG, startTime, endTime and timeCodesPerSecond, all
four of them and no other name. A coverage decision holds exactly these fields:
Field |
Type |
Required |
Default or values |
Description |
|---|---|---|---|---|
|
string |
Yes |
|
Whether an obligation exercises the setting’s behavior. |
|
array of strings |
Yes |
Unique obligation IDs of the contract: at least one for |
The obligations that exercise the setting. |
|
string |
Yes |
Nonempty |
Why the decision holds. |
|
||||
or settings flag has no mapping or no decision. A linked obligation is a requirement, not |
||||
evidence that it ran. The “Updating fields and settings” section of |
||||
describes how to add a setting. |
ovclash.h defines the canonical behavior.
source/suite/SuiteSettings.cpp translates the Suite settings declared in
ovclash_suite_types.h.
tests/sentinel/source_inventory.json labels ovclash_settings_t mapped-settings: its member
names and types must match the launch defaults and the typed native capture. It labels
ovclash_suite_run_settings_t and both Python RunSettings classes structural-only. Neither
disposition is runtime interaction coverage.
Four kinds of evidence answer different questions:
Requested and effective settings readback shows that a value reached the API.
A private event shows that an implementation path ran.
An independent expected answer establishes the named geometric or policy behavior.
A golden comparison detects a change to the retained typed outputs of an approved case.
For example, equal overlap reports cannot prove that a bounds offset was applied when both
offset values produce the same candidate pairs. A golden detects an unexpected payload change,
but it does not prove the depth algorithm. Sentinel expands only the variants and axes that each
case declares. The extended profile adds seeds, repeats and task budgets, not interactions; see
declared combinations and coverage limits.
Named engine coverage#
The case IDs in this table are entries in tests/sentinel/engine_cases.json; a leading -
abbreviates the case ID before it, and * matches every case with that prefix.
tests/sentinel/oracles/option_cases.json holds the option recipes and their expected answers.
Settings or behavior |
Sentinel cases |
What the evidence establishes |
|---|---|---|
Scope, full scene, visibility and subcomponents |
|
Selected pair membership, empty and B-only outcomes, instance-root visibility, subcomponent filtering, reselection and stale-detail rejection. |
Time range and sample rate |
|
Sample times from independent repeated binary64 addition across sample and time-code rates, start and end boundaries, empty and nonempty samples and retained timestamps. On ovstage, also actual sample events and applied times. |
Static and dynamic purging |
|
All four purge-flag combinations, authored animation classification and applicable pre-purge observations. |
Duplicates and redundant contacts |
|
Ordinary versus duplicate-only results, redundant filtering, moving and static representative ordering, scope and subcomponent eligibility, and zero and positive tolerance controls. |
Coplanar and clearance queries |
|
Coplanar on and off, dyadic near-miss thresholds, and soft, hard and mixed report geometry under the declared schedulers. |
Pose, bounds and area epsilon |
|
Zero and positive pose values, zero, positive and negative bounds values, triangle-area thresholds below and above the authored area, and the 2/3/0 candidate counts that the finite broad-phase limit exposes. Not every epsilon use site is independently checked. |
Cooking flags and leaf size |
|
Both values of each flag, every accepted leaf size 1 to 15, and selected flag combinations. On ovstage, private events also check the cooking parameters, the tight-bounds mesh flag and the retry at 15 after a leaf size of 1. |
Any-hit and triangle limit |
|
Unlimited versus capped element counts, and retained-hit MINIMAL depth with culling and restoration (the depth modes |
Broad-phase limit |
|
Zero-limit cancellation, healthy recovery after reset, the unlimited control, and exact positive finite N and N-1 boundaries with async finish and restoration on an independently counted scene. |
Intersection code ( |
|
Codes 0, 1, 2, 3 and |
Depth, touching contacts and cutoff |
|
All four canonical depth modes, disabled-mode behavior, touching and soft-contact culling, and analytically certified shallow and deep MINIMAL thresholds, including equality, retained-hit limits and restoration. The cutoff recipes check culling only; see the combined-gate table. |
Point clouds |
|
Points disabled and enabled, point and mesh isolation under tolerance, depth and culling, report masks 16 and 30, the experimental flag alone, authored, overridden, varying and uniform widths, backend-specific instancing, and retained dynamic and mixed payloads. |
Scheduling and optimizations |
|
Task budgets, the serial override, fresh scheduler equality, worker participation and the declared cache, prefetch, window and chunk boundaries. All optimization cases except |
Transform decomposition and lifecycle |
|
Both ovstage decomposition modes, reset and reselection, matrix words, default and numeric time, composed transforms, instances and history. |
Invalid settings and delivery |
|
Rejection and preservation, report masks and typed payloads, floating-point controls, lifecycle, persistence and selected failure and recovery obligations. |
Private cooking and bounds evidence comes from check_private_paths in
tests/sentinel/oracles/option_paths.py, which runs for the ovstage bounds, quantization
and leaf-size recipes. The pending strings in option_cases.json are not a reliable list of
missing checks: those three entries still list these private events as pending.
Implemented interaction and boundary checks#
Each case in this section asserts an interaction or boundary that individually correct settings
do not establish. Its oracle derives the expected answers from exact rational geometry and the
public contract, never from native output. The docstrings of the oracle modules
option_hit_depth.py, option_point_interactions.py, option_bounds_limits.py and
option_kernel_boundaries.py in tests/sentinel/oracles/ describe their fixtures and proofs. The
neighboring native checks are named so that new coverage does not duplicate them.
Any-hit or a triangle limit with depth and depth culling#
ovclash_set_any_hit keeps one representative triangle pair per mesh pair and computes
maxLocalDepth from that pair only. A truncated hit set can therefore change the depth and the
contact-epsilon culling decision. engine-options-hit-depth
(tests/sentinel/oracles/option_hit_depth.py) uses two triangle pairs with MINIMAL depths 1/8
and 1/2, in both orders. It runs unlimited, limit-one and any-hit settings, steps the contact
epsilon around both depths, and then restores disabled culling. The header does not say which
pair is retained, so either face is accepted. Each execution tuple needs all six variants and a
shallow culling witness for both limiting modes. Witnesses cannot be pooled across backends,
configurations, seeds or repeats.
testTriangleLimitAndAnyHitSetters, testMaxLocalDepthDirectSetter and
testContactEpsilonDirectSetter in tests/native/TestNativeMeshQueries.cpp check these
settings one at a time. On ovstage, testNarrowPhaseReuse in
tests/native/TestNarrowPhaseReuse.cpp checks narrow-phase
reuse and invalidation when they
change.
Point-cloud isolation from mesh clearance and depth culling#
The header says that the point-vs-mesh narrow phase ignores the tolerance, so it reports no
point near misses. A point-vs-mesh overlap reports a maxLocalDepth of 0.0 in every depth mode.
On ovstage, testMeshPair in source/OvstageClashCollision.cpp applies contact-epsilon culling
to mesh pairs only, and runNarrowPhase collects point hits separately.
engine-options-point-options (tests/sentinel/oracles/option_point_interactions.py) places a
point hit, a point near miss and a mesh clearance pair in one scoped scene. 36 of its 38
variants enable point clouds and combine these values (2 × 3 × 3 × 2):
tolerance 0 and 1/4;
disabled, MINIMAL and HIGH depth;
disabled, zero and 1/4 contact epsilon;
report masks 16 (
OVCLASH_OVERLAP_REPORT_FLAG_POINTS0) and 30 (theOUTLINE,FACES0,FACES1andPOINTS0bits ofovclash_overlap_report_flag_t).
The other two variants run with point clouds disabled. The native
testPointCloudExperimentalMatchesStandalonePointClouds in
tests/native/TestNativePointClouds.cpp checks that the experimental point path reports the
same results.
Bounds epsilon and the positive finite broadphase limit#
engine-options-bounds-limits (tests/sentinel/oracles/option_bounds_limits.py) uses three
disjoint triangles on distinct parallel planes, with tight bounds. The bounds computation turns
each half-extent h = 1/2 into (h + epsilon) * (1 + epsilon). The scene therefore has two
candidate pairs at epsilon 0, three at 1/4 and none at -1/4. The X spacing of the triangles
detects an ignored epsilon, a missing offset or scale term, and an offset applied after the
scaling.
BoundsConfig private events record the mesh flags, not the numeric epsilon. The case therefore
infers the candidate count from the public limit contract of ovclash_set_broadphase_limit: a
run whose candidate count exceeds the limit is cancelled, not truncated. Seven async runs check
the strict boundary:
Run |
Epsilon |
Limit |
Candidates |
|
|---|---|---|---|---|
1 |
0 |
2 |
2 |
success |
2 |
0 |
1 |
2 |
error |
3 |
1/4 |
2 |
3 |
error |
4 |
1/4 |
3 |
3 |
success |
5 |
-1/4 |
0 |
0 |
success |
6 |
0 |
1 |
2 |
error |
7 |
0 |
2 |
2 |
success |
Each successful run takes a snapshot, which must have zero overlaps. ovclash_finish_pipeline
reports the cancellation and clears it on both backends; the nonblocking poll before it need not
observe the cancellation yet.
The -1/4 run proves that shrinking is applied. It does not detect over-shrinking, such as
applying the offset twice. The separate bounds-epsilon-negative recipe keeps its overlapping
pair at -1/8. testBroadphaseLimitSetsGlobalCancellation and
testBroadphaseLimitAsyncFinishReportsError in tests/native/TestNativePipeline.cpp cover
zero-limit failure and recovery. testStaticDuplicateBookkeepingPreservesLimitsAndLifecycle in
tests/native/TestNativeDynamicDuplicates.cpp checks that static duplicate bookkeeping does not
count toward the limit, and test_full_reports_survive_multiple_narrowphase_chunks in
tests/python_tests/test_parallel_phase_results.py exceeds a large finite limit.
Kernel choices at coplanar and floating-point boundaries#
engine-options-kernel-boundary (tests/sentinel/oracles/option_kernel_boundaries.py) runs
intersection codes 0 to 3 at zero tolerance, with coplanar handling off and then on. Its one
scene holds an exact positive segment hit, a separated pair whose axis-aligned bounding boxes
(AABBs) overlap, and a strictly coplanar pair. It checks pair membership and the face buffers
(report mask 12), not outline segments. The case excludes positive tolerance on purpose:
PhysX selects its distance leaf function before it reads the
kernel selector (getLeafFunc in the repository’s
physx/source/geomutils/src/mesh/GuBV4_MeshMeshOverlap.cpp). A clearance case repeated across
codes would test that the selector is ignored, not four kernels.
engine-reports-floating-point-kernel0 runs the fp-subnormal-kernel0 recipe: code 0 on the
subnormal fixture, with the legacy manager, a dynamic query run
and the architecture’s round-to-nearest mode that flushes denormals. It uses its own v4 request
protocol. The other floating-point recipes in tests/sentinel/fp_scenario.py keep code 3 and the v3
protocol. The header allows the kernels to differ marginally in borderline hit classification, so
both cases check selected proved domains. They do not claim equality across kernels, rounding modes
or cooking profiles.
Engine-corpus gaps covered by the combined gate#
Promoting these checks to named cases would keep the evidence in one place, but a combined
Sentinel run already requires them. tests/native/TestNativeClash.cpp registers them. All
native files in the table are in tests/native/.
Gap in the engine corpus |
Required native check |
Remaining distinction |
|---|---|---|
A contact cutoff stopping refinement for a retained pair |
|
In HIGH mode, a cutoff stops depth refinement for a retained pair, and clearing it restores the full depth. The check compares with reviewed reference depths, not an independent proof. The MEDIUM cutoff recipes of |
Direct setters versus the whole settings structure, defaults and rejected values |
|
Named cases need not repeat every setter. |
Scope and subcomponent filtering frozen during a run |
|
They pin the declared backend difference: OpenUSD reads the subcomponent flag again in later phases. The Sentinel action schema ( |
Point size changed during a run |
|
Registered on ovstage only, where it checks that a new point size reaches the next sample. OpenUSD keeps the size it computed before the first sample; that is a declared backend difference, not a required equality. |
Record and immediate depth and depenetration queries, hidden meshes and rejected arguments |
|
These tests call |
DLPack report views and attached ovstage transport |
|
Python lifetime and protocol behavior still needs the ordinary Python tests. |
Coverage outside Sentinel#
Ordinary Python and Suite validation covers consumer routes beyond the native controls. All
files are in tests/python_tests/:
test_runtime.py:test_run_settings_round_trip_through_the_native_context,test_report_buffers_implement_the_dlpack_protocolandtest_report_buffers_can_be_viewed_as_warp_arrays. The NumPy and Warp checks skip when those optional packages are missing.test_runtime_lifetimes.py: the async pipeline and overlap report owner-lifetime tests.test_suite_api_run_settings_and_scope.py:test_suite_run_settings_translate_all_original_python_settings,test_suite_run_settings_derive_stage_times_like_original_python,test_suite_run_settings_prefer_the_native_stage_timelineandtest_suite_set_settings_sampling_rate_override_keeps_stage_times. They check Suite naming, the depth gate and selector conversion, and timeline derivation. Canonical option cases do not replace these translation checks.test_suite_original_behavior.py:test_depth_querieschecks Suite contact classification and discard behavior on thecontact_cases.usdafixture.SuiteSettings.cpptranslates the Suitecompute_max_local_depthgate and its three-valuedmax_local_depth_modeselector into the four-valued canonical depth mode, so the two settings domains differ.test_attached_ovstage.py: Python owner operations, callback errors and borrowed-stage lifetime. The source inventory entry forovclash_ovstage_binding_tmakes no behavioral claim for attachment transport.test_parallel_phase_results.py: threading and narrow-phase chunk regressions. Sentinel has its own optimization cases; they do not replace these regressions.
Backend differences and inert settings#
Backends, Limitations, the divergence ledger of
the “Backend contract” section of AGENTS.md and the public header constrain new expected
answers and goldens:
ovclash_set_use_usdrtis stored, read back and serialized with the query settings, but it changes no clash result on either backend. The engine contract marks ittransport-only, and Sentinel launches with it off. The log flag is alsotransport-only; ordinary Python tests, such astest_cli_log_flag_reaches_the_backend_diagnostics_without_touching_stdout, check its diagnostics.ovclash_set_point_clouds_experimentalalone does not enable point clouds; thepoints-experimental-alonevariant ofengine-options-pointschecks this. With point clouds enabled, the flag is inert on ovstage and, when multi-threading is active, selects a multi-threaded point-vs-mesh path on OpenUSD. The native equality check covers experimental versus regular results.ovclash_set_nb_tasksbounds the legacy manager, selected whenovclash_set_new_task_manageris off. The new manager ignores it, andovclash_set_single_threadedoverrides either manager. Overlap index order is not contractual; see overlap index order is not contractual.ovclash_set_sort_modechanges behavior on ovstage only forUINT32_MAX, which zeroes the duplicate triangle count. That case is observable and covered. Neither backend validates the value, so other values are accepted, not invalid input.Uniform per-point widths and instanced point clouds have declared backend-specific results and existing tests. Do not report them as missing point coverage or force them into a cross-backend equality check.
Matrix decomposition selection (
ovclash_ovstage_set_matrix_decomposition) is ovstage-only. Subcomponent and point-size changes during a run, OpenUSD cancellation scope, async progress synchronization and step-status fidelity are declared limitations. New checks should pin those contracts, not redefine them.Compare default tables within one API surface. Canonical, Suite and curated Python defaults differ on purpose, and the
RunSettingsstructural inventory does not assert one universal default configuration.
Open items and adding coverage#
No named case isolates the contact-cutoff path for a retained pair. Such a case would keep the
evidence in one place. It is less urgent because the combined gate already requires
testContactEpsilonDirectSetter.
For each addition:
bind the requested and effective values;
assert the complete applicable payloads;
add negative checker tests for missing or wrong evidence;
require actual private path events when the public answer cannot tell the paths apart.
Reuse a deterministic stage when it fits, but fewer process launches do not add semantic
coverage. A new setting also needs a coverage decision in
engine_contract.json. Follow
add or change a case and
propose and accept results. Source presence
and registration show intended coverage; only a completed run shows execution on a particular
backend, platform and configuration.