Registry Mirror
Skip to content

Conversation

@timflannagan

Copy link
Copy Markdown
Contributor

Description

The generated docs/env.md lists provider credentials, OTEL settings, and controller, UI, and test knobs read from the process environment. Those names are internal wiring rather than a supported interface: users configure kagent through the Helm chart, the install CLI, and the CRDs. Telemetry already has first-class Helm settings (controller.telemetry, runtimeDefaults.telemetry), credentials flow through ModelConfig secret references, and application settings live in protobuf schemas with no env fallback.

This removes the env-docs and env-docs-check targets, the CI step that ran the check, docs/env.md, the hidden kagent env command, and the markdown and JSON exporters. The registry in go/core/pkg/env stays, since code still uses it for typed lookups. DEVELOPMENT.md and the process configuration architecture doc are updated to match.

The generated docs/env.md mostly listed provider credentials and SDK settings that are
forwarded to agent runtimes, plus controller, UI, and test knobs. Those are
implementation details. The supported user surface is the Helm chart, the install CLI,
and the CRDs, and application settings already live in protobuf schemas instead of
environment variables.

We drop the env-docs and env-docs-check Make targets, the CI step, docs/env.md, the
hidden "kagent env" command, and the markdown and JSON exporters. The registry in
go/core/pkg/env stays, since code still uses it for typed lookups.

No user-facing behavior changes.

Signed-off-by: timflannagan <timflannagan@gmail.com>
@timflannagan
timflannagan requested a review from a team as a code owner October 29, 2026 01:06
@timflannagan

Copy link
Copy Markdown
Contributor Author

Just a quick PR for some (potential) cleanup that I noticed earlier. @EItanya You're probably best to answer whether this was intentionally leftover after we cutover to the config-based approach a week or so back. My 2c, I don't think we should be maintaining a registry of envvars if they're effectively passthrough to the chart.

I'd rather model that via our supported user facing surfaces, e.g. properly helm chart values, but it's entirely (and likely) that I'm missing something here and wanted to open a quick PR to discuss.

@EItanya
EItanya added this pull request to the merge queue Oct 29, 2026
Merged via the queue into kagent-dev:main with commit 1d72cbb Oct 29, 2026
31 checks passed
adalundhe added a commit to adalundhe/kagent that referenced this pull request Oct 29, 2026
…env vars

Settings belong in the protobuf config schemas, read from Helm or the
controller configuration, rather than in process environment variables
(kagent-dev#3434). The two limits move from KAGENT_TASKSTORE_* to a
TaskStoreConfig message:

- runtimeDefaults.taskStore (Helm: config.runtimeDefaults.taskStore)
  holds operation_budget and attempt_timeout, with protovalidate bounds
  and a rule that an attempt may not exceed the budget.
- The controller compiles it into the Go ADK runtime's
  runtime.task_store only when one is set, so a runtime image that
  predates the field still loads its configuration.
- The Go ADK main passes it as app.AppConfig.TaskStore, and
  taskstore.New takes it. Absent fields keep the 90 s and 30 s defaults.

The Claude and Codex runtimes keep the defaults for now.

Verified: make proto-lint proto-generate and make proto-breaking pass;
go test -race ./adk/pkg/taskstore/ ./adk/pkg/app/
./core/internal/translator/... ./core/pkg/config/ pass; helm unittest
-f tests/controller-configmap_test.yaml passes 16 of 16; make lint
reports 0 issues; the grpcserver Postgres tests pass on Linux.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ada Lundhe <adalundhe@lundhe.audio>
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