Shiftedx commited on
Commit
335e669
·
verified ·
1 Parent(s): a642242

Fix immutable provenance flags for Shiftedx Bench v0.5.1

Browse files
CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
  # Changelog
2
 
 
 
 
 
 
3
  ## 0.5.0
4
 
5
  - Add a frozen 30-case expanded agentic matrix covering repair loops, stale evidence, structured status, parallel review, wrong-path recovery, and destructive-action refusal.
 
1
  # Changelog
2
 
3
+ ## 0.5.1
4
+
5
+ - Expose immutable model and benchmark revision flags on `run-suite` and `run-context`, matching the provenance already recorded by their manifests.
6
+ - Add a regression test preventing publication runs without CLI-accessible revision pinning.
7
+
8
  ## 0.5.0
9
 
10
  - Add a frozen 30-case expanded agentic matrix covering repair loops, stale evidence, structured status, parallel review, wrong-path recovery, and destructive-action refusal.
README.md CHANGED
@@ -32,6 +32,8 @@ Every long-context prompt is built against the model's own tokenizer and chat te
32
 
33
  ## Status
34
 
 
 
35
  Version `0.5.0` adds a frozen 30-case expanded agentic matrix, four disposable-repository repairs with hidden tests, declared JSON key/type contracts, grounded receipt projection, and repeat-trial summaries. The lightweight six-case quant gate remains unchanged. The optional **Shiftedx Agent Harness** receives no hidden expected values, uses the public profile identifier `shiftedx-harness-v1`, and never replaces the default baseline. Version 0.3's fail-closed post-publication provenance, model-card rendering, and safe routine gate through 131,072 prompt tokens remain intact. Maximum-window qualification is an explicit, separately configured run. Public leaderboard claims additionally require the release suite, rotating holdout seeds, a sanitized per-case ledger, and the policy in [docs/leaderboard-policy.md](docs/leaderboard-policy.md).
36
 
37
  This benchmark does not claim to replace RULER, HELM Long Context, NoLiMa, LiveCodeBench, BFCL, SWE-bench, or broad academic evaluations. Its distinctive purpose is paired local-deployment qualification across quality, context, multimodality, and runtime acceleration.
 
32
 
33
  ## Status
34
 
35
+ Version `0.5.1` exposes immutable Hugging Face model and benchmark revision flags on the general suite and context runners so expanded agentic and Shiftedx Agent Harness results can satisfy the same post-publication provenance gate as the lightweight quant gate.
36
+
37
  Version `0.5.0` adds a frozen 30-case expanded agentic matrix, four disposable-repository repairs with hidden tests, declared JSON key/type contracts, grounded receipt projection, and repeat-trial summaries. The lightweight six-case quant gate remains unchanged. The optional **Shiftedx Agent Harness** receives no hidden expected values, uses the public profile identifier `shiftedx-harness-v1`, and never replaces the default baseline. Version 0.3's fail-closed post-publication provenance, model-card rendering, and safe routine gate through 131,072 prompt tokens remain intact. Maximum-window qualification is an explicit, separately configured run. Public leaderboard claims additionally require the release suite, rotating holdout seeds, a sanitized per-case ledger, and the policy in [docs/leaderboard-policy.md](docs/leaderboard-policy.md).
38
 
39
  This benchmark does not claim to replace RULER, HELM Long Context, NoLiMa, LiveCodeBench, BFCL, SWE-bench, or broad academic evaluations. Its distinctive purpose is paired local-deployment qualification across quality, context, multimodality, and runtime acceleration.
pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
 
5
  [project]
6
  name = "shiftedx-bench"
7
- version = "0.5.0"
8
  description = "Reproducible quality, long-context, tool, vision, and MTPLX qualification for local language models"
9
  readme = "README.md"
10
  requires-python = ">=3.11"
 
4
 
5
  [project]
6
  name = "shiftedx-bench"
7
+ version = "0.5.1"
8
  description = "Reproducible quality, long-context, tool, vision, and MTPLX qualification for local language models"
9
  readme = "README.md"
10
  requires-python = ">=3.11"
src/shiftedx_bench/__init__.py CHANGED
@@ -3,4 +3,4 @@
3
  from .models import BenchCase, CaseResult
4
 
5
  __all__ = ["BenchCase", "CaseResult"]
6
- __version__ = "0.5.0"
 
3
  from .models import BenchCase, CaseResult
4
 
5
  __all__ = ["BenchCase", "CaseResult"]
6
+ __version__ = "0.5.1"
src/shiftedx_bench/cli.py CHANGED
@@ -387,6 +387,11 @@ def add_runtime_arguments(parser: argparse.ArgumentParser) -> None:
387
  parser.add_argument("--label", help="Stable candidate label stored in every result row")
388
  parser.add_argument("--limit", type=int)
389
  parser.add_argument("--stream", action="store_true")
 
 
 
 
 
390
 
391
 
392
  def add_tokenizer_profile_arguments(parser: argparse.ArgumentParser) -> None:
 
387
  parser.add_argument("--label", help="Stable candidate label stored in every result row")
388
  parser.add_argument("--limit", type=int)
389
  parser.add_argument("--stream", action="store_true")
390
+ parser.add_argument("--hf-repo", help="Published Hugging Face repo evaluated by this run")
391
+ parser.add_argument("--hf-revision", help="Full immutable Hugging Face revision evaluated by this run")
392
+ parser.add_argument(
393
+ "--benchmark-revision", help="Full immutable Shiftedx Bench revision used by this run"
394
+ )
395
 
396
 
397
  def add_tokenizer_profile_arguments(parser: argparse.ArgumentParser) -> None:
tests/test_runner_summary_release.py CHANGED
@@ -3,6 +3,7 @@ from __future__ import annotations
3
  from pathlib import Path
4
 
5
  from shiftedx_bench.models import BenchCase
 
6
  from shiftedx_bench.release import sanitize_manifest, sanitize_result_row, scan_public_tree
7
  from shiftedx_bench.runner import run_cases
8
  from shiftedx_bench.summary import summarize_results
@@ -143,3 +144,20 @@ def test_public_manifest_export_keeps_revisions_and_drops_host_state():
143
  "thinking": {"enabled": True},
144
  }
145
  assert "run_id" not in public and "environment" not in public and "model" not in public
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  from pathlib import Path
4
 
5
  from shiftedx_bench.models import BenchCase
6
+ from shiftedx_bench.cli import make_parser
7
  from shiftedx_bench.release import sanitize_manifest, sanitize_result_row, scan_public_tree
8
  from shiftedx_bench.runner import run_cases
9
  from shiftedx_bench.summary import summarize_results
 
144
  "thinking": {"enabled": True},
145
  }
146
  assert "run_id" not in public and "environment" not in public and "model" not in public
147
+
148
+
149
+ def test_run_suite_accepts_immutable_post_publish_provenance():
150
+ args = make_parser().parse_args([
151
+ "run-suite",
152
+ "--base-url", "http://example.invalid/v1",
153
+ "--model", "served-model",
154
+ "--output", "results.jsonl",
155
+ "--config", "configs/suites-smoke-v1.json",
156
+ "--suite", "agentic",
157
+ "--hf-repo", "Org/Model",
158
+ "--hf-revision", "a" * 40,
159
+ "--benchmark-revision", "b" * 40,
160
+ ])
161
+ assert args.hf_repo == "Org/Model"
162
+ assert args.hf_revision == "a" * 40
163
+ assert args.benchmark_revision == "b" * 40