You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bf92c36
Browse filesBrowse the repository at this point in the historyBrowse files
feat(tracing): stamp __commit_sha__ automatically when AGENT_COMMIT_SHA is set
The SGP cloud deploy now sets AGENT_COMMIT_SHA on agent pods from the build
record's attested source_commit (scaleapi#160083). With stamping gated on an
explicit adk.code_revision.enable() call, that env var was a silent no-op for
every agent that never opted in. Resolve it once at import instead: when the
process starts with AGENT_COMMIT_SHA set, __commit_sha__ is stamped; otherwise
nothing changes. enable() remains for agents that pass a value or want the
AGENT_VERSION fallback, and the SHA-shape guard still applies to both paths.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
0 commit comments