Skip to content

Comments

track vf + env version in metadata#881

Merged
willccbb merged 5 commits intomainfrom
feat/version-info-metadata
Feb 9, 2026
Merged

track vf + env version in metadata#881
willccbb merged 5 commits intomainfrom
feat/version-info-metadata

Conversation

@mikasenghaas
Copy link
Member

@mikasenghaas mikasenghaas commented Feb 9, 2026

Description

saves vf version commit + env version and commit into the metadata of an eval run. useful to show on platform for y reasons and to match an eval run to env versions

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Test improvement

Testing

  • All existing tests pass when running uv run pytest locally.
  • New tests have been added to cover the changes

Checklist

  • My code follows the style guidelines of this project as outlined in AGENTS.md
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Additional Notes


Note

Medium Risk
Low-impact API extension, but it introduces subprocess calls to git during metadata construction which could behave differently across runtime environments and affect performance/timeouts.

Overview
Eval run metadata now includes a new version_info block containing the verifiers framework version/commit and the environment package version/commit.

This adds a VersionInfo type, populates it automatically in GenerateOutputsBuilder via a new version_utils helper (using package metadata and git rev-parse when available), updates test fixtures to include defaults, and documents the new metadata field in the reference docs.

Written by Cursor Bugbot for commit d9f2580. This will update automatically on new commits. Configure here.

mikasenghaas and others added 5 commits February 9, 2026 14:03
…racking

Adds a VersionInfo TypedDict (vf_version, vf_commit, env_version, env_commit)
to GenerateMetadata so every generate run records which verifiers framework
version and environment package version/commit produced the results.

- New verifiers/utils/version_utils.py with utilities to detect package
  versions (importlib.metadata) and git commit hashes (subprocess)
- VersionInfo populated eagerly in GenerateOutputsBuilder.__init__
- Test fixture and docs updated

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mikasenghaas mikasenghaas marked this pull request as ready for review February 9, 2026 13:26
@mikasenghaas mikasenghaas requested a review from willccbb February 9, 2026 13:26
@willccbb willccbb merged commit 951c9f8 into main Feb 9, 2026
6 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.

2 participants