Yocto tier 1, no bitbake: the recipes an image recipe installs are marked Im Image (deklariert) / In the image (declared). Every other component stays in the SBOM; the mark is only used to sort and filter.
Helper (docker/pruefwerk_yocto_recipes.py, still oelint-parser, still never runs recipe code, still confined to the tree)
Image recipes: anything that inherits an image class or sets IMAGE_* (oelint's IsImage); a *-image*.bb that declares installs; and a *-image*.bbappend of an image that is not in the tree. xcb-util-image and python3-imagesize stay components.
Also reads conf/local.conf.sample and conf/distro/*.conf.
Variables read: IMAGE_INSTALL and CORE_IMAGE_EXTRA_INSTALL with =/?=/+=/:append/old _append (handled in both of oelint-parser's parse modes)/:remove, plus IMAGE_FEATURES/EXTRA_IMAGE_FEATURES. Every override counts. Each image is parsed with both branches of bb.utils.contains and only packages present in both are kept, so a DISTRO_FEATURES-conditional install is not counted.
Package groups: per-package RDEPENDS/RRECOMMENDS. Recipes: their static PACKAGES (not PACKAGES_DYNAMIC).
The recipe inventory output is unchanged: run against Poky's meta, it gives the same 834 recipes as main.
Agent
declared_in_images: maps package names to recipes, by recipe name, then PACKAGES, then the default -dev/-dbg/... packages. Package groups are expanded one level. IMAGE_FEATURES map to OE-Core's FEATURE_PACKAGES_* groups only when that group is in the tree.
New field SbomEntry.in_image: Option<InImage { basis: declared, images }>. It uses serde default, so existing documents still read.
Shown in four places: the component's evidence line, the CycloneDX property pruefwerk:component:in_image (declared: pump-image), the SPDX package comment, and the dashboard badge and filter (the tooltip says it is read from the recipes, not resolved by bitbake). The SBOM list puts these components first.
Names an image declares that are not in the tree are listed on the run (stage image_install, SkipCode::NotInTree). No component is invented for them.
Fixture / baseline
pump-image now also installs packagegroup-pump (new). That group RDEPENDS on pump-web-ui, a package of pump-web.
Result: busybox, libmodbus, pump-ctl and pump-web are in the image; pump-fw is in none.
The baseline marks these components and gains the image_install note. The 9 recipe-lint findings are unchanged; the oelint fixture tests pass.
Docs: docs/guide/yocto.md has a new section "Im Image (deklariert)" covering what is and isn't resolved.
Tests
Helper on the fixture, plus a new syntax test (=, +=, :append, _append in both parse modes, an override, :remove, inline Python, an unset variable, old-syntax RDEPENDS, PACKAGES_DYNAMIC). Both run where oelint-parser is installed and are skipped otherwise.
Rust unit tests: package→recipe mapping, one-level expansion, features, configs, the name filter, marking.
CVE ranking was not done. The target CVE list is sorted newest first today, not by severity, so "in-image as the secondary key after severity" would bring in a new primary order.
I included RRECOMMENDS alongside RDEPENDS, because recommends are installed by default.
The not-in-tree names are shown under "Nicht ausgeführt" as a stage note. That mechanism is reused from recipe_lint_suppressed.
Every distro conf and every :append:<override> counts as declared.
Also removes the .pyc that #551 committed and ignores __pycache__/.
Yocto tier 1, no bitbake: the recipes an image recipe installs are marked **Im Image (deklariert)** / *In the image (declared)*. Every other component stays in the SBOM; the mark is only used to sort and filter.
**Helper** (`docker/pruefwerk_yocto_recipes.py`, still oelint-parser, still never runs recipe code, still confined to the tree)
- Image recipes: anything that inherits an image class or sets IMAGE_* (oelint's `IsImage`); a `*-image*.bb` that declares installs; and a `*-image*.bbappend` of an image that is not in the tree. `xcb-util-image` and `python3-imagesize` stay components.
- Also reads `conf/local.conf.sample` and `conf/distro/*.conf`.
- Variables read: `IMAGE_INSTALL` and `CORE_IMAGE_EXTRA_INSTALL` with `=`/`?=`/`+=`/`:append`/old `_append` (handled in both of oelint-parser's parse modes)/`:remove`, plus `IMAGE_FEATURES`/`EXTRA_IMAGE_FEATURES`. Every override counts. Each image is parsed with both branches of `bb.utils.contains` and only packages present in both are kept, so a DISTRO_FEATURES-conditional install is not counted.
- Package groups: per-package `RDEPENDS`/`RRECOMMENDS`. Recipes: their static `PACKAGES` (not `PACKAGES_DYNAMIC`).
- The recipe inventory output is unchanged: run against Poky's `meta`, it gives the same 834 recipes as main.
**Agent**
- `declared_in_images`: maps package names to recipes, by recipe name, then `PACKAGES`, then the default `-dev`/`-dbg`/... packages. Package groups are expanded one level. IMAGE_FEATURES map to OE-Core's `FEATURE_PACKAGES_*` groups only when that group is in the tree.
- New field `SbomEntry.in_image: Option<InImage { basis: declared, images }>`. It uses serde default, so existing documents still read.
- Shown in four places: the component's evidence line, the CycloneDX property `pruefwerk:component:in_image` (`declared: pump-image`), the SPDX package `comment`, and the dashboard badge and filter (the tooltip says it is read from the recipes, not resolved by bitbake). The SBOM list puts these components first.
- Names an image declares that are not in the tree are listed on the run (stage `image_install`, `SkipCode::NotInTree`). No component is invented for them.
**Fixture / baseline**
- `pump-image` now also installs `packagegroup-pump` (new). That group RDEPENDS on `pump-web-ui`, a package of `pump-web`.
- Result: busybox, libmodbus, pump-ctl and pump-web are in the image; pump-fw is in none.
- The baseline marks these components and gains the `image_install` note. The 9 recipe-lint findings are unchanged; the oelint fixture tests pass.
**Docs**: `docs/guide/yocto.md` has a new section "Im Image (deklariert)" covering what is and isn't resolved.
**Tests**
- Helper on the fixture, plus a new syntax test (`=`, `+=`, `:append`, `_append` in both parse modes, an override, `:remove`, inline Python, an unset variable, old-syntax RDEPENDS, `PACKAGES_DYNAMIC`). Both run where oelint-parser is installed and are skipped otherwise.
- Rust unit tests: package→recipe mapping, one-level expansion, features, configs, the name filter, marking.
- `sbom_docs` export test.
- e2e `the_sbom_lists_components_in_the_image_first_and_filters_by_it` (local Mongo).
**Needs a product decision**
- CVE ranking was **not** done. The target CVE list is sorted newest first today, not by severity, so "in-image as the secondary key after severity" would bring in a new primary order.
- I included `RRECOMMENDS` alongside `RDEPENDS`, because recommends are installed by default.
- The not-in-tree names are shown under "Nicht ausgeführt" as a stage note. That mechanism is reused from `recipe_lint_suppressed`.
- Every distro conf and every `:append:<override>` counts as declared.
Also removes the `.pyc` that #551 committed and ignores `__pycache__/`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
The recipe helper now also reads the image recipes (inherit core-image/image,
or *-image*.bb / an image bbappend that declares installs), local.conf.sample
and distro configurations: IMAGE_INSTALL and CORE_IMAGE_EXTRA_INSTALL with
=, ?=, +=, :append, the old _append and :remove, and IMAGE_FEATURES /
EXTRA_IMAGE_FEATURES. Package groups in the tree are read with their
RDEPENDS/RRECOMMENDS per package, and each recipe with the packages its
PACKAGES names. Still oelint-parser, nothing executed; the recipe inventory
itself is unchanged (checked against Poky's meta: 834 identical recipes).
The agent maps the declared names to recipes (recipe name, PACKAGES,
default -dev/-dbg/... packages), expands package groups one level and maps
IMAGE_FEATURES to OE-Core's FEATURE_PACKAGES groups only where they are in
the tree. Components get SbomEntry.in_image {basis: declared, images}, an
evidence line, a CycloneDX property pruefwerk:component:in_image and the
SPDX package comment. Names not in the tree are listed on the run
(image_install, SkipCode::NotInTree); no component is invented.
The SBOM list sorts in-image components first and filters by in_image; the
dashboard shows an "Im Image (deklariert)" badge and filter whose tooltip
says it is read from the recipes, not resolved by bitbake.
The nightly fixture's image installs a package group (packagegroup-pump ->
pump-web-ui of pump-web); pump-fw stays in no image. Baseline updated; the
nine recipe-lint findings are unchanged. Drops the .pyc committed by #551.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Yocto tier 1, no bitbake: the recipes an image recipe installs are marked Im Image (deklariert) / In the image (declared). Every other component stays in the SBOM; the mark is only used to sort and filter.
Helper (
docker/pruefwerk_yocto_recipes.py, still oelint-parser, still never runs recipe code, still confined to the tree)IsImage); a*-image*.bbthat declares installs; and a*-image*.bbappendof an image that is not in the tree.xcb-util-imageandpython3-imagesizestay components.conf/local.conf.sampleandconf/distro/*.conf.IMAGE_INSTALLandCORE_IMAGE_EXTRA_INSTALLwith=/?=/+=/:append/old_append(handled in both of oelint-parser's parse modes)/:remove, plusIMAGE_FEATURES/EXTRA_IMAGE_FEATURES. Every override counts. Each image is parsed with both branches ofbb.utils.containsand only packages present in both are kept, so a DISTRO_FEATURES-conditional install is not counted.RDEPENDS/RRECOMMENDS. Recipes: their staticPACKAGES(notPACKAGES_DYNAMIC).meta, it gives the same 834 recipes as main.Agent
declared_in_images: maps package names to recipes, by recipe name, thenPACKAGES, then the default-dev/-dbg/... packages. Package groups are expanded one level. IMAGE_FEATURES map to OE-Core'sFEATURE_PACKAGES_*groups only when that group is in the tree.SbomEntry.in_image: Option<InImage { basis: declared, images }>. It uses serde default, so existing documents still read.pruefwerk:component:in_image(declared: pump-image), the SPDX packagecomment, and the dashboard badge and filter (the tooltip says it is read from the recipes, not resolved by bitbake). The SBOM list puts these components first.image_install,SkipCode::NotInTree). No component is invented for them.Fixture / baseline
pump-imagenow also installspackagegroup-pump(new). That group RDEPENDS onpump-web-ui, a package ofpump-web.image_installnote. The 9 recipe-lint findings are unchanged; the oelint fixture tests pass.Docs:
docs/guide/yocto.mdhas a new section "Im Image (deklariert)" covering what is and isn't resolved.Tests
=,+=,:append,_appendin both parse modes, an override,:remove, inline Python, an unset variable, old-syntax RDEPENDS,PACKAGES_DYNAMIC). Both run where oelint-parser is installed and are skipped otherwise.sbom_docsexport test.the_sbom_lists_components_in_the_image_first_and_filters_by_it(local Mongo).Needs a product decision
RRECOMMENDSalongsideRDEPENDS, because recommends are installed by default.recipe_lint_suppressed.:append:<override>counts as declared.Also removes the
.pycthat #551 committed and ignores__pycache__/.🤖 Generated with Claude Code
https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
The recipe helper now also reads the image recipes (inherit core-image/image, or *-image*.bb / an image bbappend that declares installs), local.conf.sample and distro configurations: IMAGE_INSTALL and CORE_IMAGE_EXTRA_INSTALL with =, ?=, +=, :append, the old _append and :remove, and IMAGE_FEATURES / EXTRA_IMAGE_FEATURES. Package groups in the tree are read with their RDEPENDS/RRECOMMENDS per package, and each recipe with the packages its PACKAGES names. Still oelint-parser, nothing executed; the recipe inventory itself is unchanged (checked against Poky's meta: 834 identical recipes). The agent maps the declared names to recipes (recipe name, PACKAGES, default -dev/-dbg/... packages), expands package groups one level and maps IMAGE_FEATURES to OE-Core's FEATURE_PACKAGES groups only where they are in the tree. Components get SbomEntry.in_image {basis: declared, images}, an evidence line, a CycloneDX property pruefwerk:component:in_image and the SPDX package comment. Names not in the tree are listed on the run (image_install, SkipCode::NotInTree); no component is invented. The SBOM list sorts in-image components first and filters by in_image; the dashboard shows an "Im Image (deklariert)" badge and filter whose tooltip says it is read from the recipes, not resolved by bitbake. The nightly fixture's image installs a package group (packagegroup-pump -> pump-web-ui of pump-web); pump-fw stays in no image. Baseline updated; the nine recipe-lint findings are unchanged. Drops the .pyc committed by #551. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48pc5b4a18bdatoe2e95e636b