Repository navigation
Closed
Description
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
propr-dev commentedon Aug 25, 2026
🤖 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:
codexgpt-5.6-sol1945/gpt-5.6-sol-verify-configured-runtime-20260825-2001-o7rmainissue-1945-20260825-2001-gpt-5.6-sol-o7r🔍 Track Task Execution
fix(ai): Resolve issue #1945 - Verify configured runtime packages in …