Skip to content

chore: release main - #520

Open
stainless-app[bot] wants to merge 6 commits into
mainfrom
release-please--branches--main--changes--next
Open

stainless-app[bot] wants to merge 6 commits into
mainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app

@stainless-app stainless-app Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

✨ Stainless prepared a new release

agentex-client: 0.27.0

0.27.0 (2026-09-16)

Full Changelog: agentex-client-v0.26.0...agentex-client-v0.27.0

Features

  • cli: stamp global.agent.version from the image tag on helm deploys (#504) (a90f622)
  • obs: wire sgp-obs from the SDK for traces, metrics and logs (#518) (d88fac6)
  • registration: report the agent's commit and source repo at registration (#508) (94335d7)
  • tracing: stamp commit_sha automatically when AGENT_COMMIT_SHA is set (#507) (53ab900)

Reverts

agentex-sdk: 0.27.0

0.27.0 (2026-09-16)

Full Changelog: agentex-sdk-v0.26.0...agentex-sdk-v0.27.0

Features

  • obs: wire sgp-obs from the SDK for traces, metrics and logs (#518) (d88fac6)

Reverts


This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions

RetriggerConfidence Score: 4/5

The PR is not ready to merge because the earlier tracing startup bug remains open.

Fix All in CursorFindings

  1. P1 enable from environment runs once when code revision is imported. Normal worker startup imports register agent before EnvironmentVariables.refresh loads supported .env and .env.local files. A valid AGENT COMMIT SHA from those files reaches registration but never enables tracing. Run the hook after refresh, or read the value lazily.
Fix with agent prompt
### Issue 1
src/agentex/lib/core/tracing/code_revision.py:undefined-124
`_enable_from_environment()` runs once when `code_revision` is imported. Normal worker startup imports `register_agent` before `EnvironmentVariables.refresh()` loads supported `.env` and `.env.local` files. A valid `AGENT_COMMIT_SHA` from those files reaches registration but never enables tracing. Run the hook after refresh, or read the value lazily.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

This release makes agent deployments carry their image version and source details automatically. It also publishes version 0.27.0 for both packages and records the included changes in each changelog.

  • Helm deployments now derive the agent version from the final image tag.
  • Tracing and registration can report the agent's commit and source repository.
  • Both packages move from 0.26.0 to 0.27.0.
Diagram
sequenceDiagram
    participant U as CLI user
    participant C as Deploy CLI
    participant M as Config merge
    participant H as Helm
    participant A as Agent
    participant R as Registration API
    participant T as SGP tracing
    U->>C: Deploy manifest and environment
    C->>M: Merge image, env, secrets, and Helm overrides
    M->>M: Set global.agent.version from final image tag
    M->>H: Install or upgrade release
    H->>A: Start with AGENT_VERSION and provenance env
    A->>A: Refresh supported env files
    A->>R: Register commit and source repo
    Note over A,T: Commit tracing only turns on if AGENT_COMMIT_SHA existed when code_revision was imported
    A->>T: Send spans with commit when enabled
Loading

Reviews (4) · Last reviewed commit: "chore: release main"

max-parke-scale and others added 2 commits September 15, 2026 16:54
…stration (#508)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
…HA is set (#507)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 4f49802 to 6efe231 Compare September 15, 2026 20:55
enable()


_enable_from_environment()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 _enable_from_environment() runs once when code_revision is imported. Normal worker startup imports register_agent before EnvironmentVariables.refresh() loads supported .env and .env.local files. A valid AGENT_COMMIT_SHA from those files reaches registration but never enables tracing. Run the hook after refresh, or read the value lazily.

Knowledge Base Used:

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/agentex/lib/core/tracing/code_revision.py
Line: 124

Comment:
`_enable_from_environment()` runs once when `code_revision` is imported. Normal worker startup imports `register_agent` before `EnvironmentVariables.refresh()` loads supported `.env` and `.env.local` files. A valid `AGENT_COMMIT_SHA` from those files reaches registration but never enables tracing. Run the hook after refresh, or read the value lazily.

**Knowledge Base Used:**
- [Observability](https://app.greptile.com/scale-ai/-/custom-context/knowledge-base/scaleapi/scale-agentex-python/-/docs/observability.md)
- [Agent runtime](https://app.greptile.com/scale-ai/-/custom-context/knowledge-base/scaleapi/scale-agentex-python/-/docs/agent-runtime.md)

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Fix in Cursor Fix in Claude Code Fix in Codex

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 6efe231 to 8b60a57 Compare September 15, 2026 22:21
Comment thread src/agentex/lib/sdk/fastacp/base/base_acp_server.py Outdated
Comment thread src/agentex/lib/core/observability/sgp_obs_setup.py Outdated
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 8b60a57 to ba336f3 Compare September 16, 2026 04:11
@stephen-wang24
stephen-wang24 marked this pull request as ready for review September 16, 2026 04:13
max-parke-scale and others added 2 commits September 16, 2026 10:58
…oys (#504)

Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from ba336f3 to 3f9fbc2 Compare September 16, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants