Skip to content

feat: a completed retest updates the verification state - #164

Merged
BaaRai merged 1 commit into
mainfrom
feat/retest-verification
Nov 9, 2026
Merged

BaaRai merged 1 commit into
mainfrom
feat/retest-verification

Conversation

@BaaRai

@BaaRai BaaRai commented Nov 9, 2026

Copy link
Copy Markdown
Owner

What

A completed retest with a reproduced or fixed verdict now sets the finding's verification state to verified, with a note naming the retest, its verdict and the start of its summary (200 runes max).

  • Upgrade only from unverified, not_assessed or blocked. A verified finding keeps its POE level and note.
  • inconclusive, failed and stopped never change verification_status. The verdict stays in the retest history.
  • The human status is not touched by this path. The existing fixed path (status set to Fixed, with notifications) is unchanged.
  • The retester agent is not changed: its tools and bindings are as configured.

Tests

db/finding_retests_verification_test.go, five Postgres-backed cases: reproduced on unverified; fixed with status Fixed kept; inconclusive on verified; failed and stopped; upgrade from not_assessed and blocked. They run in CI only.

Verification

  • go build ./..., go vet ./db/ ./server/, go test ./db/ ./agent/: pass locally. The Postgres tests were skipped without a DSN, so they were not exercised locally.
  • gofmt is clean on the CR-stripped content; the working copy's CRLF line endings are the only gofmt flag.

Do not merge before go, shell and web are green on the exact head SHA.

A completed retest with a reproduced or fixed verdict is an independent proof,
so it sets verification_status to verified with a note naming the retest, its
verdict and the start of its summary. The upgrade applies only from unverified,
not_assessed or blocked: a verified finding keeps its POE level and note.

Inconclusive, failed and stopped retests never change verification_status; their
verdict stays in the retest history. The human status is untouched by this path.
The existing fixed path (status set to Fixed with notifications) is unchanged.

Tests cover reproduced, fixed (status stays Fixed), inconclusive on a verified
finding, failed and stopped, and the upgrade from not_assessed and blocked.
@BaaRai
BaaRai merged commit 3e75f1f into main Nov 9, 2026
4 checks passed
@BaaRai BaaRai mentioned this pull request Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant