Skip to content

feat: stamp gateway attribution metadata#6

Merged
haasonsaas merged 1 commit intomainfrom
harden/shim-attribution-20260503
May 3, 2026
Merged

feat: stamp gateway attribution metadata#6
haasonsaas merged 1 commit intomainfrom
harden/shim-attribution-20260503

Conversation

@haasonsaas
Copy link
Copy Markdown
Contributor

Summary

  • add team, workload, session, and evidence attribution metadata to the Google Generative AI shim
  • pass the new attribution options through configure() into default metadata
  • keep org/principal/trace behavior backward compatible

Tests

  • .venv/bin/python -m pytest tests

@cursor
Copy link
Copy Markdown

cursor Bot commented May 3, 2026

PR Summary

Low Risk
Low risk: additive metadata/header stamping only, with tests updated; behavior should remain backward compatible unless downstream systems are sensitive to new headers.

Overview
Adds optional attribution fields (team_id, workload, session_id, evidence_id) to build_evalops_metadata, sourcing from args or EVALOPS_* env vars and emitting corresponding x-evalops-* headers.

Plumbs the same options through configure() so they are included in the Google Generative AI client default_metadata, and updates tests to assert the new headers are stamped.

Reviewed by Cursor Bugbot for commit 7cb0481. Bugbot is set up for automated code reviews on this repo. Configure here.

@haasonsaas haasonsaas merged commit 1c8036f into main May 3, 2026
5 checks passed
@haasonsaas haasonsaas deleted the harden/shim-attribution-20260503 branch May 3, 2026 05:15
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