fix: findings from the first acceptance round #415

Merged
sharang merged 1 commits from fix/acceptance-round-1 into main 2026-09-28 16:18:11 +00:00
Owner

Fixes from the first acceptance round (test plan results, 2026-09-28).

D4: a scan ran for 4+ hours

The iot-reference-stm32u5 scan produced 11,670 findings, of which 11,579 came from ruff over vendor Python under Middleware/ (numbers from staging's database). The LLM triage then worked through all of them, 30 per call, one call after another, with LiteLLM 502s in between. Control triage would have followed with one judge call per mapped finding.

  • Vendor code: it is now left out of the pattern, secret and lint findings too, not only SAST. vendor::in_vendor_dir, with a test, uses the list the SAST stage already computes, and the run's skipped-stage note says so.
  • LLM triage: only the 600 most severe findings go through it, 4 calls at a time. The rest stay open and untriaged, which is where they'd be without an LLM; triage never hides a finding.
  • Control triage: 8 judge calls at a time, with outcomes applied afterwards. It is not capped, because a cap there could leave violations unmapped.

Ahead of the Qwen3.8-27B switch

  • The LLM client removes <think>…</think> reasoning before any answer is parsed as JSON. An unterminated block becomes empty. There is a test.

B4: adding a file to an existing target

  • The editor gains "Datei hinzufügen": kind, file, PLC format (detected from the name) and an optional archive password, uploaded at once. Before, it asked for a path.
  • After the upload the editor closes and the target reloads: the editor's artifact list would be stale, and saving it would drop the new file.
  • The "add a reference" row now only offers non-file kinds.
  • is_file_kind and plc_format_for are shared by the wizard and the editor, with a test.

B4, H1, H2: styling

  • A .form-fields container gives inputs the dashboard's form styling. It's used by the manual-findings form and the editor dialog.
  • The archive-password field sits on one line with its badge and button.

A5

  • The robots noindex meta tag is now also in the page head. The X-Robots-Tag header and robots.txt were already in place.

Not changed

  • G4 (evidence pack as HTML): it doesn't reproduce locally, where the click downloads a proper ZIP. On staging the agent started the pack and logged nothing after, while MongoDB was refusing new connections (fixed by orca-platform#39). To be retested.

Checks

  • fmt, and clippy with the CI flags on the agent and both dashboard feature sets.
  • Tests: agent lib 459, dashboard 45 + 61.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

Fixes from the first acceptance round (test plan results, 2026-09-28). ## D4: a scan ran for 4+ hours The iot-reference-stm32u5 scan produced **11,670 findings**, of which **11,579 came from ruff over vendor Python under `Middleware/`** (numbers from staging's database). The LLM triage then worked through all of them, 30 per call, one call after another, with LiteLLM 502s in between. Control triage would have followed with one judge call per mapped finding. - **Vendor code:** it is now left out of the pattern, secret and lint findings too, not only SAST. `vendor::in_vendor_dir`, with a test, uses the list the SAST stage already computes, and the run's skipped-stage note says so. - **LLM triage:** only the **600 most severe** findings go through it, **4 calls at a time**. The rest stay open and untriaged, which is where they'd be without an LLM; triage never hides a finding. - **Control triage:** **8 judge calls at a time**, with outcomes applied afterwards. It is not capped, because a cap there could leave violations unmapped. ## Ahead of the Qwen3.8-27B switch - The LLM client removes `<think>…</think>` reasoning before any answer is parsed as JSON. An unterminated block becomes empty. There is a test. ## B4: adding a file to an existing target - The editor gains **"Datei hinzufügen"**: kind, file, PLC format (detected from the name) and an optional archive password, uploaded at once. Before, it asked for a path. - After the upload the editor closes and the target reloads: the editor's artifact list would be stale, and saving it would drop the new file. - The "add a reference" row now only offers non-file kinds. - `is_file_kind` and `plc_format_for` are shared by the wizard and the editor, with a test. ## B4, H1, H2: styling - A `.form-fields` container gives inputs the dashboard's form styling. It's used by the manual-findings form and the editor dialog. - The archive-password field sits on one line with its badge and button. ## A5 - The robots `noindex` meta tag is now also in the page head. The `X-Robots-Tag` header and `robots.txt` were already in place. ## Not changed - **G4 (evidence pack as HTML):** it doesn't reproduce locally, where the click downloads a proper ZIP. On staging the agent started the pack and logged nothing after, while MongoDB was refusing new connections (fixed by orca-platform#39). To be retested. ## Checks - fmt, and clippy with the CI flags on the agent and both dashboard feature sets. - Tests: agent lib 459, dashboard 45 + 61. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang added 1 commit 2026-09-28 16:09:16 +00:00
fix: findings from the first acceptance round
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 6m58s
ab04b2f612
- Scans no longer run for hours on vendor-heavy trees. The iot-reference
  scan produced 11,670 findings, 11,579 of them from ruff over vendor Python
  under Middleware/, and the LLM triage worked through all of them, 30 at a
  time, one call after another. Vendor code is now left out of the pattern,
  secret and lint findings too (it already was for SAST); the LLM triage
  takes the 600 most severe findings, 4 calls at a time, the rest staying
  open; control triage runs 8 judge calls at a time.
- A reasoning model's <think> block is removed before its answer is parsed,
  ahead of the switch to Qwen3.8-27B.
- A file can be added to an existing target: the editor offers an upload
  (archive, PLC project, firmware image, with its archive password) instead
  of asking for a path; the wizard and the editor share the file-kind and
  PLC-format helpers.
- The manual-findings form and the archive-password field in the editor use
  the dashboard's form styling.
- A robots noindex meta tag in the page head, next to the X-Robots-Tag header.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang merged commit e9bda32dc6 into main 2026-09-28 16:18:11 +00:00
Sign in to join this conversation.