Skip to content

Verify configured runtime packages in current agent images #1945

Closed

Description

@integry

Goal

Add a read-only verification workflow that proves configured agent runtime packages are valid and are actually present in the derived agent images currently used by this installation.

Today ProPR records desired packages, active packages, base-image IDs, and derived-image tags. That metadata is not sufficient after a base image is replaced, a local image is removed, or an image build/tag becomes stale. Operators need an explicit check that compares configuration, image lineage, and the packages installed inside each current runtime image.

Expected behavior

  • Add an explicit CLI workflow such as propr runtime packages verify, backed by an authenticated API operation using the existing installation runtime-management permission boundary.
  • Validate the desired package list with the existing package-name/catalog rules and compare it with the active package profile.
  • Determine the current enabled agent base images using the same authoritative configuration and resolution path used for execution.
  • For each current base image, verify:
    • the base image is available and its current image ID matches the recorded runtime-image lineage;
    • the expected derived image exists and is the image ProPR would currently resolve for execution;
    • every configured package is installed inside that derived image, including requested versions for pinned package specs;
    • the derived image still carries the expected ProPR runtime/installation labels and uses the expected non-root final user.
  • Perform package checks in a short-lived, network-disabled container using the supported package manager. Do not install packages, rebuild images, or otherwise mutate state during verification.
  • Return structured per-image results and an overall healthy/unhealthy result. Human output should identify missing packages, version mismatches, stale base-image lineage, missing images, and desired-vs-active drift with actionable remediation (runtime packages apply).
  • Support --json; exit non-zero when verification cannot be completed or any current image is inconsistent.
  • Empty/disabled runtime-package profiles should produce a successful, explicit disabled result rather than a false failure.

Acceptance criteria

  • Core/API tests cover a healthy image, missing derived image, replaced base image, missing package, pinned-version mismatch, label/user mismatch, desired-active drift, disabled profile, Docker failure/timeout, and multiple enabled base images.
  • CLI tests cover human and JSON output plus exit status.
  • Existing runtime-package build and image-resolution behavior remains unchanged.
  • CLI help, CLI README, and operations documentation explain when to run verification after image replacement or runtime-package changes.

Activity

  1. propr-dev commented on Aug 25, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 1945/gpt-5.6-sol-verify-configured-runtime-20260825-2001-o7r
    • Base Branch: main
    • Worktree: issue-1945-20260825-2001-gpt-5.6-sol-o7r

    🔍 Track Task Execution

  2. added a commit that references this issue on Aug 25, 2026
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions