Repository navigation
Download the ThinkingBox benchmark from the public copy - #1747
sergiopaniego wants to merge 2 commits into
Conversation
microsoft/thinkingbox-data now returns 404, so the environment could not fetch its data. Microsoft's ThinkingBox post links the benchmark to MrSergSanch/thinkingbox-data, which has the pinned commit. The bundle and manifest hashes still pin the exact thinkingbox-bench-v1.0 release.
|
The docs for this pull request are available at https://openenv.github.io/OpenEnv/pr-preview/pr-1747/ (commit 9c6f14c). The preview may take a minute to update and is removed when the pull request closes. |
There was a problem hiding this comment.
Alignment Review Report
Automated Checks
- Lint (
usort/ruff format/ruff check): PASS — no issues in the changed files. - Debug code (
check-debug.sh): CLEAN — the hook's findings (console.print/printin CLI commands, two pre-existingTODOs) are all outside the changed files and pre-date this PR. scripts/sync_env_docs.py --check: PASS —envs/thinkingbox_env/README.mdand thedocs/source/environments/thinkingbox.mdstub stay in sync, consistent with the "self-contained environments" rule to keep doc copies aligned.test-thinkingbox-envCI job: PASS (and locally skips cleanly without the optionalthinkingboxdependency, as expected).
I independently verified the factual claims in the PR description: GET /repos/microsoft/thinkingbox-data returns 404 today, MrSergSanch/thinkingbox-data is public, and the official Hugging Face ThinkingBox blog post does link its "Benchmark" entry to github.com/MrSergSanch/thinkingbox-data at this same pinned commit (the anchor text still reads "microsoft/thinkingbox-data", apparently an un-updated label on Microsoft's side). DATA_COMMIT and DATA_BUNDLE_SHA256 in models.py are untouched by this PR — only the host in DATA_ARCHIVE_URL changes — and benchmark_data.py's _require_canonical_content already rejects any download whose bundle/manifest hash doesn't match the pinned values, so this is a well-contained fix with a real content-integrity backstop.
Open RFCs Context
No open RFC targets this environment or its data pipeline directly. The closest tangential context is RFC 011 (ard-catalog-discovery, Draft, @thegovind), which is building a general discovery spec where owner/source is explicitly "a source-maintainer/owner claim... not proof of copyright ownership, publisher authority, or endorsement." That framing is a useful lens for this PR's situation but RFC 011 doesn't cover executable-environment data downloads, so I'm not flagging a hard conflict — just noting the overlap in case it informs how source-pinning conventions evolve.
Tier 1: Fixes Required
None — no lint failures, no debug code, no missing imports/types, no credential exposure introduced by this diff.
Tier 2: Alignment Discussion
Principle Conflicts
ALIGNMENT FLAG: Pinning the canonical executable benchmark source to an individual contributor's personal GitHub account
- Principle/RFC at stake: "Follow the Hugging Face ecosystem" (
CLAUDE.md) and the provenance/owner-claim framing introduced in Draft RFC 011 - The concern:
DATA_ARCHIVE_URLnow points atMrSergSanch/thinkingbox-data— a repo owned by an unaffiliated individual, not a fork of (and not organizationally linked to)microsoft/thinkingbox-data— rather than an org-controlled or Hub-hosted location. TheDATA_BUNDLE_SHA256/manifest check makes this safe against content tampering for the pinned release, but it doesn't address availability/governance risk: that account could rename, go private, or delete the repo at any time, silently breaking the env for everyone (same failure mode that triggered this PR). Given OpenEnv's stated preference to lean on Hugging Face Hub infra where possible, mirroring the pinnedthinkingbox-bench-v1.0tarball into anopenenv-controlled HF dataset repo (hash-verified once) might be a more durable fix than depending on a third party's GitHub account indefinitely. - Note: the PR author already raised this exact sustainability question to @TuhinKundu (the environment's original author) in the PR description, asking whether
microsoft/thinkingbox-datawill become public again — this flag is just surfacing it for explicit maintainer sign-off before merge, not blocking the fix itself (the environment is currently broken, and this restores it with verification intact). - Suggested reviewer: @TuhinKundu (already tagged), @thegovind (RFC 011 author, provenance/source-ownership context)
RFC Conflicts
None identified — RFC 011 is tangential context only (see above), not a direct conflict.
Summary
- 0 mechanical issues to fix
- 1 alignment point for human review (data-source governance/durability; already partly raised by the author)
- 0 RFC conflicts to discuss
Overall: this is a well-verified, minimally-scoped fix for a genuinely broken environment (confirmed the old URL 404s and the new one is hash-validated end to end), with docs kept in sync and CI green. The one open question is whether the team wants to accept a third-party individual's GitHub repo as the long-term canonical source, or treat this as a stopgap pending either the official repo returning or an OpenEnv-controlled mirror.
Sent by Cursor Automation: Pre-review
| f"https://codeload.github.com/microsoft/thinkingbox-data/tar.gz/{DATA_COMMIT}" | ||
| # microsoft/thinkingbox-data is not public. This is the copy Microsoft's | ||
| # ThinkingBox post links, DATA_BUNDLE_SHA256 checks it is the pinned release. | ||
| f"https://codeload.github.com/MrSergSanch/thinkingbox-data/tar.gz/{DATA_COMMIT}" |
There was a problem hiding this comment.
Confirmed: microsoft/thinkingbox-data 404s and MrSergSanch/thinkingbox-data is public at the same pinned commit, matching the official HF ThinkingBox blog post's (mislabeled) link. DATA_BUNDLE_SHA256 below is unchanged and still gates content, so this only swaps the host, not the trust model for content integrity.
Worth a maintainer sign-off that a personal account is acceptable as the long-term source here vs. a stopgap — see the alignment flag in the top-level review for details.
_bundle_sha256 ignores __pycache__, .pyc and .pyo, but extraction wrote them to the cache, so an archive could carry unverified bytecode next to the bundled servers. Extraction now skips them, so everything it writes is covered by the pinned hash.


Summary
The ThinkingBox environment downloads its executable benchmark from
codeload.github.com/microsoft/thinkingbox-dataat the pinned commitfcaba4c, and that repository now returns 404, as does the Hugging Facemicrosoft/ThinkingBox-Benchdataset (401). So the environment cannot fetch its data at the moment.Microsoft's ThinkingBox post links the benchmark repository to
MrSergSanch/thinkingbox-data, which is public and has the pinned commit. This PR downloads from there. The environment still verifies the bundle against the pinnedDATA_BUNDLE_SHA256(and the manifest hashes), so it only accepts the exactthinkingbox-bench-v1.0release: if that copy changed or disappeared, the download would fail instead of loading other data.It also closes a gap the switch made more relevant:
_bundle_sha256skips__pycache__,.pycand.pyo, but_extract_archivestill wrote them to the cache, so an archive could carry unverified bytecode next to the bundled servers. Extraction now skips them, so everything it writes is covered by the pinned hash (test_archive_extraction_skips_bytecode_the_bundle_hash_ignores, which fails without the fix).The README now says where the data comes from and that
microsoft/thinkingbox-dataand the HF dataset are not public at the moment (environment doc page regenerated withscripts/sync_env_docs.py --fix).@TuhinKundu, as the author of the environment: do you know whether
microsoft/thinkingbox-dataandmicrosoft/ThinkingBox-Benchwill be public again? If so, we can switch the download back to the official source, the pinned hash keeps working either way.Type of Change
Alignment Checklist
Before submitting, verify:
.claude/docs/PRINCIPLES.mdand this PR aligns with our principles.claude/docs/INVARIANTS.mdand no invariants are violated/pre-submit-pr(orbash .claude/hooks/lint.shand tests) and addressed all issuesRFC Status
Test Plan
_bundle_sha256) over the content ofMrSergSanch/thinkingbox-dataatfcaba4c: it matchesDATA_BUNDLE_SHA256(16803d95…, 716 files).ensure_data()with an empty cache against the new URL: it downloads, verifies the bundle and manifest hashes and loads the 507 tasks ofthinkingbox-bench-v1.0.tests/envs/test_thinkingbox_env.pyis skipped locally without the environment's dependencies, and runs in thetest-thinkingbox-envCI jobs.Claude Code Review
Changes the archive URL and README only. The integrity check (pinned commit, bundle and manifest hashes) is unchanged, so the environment cannot load data other than the pinned release. No principle, invariant or RFC is affected.
Note
Medium Risk
Changes where benchmark data is fetched and what files extraction writes next to server code; risk is reduced because the pinned bundle hash must still match before use.
Overview
Restores ThinkingBox benchmark downloads after
microsoft/thinkingbox-dataand the Hugging Face viewer became unavailable by pointingDATA_ARCHIVE_URLat the publicMrSergSanch/thinkingbox-datacopy at the same pinned commit; pinnedDATA_BUNDLE_SHA256and manifest checks are unchanged, so only the exactthinkingbox-bench-v1.0release is accepted.Archive extraction now skips
__pycache__,.pyc, and.pyomembers so nothing lands on disk outside the bundle hash—closing a path where unverified bytecode could sit next to bundled servers. Docs (environment README and generated thinkingbox page) cite the new source and note the official repos are not public right now.A new test asserts bytecode members are not extracted.
Reviewed by Cursor Bugbot for commit 9c6f14c. Bugbot is set up for automated code reviews on this repo. Configure here.