feat(vex): ENISA deadlines evaluated by the agent, one notification per CVE (#498 follow-up) #514

Merged
sharang merged 1 commits from feat/498-enisa-due into main 2026-10-06 15:36:39 +00:00
Owner

Follow-up to #513 (#498), as the peer asked: ENISA deadlines are evaluated by the agent, and a vulnerability is one notification.

What

  • enisa_docs:
    • group_by_cve: a GHSA advisory and the CVE it aliases, or one CVE in several components, form one group.
    • group_reportability: reportable when any of the group's alerts is.
    • exploited_seen_at: the earliest in the group.
    • deadlines(group, aware_at, now): per stage due_at, overdue, and hours_left (whole hours, negative once overdue). The final report has a date only once every component is fixed.
    • A draft covers the whole group: field 12 and the summary name every component; user measures, fixes and impacts are joined.
  • GET /api/v1/targets/{id}/enisa: one entry per CVE with alert_ids, components, reportable, reason, exploited_seen_at, and stages, evaluated at the request.
  • Group-wide outputs: GET /cves/{id}/enisa and the evidence pack's enisa-drafts.json both use the CVE's whole group.
  • Dashboard: the VEX card also loads /enisa and renders the agent's deadlines per stage: "Frühwarnung (24 h): fällig in N h", or in red "überfällig seit …". Every row of a reportable CVE gets the button. No browser clock is needed.

Tests

  • Core: grouping (GHSA plus CVE alert, one draft naming both components), and overdue and hours_left at a fixed now.
  • Dashboard: the deadline texts (DE/EN) and the candidate lookup per alert.
  • Agent: evidence and VEX handler tests.
  • clippy -D warnings: core, agent, dashboard (web and server).

Test plan check 32, marked [visible]. Stage only; no tag.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

Follow-up to #513 (#498), as the peer asked: ENISA deadlines are evaluated by the agent, and a vulnerability is one notification. ## What - **`enisa_docs`:** - `group_by_cve`: a GHSA advisory and the CVE it aliases, or one CVE in several components, form one group. - `group_reportability`: reportable when any of the group's alerts is. - `exploited_seen_at`: the earliest in the group. - `deadlines(group, aware_at, now)`: per stage `due_at`, `overdue`, and `hours_left` (whole hours, negative once overdue). The final report has a date only once every component is fixed. - A draft covers the whole group: field 12 and the summary name every component; user measures, fixes and impacts are joined. - **`GET /api/v1/targets/{id}/enisa`:** one entry per CVE with `alert_ids`, `components`, `reportable`, `reason`, `exploited_seen_at`, and `stages`, evaluated at the request. - **Group-wide outputs:** `GET /cves/{id}/enisa` and the evidence pack's `enisa-drafts.json` both use the CVE's whole group. - **Dashboard:** the VEX card also loads `/enisa` and renders the agent's deadlines per stage: "Frühwarnung (24 h): fällig in N h", or in red "überfällig seit …". Every row of a reportable CVE gets the button. No browser clock is needed. ## Tests - **Core:** grouping (GHSA plus CVE alert, one draft naming both components), and overdue and `hours_left` at a fixed `now`. - **Dashboard:** the deadline texts (DE/EN) and the candidate lookup per alert. - **Agent:** evidence and VEX handler tests. - **clippy** `-D warnings`: core, agent, dashboard (web and server). Test plan check 32, marked [visible]. Stage only; no tag. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang added 1 commit 2026-10-06 15:23:12 +00:00
feat(vex): ENISA deadlines evaluated by the agent, one notification per CVE (#498 follow-up)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 8m59s
fa5143c59a
- enisa_docs: group_by_cve (a GHSA advisory and its CVE, or one CVE in
  several components, are one notification), group_reportability,
  exploited_seen_at (the earliest), and deadlines(): per stage due_at,
  overdue and hours_left (negative once overdue) at a given moment. A draft
  covers the group: field 12 and the summary name every component; user
  measures, fixes and impacts are joined; v22 once every component is fixed.
- GET /api/v1/targets/{id}/enisa: one entry per CVE with alert_ids,
  components and stages evaluated at the request. The draft export and the
  evidence pack's enisa-drafts.json use the CVE's whole group.
- Dashboard: renders the agent's deadlines ("fällig in N h", in red
  "überfällig seit ...") for each stage, on every row of a reportable CVE;
  no clock in the browser needed.
- Docs DE/EN, API; test plan check 32.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang merged commit 908e6b8449 into main 2026-10-06 15:36:39 +00:00
Sign in to join this conversation.