Commit Graph
124 Commits
Author SHA1 Message Date
sharang 8fd78dd390 feat(demo): the pump station demo runs on a Siemens S7-1500 CPU (#1084)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 8m48s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-30 21:32:09 +00:00
sharang dd46af6f24 fix(metering): a demo target given the tenant's own sources counts under the cap (#1080)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 6m2s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Dashboard (push) Successful in 4m31s
2026-11-29 09:56:18 +00:00
sharang 1df32d5e1a feat(metering): a plan can allow no extra targets (entry plan) (#1079)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 7m28s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 2m52s
CI / Deploy Dashboard (push) Successful in 5m31s
2026-11-28 22:09:18 +00:00
sharangandClaude Opus 5.5 87b1e281ed fix(vex): a CVE a scan no longer finds is not stated fixed (#994) (#1015)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m19s
CI / Deploy Agent (push) Successful in 8m42s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 2m42s
CI / Deploy Dashboard (push) Successful in 6m14s
A scan never states VEX `fixed`. When a scan stops finding a CVE, its tracker issue stays open and gets one comment; a person closes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
2026-11-27 22:23:03 +00:00
sharang f59dae4a66 feat(supply-chain): the Lieferkette draws a supplier's release (#1028) (#1070)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m13s
CI / Deploy Agent (push) Successful in 8m4s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Dashboard (push) Successful in 5m50s
2026-11-20 10:50:02 +00:00
sharang 7478ff57df feat(offers): an open offer names the version accepting delivers (#1028) (#1068)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m7s
CI / Deploy Agent (push) Successful in 5m40s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-19 21:56:04 +00:00
sharang d3500d4be4 feat(releases): the next version's draft and each version's customers (#1028) (#1066)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m11s
CI / Deploy Agent (push) Successful in 9m7s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 4m56s
CI / Deploy Dashboard (push) Successful in 6m55s
2026-11-19 17:36:22 +00:00
sharang 9da4d83ed0 feat(delivery): published SBOM versions reach the customers who accepted (#1028) (#1065)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m11s
CI / Deploy Agent (push) Successful in 5m55s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-19 16:21:44 +00:00
sharang 20d56d2301 feat(offers): the customer is offered a supplier's release and answers it (#1028) (#1064)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m18s
CI / Deploy Agent (push) Successful in 7m39s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-19 13:10:21 +00:00
sharang c8a13fecad feat(releases): release a target to a connected workspace and publish versions (#1028) (#1063)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m11s
CI / Deploy Agent (push) Successful in 6m59s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-19 12:35:08 +00:00
sharang fb8223bc11 feat(registry): connections between workspaces in the registry client (#1028) (#1062)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 7m29s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-19 12:12:02 +00:00
sharang 1376efa249 feat(supply-chain): a product's description and documents on its box (#1054) (#1059)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m10s
CI / Deploy Agent (push) Successful in 7m21s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Dashboard (push) Successful in 3m53s
2026-11-19 10:35:22 +00:00
sharang bc73a61f96 feat(supply-chain): keep the customer's arrangement (#1052) (#1056)
CI / Check (push) Skipped
CI / Deploy Agent (push) Successful in 5m41s
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Skipped
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-19 09:23:27 +00:00
sharang 240c4d734a feat(supply-chain): the supply chain as a graph (#1051) (#1055)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 10m36s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 5m26s
CI / Deploy Dashboard (push) Successful in 8m2s
2026-11-19 08:59:46 +00:00
sharang 497318e50d feat(supplier): the supplier uploads an SBOM through its invite (#1027) (#1048)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m6s
CI / Deploy Agent (push) Successful in 5m49s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-18 11:55:19 +00:00
sharang dc14c77e84 feat(supplier): the portal invites a supplier for one component (#1027) (#1047)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m8s
CI / Deploy Agent (push) Successful in 5m51s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-18 11:32:59 +00:00
sharang 31b8cb9d37 fix(onboarding): a scan the target runs is listed once among its applicable scans (#1043) (#1046)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 5m53s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-17 16:46:32 +00:00
sharang 832f9b13e1 fix(cve): an alert keeps when it was first found when a scan reports it again (#1041) (#1045)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 5m59s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-17 12:59:51 +00:00
sharang 6f42fbd583 feat(api): the machine page's overview, CVEs and history (#1026) (#1037)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m9s
CI / Deploy Agent (push) Successful in 8m35s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 2m54s
CI / Deploy Dashboard (push) Successful in 6m9s
2026-11-17 11:57:04 +00:00
sharang 72ef09b981 feat(sbom): a machine's SBOM, its parts with their suppliers (#1026) (#1036)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m9s
CI / Deploy Agent (push) Successful in 9m19s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 5m21s
CI / Deploy Dashboard (push) Successful in 7m11s
2026-11-17 10:10:36 +00:00
sharang 684d3514ab feat(csaf): count a target's supplier advisories, with the provider's last read (#1025) (#1034)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m11s
CI / Deploy Agent (push) Successful in 6m45s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-17 09:51:45 +00:00
sharang 0790810afb feat(sbom): check a supplier SBOM before a target holds it (#1025) (#1033)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m8s
CI / Deploy Agent (push) Successful in 6m46s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-17 09:29:56 +00:00
sharang af76e516a1 feat(vex): what a supplier states about its component's vulnerabilities (#1025) (#1032)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m11s
CI / Deploy Agent (push) Successful in 8m53s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 4m57s
CI / Deploy Dashboard (push) Successful in 6m45s
2026-11-16 23:09:27 +00:00
sharang 7d0ccd7171 feat(csaf): a bought-in component's supplier CSAF advisories, kept per tenant (#1025) (#1031)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m9s
CI / Deploy Agent (push) Successful in 8m46s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 2m33s
CI / Deploy Dashboard (push) Successful in 6m23s
2026-11-16 22:45:45 +00:00
sharang 55091fe02e feat(sbom): a supplier's SBOM of a bought-in component is scanned for known CVEs (#1025) (#1030)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m8s
CI / Deploy Agent (push) Successful in 7m50s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 3m5s
CI / Deploy Dashboard (push) Successful in 5m45s
2026-11-16 22:23:22 +00:00
sharang 32332f65bb feat(api): the agent serves an OpenAPI description, starting with DAST (#1006) (#1012)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m11s
CI / Deploy Agent (push) Successful in 8m52s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 4m56s
CI / Deploy Dashboard (push) Successful in 6m45s
2026-11-16 13:10:26 +00:00
sharang 98be82c0d0 feat(pipeline): a DAST finding links the code finding with its CWE (#998) (#1010)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m7s
CI / Deploy Agent (push) Successful in 6m22s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-16 11:46:47 +00:00
sharang cdb84f0967 feat(pipeline): DAST findings are findings of the target (#998) (#1008)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m7s
CI / Deploy Agent (push) Successful in 5m47s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-16 11:01:25 +00:00
sharang 4f5d713bbc feat(pipeline): the DAST stage waits for its scans and records a failure (#998) (#1007)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m6s
CI / Deploy Agent (push) Successful in 5m42s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 3m43s
CI / Deploy Dashboard (push) Successful in 4m45s
2026-11-16 10:30:45 +00:00
sharang f5ac5321bd feat(dast): scans log in with the target's credentials (#1000)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m15s
CI / Deploy Agent (push) Successful in 9m2s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 5m14s
CI / Deploy Dashboard (push) Successful in 6m48s
2026-11-16 02:31:38 +00:00
sharangandClaude Opus 5.5 f5697ff21d feat(scan): record which components each scan added, updated or removed (#974) (#975)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m29s
CI / Deploy Agent (push) Successful in 8m13s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 58s
CI / Deploy Dashboard (push) Successful in 6m12s
Before a stage replaces its part of a target's SBOM (the code SBOM, the
CODESYS libraries, the firmware components), the entries it replaces are
compared with the new ones and the changes are added to the scan run
(`component_changes`, at most 5000; `None` on runs from before). A
component is its package manager and name; one version before and one
after is an update, otherwise each new version an addition and each gone
one a removal.

The Verlauf API joins them with the scan's CVEs: a new CVE goes with the
component now at its version, a gone one with the component that was at
its version, and what no change explains is an advisory row. The scan's
drill-down shows the mockup's table (neu / aktualisiert / entfernt / neue
Advisory, version before → after, CVEs +n −m) above the CVE list; scans
from before say the components were not recorded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 10:18:01 +00:00
sharangandClaude Opus 5.5 31886d226c feat(dashboard): CRA Annex I tiles and the scan history chart (#957) (#973)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 5s
CI / Deploy Docs (push) Successful in 1m7s
CI / Deploy Agent (push) Successful in 5m53s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Successful in 3m34s
CI / Deploy MCP (push) Successful in 4m7s
The two views the repo tabs still showed as placeholders, as in the mockup:

- CRA Annex I: the 40 requirements as tiles, ten to a row, coloured by state
  and marked with a sign (! ? ~ OK –) so the state is never told by colour
  alone, with a legend and counts. A tile opens the requirement (in the
  URL, ?control=cra-ai-3) with its state, findings and reason, reusing the
  CRA page's row.
- Verlauf: per scan the CVE alerts found new above the line and those found
  gone below it, with the run's status, and a table view. A scan opens what
  it changed (?scan=<run id>): each CVE with component, version and
  severity. New: GET /api/v1/targets/{id}/scan-changes and
  compliance_core::scan_changes. A completed scan's window runs from the end
  of the completed scan before it; the first is the baseline; scans that did
  not complete change nothing. Which components a scan added, updated or
  removed is not stored, and the view says so.

Docs: the target's page and its views in the targets guide; the overview's
repo cards with their Heute buckets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:31:03 +00:00
sharangandClaude Opus 5.5 f5ed826b99 feat(dashboard): repo views as tabs, Heute per repo, bucket counts on repo cards (#957) (#971)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 6s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 7m8s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 3m18s
CI / Deploy Dashboard (push) Successful in 5m18s
Checked against the mockup in a local run: the tab strip scrolls on its
own on a narrow screen instead of widening the page and no longer shows a
stray scrollbar; the CRA tab counts the requirements checked without a
finding (not those outside the code); the licence tab says why it is empty;
the repo cards' bucket labels wrap as in the mockup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 20:17:31 +00:00
sharangandClaude Opus 5.5 5017c6286e fix(inbox): resubmissions return to their bucket, new CVEs end a snooze, secrets stay for today (#950) (#970)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 5s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 10m5s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 4m57s
CI / Deploy Dashboard (push) Successful in 7m29s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 20:17:17 +00:00
sharangandClaude Opus 5.5 d6986d23b1 feat(dashboard): Heute inbox with urgency buckets and dated resubmission (#950) (#965)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 9m56s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 2m35s
CI / Deploy Dashboard (push) Successful in 7m58s
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>
2026-11-10 17:22:59 +00:00
sharangandClaude Opus 5.5 f1123e1adb feat(issues): closing or reopening a Prüfwerk issue in Gitea updates the finding (#953) (#960)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m8s
CI / Deploy Agent (push) Successful in 8m53s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 4m56s
CI / Deploy Dashboard (push) Successful in 6m54s
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>
2026-11-10 16:22:29 +00:00
sharangandClaude Opus 5.5 d274c68ecb test(nightly): a queued scan run is not finished yet (t84) (#945)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 5m38s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Dashboard (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 12:53:02 +00:00
sharangandClaude Opus 5.5 d3c8eee393 fix(scan): a person's scan gets the next slot and shows as queued (t84) (#940)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 5s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 8m15s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 4m47s
CI / Deploy Dashboard (push) Successful in 6m1s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 07:52:24 +00:00
sharang a2699a3ec3 feat(metering): swap an extra target with an included one (t72) (#932)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 5s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 8m36s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 4m54s
CI / Deploy Dashboard (push) Successful in 6m27s
2026-11-07 03:11:29 +00:00
sharang 3bdaf28737 feat(metering): this month's usage on the targets page (t72) (#931)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 5s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 8m43s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Dashboard (push) Successful in 6m24s
2026-11-07 02:50:56 +00:00
sharang 9ce3b868bb feat(metering): send the month's peak of extra targets (t72) (#929)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 5m57s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-06 15:55:44 +00:00
sharang a7355ffdc8 feat(metering): the quota, Prüftage, the daily limit and the cap (t72) (#928)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Failing after 7m45s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 4m52s
CI / Deploy Dashboard (push) Failing after 5m54s
2026-11-06 14:48:07 +00:00
sharangandSharang Parnerkar ce786b716b feat(metering): included and extra targets, and why each scan ran (t72) (#927)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 6s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 9m4s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 5m4s
CI / Deploy Dashboard (push) Successful in 6m57s
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
2026-11-06 14:30:07 +00:00
sharang b079cf9267 fix(scan): findings in test data and excluded paths close, whichever scanner stored them (#904)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 6s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 6m47s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-05 17:56:00 +00:00
sharang c16e91f981 fix(plc): test data and excluded paths leave the PLC analysis too (#828)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Successful in 1m7s
CI / Deploy Agent (push) Successful in 5m24s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-04 09:32:36 +00:00
sharang 8ede373353 feat(scan): per-target excluded paths, left out of the whole scan (#825)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 5s
CI / Deploy Docs (push) Successful in 1m14s
CI / Deploy Agent (push) Successful in 10m50s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 2m53s
CI / Deploy Dashboard (push) Successful in 7m56s
2026-11-04 08:48:40 +00:00
sharang e01d2146e9 fix(nightly): no chat model, and GitHub Actions by major version (#573) (#821)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 6s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 5m23s
CI / Agent integration (push) Skipped
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-11-04 08:29:03 +00:00
sharang ac95126af2 feat(scan): leave test data (fixtures, testdata) out of the whole scan (#820)
CI / Detect Changes (push) Successful in 6s
CI / Check (push) Skipped
CI / Deploy Agent (push) Canceled after 0s
CI / Deploy Docs (push) Successful in 1m16s
CI / Agent integration (push) Skipped
CI / Deploy MCP (push) Successful in 4m57s
CI / Deploy Dashboard (push) Successful in 6m46s
2026-11-04 08:28:51 +00:00
sharang 9d4e46c34f fix(agent): cascade delete reads ids raw; integration tests fixed (#584)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 5m34s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
2026-10-30 08:28:13 +00:00
sharangandSharang Parnerkar 5ce496303d feat(audit): API-key writes carry the caller's address to the registry (#567)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Docs (push) Skipped
CI / Deploy Agent (push) Successful in 5m6s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
Audit entries for API-key writes recorded the agent's container address (172.17.0.6 on stage), because the registry stores the peer of its own request. With this change they carry the caller's address.

- The API host's proxy puts the caller's address in `X-BP-Client-IP`, overwriting anything the client sent. That proxy change is a separate orca-platform PR on `pruefwerk-stage/api-proxy.conf`.
- `audit_delegated_writes` reads the header for **API-key requests only** and keeps it only if it parses as an IP address, because the registry stores it as Postgres `inet` and garbage would sink the whole entry.
- `AuditEntry.source_ip` is sent as `source_ip` and skipped when empty.
- The registry ignores the field until tenant-registry accepts it (separate PR), so the deploy order doesn't matter.
- The address is informational: nothing decides on it.
- Support writes via the dashboard still show the dashboard's address.

Tests: unit test for the header parse (v4, v6, a list, junk, missing); `tests/api_key_access.rs` checks `source_ip` in the posted audit entry. Not run locally (RAM); CI runs them.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
Co-authored-by: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com>
Reviewed-on: #567
2026-10-14 09:33:24 +00:00