Skip to content

chore: release main - #520

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

stainless-app[bot] wants to merge 5 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

  • 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 safe to merge yet because span stamping still misses AGENT_COMMIT_SHA loaded from .env.

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 build provenance automatic for tracing and registration. It also publishes both packages as version 0.27.0 and records the release notes.

  • Stamps a valid AGENT_COMMIT_SHA on spans when the process starts.
  • Sends the agent commit and cleaned source repository with registration metadata.
  • Keeps secrets out of repository values by removing credentials, queries, and fragments.
  • Updates package versions, manifests, generated version data, and changelogs to 0.27.0.
Diagram
sequenceDiagram
    participant Process
    participant Revision as code_revision
    participant Env as EnvironmentVariables
    participant Register as register_agent
    participant API as AgentEx API
    participant Span as tracing processor
    Process->>Revision: import module
    Revision->>Revision: read process AGENT_COMMIT_SHA
    Process->>Env: refresh()
    Env->>Env: load .env files in development
    Env-->>Register: commit and source repo
    Register->>Register: check SHA and normalize repo
    Register->>API: POST /agents/register with metadata
    Process->>Span: emit span
    Revision-->>Span: cached commit or none
Loading

Reviews (3) · 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
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