Skip to content

docs(cli,a2a): document A2A agent liveness probes - #425

Merged
edenreich merged 2 commits into
mainfrom
fix/issue-424
Jul 18, 2026
Merged

edenreich merged 2 commits into
mainfrom
fix/issue-424

Conversation

@inference-gateway-maintainer

@inference-gateway-maintainer inference-gateway-maintainer Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #424

Summary

Documents the recurring A2A agent liveness probes shipped in inference-gateway/cli#936 (resolves inference-gateway/cli#932). The CLI now re-probes configured A2A agents for the lifetime of the session instead of checking them only once at startup, so the A2A: X/Y status indicator and the /a2a view stay live - agents that recover turn green and agents that fail mid-session turn red.

Changes

  • cli.md - documents liveness_probe_enabled / liveness_probe_interval in the CLI configuration reference (defaults and INFER_A2A_* env var overrides), updates the A2A: X/Y indicator description, and expands the /a2a view section to note the live status.
  • a2a.md - adds an "A2A Liveness Probes" section covering the recurring probe behavior for external and local agents, the A2A: X/Y indicator, and a config example for disabling probes or tuning the interval.

Probe behavior documented

  • External agents (a2a.agents URLs) are probed via their agent card (/.well-known/agent-card.json); local Docker agents via GET <url>/health.
  • Status updates are emitted only on state changes, and probes shut down cleanly with the session.
  • liveness_probe_enabled: false restores the old one-shot startup check.

Acceptance criteria

  • liveness_probe_enabled / liveness_probe_interval documented in cli.md with defaults and env var names
  • a2a.md describes recurring probe behavior for external and local agents, the A2A: X/Y indicator, and the /a2a view staying live
  • Config example shows disabling the probes and tuning the interval

Checks

CI is green on the branch: Build, Lint, and Docs drift all pass.

@edenreich

Copy link
Copy Markdown
Contributor

@claude Can you continue on this? I reached max usage with ollama_cloud - please finalize this.

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @edenreich's task in 6m 19s —— View job


Finalized PR #425 (resolves #424)

Picked up the salvaged draft, verified every technical claim against the now-merged upstream inference-gateway/cli#936, fixed one factual error, and confirmed the docs build clean. The PR is now marked ready for review.

What I found and fixed

The salvaged docs said external agents are probed at /.well-known/agent.json. That is wrong: the CLI probes external agents via the Go ADK client's GetAgentCard() (agent_manager.go:201), which hits /.well-known/agent-card.json (adk/client/client.go:600). Corrected in both a2a.md and cli.md.

Everything else verified accurate (no change needed)

Claim Verified against
liveness_probe_enabled default true, liveness_probe_interval default 30 config.go A2AConfig + defaults
Env vars INFER_A2A_LIVENESS_PROBE_ENABLED / INFER_A2A_LIVENESS_PROBE_INTERVAL standard INFER_ scheme (issue body)
Local Docker agents probed via GET <url>/health agent_manager.go:310
State-change-only status updates, "Recovered" detail, clean shutdown PR #936 description + code

Acceptance criteria (all met)

  • liveness_probe_enabled / liveness_probe_interval documented in cli.md with defaults + env var names
  • a2a.md describes recurring probe behavior for external and local agents, the A2A: X/Y indicator, and the /a2a view staying live
  • Config example shows disabling the probes and tuning the interval

Checks

  • bun run format:check - pass
  • bun run lint:md - pass
  • bun run build - pass (VitePress dead-link check green, so the #a2a-liveness-probes cross-links resolve)

Note on duplication

The config block and settings table appear in both a2a.md and cli.md. I left this intentional: issue #424 scopes both pages, and each targets a different reader (A2A guide vs CLI reference), so keeping each page self-contained is the right call rather than cross-linking one to the other.

@inference-gateway-maintainer
inference-gateway-maintainer Bot marked this pull request as ready for review July 18, 2026 21:16
@inference-gateway-maintainer
inference-gateway-maintainer Bot requested a review from a team as a code owner July 18, 2026 21:16
@edenreich

Copy link
Copy Markdown
Contributor

@claude Please update the title and the body of this PR.

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor Author

Claude finished @edenreich's task in 2m 53s —— View job


Updated PR title and body

The old title (fix: resolve #424 (salvaged)) and the auto-generated salvage body did not describe the change. Both now reflect what the PR actually does.

New title (matches this repo's docs(scope): convention):

docs(cli,a2a): document A2A agent liveness probes

New body summarizes the real change - documenting the recurring A2A liveness probes from inference-gateway/cli#936, the two files touched (cli.md config reference + a2a.md guide), the probe behavior (agent-card vs /health, state-change-only updates, liveness_probe_enabled: false to opt out), and the acceptance criteria. Kept Resolves #424 so the issue auto-closes on merge.

CI on the branch is green (Build, Lint, Docs drift all pass). No file changes were needed - this was a metadata-only update.

@inference-gateway-maintainer inference-gateway-maintainer Bot changed the title fix: resolve #424 (salvaged) docs(cli,a2a): document A2A agent liveness probes Jul 18, 2026
@edenreich
edenreich merged commit 5844ea9 into main Jul 18, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-424 branch July 18, 2026 21:23
inference-gateway-releaser Bot added a commit that referenced this pull request Jul 18, 2026
## [0.9.2](0.9.1...0.9.2) (2026-07-18)

### 📚 Documentation

* add CLI telemetry documentation for traces, logs, and metrics ([#392](#392)) ([f8bfcdc](f8bfcdc))
* **adk:** align telemetry docs with A2A_TELEMETRY_ENABLE as single trace gate ([#403](#403)) ([fea405f](fea405f)), references [inference-gateway/adk#234](inference-gateway/adk#234)
* **adl-cli,adk:** document OTel service.name/service.version from ADL manifest metadata ([#408](#408)) ([be1b66e](be1b66e))
* **adl-cli:** move generated skills to .agents/skills layout ([#421](#421)) ([2e4e925](2e4e925))
* align ADK telemetry config with OpenTelemetry ([#400](#400)) ([aa0a862](aa0a862))
* **cli-channels:** document channels-manager OTLP telemetry setup ([#415](#415)) ([283ddff](283ddff))
* **cli,a2a:** document A2A agent liveness probes ([#425](#425)) ([5844ea9](5844ea9)), closes [#424](#424)
* **cli:** document distributed tracing - infer traces, telemetry.receiver_address, a2a-traces example ([#406](#406)) ([4fc24f5](4fc24f5)), references [inference-gateway/cli#909](inference-gateway/cli#909)
* document /tasks output panel and agent inherit_mock ([#388](#388)) ([7f3d72b](7f3d72b))
* document built-in skills and tmux skill ([#386](#386)) ([fc013ab](fc013ab))
* document extended spec.telemetry otel exporter fields ([#399](#399)) ([712f6de](712f6de))
* document infer traces command and /traces shortcut ([#393](#393)) ([b938a19](b938a19))
* document infer-action workflow for infer orchestrator ([#396](#396)) ([4e1d792](4e1d792))
* document W3C trace propagation and OTLP span ingestion ([#394](#394)) ([f26494c](f26494c))
* **llamacpp:** add llama.cpp provider documentation ([#417](#417)) ([356f9ac](356f9ac))
* note Go SDK retry cancellation preserves HTTP error ([#382](#382)) ([e39bcab](e39bcab))
* **observability:** document OTEL_METRICS_EXPORTER and Prometheus pull env vars ([#412](#412)) ([b450177](b450177)), closes [#409](#409)
* **operator:** add Orchestrator CRD telemetry reference ([#413](#413)) ([8210e06](8210e06))
* **rust-adk:** document A2A_OTEL_TRACES_EXPORTER trace gating ([#407](#407)) ([29c5f67](29c5f67))
* **sdks:** add llamacpp to supported providers list ([#422](#422)) ([ed2a466](ed2a466))
* **sdks:** document python responses api and zai provider ([#423](#423)) ([c5b608e](c5b608e))

### 🔧 Miscellaneous

* **deps-dev:** bump the bun group with 2 updates ([#384](#384)) ([fc813d8](fc813d8))
* **deps:** bump infer CLI v0.141.0 -> v0.147.1 ([#411](#411)) ([03b6342](03b6342))
* **release:** update GitHub App credentials to use RELEASER_APP_ID and RELEASER_APP_PRIVATE_KEY ([4275006](4275006))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.9.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] Document A2A agent liveness probe configuration and behavior [FEATURE] Add recurring liveness probes for A2A agents (remote and local)

1 participant