Skip to content

docs: record client lifetimes in AGENTS.md and point at the contributing guide - #4197

Open
IsmaelMartinez wants to merge 1 commit into
docker:mainfrom
IsmaelMartinez:docs/agents-md-dedupe
Open

docs: record client lifetimes in AGENTS.md and point at the contributing guide#4197
IsmaelMartinez wants to merge 1 commit into
docker:mainfrom
IsmaelMartinez:docs/agents-md-dedupe

Conversation

@IsmaelMartinez

@IsmaelMartinez IsmaelMartinez commented Sep 8, 2026

Copy link
Copy Markdown

Two small things, both prompted by getting them wrong in #4190.

Client lifetimes. Provider clients are built when a team loads. serve api loads per session, but serve a2a and serve mcp load once at startup and reuse those clients for every conversation they serve. That is not visible from the provider code, and it is the difference between a per-conversation value and a per-deployment one. #4190 shipped the wrong version of exactly that until @yunus25jmi1 caught it. The note also points at httpclient.SessionIDFromContext, which already carries the session and is easy to miss.

Duplication. The command table here repeats the contributing guide, and the two have already drifted: this file says to sign with git commit -S, which a bot enforces, while that page says DCO git commit -s, which nothing checks and one of the last thirty commits carries. Rather than copy more, this names that page as canonical. Reconciling the signing advice itself is left alone deliberately, since it is a maintainer call about which requirement is real.

I have read access only, so treat this as a suggestion rather than a decision.

🤖 Generated with Claude Code

…ing guide

Provider clients outlive a conversation in serve a2a and serve mcp, which is
not visible from the provider code. The command table also duplicates the
contributing guide, so name that page as canonical rather than copying it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qyjba1txhq3QsrpcGUt3FM
@aheritier aheritier added area/docs Documentation changes kind/docs Documentation-only changes labels Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs Documentation changes kind/docs Documentation-only changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants