You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] ARTIFACTS_RETENTION_MAX_ARTIFACTS is now a per-context cap #942
User-facing behaviour change in the Go ADK: ARTIFACTS_RETENTION_MAX_ARTIFACTS now does something. It used to keep at most N files per {contextId}/{artifactId} location, which never removed anything because each artifact stores exactly one file under a freshly generated ID. It is now a per-context cap: each cleanup run keeps the newest N artifacts under {contextId}/ and deletes the rest.
Affected pages: any page documenting ADK artifact configuration or retention - the ARTIFACTS_RETENTION_* env var table and the artifacts guide. Note that the cap is enforced on the ARTIFACTS_RETENTION_CLEANUP_INTERVAL schedule, not at artifact creation, so a context can exceed the cap between runs.
Acceptance Criteria
ARTIFACTS_RETENTION_MAX_ARTIFACTS described as a per-context cap, oldest artifacts removed first, 0 = unlimited
Any wording saying the setting is a per-task cap or has no effect is removed
Enforcement timing (background cleanup interval) stated alongside the cap
The Go ADK page had no artifact retention documentation at all, so there was no "per-task cap" or "has no effect" wording to remove - only a gap. Added an Artifact retention subsection to the Artifacts section of adk.md:
ARTIFACTS_RETENTION_* table (defaults 5 / 168h / 24h), with ARTIFACTS_RETENTION_MAX_ARTIFACTS described as artifacts kept per context, oldest deleted first, 0 = unlimited.
Enforcement timing stated explicitly: both caps run on the ARTIFACTS_RETENTION_CLEANUP_INTERVAL schedule, not at artifact creation, so a context can exceed the cap between runs.
Note that these are Go durations (168h, not 7d).
Left out
rust-adk.md:1144 also has an ARTIFACTS_RETENTION_MAX_ARTIFACTS row reading "Cap on the total number of artifacts kept by the backend". That documents the separate Rust ADK, whose behaviour this ADK change does not alter, so I left it alone. If the Rust implementation shares the old semantics and needs the same correction, that is a separate ticket.
Activity
edenreich commentedon Oct 3, 2026
@claude can you work on this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Oct 3, 2026
Claude finished @edenreich's task in 2m 49s —— View job •
docs/issue-942-20261003-1811• Create PR ➔Done
ARTIFACTS_RETENTION_*, read upstream Go ADK config + README)adk.mdlint:md,format:check,build- all pass)What changed
The Go ADK page had no artifact retention documentation at all, so there was no "per-task cap" or "has no effect" wording to remove - only a gap. Added an Artifact retention subsection to the Artifacts section of
adk.md:ARTIFACTS_RETENTION_*table (defaults5/168h/24h), withARTIFACTS_RETENTION_MAX_ARTIFACTSdescribed as artifacts kept per context, oldest deleted first,0= unlimited.ARTIFACTS_RETENTION_CLEANUP_INTERVALschedule, not at artifact creation, so a context can exceed the cap between runs.168h, not7d).Left out
rust-adk.md:1144also has anARTIFACTS_RETENTION_MAX_ARTIFACTSrow reading "Cap on the total number of artifacts kept by the backend". That documents the separate Rust ADK, whose behaviour this ADK change does not alter, so I left it alone. If the Rust implementation shares the old semantics and needs the same correction, that is a separate ticket.| Branch
inference-gateway-releaser commentedon Oct 4, 2026
🎉 This issue has been resolved in version 0.9.21 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀