Test native Gaussian fallback contract
Browse files
tests/test_manifest_validator.py
CHANGED
|
@@ -85,3 +85,27 @@ def test_manifest_validator_accepts_consistent_v041_direct_da3_run(tmp_path):
|
|
| 85 |
encoding="utf-8",
|
| 86 |
)
|
| 87 |
assert validate_manifest(manifest) == (True, [])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
encoding="utf-8",
|
| 86 |
)
|
| 87 |
assert validate_manifest(manifest) == (True, [])
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
def test_manifest_validator_rejects_direct_claim_with_fallback_error(tmp_path):
|
| 91 |
+
artifact = tmp_path / "artifact.bin"
|
| 92 |
+
artifact.write_bytes(b"fallback artifact")
|
| 93 |
+
manifest = tmp_path / "simam3d_direct_error.json"
|
| 94 |
+
manifest.write_text(
|
| 95 |
+
'{"project":"Simam3D","version":"0.4.5",'
|
| 96 |
+
'"manifest_schema_version":3,"view_count":1,'
|
| 97 |
+
'"claims":{"observed_input_geometry":true,"generated_novel_views":false,'
|
| 98 |
+
'"metric_scale_reconstruction":false,"learned_gaussian_optimization":false,'
|
| 99 |
+
'"direct_gaussian_prediction":true,"reveal_content_is_verified":false},'
|
| 100 |
+
'"metrics":{"input_diversity":{"input_view_count":1,'
|
| 101 |
+
'"unique_input_view_count":1,"duplicate_input_view_count":0,'
|
| 102 |
+
'"near_duplicate_pair_count":0,"input_diversity_status":"distinct_inputs"},'
|
| 103 |
+
'"fusion":{"support_status":"single_view_baseline"},'
|
| 104 |
+
'"pose_source":"depth_anything_3","gaussian_source":"da3_direct",'
|
| 105 |
+
'"direct_gaussian_exported_count":1,"direct_gaussian_error":"late failure"},'
|
| 106 |
+
f'"outputs":["{artifact.name}"],"output_sha256":{{"{artifact.name}":"{file_sha256(artifact)}"}}}}',
|
| 107 |
+
encoding="utf-8",
|
| 108 |
+
)
|
| 109 |
+
valid, errors = validate_manifest(manifest)
|
| 110 |
+
assert not valid
|
| 111 |
+
assert any("cannot include an export error" in error for error in errors)
|