Repository navigation
feat: a completed retest updates the verification state - #164
Merged
Merged
Conversation
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.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A completed retest with a
reproducedorfixedverdict now sets the finding's verification state toverified, with a note naming the retest, its verdict and the start of its summary (200 runes max).unverified,not_assessedorblocked. A verified finding keeps its POE level and note.inconclusive,failedandstoppednever changeverification_status. The verdict stays in the retest history.fixedpath (status set to Fixed, with notifications) is unchanged.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.Do not merge before
go,shellandwebare green on the exact head SHA.