AIPCC CVE report
Generate a fresh, local, standalone cve-report.html with the bundled scripts and assets. Lead with a plain-language remediation journey and keep technical evidence available for drill-down. Use the bundled renderer and collect the requested ticket scope afresh for each run.
Inputs and defaults
Accept literal JQL, one or more Jira keys, or a description of the tickets to find. Convert a description into a specific JQL query and state that query before collection. Ask for clarification only if the description cannot be mapped reliably. A description is not a package-name or fix-version authority.
When the user provides no ticket scope, suggest this query and give them a chance to adjust it:
jqlproject in (RHAIENG, RHOAIENG, AIPCC) AND labels = ecosystem:pypi AND component not in (Documentation, PXE, Devops, testops) AND issuetype in (vulnerability) AND status not in (Closed, Resolved)
Establish the user's target product release for the legacy model, or exact channel name for the channel model. Use user-provided or verified consumer context; ask for the target when it is missing. Do not assume a release or compare releases by default. For a channel-based product release, resolve the consuming component's channel mapping. Default the environment to CPU, CPython 3.12 and x86_64 unless the user specifies otherwise. Exclude legacy 3.5-stable. Check a validated RHAI base image's test index when that image is in development. Stable channel maturity is not the legacy 3.5-stable product index. Stable channels stay eligible for the report.
Release-model discovery
Read repository AGENTS.md and applicable CONTEXT.md before using each checkout. Resolve source locations at runtime; no checkout directory is assumed. Obtain the current Content Channels Guide, Release Content Delivery Policy, Consumer FAQ, index lifecycle and update policy from authorized team documentation. Resolve their repository or rendered URLs from the user or organization configuration. Do not embed restricted documentation URLs or private repository locations in this public skill. If access fails, report which policy could not be checked.
Read release-models.md for source mappings, publication proof and migration rules. Pass resolved checkout paths to --fondue, --pipeline, --builder, and --team-docs; the latter three are conditional on the sources needed. Inspect Fondue's current rhai-pipeline/channels.yml and supported_versions.yml. Collect source commits with --refresh-sources when network access is available. Fetching refs must not switch branches, edit checkouts or discard local changes. Team-docs working-file hashes are recorded because local guidance can differ from committed files.
- Confirm the legacy cutoff from current team guidance and pass it through
--legacy-through. Compare exact requested product paths, including explicit EA suffixes. Do not substitute a preview release for a GA release. - For channel-based releases, use channel targets. Do not invent product-versioned index paths or equate a product release with one channel. Obtain per-component channel mappings for a product-wide answer; an unmapped release stays explicit.
- Channel identity includes accelerator/SDK, fixed Torch anchor and OS. Compare channels individually. Record maturity, adopted-by metadata, architecture and Python support. Maturity is separate from test/production status.
- Discover images from the full channel catalog and team guidance, not a fixed list of examples. Inspect the image's Linux architecture, channel/index labels and SHA-256 digest before suggesting it. Development images can point at the same index with
-test; this is a normal release stage. Verify the fixed package in the exact index the image currently uses. Prefer a timestamp/release tag pinned by digest; a verifiedlatestimage may be pinned by its inspected digest. Image names or tags alone are not publication proof.
Run the workflow
Use a Python 3.10 or newer virtual environment and resolve <python> to its interpreter. Install the dependencies with <python> -m pip install -r <skill>/scripts/requirements.txt. Resolve <skill> to this installed skill directory and <out> to a new private report directory outside the source checkout. Do not assume a particular assistant cache path. Required CLI tools are acli and git; skopeo supports registry inspection and gh provides a GitHub API fallback when available. Node.js is required for the UI regression checks. Live collection requires authorized Jira and source-repository access. Quay inspection may require skopeo login quay.io on each computer; do not assume existing registry credentials. Keep generated reports, raw Jira and security evidence local. They can contain restricted tickets and private source links even though the skill code is public.
For Red Hat Jira, prefer acli. Check acli jira auth status. If unauthorized, authenticate without printing or saving credentials:
shprintf '%s' "$JIRA_API_TOKEN" | acli jira auth login --site redhat.atlassian.net --email "$JIRA_EMAIL" --token
If the restricted shell cannot reach Jira, retry the CLI with network access. Do not replace it with a custom Jira HTTP client.
sh<python> <skill>/scripts/report.py collect --out <out> --jql-file <query-file> --fondue <fondue-checkout> --team-docs <team-docs-checkout> --model legacy --releases <target-product-release> --legacy-through <verified-cutoff> --variants cpu-ubi9 --refresh-sources <python> <skill>/scripts/report.py assess --out <out>
collect also accepts --jql or --tickets KEY .... For a channel target, use --model channels --channels <exact-target-channel>. Read the full catalog to resolve valid names, but collect the user's target for the normal remediation journey. Use multiple targets or --model both only for an explicit comparison investigation. Private channels require explicit selection and access; failed checks stay Unknown. Set --legacy-through from current release guidance. Supply --request-policy-url <authorized-url> and --request-intake-name <current-form-name> to populate request prompts at runtime, rather than publishing internal locations or intake metadata in the skill. Resolve legacy image names/tags from current documentation and release sources; pass them as repeatable --image-candidate TARGET=REGISTRY/REPOSITORY:TAG inputs. Candidates must pass registry validation before becoming recommendations.
Review the generated assessment.json before rendering. Read assessment.md for the schema and review rules. Confirm every package identity and CVE association against the CNA, upstream advisories and ticket evidence. Review branch-specific fixed versions, new/reopened affected intervals, advisory conflicts, no-fix cases and dependencies. Fetch primary release notes or source commits where structured records are insufficient. A CNA exclusive bound is a candidate until a released fix is verified. An inclusive affected bound, Git commit, newer version or local suffix is not a fixed release.
Keep reviewed: false until review is complete. For an established fix, fill positive fixed_specifiers, branch minimum_versions, sources and notes. For a CVE with no verified fix, leave positive ranges empty, set reviewed: true, and explain the result. Keep unknown package identities in unclassified with an explanation. Do not drop tickets or CVEs to make the table look complete. Unreviewed or changed advisory fingerprints block normal rendering.
For backports, verify the source revision and the exact released version. If patched and unpatched wheels share a version, approve wheel hashes, not the version. Use scripts/inspect_wheel.py to verify the download hash and inspect source without installing or executing the package. Review the source check semantically. Source-only backports must remain labeled as source evidence and must not be presented as binary provenance.
sh<python> <skill>/scripts/report.py indexes --out <out> <python> <skill>/scripts/report.py render --out <out> --architecture x86_64 --open
The index phase checks actual production PEP 691 package pages and any validated base image's development index, compatible wheel tags, Requires-Python and yanking. It fetches fixed-target PyPI metadata for Torch dependency checks. Download URLs remain only in raw/inspection evidence. Report wheel links must use /api/pypi/<domain>/<index>/simple/<package>/, never pulp-content.
Before marking the result complete, inspect the report's coverage warnings and failed checks. Resolve failures that affect a fix answer when access permits; otherwise retain Unknown with the cause. Read current constraints and primary build requests, scoped to their collection. Historical backfill pins are not global locks. If a target source mapping is absent, report lock status Unknown. Do not infer a producer lock from an old indexed version.
The collector also finds AIPCC and RHAI tickets for the selected CVEs. Check their summary/description associations in snapshot.json and raw/work-tickets/; incidental comments or unrelated issue links do not establish a CVE match. These references do not expand the original CVE query scope. Show actual clickable keys and status beside the CVEs in each main-table row, plus the per-CVE evidence. If no matching ticket is established, say so. A Closed ticket is not proof of a fixed wheel.
Required output and checks
Lead with one guided card per unique Python package for the user's exact target: (1) linked Jira issues and CVEs, package identity, and ticket-reported version when established; (2) whether a fix exists and whether AIPCC has published it in that target's RHAI package index; (3) the matching RHAI base image (RHAIBI), or the exact-target build request needed. State when a ticket version is unknown. Explain the RHAI package index, RHAIBI and channels in simple language. Keep architecture, target, search and all/missing-fix filters. Show all affected packages by default so an available fix still gets remediation instructions. A single collected target is preselected; a report with multiple targets asks the user to choose their target.
For a verified fixed package, recommend a matching published base image first. Show an exact timestamp/digest Containerfile example and the package pin. Lead with the specific verified image reference and a FROM example, then the fixed application requirement. Keep full production package/index URLs and pip/uv examples in a collapsed advanced alternative. Explain that the consumer must update its locks, rebuild, test, and scan. Do not imply the base image already contains the fixed package. Usage recommendations must cover all collected CVEs for that package, including CVEs hidden by the filter for missing fixes. Suppress version-only install commands for hash-specific fixes and source-only backports. When no fix is verified, publication is missing, or checks failed, give a clear next step and a copyable agent prompt instead of an install command. Read request-workflow.md for intake, update and ownership rules. Resolve the current package-request form from authorized team guidance and supply its name at runtime. The prompt must focus on asking AIPCC to build the needed package. Include the requested version, exact target and package URLs, environment, all collected CVEs and linked Jira issues. Reference the current rendered update policy instead of embedding its form fields or workflow metadata. Ask the agent to check existing work, collect missing request information, and prepare intake and required follow-up for review.
Keep the evidence table in a collapsed technical section: grouped CVEs, one unique package, minimum fixed version and the user's target. An optional technical comparison can add a second source column. It must not change the main remediation instructions or include unrelated channel recommendations. Each source cell retains fix availability, coverage count, indexed versions, source-linked constraints, compatibility notes, matching base route, and action. Yes requires one indexed compatible wheel covering every displayed CVE for the package; separate patched builds do not establish one usable package pin. Retain clickable wheel filenames, collapsed package/CVE evidence, exact onboarding targets, and no-fix highlights. The HTML must work when copied alone.
Choose fixes within the current channel's anchors. Prefer a compatible upstream fixed release. When the fix requires another Torch/SDK/OS anchor, the consumer can validate a different channel or arrange a backport with its component team. The requesting component team owns production-code patches, forks and releases; AIPCC builds and publishes the requested source. Do not promise an AIPCC-owned backport. Do not propose mixing indexes or upgrading Torch inside an existing channel. Pin recommendations are individual publication targets, not a combined validated lockfile. A Yes is index availability, not proof that the consuming image is remediated.
Run scripts/test_report.py after changing the skill. For a report run, verify unique package rows, complete CVE coverage, exact production URLs, source-scoped pins and channel/image alignment. Check the default and alternate-target filters. Rendering the same saved snapshot and assessment must give byte-identical HTML, Markdown and JSON.
When the target has no verified matching RHAIBI or fixed package, state the missing evidence and provide the next AIPCC request for that exact target. Do not use a different release or channel as the default remedy. Explore migration only when the consumer asks for it.
After generating the report, attempt to open cve-report.html with CLI-native tooling: open <out>/cve-report.html on macOS or xdg-open <out>/cve-report.html on Linux. The render command's --open option performs this attempt. Do not open the output folder or use an interactive browser integration to open the report. If the opener fails, retain the generated report and state the failure. Return a link to the HTML, the count of unique packages needing attention, and material unresolved checks. Do not publish the report, change Jira tickets, onboard packages or alter consumer locks as part of this skill.


