Skip to content

feat(research): watch upstream releases of the pins #3907

Open

Description

@dan-petty

Update 2026-11-26 (infra move): the tools lock is deleted (tool versions are in dan-petty/devtools), and Renovate runs from dan-petty/homelab, where it also writes a JSON report. The design below already builds on that report. The image and chart pins of the cluster are in homelab now.


Problem

No process reads upstream releases for the pins. Dependency Freshness prints uv tree --outdated for Python in a job log only. Renovate now opens the chart, image and Actions updates; end-of-life dates and release notes are still read by hand.

Expected

Collectors that return, for each component, the latest stable release, its date, a link to the release notes, the end-of-life date when known, and whether the pin is behind. Sources: GitHub releases.atom with ETag (feedparser), Helm index.yaml, PyPI JSON, endoflife.date API v1. Results go into the store as kind release or eol.

Acceptance criteria

  • Tests that fail on the base, with recorded feeds: a newer release gives a record with URL and date; a second fetch with ETag and a 304 writes nothing; a pre-release is ignored.
  • A test: a repository that moved (301) is reported as a source to fix, and the collector does not follow it to a new host.
  • A test: the pin sets of the project with two versions of one action show as skew in the report.
  • A request count per sweep is measured and written in the PR comment; the limit is in a setting.
  • The PR states whether feedparser is maintained at the pinned version.

Existing tool considered

Renovate (opens update pull requests if the app runs; gives no list for code), devops survey (maturity of PyPI pins), feedparser, PyYAML, endoflife.date (MIT). The collector reads; it never edits a pin.

Related

Part of the research agent plan. Related: #2953 (manual upstream release check), #2044.

Part of the research agent plan of 2026-11-07 (design by the research-agent design workflow; the ADR is delivered through #3877).

Alternatives check of 2026-11-25: in-use.
The repository already uses this tool.
Tool: renovatebot/renovate (https://github.com/renovatebot/renovate), AGPL-3.0, last activity 2026-11-25, maintained.
Reason: Searches found Renovate as the maintained open tool that already finds newer releases for Actions, Helm, PyPI and image pins, but it opens update pull requests and gives no end-of-life date, skew list, code-readable report or request limit.

Covers:

  • Finds newer releases for Actions, Helm charts, PyPI and image pins
  • Datasources carry release timestamp and source URL
  • Over 90 package managers, configurable per repository

Lacks:

  • No end-of-life date from endoflife.date
  • No skew list when one action has two pins
  • No machine-readable report of pins that are behind
  • No per-sweep request count, limit or ETag/304 write-nothing rule

Proposed design

Problem statement

No process reads upstream end-of-life dates or keeps release notes for the pins. Self-hosted Renovate (ADR 0027) now gives the latest version and the behind state of each pin. This change reads the Renovate JSON report for those two facts, adds a read-only endoflife.date collector for the end-of-life date, and prints both in a typed research report that the sweep reads. The collector never edits a pin.

Acceptance criteria

Requirement: Renovate report row

The release report SHALL write one row for each dependency that the Renovate JSON report names.

Scenario: Recorded Renovate report

  • WHEN The reader reads a recorded Renovate JSON file whose one dependency has a newer version and a release-notes URL.
  • THEN The row holds the current version, the new version, the release-notes URL and the behind flag.

Requirement: End-of-life row

The endoflife.date collector SHALL write an end-of-life row with the eolFrom date of the pinned cycle.

Scenario: Recorded endoflife.date answer

  • WHEN The recorded API v1 answer marks the pinned cycle as end-of-life.
  • THEN The row holds the eolFrom date and the report marks the component as end-of-life.

Requirement: End-of-life feeds the sweep

The sweep SHALL treat a finding whose component is past its end-of-life date as actionable whatever its severity.

Scenario: End-of-life component with a low advisory

  • WHEN The release report marks the component of a low-severity finding as end-of-life.
  • THEN The sweep files one intake candidate for the finding and devops_cli_research_open_findings counts it.

Requirement: Request limit

The endoflife.date collector SHALL count each HTTP request and SHALL stop at research.max_requests_per_sweep.

Scenario: Limit reached

  • WHEN A recorded transport answers research.max_requests_per_sweep requests and one more product is due.
  • THEN The collector sends no further request and the report states the count and the limit.

Requirement: No source

The report SHALL mark a component as no source when its watch entry holds no eol product.

Scenario: Image with no endoflife.date product

  • WHEN The inventory holds an image whose watch entry has no eol product.
  • THEN The report marks it as no source and the recorded transport gets no request.

Requirement: Release hosts

The endoflife.date collector SHALL send requests only to endoflife.date.

Scenario: Hosts of a run

  • WHEN The collector runs on a recorded inventory with an image that has an eol product.
  • THEN Every request of the recorded transport goes to endoflife.date, and no request goes to a registry API or another host.

Requirement: Watch entry names the eol product

The watch list SHALL accept an optional eol product on a [[watch]] entry and SHALL still reject any other unknown key.

Scenario: Recorded watch file with an eol product

  • WHEN A recorded watch file names eol = "litellm" on the ghcr.io/berriai/litellm entry.
  • THEN read_watch_list returns that entry with the eol product litellm.

Requirement: Report output

devops research releases SHALL print a table of the rows and SHALL print the typed report with --json or --format yaml.

Scenario: JSON output

  • WHEN devops research releases --root <repository> --report <fixture> --json runs on a recorded Renovate report and a recorded endoflife.date answer.
  • THEN The output is the JSON of the report, with one row for each dependency and one end-of-life row for the marked cycle.

Requirement: Pending a person after the merge

The owner MUST record the approval of the research agent egress to endoflife.date in the public-api-egress spec.

Scenario: Approval recorded

  • WHEN The owner adds the approval of endoflife.date to openspec/specs/public-api-egress/spec.md and runs uv run devops ci --check --only openspec.
  • THEN The check passes and the spec names endoflife.date among the approved hosts of the research agent.

Existing Tool Considered

Renovate (https://github.com/renovatebot/renovate) is in use; the block of the alternatives check in the issue body records what it lacks. The change reads the Renovate JSON report for the latest version and the behind state and builds a read-only endoflife.date collector for the end-of-life date. The written cost of that collector is about 12k tokens to build, about 3k tokens a year to keep and fix, and about 0.5 day elapsed.

Key questions

  • The inputs of the step of the task group "Request budget, the setting and the ETag cache" hold 66549 tokens, over the budget of 64000 tokens, also after the model split the groups once. Split the group or raise the budget of the step?: Split the group. The step budget roadmap.stage.step_tokens stays at 64000, and the narrowed scope drops the HTTP release collectors and the ETag cache, so each remaining task group fits one step. (best practice) [sources: docs/CONFIGURATION.md:322]
    • Chosen: Split the group. The narrowed scope removes the large collector group, so each remaining group fits the 64000-token budget of the step.
    • Rejected: Raise the budget. The plan check keeps the 64000-token budget of the step.
  • Does an open, maintained tool cover the need, and does the item keep its own collector?: Renovate is in use. The change reads its JSON report for the latest version and the behind state, and adds only the read-only endoflife.date collector for the end-of-life date, which the alternatives block records as a lack. (best practice) [sources: .github/renovate.json:1-5, docs/adr/0027-dependency-updates-come-from-self-hosted-renovate.md:27-37]
    • Chosen: Read the Renovate report and add the endoflife.date collector. This uses the tool in use for the facts it gives and adds only the end-of-life date that the alternatives block records as a lack.
    • Rejected: Adopt Renovate alone. The alternatives block records that it gives no end-of-life date.
    • Rejected: Build new release collectors. The 2026-11-11 scope reply removes them, and Renovate gives the latest version and the behind state.
  • Where does the report get the latest version and the behind state?: From the Renovate JSON report that devops research releases --report <path> reads, with the default .data/renovate-report.json. No new collector fetches GitHub releases, PyPI JSON or a Helm index. (best practice) [sources: .github/renovate.json:1-5, docs/adr/0027-dependency-updates-come-from-self-hosted-renovate.md:27-37, .github/workflows/ci.yml:113, src/devops_cli/commands/research.py:46-96]
    • Chosen: Read the Renovate JSON report. Self-hosted Renovate already finds the latest version and the behind state for each pin, and the scope reply names its report.
    • Rejected: Fetch GitHub, PyPI and Helm feeds. The 2026-11-11 scope reply says to add no new release collectors.
    • Rejected: Use only the outdated gauge. The gauge of feat(monitoring): export outdated dependencies from Renovate #4911 has not landed, and it gives metrics rather than the rows that the report needs.
  • Where does the end-of-life date come from?: The endoflife.date API v1 for the eol product that the watch entry names. The [[watch]] entry gains an optional eol field, which the frozen model rejects today. (best practice) [sources: .devops/research-watch.toml:32-77, src/devops_cli/research/watch.py:39-55, src/devops_cli/research/models.py:41-69]
    • Chosen: endoflife.date API v1. One API gives the eolFrom date for each product and cycle.
    • Rejected: A registry API for each image. It needs one client for each registry, with its own authentication.
    • Rejected: Skip image pins. The issue names image pins as a pin set to watch.
  • Where does the release-notes link come from?: The report copies the release-notes URL that the Renovate JSON report gives for the dependency, and writes no link when the report gives none. (best practice) [sources: .github/renovate.json:21-29, src/devops_cli/research/models.py:155-167]
    • Chosen: Copy the link from the Renovate report. It adds no HTTP request and uses the report that the scope reply names.
    • Rejected: Fetch releases.atom for each pin. The scope reply says to add no new release collector.
    • Rejected: Scrape the releases page. It breaks on a page change and gives no stable field.
  • Where does the report write its results?: It writes no file and no store record. devops research releases prints a table and emits the typed report with --json or --format, as devops research advisories does. The sweep reads the same report in process. (best practice) [sources: src/devops_cli/commands/research.py:99-140, openspec/specs/research-advisories/spec.md:64-73, src/devops_cli/store/kinds.py:22-44]
    • Chosen: Printed report with --json and --format. It matches devops research advisories and adds no second store to keep.
    • Rejected: New store kinds release and eol. The content store holds only review-window, study and review-session today.
    • Rejected: New database table. It adds a second store to keep and back up.
  • Where is the request limit set, and what counts as one request?: Each HTTP request to endoflife.date counts. The limit is the field research.max_requests_per_sweep of ResearchConfig, with a default in src/devops_cli/config/defaults.py and a row in the generated docs/CONFIGURATION.md, as research.judge.record_limit has. (best practice) [sources: src/devops_cli/config/settings.py:2511-2533, src/devops_cli/config/settings.py:2697, src/devops_cli/research/judge.py:64-75, docs/CONFIGURATION.md:348]
    • Chosen: Setting in config.yaml. The project settings and their defaults live there, and the generator writes their docs row.
    • Rejected: Environment variable only. A reader cannot see the limit in the repository.
    • Rejected: Constant in the code. A change to the limit needs a release.
  • Does the end-of-life date feed the sweep?: Yes. feat(research): sweep command files intake issues #3899 names this issue as the source of the date. is_actionable gains the end-of-life condition whatever the severity, and ResearchCriticalFindings counts it. (best practice) [sources: openspec/changes/archive/2026-11-07-3899-research-sweep-files-intake/proposal.md:40, src/devops_cli/research/sweep.py:87-89, openspec/specs/research-sweep/spec.md:8-13]
  • Which hosts may the research agent read for end-of-life dates?: Recommendation: the owner approves endoflife.date for the research agent, at the public egress level and with a byte cap, and records it in openspec/specs/public-api-egress/spec.md, as the owner approved api.github.com and www.cisa.gov on 2026-11-07. The spec names those two hosts only, so the collector cannot send the endoflife.date request before that record. (a person decides) [sources: openspec/specs/public-api-egress/spec.md:69-74, src/devops_cli/http/public_api.py:31-42]

Open questions

  • Which hosts may the research agent read for end-of-life dates? (a person decides)

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/feature
    status/new
    value/medium
    effort/medium
    on Nov 7, 2026
  2. dan-petty commented on Nov 7, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: none. The title has the scope research, and .github/labels.yml declares no scope/research label. Add the label to the file to give the scope to this item.
    • Priority: P2-Medium. It adds visibility into stale pins but does not fix a broken or unsafe behaviour.
    • Value: Medium. Users gain an automated signal that a pin is behind or approaching EOL, reducing manual tracking.
    • Effort: Medium. Four source collectors, ETag caching, recorded-feed tests, and a request-count setting are required.
    • Related: feat(research): list every pin of the project #3896, which asks for a different change. Both are siblings in the research agent plan; #3896 lists the pins, this candidate checks their upstream releases for freshness and EOL.
  3. added
    priority/p2-medium
    on Nov 7, 2026
  4. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 74ba76b until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • Which hosts may the research agent read for releases? (a person decides)
  5. devops-cli-service commented on Nov 9, 2026

    @devops-cli-service
    Contributor

    Alternatives check: partly

    Reason: Searches found no other open tool for this need; Renovate is open and maintained, and the issue itself records that its datasources already find newer releases and expose release date and source URL for Actions, images, charts and PyPI pins. It only partly covers the need because it opens update pull requests instead of producing the read-only, code-readable report with end-of-life dates, skew detection and request accounting that the issue requires.

    Tool: renovatebot/renovate (https://github.com/renovatebot/renovate)

    • License: AGPL-3.0
    • Last activity: 2026-11-08
    • Maintained: yes

    Covers:

    • Datasources find newer releases for GitHub Actions, Docker images, Kubernetes and Argo CD Helm charts
    • A custom datasource exposes releaseTimestamp and sourceUrl, i.e. a release date and a release-notes link
    • Detects that a pin is behind its upstream release and can open update pull requests

    Lacks:

    • No end-of-life date from endoflife.date or elsewhere
    • No skew report when one component is pinned at two versions
    • No code-readable report of which pins are behind; it acts through pull requests, while the collector must only read and never edit a pin
    • No per-sweep request count or research.max_requests_per_sweep limit
    • No ETag/304 write-nothing rule and no reporting of a moved repository (301) as a source to fix

    Tools considered:

    Searches run:

    • Renovate endoflife.date end-of-life datasource support, results: 5
    • docs.renovatebot.com datasource github-releases pypi helm releaseTimestamp sourceUrl custom datasource, results: 5
    • Renovate datasource documentation github-releases, results: 5
    • renovatebot renovate docs datasource, results: 5
    • Renovate dependency update tool open source pull requests, results: 5
    • github renovatebot renovate release notes datasource, results: 5

    Sources:

    Checked on 2026-11-09. A person decides what this means for the item. The check changes no label and closes no issue.

  6. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Scope from the hooks review plan (2026-11-11)

    This issue is also child 19 of #4771 (hooks item P20). The scope adds one pin source.

    • The rev pins of .pre-commit-config.yaml get old. pre-commit-hooks is at v5.0.0 (v6.0.0 since 2025-08-09), and ruff-pre-commit is at v0.16.8 (v0.17.4 since 2026-11-05).
    • The Renovate pre-commit manager is off by default (docs.renovatebot.com/modules/manager/pre-commit), and Renovate opened 0 pull requests since 2026-10-01.
    • After perf(ci): faster commit hooks and more fast pre-push checks #4776, pre-commit-hooks is the only remote hook repository.

    Add the rev lines of .pre-commit-config.yaml as a pin source of the GitHub release collector.

    Added acceptance:

    • The output lists pre-commit-hooks with its latest release, its date, and whether the pin is behind.
  7. added
    status/ready
    and removed
    status/new
    on Nov 11, 2026
  8. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at d83c7d9 (see proposed design in issue body).

  9. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    Scope from the Renovate plan (2026-11-11)

    The owner chose self-hosted Renovate for the 7 Service repositories on 2026-11-11. #4893 tracks it. This changes the premise of this issue.

    Overlap. This issue plans new collectors for the latest release of each pin and for the behind state of each pin. It names Renovate as "opens update pull requests if the app runs". With self-hosted Renovate, the Renovate JSON report gives the latest version and the behind state of every pin of every manager. The outdated gauge of #4911 exports them as devops_cli_dependencies_outdated{repository,manager}, devops_cli_dependencies_libyears{repository,manager} and devops_cli_dependency_update_oldest_pending_seconds{repository}.

    Narrowed scope. Keep only what Renovate does not give:

    • end-of-life dates (endoflife.date);
    • release notes for the research store.

    Read the Renovate report for the latest release and the behind state. Do not add new release collectors.

    Next step. When the outdated gauge of #4911 lands and nothing else remains, close this issue as superseded, with a link to the gauge and the report.

  10. added
    owner/service
    on Nov 17, 2026
  11. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Owner question: The inputs of the step of the task group "Request budget, the setting and the ETag cache" hold 66549 tokens, over the budget of 64000 tokens, also after the model split the groups once. Split the group or raise the budget of the step?

    Options

    1. Split the group: A person splits the group and runs the item again.
    2. Raise the budget: A person raises the budget of the step and runs the item again.

    Recommendation: Split the group: the plan check keeps the budget of the step.

    Evidence

  12. removed
    owner/service
    on Nov 17, 2026
  13. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: partly, tool https://github.com/renovatebot/renovate. A person decides what the new result means for the item.

    Searches (7)

    Tools considered:

    Searches run:

    • Renovate pre-commit manager disabled by default, results: 5
    • Renovate self-hosted JSON report dependencies outdated latest version, results: 5
    • renovate docs pre-commit manager, results: 5
    • renovatebot renovate, results: 5
    • renovate json report file self-hosted, results: 5
    • renovatebot docs dependency dashboard, results: 5
    • renovate end of life date dependency reporting, results: 5

    Sources:

  14. added 2 commits that reference this issue on Nov 18, 2026
  15. dan-petty commented on Nov 24, 2026

    @dan-petty
    OwnerAuthor

    Split the group.

  16. added
    status/new
    and removed
    status/ready
    on Nov 26, 2026
  17. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    Owner question: See the first point of Open questions in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

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

    effort/mediumpriority/p2-mediumsource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions