{
  "schema": "calcit-calx-harness-bootstrap/1",
  "status": "experimental-benchmark",
  "tracking": {
    "parent": "calcit-lang/calcit#547",
    "contract": "calcit-lang/calcit#557",
    "bootstrap": "calcit-lang/calcit#558",
    "cutover": "calcit-lang/calcit#559"
  },
  "targetRepository": {
    "name": "calcit-lang/calcit-calx-bench",
    "confirmed": true,
    "existingCalcitCalxRole": "native-ffi-demo-do-not-absorb-harness"
  },
  "sourcesOfTruth": {
    "loweringAndCorrectness": "calcit-lang/calcit",
    "vmSemantics": "calcit-lang/calx-vm",
    "measurementPolicy": "standalone-harness-after-bootstrap"
  },
  "revisionPolicy": {
    "calcit": "exact-commit-or-tag-required",
    "calxVm": "resolved-version-and-source-required",
    "adapterStability": "internal-revision-pinned-no-semver-promise"
  },
  "move": [
    { "path": "src/bin/calx_bench.rs", "role": "single-case-runner" },
    { "path": "scripts/bench-calx-e2e.mjs", "role": "suite-orchestration" },
    { "path": "scripts/bench-calx-settings.mjs", "role": "settings-policy" },
    { "path": "scripts/bench-calx-settings.test.mjs", "role": "settings-tests" },
    { "path": "docs/run/calx-benchmark.md", "role": "methodology" },
    { "path": "benchmarks/calx/README.md", "role": "archive-index" },
    { "path": "benchmarks/calx/20260831-macos-arm64.json", "role": "immutable-raw-report" }
  ],
  "copyWithProvenance": [
    { "path": "tests/fixtures/calx/scalar-kernels.cirru", "coreRemainsAuthoritative": true }
  ],
  "stayInCore": [
    "src/codegen/calx.rs",
    "src/codegen/calx/benchmark_session.rs",
    "src/codegen/calx/lowering.rs",
    "src/program/tests.rs",
    "tests/fixtures/calx/scalar-kernels.cirru",
    "tests/fixtures/calx/scalar-kernels.golden.txt",
    "tests/fixtures/calx/generated-program.golden.txt",
    "tests/fixtures/calx/fallback.cirru",
    "tests/fixtures/calx/fallback.golden.txt",
    "tests/fixtures/calx/typed-imports.cirru",
    "tests/fixtures/calx/trap.golden.txt"
  ],
  "reportContract": {
    "caseSchema": "calcit-calx-benchmark/2",
    "suiteSchema": "calcit-calx-benchmark-suite/2",
    "successStdout": "exactly-one-json-value",
    "failure": "stderr-and-nonzero-exit",
    "preserveRawSamples": true,
    "statistics": ["median", "median-absolute-deviation"],
    "absoluteCiThresholds": false
  },
  "adapter": {
    "module": "calcit::codegen::calx::benchmark_session",
    "edition": "calcit-calx-benchmark-session/1",
    "coreTransitionalRunnerUsesAdapter": true,
    "requiredOperations": [
      "install-explicit-source-corpus",
      "preprocess-to-immutable-program-handle",
      "resolve-cached-calcit-callable",
      "compile-measured-calx-kernel",
      "run-prepared-calcit-callable",
      "run-strict-calx-kernel",
      "read-stage-timings-and-program-counts"
    ],
    "forbidden": [
      "mutable-global-access",
      "implicit-source-installation",
      "automatic-effectful-fallback",
      "benchmark-policy-inside-core"
    ]
  },
  "migrationTests": {
    "rust": 3,
    "node": 4,
    "quickSmoke": "CALX_BENCH_QUICK=1 CALX_BENCH_SAMPLES=1 yarn bench-calx-e2e",
    "fullMatrix": "yarn bench-calx-e2e"
  }
}
