Skip to content

[DOCS] ARTIFACTS_RETENTION_MAX_ARTIFACTS is now a per-context cap #942

Closed

Description

@inference-gateway-maintainer

Summary

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.

ADK PR: inference-gateway/adk#384 (closes inference-gateway/adk#383)

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

Activity

  1. added
    documentation
    on Oct 3, 2026
  2. added theissue type on Oct 3, 2026
  3. edenreich commented on Oct 3, 2026

    @edenreich
    Contributor

    @claude can you work on this? use /ponytail:ponytail

  4. inference-gateway-maintainer commented on Oct 3, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 2m 49s —— View job • docs/issue-942-20261003-1811 • Create PR ➔


    Done

    • Gather context (grep docs for ARTIFACTS_RETENTION_*, read upstream Go ADK config + README)
    • Understand the request
    • Document the per-context cap in adk.md
    • Validate (lint:md, format:check, build - all pass)
    • Commit + open PR -> docs: go adk artifact retention per-context cap #943

    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 (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.

    | Branch

  5. moved this from Todo to In progress in 2026on Oct 3, 2026
  6. moved this from QA to Done in 2026on Oct 3, 2026
  7. inference-gateway-releaser commented on Oct 4, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.21 🎉

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions