Skip to content

Download the ThinkingBox benchmark from the public copy - #1747

Open
sergiopaniego wants to merge 2 commits into
mainfrom
fix/thinkingbox-data-source
Open

sergiopaniego wants to merge 2 commits into
mainfrom
fix/thinkingbox-data-source

Conversation

@sergiopaniego

@sergiopaniego sergiopaniego commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The ThinkingBox environment downloads its executable benchmark from codeload.github.com/microsoft/thinkingbox-data at the pinned commit fcaba4c, and that repository now returns 404, as does the Hugging Face microsoft/ThinkingBox-Bench dataset (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 pinned DATA_BUNDLE_SHA256 (and the manifest hashes), so it only accepts the exact thinkingbox-bench-v1.0 release: 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_sha256 skips __pycache__, .pyc and .pyo, but _extract_archive still 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-data and the HF dataset are not public at the moment (environment doc page regenerated with scripts/sync_env_docs.py --fix).

@TuhinKundu, as the author of the environment: do you know whether microsoft/thinkingbox-data and microsoft/ThinkingBox-Bench will 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

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • New environment
  • Refactoring

Alignment Checklist

Before submitting, verify:

  • I have read .claude/docs/PRINCIPLES.md and this PR aligns with our principles
  • I have checked .claude/docs/INVARIANTS.md and no invariants are violated
  • I have run /pre-submit-pr (or bash .claude/hooks/lint.sh and tests) and addressed all issues

RFC Status

  • Not required (bug fix, docs, minor refactoring)
  • RFC exists: #___
  • RFC needed (will create before merge)

Test Plan

  • Computed the environment's bundle hash (_bundle_sha256) over the content of MrSergSanch/thinkingbox-data at fcaba4c: it matches DATA_BUNDLE_SHA256 (16803d95…, 716 files).
  • Ran ensure_data() with an empty cache against the new URL: it downloads, verifies the bundle and manifest hashes and loads the 507 tasks of thinkingbox-bench-v1.0.
  • The old URL returns 404.
  • tests/envs/test_thinkingbox_env.py is skipped locally without the environment's dependencies, and runs in the test-thinkingbox-env CI 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-data and the Hugging Face viewer became unavailable by pointing DATA_ARCHIVE_URL at the public MrSergSanch/thinkingbox-data copy at the same pinned commit; pinned DATA_BUNDLE_SHA256 and manifest checks are unchanged, so only the exact thinkingbox-bench-v1.0 release is accepted.

Archive extraction now skips __pycache__, .pyc, and .pyo members 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.

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.
@burtenshaw burtenshaw added bug Something isn't working documentation Improvements or additions to documentation environment size: small Small pull request labels Nov 25, 2026 — with Cursor
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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.

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/print in CLI commands, two pre-existing TODOs) are all outside the changed files and pre-date this PR.
  • scripts/sync_env_docs.py --check: PASS — envs/thinkingbox_env/README.md and the docs/source/environments/thinkingbox.md stub stay in sync, consistent with the "self-contained environments" rule to keep doc copies aligned.
  • test-thinkingbox-env CI job: PASS (and locally skips cleanly without the optional thinkingbox dependency, 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_URL now points at MrSergSanch/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. The DATA_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 pinned thinkingbox-bench-v1.0 tarball into an openenv-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-data will 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.

Open in Web View Automation 

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}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation environment size: small Small pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants