23 Commits
Author SHA1 Message Date
Sycun 6a67364947 feat: add vulnerability retest branches with an isolated evidence log
Retesting a finding creates an independent conversation branch that
snapshots the source history and model trace, so verification can run
multi-turn without writing to the original session.

- POST /api/vulnerabilities/:id/retest creates the branch and persists the
  prompt, so a lost response, navigation or refresh can resume it
- new update_vulnerability_status tool closes the loop; a retest branch may
  only read and update its own finding
- {{vulnerability_id}}, {{conversation_id}} and {{source_conversation_id}}
  resolve on send, in the first turn and in follow-ups
- evidence appends to a read-only vulnerabilities.retest_log column instead
  of retest_notes: that field is operator-authored and the edit form
  rewrites it wholesale, so a routine edit used to erase the retest trail
- the retest prompt is prefilled with the operator's retest_notes, which
  already states how to verify the fix
- copied messages are re-bound as time.Time. Scanning a DATETIME column into
  a string yields RFC3339Nano while AddMessage writes the driver's
  space-separated format, and messages sort on the raw created_at text, so a
  branch rendered its new turn above the inherited history
2026-10-10 07:21:20 +08:00
公明 cecbe5a086 Add files via upload 2026-08-18 20:20:39 +08:00
公明 55ee5fbac9 Delete internal directory 2026-08-18 20:14:29 +08:00
公明 409e75f15a Add files via upload 2026-08-15 02:19:19 +08:00
公明 2910289f0b Delete internal directory 2026-08-15 01:54:26 +08:00
公明 a6b7c7e7be Add files via upload 2026-07-13 19:16:51 +08:00
公明 1b64f5d8a0 Add files via upload 2026-07-10 18:54:04 +08:00
公明 0ff8c58fbd Add files via upload 2026-07-10 16:46:26 +08:00
公明 8d04b0c266 Add files via upload 2026-07-03 10:52:21 +08:00
公明 7eadccbff6 Add files via upload 2026-06-18 12:44:42 +08:00
公明 cf1f8515d9 Delete internal directory 2026-06-18 12:37:39 +08:00
公明 60ea106301 Add files via upload 2026-06-05 10:38:24 +08:00
公明 dd3b1ae219 Add files via upload 2026-05-26 14:34:21 +08:00
公明 6685076dfb Add files via upload 2026-05-22 11:35:02 +08:00
公明 9325aed1eb Add files via upload 2026-05-20 16:09:33 +08:00
公明 b53cae3a02 Add files via upload 2026-04-28 11:37:52 +08:00
公明 3b3d094dc4 Add files via upload 2026-04-28 10:26:09 +08:00
公明 0597838217 Add files via upload 2026-04-28 01:04:58 +08:00
公明 a5e61947d3 Add files via upload 2026-04-19 01:17:09 +08:00
公明 5ef7618f44 Delete internal directory 2026-04-19 01:14:50 +08:00
公明 3e0867d459 Add files via upload 2025-12-27 03:08:01 +08:00
公明 cd48cfa67b Add files via upload 2025-12-26 01:33:07 +08:00
公明 025704cbf7 Add files via upload 2025-12-25 22:12:41 +08:00