F3 of the platform go-live plan (see #338): Prüfwerk's side of the new-findings mail.
After run_one_target_scan, a background task counts the target's findings with created_at >= scan start, by severity. The pipeline inserts only fingerprints it has not seen, so these are exactly the new ones. If there are any, it calls the registry's POST /v1/notifications (findings.new, idempotency key findings:<tenant>:<target>:<start>) with the target name, counts and an optional link.
The registry (tenant-registry#35) mails IT_ADMIN, OWNER, CXO and LEGAL in the BreakPilot layout, in German by default. Demo tenants get nothing.
DASHBOARD_PUBLIC_URL (https only) makes the mail link to /findings?target=<id>. Unset, the mail links the portal dashboard.
Pipeline files untouched (orchestrator.rs is yours): only agent.rs and registry.rs change. The registry client needs the notify route group for pruefwerk-svc-* (orca-platform#30 for stage).
F3 of the platform go-live plan (see #338): Prüfwerk's side of the new-findings mail.
- After `run_one_target_scan`, a background task counts the target's findings with `created_at >= scan start`, by severity. The pipeline inserts only fingerprints it has not seen, so these are exactly the new ones. If there are any, it calls the registry's `POST /v1/notifications` (`findings.new`, idempotency key `findings:<tenant>:<target>:<start>`) with the target name, counts and an optional link.
- The registry (tenant-registry#35) mails IT_ADMIN, OWNER, CXO and LEGAL in the BreakPilot layout, in German by default. Demo tenants get nothing.
- `DASHBOARD_PUBLIC_URL` (https only) makes the mail link to `/findings?target=<id>`. Unset, the mail links the portal dashboard.
- **Pipeline files untouched** (`orchestrator.rs` is yours): only `agent.rs` and `registry.rs` change. The registry client needs the `notify` route group for `pruefwerk-svc-*` (orca-platform#30 for stage).
CI clippy flags pass; the new unit test passes.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
After a scan the agent counts the findings of that target first
stored since the scan started (the pipeline only inserts a finding
whose fingerprint is new), by severity, and posts them to the
registry's POST /v1/notifications as findings.new. The registry mails
the people who run the workspace in the BreakPilot layout. Background
and best-effort; nothing without a registry or without new findings.
DASHBOARD_PUBLIC_URL (https) adds a link to the target's findings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
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.
F3 of the platform go-live plan (see #338): Prüfwerk's side of the new-findings mail.
run_one_target_scan, a background task counts the target's findings withcreated_at >= scan start, by severity. The pipeline inserts only fingerprints it has not seen, so these are exactly the new ones. If there are any, it calls the registry'sPOST /v1/notifications(findings.new, idempotency keyfindings:<tenant>:<target>:<start>) with the target name, counts and an optional link.DASHBOARD_PUBLIC_URL(https only) makes the mail link to/findings?target=<id>. Unset, the mail links the portal dashboard.orchestrator.rsis yours): onlyagent.rsandregistry.rschange. The registry client needs thenotifyroute group forpruefwerk-svc-*(orca-platform#30 for stage).CI clippy flags pass; the new unit test passes.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB