Fixes#1042, found while testing supplier SBOMs on stage (#1025).
Cause
A target without code records one note for its skipped code stages: "source_code", with code NotAnalysedYet. The agent wrote the same reason for every such target, and that reason named the recipe inventory and recipe lint too. The dashboard words a reason by the phrases it contains, so it matched "recipe inventory" and showed the Yocto text "Das Rezept-Inventar … ist in Arbeit", even on a firmware target that has only a supplier SBOM.
What
Agent: the reason now says what is read instead of code:
a target with only a supplier SBOM: its supplier SBOM;
a target with a build output: the build output, with the code analysis and recipe stages that need code.
Dashboard:
Both reasons get their own wording, and they're matched before the recipe phrases.
On a target with only a supplier SBOM it now reads "Quellcode — Kein Quellcode (Git-Repository oder Archiv): gelesen wird die SBOM des Zulieferers; die Codeanalyse braucht den Code".
A note stored before this change reads like the build-output one.
The stage source_code is labelled "Quellcode"; it used to show its raw id.
Tests
Dashboard: wording tests for both new reasons and the old one.
Local runs:
clippy for the agent and both dashboard builds is clean;
Fixes #1042, found while testing supplier SBOMs on stage (#1025).
## Cause
A target without code records one note for its skipped code stages: "source_code", with code `NotAnalysedYet`. The agent wrote the same reason for every such target, and that reason named the recipe inventory and recipe lint too. The dashboard words a reason by the phrases it contains, so it matched "recipe inventory" and showed the Yocto text "Das Rezept-Inventar … ist in Arbeit", even on a firmware target that has only a supplier SBOM.
## What
- **Agent:** the reason now says what is read instead of code:
- a target with only a supplier SBOM: its supplier SBOM;
- a target with a build output: the build output, with the code analysis and recipe stages that need code.
- **Dashboard:**
- Both reasons get their own wording, and they're matched before the recipe phrases.
- On a target with only a supplier SBOM it now reads "Quellcode — Kein Quellcode (Git-Repository oder Archiv): gelesen wird die SBOM des Zulieferers; die Codeanalyse braucht den Code".
- A note stored before this change reads like the build-output one.
- The stage `source_code` is labelled "Quellcode"; it used to show its raw id.
## Tests
- **Dashboard:** wording tests for both new reasons and the old one.
- **Local runs:**
- clippy for the agent and both dashboard builds is clean;
- the agent test suite is green;
- `cargo test -p compliance-dashboard` passes.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
A target without code recorded one note for its skipped code stages,
naming the recipe inventory and recipe lint too; the dashboard matched
'recipe inventory' and showed the Yocto text 'Das Rezept-Inventar ...
ist in Arbeit' on any such target. The agent now says what it reads
instead (the supplier SBOM, or the build output with its recipe stages),
the dashboard words both, an older note reads as the build-output one,
and the stage is labelled 'Quellcode'.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang
merged commit c222210a87 into main2026-11-17 12:59:53 +00:00
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.
Fixes #1042, found while testing supplier SBOMs on stage (#1025).
Cause
A target without code records one note for its skipped code stages: "source_code", with code
NotAnalysedYet. The agent wrote the same reason for every such target, and that reason named the recipe inventory and recipe lint too. The dashboard words a reason by the phrases it contains, so it matched "recipe inventory" and showed the Yocto text "Das Rezept-Inventar … ist in Arbeit", even on a firmware target that has only a supplier SBOM.What
source_codeis labelled "Quellcode"; it used to show its raw id.Tests
cargo test -p compliance-dashboardpasses.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9