Datasets:
Download instances/database-sqlc-4580/evaluation/contract.json from CrossSWE/CrossSWE-Bench: direct link, hf CLI and curl.
- Browser
- Download file 5.42 kB
-
https://huggingface.co/datasets/CrossSWE/CrossSWE-Bench/resolve/main/instances/database-sqlc-4580/evaluation/contract.json
- Command line
-
hf download hf://datasets/CrossSWE/CrossSWE-Bench/instances/database-sqlc-4580/evaluation/contract.json
-
curl -L -o contract.json https://huggingface.co/datasets/CrossSWE/CrossSWE-Bench/resolve/main/instances/database-sqlc-4580/evaluation/contract.json
5.42 kB
| { | |
| "schema_version": 1, | |
| "instance_id": "database-sqlc-4580", | |
| "kind": "native_contract", | |
| "network": "bridge", | |
| "repeat_count": 3, | |
| "required_regression_worlds": [ | |
| "all_buggy", | |
| "all_fixed" | |
| ], | |
| "test_files": [ | |
| { | |
| "path": "tests/native/public-source-preparation-r1/fixtures/cmd/crossrepo_fmt_contract_test.go", | |
| "sha256": "3bc1ba12927102953e47dbee15d25f20021f6c04e12d9385c3cfdad78f44fef7", | |
| "bytes": 3022, | |
| "kind": "native_test_material", | |
| "source_sha256": "3bc1ba12927102953e47dbee15d25f20021f6c04e12d9385c3cfdad78f44fef7" | |
| }, | |
| { | |
| "path": "tests/native/public-source-preparation-r1/fixtures/meyer/corpus_test.go", | |
| "sha256": "ad496e8aab4d084b98abdaa2f2c8a0dec4837bab345a2f32df97d1bef4041808", | |
| "bytes": 1193, | |
| "kind": "native_test_material", | |
| "source_sha256": "ad496e8aab4d084b98abdaa2f2c8a0dec4837bab345a2f32df97d1bef4041808" | |
| }, | |
| { | |
| "path": "tests/native/public-source-preparation-r1/fixtures/meyer/crossrepo_fmt_contract_test.go", | |
| "sha256": "3347371a01f8cb2411507b2fc5ca88a53de8c63985581ca16d4e23c7d67b43f0", | |
| "bytes": 3303, | |
| "kind": "native_test_material", | |
| "source_sha256": "3347371a01f8cb2411507b2fc5ca88a53de8c63985581ca16d4e23c7d67b43f0" | |
| }, | |
| { | |
| "path": "tests/native/public-source-preparation-r1/fixtures/meyer/parser_test.go", | |
| "sha256": "5766626c9303fa25300fc2a6661affc31f7d64da14b3938ad615180d1bf0caf0", | |
| "bytes": 3687, | |
| "kind": "native_test_material", | |
| "source_sha256": "5766626c9303fa25300fc2a6661affc31f7d64da14b3938ad615180d1bf0caf0" | |
| }, | |
| { | |
| "path": "tests/native/public-source-preparation-r1/fixtures/meyer/span_test.go", | |
| "sha256": "e0477e45ed71b142c3e38cbc8adfe801e03fd1184b3ae16f50251e4a56a9bf3c", | |
| "bytes": 1944, | |
| "kind": "native_test_material", | |
| "source_sha256": "e0477e45ed71b142c3e38cbc8adfe801e03fd1184b3ae16f50251e4a56a9bf3c" | |
| }, | |
| { | |
| "path": "tests/native/public-source-preparation-r1/fixtures/sqlite/crossrepo_fmt_contract_test.go", | |
| "sha256": "d318f25a246146ed5d8650ba7bfc81fcb186fe1854d92a4d8d71e86367a8fc6d", | |
| "bytes": 1466, | |
| "kind": "native_test_material", | |
| "source_sha256": "d318f25a246146ed5d8650ba7bfc81fcb186fe1854d92a4d8d71e86367a8fc6d" | |
| } | |
| ], | |
| "specifications": [ | |
| { | |
| "source_sha256": "df421fac52d2405278467dd768e16968395807b03000efb4af4d45b523c35097", | |
| "specification": { | |
| "expected_native_events": { | |
| "cmd": [ | |
| "TestCrossRepoSQLCFormatterContract" | |
| ], | |
| "meyer": [ | |
| "TestCrossRepoMeyerTrivia", | |
| "TestParseReader", | |
| "TestParse", | |
| "TestSpans" | |
| ], | |
| "sqlite": [ | |
| "TestCrossRepoSQLCExistingSQLiteParser" | |
| ] | |
| }, | |
| "fixture_package_paths": { | |
| "cmd": "github.com/sqlc-dev/sqlc/internal/cmd", | |
| "meyer": "github.com/sqlc-dev/meyer/parser", | |
| "sqlite": "github.com/sqlc-dev/sqlc/internal/engine/sqlite" | |
| }, | |
| "instance_id": "5915ae9e73e8" | |
| } | |
| } | |
| ], | |
| "source_record_commands": [ | |
| { | |
| "repository": "sqlc", | |
| "container_path": "/testbed/sqlc-dev/sqlc", | |
| "setup_command": "MEYER=\"$(dirname \"$PWD\")/meyer\"; go mod edit -replace=github.com/sqlc-dev/meyer=$MEYER && go mod download", | |
| "environment": { | |
| "CGO_ENABLED": "1", | |
| "GOTOOLCHAIN": "local" | |
| }, | |
| "test_cwd": null, | |
| "evaluation_setup_command": null, | |
| "evaluation_setup_cwd": null, | |
| "evaluation_setup_order": null, | |
| "evaluation_ready_command": null, | |
| "evaluation_teardown_command": null, | |
| "evaluation_config": null, | |
| "fail_to_pass": "go run ./cmd/sqlc fmt --diff -f internal/endtoend/testdata/fmt/sqlite/sqlc.yaml", | |
| "pass_to_pass": "go test ./internal/engine/sqlite" | |
| }, | |
| { | |
| "repository": "meyer", | |
| "container_path": "/testbed/sqlc-dev/meyer", | |
| "setup_command": "go test ./...", | |
| "environment": { | |
| "CGO_ENABLED": "1", | |
| "GOTOOLCHAIN": "local" | |
| }, | |
| "test_cwd": null, | |
| "evaluation_setup_command": null, | |
| "evaluation_setup_cwd": null, | |
| "evaluation_setup_order": null, | |
| "evaluation_ready_command": null, | |
| "evaluation_teardown_command": null, | |
| "evaluation_config": null, | |
| "fail_to_pass": "go test ./...", | |
| "pass_to_pass": "go test ./..." | |
| } | |
| ], | |
| "execution_policy": { | |
| "test_patches": "Apply in listed order after candidate patches, in an isolated evaluator workspace.", | |
| "commands": "Complete source setup in setup_order, then evaluator setup in evaluation_setup_order, ready checks, pass_to_pass and fail_to_pass commands; teardown in reverse evaluator setup order.", | |
| "world_placeholder": "A world labels the prepared source state for both regression and behavior commands: all_buggy for base, all_fixed for gold, candidate for submitted patches.", | |
| "success": "All required behavioral and regression tests pass; infrastructure failures are not behavioral outcomes.", | |
| "isolation": "The agent receives base sources and statement only; evaluation and reference materials remain outside its workspace." | |
| }, | |
| "availability": { | |
| "test_materials": "included", | |
| "portable_environment": "pending", | |
| "dependencies": "Some commands require external toolchains or dependency assets; complete portable recipes are a follow-up release." | |
| } | |
| } | |