The Lizenzen tab of one target opens with one bar split into four
licence groups (Permissiv, Schwaches Copyleft, Starkes Copyleft,
Unbekannt) and a card per group with its count and a short note. A
click on a segment or a card narrows the licence table to that group,
with a breadcrumb and the way back to the chart; a "Tabelle" toggle
shows the same numbers as a table.
The groups come from the licence categories the summary endpoint
already returns (spdx_license::category, or the category a person
confirmed); compliance-core maps the eight categories onto the four
groups and sums them (LicenseGroup, LicenseGroupCounts).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new landing page "Heute" (the overview moves to /overview and stays in
the sidebar): the Erstbewertung, target chips, the four bucket tiles and
the cards of the chosen bucket with their decisions, "Später" with one
week, one month or a date, "Details", an undo strip after each decision,
and the keys j/k/f/a/s on this page only. The sidebar's "Heute" entry
shows the workspace's "Heute handeln" count.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Describe the new overview figures, the 30-day chart, the targets by
project and the target page's "Wo handeln" table in the guide. Key the
overview's project groups by the project's id, so two projects with the
same name stay apart.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Tickets page was a paged table only. GET /api/v1/issues now takes
q (title word or ticket number: 913, #913, PROJ-913), status (open
takes in_progress, closed takes resolved) and repo_id, tenant-scoped as
before. A ticket stores no target: the target filter takes the ids of
the target's findings with a ticket plus its CVE tickets
(finding_id cve:{target}:...).
Each row links to its finding, or for a CVE ticket to the target's
components and CVEs (SBOM page), next to the tracker link. Texts are
German and English, the status is a readable badge. The CVE key prefix
and the closed check move to compliance-core so the agent and the
dashboard read them the same way.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The managed Git source's org webhook now handles `issues` events. A
person closing an issue Prüfwerk opened resolves the undecided finding,
recorded as "closed in the ticket" with the Gitea login; reopening it
makes the finding open again. A decision already made in Prüfwerk is
kept. Events whose sender is the issue's author (Prüfwerk's bot user,
which opened it) are ignored, and the back-sync never calls Gitea, so
nothing loops; the issue record is updated first, so the outbound sync
has nothing left to comment or close.
CVE issues closed in Gitea only record the close and who did it, no VEX
status. The scan leaves such an issue closed while the CVE is still
found, and forgets the close once a complete scan no longer finds it, so
a CVE that comes back reopens the issue as before.
The platform API names the events the webhook needs (`webhook_events`);
Prüfwerk cannot change the webhook itself, so existing webhooks need
the Issues event added in Gitea. The finding history shows
"Im Ticket geschlossen von <login>".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Undecided findings are grouped on read, by target, tool, rule and file,
and by directory when a rule fires in three or more files of one
directory. A stored #464 group stays a group of its own. Nothing about
groups is stored.
- compliance-core: models::finding_group with the pure group_findings
and members_of, for the findings list and later the Heute inbox.
- GET /api/v1/finding-groups[?target=] lists the groups;
POST /api/v1/finding-groups/decide gives every undecided member the
same status through the bulk path (status history, issue sync), so
VEX and the evidence pack see ordinary per-finding changes.
- Findings list: Gruppiert / Einzeln toggle (default grouped) with group
cards, the AI's reason, the places, and Fehlalarm / Risiko akzeptiert
for all places of a group.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The findings page of one target (/findings?target=...) now opens with two
charts of its open findings: a bar per finding type stacked by severity
(one red scale, every segment a button), and a tree map of the folders
they are in (area = open findings, colour = the most severe). A click
opens the list narrowed to that type and severity, or to that folder; the
filter goes into the URL, a breadcrumb names it and leads back to the
charts. A "Tabelle" toggle shows the same numbers as tables.
- core: finding_breakdown (the shared DTO and the pure counting function;
open = Open, Triaged, NeedsReview as for tracker issues)
- agent: GET /api/v1/targets/{id}/finding-breakdown; the findings list
takes an anchored literal `path` folder filter and `status=undecided`
- dashboard: FindingsPage takes scan_type, severity and path from the
query (Route::findings(target) builds the plain list link)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The target's "Schwachstellen und VEX" card now opens with a grid of
severity rows against VEX-status columns (offen, in Pruefung, betroffen,
nicht betroffen, behoben), each count shaded on one blue scale and a
button into the CVE list narrowed to that cell. The choice sits in the
URL (?cve_severity=high&cve_vex=open), with a breadcrumb and a way back;
a table toggle shows the same numbers, and a tile counts the CVEs nobody
has assessed yet.
The agent counts the still-reported alerts in
GET /api/v1/targets/{id}/cve-matrix; the bucketing lives in
compliance-core so the dashboard narrows the list the same way.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The SBOM page's component tab opens, for one target, with two bar charts
(one hue, no legend; "Tabelle" shows the same numbers as tables):
- "Welches Update entfernt die meisten CVEs": per CVE group of #949 with
a fix, "openssl 3.0.11 -> 3.0.15" and "-3 CVEs", ranked by the CVEs the
update fixes, then by the worst severity; top 10, then "Alle anzeigen".
A bar opens that component's group card in place (breadcrumb
"Komponenten > openssl 3.0.11", "Zurueck zum Diagramm"). The card is
#949's own; only its visibility changes.
- "Komponenten nach Oekosystem": per package manager the components and
how many have a known vulnerability. A bar filters the component table
below to it and puts it in the URL: the new additive route
/sbom/ecosystem/:ecosystem?target=<id> renders the same page. The
package-manager select now shows the active filter.
Agent: GET /api/v1/targets/{id}/sbom-ecosystems counts the target's SBOM
components per package manager in one aggregation (tenant database, org
role gate as every route). The ranking and the filterable managers live
in compliance-core (sbom_ecosystems), shared with /sbom/filters.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The target's open CVE alerts are grouped by component (package, version,
purl) in compliance-core: the highest fixed version the advisories name
above the component's own, how many CVEs that update fixes, the CVEs per
severity (a CVE in several alerts counts once), KEV and the highest EPSS.
Agent:
- GET /api/v1/targets/{id}/cve-groups lists the groups, most severe first.
- PATCH /api/v1/targets/{id}/cve-groups/vex states one VEX status on every
open alert of a component: one statement per alert with the validation,
author and time of PATCH /api/v1/cves/{id}/vex, so the exports and the
CVE issue auto-close treat them as single decisions. Settled alerts keep
their statements; 404 when the component has no open alert.
Dashboard: the target's VEX section opens grouped ("Gruppiert") with one
card per component ("vite 5.4.21 -> 8.3.3 behebt 9 CVEs (1 hoch, ...)"),
"Nicht betroffen (alle N)" opening the same statement editor as
"Bewerten", and the rows on demand; "Einzeln" keeps the full list. The
severity badge of a row now uses the same rating as the group counts
(GitHub's MODERATE reads as medium, a CVSS-only alert gets its badge).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Zu prüfen" now says which of the two cases put it there: the LLM triage
dismissed the finding as a likely false alarm ("KI: wohl Fehlalarm"), or it
confirmed it with too little confidence ("KI: unsicher"). The reason is read
from the verdict already stored on the finding (triage_action, confidence),
so findings from before this change get it too; the wire status stays
needs_review.
- core: ReviewReason, ReviewReason::of_verdict and Finding::review_reason;
the triage's confidence threshold and its action markers move to core.
- agent: apply_action decides through ReviewReason::of_verdict, so the
triage and the label cannot drift apart.
- dashboard: the list and the finding page show the reason instead of the
bare status, the list with the AI's rationale on hover; the finding page
confirms ("Fehlalarm bestätigen", false positive with the rationale as
reason) or rejects ("Doch prüfen", triaged) the AI's guess in one click,
for roles that may change a status.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
First part of t72, Prüfwerk metering (LB §2 Abs. 4–5, §7). This PR records what a scan is metered by. Nothing is counted or enforced yet; counters, the 6-per-day limit and the Prüftag cap come in the next PR.
## What changes
- **Included vs extra targets.** Each target stores `billing: included | extra`.
- The oldest active targets by `created_at` are included, up to the plan's `limits.included_targets` from the registry entitlement. The rest are extra.
- The split is refreshed before each scan and when a target is created. Archiving an included target moves the oldest extra one up.
- A plan without that key includes every target, which is every plan until the registry sends the limits. So this PR changes nothing for existing tenants.
- **Run attribution.** Each run records an `attribution`:
- `request`: the customer started it (dashboard or API).
- `support`: staff started it.
- `change`: something the customer changed, i.e. new commits, other uploads, or a live URL.
- `rescan`: only the Prüfwerk build changed.
For scheduled and webhook scans it's set where change detection decides, so our rescan after an update is no longer counted as a customer change. `uploads_changed` / `content_changed` don't depend on `UPLOAD_CHANGE_SKIP`.
- **`chargeable`.** Says whether the run counts once it completes:
- a request always counts;
- a change counts only on an extra target;
- rescans and support scans never count.
`scan.completed` now carries `attribution` and `counted` as properties.
- **Dashboard.** The targets list shows a "Zusätzliches Prüfobjekt" badge on an extra target.
## Tests
- **Core:** the included/extra split, attribution, and the contract table of what counts.
- **Agent:** `content_changed`/`uploads_changed`, the `included_targets` limit, reading a stored target's billing, and a Mongo integration test (`tests/target_billing.rs`): the oldest are included, and an extra target moves up on archive.
Not built locally, per the CI-only rule; CI is the compiler here.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com>
Reviewed-on: #927