Skip to content

repo2graph: HF_TOKEN + durable vein cache volume (GAIA prod readiness) - #737

Merged
Evanfeenstra merged 1 commit into
masterfrom
ef/repo2graph-hf-token
Aug 28, 2026
Merged

repo2graph: HF_TOKEN + durable vein cache volume (GAIA prod readiness)#737
Evanfeenstra merged 1 commit into
masterfrom
ef/repo2graph-hf-token

Conversation

@Evanfeenstra

Copy link
Copy Markdown
Collaborator

Two pieces that make the stakgraph-mcp container's GAIA benchmark harness work in prod:

  • HF_TOKEN (prior commit): threaded from the image config or host env into the container env. Required for the cold GAIA dataset bootstrap — the HF repo is gated, and the fetch is refused without credentials.
  • Vein cache volume (this commit): VEIN_CACHE_DIR=/usr/src/app/cache backed by a <name>-cache named volume. The GAIA dataset can't be baked into the image (gated terms) and a cold clone takes minutes, so without a durable volume every container recreation (e.g. auto-updater image pulls) pays the full bootstrap again — and needs the token again. With the volume it's a one-time cost.

Follows the existing sessions/artifacts/reqs volume pattern, with a matching env + binds test (cargo test --lib images::repo2graph — 6 passed).

🤖 Generated with Claude Code

VEIN_CACHE_DIR=/usr/src/app/cache backed by a <name>-cache named volume,
so the GAIA dataset checkout (gated — cannot be baked into the image;
cold clone takes minutes) plus scorer and on-demand python venv survive
container recreation. Same pattern as the sessions/artifacts/reqs vols,
with a bind + env test to match.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Evanfeenstra
Evanfeenstra merged commit 82579eb into master Aug 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant