Validation
Release gates for code, docs, runners, and benchmark facades.
On this page
Introduction
Validation evidence should be proportional to the changed surface: small enough to run locally, specific enough to catch the regression, and explicit about skipped heavy stages.
Evidence by change type
- Docs only —
npm run types:check,npm run build, affected route returns 200. Extra when promoted: Browser screenshot for layout or interaction changes. - CLI or runner — Public CLI discovery plus a representative evaluate command. Extra when promoted: Existing-results and model-mode runs if output contracts changed.
- Model manifest —
zoo model-show,zoo model-download --check-local. Extra when promoted: Clone, checkpoint, demo parity, runner parity, benchmark run. - Model runtime integration — In-tree runtime import, no machine-local source checkout dependency, runtime profile with
backend_stage, and focused regression. Extra when promoted: Checkpoint-backed run and one normalized benchmark scorecard. - Benchmark manifest —
zoo benchmark-show,preflight runtime --profile <benchmark-id> --output-dir <dir>. Extra when promoted: Clone, dataset, official runtime, normalized scorecard. - Benchmark runner —
zoo benchmark-run --mode official-validationor--mode official-run. Extra when promoted: Official result import, official runtime, and full-suite fairness gate. - Suite or matrix —
run --all-benchmarks --plan-only --json. Extra when promoted: Plan selected cells, then validate artifacts with runnable benchmark paths.
Public tests
All first-party test sources live under tests/ and are published with the
repository and source distribution. Tests use the repository's Apache-2.0
license. The wheel contains the runtime packages.
Fast weight-free gate
Activate the unified GPU environment and run from the repository root:
source tmp/worldfoundry_unified_env.sh
conda activate "${WORLDFOUNDRY_UNIFIED_ENV_PREFIX}"
python -m pip install -e ".[dev,test]"
make test
# Individual development tests can be selected with pytest:
python -m pytest -q tests/runtime/test_geometry_regression_impact.pyThe generated environment adds the Conda CUDA toolkit's target-specific headers to the host compiler search path when present. PyTorch extensions such as gsplat use them to compile C++ sources.
The default selection in pyproject.toml covers process logging, GPU lease
bookkeeping with simulated devices, checkpoint staging, job persistence,
Conda dispatch, pipeline cleanup, job shutdown, and packaging boundaries.
It runs without CUDA, checkpoint downloads, or provider API credentials. CI
uses the complete selection plus the coverage, evidence, historical-reference
and JUnit-validator contracts. make test-infer is an alias; use PYTHON=python3 on
systems whose python command still points to Python 2. The public gate uses the
test extra without Torch; PyAV, Protobuf and SoundFile support its artifact
readers. Contracts that import model runtimes or tensor-based metrics belong to
test-infer-tensors.
The Make targets collect an independent complete node manifest before running
tests. They reject skips, collection errors, missing or additional nodes,
duplicates, source changes and stale reports. TEST_ARGS applies only to the
execution; filtering out nodes with -k or -m fails the gate. Public CPU and
CPU Torch manifests and JUnit results are uploaded by CI. Successful standard
library subtests keep their parent node; failed or skipped subtests still fail.
Extended suites
| Path | Contents / requirements |
|---|---|
tests/base_models/ | Model component and checkpoint contracts |
tests/synthesis/ | Model runtime and orchestration tests |
tests/pipelines/, tests/operators/ | Pipeline and operator integration tests |
tests/core/, tests/runtime/ | Shared infrastructure unit and integration tests |
tests/cli/, tests/scripts/ | CLI, MCP and development tooling contracts |
tests/studio/, tests/studio_visualization/ | Workspace, worker, streaming and visualization tests |
tests/evaluation/ | Evaluation services, runners, metrics and artifacts |
tests/eval_core/ | Extended evaluation contracts; make test-eval-core runs this suite |
tests/integration/ | Cross-layer repository contracts |
tests/benchmarks/ | Inference performance harness contracts |
tests/manual/ | Manual model inference and provider API smoke scripts |
tests/stream/ | Manual streaming inference scripts |
Select tests for the current integration surface:
python -m pytest -q tests/pipelines/test_sana_integration.py
python -m pytest -q tests/pipelines/test_wan_peft_loading.py
python -m pytest -q tests/studio/test_conda_dispatch.py
python -m pytest -q tests/evaluation/execution/test_result_integrity.pyModel component and pipeline tests require the model environment's dependencies,
including Torch; PEFT adapter tests also require peft. UI tests require the
ui extra. Prepare local assets and CUDA for tests that declare those resources.
The test extra does not install every model's dependencies.
Framework dispatch and media coverage
tests/studio/test_dispatch_lifecycle.py checks every discovered catalog entry's
runtime-driver routing and exercises shared ordinary, realtime and torchrun
transitions with frame memory, model-owned state, native realtime, stateless,
action and geometry contracts. API client/cache isolation remains in
tests/studio/test_pipeline_cache.py.
The CPU Torch gate includes tests/pipelines/test_native_output_contracts.py
for all discovered native visual subclasses and tests/core/test_video_chunk_transport.py
for declared layouts, pixel ranges, chunk order and frame counts. Codec tests
check reader cleanup on success and failure, bounded decoding, ImageIO encoding
parity, and backend fallbacks. These CPU tests require Torch/torchvision, PyAV,
ImageIO/FFmpeg and OpenCV; hosted tensor CI installs them separately from the
Torch-free public gate. The extended component selection also installs Diffusers
0.39, EasyDict, Loguru, Matplotlib, dm-tree, timm and aiortc for scheduler,
logging, pose-rendering, tensor-tree, perception and WebRTC contracts. Hydra,
Trimesh, Kornia, Lightning utilities, Lightning/PyTorch Lightning, msgspec,
OpenCLIP, einops-exts, Beautiful Soup, gdown and Decord provide the selected
configuration, geometry, encoder and video-reader dependencies.
RTX adapter tests use a fake effect and do not establish
proprietary-runtime execution. Bridge and realtime integration tests remain
selected alongside these shared contracts.
tests/core/execution/test_cuda_nvenc_transport.py belongs to the CUDA gate;
its device ownership/event checks are separate from checkpoint replay and
encoder throughput evidence. Catalog coverage does not establish generation
success for every listed model.
Workspace evaluation preparation preserves resume and metric_batch_size
through direct and task-registry generation. Defaults are false and 32;
nonpositive metric batch sizes fail preparation and execution before generation.
POSIX PWD remains path context rather than a password, preserving resident
admission for image warmups; pwd fields and SERVICE_PWD credentials remain
redacted.
The non-native output contracts exercise RuntimeVideoSynthesis, ABot-World and
artifact-only pipelines with substituted generation, real small pixel arrays,
and ordinary/realtime request forwarding. They compare declared pixels through
artifact normalization and transport, retain raw returns, and check A/B/A image
conditioning. Resident-session tests cover Matrix-Game 2/3, DreamX camera/AR,
LingBot variants and Helios, including native chunk cadence and non-output rank
results. Batch/continuation contracts additionally cover WorldFM, LingBot and
LongVie through their pipeline/synthesis boundaries, with exact pixel comparisons,
PIL frame-list post-processing, raw-return preservation, history/noise continuity,
and Studio frame-count/rate forwarding. WorldFM PNGs are written and read back;
LongVie and LingBot encoder wiring uses recording writers. LingBot V2 tests retain
encoded artifacts and declare their decoded frames on subprocess and existing-group
routes. Matrix-Game batch tests execute MG2's small CPU decode conversion and
control-visualization normalization, compare declaration/transport/export pixels,
and check rolling-frame memory and Studio dispatch. MG3 tests retain artifact bytes,
check rank-local artifact ownership, and keep non-output ranks free of frames and
copy attempts. Model/decoder calls, subprocess execution and distributed timing/communication are substituted;
these tests do not establish checkpoint, CUDA or multi-rank execution. They are
selected by make test-infer-tensors alongside the shared transport contracts.
Trajectory output contracts cover GEN3C, Lyra-1/2 and Astra through real small CPU pixel conversion, frame memory and shared dispatch. They retain raw video, camera, latent and reconstruction fields; check positive-only signed pixels, ambiguous axes, nonuniform RGB/time order, FP16/BF16, and cropped frame counts; and keep planned/blocked or latent results separate from generated RGB. Lyra-1 camera and latent files are actually serialized. Astra's decoder conversion and latent-memory orchestration execute with substituted denoising; Lyra-2 depth and sampling calls, reconstruction models and video writers are substituted. These contracts and the existing catalog, workspace and runtime-path tests are selected by the CPU tensor gate. Small substituted outputs test boundary frame counts, not additional native sampling lengths or checkpoint-backed generation.
tests/synthesis/test_astra_state.py and
tests/pipelines/test_astra_request_isolation.py check absolute camera progression
through history eviction, local FramePack indices, shared-weight A/B/A and
interleaved requests, reset and reuse. They execute the real FlowMatch Euler
scheduler in FP32/FP16/BF16 against exact analytic predictions, retain weight
identity and global RNG, and check VAE cache cleanup. Public request cases use
substitute encoder, denoiser and decoder forwards. A small real BF16 Wan VAE
additionally matches canonical tiled encode/decode exactly across A/B/A requests
and releases temporal buffers. Interruption checks raise CancelledError at
compute/export boundaries. The CPU tensor gate includes both files alongside the
existing Astra output and Studio dispatch contracts.
tests/synthesis/test_lingbot_decoder_contracts.py and the realtime policy tests
check normalized/raw TAE inputs, explicit overrides, actual small PyTorch and
safetensors checkpoint loading, and unchanged source latents. A real randomly
initialized BF16 TAE compares streaming pixels with direct sequential decode;
separate stream wrappers share weights without sharing temporal memory. Both
LingBot's 9/12 and V2's 13/16 frame cadence are exercised.
tests/synthesis/test_hunyuan_worldplay_state.py and the public realtime tests
execute the existing AR cache operations and canonical Euler scheduler against
analytic forwards in FP32/FP16/BF16. They check exact updates, A/B/A and chunk-boundary
interleaving, owner-lock admission, request-local geometry RNG, reset, non-output
ranks, and recovery after failures or injected CancelledError. A real small
random-weight Hunyuan 1.5 VAE checks FP32/BF16 prefix/suffix pixel conversion against
direct canonical decode. Text/image/vision conditions and the public denoiser
forwards are substituted. These files and the affected LingBot V2 tests belong to
the CPU tensor gate. They do not establish checkpoint, CUDA concurrency, actual
service cancellation or bounded decode cost.
tests/pipelines/test_independent_native_outputs.py and
tests/studio/test_independent_output_dispatch.py cover Cosmos Predict2/2.5,
Transfer2.5, Cosmos3, HunyuanVideo/1.5, T2V-Turbo and Vchitect. They compare
positive-only signed and unit-range pixels across preview, transport and export,
check FP32/FP16/BF16 and frame counts 1/3/4/5, write real single-frame PNGs,
and retain raw/latent/audio/action references. Stream dispatch checks FPS,
frame count and explicit A/B/A image conditioning through worker and realtime
routes. Latent results neither export RGB nor replace artifact history; explicit
no-RGB and buffering declarations prevent fallback to raw aliases. The codec
orchestration executes Hunyuan's existing unit-range conversion, Cosmos cropping
and Turbo's frame-wise decode with substituted VAEs. Sampling, video encoding and
parallel communication are substituted; public-loader delegation and rank-local
artifact ownership are wiring evidence, not checkpoint or multi-rank acceptance.
These tests and the affected existing loading/catalog tests belong to the CPU
tensor gate.
tests/core/execution/test_compile_numerics_registration.py checks normalization
operator registration, optional affine tensors, shape lists, exact FP32/FP16/BF16
CPU arithmetic, and fake-tensor shape/dtype dispatch. The existing CUDA regional
compile selection checks native rounding with real compiled kernels and CUDA graphs;
it remains separate from transport, checkpoint and throughput evidence.
What test results prove
| Evidence | Verified effect |
|---|---|
| Catalog and binding tests | The model ID resolves to the current pipeline and runtime profile; readiness matches the registered implementation |
| Mocked pipeline and runner tests | Loading options, input normalization, request forwarding and result/artifact contracts are connected correctly |
| CPU tensor tests | Real small components produce the expected numerical outputs and preserve request state |
| CUDA contracts | The selected kernels, streams, caches and precision paths execute correctly on the tested GPU |
| Real-checkpoint replay | The declared model, weights, inputs and environment preserve accepted numerical outputs and exported artifacts |
| Benchmark execution | The configured evaluator produces valid metrics and a scorecard for the executed samples |
Import success, mocks and plan_only do not establish checkpoint-backed generation
quality or performance. A missing-runtime adapter must report its blocked or failed
state before launch; it must not be counted as successful inference. Required gates
reject missing resources and skipped cases. Keep real-checkpoint and benchmark
evidence tied to the model variant and outputs actually tested.
manual/ and stream/ are excluded from recursive pytest collection. Run
their scripts directly after preparing the relevant model environment:
PYTHONPATH=. python tests/manual/test_wan_2p2.py
PYTHONPATH=. python tests/stream/test_wan2p2_stream.pyThese scripts can download weights, use GPU memory, call real provider APIs,
and write output artifacts. Supply credentials through the provider's
environment variables. Real-weight MiniMax H3 tests use
MINIMAX_H3_CKPT_DIR, defaulting to
~/.cache/worldfoundry/checkpoints/minimax-h3-components.
Fast inference contracts and CUDA checks
Run the tensor suite in the GPU development environment with safetensors and einops. The target selects CPU tensor execution without loading checkpoints or renderers and keeps the environment's CUDA PyTorch installation:
python -m pip install "safetensors>=0.4" "einops>=0.7,<0.9"
make test-infer-tensorsIn a prepared model environment, also run pipeline integrations, result serializers and CUDA contracts. These tests need the model dependencies, including PEFT for adapter loading and plyfile and gsplat for serializers:
make test-infer-contracts PYTHON=/path/to/model-env/bin/python
make test-infer-cuda-contracts PYTHON=/path/to/model-env/bin/pythonThe first target uses small tensors and synthetic geometry without checkpoint downloads. It covers Warp-as-History input planning, standard Wan PEFT adapter loading and forward execution, real checkpoint round trips and meta-device assignment, rejection before partial mutation, remap collisions, camera conventions, masked PLY and array exports, fresh-process result serialization, request recovery, and concurrent submission. The CUDA target checks producer-event ordering, pinned-memory copies, fallbacks, and draining queued work after a callback fails. It fails when CUDA is unavailable rather than reporting a wholly skipped GPU suite as success.
After setting the regression checkpoint and input roots described below, a short real Pi3X test checks a reused model against a fresh model, with changed inputs, an intervening failed request, and exact repeatability:
python -m pytest -q tests/pipelines/test_pi3x_real_inference.pyThis is a state-isolation check, not an accepted-output quality baseline. The fixed-weight numerical replay gate remains necessary for changed model behavior.
Video reader ownership
make test-infer-tensors includes tests/core/test_video_codec_contracts.py.
These CPU contracts verify that read_video() closes its ImageIO reader before
releasing the local-input lease, on successful decoding, decoding failure and
metadata failure. They also preserve ImageIO array/format forwarding, decoded
pixel/fps parity with the direct backend, image conditioning, materialization
directories and OpenCV writer release. These checks require no model weights
or GPU.
Video generation and world models
make test-infer-tensors includes the video component numerical contracts;
make test-infer-video-tensors selects just this part. Real small Wan networks
compare fused QKV and static cross-KV caches against the original network over
different batches, temporal/spatial shapes, noncontiguous layouts and A/B/A
requests. Causal VAE convolution compares chunked execution against independent
full-sequence convolution and checks that future frames cannot affect earlier
outputs. Sampling and CFG use analytic endpoints, with UniPC history reset,
failure cleanup and global RNG isolation. Explicit zero or negative dimensions,
frame counts, steps and fps fail before inference; only None selects defaults.
LTX's timestep-conditioned VAE also injects noise during decoding. Video, audio/video and request-based tensor decoders use a local generator on the latent device, seeded from the request. Small real VAE tests cover tiled and untiled decoding, A/B/A seeds, global RNG isolation and exact agreement with the original VAE given the same random state. Untiled tensor decoding calls the decoder directly. The former uncontrolled LTX RGB output is stochastic; accepting a seeded reference requires separately recording this behavior fix and proving latent and controlled-decoder parity, rather than silently replacing a failed reference.
tests/manual/geometry_regression_cases.json covers geometry, video and
world-model cases. The geometry script names and GEOMETRY_* commands remain
available; plan-inference, replay-inference and verify-inference expose the
broader scope. Short cases declare Wan 2.1 1.3B, Wan 2.2 TI2V 5B, LTX 0.9.8
I2V, CogVideoX 2B, Cosmos Predict 2.5 2B, Matrix Game 2 and DreamX World 5B AR.
LTX retains its native two-pass ten-step recipe. These cases compare available
latents, raw frames, decoded RGB exports and fps; they check changed conditions,
A/B/A requests, expected failures, causal continuation, reset and replay. They
protect these concrete inputs and state transitions, not full-demo quality.
Additional cases cover Cosmos Transfer 2.5's general/edge 2B checkpoint,
Gamma's released four-step causal checkpoint, and Oasis 500M's video prompt
route. Gamma uses 189 frames per view, as required by the released weights;
the case checks two 320×480 views and recovery after a rejected short request.
Transfer samples its minimum 93-frame window (24 latent frames) before cropping
the requested 17 RGB frames.
Stage control.mp4 under WORLDFOUNDRY_REGRESSION_INPUT_ROOT with at least 17
frames (a longer clip also exercises bounded conditioning reads). Place the
official buildHouse_flat sample's first_frame.png, prompt.txt,
action_left.json and action_right.json under gamma-world/buildHouse_flat.
Oasis expects open-oasis/context.mp4 with multiple frames and
open-oasis/forward.one_hot_actions.json with two 25-column rows: set column
11 (forward) to 1 and every other column to 0. Its adapter reads one prompt
frame and holds the last action through six output frames. Checkpoint paths
and encoder/tokenizer assets are explicit in each case. These declarations
select required replays; they do not certify GPU execution or other variants.
Video cases can replace call with sequence. Each step specifies a unique
name, method (default __call__), call and selected outputs. Use
outputs: [] for session configuration or reset. expect_error requires an
exact qualified exception type and message pattern; unrelated errors fail.
Returned CPU buffers are copied immediately, preserving earlier responses.
comparisons specifies exact equal or different relationships within one
run. array_contracts checks shape, dtype, ranges or exact values, including
the requested fps numerator/denominator. export_artifacts selects MP4s inside
the run directory for full decode and comparison. Reference/candidate audits
still require exact numerical equality.
For a generator that returns only a video path, output_arrays can select an
MP4, WebM, MOV or MKV inside the run directory. The replay decodes every frame
and saves artifact.<relative-path>.frames and .fps in arrays.npz, so
required outputs cannot be satisfied by a path or plan alone. Also declare
the video in export_artifacts to compare the encoded artifact's decoded
pixels and frame rate against the reference. Oasis uses this route because
its subprocess returns an MP4 without in-memory tensors; its generator fixes
the random seed to 0.
Pi4 declares projected_tracks from each captured or exported XYZ array to
its dense XY track array. The runner derives in-frame validity from pixel
coordinates and raster size. It requires finite XYZ inside the image and
NaN markers outside. Replay compares the validity mask exactly and checks
all in-frame coordinates.
GPU-required cases set requires_gpu: true; the runner fails before loading
weights when CUDA is unavailable. This declaration does not certify a GPU run.
The native LTX-2.5, LTX-2/2.3 IC-LoRA V2V and HyperFlow cases compare decoded
video and FPS using their declared checkpoint and control assets.
For generated-text models, text_outputs maps relative JSON artifact names to
explicit output field paths, for example {"prediction.json": ["text"]}.
The runner stores the selected string as UTF-8 uint8 bytes under
text.prediction.json.text and requires that key in required_outputs.
Auditing re-reads the selected fields and requires exact byte equality even
when a floating-point tolerance is supplied. Input paths and other JSON strings
are not captured. OmniVinci's audiovisual case compares its generated description
through this contract; legacy numerical cases are unchanged.
Emu3.5 exports its in-tree Story protobuf as .pb. The replay exporter uses
that schema to read generated clip text and PNG images into
export.<file>.text.* and export.<file>.images.* arrays. Both generated
modalities are required; a question-only response cannot pass. Text bytes and
image pixels compare exactly, including when numerical tolerances are supplied.
Questions and reference images are not generated outputs.
MMAudio FLAC artifacts are decoded lazily with SoundFile to lossless int32
PCM arrays, sample rate and channel count under export.<file>.samples,
.sample_rate and .channels. Samples and metadata compare exactly even
with floating-point tolerances; container tags do not affect the comparison.
Empty audio fails validation. The 16k and 44k routes have separate GPU cases.
Both cases pin the consumed checkpoint files, including the local OpenCLIP
export. Prepare OpenCLIP and the 44 kHz BigVGAN export under
WORLDFOUNDRY_CKPT_DIR so the replay checks the files the runtime loads.
The short Show-o replay pins the Show-o and MAGVIT configurations and weights plus the Phi-1.5 configuration and tokenizer files used to load the released model. Stage these files in their three local checkpoint directories.
AnimateDiff V3 pins the SD1.5 files, motion module, RealisticVision checkpoint,
and OpenAI CLIP ViT-L/14 configuration and weights used during replay. Stage
the CLIP pair under WORLDFOUNDRY_CKPT_DIR/openai--clip-vit-large-patch14.
Echo-Infinity pins the Wan2.1-T2V-1.3B denoiser configuration and weights,
VAE, T5 encoder and tokenizer files loaded from wan_models/Wan2.1-T2V-1.3B.
The replay profile supplies the generator checkpoint SHA256. The explicit file
inventory requires an accepted reference recorded with this recipe.
For generated video soundtracks, declare audio_outputs: ["video.mp4"].
PyAV decodes the selected stream to float32 PCM under audio.<file>.samples,
with exact sample-rate, channel-count and channel-layout metadata. PCM compares
exactly even with floating-point tolerances; missing or empty audio fails.
HyperFlow requires both decoded video and its generated soundtrack. Cases
without audio_outputs retain their existing captures.
NWM and MineWorld forward the loader's optional seed to their in-tree subprocesses, seeding Python, NumPy and Torch through the canonical runtime helper. An unset seed leaves their RNG behavior unchanged. NWM records generated PNG frames, not the request plan; replay compares the decoded prediction pixels exactly.
Action cases can materialize their released camera/state observations from
UTF-8 JSON input data. input_json maps a concrete call argument to an explicitly
listed assets file and a required SHA256 pin:
{
"input_json": {
"official_policy_observation": {
"path": "${WORLDFOUNDRY_REGRESSION_INPUT_ROOT}/go1/observation.json",
"sha256": "${WORLDFOUNDRY_REGRESSION_GO1_OBSERVATION_SHA256}"
}
}
}The private accepted-reference profile supplies the 64-character lowercase
hexadecimal pin. Unset, malformed or mismatched pins, undeclared input files,
and collisions with explicit call arguments fail before model loading.
Environment tokens inside the decoded observation use the existing case
expansion. The checkpoint, seed, inference call and required action outputs
remain in the case; only observation data is external. Include the observation
bundle in assets to pin its referenced camera media as well. JSON inputs apply
to single-call recipes; legacy cases need no changes. Observation materialization
and accepted-reference receipts remain GPU-host prerequisites.
For an uploaded observation bundle with absolute paths from another host, set
WORLDFOUNDRY_REGRESSION_ORIGINAL_INPUT_ROOT to its former input root and
WORLDFOUNDRY_REGRESSION_INPUT_ROOT to the copied root in the case environment.
The runner resolves matching paths to declared local files after checking the
JSON pin. The observation JSON and the accompanying asset hashes are retained.
File-backed native inputs use asset_sha256, a mapping from declared assets
names to required lowercase SHA256 pins or operator-supplied pin variables.
The runner checks these pins before hashing checkpoints or loading the model;
it does not rewrite the input payload. Single-call cases may select generated
fields with result_outputs, for example ["actions"], excluding timing and
memory metadata. Selected media paths use the existing numerical decoders.
result_outputs: [] compares only explicitly exported outputs; required-output
checks still reject a plan or an empty result. Omitting either option preserves
the existing case behavior.
Family recipes preserve their native checkpoint and input contracts. DIAMOND's
public model_path selects pretrained_dir; its Atari replay uses
pretrained=True, a selected game and a pinned, precollected nonempty initialization
dataset rather than collecting new simulator observations. LeWorldModel's
model_path selects its learned policy checkpoint; DINO-WM compares the computed
planned_actions.npy, and LaST-R1 selects generated action fields rather than value
or runtime metadata. The model-specific seed and command tests are weight-free
contracts, not checkpoint-generation evidence.
StarWM's public model_path selects served_model_id, not a local checkpoint.
Its pending endpoint declaration requires a matching seeded vLLM server, pinned
server provenance and genuine generated state text. It remains a local-checkpoint
coverage-policy blocker, and the public runtime's endpoint readiness gate remains
blocked. Endpoint repeatability and accepted-reference execution are separate
requirements.
Kandinsky6 Lite/Pro, including each distilled and pretraining variant, has its
own kandinsky6-<variant>-video-short case. Stage the matching Diffusers release
under WORLDFOUNDRY_REGRESSION_CHECKPOINT_ROOT at the case's assets.checkpoint
path. Each video-only case uses seed 42, 121 frames, 480×864 and 24 FPS, and
compares every decoded RGB frame and the frame rate. Distilled variants use
ten steps and guidance 1; the other variants use fifty steps and guidance 5.
Audio requires separate replay evidence. The CPU tensor gate includes
tests/pipelines/test_kandinsky6_replay_recipes.py for concrete loading,
checkpoint routing and request wiring; it does not execute these checkpoints.
make coverage-inference PYTHON=python3
make plan-inference PYTHON=python3 INFERENCE_BASE=<comparison-commit>
make replay-inference PYTHON=/path/to/prepared-env/bin/python \
INFERENCE_PROFILE=/private/path/inference-regression.json
make verify-inference PYTHON=python3 \
INFERENCE_PROFILE=/private/path/inference-regression.json \
INFERENCE_REPORT=/private/path/completed-run/report.jsonCoverage inventories catalogued native video/world bindings and registered
variants of their pipeline classes. A shared class, family, alias or historical
verified label does not assign a case to another model ID. case_defined
means a recipe exists; it does not imply accepted references or successful GPU
inference. A frozen baseline preserves existing gaps while CI rejects new
uncovered identities, loss of an existing recipe and affected native variants
without a runnable numerical replay. Releases requiring complete coverage
can invoke the coverage script with --require-complete; gaps return exit 2.
For commit-diff coverage, --head must resolve to the inspected checkout's
commit. The report records the comparison base, candidate commit and tree.
Commit-diff coverage reads the committed matrix, model YAML, dependency
declarations and Python sources. Inventory mode can inspect work in progress.
Under the model retirement policy of 2026-10-16, BiWM Wan2.1
(biwm-wan21@biwm-wan21), BiWM Wan2.2 (biwm-wan22@biwm-wan22),
IRASim (irasim@irasim) and Pandora (pandora@pandora) are out of active support.
Their frozen baseline records are kept. The exact identity set in
tests/manual/native_coverage_policy.py permits these removals and
reports them as retired_native_variants, not replay coverage or GPU success.
EgoWM (egowm@egowm), HunyuanWorld-Voyager
(hunyuanworld-voyager@hunyuanworld-voyager), HY-World 2.0 world generation
(hyworld-worldgen@hyworld-worldgen), Open Dreamer (open-dreamer@open-dreamer),
ShotStream (shotstream@shotstream) and WildDet3D (wilddet3d@wilddet3d) are
retired the same way: their runtimes depended on license-gated local checkouts,
external source checkouts whose code cannot be vendored, or external build-only
dependencies, and every model runtime must run from the repository.
Other frozen variant removals still fail. Reintroducing a retired identity
requires its own checkpoint replay recipe, like a new variant; its historical
uncovered-gap exception no longer applies.
The planner records exact runtime deletions for these six integrations as
cpu_only_changes when the approved removal is in the candidate history,
the comparison base has the removed blobs, and both the source paths and
binding are absent. The registry CPU tests verify the retired public routes.
Other runtime paths still follow ordinary affected-case selection.
The short matrix also declares separate recipes for all six Kandinsky 6 checkpoints, both DreamDojo student identities, LingBot-World-V2 1.3B, Matrix-Game 4 Egypt and native WonderWorld. These definitions require real weights and numerical exports; they are not completed GPU or accepted-reference results. Kandinsky's cases cover video-only 121-frame 480×864 output at 24 FPS, with explicit per-variant model IDs and checkpoint roots. Audio requires its own acceptance cohort.
For DreamDojo, set WORLDFOUNDRY_REGRESSION_DREAMDOJO_STUDENT_CHECKPOINT to
operator-supplied distilled weights. Stage dreamdojo/text-embeddings.pt with
actual [1,S,100352] Reason1 features and two different normalized [16,384]
action arrays as dreamdojo/actions-a.npy and dreamdojo/actions-b.npy under
WORLDFOUNDRY_REGRESSION_INPUT_ROOT. The tokenizer comes from
nvidia--Cosmos-Predict2.5-2B/tokenizer.pth under the checkpoint root. Each A/B/A
rollout emits 17 frames at 10 FPS; teacher weights are not substituted. LingBot's
small-model case uses its own six-shard 1.3B release, shared Wan 1.3B text/VAE
assets and the existing 21-frame WORLDFOUNDRY_REGRESSION_LINGBOT_CONTROLS input.
Matrix-Game 4 requires two distinct 17-frame 480×864 low-poly videos at
matrix-game4/low-poly-a.mp4 and matrix-game4/low-poly-b.mp4 under the input
root. Transformer and sink assets come from Skywork--Matrix-Game-4.0/fps-egypt;
text/tokenizer/VAE assets come from alibaba-pai--Wan2.2-Fun-5B-Control.
WonderWorld uses the component directories declared in its case and a second
accepted image at wonderworld/image-b.png. Its A/B/A seed scenes compare depth,
rendered previews and every byte of the exported .splat, independently of
metadata and point counts. Novel-view and official rasterizer acceptance remain
separate scopes.
Runtime profile ownership uses the declared model ID and pipeline binding,
including source_repos[].in_tree_path for code executed in subprocesses.
These declarations supplement static imports. Unknown paths still expand
selection conservatively and fail when an affected native variant lacks a
real checkpoint replay.
The evaluation_only_paths list records exact files used by evaluation. A
matching inference import or declared runtime dependency still selects the
affected case or variant.
Appending recipes and their component declarations selects the added cases only when the exact committed before/after definitions prove that every existing recipe, ownership and global rule is unchanged. Changed test orchestration additionally requires unchanged committed runtime, environment and asset files, matching checkout contents, its CPU contracts and a real MG2 smoke replay. Changed production code remains independently selected; dirty definitions, deletions or reclassifications keep the full replay selection.
The InSpatio, LingBot Cam/Act/V2 and ATI cases each use their own released
checkpoint. Set WORLDFOUNDRY_REGRESSION_INSPATIO_SCENE_ROOT to the accepted
scene containing video_example_00/input/{video.mp4,target_tcw.txt}.
WORLDFOUNDRY_REGRESSION_LINGBOT_CONTROLS contains 21-frame poses.npy and
intrinsics.npy, plus action.npy for Act. ATI requires its fixed quantized
packed-NPZ track file in WORLDFOUNDRY_REGRESSION_ATI_TRACKS. Inputs are hashed
alongside weights. These short numerical replays do not certify full-demo
quality or unrelated variants.
verify-inference checks that a trusted GPU-host report matches this commit,
source tree, matrix, dependency declarations and pinned reference index, that
all affected cases executed, and that every numerical field is exact.
It requires a --base commit-diff plan and recomputes the changed paths;
manually listed or omitted paths cannot bypass the affected-case gate.
The matrix and dependency definitions must match the committed files. The
tracked Python sources used by the import graph must also match that commit.
Preflight, stale commits, omitted cases, relaxed tolerances and failed runs
cannot pass. Public CPU and tensor gates must pass separately.
The opt-in Inference Evidence workflow (.github/workflows/inference-evidence.yml)
consumes a successful official Actions artifact from a maintainer-dispatched
control workflow via its inference-replay job. A missing, expired, foreign or
stale receipt fails when enabled. The dispatch verifies the candidate's exact
commit, tree, comparison base and pinned reference index before publishing
trusted-inference-evidence. Evidence-only dispatches run attest-inference-evidence;
ordinary PRs verify the receipt whenever the repository configures
INFERENCE_EVIDENCE_CONTROL_REF and INFERENCE_REFERENCE_INDEX_SHA256 (and
optionally INFERENCE_EVIDENCE_WORKFLOW_PATH). Repositories without those
variables run public weight-free checks in CI without failing inference-replay.
You can also enable manual workflow_dispatch CUDA contract execution on a
[self-hosted, linux, gpu] runner via .github/workflows/gpu-contracts.yml.
Protect the merge branch with the public CPU checks and, once configured,
inference-replay. A workflow declaration alone does not enable branch
protection. Uncovered and unexecuted variants remain gaps.
MG2 changes, including changes to its numerical contract, additionally require all six real-image, 12-block trajectories against a frozen accepted revision. The reference's complete digest is pinned. Flow/x0 outputs, every rolling cache, conditions, latent/video/RGB pixels, VAE state and continuous RNG histories must match exactly. Two current paths agreeing with each other is insufficient. This independent contract accompanies the public-pipeline A/B/A replay; neither can stand in for the other. The gate never regenerates accepted references.
After committing the candidate, run both GPU gates on the prepared host. Build the bounded dispatch input from their completed reports:
INFERENCE_REFERENCE_INDEX_SHA256=<pinned-index> python3 tests/manual/inference_actions_evidence.py compact \
--base <comparison-commit> --head <candidate-commit> \
--conditioned-report /private/path/mg2-conditioned.json \
--junit /private/path/mg2-conditioned.xml \
--generic-replay /private/path/replay/report.json --output /private/path/evidence.jsonDispatch Inference Evidence on the configured control branch with those two
commit IDs and the compact JSON as source_revision, base_revision and
evidence_json. After that dispatch succeeds, retry the candidate's
inference-replay job. The companion inference-evidence-verified.yml performs
this retry once it is installed on the repository's default branch; until then
retry it explicitly.
Component parity and first divergence
For a model port or changed tensor math, compare components before composing the full sampling loop. Use the same source weights and inputs for the denoiser, condition encoders, latent codec and scheduler. Cover checkpoint conversion separately from direct construction: inspect missing/unexpected keys, remapping, fused projections, normalization, latent scaling and dtype. Matching shapes or successful loading alone does not establish numerical parity.
Fix the checkpoint variant, seed and generator, prompt or controls, dimensions, frame count, schedule, guidance, precision and attention backend. Compare initial noise and conditioning, then per-step predictions and scheduler updates, then decoded frames before lossy encoding. If a result diverges, locate the earliest boundary with different values and compare its inputs before investigating later outputs. Use small FP32 components when supported, then cover the deployment precision and representative shapes. The owning case determines tolerances; never widen them or replace the accepted reference to conceal a mismatch.
Keep temporary diagnostics instance-local, remove instrumentation after use, and
store captures under tmp/, outside Git. Component comparisons supplement the
public loader and accepted-reference replay; they do not replace either route.
Request isolation and evidence scope
For reusable models, run A/B/A with the first and third requests identical and change only the intended conditioning in B. Cover reset, a failed request, and subsequent reuse. Check mutable scheduler, cache, decoder and memory state without copying reusable model weights. Use the same state and shapes when comparing eager, compiled, graph or offloaded paths.
State the execution scope of each result:
- Mocked contracts verify dispatch and request wiring.
- Small real components verify their executed arithmetic and state handling.
- CUDA checks verify the selected device kernels, streams and precision paths.
- Released-checkpoint sampling verifies the executed weights and requests; accepted-reference comparison is needed to establish numerical regression.
- Serving acceptance additionally exercises live cancellation, worker reuse, simultaneous sessions and the advertised rank topology.
Injected cancellation and deterministic interleaving establish bounded cleanup and isolation, not live service or CUDA concurrency. Separate functional and numerical results from performance: measure loading, cold compilation, warmup, steady-state sampling, decode, transfer and encoding independently. Use CUDA events or explicit synchronization for completed GPU work and keep profiler attribution separate from latency measurements.
Validation while optimizing
| Change | Checks on every change | Broader evidence |
|---|---|---|
| Imports, ownership, configuration, packaging | Public CPU gate and built-distribution audit | Short affected-model replay for changed execution paths |
| Attention, kernels, graphs, offload | Reference-versus-optimized tensor tests over shapes, precision, layouts, devices and repeated requests | Representative real-weight cases using each affected component |
| A model's loading, preprocessing or output conversion | Inference contracts and that model's short accepted-output replay | Full demo and benchmark before promoting integration status |
| Quantization, pruning or approximate attention | Explicit opt-in, measured numeric error and task-level quality limits | Representative datasets and hardware; benchmark before enabling by default |
| Release affecting shared inference components | Complete accepted short-case matrix | Full demos and quality benchmarks at lower frequency or before release |
Use the latest successful replay's source_hashes to help identify affected
cases, together with explicit component/capability declarations and static
dependencies. Runtime traces only cover paths that ran: they do not cover an
unexecuted branch or a dynamically selected backend. Treat an unresolved impact
as uncovered and expand the affected component's tests. Keep the reference
implementation available for differential tests and safe fallback. Separate exact
optimizations from approximations; specify numeric and task-quality limits for
the latter and never silently widen tolerances or regenerate accepted references.
GitHub CI runs the public CPU, CPU Torch tensor and packaging gates on pull
requests, pushes to main and release/**, and manual dispatch. Result
serializers, CUDA contracts, real-weight replays and broader model benchmarks
require the prepared model environment. Hosted CI requires their official
evidence for affected inference changes and publishes the affected-case plan. Daily GPU
replays are available through the explicit host schedule described below.
Automatic affected-case selection
make plan-geometry PYTHON=python3 GEOMETRY_BASE=<comparison-commit>
# Optional: add actual imported-source evidence from a successful matrix.
python3 tests/manual/geometry_regression_impact.py --base <comparison-commit> \
--evidence /absolute/path/to/successful-runs --output tmp/3d-regression-plan.jsonThe planner combines the explicit component declarations in
tests/manual/geometry_regression_dependencies.json, conditional and relative
Python imports, literal lazy imports, package initializers, and optional recorded
imports. Git rename and deletion handling includes the old paths. Shared
inference infrastructure or matrix changes select all cases; new cases require dependency
declarations. The realtime layers worldfoundry/core/execution/realtime/,
worldfoundry/studio/serving/realtime/ and worldfoundry/core/media/processing/
are not shared paths: a change there selects the cases whose import closure,
declared components or recorded imports include the file. core/media/processing
still reaches every case through the lazy facade table in worldfoundry.core.
The studio/serving/realtime/ files are also declared CPU-only components:
a serving file that no case's import closure includes requires the Studio
realtime CPU contracts named in the dependency file instead of a replay.
Unknown paths or an unresolved import graph select the full matrix
and exit with uncovered, requiring the coverage gap to be resolved. A docs-only
change can report no_inference_changes; it still requires the CPU gates.
Only changes to the planner and source-snapshot orchestrator have a narrower verification rule: immutable Git entries must prove that all runtime code, environments, assets, matrix and dependency definitions are identical. The complete commit diff and inspected tooling must match the committed blobs. Those changes require the full CPU contracts and both MG2 GPU gates to exercise the verification chain. Missing history, changed case definitions or a mixed production change retains the full conservative model selection.
CI uploads geometry-impact even when planning fails. This artifact lists
required replays; it is not a successful GPU result. The runner rejects stale
tree/policy hashes, contradictory empty plans, or plans omitting cases required
by the current declarations and import graph.
Environment ownership is declared in environment_variants in
geometry_regression_dependencies.json: exact environment YAML paths map to
explicit model_id@binding_id lists. The native coverage policy and replay
planner use these owners before broad metadata rules. A profile's declared
execution.environment also identifies consumers, including both LTX V2V
profiles using LTX-2.5. No wildcard environment mappings are accepted. Missing
case definitions remain uncovered; unknown manifests and shared-core changes
retain conservative selection. Frozen native-coverage records are unchanged.
Scheduled GPU regression on a prepared host
Use the same model Python, accepted assets and environment as the numerical reference. First copy explicitly accepted outputs into durable private storage:
python3 tests/manual/geometry_regression_schedule.py import-reference \
--source /absolute/path/to/accepted-runs \
--destination /absolute/path/to/private-state/referenceThe importer preserves the original evidence, relocates exported artifact paths,
verifies exact numerical equality, and records each copied file's SHA-256. It
refuses an existing destination. Save the returned reference_index_sha256 in a
private host profile such as ~/.config/worldfoundry/geometry-regression.json:
{
"source_root": "/absolute/path/to/WorldFoundry",
"source_ref": "refs/heads/your-validated-branch",
"python": "/absolute/path/to/model-env/bin/python",
"matrix": "tests/manual/geometry_regression_cases.json",
"dependencies": "tests/manual/geometry_regression_dependencies.json",
"reference": "/absolute/path/to/private-state/reference",
"reference_index_sha256": "<SHA-256 returned by import-reference>",
"state_root": "/absolute/path/to/private-state",
"cuda_visible_devices": "0",
"env": {
"WORLDFOUNDRY_REGRESSION_CHECKPOINT_ROOT": "/accepted/checkpoints",
"WORLDFOUNDRY_REGRESSION_INPUT_ROOT": "/accepted/multiview-frames",
"WORLDFOUNDRY_REGRESSION_INPUT_IMAGE": "/accepted/input.png",
"WORLDFOUNDRY_REGRESSION_PANORAMA": "/accepted/panorama.jpg",
"WORLDFOUNDRY_REGRESSION_LYRA_INPUT_IMAGE": "/accepted/lyra-input.jpg"
},
"case_timeout_seconds": 1800,
"suite_timeout_seconds": 7200,
"retain_runs": 7
}A transferred accepted reference can use its original index SHA-256 when the archive preserves the indexed files byte for byte. Scheduled replay verifies the complete inventory and resolves recorded absolute export paths only when every export maps to an indexed file under a single original output root.
The optional gpu_holder object configures an existing gg script using an
absolute script, string-list start_args, its env (including GG_PYTHON),
and optional log ready_patterns. The runner stops that script for replays and
restarts it in a detached session after success, failure, timeout or interruption.
If replay descendants cannot be stopped or GPU leases cannot be released, it
fails and defers holder restoration until those resources are cleared.
Preserve required runtime variables such as LD_LIBRARY_PATH and CUDA_HOME
in the private profile's env. Cron jobs retain the prepared tool PATH. A CUDA
preflight compares Python, Torch, CUDA, cuDNN, GPU and package versions with all
selected references before loading weights or stopping the holder; changed
environments fail rather than weakening the comparison.
Models accepted in different Python/Torch environments use private
case_environments overrides, for example
"case_environments": {"flashworld": {"python": "/absolute/path/to/flashworld-env/bin/python"}, "worldfm": {"python": "/absolute/path/to/worldfm-env/bin/python"}}.
Each override can also provide env, merged over the default profile environment.
Every distinct selected environment gets its own preflight and each case runs in
its configured interpreter. Unknown case IDs are rejected.
# Validate the runner with one case before enabling a complete daily matrix.
python3 tests/manual/geometry_regression_suite.py \
--profile ~/.config/worldfoundry/geometry-regression.json --preflight-only
python3 tests/manual/geometry_regression_suite.py \
--profile ~/.config/worldfoundry/geometry-regression.json --case-id pi3x
python3 tests/manual/geometry_regression_schedule.py install \
--profile ~/.config/worldfoundry/geometry-regression.json --hour 3 --minute 0
python3 tests/manual/geometry_regression_schedule.py status \
--profile ~/.config/worldfoundry/geometry-regression.json
# Remove only WorldFoundry's marked cron block.
python3 tests/manual/geometry_regression_schedule.py remove \
--profile ~/.config/worldfoundry/geometry-regression.jsonInstallation preserves other cron entries and uses Asia/Shanghai. It copies
controllers from the committed source revision; reinstall after changing those
controllers. Each run snapshots the configured local committed ref, without
pulling, resetting, or executing dirty source files. CUDA preflight and replay
workers use the replay script from that snapshot. Separate model processes
share the host's physical-GPU lease locks, have per-case and suite time budgets,
and undergo exact numerical and imported-source audits. The complete short
matrix runs daily; an on-demand --plan can select affected cases instead.
The saved plan must identify the exact commit resolved by the configured ref.
latest.json records running before work starts and the final outcome; run
logs, source revision and comparisons live under runs/. Retention keeps seven
run directories by default and archives older compact reports under history/.
Accepted references are outside disposable runs and are never regenerated by
the runner. Profiles, local assets, weights and evidence stay outside Git.
--preflight-only compares the selected asset file inventories and environments
with their accepted references. A failed resource check lists each affected
case under asset_preflight_failures before acquiring a GPU lease. The full
replay also compares asset SHA-256 digests before loading model weights.
For older snapshots without the worker's accepted-manifest option, the
controller compares those digests before starting the committed worker.
Numerical inference evidence comes from the completed replay.
Pin numerical environment settings in the host profile too, including
OMP_NUM_THREADS and MKL_NUM_THREADS; CPU depth reconstruction can change with
different thread counts even when every package version matches. Give each
Python/Torch/CUDA/C++ ABI combination its own TORCH_EXTENSIONS_DIR, and ensure
the extension compiler uses Torch's C++ ABI. A fresh cache alone does not fix an
incompatible compiler default. DreamX honors explicitly enabled deterministic
algorithms by disabling cuDNN benchmarking, which can otherwise select different
convolution algorithms in separate processes. Keep references recorded under a
changed determinism policy separately, with an original-production parity check;
never overwrite existing references or relax tolerances to hide drift.
These short cases cover declared inputs and capabilities. The Lyra-2 case still disables reconstruction. Full demos, quality benchmarks, and tests of new backends remain necessary before changing integration or release status.
Docker helper
WORLDFOUNDRY_DOCKER_GPUS=none tests/run_tests_docker.sh
tests/run_tests_docker.sh tests/eval_core/test_cli_ux.py
WORLDFOUNDRY_DOCKER_EXTRAS=test,eval_core tests/run_tests_docker.sh make:test-eval-coreThe helper mounts the checkout and local caches, installs the selected extras, and runs the requested target. Its default target is the public CPU gate.
Adding tests
Place deterministic regressions in the corresponding module directory and store
small text fixtures under that suite. Keep the tests/ root for shared pytest
setup and the Docker helper. Name files test_<behavior>.py, using the model
name where relevant rather than issue IDs or review-round numbers. Cross-layer
contracts belong in tests/integration/. Test current public bindings, supported
inputs and observable outputs; remove tests for deleted implementations and replace
superseded internal-path assertions with the current contract. Preserve a failing
test when it exposes a defect in a supported integration. Move scripts that run
inference at import time into manual/ or stream/. Use environment variables for
local checkpoints. Optional development tests may skip unavailable resources;
required release gates must execute every selected case.
Bytecode, caches, logs, generated output directories, secrets, and weights
remain excluded from version control and source releases.
Preparing the extended eval-core suite
Use the activated GPU development environment with its existing Torch and Torchvision installation, then add the evaluation test dependencies:
python -m pip install -e ".[eval_core]"
make test-eval-coreNumerical regression for geometry, video and world models
The CPU gate and mocks do not prove that inference with real weights remains correct. After changing loading, preprocessing, inference, camera conversion, or export code, replay an accepted case in separate processes using tests/manual/geometry_regression.py. The matrix in tests/manual/geometry_regression_cases.json covers Depth Anything, Pi3/Pi3X, VGGT, CUT3R, LoGeR, LingBotMap, Hunyuan Mirror, HY-WorldMirror 2.0, FlashWorld, and WorldFM. Its additional Lyra-2 case validates video generation and camera trajectories only, with 3D reconstruction disabled. Prepare the model environment and local assets separately.
git worktree add --detach /tmp/worldfoundry-3d-reference <validated-revision>
export WORLDFOUNDRY_REGRESSION_CHECKPOINT_ROOT=/absolute/path/to/checkpoints
export WORLDFOUNDRY_REGRESSION_INPUT_IMAGE=/absolute/path/to/accepted-image.png
# The multiview cases use frame-0.png, frame-16.png, and frame-32.png.
export WORLDFOUNDRY_REGRESSION_INPUT_ROOT=/absolute/path/to/accepted-sequence
# Set REGRESSION_GPU_ID to an available GPU index or UUID from nvidia-smi.
export CUDA_VISIBLE_DEVICES="${REGRESSION_GPU_ID}"
# Run all three commands in the same model-specific Python environment.
python tests/manual/geometry_regression.py run \
--case tests/manual/geometry_regression_cases.json --case-id pi3x \
--source-root /tmp/worldfoundry-3d-reference --output-dir tmp/3d-replay/reference/pi3x
python tests/manual/geometry_regression.py run \
--case tests/manual/geometry_regression_cases.json --case-id pi3x \
--source-root . --output-dir tmp/3d-replay/candidate/pi3x
python tests/manual/geometry_regression.py compare \
--reference tmp/3d-replay/reference/pi3x --candidate tmp/3d-replay/candidate/pi3x \
--report tmp/3d-replay/comparison.jsonAfter replaying every affected case, audit coverage and check that the evidence still matches the current source:
make test-geometry PYTHON=/path/to/model-env/bin/python \
GEOMETRY_REFERENCE=tmp/3d-replay/reference \
GEOMETRY_CANDIDATE=tmp/3d-replay/candidateEach root must contain a run directory named for every matrix case ID. Missing cases, changed case parameters, and changed imported-source hashes fail the gate. GEOMETRY_MATRIX can select the affected case matrix; use the complete matrix for changes to shared inference components. This audits completed real inference evidence and does not replace the replay commands.
Each run records input and checkpoint SHA-256 hashes, case parameters and seed, dependency versions, CUDA/precision settings, hashes of imported source files, and raw numerical outputs. Comparison requires identical inputs, weights, parameters, and environments. It checks output fields, shapes, dtypes, finite values, and elementwise values for depth, points, confidence, masks, and cameras. Cases with save also compare exported PLY values, images, and NumPy artifacts. Missing assets, failed inference, empty outputs, NaNs, missing fields, and modified evidence fail. Reference directories are never overwritten automatically.
Comparison is exact by default. Cases can set deterministic: true to require deterministic Torch algorithms and configure cuBLAS before CUDA initialization; unsupported deterministic operations fail. The Hunyuan Mirror and WorldFM cases use this setting. WorldFM also pins the inference seed after model loading; a seed set only before loading can be affected by initialization. Its panorama uses WORLDFOUNDRY_REGRESSION_PANORAMA, and Lyra-2 uses WORLDFOUNDRY_REGRESSION_LYRA_INPUT_IMAGE.
For nondeterministic GPU operations, repeat the reference run first, measure its variation, and justify explicit floating-point --atol / --rtol settings. Boolean masks and integers remain exact. The matrix audit remains exact and does not inherit tolerances from a separate comparison report. Do not widen tolerances or replace an accepted reference with failing output to hide regressions.
Additional cases declare target (module:Class), load, call, assets, and required_outputs. ${OUTPUT_DIR} resolves to the run directory; use environment variables for other paths. extra_calls can capture raw depth, and capture_modules can capture raw forward outputs when a pipeline only returns artifact paths. Generative cases must also pin prompts, trajectories, sampling steps, and precision, and review rendered output quality.
Validation applies to specific code, weights, inputs, and environments. Changes to shared components require replays of every affected model and variant; unexecuted cases remain uncovered. GitHub CI runs the public CPU gate; real inference must run separately on a GPU host with local weights and pass make test-geometry before accepting an inference change. Numerical parity protects accepted cases against regression, but cannot prove correctness for arbitrary inputs or replace benchmarks with ground-truth depth and calibrated cameras. Accept a reference using official results, quality metrics, and human review before using it as a regression baseline.
Release gate
From the activated GPU development environment, install the declared gate dependencies before running the core commands:
python -m pip install -e ".[dev,test]"make test
make lint
make compile-eval
make cli-entrypoint-check
make cli-check
conda run -p "${WORLDFOUNDRY_UNIFIED_ENV_PREFIX}" wf evaluate --results-path tmp/results.jsonl --output-dir tmp/worldfoundry_evaluate --json
conda run -p "${WORLDFOUNDRY_UNIFIED_ENV_PREFIX}" wf zoo benchmarks --jsoncd docs/fumadocs
npm run models:check
npm run types:check
npm run build
npm start &
curl -I http://localhost:3000/docs
curl -I http://localhost:3000/zh/docsconda run -p "${WORLDFOUNDRY_UNIFIED_ENV_PREFIX}" wf zoo model-show --model-id <model-id> --include-manifest --json
conda run -p "${WORLDFOUNDRY_UNIFIED_ENV_PREFIX}" wf zoo model-download --model-id <model-id> --check-local --jsonconda run -p "${WORLDFOUNDRY_UNIFIED_ENV_PREFIX}" wf zoo benchmark-show --benchmark-id <benchmark-id> --include-spec --json
conda run -p "${WORLDFOUNDRY_UNIFIED_ENV_PREFIX}" wf zoo benchmarks --json
conda run -p "${WORLDFOUNDRY_UNIFIED_ENV_PREFIX}" wf preflight runtime --profile <benchmark-id> --manifest worldfoundry/data/benchmarks/runtime_profiles/official/<benchmark-id>.yaml --output-dir tmp/preflight/runtime/<benchmark-id> --json
conda run -p "${WORLDFOUNDRY_UNIFIED_ENV_PREFIX}" wf zoo benchmark-run --benchmark-id <benchmark-id> --mode official-validation --official-results-path <official_results.json> --generated-artifact-dir <generated_artifacts> --output-dir tmp/benchmark_zoo/official_validation/<benchmark-id> --jsonArtifact acceptance
run_manifest.json— Any evaluation run. Accept when: Command, ids, status, timestamps, counts, and output paths match the run.execution_plan.json— Runner or suite changes. Accept when: Resolved model, benchmark, metrics, and requests are deterministic.sample_ledger.jsonl— Partial-failure review. Accept when: Failed/skipped samples include visible reasons.metrics/summary.json— Metric changes. Accept when: Aggregates, failed counts, and metric keys match the expected schema.scorecard.json— Publishable evaluation evidence. Accept when: Eligibility, leaderboard state, metrics, and blockers are present.report.json— Model/benchmark validation. Accept when: Stage status, command, repo/checkpoint/dataset refs, and blockers are recorded.suite_report.json— Suite or matrix changes. Accept when: Every selected cell is pass, fail, or skipped with a reason.
Integration claim rule
integrated is reserved for a reviewable implemented support surface, not for a source URL or plan alone. For model runtimes, the architecture or runtime glue, launch path, environment contract, checkpoint/input/output contract, and minimum real inference evidence must be reviewable from the repository plus declared assets. For benchmarks, an in-tree runner, official command, isolated importer, or official-result normalizer may be integrated when its CLI path, artifact/data requirements, and scorecard output are evidenced.
Do not use integrated as a leaderboard synonym. Normalizer-only benchmark integrations must keep verification_status=normalizer_only and leaderboard_valid=false until the full official scorer or judge has run and the exact scorecard proves eligibility.
Runner evidence
- runnerRun
- Required. Runner command, generated output, scorecard, and focused regression test.
- demoVerified
- Optional gate. Official command, environment notes, generated sample, raw logs, and parity notes.
- checkpointVerified
- Optional gate. Pinned checkpoint source, revision or hash, local cache path, device, command, and expected output checks.
- benchmarkReady
- Release evidence. Normalized benchmark run with run manifest, metrics summary, report, scorecard, and no hidden sample failures.
Failure policy
- Pass — Required stages ran and produced expected artifacts. Release treatment: Can support the matching claim.
- Partial — Some stages were skipped because they require network, credentials, data, GPU, or license review. Release treatment: Usable for development, not for stronger public claims.
- Blocked — A required source, dataset, license, dependency, checkpoint, or API condition is unavailable. Release treatment: Keep the manifest blocked or planned.
- Stale — The evidence was produced from a different commit, manifest, or validation script than the change under review. Release treatment: Rerun validation before counting it.
- Runner-only — Schema and runner path pass, but official runtime did not run. Release treatment: Not leaderboard evidence.
Validation matrix
The plan matrix checks the release inventory without loading models. It resolves every model × benchmark cell of the formal docs inventory into suite_manifest.json, and validate-artifact checks that manifest against its schema.
conda run -p "${WORLDFOUNDRY_UNIFIED_ENV_PREFIX}" wf run \
--all-benchmarks \
--plan-only \
--output-dir tmp/worldfoundry_plan_matrix \
--json
conda run -p "${WORLDFOUNDRY_UNIFIED_ENV_PREFIX}" wf validate-artifact \
tmp/worldfoundry_plan_matrix/suite_manifest.json \
--kind suite-manifest \
--strict \
--jsonEach cell records a status, exit_code, and reason:
planned— The model's outputs satisfy the benchmark's inputs; the cell can execute once its assets are staged.skipped— The pairing is incompatible or the benchmark is unavailable; the reason says why.--fail-on-skippedturns skips into a failing exit code.blocked— In a plan run with--no-skip-incompatible, an incompatible pairing stays in the matrix as a blocked cell with exit code 1.failedandsucceeded— Outcomes of executed cells when the matrix runs without--plan-only.
Readiness labels come from the catalogs, not from the matrix. wf zoo models reports runnable_runner only for entries with a runner_target and integration.status: integrated, and wf zoo benchmarks derives --ready-now and --official-ready from benchmark evidence fields. Promote a catalog status only together with the executed evidence it references, and rerun that evidence when a manifest change alters what runs.
Checklist
Pick the smallest deterministic command that covers the changed contract.
Check the generated JSON artifact, not only the process exit code.
Record skipped heavy stages as explicit blockers, not as success.
Run docs build when MDX, route generation, search, i18n, layout, or generated metadata changes.
Run make lint for source and catalog checks, then make packaging-check before release to catch private files and local artifacts in tracked source or distribution artifacts.
Refresh matrix or suite reports before promoting integration status.
Rule of thumb
A model or benchmark is not benchmark-ready until the standard runner writes a fresh scorecard.json and metrics/summary.json for the claimed runner path.