verify turns a baseline-accepted finding back to open
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 78/100
Research direction
Read internal/engine/verify.go at the listed Verify locations, then check how baselines are applied in internal/finding/baseline.go and internal/engine/run.go. Add a test for verifying a baseline accepted finding whose proof still succeeds; run make test-short and confirm the finding remains accepted and its SARIF suppression is retained.
Written by the indexing model from the issue text.
Description
Summary
spackle verify on a run made with a baseline moves every accepted finding whose proof still reproduces back to open.
Where
internal/engine/verify.go:151,:172,:277(VerifysetsStatusOpenunconditionally)internal/finding/baseline.go:144internal/engine/run.go:666(baseline applied after the proof)
Details
A scan applies the baseline when it writes a finding, after the proof ran, so a finding can be accepted and still have a demonstrated proof and a stored manifest. Verify selects jobs by proof status only and, when the proof still succeeds, sets f.Status = finding.StatusOpen. Verify never loads the baseline, and the accept reason is left on the now-open finding. Read from the code; not executed.
Impact
The report shows the finding as open with an "Accepted because" line, the SARIF suppression is dropped, and gates or comparisons that read the stored run count it again.
Steps to reproduce
- Agentic scan with a container runtime and a baseline entry matching a finding that the prover demonstrates; the run stores it as accepted.
- Run
spackle verify <run>without changing the code. - The stored status becomes open.
Suggested fix
In Verify, keep the accepted status when the proof still succeeds (only update the proof result), or clear the accept reason and re-apply the configured baseline before appending. Decide separately whether an accepted finding whose proof no longer succeeds should become fixed.
Acceptance criteria
- A test verifies a run with an accepted, demonstrated finding and asserts the status stays accepted
- The SARIF suppression is still present after verify
Related: #81
Getting started
- Relevant files: internal/engine/run.go, internal/engine/verify.go, internal/finding/baseline.go
- How to run tests:
make test-short(Unix) or.\make.ps1 test-short(Windows PowerShell);make lintbefore you call it done - Related docs: CONTRIBUTING.md, docs/ARCHITECTURE.md
Filed by repo-audit/full-audit at 50e92ec. Severity: low. Effort: S. audit-key: bug|internal/engine/verify.go|Verify-accepted-status
- Dominant language
- Go
- Stars
- 0
- Forks
- 1
- Avg merge
- 8h 14m
- Merged PRs (30d)
- 3
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TMHSDigital/Spackle
-
ci good first issue severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
TMHSDigital/Spackle#206 ·
Maintainers usually reply within 1 day
-
ci severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TMHSDigital/Spackle#205 ·
Maintainers usually reply within 1 day
-
bug good first issue severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
TMHSDigital/Spackle#199 ·
Maintainers usually reply within 1 day
-
bug good first issue severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
TMHSDigital/Spackle#195 ·
Maintainers usually reply within 1 day
-
documentation good first issue severity: medium
Difficulty 1/5 Under an hour Newbie friendliness 90/100
TMHSDigital/Spackle#188 ·
Maintainers usually reply within 1 day
All issues in TMHSDigital/Spackle
Similar issues
-
bug effort:s impact:med raised-by:worker risk:low to:worker
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
medici-finance/assay#8120 · 1 comment ·
Maintainers usually reply within 1 day
-
factory:subtask
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
agent-substrate/substrate#4308 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
celestiaorg/celestia-app#8877 ·
Maintainers usually reply within 1 day
-
sweep
Difficulty 1/5 Under an hour Newbie friendliness 84/100
bketelsen/truenas-mcp#112 ·
Maintainers usually reply within 1 day