+| `chore(deps): bump google.golang.org/adk/v2 to v2.3.0`, `feat(adk): honour context compaction in the Go runtime`, `feat(api): add spec.context.compaction to the v1alpha3 AgentTemplate` and `test(e2e): cover context compaction with mockllm as the summarizer` | after prompt caching (the row above) the remaining cost of a long agent turn is the model's first pass over *new* tokens: every tool result stayed in the history verbatim and the Go runtime never compacted it, because the v1alpha3 `AgentTemplate` had no compaction field and the Go ADK ignored `context_config.compaction` (the Python runtime honours it) — gazelle 2026-09-15: the status question's ten model calls grew from 6 k to 62 k input tokens, 9.2 s to the first token after 16 k new tool-result tokens and 18.8 s after 21.9 k, model time 59 of the turn's 68 s (giantswarm/giantswarm#37792). `google.golang.org/adk/v2` v2.3.0 brings native `session/compaction` — a sliding window over whole invocations, and tail retention inside an invocation: before a model call, once the prompt (the last reported prompt token count plus an estimate of what was appended since) passes `tokenThreshold`, everything but the last `eventRetentionSize` events and the turn's own question is replaced by one rolling LLM summary — and moves the OTel exporter and contrib set to v1.45.0 / v0.21.0 / v0.70.0 (no fork code changed for the bump). `spec.context.compaction` on the `AgentTemplate` (`compactionInterval`/`overlapSize`, `tokenThreshold`/`eventRetentionSize`, an optional `summarizer.modelConfig` and `promptTemplate`; CEL refuses the half configurations at admission) is compiled by the kagent and BYO compilers into `config.json`, which the Go runtime translates into the ADK runner's `compaction.Config` (a half-configured setting warns and is ignored, as on the Python runtime; a custom prompt keeps the namespaced tool names, kagent-dev/kagent#1907; the startup log reads `context compaction enabled …` or `context compaction not configured`). Off unless a template sets it, as upstream; the platform's agent chart (giantswarm/agent) sets the default every platform agent runs with | kagent-dev/kagent#2790 — **open** (`29fe49ca`, `5e8b466a`, `d734c31b`, `e5238f0f`), carried as a cherry-pick until upstream merges it and the next re-pin drops it; giantswarm/giantswarm#37742 row 7 |
0 commit comments